Function at 0x409e80
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 0x409ed1
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x409ed8
cmp al, 0x64
jb 0x409ee7
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 + 0x43c528]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0x409ef0
mov bl, 1
jmp 0x40a556
lea eax, [esp + 0xe]
mov dword [esp + 0x28], eax
mov byte [esp + 0xe], 0x30
jmp 0x409f1c
mov ecx, 3
cmp al, 9
ja 0x409f07
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 0x28], edx
mov byte [esp + ecx + 0xb], al
jmp 0x409f1c
movzx eax, word [eax + eax + 0x43c528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x28], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406d20
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.00432450
add esp, 4
mov dword [esp + 0xc4], edi
lea eax, [edi + 0x800]
push eax
call fcn.00408d80
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0xb7b3a6b0
mov byte [esp + 0x34], 0xe4
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 0x409fe0
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 + 0x7c]
and edx, ecx
mov edi, 0xd442cb83
sub edi, eax
or edi, ecx
not edi
add edi, ecx
sub edi, edx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
add al, 0x9c
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xf
jb 0x409fa0
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
push eax
mov edi, dword [esp + 0x34]
push edi
call fcn.00409790
mov dword [esp + 0x30], 0x8b300a06
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x40a075
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]
mov edx, eax
and edx, 0x2c32136d
xor eax, 0xac32136d
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, 5
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x40a030
mov ecx, esi
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
push edi
call fcn.00409790
mov eax, dword [str.LPnhqo___gerxxd]
mov dword [esp + 0x30], 0x43bcbab2
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3b], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xe
ja 0x40a11e
nop
nop
nop
nop
mov edi, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ebx, byte [esp + ecx + 0x30]
lea ecx, [edi - 0x43c14ff5]
lea edx, [edi + ebx]
add edx, 0xbc3eb00b
add edi, 0xb
and edi, ebx
and ecx, ebx
add ecx, edi
mov edi, ecx
xor edi, edx
not ecx
and ecx, edx
add ecx, ecx
sub ecx, edi
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
mov edx, ecx
xor edx, 0xb2
and ecx, 0x32
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xf
jb 0x40a0c0
mov ecx, esi
push eax
lea eax, [esp + 0x34]
push eax
mov ebx, dword [esp + 0x34]
push ebx
call fcn.00409790
mov dword [esp + 0x30], 0xf7f8f0e3
mov dword [esp + 0x34], 0xe8fbfc8b
mov dword [esp + 0x38], 0xfef984eb
mov byte [esp + 0x3c], 0x60
mov word [esp + 0x3d], 0
mov byte [esp + 0x3f], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x40a1ba
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 eax, 0xb2
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0x2e4d01b2
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
mov ecx, eax
or ecx, 0x21
and eax, 0x21
add eax, ecx
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x40a170
mov dword [esp + 0x10], 0x5bd6faf9
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 8
ja 0x40a22a
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax + ecx]
add edx, 0x365f7f34
add eax, 0x365f7f34
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x94
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 9
jb 0x40a1e0
lea edx, [esp + 0x10]
mov ecx, esi
lea eax, [esp + 0x30]
push eax
push edx
push ebx
call fcn.00409790
mov dword [esp + 0x30], 0x161e0406
mov byte [esp + 0x34], 0x70
mov dword [esp + 0x35], 0
mov word [esp + 0x39], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xa
ja 0x40a2b0
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, 0xe43a98ee
add eax, 0xe43a98ee
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x7e
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xb
jb 0x40a270
mov ecx, esi
push dword [esp + 0xc4]
push dword [esp + 0xc4]
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.00409a30
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0xc36dc103
mov dword [esp + 0x34], 0xc772c56a
mov dword [esp + 0x38], 0xcb64c96d
mov dword [esp + 0x3c], 0xcf23cd78
mov dword [esp + 0x40], 0xd36bd104
mov dword [esp + 0x44], 0xd773d564
mov dword [esp + 0x48], 0xdb3ad922
mov dword [esp + 0x4c], 0xdf6bdd71
mov dword [esp + 0x50], 0xa316a10c
mov dword [esp + 0x54], 0xa716a50d
mov dword [esp + 0x58], 0xab18a909
mov dword [esp + 0x5c], 0xaf41ad18
mov dword [esp + 0x60], 0xb31db116
mov dword [esp + 0x64], 0xb71bb506
mov dword [esp + 0x68], 0xbb1eb955
mov dword [esp + 0x6c], 0xbf0abd1d
mov dword [esp + 0x70], 0x83798121
mov dword [esp + 0x74], 0x87248564
mov dword [esp + 0x78], 0x8b3f8927
mov dword [esp + 0x7c], 0x8f2a8d22
mov dword [esp + 0x80], 0x93209131
mov dword [esp + 0x84], 0x976b952d
mov dword [esp + 0x88], 0x9b3f993a
mov dword [esp + 0x8c], 0x9f6b9d64
mov dword [esp + 0x90], 0x63c761c4
mov dword [esp + 0x94], 0x67cf6591
mov dword [esp + 0x98], 0x6bce69d8
mov dword [esp + 0x9c], 0x6fcd6dc3
mov dword [esp + 0xa0], 0x73d771d9
mov dword [esp + 0xa4], 0x77c475c6
mov dword [esp + 0xa8], 0x7b8b79dd
mov dword [esp + 0xac], 0x7f747d71
mov word [esp + 0xb0], 0x4140
mov word [esp + 0xbe], 0
mov dword [esp + 0xba], 0
mov dword [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x8f
ja 0x40a492
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
lea edi, [ecx + edx]
add ecx, 0xa0
and ecx, edx
add ecx, ecx
sub edi, ecx
add edi, 0x8d7316a0
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x10]
mov edx, ecx
xor edx, 0x9f
and ecx, 0x1f
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x90
jb 0x40a440
mov dword [esp + 0x10], 0x339331cf
mov dword [esp + 0x14], 0x378f3584
mov word [esp + 0x18], 0x908
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 0x40a51f
nop
nop
nop
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 edi, [ecx + 0x510e85d8]
add ecx, 0xd8
and ecx, edx
or edi, edx
sub edi, ecx
mov dword [esp + 4], edi
mov ecx, dword [esp + 4]
add cl, 0x18
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x16
jb 0x40a4e0
push 0x493e0
push eax
push ebx
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040e260
add esp, 0x1c
mov ecx, ebx
mov ebx, eax
push ecx
call fcn.00408d90
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