Function at 0x40a280
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, 0xe8
cmp dword [ecx + 0x20], 0
je 0x40a2ea
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x40a2f1
cmp al, 0x64
jb 0x40a300
movzx ecx, al
lea edx, [ecx + ecx*4]
lea ecx, [ecx + edx*8]
movzx ecx, cx
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 + 0x43e528]
mov word [esp + 0xd], ax
mov edx, 1
mov eax, ecx
jmp 0x40a309
mov bl, 1
jmp 0x40a8f6
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0x40a34e
mov edx, 3
cmp al, 9
ja 0x40a323
movzx eax, al
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 0x40a34e
mov ecx, eax
and ecx, 2
mov edx, eax
or eax, 2
imul eax, ecx
xor ecx, 2
and edx, 0x7d
imul edx, ecx
movzx eax, word [edx + eax + 0x43e528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00407120
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xb8], eax
lea ebx, [esp + 0xc3]
push ebx
call fcn.00432fc0
add esp, 4
mov dword [esp + 0xbc], edi
lea eax, [edi + 0x400]
push eax
call fcn.00409080
add esp, 4
mov edi, eax
mov dword [esp + 0x30], 0x8f83bc8e
mov byte [esp + 0x34], 0x32
mov dword [esp + 0x35], 0
mov dword [esp + 0x38], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x40a3ff
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0xd9]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add eax, 0xb1ec31d9
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x11
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x40a3c0
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.00409b50
mov dword [esp + 0x30], 0x3b5c52a6
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x40a473
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x30]
add eax, 0x807144a7
xor eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x6f
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x40a440
mov ecx, esi
push dword [esp + 0x2c]
push ebx
push edi
call fcn.00409b50
mov eax, dword [str.LPnhqo___moxiq]
mov dword [esp + 0x30], 0xb767478
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xb
ja 0x40a4ec
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
lea ebx, [ecx + 0x34e01c02]
add ecx, 2
and ecx, edx
or ebx, edx
sub ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0xf2
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xc
jb 0x40a4b0
mov ecx, esi
push eax
lea ebx, [esp + 0x34]
push ebx
push edi
call fcn.00409b50
mov dword [esp + 0x30], 0x3f363ecb
mov dword [esp + 0x34], 0xd2232a23
mov dword [esp + 0x38], 0x24213ad3
mov byte [esp + 0x3c], 0x5a
mov dword [esp + 0x3d], 0
mov byte [esp + 0x41], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x11
ja 0x40a57f
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 + 0xcb]
and edx, ecx
add eax, ecx
add edx, edx
sub eax, edx
add eax, 0x9d0372cb
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x73
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x12
jb 0x40a540
mov dword [esp + 0x10], 0x4bd0e0e1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xf
ja 0x40a5ee
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add eax, 0x75
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0xa518b675
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0xcd
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x10
jb 0x40a5b0
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409b50
mov dword [esp + 0x30], 0x61e1416
mov byte [esp + 0x34], 0xa0
mov dword [esp + 0x35], 0
mov word [esp + 0x39], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x40a675
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, 0x3c9097c6
xor eax, 0x3c9097c6
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, 0x96
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x40a630
mov ecx, esi
push dword [esp + 0xbc]
push dword [esp + 0xbc]
push ebx
push edi
call fcn.00409df0
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0x13e111db
mov dword [esp + 0x34], 0x1fe01de4
mov dword [esp + 0x38], 0x1bee19f1
mov dword [esp + 0x3c], 0x271325e6
mov dword [esp + 0x40], 0x23db21fa
mov dword [esp + 0x44], 0x2fc32dd2
mov dword [esp + 0x48], 0x2b082914
mov dword [esp + 0x4c], 0x37cb35dd
mov dword [esp + 0x50], 0x33cc31c2
mov dword [esp + 0x54], 0x3fcc3dd9
mov dword [esp + 0x58], 0x3bca39dd
mov dword [esp + 0x5c], 0xc7f5c5c6
mov dword [esp + 0x60], 0xc331c128
mov dword [esp + 0x64], 0xcf3bcd30
mov dword [esp + 0x68], 0xcb24c9f9
mov dword [esp + 0x6c], 0xd728d529
mov dword [esp + 0x70], 0xd315d135
mov dword [esp + 0x74], 0xdf3eddf2
mov dword [esp + 0x78], 0xdb27d92f
mov dword [esp + 0x7c], 0xe708e52c
mov dword [esp + 0x80], 0xe312e105
mov dword [esp + 0x84], 0xef2bed19
mov dword [esp + 0x88], 0xeb07e90c
mov dword [esp + 0x8c], 0xf7cbf5d2
mov dword [esp + 0x90], 0xf31ff11a
mov dword [esp + 0x94], 0xff17fdcd
mov dword [esp + 0x98], 0xfb14f90e
mov dword [esp + 0x9c], 0x8769850b
mov dword [esp + 0xa0], 0x836f816d
mov dword [esp + 0xa4], 0x8f7e8d70
mov dword [esp + 0xa8], 0x8bbb8961
mov dword [esp + 0xac], 0x979e959d
mov word [esp + 0xb0], 0x9196
mov word [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x87
ja 0x40a835
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 + 0x30]
lea ebx, [ecx + edx]
add ebx, 0xee8762d3
add ecx, 0xee8762d3
and ecx, edx
add ecx, ecx
sub ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0x3b
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x88
jb 0x40a7f0
mov dword [esp + 0x10], 0x93f391a7
mov dword [esp + 0x14], 0x9ff79de2
mov word [esp + 0x18], 0x999e
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov byte [esp + 0x26], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x16
ja 0x40a8c1
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 + 0xff97613]
and ebx, edx
add ecx, edx
add ecx, 0xff97613
add ebx, ebx
sub ecx, ebx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0x7b
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x17
jb 0x40a880
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040e350
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00409090
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