Function at 0x409fd0
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 0x40a021
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x40a028
cmp al, 0x64
jb 0x40a037
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx edx, cx
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0x43d528]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0x40a040
mov bl, 1
jmp 0x40a63a
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0x40a06c
mov ecx, 3
cmp al, 9
ja 0x40a057
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 0x2c], edx
mov byte [esp + ecx + 0xb], al
jmp 0x40a06c
movzx eax, word [eax + eax + 0x43d528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406cc0
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x30], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.004324a0
add esp, 4
mov dword [esp + 0x34], edi
lea eax, [edi + 0x400]
push eax
call fcn.00408d40
add esp, 4
mov edi, eax
mov dword [esp + 0x38], 0x3f3b283e
mov byte [esp + 0x3c], 0xa2
mov dword [esp + 0x3d], 0
mov dword [esp + 0x41], 0
mov word [esp + 0x45], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xe
ja 0x40a129
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax + ecx]
add eax, 0x1b
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0x6ffd1d1b
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, eax
xor ecx, 0x42
and eax, 0x42
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, 0xf
jb 0x40a0e0
lea eax, [esp + 0x38]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.00409880
mov dword [esp + 0x38], 0x63c6c8f0
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 0x40a1ab
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 - 0x3737db0]
add eax, 0x50
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xd0
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xe
jb 0x40a170
mov ecx, esi
push dword [esp + 0x2c]
push ebx
push edi
call fcn.00409880
mov eax, dword [str.MeHdy4__p12]
mov dword [esp + 0x38], 0xfb5c621a
mov dword [esp + 0x3c], 0
mov dword [esp + 0x3f], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xa
ja 0x40a22e
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 + 0x3f]
and ebx, edx
add ecx, edx
add ebx, ebx
sub ecx, ebx
add ecx, 0xffa03b3f
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add cl, 0x47
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x38], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xb
jb 0x40a1f0
mov ecx, esi
push eax
lea ebx, [esp + 0x3c]
push ebx
push edi
call fcn.00409880
mov dword [esp + 0x38], 0x4fa6aea3
mov dword [esp + 0x3c], 0x5a535a4b
mov dword [esp + 0x40], 0x58554a5b
mov byte [esp + 0x44], 0xe2
mov dword [esp + 0x45], 0
mov dword [esp + 0x48], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x13
ja 0x40a2ca
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 - 0x6a6a8383]
add eax, 0x7d
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, eax
or ecx, 0x94
and eax, 0x94
add eax, ecx
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x14
jb 0x40a280
mov dword [esp + 0x10], 0x1b86bab9
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 9
ja 0x40a33e
nop
nop
nop
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]
mov edx, eax
and edx, 0xe2b24bac
xor eax, 0x62b24bac
lea eax, [eax + edx*2]
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x4c
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xa
jb 0x40a300
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409880
mov dword [esp + 0x38], 0x666e6866
mov byte [esp + 0x3c], 4
mov dword [esp + 0x3d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 8
ja 0x40a3bb
nop
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]
mov edx, 0x8dd618ff
sub edx, eax
and eax, ecx
or edx, ecx
not eax
add eax, ecx
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x38], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 9
jb 0x40a380
mov ecx, esi
push dword [esp + 0x34]
push dword [esp + 0x34]
push ebx
push edi
call fcn.00409b30
mov eax, dword [esi + 0x60]
mov dword [esp + 0x38], 0x63cd61a3
mov dword [esp + 0x3c], 0x67f265ca
mov dword [esp + 0x40], 0x6bc469cd
mov dword [esp + 0x44], 0x6f836df8
mov dword [esp + 0x48], 0x53cb51e4
mov dword [esp + 0x4c], 0x57f355c4
mov dword [esp + 0x50], 0x5bba5982
mov dword [esp + 0x54], 0x5fcb5df1
mov dword [esp + 0x58], 0x43d641ec
mov dword [esp + 0x5c], 0x47d645ed
mov dword [esp + 0x60], 0x4bd849e9
mov dword [esp + 0x64], 0x4fa14dd8
mov dword [esp + 0x68], 0x339d3196
mov dword [esp + 0x6c], 0x379b35a6
mov dword [esp + 0x70], 0x3b9e39d5
mov dword [esp + 0x74], 0x3faa3d9d
mov dword [esp + 0x78], 0x23f92181
mov dword [esp + 0x7c], 0x278425c4
mov dword [esp + 0x80], 0x2bbf2987
mov dword [esp + 0x84], 0x2f8a2d82
mov dword [esp + 0x88], 0x138011b1
mov dword [esp + 0x8c], 0x17cb158d
mov dword [esp + 0x90], 0x1bbf19ba
mov dword [esp + 0x94], 0x1fcb1dc4
mov dword [esp + 0x98], 0x3a701a4
mov dword [esp + 0x9c], 0x7af05d1
mov dword [esp + 0xa0], 0xbae0998
mov dword [esp + 0xa4], 0xfad0da3
mov dword [esp + 0xa8], 0xf357f159
mov dword [esp + 0xac], 0xf764f566
mov dword [esp + 0xb0], 0xfb2bf95d
mov dword [esp + 0xb4], 0xfff4fdf1
mov word [esp + 0xb8], 0xe1e0
mov dword [esp + 0xbd], 0
mov dword [esp + 0xba], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x88
ja 0x40a575
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x38]
lea ebx, [ecx + edx]
add ebx, 0x877f9310
add ecx, 0x877f9310
and ecx, edx
add ecx, ecx
sub ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0x90
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x38], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x89
jb 0x40a530
mov dword [esp + 0x10], 0x836381af
mov dword [esp + 0x14], 0x876f8574
mov word [esp + 0x18], 0x8988
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x15
ja 0x40a605
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 - 0x306874c0]
add ecx, 0x40
and ecx, edx
or ebx, edx
sub ebx, ecx
mov dword [esp + 4], ebx
mov ecx, dword [esp + 4]
mov edx, ecx
or edx, 0x3f
and ecx, 0x3f
add ecx, edx
inc cl
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x16
jb 0x40a5c0
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040de00
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408d50
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