Function at 0x4023e0
Capabilities:
Get common file path
Get hostname
Get session user name
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441b27
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1064
call fcn.0041bae0
mov eax, dword [0x45016c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
push 0x456928
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x456928
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea ecx, [esi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
mov edi, eax
push edi
push 0x456928
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push 0x456928
push 0
push 0xfde9
call esi
push 0
push 0
push 0x452710
mov dword [0x452910], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x452710
push 0
push 0xfde9
call esi
mov esi, eax
lea ecx, [esi*2 + 2]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
mov edi, eax
push edi
push 0x452710
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0x452710
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword fs:[0x2c]
mov dword [0x45291c], edi
mov dword [ebp - 0x1028], 0x77c65a72
mov dword [ebp - 0x1024], 0xdc1281ce
mov edi, dword [eax]
mov dword [ebp - 0x1020], 0x1fc1524a
mov dword [ebp - 0x1070], edi
mov eax, dword [edi + 0x180]
test al, 1
jne 0x402558
or eax, 1
mov dword [edi + 0x180], eax
mov dword [ebp - 4], 0
movq xmm0, qword [ebp - 0x1028]
mov eax, dword [ebp - 0x1020]
mov byte [edi + 0xd8], 1
movq qword [edi + 0xcc], xmm0
push 0x441cf0
mov dword [edi + 0xd4], eax
call fcn.0041b828
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, edi
cmp byte [eax + 0xd8], 0
lea eax, [eax + 0xcc]
mov dword [ebp - 0x1058], eax
je 0x4025c7
mov edi, dword [ebp - 0x1058]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1028], xmm0
mov eax, dword [ebp - 0x1024]
mov esi, dword [ebp - 0x1028]
mov dword [ebp - 0x106c], eax
mov ecx, esi
mov eax, 0x1fa53b3f
and ecx, 7
mov edx, 0x9b77efa7
shl ecx, 3
call fcn.00441580
xor byte [esi + edi], al
add esi, 1
adc dword [ebp - 0x106c], 0
jne 0x4025bd
cmp esi, 0xc
jb 0x402592
mov byte [edi + 0xc], 0
mov edi, dword [ebp - 0x1070]
mov eax, dword [edi + 0xc4]
movaps xmm0, xmmword [0x44dcb0]
movaps xmm1, xmmword [0x44dc90]
test al, 1
jne 0x402618
or eax, 1
mov dword [edi + 0xc4], eax
mov dword [ebp - 4], 1
mov byte [edi + 0x1a4], 1
movups xmmword [edi + 0x184], xmm0
push 0x441d10
movups xmmword [edi + 0x194], xmm1
call fcn.0041b828
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp byte [edi + 0x1a4], 0
lea ecx, [edi + 0x184]
mov dword [ebp - 0x1070], ecx
je 0x402675
xorps xmm0, xmm0
movlpd qword [ebp - 0x1028], xmm0
mov edi, dword [ebp - 0x1024]
mov esi, dword [ebp - 0x1028]
mov ecx, esi
mov eax, 0x1fa53b3f
and ecx, 7
mov edx, 0x9b77efa7
shl ecx, 3
call fcn.00441580
mov ecx, dword [ebp - 0x1070]
xor byte [esi + ecx], al
add esi, 1
adc edi, 0
jne 0x402671
cmp esi, 0x20
jb 0x402644
mov byte [ecx + 0x20], 0
lea eax, [ebp - 0x105c]
mov dword [ebp - 0x1030], 1
push eax
push 0x101
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x106c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402719
mov esi, dword [ebp - 0x1058]
lea eax, [ebp - 0x1060]
push eax
push 0
push 0
push 0
push esi
push dword [ebp - 0x105c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40270d
mov eax, dword [ebp - 0x1060]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
lea eax, [ebp - 0x1060]
push eax
push edi
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x106c], edi
push eax
push 0
push esi
push dword [ebp - 0x105c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40270d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x105c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40272b
lea eax, [ebp - 0x818]
mov dword [ebp - 0x102c], 0x800
push 0x800
push 0
push eax
call fcn.0041d2e0
add esp, 0xc
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x818]
push eax
push 5
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
jmp 0x402773
jmp 0x402785
lea eax, [ebp - 0x1018]
mov dword [ebp - 0x102c], 0x800
push 0x800
push 0
push eax
call fcn.0041d2e0
add esp, 0xc
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
jmp 0x4027cb
lea eax, [ebp - 0x1058]
mov dword [ebp - 0x1020], 1
mov dword [ebp - 0x1070], 0
push eax
push 0x101
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402873
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x1064]
push eax
push 0
push 0
push 0
push str.ProductName
push dword [ebp - 0x1058]
call edi
test eax, eax
jne 0x402867
mov eax, dword [ebp - 0x1064]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea eax, [ebp - 0x1064]
push eax
push esi
lea eax, [ebp - 0x1020]
mov dword [ebp - 0x1070], esi
push eax
push 0
push str.ProductName
push dword [ebp - 0x1058]
call edi
test eax, eax
je 0x402867
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x1058]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402899
lea ecx, [ebp - 0x1054]
push ecx
call eax
jmp 0x4028a6
lea eax, [ebp - 0x1054]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x1054]
cmp ax, 9
je 0x4028d0
cmp ax, 6
je 0x4028d0
cmp ax, 7
je 0x4028d0
test ax, ax
jne 0x4028da
mov dword [0x452918], 0
jmp 0x4028da
mov dword [0x452918], 1
call fcn.00404680
mov dword [0x452500], eax
call fcn.004019b0
call fcn.00404650
push eax
push 0x44d7fc
push dword [0x452500]
mov dword [0x4524fc], eax
call fcn.00404490
mov edi, 4
mov byte [ebp - 0x1065], 0
mov esi, 0x452928
mov dword [ebp - 0x1074], edi
nop dword [eax + eax]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x40296d
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov ecx, esi
mov edx, eax
call fcn.00401130
mov edi, eax
push edi
push str.name
push dword [0x4524fc]
call fcn.00404540
test edi, edi
je 0x40295d
push edi
call fcn.0041ec84
add esp, 4
mov edi, dword [ebp - 0x1074]
mov al, 1
mov byte [ebp - 0x1065], al
jmp 0x402973
mov al, byte [ebp - 0x1065]
add esi, 0x1000
sub edi, 1
mov dword [ebp - 0x1074], edi
jne 0x402920
test al, al
jne 0x40299d
push str.NONE
push str.name
push dword [0x4524fc]
call fcn.00404540
mov esi, dword [ebp - 0x106c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, eax
mov ecx, esi
call fcn.00401130
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [0x452920], eax
lea eax, [ebp - 0x818]
push eax
call esi
add eax, eax
lea ecx, [ebp - 0x818]
mov edx, eax
call fcn.00401130
mov dword [0x456d34], eax
lea eax, [ebp - 0x1018]
push eax
call esi
add eax, eax
lea ecx, [ebp - 0x1018]
mov edx, eax
call fcn.00401130
mov edi, dword [ebp - 0x1070]
push edi
mov dword [0x456d30], eax
call esi
add eax, eax
mov ecx, edi
mov edx, eax
call fcn.00401130
push dword [0x452500]
mov dword [0x456d3c], eax
call fcn.004048e0
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [0x452500]
mov esi, eax
call fcn.004048e0
mov edx, esi
mov ecx, eax
call fcn.00401130
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [0x456b28], eax
mov eax, dword [0x456d38]
add eax, 0x2ac
push eax
call esi
mov ecx, dword [0x456d38]
mov edx, eax
add ecx, 0x2ac
call fcn.00401130
mov dword [0x452924], eax
mov eax, dword [0x456d38]
add eax, 0x2ec
push eax
call esi
mov ecx, dword [0x456d38]
mov edx, eax
add ecx, 0x2ec
call fcn.00401130
mov esi, dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
push 0x452914
push 0
push 0
push 0x4422e0
mov dword [0x4524f8], eax
call esi
push 0x45270c
push 0
push 0
push 0x4422d0
call esi
push 0x452708
push 0
push 0
push 0x4422c0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call esi
push dword [ebp - 0x106c]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041b559
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret