Function at 0x1011ca70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi + 0x170]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x174]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x1011cd4e
jb 0x1011caab
cmp eax, 0xffffffe0
ja 0x1011cd4e
cmp dword [esi + 0x16c], 0
push ebx
mov dword [esi + 0x38], eax
lea ebx, [esi + 0x40]
lea eax, [esi + 0x60]
mov dword [esi + 0x3c], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
je 0x1011cadd
push eax
push ebx
call fcn.1011d800
add esp, 8
mov dword [esi + 0x16c], 0
jmp 0x1011cae3
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
movzx ecx, byte [esi + 0xc]
movzx eax, byte [esi + 0xd]
mov edx, dword [esi + 0x168]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x1c], edx
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xf]
shl ecx, 8
or ecx, eax
mov dword [ebp - 4], ecx
push edi
mov edi, dword [ebp + 0xc]
test edx, edx
je 0x1011cb73
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 0x10]
nop
test eax, eax
je 0x1011cb59
mov cl, byte [edx + esi + 0x10]
lea eax, [esi + 0x40]
xor cl, byte [edi]
inc edi
mov byte [ebx], cl
inc ebx
xor byte [eax + edx], cl
inc edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
dec eax
and edx, 0xf
mov dword [ebp + 0x14], eax
mov dword [ebp - 0x1c], edx
jne 0x1011cb20
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0x60]
push eax
push ecx
call fcn.1011d800
add esp, 8
jmp 0x1011cb76
mov ecx, dword [ebp - 0xc]
test edx, edx
jne 0x1011cd3f
lea eax, [esi + 0x60]
push eax
push ecx
call fcn.1011d800
add esp, 8
jmp 0x1011cb76
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
cmp ecx, 0xc00
jb 0x1011cc2e
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [ebp - 0x20], edx
mov dword [ebp - 0xc], 0xc0
nop dword [eax]
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
add esp, 0xc
inc ecx
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0xc], 1
mov dword [ebp - 4], ecx
jne 0x1011cba0
push 0xc00
lea eax, [ebx - 0xc00]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.1011d5e0
mov ecx, dword [ebp + 0x14]
add esp, 0x10
sub ecx, 0xc00
sub dword [ebp - 0x20], 1
mov dword [ebp + 0x14], ecx
jne 0x1011cb92
mov edx, ecx
and edx, 0xfffffff0
mov dword [ebp - 0xc], edx
je 0x1011cccc
cmp ecx, 0x10
jb 0x1011ccb5
shr ecx, 4
lea eax, [esi + 0x10]
mov dword [ebp - 0x20], ecx
nop word [eax + eax]
push dword [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
add esp, 0xc
inc ecx
sub dword [ebp + 0x14], 0x10
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x20], 1
lea eax, [esi + 0x10]
mov dword [ebp - 4], ecx
jne 0x1011cc50
mov edx, dword [ebp - 0xc]
push edx
mov eax, ebx
sub eax, edx
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call fcn.1011d5e0
mov ecx, dword [ebp + 0x14]
add esp, 0x10
test ecx, ecx
je 0x1011cd3c
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
sub edi, ebx
mov byte [esi + 0xe], al
lea esi, [edx + ebx]
mov ebx, dword [ebp + 0x14]
nop dword [eax + eax]
mov eax, dword [ebp - 8]
lea esi, [esi + 1]
mov cl, byte [eax + edx - 0x30]
xor cl, byte [edi + esi - 1]
mov byte [esi - 1], cl
xor byte [eax + edx], cl
inc edx
sub ebx, 1
jne 0x1011cd10
mov esi, dword [ebp + 8]
xor eax, eax
pop edi
pop ebx
mov dword [esi + 0x168], edx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x1c]
pop edi
pop ebx
mov dword [esi + 0x168], edx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret