Function at 0x180006510
Capabilities:
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
cmp dword [rcx + 0x14c], 0
mov r14, r8
mov r13, rdx
mov r15, rcx
lea rdi, [r8 + 0x10]
je 0x18000654e
mov dword [rdi + 0x6c], 0xff
jmp 0x180006557
mov eax, dword [rdx + 0x84]
mov dword [rdi + 0x6c], eax
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], eax
mov esi, eax
mov r12d, eax
call fcn.180015230
mov ecx, 0x1002
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rbx, rax
xor eax, eax
test rbx, rbx
je 0x18000659c
mov eax, 0x1000
mov word [rbx + 0x1000], si
lea rdx, [rbp + 0x170]
mov rcx, rbx
mov dword [rbp + 0x170], eax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1800065cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rbx, rbx
je 0x180006617
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
jmp 0x180006617
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r12d, eax
add r12d, r12d
lea eax, [r12 + 2]
movsxd rcx, eax
call qword [sym.imp.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rsi, rax
test rax, rax
je 0x180006606
movsxd r8, r12d
mov rdx, rbx
mov rcx, rax
mov word [r8 + rax], 0
call fcn.18001ca04
test rbx, rbx
je 0x180006614
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov r12, rsi
lea rax, [rbp + 0x178]
lea r9, [rdi + 0x10]
lea r8, str.MHZ
mov qword [rsp + 0x28], rax
lea rdx, str.HARDWAREDESCRIPTIONSYSTEMCENTRALPROCESSOR0
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], 4
call fcn.180014e50
test eax, eax
je 0x180006654
mov dword [rdi + 0x10], 0
cmp qword [0x18002a838], 0
jne 0x180006687
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a838], rax
test rax, rax
je 0x18000669e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rdi + 0x50]
mov rcx, rax
call qword [0x18002a838]
test eax, eax
jne 0x1800066a5
mov dword [rdi + 0x50], 0
lea rcx, [rdi + 0x54]
call fcn.180014a70
test eax, eax
je 0x1800066b9
mov dword [rdi + 0x54], 1
lea rcx, [rdi + 0x58]
call fcn.180014bc0
test eax, eax
je 0x1800066cd
mov dword [rdi + 0x58], 0
lea rcx, [rdi + 0x5c]
call fcn.180014da0
test eax, eax
je 0x1800066e1
mov dword [rdi + 0x5c], 0
lea rdx, [rdi + 8]
xor ebx, ebx
mov rcx, r13
mov dword [rdx], ebx
mov dword [rdi + 4], ebx
call qword [r13]
lea rcx, [rbp - 0x70]
mov dword [rbp - 0x30], 0x40
mov dword [rbp - 0x70], SQLMoreResults
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov rax, qword [0x18002a6f8]
test rax, rax
jne 0x180006740
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.GlobalMemoryStatusEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a6f8], rax
test rax, rax
je 0x18000674e
lea rcx, [rbp - 0x30]
call rax
test eax, eax
mov rax, qword [rbp - 0x28]
jne 0x180006752
mov rax, qword [rbp - 0x68]
shr rax, 0xa
lea rcx, [rbp + 0x10]
mov dword [rbp + 0x10], 0x11c
mov dword [rdi + 0xc], eax
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [rbp + 0x14]
mov r11d, dword [rbp + 0x1c]
mov dword [rdi + 0x38], eax
mov eax, dword [rbp + 0x18]
mov dword [rdi + 0x3c], eax
mov eax, dword [rbp + 0x20]
lea rcx, [rsp + 0x30]
mov dword [rdi + 0x44], eax
movzx eax, byte [rbp + 0x12a]
mov dword [rdi + 0x40], r11d
mov word [rdi + 0x4e], ax
movzx eax, word [rbp + 0x124]
mov word [rdi + 0x48], ax
movzx eax, word [rbp + 0x126]
mov word [rdi + 0x4a], ax
movzx eax, word [rbp + 0x128]
mov word [rdi + 0x4c], ax
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [rsp + 0x32]
movzx r11d, word [rsp + 0x30]
mov word [rdi + 0x62], ax
movzx eax, word [rsp + 0x36]
mov word [rdi + 0x64], ax
movzx eax, word [rsp + 0x38]
mov word [rdi + 0x60], r11w
mov word [rdi + 0x66], ax
movzx eax, word [rsp + 0x3a]
mov word [rdi + 0x68], ax
movzx eax, word [rsp + 0x3c]
mov word [rdi + 0x6a], ax
mov rax, qword [0x18002a700]
test rax, rax
jne 0x180006835
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a700], rax
test rax, rax
jne 0x180006835
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x18000683c
lea rcx, [rsp + 0x60]
call rax
mov eax, dword [rbp - 0x80]
mov ecx, 0x50
mov qword [0x18002a708], rbx
mov dword [rdi + 0x2c], eax
movzx eax, word [rsp + 0x60]
mov dword [rdi + 0x34], ebx
mov dword [rdi + 0x28], eax
mov eax, dword [rbp - 0x7c]
mov dword [rdi], 0x2d2f2757
mov dword [rdi + 0x30], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 1
jne 0x18000688c
lea ecx, [rax + 0x4d]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0x4f
mov dword [rdi + 0x14], eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rdi + 0x18], eax
jmp 0x18000689a
mov dword [rdi + 0x14], 0x1000
mov dword [rdi + 0x18], 0xc28
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rdi + 0x1c], eax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [rdi + 0x20], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r8, [r15 + 0x10]
mov dword [rdi + 0x24], eax
mov eax, 0x78
lea rcx, [rdi + 0x78]
lea rdx, [0x180023bfc]
mov word [rdi + 0x70], ax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [0x180023bfc]
mov r8, r12
lea ebx, [rax + rax + 0x7a]
movsxd rcx, ebx
mov word [rdi + 0x74], bx
add rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8, qword [rsp + 0x58]
lea rdx, [0x180023bfc]
lea ebx, [rbx + rax*2 + 2]
movsxd rcx, ebx
mov word [rdi + 0x72], bx
add rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rbp + 0x24]
lea rdx, [0x180023bfc]
lea ebx, [rbx + rax*2 + 2]
movsxd rcx, ebx
mov word [rdi + 0x76], bx
add rcx, rdi
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, 0x7530
mov rdx, r14
lea ecx, [rbx + rax*2 + 2]
mov dword [r14], 0x2d2f2757
mov dword [r14 + 4], 1
mov dword [r14 + 8], ecx
mov rcx, r13
mov dword [r14 + 0xc], 0
call fcn.180018160
mov ebx, eax
test eax, eax
je 0x18000698d
test rsi, rsi
je 0x180006979
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180006989
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
jmp 0x1800069ad
test rsi, rsi
je 0x18000699b
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800069ab
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
xor eax, eax
mov rbx, qword [rsp + 0x280]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret