Function at 0x4096e0
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 0x409c1a
mov esi, ecx
movzx eax, byte [ecx]
lea ecx, [esp + 0xa4]
push 0xa
push 4
push ecx
push eax
call fcn.00409c30
add esp, 0x10
mov ebx, eax
lea eax, [esi + 0x10]
push eax
call fcn.004064e0
add esp, 4
mov ebp, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x18], eax
lea eax, [ebp + 0x400]
push eax
call fcn.004084d0
add esp, 4
mov edi, eax
mov dword [esp + 0x1c], 0x6d6d5e6c
mov byte [esp + 0x20], 0xc0
mov dword [esp + 0x21], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x4097ab
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x1c]
lea edx, [eax + ecx]
add eax, 0xb1
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0x358dc4b1
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0x8b
mov ecx, dword [esp]
mov byte [esp + ecx + 0x1c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x409770
lea eax, [esp + 0x1c]
mov ecx, esi
push 0x44a8d8
push eax
push edi
call fcn.00409090
mov dword [esp + 0x1c], 0x298e8494
mov word [esp + 0x20], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 5
ja 0x409819
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x1c]
lea edx, [eax + ecx]
add eax, 0x47
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0x938ccd47
mov dword [esp + 8], edx
mov eax, dword [esp + 8]
add al, 0x9d
mov ecx, dword [esp]
mov byte [esp + ecx + 0x1c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 6
jb 0x4097e0
mov ecx, esi
push ebx
lea ebx, [esp + 0x20]
push ebx
push edi
call fcn.00409090
mov eax, dword [str.a8kafm___cloudcosmic]
mov dword [esp], 0x99766c68
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 3
ja 0x409883
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]
add ecx, 0x4fbc63db
xor ecx, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1c]
add cl, 0xb9
mov edx, dword [esp + 8]
mov byte [esp + edx], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 4
jb 0x409850
mov edx, esp
mov ecx, esi
push eax
push edx
push edi
call fcn.00409090
mov dword [esp + 0x1c], 0xafa4aca3
mov dword [esp + 0x20], 0xbcb3b88b
mov dword [esp + 0x24], 0xb6b588bb
mov byte [esp + 0x28], 0x24
mov dword [esp + 0x29], 0
mov word [esp + 0x2d], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x12
ja 0x4098fe
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x1c]
add eax, 0xdb6f044c
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x84
mov ecx, dword [esp]
mov byte [esp + ecx + 0x1c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x13
jb 0x4098d0
mov dword [esp + 4], 0xf37e1211
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 3
ja 0x409959
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 4]
mov edx, eax
and edx, 0xa671c2c
xor eax, 0xa671c2c
lea eax, [eax + edx*2]
xor eax, ecx
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x24
mov ecx, dword [esp]
mov byte [esp + ecx + 4], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 4
jb 0x409920
lea eax, [esp + 4]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409090
mov dword [esp + 0x1c], 0xbeb2bcba
mov byte [esp + 0x20], 0x20
mov dword [esp + 0x21], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x4099da
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 + 0x1c]
lea edx, [eax + 0xb9]
add eax, ecx
and edx, ecx
add edx, edx
sub eax, edx
add eax, 0x44fb07b9
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
add al, 0x63
mov ecx, dword [esp]
mov byte [esp + ecx + 0x1c], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x4099a0
mov ecx, esi
push ebp
push dword [esp + 0x1c]
push ebx
push edi
call fcn.00409300
mov eax, dword [esi + 0x60]
mov dword [esp + 0x1c], 0x77e50947
mov dword [esp + 0x20], 0x73ee75e6
mov dword [esp + 0x24], 0x7fec71dd
mov dword [esp + 0x28], 0x7b2f7de0
mov dword [esp + 0x2c], 0x67ff79c4
mov dword [esp + 0x30], 0x63cf65f4
mov dword [esp + 0x34], 0x6f0e6126
mov dword [esp + 0x38], 0x6bf76df9
mov dword [esp + 0x3c], 0x57ca69fc
mov dword [esp + 0x40], 0x53c255fd
mov dword [esp + 0x44], 0x5fc051f1
mov dword [esp + 0x48], 0x5b095dc0
mov dword [esp + 0x4c], 0x47d559f2
mov dword [esp + 0x50], 0x43d745da
mov dword [esp + 0x54], 0x4fe24115
mov dword [esp + 0x58], 0x4bd64ded
mov dword [esp + 0x5c], 0xb7f149e9
mov dword [esp + 0x60], 0xb31cb5d4
mov dword [esp + 0x64], 0xbf23b123
mov dword [esp + 0x68], 0xbb16bd2e
mov dword [esp + 0x6c], 0xa738b919
mov dword [esp + 0x70], 0xa3e7a53d
mov dword [esp + 0x74], 0xaf03a10e
mov dword [esp + 0x78], 0xabf7adf4
mov dword [esp + 0x7c], 0x973ba904
mov dword [esp + 0x80], 0x933b95c9
mov dword [esp + 0x84], 0x9f329100
mov dword [esp + 0x88], 0x9b359d0f
mov dword [esp + 0x8c], 0x872b9931
mov dword [esp + 0x90], 0x831c851a
mov dword [esp + 0x94], 0x8fdf812d
mov dword [esp + 0x98], 0x8bfc8df9
mov word [esp + 0x9c], 0x8988
mov dword [esp + 0x9e], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x85
ja 0x409b81
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x1c]
lea ebx, [ecx - 0x2608cd42]
mov ebp, edx
not ebp
or ebp, ebx
lea ebx, [edx + ebp]
inc ebx
add ecx, edx
add ecx, 0xd9f732be
sub ecx, ebx
mov edx, ecx
xor edx, ebx
not ebx
and ebx, ecx
add ebx, ebx
sub ebx, edx
mov dword [esp + 8], ebx
mov ecx, dword [esp + 8]
add cl, 0x4a
mov edx, dword [esp]
mov byte [esp + edx + 0x1c], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x86
jb 0x409b30
mov dword [esp + 8], 0x1fbf196b
mov dword [esp + 0xc], 0x63cb1dac
mov dword [esp + 0x10], 0x6160
mov byte [esp + 0x14], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0xc
ja 0x409be3
nop
mov ecx, dword [esp + 4]
mov edx, dword [esp + 4]
movzx edx, byte [esp + edx + 8]
add ecx, 0x4667abba
xor ecx, edx
mov dword [esp], ecx
mov ecx, dword [esp]
add cl, 0x5e
mov edx, dword [esp + 4]
mov byte [esp + edx + 8], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0xd
jb 0x409bb0
lea ecx, [esp + 8]
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x30]
push eax
push ecx
call fcn.0040c160
add esp, 0x1c
mov ebx, eax
push edi
call fcn.004084e0
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
jmp 0x409c1c
mov bl, 1
mov eax, ebx
add esp, 0xa8
pop esi
pop edi
pop ebx
pop ebp
ret