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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf0
cmp dword [ecx + 0x20], 0
je 0x409d47
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x409d4e
cmp al, 0x64
jb 0x409d5d
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx ecx, cx
shr ecx, 0xc
imul edx, ecx, 0x64
sub al, dl
movzx eax, al
mov edx, eax
and edx, 0x7d
mov edi, eax
and edi, 2
or eax, 2
imul eax, edi
xor edi, 2
imul edi, edx
movzx eax, word [edi + eax + 0x43e528]
mov word [esp + 0xd], ax
mov edx, 1
mov eax, ecx
jmp 0x409d66
mov bl, 1
jmp 0x40a387
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0x409da8
mov edx, 3
cmp al, 9
ja 0x409d7d
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ecx, [esp + edx]
add ecx, 0xb
mov dword [esp + 0x2c], ecx
mov byte [esp + edx + 0xb], al
jmp 0x409da8
mov ecx, eax
and ecx, 0x7d
mov edx, eax
and edx, 2
or eax, 2
imul eax, edx
xor edx, 2
imul edx, ecx
movzx eax, word [edx + eax + 0x43e528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406d20
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x34], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.00434980
add esp, 4
mov dword [esp + 0x30], edi
lea eax, [edi + 0x800]
push eax
call fcn.00408c00
add esp, 4
mov edi, eax
mov dword [esp + 0x38], 0xb7b386b0
mov byte [esp + 0x3c], 4
mov dword [esp + 0x3d], 0
mov word [esp + 0x41], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x409e5b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax + 0x6b081f2c]
add eax, 0x2c
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xcc
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x409e20
lea eax, [esp + 0x38]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.004095d0
mov dword [esp + 0x38], 0xd37c7a46
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov word [esp + 0x44], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xd
ja 0x409ee7
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax + 0x23]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add eax, 0xac7f3723
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 0xa
and eax, 0xa
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xe
jb 0x409ea0
mov ecx, esi
push dword [esp + 0x2c]
push ebx
push edi
call fcn.004095d0
mov eax, dword [str.LGNDR1__]
mov dword [esp + 0x38], 0xb316080c
mov dword [esp + 0x3c], 0
mov word [esp + 0x40], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 9
ja 0x409f80
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x38]
lea ebx, [ecx + 0x98]
and ebx, edx
add ecx, edx
add ebx, ebx
sub ecx, ebx
add ecx, 0x28015b98
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add cl, 0xd8
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x38], cl
mov ecx, dword [esp + 4]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
cmp ecx, 0xa
jb 0x409f30
mov ecx, esi
push eax
lea ebx, [esp + 0x3c]
push ebx
push edi
call fcn.004095d0
mov dword [esp + 0x38], 0x1f661e53
mov dword [esp + 0x3c], 0x6a1b621b
mov dword [esp + 0x40], 0x1469126b
mov byte [esp + 0x44], 0xf2
mov dword [esp + 0x45], 0
mov dword [esp + 0x48], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x13
ja 0x40a00d
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax - 0x33112061]
add eax, 0x9f
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xa7
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x14
jb 0x409fd0
mov dword [esp + 0x10], 0x33a69291
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 9
ja 0x40a073
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
add eax, 0xa9867488
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x48
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xa
jb 0x40a040
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.004095d0
mov dword [esp + 0x38], 0xfce4faf8
mov byte [esp + 0x3c], 0x52
mov dword [esp + 0x3d], 0
mov dword [esp + 0x40], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x40a0fa
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax + 0xb3]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0xec6729b3
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 0x1a
and eax, 0x1a
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x40a0b0
mov ecx, esi
push dword [esp + 0x30]
push dword [esp + 0x38]
push ebx
push edi
call fcn.00409860
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0x63cd6123
mov dword [esp + 0x3c], 0x67f265ca
mov dword [esp + 0x40], 0x6bc469cd
mov dword [esp + 0x44], 0x6f036df8
mov dword [esp + 0x48], 0x53cb51e4
mov dword [esp + 0x4c], 0x57f355c4
mov dword [esp + 0x50], 0x5b3a5902
mov dword [esp + 0x54], 0x5fcb5df1
mov dword [esp + 0x58], 0x43d641ec
mov dword [esp + 0x5c], 0x47d645ed
mov dword [esp + 0x60], 0x4bd849e9
mov dword [esp + 0x64], 0x4f214dd8
mov dword [esp + 0x68], 0xb31db116
mov dword [esp + 0x6c], 0xb71bb526
mov dword [esp + 0x70], 0xbb1eb9d5
mov dword [esp + 0x74], 0xbf2abd1d
mov dword [esp + 0x78], 0xa3f9a101
mov dword [esp + 0x7c], 0xa704a5c4
mov dword [esp + 0x80], 0xab3fa907
mov dword [esp + 0x84], 0xaf0aad02
mov dword [esp + 0x88], 0x93009131
mov dword [esp + 0x8c], 0x97cb950d
mov dword [esp + 0x90], 0x9b3f993a
mov dword [esp + 0x94], 0x9fcb9dc4
mov dword [esp + 0x98], 0x83278124
mov dword [esp + 0x9c], 0x872f85d1
mov dword [esp + 0xa0], 0x8b2e8918
mov dword [esp + 0xa4], 0x8f2d8d23
mov dword [esp + 0xa8], 0xf357f159
mov dword [esp + 0xac], 0xf764f566
mov dword [esp + 0xb0], 0xfbabf95d
mov dword [esp + 0xb4], 0xfff4fdf1
mov word [esp + 0xb8], 0xe1e0
mov dword [esp + 0xbe], 0
mov dword [esp + 0xba], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x89
ja 0x40a2b4
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x38]
lea ebx, [ecx - 0x5a9ed530]
and ebx, edx
add ecx, edx
add ecx, 0xa5612ad0
add ebx, ebx
sub ecx, ebx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add cl, 0x50
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x38], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x8a
jb 0x40a270
mov dword [esp + 0x10], 0xc363c1af
mov dword [esp + 0x14], 0xc76fc574
mov word [esp + 0x18], 0xc9c8
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov word [esp + 0x22], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x13
ja 0x40a34f
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x10]
lea ebx, [ecx + 0x3fab5560]
lea eax, [ecx + 0x60]
and eax, edx
and ebx, eax
add ecx, edx
add ecx, 0x3fab5560
add ebx, eax
sub ecx, ebx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
mov eax, ecx
or eax, 0x5f
and ecx, 0x5f
add ecx, eax
inc cl
mov eax, dword [esp + 8]
mov byte [esp + eax + 0x10], cl
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x14
jb 0x40a300
push 0x493e0
push dword [esp + 0x34]
push edi
push 0
push 0
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040e420
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408c10
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret