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 0x40a037
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x40a03e
cmp al, 0x64
jb 0x40a04d
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 + 0x43e528]
mov word [esp + 0xd], ax
mov edx, 1
mov eax, ecx
jmp 0x40a056
mov bl, 1
jmp 0x40a651
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0x40a082
mov edx, 3
cmp al, 9
ja 0x40a06d
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 0x40a082
movzx eax, word [eax + eax + 0x43e528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406e10
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.00433780
add esp, 4
mov dword [esp + 0xc4], edi
lea eax, [edi + 0x400]
push eax
call fcn.00408cc0
add esp, 4
mov edi, eax
mov dword [esp + 0x30], 0x572b2628
mov byte [esp + 0x34], 0xb4
mov dword [esp + 0x39], 0
mov dword [esp + 0x35], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xc
ja 0x40a140
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 + 0x30]
lea edx, [eax + ecx]
add edx, 0x37a2e568
add eax, 0x37a2e568
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x28
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xd
jb 0x40a100
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.004098c0
mov dword [esp + 0x30], 0x8b26243c
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov word [esp + 0x3c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xd
ja 0x40a1bb
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax - 0x77aa3196]
add eax, 0x6a
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x1a
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xe
jb 0x40a180
mov ecx, esi
push dword [esp + 0x2c]
push ebx
push edi
call fcn.004098c0
mov eax, dword [str.LPnhqo___muffinwtf]
mov dword [esp + 0x30], 0x23869490
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xf
ja 0x40a241
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
lea ebx, [ecx + 0xfc9fe86]
add ecx, 0x86
or ecx, ebx
and ecx, edx
or ebx, edx
sub ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0x56
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x10
jb 0x40a200
mov ecx, esi
push eax
lea ebx, [esp + 0x34]
push ebx
push edi
call fcn.004098c0
mov dword [esp + 0x30], 0xbfb6beab
mov dword [esp + 0x34], 0x92838a83
mov dword [esp + 0x38], 0x8481ba93
mov byte [esp + 0x3c], 0x1a
mov dword [esp + 0x3d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x10
ja 0x40a2cd
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 + 0x30]
lea edx, [eax - 0x1b4140a5]
add eax, 0x5b
or eax, edx
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x83
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x11
jb 0x40a290
mov dword [esp + 0x10], 0x830c3c25
mov dword [esp + 0x14], 0
mov word [esp + 0x18], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 9
ja 0x40a34a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx edx, byte [esp + ecx + 0x10]
lea ecx, [eax + edx]
add ecx, 0xbb456ceb
add eax, 0xbb456ceb
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 + 4], eax
mov eax, dword [esp + 4]
add al, 0x93
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.004098c0
mov dword [esp + 0x30], 0x465e5456
mov byte [esp + 0x34], 0x20
mov word [esp + 0x35], 0
mov byte [esp + 0x37], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x40a3cb
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 + 0x30]
lea edx, [eax + 0x3c989626]
add eax, 0x26
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xf6
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x40a390
mov ecx, esi
push dword [esp + 0xc4]
push dword [esp + 0xc4]
push ebx
push edi
call fcn.00409b60
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0x53e1519b
mov dword [esp + 0x34], 0x5fe05de4
mov dword [esp + 0x38], 0x5bee59f1
mov dword [esp + 0x3c], 0x27d325e6
mov dword [esp + 0x40], 0x239b21fa
mov dword [esp + 0x44], 0x2f832d92
mov dword [esp + 0x48], 0x2bc829d4
mov dword [esp + 0x4c], 0x378b359d
mov dword [esp + 0x50], 0x338c3182
mov dword [esp + 0x54], 0x3f8c3d99
mov dword [esp + 0x58], 0x3b8a399d
mov dword [esp + 0x5c], 0x7f50586
mov dword [esp + 0x60], 0x3b101a8
mov dword [esp + 0x64], 0xfbb0db0
mov dword [esp + 0x68], 0xba409f9
mov dword [esp + 0x6c], 0x17a815a9
mov dword [esp + 0x70], 0x13d511b5
mov dword [esp + 0x74], 0x1fbe1df2
mov dword [esp + 0x78], 0x1ba719af
mov dword [esp + 0x7c], 0xe748e5ac
mov dword [esp + 0x80], 0xe352e145
mov dword [esp + 0x84], 0xef2bed59
mov dword [esp + 0x88], 0xeb47e94c
mov dword [esp + 0x8c], 0xf70bf512
mov dword [esp + 0x90], 0xf35ff15a
mov dword [esp + 0x94], 0xff57fd0d
mov dword [esp + 0x98], 0xfb54f94e
mov dword [esp + 0x9c], 0xc769c54b
mov dword [esp + 0xa0], 0xc36fc16d
mov dword [esp + 0xa4], 0xcf7ecd70
mov dword [esp + 0xa8], 0xcb3bc961
mov dword [esp + 0xac], 0xd7ded5dd
mov word [esp + 0xb0], 0xd1d6
mov dword [esp + 0xb9], 0
mov dword [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x8c
ja 0x40a58f
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
lea ebx, [ecx + 0x3a4e3c33]
add ecx, 0x33
and ecx, edx
or ebx, edx
sub ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0x9b
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x8d
jb 0x40a550
mov dword [esp + 0x10], 0x1b7b194f
mov dword [esp + 0x14], 0x178f1584
mov word [esp + 0x18], 0x1110
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1d], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x10
ja 0x40a61c
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 + edx]
add ebx, 0xc4895284
add ecx, 0x84
and ecx, edx
add ecx, ecx
mov edx, ecx
xor edx, ebx
not ecx
and ecx, ebx
add ecx, ecx
sub ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0x64
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x11
jb 0x40a5d0
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040dc70
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408cd0
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