Function at 0x1117800
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x288
mov ebx, dword [0x112cec4]
mov ebp, dword [0x112cec0]
mov eax, ebp
or eax, ebx
jne 0x11178ce
mov dword [esp + 0x58], 0x51fa4fe2
mov dword [esp + 0x5c], 0x55fe53f4
mov dword [esp + 0x60], 0x593857f8
mov dword [esp + 0x64], 0x5df65bfc
mov dword [esp + 0x68], 0xa15e5ff0
mov word [esp + 0x6c], 0
mov dword [esp + 0x158], 0
mov eax, dword [esp + 0x158]
cmp eax, 0x15
ja 0x11178aa
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x158]
movzx eax, byte [esp + eax + 0x58]
push dword [esp + 0x158]
push eax
call fcn.01118270
add esp, 8
mov ecx, dword [esp + 0x158]
mov byte [esp + ecx + 0x58], al
inc dword [esp + 0x158]
mov eax, dword [esp + 0x158]
cmp eax, 0x16
jb 0x1117870
lea eax, [esp + 0x58]
push eax
call fcn.01117430
add esp, 4
mov ebp, eax
mov dword [0x112cec4], edx
mov dword [0x112cec0], eax
or eax, edx
je 0x11179a8
mov ebx, edx
lea eax, [esp + 0x248]
push 0x40
push eax
push ebx
push ebp
call fcn.01117210
add esp, 0x10
test eax, eax
js 0x11179a8
mov eax, dword [esp + 0x284]
mov ecx, eax
sar ecx, 0x1f
add eax, ebp
adc ecx, ebx
add eax, 0x18
adc ecx, 0
lea edx, [esp + 0x158]
push 0xf0
push edx
push ecx
push eax
call fcn.01117210
add esp, 0x10
xor edi, edi
test eax, eax
js 0x11179aa
cmp dword [esp + 0x1cc], 0
je 0x11179aa
mov eax, dword [esp + 0x1c8]
mov esi, 0
test eax, eax
je 0x11179ac
add eax, ebp
mov ecx, ebx
adc ecx, 0
lea edx, [esp + 0x30]
push 0x28
push edx
push ecx
push eax
call fcn.01117210
add esp, 0x10
test eax, eax
js 0x11179a8
mov ecx, dword [esp + 0x44]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x1117971
mov eax, esi
push eax
call fcn.010dc790
add esp, 4
mov edx, dword [esp + 0x4c]
add edx, ebp
mov ecx, ebx
adc ecx, 0
push esi
mov dword [esp + 0x14], eax
push eax
push ecx
push edx
call fcn.01117210
add esp, 0x10
test eax, eax
js 0x11179bb
mov eax, dword [esp + 0x44]
test eax, eax
jns 0x11179c4
mov eax, 0xffffffff
jmp 0x11179c6
xor edi, edi
xor esi, esi
mov eax, edi
mov edx, esi
add esp, 0x288
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
xor esi, esi
jmp 0x1117bf8
add eax, eax
push eax
call fcn.010dc790
add esp, 4
mov esi, dword [esp + 0x48]
add esi, esi
mov ecx, dword [esp + 0x54]
add ecx, ebp
mov edx, ebx
adc edx, 0
push esi
mov dword [esp + 0x10], eax
push eax
push edx
push ecx
call fcn.01117210
add esp, 0x10
test eax, eax
js 0x1117be8
mov ecx, dword [esp + 0x48]
lea esi, [ecx*4]
mov eax, 0xffffffff
cmp ecx, 0x40000000
jae 0x1117a12
mov eax, esi
push eax
call fcn.010dc790
add esp, 4
mov edi, eax
mov eax, dword [esp + 0x50]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push esi
push edi
push ecx
push eax
call fcn.01117210
add esp, 0x10
test eax, eax
mov dword [esp + 8], edi
js 0x1117bd6
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
cmp esi, eax
jb 0x1117a4e
mov esi, eax
test esi, esi
je 0x1117bd6
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], esi
jmp 0x1117a91
mov edx, 0xb14a5e2
cmp edx, dword [esp + 0x29c]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
je 0x1117c09
mov eax, dword [esp + 0x14]
inc eax
cmp eax, esi
je 0x1117bd6
mov dword [esp + 0x14], eax
mov eax, dword [edi + eax*4]
add eax, ebp
mov ecx, ebx
adc ecx, 0
push 0x100
lea edx, [esp + 0x5c]
push edx
push ecx
push eax
call fcn.01117210
add esp, 0x10
test eax, eax
jns 0x1117abe
cmp eax, 0x8000000d
jne 0x1117a84
mov ebx, 0xffffffff
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, eax
cmp byte [esp + ebx + 0x59], 0
lea ebx, [ebx + 1]
lea eax, [eax + 1]
jne 0x1117ad0
mov dword [esp + 0x18], 0x626664c9
mov byte [esp + 0x1c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x1117b26
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x18]
push dword [esp]
push eax
call fcn.011182f0
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x18], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x1117b00
test ebx, ebx
je 0x1117a66
mov ecx, dword [esp + 0x18]
mov eax, ecx
not eax
mov edx, 0xb14a5e2
lea ebp, [esp + 0x58]
cmp ebx, 1
je 0x1117ba8
and esi, 0xfffffffe
mov dword [esp + 4], eax
nop
nop
nop
nop
nop
mov dword [esp + 0x2c], ebp
movsx edi, byte [ebp]
xor edi, edx
mov edx, edi
or edx, ecx
mov eax, edi
and eax, ecx
imul eax, edx
mov edx, edi
not edx
and edx, ecx
and edi, dword [esp + 4]
mov ebp, dword [esp + 0x2c]
imul edi, edx
add edi, eax
movsx edx, byte [ebp + 1]
add ebp, 2
xor edx, edi
mov eax, edx
or eax, ecx
mov edi, edx
and edi, ecx
imul edi, eax
mov eax, edx
not eax
and eax, ecx
and edx, dword [esp + 4]
imul edx, eax
add edx, edi
add esi, 0xfffffffe
jne 0x1117b50
mov edi, dword [esp + 8]
mov eax, dword [esp + 4]
test bl, 1
je 0x1117a6b
mov ebx, eax
movsx eax, byte [ebp]
xor edx, eax
mov eax, edx
or eax, ecx
mov esi, edx
and esi, ecx
imul esi, eax
mov eax, edx
not eax
and eax, ecx
and edx, ebx
imul edx, eax
add edx, esi
jmp 0x1117a6b
xor edi, edi
xor esi, esi
push dword [esp + 8]
call fcn.010dc7a0
add esp, 4
jmp 0x1117bec
xor edi, edi
xor esi, esi
push dword [esp + 0xc]
call fcn.010dc7a0
add esp, 4
push dword [esp + 0x10]
call fcn.010dc7a0
add esp, 4
jmp 0x11179ac
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x10]
add ebp, dword [ecx + eax*4]
adc ebx, 0
mov edi, ebp
mov esi, ebx
jmp 0x1117bda