Function at 0x409d70
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 0x409dc1
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x409dc8
cmp al, 0x64
jb 0x409dd7
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 + 0x440528]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0x409de0
mov bl, 1
jmp 0x40a3f6
lea eax, [esp + 0xe]
mov dword [esp + 0x2c], eax
mov byte [esp + 0xe], 0x30
jmp 0x409e0c
mov ecx, 3
cmp al, 9
ja 0x409df7
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 0x2c], edx
mov byte [esp + ecx + 0xb], al
jmp 0x409e0c
movzx eax, word [eax + eax + 0x440528]
lea ecx, [esp + 0xd]
mov dword [esp + 0x2c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406b80
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xc0], eax
lea eax, [esp + 0xcb]
push eax
call fcn.00436be0
add esp, 4
mov dword [esp + 0xc4], edi
lea eax, [edi + 0x800]
push eax
call fcn.00408cc0
add esp, 4
mov edi, eax
mov dword [esp + 0x30], 0xa7a3b6a4
mov byte [esp + 0x34], 0x48
mov word [esp + 0x35], 0
mov byte [esp + 0x37], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 7
ja 0x409ec0
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 + 0xa]
and edx, ecx
mov ebx, 0x5d8320f5
sub ebx, eax
or ebx, ecx
not ebx
add ebx, ecx
sub ebx, edx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
add al, 0xba
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 8
jb 0x409e80
lea eax, [esp + 0x30]
mov ecx, esi
lea edx, [esp + 0xcb]
push edx
push eax
push edi
call fcn.004096c0
mov dword [esp + 0x30], 0x2b8684bc
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3b], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xe
ja 0x409f55
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, 0xc908025a
xor eax, 0xc908025a
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, 0x8a
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xf
jb 0x409f10
mov ecx, esi
push dword [esp + 0x2c]
lea eax, [esp + 0x34]
push eax
push edi
call fcn.004096c0
mov eax, dword [str.fuOLMb__installs]
mov dword [esp + 0x30], 0xb356282c
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xb
ja 0x409fe2
nop
nop
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, 0xe6b0f2e8
add ecx, 0xe6b0f2e8
and ecx, edx
add ecx, ecx
sub ebx, ecx
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x10]
add cl, 0xa8
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xc
jb 0x409fa0
mov ecx, esi
push eax
lea eax, [esp + 0x34]
push eax
push edi
call fcn.004096c0
mov dword [esp + 0x30], 0xaf868e83
mov dword [esp + 0x34], 0x9a939aab
mov dword [esp + 0x38], 0x9895aa9b
mov byte [esp + 0x3c], 2
mov dword [esp + 0x3d], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x10
ja 0x40a070
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 + ecx]
add edx, 0x703fc62d
add eax, 0x703fc62d
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 + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x11
jb 0x40a030
mov dword [esp + 0x10], 0x396eaed
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0xb
ja 0x40a0e0
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]
add edx, 0x6c379ad6
add eax, 0x6c379ad6
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 4], edx
mov eax, dword [esp + 4]
add al, 0x26
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0xc
jb 0x40a0a0
lea edx, [esp + 0x10]
mov ecx, esi
lea eax, [esp + 0x30]
push eax
push edx
push edi
call fcn.004096c0
mov dword [esp + 0x30], 0x56aea856
mov byte [esp + 0x34], 0x34
mov dword [esp + 0x35], 0
mov byte [esp + 0x39], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 9
ja 0x40a170
nop
nop
nop
mov edx, dword [esp + 4]
mov eax, dword [esp + 4]
movzx ebx, byte [esp + eax + 0x30]
lea eax, [edx + 0x60e5928]
lea ecx, [edx + ebx]
add ecx, 0x60e5928
add edx, 0x28
and edx, ebx
and eax, ebx
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, 0xe8
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x30], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0xa
jb 0x40a120
mov ecx, esi
push dword [esp + 0xc4]
push dword [esp + 0xc4]
lea eax, [esp + 0x38]
push eax
push edi
call fcn.00409940
mov eax, dword [esi + 0x60]
mov dword [esp + 0x30], 0x3b1015b
mov dword [esp + 0x34], 0x1f901db4
mov dword [esp + 0x38], 0x1bae19a1
mov dword [esp + 0x3c], 0x17631596
mov dword [esp + 0x40], 0x139b11ba
mov dword [esp + 0x44], 0x6fd36da2
mov dword [esp + 0x48], 0x6b086924
mov dword [esp + 0x4c], 0x67eb65dd
mov dword [esp + 0x50], 0x63ec61d2
mov dword [esp + 0x54], 0x7fcc7dd9
mov dword [esp + 0x58], 0x7bca79dd
mov dword [esp + 0x5c], 0x770575f6
mov dword [esp + 0x60], 0x73c171c8
mov dword [esp + 0x64], 0x4ffb4dc0
mov dword [esp + 0x68], 0x4bf44939
mov dword [esp + 0x6c], 0x47c845e9
mov dword [esp + 0x70], 0x430541e5
mov dword [esp + 0x74], 0x5ffe5d22
mov dword [esp + 0x78], 0x5bd759ef
mov dword [esp + 0x7c], 0x57e855ec
mov dword [esp + 0x80], 0x53e251f5
mov dword [esp + 0x84], 0xafebadd9
mov dword [esp + 0x88], 0xab17a90c
mov dword [esp + 0x8c], 0xa7eba5e2
mov dword [esp + 0x90], 0xa31fa11a
mov dword [esp + 0x94], 0xbf07bded
mov dword [esp + 0x98], 0xbb04b90e
mov dword [esp + 0x9c], 0xb709b50b
mov dword [esp + 0xa0], 0xb30fb10d
mov dword [esp + 0xa4], 0x8f3e8d00
mov dword [esp + 0xa8], 0x8bfb8931
mov dword [esp + 0xac], 0x879e859d
mov word [esp + 0xb0], 0x8186
mov word [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, 0x8b
ja 0x40a334
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 0x30]
lea ebx, [ecx - 0x1fbf7655]
and ebx, edx
add ecx, edx
add ecx, 0xe04089ab
add ebx, ebx
sub ecx, ebx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x10]
add cl, 0x53
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x30], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x8c
jb 0x40a2f0
mov dword [esp + 0x10], 0xf313cd1f
mov dword [esp + 0x14], 0xf71ff160
mov word [esp + 0x18], 0xf5f4
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x21], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x14
ja 0x40a3c1
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 ebx, [ecx + 0x56e0a29e]
add ecx, 0x9e
or ecx, ebx
and ecx, edx
or ebx, edx
sub ebx, ecx
mov dword [esp + 4], ebx
mov ecx, dword [esp + 4]
add cl, 0xae
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x15
jb 0x40a380
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040e3a0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408cd0
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