Function at 0x1400316f0
Capabilities:
Get memory capacity
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xaa0]
sub rsp, 0xba0
mov rdi, rcx
mov rsi, rdx
lea rcx, [rbp + 0xad8]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r8, qword [rbp + 0xad8]
lea rcx, [rbp + 0x80]
mov edx, 0x64
call fcn.140031c10
lea r8, [rbp + 0x80]
mov rcx, rdi
lea rdx, str.Error_occurred_at__s._r_n
call fcn.140039020
xor edx, edx
lea rcx, [rbp + 0x280]
mov r8d, 0x820
call fcn.140042b90
mov r9d, 0x40e
lea r8, [rbp + 0x280]
xor edx, edx
mov rcx, rsi
call sub.PSAPI.DLL_GetModuleFileNameExW
xor r14d, r14d
lea rbx, str.Unknown
test eax, eax
jne 0x1400317d2
mov r8, rbx
lea rax, [rbp + 0x280]
sub r8, rax
lea rcx, [rbp + 0x280]
mov edx, 0x410
lea rax, [rdx + 0x7ffffbee]
test rax, rax
je 0x1400317c3
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400317c3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400317a0
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r14w
xor edx, edx
lea rcx, [rbp + 0xf0]
mov r8d, 0x190
call fcn.140042b90
lea rdx, [rbp + 0xad0]
mov dword [rbp + 0xad0], 0xc6
lea rcx, [rbp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x140031851
lea rcx, [rbp + 0xf0]
mov edx, 0xc8
sub rbx, rcx
lea rax, [rbp + 0xf0]
nop
lea rcx, [rdx + 0x7fffff36]
test rcx, rcx
je 0x140031842
movzx ecx, word [rbx + rax]
test cx, cx
je 0x140031842
mov word [rax], cx
add rax, 2
sub rdx, 1
jne 0x140031820
test rdx, rdx
lea rcx, [rax - 2]
cmovne rcx, rax
mov word [rcx], r14w
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x58]
call fcn.140014790
mov rbx, qword [rax]
test rbx, rbx
jne 0x14003186d
lea rbx, [rax + 8]
lea rdx, [rbp + 0x280]
lea rcx, [rbp + 0x30]
call fcn.140014790
mov r8, qword [rax]
test r8, r8
jne 0x140031889
lea r8, [rax + 8]
mov r9, rbx
lea rdx, str._s__run_by__s._r_n_r_n
mov rcx, rdi
call fcn.140039020
lea rcx, [rbp + 0x30]
call fcn.140001d30
lea rcx, [rbp + 0x58]
call fcn.140001d30
lea rcx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
xor eax, eax
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov rcx, rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea r8d, [rax + 0x48]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x30], 0x48
call sub.PSAPI.DLL_GetProcessMemoryInfo
mov r8d, dword [rbp - 0xc]
lea rdx, str._d___physical_memory_in_use._r_n
mov rcx, rdi
call fcn.140039020
mov r9, qword [rbp]
lea rdx, str._d_MB_physical_memory___d_MB_free_._r_n
mov r8, qword [rbp - 8]
add r9, 0xfffff
add r8, 0xfffff
shr r9, 0x14
shr r8, 0x14
mov rcx, rdi
call fcn.140039020
mov r9, qword [rsp + 0x68]
lea rdx, str._d_MB_process_peak_paging_file___d_MB_used_._r_n
mov r8, qword [rsp + 0x70]
add r9, 0xfffff
add r8, 0xfffff
shr r9, 0x14
shr r8, 0x14
mov rcx, rdi
call fcn.140039020
mov r9, qword [rsp + 0x40]
lea rdx, str._d_MB_process_peak_working_set___d_MB_used_._r_n
mov r8, qword [rsp + 0x38]
add r9, 0xfffff
add r8, 0xfffff
shr r9, 0x14
shr r8, 0x14
mov rcx, rdi
call fcn.140039020
xor edx, edx
lea rcx, [rbp - 0x7c]
lea r8d, [rdx + 0x64]
call fcn.140042b90
mov edx, 0x68
mov dword [rbp - 0x80], 0x68
lea rcx, [rbp - 0x80]
call sub.PSAPI.DLL_GetPerformanceInfo
mov rax, qword [rbp - 0x30]
lea rdx, str.System_Commit_Total_Limit_Peak:__dMB__dMB__dMB_r_n
mov r9, qword [rbp - 0x70]
mov rcx, rax
imul rcx, qword [rbp - 0x68]
imul r9, rax
mov r8, qword [rbp - 0x78]
add rcx, 0xfffff
shr rcx, 0x14
imul r8, rax
add r9, 0xfffff
mov qword [rsp + 0x20], rcx
shr r9, 0x14
mov rcx, rdi
add r8, 0xfffff
shr r8, 0x14
call fcn.140039020
mov r9, qword [rbp - 0x58]
lea rdx, str.System_Physical_Total_Available:__dMB__dMB_r_n
imul r9, qword [rbp - 0x30]
mov r8, qword [rbp - 0x60]
mov rcx, rdi
imul r8, qword [rbp - 0x30]
add r9, 0xfffff
add r8, 0xfffff
shr r9, 0x14
shr r8, 0x14
call fcn.140039020
mov r8d, dword [rbp - 0x24]
lea rdx, str.System_Process_Count:__d_r_n
mov rcx, rdi
call fcn.140039020
mov r8d, dword [rbp - 0x20]
lea rdx, str.System_Thread_Count:__d_r_n
mov rcx, rdi
call fcn.140039020
mov r8d, dword [rbp - 0x28]
lea rdx, str.System_Handle_Count:__d_r_n
mov rcx, rdi
call fcn.140039020
lea r11, [rsp + 0xba0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret