Function at 0x404dd0
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 0x4075ae
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x40b008]
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 0x40b710
mov dword [ebp - 0x18], 0xc8
mov dword [ebp - 0x1c], 0xc8
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x405015
lea eax, [ebp - 0x1c]
push eax
push 0x40b580
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x405015
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x58]
cmp eax, 0xc
ja case.0x404e5b.1
movzx eax, byte [eax + 0x40504c]
jmp dword [eax*4 + 0x405034]
push 0x4085d0
jmp 0x404e8a
push 0x4085d8
jmp 0x404e8a
push str.ARM64
jmp 0x404e8a
push str.Intel_Itanium_based
jmp 0x404e8a
push 0x408618
jmp 0x404e8a
push str.Unknown
push 0x32
push 0x40ba30
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 0x404f32
test byte [ebp - 0x25c], 4
jne 0x404f01
push 0
lea eax, [ebp - 0x3a0]
inc esi
push eax
push esi
push 0
call ebx
test eax, eax
jne 0x404ee3
jmp 0x404f32
lea ecx, [ebp - 0x35c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404f10
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 0x40b8a0
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 0x404f96
test eax, eax
je 0x404f84
cmp edi, 0x190
ja 0x404f76
push edi
push eax
push 0x40b8a0
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x404f96
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x22
jmp 0x404f90
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 connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404fdf
lea eax, [ebp - 0x14]
push eax
push 0x40ba94
push 0
push 2
push str.ProductName
push 0
push dword [ebp - 0x3a4]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp ebx, 8
jb 0x405015
lea ecx, [ebx*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x40500b
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40500b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.00406803
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.00406574
mov esp, ebp
pop ebp
ret