Function at 0x409e30
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10c
cmp dword [ecx + 0x20], 0
je 0x40a2f6
mov esi, ecx
lea eax, [ecx + 0x10]
push eax
call fcn.004066a0
add esp, 4
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 8], eax
movzx eax, byte [esi]
imul ecx, eax, 0xcd
shr ecx, 0xa
and ecx, 0xfffffffe
lea ecx, [ecx + ecx*4]
sub al, cl
movzx eax, al
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [esp + 6], al
mov byte [esp + 7], 0
mov dword [esp + 0xc], edx
lea eax, [edx + 0x400]
push eax
call fcn.00408810
add esp, 4
mov dword [esp], eax
mov dword [esp + 0x70], 0x353d0234
mov byte [esp + 0x74], 0x88
mov dword [esp + 0x75], 0
mov dword [esp + 0x78], 0
mov eax, 0x4817fa3
nop
nop
movzx ecx, byte [esp + eax - 0x4817f33]
mov edx, eax
and edx, ecx
add edx, edx
sub ecx, edx
add ecx, eax
mov edx, ecx
and edx, 0x50
xor ecx, 0xd0
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax - 0x4817f33], cl
inc eax
cmp eax, 0x4817faf
jne 0x409ec0
lea ebx, [esp + 0x70]
mov ecx, esi
push 0x44df38
push ebx
push dword [esp + 8]
call fcn.004096e0
mov dword [esp + 0x70], 0x51eae4fc
mov word [esp + 0x74], 0
mov byte [esp + 0x76], 0
xor eax, eax
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x70]
lea ecx, [eax + 0x456c12ed]
mov edi, 0x12
sub edi, eax
and edi, edx
mov ebp, ecx
xor ebp, edx
add ebp, edx
sub ebp, edi
and ecx, edx
mov edx, ebp
xor edx, ecx
not ecx
and ecx, ebp
add ecx, ecx
sub ecx, edx
add cl, 0x5f
mov byte [esp + eax + 0x70], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 7
jb 0x409f20
lea eax, [esp + 6]
mov ecx, esi
push eax
push ebx
push dword [esp + 8]
call fcn.004096e0
mov edi, dword [str.HpOoIh__b8bb860e1ee2]
mov dword [esp + 0x70], 0xf1aaa4a0
mov byte [esp + 0x74], 0
mov ecx, 0xa3210afd
nop
nop
nop
nop
nop
nop
movzx eax, byte [esp + ecx + 0x5cdef573]
mov edx, eax
and edx, ecx
add dl, dl
sub al, dl
movzx eax, al
add eax, ecx
add al, 0xf
mov byte [esp + ecx + 0x5cdef573], al
inc ecx
cmp ecx, 0xa3210b02
jne 0x409f90
mov ecx, esi
push edi
push ebx
push dword [esp + 8]
call fcn.004096e0
mov dword [esp + 0x70], 0xbbacbcaf
mov dword [esp + 0x74], 0x5447b0bf
mov dword [esp + 0x78], 0x424d4057
mov byte [esp + 0x7c], 0xe4
mov dword [esp + 0x7d], 0
mov dword [esp + 0x80], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x7a
xor cl, byte [esp + eax + 0x70]
add cl, 0x9e
mov byte [esp + eax + 0x70], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0x14
jb 0x40a000
mov dword [esp + 0x14], 0x33ced2d1
mov word [esp + 0x18], 0
mov byte [esp + 0x1a], 0
mov eax, 0x74
mov ecx, 0x8b
nop
nop
movzx edx, byte [esp + eax - 0x60]
lea ebp, [edx + edx]
not ebp
add ebp, edx
mov edi, edx
and edi, 0xa
and ebp, 0xf5
or ebp, edi
xor ebp, edx
xor ebp, 0xf5
mov edi, ecx
and edi, edx
not edx
or edx, ebp
and edx, eax
or edx, edi
add dl, 0xbc
mov byte [esp + eax - 0x60], dl
inc eax
dec ecx
cmp eax, 0x7b
jne 0x40a040
lea eax, [esp + 0x14]
mov ecx, esi
push ebx
push eax
push dword [esp + 8]
call fcn.004096e0
mov dword [esp + 0x70], 0x262e2826
mov byte [esp + 0x74], 0x84
mov dword [esp + 0x75], 0
mov eax, 0x705a3420
mov ecx, 0x8fa5cbe0
nop
nop
nop
nop
nop
movzx ebp, byte [esp + eax - 0x705a33b0]
mov edx, eax
and edx, ebp
lea edi, [ecx + edx*2]
add edx, edx
not edx
add edx, eax
and edx, ebp
not ebp
and ebp, edi
sub edx, ebp
add dl, 0x60
mov byte [esp + eax - 0x705a33b0], dl
inc eax
dec ecx
cmp eax, 0x705a3429
jne 0x40a0b0
mov dword [esp + 0x10], esi
mov ecx, esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push ebx
push dword [esp + 0xc]
call fcn.004099f0
mov dword [esp + 0x14], 0x893b8bd1
mov dword [esp + 0x18], 0x850a873a
mov dword [esp + 0x1c], 0x8130833f
mov dword [esp + 0x20], 0x9ded9f0c
mov dword [esp + 0x24], 0x991d9b30
mov dword [esp + 0x28], 0x952d9728
mov dword [esp + 0x2c], 0x91f293d2
mov dword [esp + 0x30], 0xed65ef23
mov dword [esp + 0x34], 0xe966eb58
mov dword [esp + 0x38], 0xe556e75f
mov dword [esp + 0x3c], 0xe16ce35b
mov dword [esp + 0x40], 0xfd8fff6c
mov dword [esp + 0x44], 0xf94bfb46
mov dword [esp + 0x48], 0xf545f776
mov dword [esp + 0x4c], 0xf14ef387
mov dword [esp + 0x50], 0xcd42cf4f
mov dword [esp + 0x54], 0xc98fcb73
mov dword [esp + 0x58], 0xc578c7a8
mov dword [esp + 0x5c], 0xc149c375
mov dword [esp + 0x60], 0xdd62df72
mov dword [esp + 0x64], 0xd954db63
mov dword [esp + 0x68], 0xd595d75f
mov dword [esp + 0x6c], 0xd3d4
mov eax, 0xe956e9a3
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax + 0x16a91671]
mov edx, ecx
and edx, 0x46
mov ebp, eax
sub ebp, edx
mov esi, ebp
and esi, edx
xor ebp, edx
lea edx, [esi*2]
add edx, ebp
xor edx, edi
mov esi, edx
and esi, 1
or edx, 1
add edx, esi
add dl, 0xd0
mov byte [esp + eax + 0x16a91671], dl
inc eax
add ecx, 2
cmp eax, 0xe956e9ff
jne 0x40a1c0
movzx eax, word [esp + 0x14]
test ax, ax
je 0x40a231
lea ebx, [esp + 0x70]
lea ecx, [esp + 0x16]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx], ax
add ebx, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a220
mov word [ebx], 0
mov esi, dword [esp + 0x10]
movzx ecx, byte [esi + 0x60]
test cl, cl
je 0x40a261
lea eax, [esi + 0x61]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx ecx, cl
mov word [ebx], cx
add ebx, 2
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x40a250
mov dword [ebx], 0xa000d
mov word [ebx + 4], 0
mov eax, dword [esi + 0x80]
mov dword [esp + 0x14], 0xf95dfbd5
mov dword [esp + 0x18], 0xfd61ff68
mov dword [esp + 0x1c], 0xf3fc
mov byte [esp + 0x20], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
dec dl
xor dl, byte [esp + ecx + 0x14]
add dl, 5
mov byte [esp + ecx + 0x14], dl
inc ecx
cmp ecx, 0xd
jne 0x40a2a0
lea ecx, [esp + 0x70]
push 0x493e0
push eax
mov edi, dword [esp + 8]
push edi
push 0
push 0
push ecx
lea eax, [esp + 0x2c]
push eax
call fcn.0040cc60
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408820
add esp, 4
mov eax, dword [esi + 0x80]
add dword [esi + 4], eax
mov dword [esi + 0x80], 0
jmp 0x40a2f8
mov bl, 1
mov eax, ebx
add esp, 0x10c
pop esi
pop edi
pop ebx
pop ebp
ret