Function at 0x409fb0
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 0x40a017
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xb], 0
test eax, eax
je 0x40a01e
cmp al, 0x64
jb 0x40a02d
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, 2
mov edi, eax
or eax, 2
imul eax, edx
xor edx, 2
and edi, 0x7d
imul edi, edx
movzx eax, word [edi + eax + 0x43d528]
mov word [esp + 9], ax
mov edx, 1
mov eax, ecx
jmp 0x40a036
mov bl, 1
jmp 0x40a63d
lea eax, [esp + 0xa]
mov dword [esp + 0xc], eax
mov byte [esp + 0xa], 0x30
jmp 0x40a062
mov edx, 3
cmp al, 9
ja 0x40a04d
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ecx, [esp + edx]
add ecx, 7
mov dword [esp + 0xc], ecx
mov byte [esp + edx + 7], al
jmp 0x40a062
movzx eax, word [eax + eax + 0x43d528]
lea ecx, [esp + 9]
mov dword [esp + 0xc], ecx
mov word [esp + 9], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406f40
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xc0], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.00432270
add esp, 4
mov dword [esp + 0xc4], edi
lea eax, [edi + 0x400]
push eax
call fcn.00408e10
add esp, 4
mov edi, eax
mov dword [esp + 0x28], 0xdfd3c0de
mov byte [esp + 0x2c], 0xba
mov dword [esp + 0x2d], 0
mov dword [esp + 0x31], 0
mov byte [esp + 0x35], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xd
ja 0x40a133
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx edx, byte [esp + ecx + 0x28]
lea ecx, [eax + edx]
add ecx, 0x421526b7
add eax, 0x421526b7
and eax, edx
add eax, eax
mov edx, ecx
not edx
and edx, eax
not eax
and eax, ecx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 0xfe
and eax, 0x7e
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xe
jb 0x40a0e0
lea eax, [esp + 0x28]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.004098d0
mov dword [esp + 0x28], 0xb3282226
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x40a1b6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x28]
lea edx, [eax - 0x70107b7]
add eax, 0x49
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x40a180
mov ecx, esi
push dword [esp + 0xc]
push ebx
mov dword [esp + 0x14], edi
push edi
call fcn.004098d0
mov eax, dword [str.MeHdy4__p16]
mov dword [esp + 0xbc], eax
mov dword [esp + 0x28], 0xfb1c625a
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov byte [esp + 0x34], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0xc
ja 0x40a247
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x28]
lea ebx, [ecx - 0x2d4460e1]
lea edi, [ecx + 0x1f]
mov eax, edi
and eax, ebx
and eax, edx
xor edi, ebx
and edi, edx
add ecx, edx
add ecx, 0xd2bb9f1f
lea eax, [edi + eax*2]
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
add al, 0x27
mov ecx, dword [esp]
mov byte [esp + ecx + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x40a200
mov ecx, esi
push dword [esp + 0xbc]
lea ebx, [esp + 0x2c]
push ebx
mov edi, dword [esp + 0x14]
push edi
call fcn.004098d0
mov dword [esp + 0x28], 0xbfb6be8b
mov dword [esp + 0x2c], 0x92a3aaa3
mov dword [esp + 0x30], 0xa4a1ba93
mov byte [esp + 0x34], 0x1a
mov word [esp + 0x35], 0
mov byte [esp + 0x37], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x40a2d8
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x28]
lea edx, [eax - 0x39e1ea55]
add eax, 0xab
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x53
mov ecx, dword [esp]
mov byte [esp + ecx + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x40a2a0
mov dword [esp + 0x10], 0x33869291
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x40a348
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0x638923d8
add eax, 0x638923d8
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp], edx
mov eax, dword [esp]
mov ecx, eax
or ecx, 0x17
and eax, 0x17
add eax, ecx
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x40a300
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.004098d0
mov dword [esp + 0x28], 0xa6bea4a6
mov byte [esp + 0x2c], 0x48
mov dword [esp + 0x31], 0
mov dword [esp + 0x2d], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x40a3ca
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x28]
lea edx, [eax + 0x8a]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add eax, 0xc2f75e8a
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x3a
mov ecx, dword [esp]
mov byte [esp + ecx + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x40a390
mov ecx, esi
push dword [esp + 0xc4]
push dword [esp + 0xc4]
push ebx
push edi
call fcn.00409b80
mov eax, dword [esi + 0x60]
mov dword [esp + 0x28], 0x9b0d995b
mov dword [esp + 0x2c], 0x971a9502
mov dword [esp + 0x30], 0x9304910d
mov dword [esp + 0x34], 0x8f5b8d00
mov dword [esp + 0x38], 0x8b038964
mov dword [esp + 0x3c], 0x871b8514
mov dword [esp + 0x40], 0x83a2814a
mov dword [esp + 0x44], 0xbf33bd29
mov dword [esp + 0x48], 0xbb36b92c
mov dword [esp + 0x4c], 0xb726b52d
mov dword [esp + 0x50], 0xb320b151
mov dword [esp + 0x54], 0xaf79ad20
mov dword [esp + 0x58], 0xab3da936
mov dword [esp + 0x5c], 0xa733a536
mov dword [esp + 0x60], 0xa33ea175
mov dword [esp + 0x64], 0x5fd25dbd
mov dword [esp + 0x68], 0x5b9159b9
mov dword [esp + 0x6c], 0x57b45574
mov dword [esp + 0x70], 0x53df51c7
mov dword [esp + 0x74], 0x4fd24dda
mov dword [esp + 0x78], 0x4bd849a9
mov dword [esp + 0x7c], 0x478345cd
mov dword [esp + 0x80], 0x43df41a2
mov dword [esp + 0x84], 0x7fb37db4
mov dword [esp + 0x88], 0x7be779e4
mov dword [esp + 0x8c], 0x77ef75b9
mov dword [esp + 0x90], 0x73ee71e0
mov dword [esp + 0x94], 0x6f8d6dfb
mov dword [esp + 0x98], 0x6bf769f1
mov dword [esp + 0x9c], 0x67f465f6
mov dword [esp + 0xa0], 0x63b361fd
mov dword [esp + 0xa4], 0x1f241d29
mov word [esp + 0xa8], 0x1918
mov dword [esp + 0xb2], 0
mov dword [esp + 0xae], 0
mov dword [esp + 0xaa], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x8d
ja 0x40a57f
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x28]
lea edi, [ecx + 0xc4]
add ecx, edx
and edi, edx
add edi, edi
sub ecx, edi
add ecx, 0x7dc686c4
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add cl, 0xa4
mov edx, dword [esp]
mov byte [esp + edx + 0x28], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x8e
jb 0x40a540
mov dword [esp + 0x10], 0x4bab4d7f
mov dword [esp + 0x14], 0x57bf49b8
mov word [esp + 0x18], 0x5554
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1d], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x10
ja 0x40a604
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
lea edi, [ecx + 0x302fca0a]
lea ebx, [ecx + 0xa]
and ebx, edx
and edi, ebx
add ecx, edx
add ecx, 0x302fca0a
add edi, ebx
sub ecx, edi
mov dword [esp], ecx
mov ecx, dword [esp]
add cl, 0xba
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x11
jb 0x40a5c0
push 0x493e0
push eax
mov edi, dword [esp + 0x14]
push edi
push 0
push 0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040dd30
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408e20
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