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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, dword [0x4bd59c]
mov eax, edi
xor eax, dword [0x4bd5a4]
mov dword [esp + 0x3c], eax
mov eax, dword [0x4bd5a8]
mov ebp, dword [0x4bd5ec]
mov edx, dword [esp + 0x8c]
mov esi, dword [esp + 0x84]
movzx ecx, word [eax + 0x3702]
movzx eax, word [0x4bd57c]
add ecx, eax
mov eax, dword [0x4bd564]
inc eax
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x70]
mov dword [0x4bd564], eax
mov eax, dword [ecx + eax*4]
imul eax, dword [0x4bd5f0]
mov cx, word [0x4bd590]
mov dword [esp + 0x1c], eax
mov eax, 0xffff
add cx, ax
dec dword [0x4bd5b0]
mov eax, dword [esp + 0x74]
mov word [0x4bd590], cx
movzx eax, word [eax + ebp*2]
mov dword [esp + 0x10], eax
movzx eax, dx
mov ebx, dword [esi + eax*4 + 4]
mov eax, dword [0x4bd5bc]
sub ebx, eax
inc eax
mov dword [esp + 0x5c], ebx
mov dword [0x4bd5bc], eax
inc edx
movzx eax, cx
movzx ebx, dx
mov dword [esp + 0x8c], edx
xor edx, edx
div ebx
mov ecx, dword [0x4bd5cc]
mov eax, ecx
xor eax, 0x17b3
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], eax
inc ecx
mov eax, dword [0x4bd584]
mov dword [esp + 0x18], eax
mov dword [0x4bd5cc], ecx
mov cx, word [0x4bd5c8]
movzx eax, cx
mov eax, dword [esi + eax*4]
cdq
idiv dword [esp + 0x94]
mov esi, dword [0x4bd594]
inc cx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x18]
mov word [0x4bd5c8], cx
or eax, 0x1d3
movzx edx, cx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x38], eax
imul eax, dword [ecx + edx*4], 0x83
mov ecx, dword [0x4bd5d4]
mov dword [esp + 0x44], eax
mov eax, dword [0x4bd56c]
and eax, 0x525
inc ecx
mov dword [esp + 0x20], eax
mov eax, dword [0x4bd58c]
mov dword [0x4bd5d4], ecx
mov edi, dword [eax + edi*8]
mov eax, dword [esi + 0x6ac0]
xor edi, ecx
mov dword [esp + 0x24], eax
imul eax, ebx, 0xc
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x88]
mov eax, dword [eax + ecx]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x90]
imul ecx, ebp, 0xc
dec ebp
mov eax, dword [ecx + eax]
mov ecx, dword [0x4bd5b0]
mov dword [esp + 0x78], eax
mov eax, 0x98f
cdq
mov dword [0x4bd5ec], ebp
idiv dword [esi + ecx*4]
movzx eax, word [0x4bd5e0]
mov ecx, 0xc3b
mov dword [esp + 0x90], eax
mov esi, edx
movzx eax, word [ebx + 0x5e]
xor edx, edx
div ecx
mov eax, dword [0x4bd598]
mov ecx, 0x19c4
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 0x84], esi
xor word [edi + eax*2], cx
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x78]
movzx ecx, byte [eax + 0xe5e]
xor ecx, dword [0x4bd584]
mov eax, dword [0x4bd564]
mov dword [edx + eax*4 + 0x20], ecx
mov eax, dword [0x4bd5cc]
movzx ecx, word [0x4bd5ac]
dec eax
mov dword [0x4bd5cc], eax
cdq
idiv ecx
mov eax, dword [0x4bd5dc]
mov word [0x4bd5ac], dx
xor edx, edx
lea ecx, [edi + eax*4]
movzx eax, word [0x4bd5a0]
div dword [ecx]
mov dword [ecx], edx
mov edx, dword [0x4bd598]
mov ecx, dword [esp + 0x18]
imul eax, edx, 3
movzx ebp, byte [eax + ecx]
mov dword [esp + 0x78], ebp
cmp ebp, 0xeae
jge 0x404edd
mov eax, dword [esp + 0x90]
movzx eax, ax
mov dword [esp + 0x40], eax
mov eax, ebp
sub eax, dword [esp + 0x94]
mov dword [esp + 0x14], eax
lea eax, [ebx + ebp*2]
imul ecx, ebp, 0xc
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x28]
add ecx, edi
sub eax, ebx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], eax
movzx ebp, word [ebx + ebp*8]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x7c]
movzx eax, word [eax + 0x3400]
mov dword [esp + 0x30], eax
movzx eax, word [ebx]
imul eax, eax, 6
movzx ebx, word [eax + ebx]
mov eax, dword [0x4bd5a4]
or ebx, esi
dec eax
mov dword [0x4bd5a4], eax
movzx ecx, byte [edx + ecx]
cdq
idiv ecx
movzx edx, word [0x4bd5a0]
or edx, dword [esp + 0x78]
imul ecx, esi, 0xc
mov esi, dword [ecx + 0x1a50]
movzx ecx, word [0x4bd57c]
add esi, dword [esp + 0x40]
dec dword [0x4bd598]
push ecx
push edx
push 0x1d75
push esi
push 0x1c18
push eax
movzx eax, word [0x4bd580]
push edi
push ebx
push ebp
push dword [esp + 0x54]
push eax
call fcn.00403e0d
mov edx, dword [0x4bd588]
add esp, 0x2c
mov ecx, dword [0x4bd598]
mov ebp, dword [esp + 0x78]
mov esi, dword [esp + 0x84]
mov dword [edx + ecx*4], eax
xor edx, edx
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x24]
inc eax
movzx ebx, ax
dec esi
mov dword [esp + 0x8c], eax
mov eax, ebx
add eax, eax
mov dword [esp + 0x84], esi
mov eax, dword [ecx + eax*8]
div dword [0x4bd5ec]
xor edx, edx
imul ecx, esi, 6
div dword [ebp*4 + 0x1a50]
mov word [ecx + 0x1369], ax
movzx eax, word [0x4bd5ac]
mov ecx, dword [0x4bd578]
imul esi, eax, 0xc
mov eax, dword [0x4bd5e4]
cdq
mov edi, dword [0x4bd5d0]
idiv dword [esi + ecx]
mov esi, dword [esp + 0x7c]
mov eax, edx
cdq
movzx ecx, byte [edi + esi]
idiv ecx
mov eax, dword [esp + 0x10]
mov ecx, 0x154c
mov byte [edi + esi], dl
inc dword [0x4bd5d0]
mov edi, dword [esp + 0x84]
movzx eax, word [eax]
imul esi, eax, 6
xor edx, edx
mov eax, dword [esp + 0x44]
mov eax, dword [eax + edi*4 + 0x1c]
div ecx
imul edx, dword [ebx*4 + 0x1a50]
mov ebx, dword [esp + 0x1c]
movzx ecx, word [esi + ebx]
mov eax, edx
xor edx, edx
div ecx
mov word [esi + ebx], dx
mov ecx, dword [0x4bd5f0]
mov esi, dword [esp + 0x90]
inc ecx
mov ebx, dword [esp + 0x24]
mov dword [0x4bd5f0], ecx
movzx edx, bp
mov ax, dx
mov dword [esp + 0x58], edx
sub ax, word [esi]
add ax, cx
mov ecx, dword [esp + 0x10]
mov word [esi], ax
movzx eax, word [ecx]
mov ebx, dword [ebx + eax*4]
mov dword [esp + 0x30], ebx
cmp ebx, ebp
jne 0x404e9e
movzx eax, word [ecx]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x3c]
mov cx, word [ecx + eax*2]
add cx, dx
mov edx, dword [esp + 0x8c]
movzx eax, dx
add edx, 0xffff
imul eax, eax, 6
mov dword [esp + 0x8c], edx
mov edx, dword [esp + 0x94]
mov word [eax + 0x1369], cx
mov eax, dword [esp + 0x14]
movzx ecx, byte [edx + eax + 0x3c4]
movzx eax, word [0x4bd5ac]
imul eax, eax, 0xc
mov dword [eax + ebp], ecx
mov ecx, 0x1557
mov bp, word [0x4bd5ac]
mov eax, dword [esp + 0x70]
inc bp
mov word [0x4bd5ac], bp
dec edi
mov dword [esp + 0x84], edi
mov eax, dword [eax + edi*4]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x48]
movzx eax, word [eax + ebx*2]
and eax, 0x1c21
mov dword [esp + 0x50], eax
mov eax, dword [0x4bd598]
dec eax
mov dword [0x4bd598], eax
imul eax, eax, 6
movzx eax, word [eax + edx*2]
xor edx, edx
div ecx
mov eax, dword [esp + 0x28]
mov ebx, edx
mov edx, dword [esp + 0x78]
or edx, dword [0x4bd5f0]
movzx ecx, word [eax]
imul eax, ecx, 3
movzx edi, byte [eax + edi]
mov eax, dword [esp + 0x4c]
movzx esi, word [eax + esi]
mov eax, dword [esp + 0x8c]
movzx eax, ax
xor esi, eax
mov eax, dword [esp + 0x7c]
movzx ecx, byte [ecx + eax]
movzx eax, bp
mov ebp, dword [esp + 0x2c]
movzx eax, byte [eax + 0x3c4]
xor ecx, eax
mov eax, ebp
or eax, 0x67b
dec ebp
push eax
dec dword [0x4bd5dc]
push ecx
push esi
push edi
push edx
push ebx
push dword [esp + 0x68]
mov dword [esp + 0x48], ebp
push dword [esp + 0x30]
mov ebp, dword [esp + 0x98]
push ebp
push dword [esp + 0x78]
push 0x2be
call fcn.00403e0d
mov edx, dword [0x4bd5dc]
add esp, 0x2c
mov ecx, dword [0x4bd5e8]
mov ebx, dword [esp + 0x30]
inc ebx
mov dword [esp + 0x30], ebx
mov dword [ecx + edx*4], eax
mov esi, dword [esp + 0x90]
mov edi, dword [esp + 0x84]
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
cmp ebx, ebp
je 0x404d43
mov ecx, dword [esp + 0x34]
add esi, 2
inc ebp
mov dword [esp + 0x90], esi
mov esi, dword [esp + 0x84]
add ecx, 0xc
inc dword [esp + 0x14]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x34], ecx
cmp ebp, 0xeae
jge 0x404edd
mov ebx, dword [esp + 0x88]
mov edx, dword [0x4bd598]
jmp 0x404bb2
mov ebx, dword [esp + 0x38]
mov edx, dword [0x4bd564]
mov edi, dword [esp + 0x20]
imul esi, esi, 0xc
cmp edx, dword [esi + ebx]
je 0x404f53
mov ebp, dword [esp + 0x94]
mov ecx, dword [esp + 0x7c]
mov eax, 0x1825
movzx eax, byte [eax]
movzx ecx, byte [eax + ecx + 0x1b]
movzx eax, word [edi + ebp*2]
xor ecx, eax
and ecx, edx
imul eax, ecx, 0x102f
sub eax, dword [ebx + edx*4]
mov dword [ebx + edx*4], eax
mov eax, 0xbb0
sub eax, edx
and dword [0x4bd5ec], eax
mov eax, dword [0x4bd5d8]
dec eax
mov dword [0x4bd5d8], eax
sub eax, edx
imul eax, eax, 0x82
xor ax, word [ebp*4 + 0x1ac0]
inc edx
mov word [0x4bd5b4], ax
cmp edx, dword [esi + ebx]
jne 0x404efa
mov ebp, dword [esp + 0x5c]
mov eax, 0x1825
movzx ecx, byte [eax]
mov eax, dword [esp + 0x84]
shl eax, 2
mov dword [esp + 0x7c], eax
mov eax, dword [0x4bd5dc]
mov dword [esp + 0x78], ecx
mov ebp, dword [ebp + eax*4 + 0x10]
movzx eax, word [0x4bd5c8]
mov dword [esp + 0x70], ebp
mov ebp, dword [esp + 0x7c]
movzx ebx, word [edi + eax*2]
movzx eax, byte [ecx + 0x1825]
cdq
idiv dword [0x4bd5cc]
mov eax, dword [esp + 0x60]
mov edi, edx
mov dword [esp + 0x94], ebx
inc eax
mov ebx, dword [esp + 0x38]
xor edx, edx
movzx ecx, word [0x2c23]
div dword [0x4bd584]
mov edx, dword [esp + 0x80]
mov esi, eax
add ecx, dword [0x4bd5d4]
mov eax, dword [esp + 0x8c]
movzx eax, ax
mov eax, dword [edx + eax*4]
xor edx, edx
div dword [ebx + ebp]
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x84]
push esi
push edi
push dword [eax + 0x3cf0]
mov eax, dword [esp + 0x8c]
movzx ecx, word [ecx + edx]
push dword [0x4bd5d8]
mov ebx, dword [esp + 0xac]
movzx eax, word [edx + eax*2]
xor edx, edx
div ecx
mov ebp, dword [esp + 0x88]
push ebx
push 0x1cfc
push 0x1a00
push ebp
push edx
call fcn.00403e0d
mov ecx, dword [esp + 0x44]
add esp, 0x2c
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x20]
movzx ecx, byte [ecx]
mov dword [edx + ecx*4 + 0x14], eax
mov eax, 0x710
sub eax, dword [0x4bd584]
xor edx, edx
mov ecx, dword [esp + 0x88]
mov dword [0x4bd584], eax
mov eax, 0xffff
add word [ebp], ax
mov eax, dword [esp + 0x8c]
movzx ebx, ax
movzx eax, word [0x4bd5c8]
mov esi, dword [0x4bd5e8]
imul edi, ebx, 0xc
movzx ecx, word [ecx + eax*2]
mov eax, 0x3bc
div ecx
imul ecx, dword [0x4bd584], 0xc
mov edx, dword [esp + 0x24]
sub eax, 0x1a32
xor eax, dword [ecx + edx]
add dword [edi + esi], eax
movzx edx, word [ebp]
mov ecx, dword [0x4bd584]
mov eax, dword [0x4bd5e8]
mov esi, dword [esp + 0x68]
pop edi
mov cl, byte [eax + ecx*4]
mov eax, dword [esp + 0x14]
sub cl, byte [ebx + eax + 3]
movzx eax, byte [esi + edx*4]
or cl, 0x1a
movzx ecx, cl
imul ecx, eax
mov byte [esi + edx*4], cl
mov eax, dword [0x4bd5b0]
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret