Function at 0x404ec0
Capabilities:
Get hostname
Get session user name
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407ace
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x40c008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
push 0x40c710
mov dword [ebp - 0x18], 0xc8
mov dword [ebp - 0x1c], 0xc8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x405105
lea eax, [ebp - 0x1c]
push eax
push 0x40c580
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x405105
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x58]
cmp eax, 0xc
ja case.0x404f4b.1
movzx eax, byte [eax + 0x40513c]
jmp dword [eax*4 + 0x405124]
push 0x409630
jmp 0x404f7a
push 0x409638
jmp 0x404f7a
push str.ARM64
jmp 0x404f7a
push str.Intel_Itanium_based
jmp 0x404f7a
push 0x409678
jmp 0x404f7a
push str.Unknown
push 0x32
push 0x40ca30
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov dword [ebp - 4], 0
xor eax, eax
mov ebx, dword [sym.imp.USER32.dll_EnumDisplayDevicesW]
xor esi, esi
push esi
mov dword [ebp - 0x34], 0
xor edi, edi
mov word [ebp - 0x34], ax
lea eax, [ebp - 0x3a0]
push eax
push esi
push esi
mov dword [ebp - 0x3a0], 0x348
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x14], 1
call ebx
test eax, eax
je 0x405022
test byte [ebp - 0x25c], 4
jne 0x404ff1
push 0
lea eax, [ebp - 0x3a0]
inc esi
push eax
push esi
push 0
call ebx
test eax, eax
jne 0x404fd3
jmp 0x405022
lea ecx, [ebp - 0x35c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405000
sub ecx, edx
lea eax, [ebp - 0x35c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.00402240
mov edi, dword [ebp - 0x24]
push 0x190
push 0
push 0x40c8a0
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x34]
mov esi, dword [ebp - 0x34]
add esp, 0xc
cmp ebx, 8
cmovae eax, esi
test edi, edi
je 0x405086
test eax, eax
je 0x405074
cmp edi, 0x190
ja 0x405066
push edi
push eax
push 0x40c8a0
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x405086
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x22
jmp 0x405080
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
lea eax, [ebp - 0x3a4]
mov dword [ebp - 0x14], 0x12c
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4050cf
lea eax, [ebp - 0x14]
push eax
push 0x40ca94
push 0
push 2
push str.ProductName
push 0
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp ebx, 8
jb 0x405105
lea ecx, [ebx*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4050fb
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4050fb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.00406d23
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406a94
mov esp, ebp
pop ebp
ret