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

Disassembly:
sub esp, 0x40
mov ecx, dword [esp + 0x54]
xor edx, edx
push ebx
mov ebx, dword [esp + 0x48]
push ebp
mov ebp, ebx
mov dword [esp + 0x14], 1
shl ebp, 2
push esi
mov esi, dword [0x60dfe0]
push edi
mov al, byte [ecx + ebp]
add al, 0xb
mov edi, dword [0x60dfc0]
mov byte [esp + 0x13], al
mov eax, dword [0x60e020]
mov dword [esp + 0x2c], ebp
mov eax, dword [ecx + eax*4 + 0x10]
mov cx, si
mov dword [esp + 0x44], eax
add esi, esi
mov eax, dword [0x60dfd8]
sub cx, word [eax + ebp]
movzx eax, cx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov eax, dword [eax + edi*4 + 0x48]
div dword [ecx + 0x1098]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + ebp]
imul ecx, dword [0x60dfc4], 6
mov dword [esp + 0x3c], eax
movzx eax, byte [0x60dfbc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
imul eax, dword [eax + esi*8], 0x95f
mov esi, dword [esp + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [0x60e010]
movzx ebp, word [esi + edi*2]
mov dword [esp + 0x34], ebp
movzx eax, word [ecx + eax]
mov ecx, dword [esp + 0x64]
cdq
idiv dword [ecx + 0x5b00]
mov eax, dword [0x60e034]
mov dword [esp + 0x30], eax
imul eax, ebx, 6
imul ecx, edi, 0xc
mov dword [esp + 0x28], edx
xor edx, edx
mov dword [esp + 0x40], eax
movzx eax, word [eax + esi]
mov dword [esp + 0x4c], eax
mov eax, dword [0x60dfb4]
mov eax, dword [ecx + eax + 4]
mov ecx, 0x1f16
div ecx
movzx eax, word [0x60dfe4]
mov ecx, dword [esp + 0x24]
imul eax, ecx
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
movzx eax, byte [ecx]
cmp eax, dword [edx + ebx*4 + 0x1c]
jl 0x404236
imul ecx, dword [0x60e008], 3
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x28]
imul esi, dword [0x60e024], 6
mov edi, dword [esp + 0x2c]
movzx eax, byte [ecx + eax + 1]
mov ecx, dword [esp + 0x40]
movzx ecx, word [ecx + edx]
xor edx, edx
div ecx
mov eax, dword [0x60dff4]
movzx ecx, word [esp + 0x14]
add dx, word [eax + ecx*4 + 0x18]
and word [esi + 0x9b7], dx
dec dword [0x60e024]
movzx eax, byte [ebp]
mov ecx, dword [esp + 0x18]
mov esi, dword [0x60e030]
movzx ecx, byte [eax + ecx]
mov eax, dword [0x60e004]
mov eax, dword [edi + eax]
add eax, 2
cdq
idiv ecx
xor dword [edi + esi], eax
jmp 0x404596
mov eax, dword [0x60dfcc]
mov edx, dword [esp + 0x5c]
movzx eax, byte [eax + edx]
cmp dword [esp + 0x30], eax
je 0x404401
movzx eax, byte [ecx + 1]
cmp eax, 0x1a1e
jae 0x404401
add dword [esp + 0x14], 0xffff
mov eax, 0x1446
and word [esi + 0x2c], ax
mov eax, dword [0x60dfd0]
movzx edi, word [esp + 0x14]
imul esi, ebx, 0xc
mov bl, byte [esp + 0x13]
movzx ecx, bl
xor byte [edi + eax + 1], 0x29
mov eax, dword [0x60dfd8]
add esi, dword [esp + 0x60]
movzx edx, byte [0x60dfbd]
mov eax, dword [eax + ecx*4 + 0x8c]
sub eax, edx
mov ecx, dword [esp + 0x34]
xor edx, edx
div dword [esi]
dec bl
xor edx, edx
mov dword [esi], eax
mov eax, dword [esp + 0x3c]
mov esi, dword [0x60e01c]
movzx ebp, bl
mov byte [esp + 0x13], bl
mov ebx, dword [eax + ebp*4]
movzx eax, byte [ecx]
sub ebx, edi
movzx edi, byte [edi + ecx]
mov ecx, dword [esp + 0x20]
xor edi, dword [ecx + eax*4 + 0x24]
mov eax, esi
mov ecx, 0x1e51
div ecx
dec esi
mov ecx, eax
mov dword [0x60e01c], esi
mov eax, dword [esp + 0x5c]
movzx eax, byte [eax + 1]
push eax
push ecx
push edi
push 1
push dword [0x60dffc]
push ebx
call fcn.00415000
mov ecx, dword [esp + 0x78]
xor edx, edx
movzx eax, ax
mov dword [esp + 0x2c], eax
mov eax, dword [0x60dfa4]
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x6c]
mov eax, dword [eax + 8]
div dword [ecx + 8]
mov ecx, dword [esp + 0x5c]
xor edx, edx
div dword [edi + ecx]
mov dx, word [esp + 0x2c]
mov ecx, eax
mov eax, dword [esp + 0x60]
movzx eax, byte [eax + ebx]
xor cx, ax
mov eax, dword [0x60e008]
add dx, cx
mov ecx, dword [esp + 0x80]
movzx esi, dx
mov ecx, dword [ecx + eax*4]
mov eax, dword [0x60e010]
mov al, byte [eax + esi*2]
mov byte [esp + 0x6c], al
push dword [esp + 0x6c]
push ecx
push 0x201
push 0xff3
call fcn.00415528
mov ecx, dword [0x60e030]
add esp, 0x28
imul edx, ebp, 0xc
mov dword [edx + ecx], eax
mov eax, dword [esp + 0x30]
imul eax, dword [edi + eax], 0x33b
cdq
idiv esi
mov ebp, dword [esp + 0x34]
movzx eax, dx
mov dword [esp + 0x14], eax
mov byte [esp + 0x1c], 3
movzx eax, byte [ebp]
inc ebp
cmp dword [eax*4 + 0x148], 2
jg 0x4043be
mov eax, dword [esp + 0x24]
movzx ecx, byte [ebp]
mov edx, dword [esp + 0x60]
movzx eax, byte [eax + ebx]
cmp eax, dword [edx + ecx*4]
jle 0x4043d6
movzx ecx, word [esp + 0x14]
mov edx, dword [esp + 0x68]
add ecx, ecx
movzx eax, word [0x60dfe4]
cmp dword [edx + ecx*8 + 4], eax
jae 0x4043eb
mov eax, dword [0x60e008]
mov ecx, dword [esp + 0x18]
movzx eax, byte [eax + ecx]
cmp dword [0x60dff0], eax
je 0x4043fb
mov ecx, dword [esp + 0x38]
inc ebx
imul eax, ebx, 0xc
mov dword [eax + ecx + 0x10], 0x168a
mov edi, dword [0x60dfc0]
mov eax, dword [esp + 0x1c]
add edi, edi
mov ecx, dword [esp + 0x60]
movzx esi, al
mov eax, dword [esp + 0x64]
mov eax, dword [eax + esi*4]
cdq
idiv dword [ecx + edi*8]
movzx eax, word [esp + 0x14]
mov edi, dword [esp + 0x68]
sub edx, eax
add edx, 0x4d2
or dword [edi + esi*4], edx
movzx eax, byte [ebp]
movzx ecx, byte [eax + ebp]
mov eax, dword [esp + 0x18]
movzx eax, byte [eax + 0x117b]
xor ecx, eax
mov eax, dword [esp + 0x4c]
imul ecx, dword [0x60dfc0]
mov dword [0x60dfc0], ecx
mov byte [esi + ebp], al
mov eax, dword [esp + 0x1c]
movzx ecx, byte [0x60dfbc]
inc al
or ecx, dword [0x60dfe0]
movzx edx, al
mov al, bl
sub al, byte [esp + 0x14]
sub al, byte [0x60dfc8]
add dword [esp + 0x14], 0xffff
xor ecx, dword [edi + edx*4]
sub ecx, dword [0x60dfe0]
movzx esi, word [esp + 0x14]
mov dword [0x60dfe0], ecx
mov ecx, dword [esp + 0x5c]
mov byte [edx + ecx + 0x26], al
inc word [0x60dfc8]
mov eax, dword [esp + 0x60]
movzx ecx, byte [esp + 0x13]
mov ax, word [eax + esi*4]
and word [ecx + ecx + 0x9b7], ax
mov eax, dword [0x60dfe0]
mov ecx, dword [esp + 0x38]
dec eax
mov dword [0x60dfe0], eax
lea esi, [ecx + eax*4]
imul eax, dword [0x60dfc0], 0xc
imul ecx, edx, 0xc
mov edx, dword [esp + 0x20]
mov eax, dword [eax + edx]
mov edx, dword [esp + 0x3c]
sub eax, dword [ecx + edx]
xor edx, edx
mov ecx, dword [esp + 0x58]
movzx ecx, word [ecx + 0x27ec]
add eax, ecx
div dword [esi + 0x90]
mov dword [esi + 0x90], eax
mov ecx, dword [0x60e020]
mov eax, dword [0x60dff8]
mov esi, dword [eax + ecx*4]
dec ecx
mov dword [0x60e020], ecx
cmp esi, dword [0x60dfac]
jb 0x404596
mov edi, dword [esp + 0x24]
mov eax, dword [0x60e008]
mov edx, dword [esp + 0x28]
mov ecx, dword [0x60dfd0]
movzx eax, word [edx + eax*2 + 0x1a]
cdq
idiv esi
sub al, byte [esi + ecx]
mov byte [esi + ecx], al
movzx eax, byte [ebx + ebp]
push eax
push esi
call fcn.00415420
movzx edx, word [esp + 0x1c]
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
mov byte [edx + ecx], al
mov ecx, esi
mov eax, dword [0x60dff8]
and ecx, 0x1ebd
xor edx, edx
mov dword [eax + esi*4], ecx
mov ecx, 0xed0
mov eax, dword [esp + 0x28]
movzx eax, word [eax + esi*2]
div ecx
movzx ecx, byte [esi + edi]
xor edx, dword [0x60dfec]
mov eax, edx
cdq
idiv ecx
mov byte [esi + edi], dl
inc dword [0x60dfec]
inc esi
cmp esi, dword [0x60dfac]
jae 0x40451e
mov eax, dword [0x60e008]
pop edi
dec eax
pop esi
mov dword [0x60e008], eax
sub eax, ebx
pop ebp
pop ebx
add esp, 0x40
ret