Function at 0x1011c800
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 0x14]
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x174]
mov dword [ebp - 0x18], eax
mov eax, esi
add eax, dword [edi + 0x38]
adc ecx, dword [edi + 0x3c]
cmp ecx, 0xf
ja 0x1011ca5f
jb 0x1011c835
cmp eax, 0xffffffe0
ja 0x1011ca5f
cmp dword [edi + 0x16c], 0
lea edx, [edi + 0x40]
mov dword [edi + 0x38], eax
lea eax, [edi + 0x60]
mov dword [edi + 0x3c], ecx
mov dword [ebp - 0x10], edx
je 0x1011c866
push eax
push edx
call fcn.1011d800
add esp, 8
mov dword [edi + 0x16c], 0
lea edx, [edi + 0x40]
jmp 0x1011c869
mov dword [ebp - 0x10], edx
movzx ecx, byte [edi + 0xc]
movzx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 0xf]
shl ecx, 8
push ebx
mov ebx, dword [edi + 0x168]
or ecx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x1011c8f9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
test esi, esi
je 0x1011c8dc
mov cl, byte [eax]
dec esi
inc eax
mov dword [ebp + 0x14], esi
mov dword [ebp - 4], eax
mov al, byte [ebx + edi + 0x10]
xor al, cl
mov byte [edx], al
lea eax, [edi + 0x40]
xor byte [eax + ebx], cl
inc edx
inc ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
and ebx, 0xf
mov dword [ebp - 8], edx
mov dword [ebp - 0x1c], ebx
jne 0x1011c8a8
mov edx, dword [ebp - 0x14]
jmp 0x1011c8e7
mov edx, dword [ebp - 0x14]
test ebx, ebx
jne 0x1011ca50
lea eax, [edi + 0x60]
push eax
push edx
call fcn.1011d800
mov ecx, dword [ebp - 4]
add esp, 8
jmp 0x1011c905
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
cmp esi, 0xc00
jb 0x1011c991
mov ebx, dword [ebp - 0xc]
mov eax, 0xaaaaaaab
mul esi
shr edx, 0xb
mov dword [ebp + 0x14], edx
push 0xc00
push ecx
lea eax, [edi + 0x60]
push eax
push dword [ebp - 0x10]
call fcn.1011d5e0
push edi
push dword [ebp - 0x18]
push 0xc0
push dword [ebp - 8]
push dword [ebp - 4]
call dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
add ebx, 0xc0
add dword [ebp - 8], 0xc00
mov eax, ebx
shr eax, 0x18
add ecx, 0xc00
mov byte [edi + 0xc], al
add esp, 0x24
mov eax, ebx
mov byte [edi + 0xf], bl
shr eax, 0x10
sub esi, 0xc00
mov byte [edi + 0xd], al
mov eax, ebx
shr eax, 8
sub dword [ebp + 0x14], 1
mov byte [edi + 0xe], al
mov dword [ebp - 4], ecx
jne 0x1011c921
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0x1c]
mov dword [ebp + 0x14], esi
mov eax, esi
and eax, 0xfffffff0
mov dword [ebp - 0x1c], eax
je 0x1011c9f0
push eax
mov esi, eax
lea eax, [edi + 0x60]
push ecx
push eax
push dword [ebp - 0x10]
shr esi, 4
call fcn.1011d5e0
push edi
push dword [ebp - 0x18]
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
add esp, 0x24
add ecx, esi
mov esi, dword [ebp + 0x14]
mov eax, ecx
mov dword [ebp - 0xc], ecx
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xe], al
mov eax, dword [ebp - 0x1c]
add dword [ebp - 8], eax
add dword [ebp - 4], eax
sub esi, eax
mov byte [edi + 0xf], cl
test esi, esi
je 0x1011ca50
push dword [ebp - 0x18]
lea eax, [edi + 0x10]
push eax
mov eax, dword [edi + 0x170]
push edi
call eax
mov ecx, dword [ebp - 0xc]
add esp, 0xc
inc ecx
mov eax, ecx
mov byte [edi + 0xf], cl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edi + 0xe], al
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub edi, eax
lea edx, [ebx + eax]
mov eax, dword [ebp - 0x10]
lea edx, [edx + 1]
mov cl, byte [edi + edx - 1]
xor byte [eax + ebx], cl
mov al, byte [eax + ebx - 0x30]
inc ebx
xor al, cl
mov byte [edx - 1], al
sub esi, 1
jne 0x1011ca31
mov edi, dword [ebp + 8]
mov dword [edi + 0x168], ebx
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret