Function at 0x14000500c
Capabilities:
Get session user name

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov rax, qword [0x140024008]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
lea rcx, str.msvcrt.dll
mov dword [rbp - 0x6c], 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.wprintf
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov dword [rbp - 0x68], 0x104
lea r9, [rbp - 0x60]
mov qword [0x140026588], rax
xor r8d, r8d
lea edx, [rbx + 1]
lea ecx, [rbx + 0x14]
call qword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
test eax, eax
js 0x140005095
mov ebx, 1
jmp 0x1400050a4
mov edx, eax
lea rcx, str.____get_privilege_debug_failed_0x_08x_n
call qword [0x140026588]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, str.SYSTEM
lea rcx, [rbp - 0x50]
call fcn.14000752c
test eax, eax
je 0x1400050db
test ebx, ebx
jne 0x1400050db
lea rcx, str.debug_failed_n
call fcn.140001008
jmp 0x14000541d
lea rcx, [rbp - 0x60]
call fcn.14000216c
test eax, eax
js 0x14000541d
mov eax, dword [0x140026830]
cmp eax, 0xbb8
jae 0x140005102
lea rbx, [0x140021a70]
jmp 0x140005149
cmp eax, 0x1388
jae 0x140005112
lea rbx, [0x140021aa0]
jmp 0x140005149
cmp eax, 0x1b58
jae 0x140005122
lea rbx, [0x140021ad0]
jmp 0x140005149
cmp eax, 0x1f40
jae 0x140005132
lea rbx, [0x140021b00]
jmp 0x140005149
cmp eax, 0x24b8
lea rbx, [0x140021b60]
lea rcx, [0x140021b90]
cmovae rbx, rcx
add eax, 0xffffe4a8
cmp eax, 0x95f
ja 0x140005165
cmp dword [0x140024e08], 0x53480000
jbe 0x140005165
add rbx, 0x30
mov rdx, qword [0x1400265b0]
mov rdi, qword [rbp - 0x60]
test rdx, rdx
je 0x14000518e
and qword [rsp + 0x20], 0
lea r8, [rbp - 0x6c]
mov r9d, 4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
xor r12d, r12d
cmp dword [rbp - 0x6c], r12d
jbe 0x14000540a
mov rdx, qword [0x1400265c0]
lea r8, [rsp + 0x30]
and qword [rsp + 0x20], 0
mov r9d, 8
mov r15d, r12d
mov rcx, rdi
shl r15, 4
add rdx, r15
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400053fd
mov rdx, qword [rbx]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1400053fd
mov r8, qword [0x1400265c0]
mov rdx, qword [rsp + 0x30]
add r8, r15
cmp rdx, r8
je 0x1400053f4
mov r9, qword [rbx]
mov r8, rsi
and qword [rsp + 0x20], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400053f4
mov eax, dword [rbx + 8]
mov rdx, rdi
mov r8d, dword [rbx + 0x14]
add rax, rsi
mov qword [rsp + 0x48], rax
add r8, rsi
mov eax, dword [rbx + 0xc]
mov ecx, dword [rax + rsi]
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x60], ecx
mov ecx, dword [rax + rsi]
mov eax, dword [rbx + 0x18]
add rax, rsi
mov dword [rsp + 0x64], ecx
mov qword [rsp + 0x58], rax
mov eax, dword [rbx + 0x1c]
mov qword [rsp + 0x50], r8
mov rcx, qword [rax + rsi]
mov eax, dword [rbx + 0x20]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rax + rsi]
mov eax, dword [rbx + 0x24]
mov qword [rsp + 0x70], rcx
mov rcx, qword [rax + rsi]
mov eax, dword [rbx + 0x28]
mov qword [rsp + 0x78], rcx
mov rcx, qword [rax + rsi]
mov eax, dword [rbx + 0x2c]
add rax, rsi
mov qword [rbp - 0x80], rcx
mov rcx, r8
mov qword [rbp - 0x78], rax
call fcn.1400023d8
mov rcx, qword [rsp + 0x58]
mov rdx, rdi
call fcn.1400023d8
mov rcx, qword [rbp - 0x78]
mov rdx, rdi
call fcn.1400023d8
mov rdx, qword [rsp + 0x70]
lea r8, [rbp - 0x70]
and qword [rsp + 0x20], 0
inc rdx
mov r9d, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x140005322
movzx eax, byte [rbp - 0x70]
mov ecx, 0x40
lea eax, [rax*4 + 8]
mov edx, eax
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x140005322
mov rdx, qword [rsp + 0x70]
mov r9d, r13d
and qword [rsp + 0x20], 0
mov r8, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov rcx, qword [rsp + 0x70]
test eax, eax
cmovne rcx, r14
mov qword [rsp + 0x70], rcx
cmp dword [rsp + 0x60], 3
je 0x14000538e
lea rcx, [rsp + 0x40]
call fcn.140002450
lea r14, [0x140021990]
mov r13d, 7
mov rdx, qword [r14]
cmp dword [rdx + 0x10], 0
je 0x140005384
cmp qword [rdx + 0x20], 0
je 0x140005384
mov rdx, qword [rdx]
lea rcx, str._t_ws_:_t
call qword [0x140026588]
mov rax, qword [r14]
mov r8, qword [rax + 8]
test r8, r8
je 0x140005377
mov rdx, rdi
lea rcx, [rsp + 0x40]
call r8
lea rcx, [0x14001ff3c]
call qword [0x140026588]
add r14, 8
sub r13, 1
jne 0x140005340
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400053a2
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400053b6
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rbp - 0x78]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400053c9
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400053d9
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rdx, qword [rsi]
mov rcx, qword [0x1400265c0]
add rcx, r15
mov qword [rsp + 0x30], rdx
cmp rdx, rcx
jne 0x140005200
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc r12d
cmp r12d, dword [rbp - 0x6c]
jb 0x14000519b
mov rax, qword [0x140026568]
call qword [rax + 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140005550
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret