Function at 0x409d80
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 0x409dd1
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x409dd8
cmp al, 0x64
jb 0x409de7
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 0x409df0
mov bl, 1
jmp 0x40a42a
lea eax, [esp + 0xe]
mov dword [esp + 8], eax
mov byte [esp + 0xe], 0x30
jmp 0x409e32
mov ecx, 3
cmp al, 9
ja 0x409e07
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 8], edx
mov byte [esp + ecx + 0xb], al
jmp 0x409e32
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 + 0x43c528]
lea ecx, [esp + 0xd]
mov dword [esp + 8], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406c30
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x28], eax
lea ebx, [esp + 0xc3]
push ebx
call fcn.00432a00
add esp, 4
mov dword [esp + 0x2c], edi
lea eax, [edi + 0x800]
push eax
call fcn.00408cd0
add esp, 4
mov edi, eax
mov dword [esp + 0x30], 0xc7c336c4
mov byte [esp + 0x34], 0xa8
mov dword [esp + 0x39], 0
mov dword [esp + 0x35], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xc
ja 0x409eda
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + 0x5d8dc9ba]
add eax, 0xba
xor eax, edx
xor edx, ecx
and eax, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xea
mov ecx, dword [esp]
mov byte [esp + ecx + 0x30], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xd
jb 0x409ea0
lea eax, [esp + 0x30]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.00409680
mov dword [esp + 0x30], 0xbb08a86
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x409f4b
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + ecx]
add edx, 0xb2645d2d
add eax, 0xb2645d2d
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xc5
mov ecx, dword [esp]
mov byte [esp + ecx + 0x30], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x409f10
mov ecx, esi
push dword [esp + 8]
push ebx
mov dword [esp + 0x10], edi
push edi
call fcn.00409680
mov eax, dword [str.jMw1IE__barni]
mov dword [esp + 0x30], 0xbb5c525a
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 8
ja 0x409fde
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx ebx, byte [esp + edx + 0x30]
lea edi, [ecx + 0x52428c67]
lea edx, [ecx + ebx]
add edx, 0x52428c67
add ecx, 0x67
or ecx, edi
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]
add cl, 0x2f
mov edx, dword [esp]
mov byte [esp + edx + 0x30], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 9
jb 0x409f90
mov ecx, esi
push eax
lea ebx, [esp + 0x34]
push ebx
push dword [esp + 0x10]
call fcn.00409680
mov dword [esp + 0x30], 0x1f661e53
mov dword [esp + 0x34], 0x6a1b621b
mov dword [esp + 0x38], 0x1469126b
mov byte [esp + 0x3c], 0xf2
mov dword [esp + 0x3d], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x10
ja 0x40a080
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov eax, dword [esp]
movzx edi, byte [esp + eax + 0x30]
lea eax, [edx + 0x275f659f]
lea ecx, [edx + edi]
add ecx, 0x275f659f
add edx, 0x9f
or edx, eax
and edx, edi
and eax, edi
add eax, edx
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, 0xa7
mov ecx, dword [esp]
mov byte [esp + ecx + 0x30], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x11
jb 0x40a030
mov dword [esp + 0x10], 0x1b967a79
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xb
ja 0x40a101
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 4]
mov eax, dword [esp + 4]
movzx edx, byte [esp + eax + 0x10]
lea eax, [ecx + edx]
add eax, 0x9b750d04
add ecx, 0x9b750d04
mov edi, edx
not edi
or edi, ecx
add edi, edx
and ecx, edx
add ecx, edi
inc ecx
mov edx, ecx
xor edx, eax
not ecx
and ecx, eax
add ecx, ecx
sub ecx, edx
mov dword [esp], ecx
mov eax, dword [esp]
add al, 0xe4
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xc
jb 0x40a0b0
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
mov edi, dword [esp + 0x10]
push edi
call fcn.00409680
mov dword [esp + 0x30], 0xa8a0a2ac
mov byte [esp + 0x34], 0x32
mov dword [esp + 0x35], 0
mov dword [esp + 0x39], 0
mov dword [esp + 0x3c], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xf
ja 0x40a195
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x30]
lea edx, [eax + ecx]
add edx, 0x9d8ff709
add eax, 0x9d8ff709
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 + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0xc1
mov ecx, dword [esp]
mov byte [esp + ecx + 0x30], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x10
jb 0x40a150
mov ecx, esi
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push ebx
push edi
call fcn.00409920
mov eax, dword [esi + 0x60]
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 + 0xba], 0
mov dword [esp + 0xb6], 0
mov dword [esp + 0xb2], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x8d
ja 0x40a355
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x30]
mov edi, ecx
and edi, 0xe577c2ff
xor ecx, 0xe577c2ff
lea ecx, [ecx + edi*2]
lea edi, [ecx + edx]
and ecx, edx
add ecx, ecx
sub edi, ecx
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x10]
add cl, 7
mov edx, dword [esp]
mov byte [esp + edx + 0x30], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x8e
jb 0x40a310
mov dword [esp + 0x10], 0x3353316f
mov dword [esp + 0x14], 0x37af35a4
mov word [esp + 0x18], 0x2928
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1d], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x10
ja 0x40a3e5
nop
nop
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x10]
add ecx, 0x3ab94028
mov ebx, ecx
and ebx, edx
mov edi, ecx
xor edi, edx
not edx
or ecx, edx
add edx, edi
add ecx, ebx
sub edx, ecx
lea ecx, [edx + ebx*2]
mov dword [esp], ecx
mov ecx, dword [esp]
add cl, 0xe8
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
mov ecx, dword [esp + 4]
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
cmp ecx, 0x11
jb 0x40a390
push 0x493e0
push eax
mov edi, dword [esp + 0x10]
push edi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040de60
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408ce0
add esp, 4
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x60]
mov edx, eax
and edx, ecx
xor eax, ecx
lea eax, [eax + edx*2]
mov 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