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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x114
cmp dword [ecx + 0x20], 0
je 0x409dd5
mov esi, ecx
lea eax, [ecx + 0x10]
push eax
call fcn.00405fa0
add esp, 4
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x10], 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 + 2], al
mov byte [esp + 3], 0
mov dword [esp + 0x14], edx
lea eax, [edx + 0x400]
push eax
call fcn.00408380
add esp, 4
mov dword [esp + 0x78], 0xcbcfb2c0
mov byte [esp + 0x7c], 0x34
mov dword [esp + 0x7d], 0
mov byte [esp + 0x81], 0
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, edx
add cl, 0x76
xor cl, byte [esp + edx + 0x78]
add cl, 0xb2
mov byte [esp + edx + 0x78], cl
inc edx
cmp edx, 0xa
jne 0x409980
lea ebp, [esp + 0x78]
mov dword [esp + 4], esi
mov ecx, esi
push 0x44babc
push ebp
mov dword [esp + 0x10], eax
push eax
call fcn.004091e0
mov dword [esp + 0x78], 0xcfaa5058
mov byte [esp + 0x7c], 0
mov eax, 0xe4f91452
mov ecx, 0x1b06ebad
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x1b06ec26]
mov edi, edx
xor edi, eax
or edi, ecx
mov ebx, edi
not ebx
mov esi, ebx
and esi, 0x5d
and edi, 2
imul edi, esi
mov esi, ebx
and esi, 2
or ebx, 2
imul ebx, esi
add ebx, edi
lea esi, [ecx - 0x1b06eb00]
and esi, ebx
not ebx
and ebx, eax
sub ebx, esi
add bl, dl
add bl, 0x66
mov byte [esp + eax + 0x1b06ec26], bl
inc eax
dec ecx
cmp eax, 0xe4f91457
jne 0x4099d0
lea eax, [esp + 2]
mov esi, dword [esp + 4]
mov ecx, esi
push eax
push ebp
push dword [esp + 0x10]
call fcn.004091e0
mov eax, dword [str.Dvh8ui__pakistan]
mov dword [esp + 0xc], eax
mov dword [esp + 0x78], 0xf15a4440
mov word [esp + 0x7c], 0
mov ebx, 0x66f8d4d5
nop
movzx edi, byte [esp + ebx - 0x66f8d45d]
mov edx, edi
and edx, ebx
mov eax, edx
or al, 0xfd
inc al
mov ecx, edx
and cl, 0xdd
mul cl
mov ecx, eax
mov eax, edi
add cl, al
mov eax, edx
shr al, 1
and al, 1
or dl, 2
mul dl
add al, al
sub cl, al
movzx eax, cl
add eax, ebx
add al, 0xd7
mov byte [esp + ebx - 0x66f8d45d], al
inc ebx
cmp ebx, 0x66f8d4db
jne 0x409a50
mov ecx, esi
push dword [esp + 0xc]
push ebp
mov edi, dword [esp + 0x10]
push edi
call fcn.004091e0
mov dword [esp + 0x78], 0xedf0e8f9
mov dword [esp + 0x7c], 0xf0edf4e1
mov dword [esp + 0x80], 0xe6e7ecf1
mov byte [esp + 0x84], 8
mov dword [esp + 0x85], 0
mov eax, 0x9b7c1b3e
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [ebp]
xor esi, eax
mov ecx, esi
not ecx
and esi, 0x96c083a
xor esi, 0x3a
mov edx, ecx
or edx, 0x3a
add edx, esi
and ecx, 1
xor edx, 1
or edx, ecx
add edx, ecx
mov byte [ebp], dl
inc ebp
dec eax
cmp eax, 0x9b7c1b2d
jne 0x409ae0
mov dword [esp + 0x18], 0x39a69693
mov byte [esp + 0x1c], 0
mov eax, 0xcb
mov ecx, 0x34
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0xb3]
mov edx, eax
xor edx, ecx
and edx, esi
xor edx, ecx
mov bl, 8
sub bl, dl
mov byte [esp + eax - 0xb3], bl
inc eax
dec ecx
cmp eax, 0xd0
jne 0x409b30
lea ebp, [esp + 0x78]
lea eax, [esp + 0x18]
mov esi, dword [esp + 4]
mov ecx, esi
push ebp
push eax
push edi
call fcn.004091e0
mov dword [esp + 0x78], 0x8a828082
mov byte [esp + 0x7c], 0x14
mov dword [esp + 0x7d], 0
mov byte [esp + 0x81], 0
mov eax, 0x90195706
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x6fe6a972]
mov edx, ecx
and edx, eax
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, eax
add cl, 0xe2
mov byte [esp + eax + 0x6fe6a972], cl
inc eax
cmp eax, 0x90195710
jne 0x409b90
mov ecx, esi
push dword [esp + 0x14]
push dword [esp + 0x14]
push ebp
push edi
call fcn.00409480
mov dword [esp + 0x18], 0xe37de1a3
mov dword [esp + 0x1c], 0xe772e57a
mov dword [esp + 0x20], 0xdb44d97d
mov dword [esp + 0x24], 0xdf83dd48
mov dword [esp + 0x28], 0xd35bd164
mov dword [esp + 0x2c], 0xd773d544
mov dword [esp + 0x30], 0xcbaac982
mov dword [esp + 0x34], 0xcf5bcd51
mov dword [esp + 0x38], 0xc356c15c
mov dword [esp + 0x3c], 0xc756c55d
mov dword [esp + 0x40], 0x3ba83999
mov dword [esp + 0x44], 0x3f613da8
mov dword [esp + 0x48], 0x33ad3196
mov dword [esp + 0x4c], 0x37ab35a6
mov dword [esp + 0x50], 0x2b8e2975
mov dword [esp + 0x54], 0x2fba2d8d
mov dword [esp + 0x58], 0x23692181
mov dword [esp + 0x5c], 0x27842544
mov dword [esp + 0x60], 0x1b8f1987
mov dword [esp + 0x64], 0x1fba1d82
mov dword [esp + 0x68], 0x138011b1
mov dword [esp + 0x6c], 0x175b159d
mov word [esp + 0x70], 0x908
mov byte [esp + 0x74], 0
mov word [esp + 0x72], 0
xor eax, eax
nop
nop
nop
movzx ecx, byte [esp + eax + 0x18]
lea edx, [eax + 0x7ac136d8]
lea esi, [eax + 0xd8]
and esi, ecx
or edx, ecx
xor edx, esi
add edx, 0x9a39edc7
mov ecx, edx
xor ecx, 0x50
and edx, 0x50
lea ecx, [ecx + edx*2]
add cl, 0xb1
mov byte [esp + eax + 0x18], cl
mov ecx, eax
and ecx, 1
mov edx, eax
or edx, 0xfffffffe
not eax
or eax, 1
and eax, edx
not eax
lea eax, [eax + ecx*2]
cmp eax, 0x5d
jb 0x409c90
movzx eax, word [esp + 0x18]
test ax, ax
je 0x409d02
lea ebp, [esp + 0x78]
lea ecx, [esp + 0x1a]
nop
nop
nop
nop
mov word [ebp], ax
add ebp, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409cf0
mov word [ebp], 0
mov esi, dword [esp + 4]
movzx ecx, byte [esi + 0x60]
test cl, cl
je 0x409d32
lea eax, [esi + 0x61]
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx ecx, cl
mov word [ebp], cx
add ebp, 2
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x409d20
mov dword [ebp], 0xa000d
mov word [ebp + 4], 0
mov eax, dword [esi + 0x80]
mov dword [esp + 0x18], 0x8f2f897b
mov dword [esp + 0x1c], 0x833b8d3c
mov word [esp + 0x20], 0x8180
mov dword [esp + 0x22], 0
mov byte [esp + 0x26], 0
mov ecx, 0x1067d162
nop
nop
movzx edx, byte [esp + ecx - 0x1067d14a]
mov ebx, edx
and ebx, ecx
add bl, bl
sub dl, bl
movzx edx, dl
add edx, ecx
add dl, 0x16
mov byte [esp + ecx - 0x1067d14a], dl
inc ecx
cmp ecx, 0x1067d171
jne 0x409d70
lea ecx, [esp + 0x78]
push 0x493e0
push eax
push edi
push 0
push 0
push ecx
lea eax, [esp + 0x30]
push eax
call fcn.0040c350
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408390
add esp, 4
mov eax, dword [esi + 0x80]
add dword [esi + 4], eax
mov dword [esi + 0x80], 0
jmp 0x409dd7
mov bl, 1
mov eax, ebx
add esp, 0x114
pop esi
pop edi
pop ebx
pop ebp
ret