Function at 0x403110
Capabilities:
Get hostname
Get memory capacity
Get session user name
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x40a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x240], 0x40
push edi
lea eax, [ebp - 0x240]
push eax
lea eax, [ebx + 6]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x28c], 0
push eax
push 0
call dword [sym.imp.IPHLPAPI.DLL_GetIpAddrTable]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
cmp eax, 0x7a
jne 0x4031bd
push dword [ebp - 0x28c]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4031bd
push 0
lea eax, [ebp - 0x28c]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetIpAddrTable]
test eax, eax
jne 0x4031ad
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [ebx + 0x46]
push 0x10
push eax
call edi
add esp, 0xc
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0x10
push eax
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x403204
push 0x404980
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.GetUserName
call fcn.00404740
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x4075dc
push 0x404980
call fcn.00404740
push ecx
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.00404740
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea eax, [ebp - 0x298]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x28c]
push eax
push 4
lea eax, [ebp - 0x248]
push eax
push 0x14
push dword [ebp - 0x298]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x403287
cmp dword [ebp - 0x248], 0
lea eax, [ebx + 0x56]
je 0x40327a
push str.System
jmp 0x40327f
push str.Administrators
push 0x10
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x290]
mov dword [ebp - 0x23c], 1
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push closesocket
mov dword [ebp - 0x238], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
push str.ProductName
push dword [ebp - 0x290]
call esi
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x23c]
push eax
push 0
push str.CurrentBuildNumber
push dword [ebp - 0x290]
call esi
lea eax, [ebp - 0x120]
push eax
lea eax, [ebx + 0x66]
push 0x40
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea eax, [ebx + 0xa6]
push 0x10
push eax
call edi
add esp, 0xc
push dword [ebp - 0x290]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x294]
mov dword [ebp - 0x294], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalProcessorInformation]
mov eax, 0xaaaaaaab
mul dword [ebp - 0x294]
xor eax, eax
shr edx, 4
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
test edx, edx
je 0x4033ef
cmp edx, 0xaaaaaaa
ja 0x4034ac
lea esi, [edx + edx*2]
shl esi, 3
cmp esi, 0x1000
jb 0x4033b7
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x4034b1
push eax
call fcn.00405221
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x4033b1
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x4033c8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test esi, esi
je 0x4033c6
push esi
call fcn.00405221
add esp, 4
jmp 0x4033c8
xor eax, eax
push esi
lea edi, [eax + esi]
mov dword [ebp - 0x234], eax
push 0
push eax
mov dword [ebp - 0x22c], edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x234]
add esp, 0xc
mov dword [ebp - 0x230], edi
lea ecx, [ebp - 0x294]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLogicalProcessorInformation]
test eax, eax
je 0x403448
mov esi, dword [ebp - 0x234]
xor edi, edi
mov ecx, dword [ebp - 0x230]
xor edx, edx
cmp esi, ecx
je 0x40343a
cmp dword [esi + 4], 0
jne 0x403433
mov eax, dword [esi]
inc edi
test eax, eax
je 0x403433
mov ecx, eax
and ecx, 1
add edx, ecx
shr eax, 1
jne 0x403422
mov ecx, dword [ebp - 0x230]
add esi, 0x18
cmp esi, ecx
jne 0x403415
mov word [ebx + 0xbe], di
mov word [ebx + 0xc0], dx
lea eax, [ebp - 0x288]
mov dword [ebp - 0x288], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x403479
mov ecx, dword [ebp - 0x280]
mov eax, dword [ebp - 0x27c]
shrd ecx, eax, 0x14
mov dword [ebx + 0xc2], ecx
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [ebx + 0xb6], eax
lea ecx, [ebp - 0x234]
mov dword [ebx + 0xba], edx
call fcn.00404330
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040520e
mov esp, ebp
pop ebp
ret
call fcn.00404e10
call fcn.00401230
int3