Function at 0x408b72
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
push ebp
mov ebp, dword [esp + 0x6c]
mov ecx, dword [ebp + 0x48c]
push esi
cmp dword [ebp + 0x488], ecx
je 0x408bb6
lea eax, [ecx + ecx*2]
shl eax, 4
mov esi, dword [eax + ebp + 0x4b4]
lea edx, [eax + ebp + 0x49c]
mov eax, esi
sub eax, ecx
mov ecx, dword [edx + 0x1c]
mov edx, dword [esp + 0x78]
mov dword [ebp + 0x48c], esi
pop esi
mov dword [edx], ecx
pop ebp
add esp, 0x64
ret
push edi
xor edi, edi
mov dword [ebp + 0x488], edi
mov dword [ebp + 0x48c], edi
cmp dword [ebp + 0x31734], edi
jne 0x408be2
lea eax, [esp + 0x10]
push eax
mov esi, ebp
call fcn.00408952
add esp, 4
mov dword [esp + 0x1c], eax
jmp 0x408bf6
mov ecx, dword [ebp + 0x490]
mov edx, dword [ebp + 0x494]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
mov eax, dword [ebp + 0x498]
mov dword [esp + 0x20], eax
cmp eax, 2
jae 0x408c1b
mov eax, dword [esp + 0x7c]
pop edi
pop esi
mov dword [eax], 0xffffffff
mov eax, 1
pop ebp
add esp, 0x64
ret
cmp eax, 0x111
jbe 0x408c2a
mov dword [esp + 0x20], 0x111
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push ecx
call edx
mov esi, eax
mov al, byte [esi - 1]
dec esi
add esp, 4
lea ecx, [ebp + 0x31738]
mov byte [esp + 0x74], al
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edi
xor eax, eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], ecx
push ebx
jmp 0x408c62
mov edx, dword [esp + 0x1c]
mov ebx, dword [edx]
mov dl, byte [esp + 0x78]
mov ecx, esi
sub ecx, ebx
dec ecx
mov dword [esp + eax + 0x54], ebx
cmp dl, byte [ecx]
jne 0x408cbd
mov dl, byte [esi + 1]
cmp dl, byte [ecx + 1]
jne 0x408cbd
mov ebx, 2
cmp dword [esp + 0x24], ebx
jbe 0x408ca1
lea edi, [esi + 2]
sub ecx, esi
nop
mov dl, byte [edi]
cmp dl, byte [ecx + edi]
jne 0x408ca1
inc ebx
inc edi
cmp ebx, dword [esp + 0x24]
jb 0x408c92
mov ecx, dword [esp + 0x38]
mov dword [esp + eax + 0x64], ebx
cmp ebx, dword [esp + ecx + 0x64]
jbe 0x408cc5
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
jmp 0x408cc5
mov dword [esp + eax + 0x64], 0
inc dword [esp + 0x28]
add dword [esp + 0x1c], 4
add eax, 4
cmp eax, 0x10
jb 0x408c62
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + ecx*4 + 0x64]
mov eax, dword [ebp + 0x31730]
mov dword [esp + 0x40], ebx
cmp ebx, eax
jb 0x408d19
mov eax, dword [esp + 0x80]
mov dword [eax], ecx
lea eax, [ebx - 1]
test eax, eax
je 0x408d0f
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
add dword [ebp + 0x31734], eax
push eax
push ecx
call edx
add esp, 8
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x64
ret
mov edi, dword [esp + 0x20]
cmp edi, eax
jb 0x408d5c
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + eax*4 + 0x30e98]
mov edx, dword [esp + 0x80]
add ecx, 4
lea eax, [edi - 1]
mov dword [edx], ecx
test eax, eax
je 0x408d52
add dword [ebp + 0x31734], eax
mov ecx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
call ecx
add esp, 8
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x64
ret
mov edx, esi
sub edx, dword [esp + 0x54]
mov dl, byte [edx - 1]
mov byte [esp + 0x13], dl
cmp edi, 2
jae 0x408d93
cmp byte [esp + 0x78], dl
je 0x408d93
cmp ebx, 2
jae 0x408d93
mov eax, dword [esp + 0x80]
pop ebx
pop edi
pop esi
mov dword [eax], 0xffffffff
mov eax, 1
pop ebp
add esp, 0x64
ret
mov ebx, dword [ebp + 0x31748]
mov eax, dword [ebp + 0x32394]
mov edi, dword [esp + 0x7c]
and edi, dword [ebp + 0x323a4]
mov dword [ebp + 0x4a0], ebx
movzx esi, byte [esi - 1]
mov ecx, 8
sub cl, al
shr esi, cl
mov ecx, dword [ebp + 0x323a0]
and ecx, dword [esp + 0x7c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x44], ecx
mov ecx, eax
mov eax, dword [esp + 0x44]
shl eax, cl
movzx ecx, byte [esp + 0x78]
add esi, eax
imul esi, esi, 0x600
add esi, dword [ebp + 0x323a8]
cmp ebx, 7
jb 0x408e06
movzx eax, dl
lea edi, [ebp + 0x30c9c]
push esi
call fcn.004084e2
mov edi, dword [esp + 0x2c]
add esp, 4
jmp 0x408e11
lea edx, [ebp + 0x30c9c]
call fcn.004084a2
mov ecx, ebx
shl ecx, 4
add ecx, edi
movzx edx, word [ebp + ecx*2 + 0x323ac]
lea ecx, [ebp + ecx*2 + 0x323ac]
shr edx, 4
mov edx, dword [ebp + edx*4 + 0x30c9c]
add edx, eax
mov dword [ebp + 0x4cc], edx
mov dl, byte [esp + 0x78]
mov dword [ebp + 0x4e8], 0xffffffff
xor esi, esi
mov dword [ebp + 0x4d4], esi
movzx eax, word [ecx]
movzx ecx, word [ebp + ebx*2 + 0x3252c]
xor ecx, 0x7f0
xor eax, 0x7f0
shr ecx, 4
mov ecx, dword [ebp + ecx*4 + 0x30c9c]
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30c9c]
add ecx, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
cmp byte [esp + 0x13], dl
jne 0x408ed0
mov eax, ebx
shl eax, 4
add eax, edi
movzx edx, word [ebp + eax*2 + 0x3258c]
movzx edi, word [ebp + ebx*2 + 0x32544]
shr edx, 4
mov eax, dword [ebp + edx*4 + 0x30c9c]
shr edi, 4
add eax, dword [ebp + edi*4 + 0x30c9c]
add eax, ecx
cmp eax, dword [ebp + 0x4cc]
jae 0x408ed0
mov dword [ebp + 0x4cc], eax
mov dword [ebp + 0x4e8], esi
mov dword [ebp + 0x4d4], esi
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
cmp ecx, eax
jb 0x408ee4
mov eax, ecx
mov dword [esp + 0x18], ecx
jmp 0x408ee8
mov dword [esp + 0x18], eax
cmp eax, 2
jae 0x408f09
mov eax, dword [ebp + 0x4e8]
mov ecx, dword [esp + 0x80]
pop ebx
pop edi
pop esi
mov dword [ecx], eax
mov eax, 1
pop ebp
add esp, 0x64
ret
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [ebp + 0x4e4], esi
mov dword [ebp + 0x4bc], edx
mov edx, dword [esp + 0x5c]
mov dword [ebp + 0x4c4], edx
mov dword [ebp + 0x4c0], ecx
mov ecx, dword [esp + 0x60]
lea edx, [eax + eax*2]
shl edx, 4
mov dword [ebp + 0x4c8], ecx
lea ecx, [edx + ebp + 0x49c]
mov dword [ecx], 0x40000000
dec eax
sub ecx, 0x30
cmp eax, 2
jae 0x408f44
xor edi, edi
mov esi, dword [esp + edi*4 + 0x64]
cmp esi, 2
jb 0x408fb7
mov ebx, dword [esp + 0x28]
mov edx, dword [ebp + 0x31748]
push ebx
mov eax, edi
mov ecx, ebp
call fcn.004089e2
imul ebx, ebx, 0x110
add eax, dword [esp + 0x48]
add ebx, esi
lea ecx, [esi + esi*2]
add esp, 4
shl ecx, 4
lea ebx, [ebp + ebx*4 + 0x37654]
lea ecx, [ecx + ebp + 0x4b8]
mov edx, dword [ebx]
add edx, eax
cmp edx, dword [ecx - 0x1c]
jae 0x408fab
mov dword [ecx - 0x1c], edx
xor edx, edx
mov dword [ecx - 4], edx
mov dword [ecx], edi
mov dword [ecx - 0x14], edx
dec esi
sub ebx, 4
sub ecx, 0x30
cmp esi, 2
jae 0x408f95
inc edi
cmp edi, 4
jb 0x408f55
mov edx, dword [ebp + 0x31748]
movzx eax, word [ebp + edx*2 + 0x3252c]
mov ebx, dword [esp + 0x64]
shr eax, 4
mov eax, dword [ebp + eax*4 + 0x30c9c]
add eax, dword [esp + 0x3c]
mov dword [esp + 0x44], eax
cmp ebx, 2
jb 0x408fe9
inc ebx
jmp 0x408fee
mov ebx, 2
cmp ebx, dword [esp + 0x20]
ja 0x4090f0
xor edi, edi
mov dword [esp + 0x78], edi
cmp ebx, dword [ebp + 0x30e9c]
jbe 0x409016
add edi, 2
cmp ebx, dword [ebp + edi*4 + 0x30e9c]
ja 0x409006
mov dword [esp + 0x78], edi
mov ecx, dword [esp + 0x28]
imul ecx, ecx, 0x110
add ecx, ebx
lea ecx, [ebp + ecx*4 + 0x32e0c]
lea edx, [ebx + ebx*2]
shl edx, 4
mov dword [esp + 0x28], ecx
lea ecx, [edx + ebp + 0x4b8]
mov edx, dword [esp + 0x28]
mov edx, dword [edx]
mov esi, dword [ebp + edi*4 + 0x30ea0]
add edx, eax
mov dword [esp + 0x38], ecx
lea eax, [ebx - 2]
cmp ebx, 5
jb 0x40905a
mov eax, 3
cmp esi, 0x80
jae 0x409070
shl eax, 7
add eax, esi
add edx, dword [ebp + eax*4 + 0x31b4c]
jmp 0x4090b3
mov ecx, 0x1ffff
sub ecx, esi
shr ecx, 0x1f
neg ecx
and ecx, 0xa
add ecx, 6
mov edi, esi
shr edi, cl
shl eax, 5
add eax, ecx
mov ecx, esi
movzx edi, byte [edi + ebp + 0x3049c]
lea eax, [edi + eax*2]
mov eax, dword [ebp + eax*4 + 0x3174c]
mov edi, dword [esp + 0x78]
and ecx, 0xf
add eax, dword [ebp + ecx*4 + 0x3234c]
mov ecx, dword [esp + 0x38]
add edx, eax
cmp edx, dword [ecx - 0x1c]
jae 0x4090c8
xor eax, eax
add esi, 4
mov dword [ecx - 0x1c], edx
mov dword [ecx - 4], eax
mov dword [ecx], esi
mov dword [ecx - 0x14], eax
cmp ebx, dword [ebp + edi*4 + 0x30e9c]
jne 0x4090de
add edi, 2
mov dword [esp + 0x78], edi
cmp edi, dword [esp + 0x14]
je 0x4090f0
add dword [esp + 0x28], 4
mov eax, dword [esp + 0x44]
inc ebx
add ecx, 0x30
jmp 0x40903a
mov eax, 1
mov dword [esp + 0x14], eax
cmp dword [esp + 0x18], eax
je 0x409de4