Function at 0x140001000
Capabilities:
Enumerate processes
Get session user name

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor eax, eax
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rax
xor edx, edx
lea ecx, [rax + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x64]
mov r8d, 0x234
mov rdi, rax
call fcn.1400036b0
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x238
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400010aa
lea rax, [rbp - 0x74]
mov r8, rbx
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140001094
add rax, 2
test ecx, ecx
jne 0x140001080
test edx, edx
je 0x1400010c9
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001070
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rbx
lea rcx, str._____s_process_not_found_n
call fcn.140001ac0
xor eax, eax
jmp 0x14000130b
mov edi, dword [rsp + 0x68]
test edi, edi
je 0x1400010b3
mov rdx, rbx
mov qword [rsp + 0x2e0], rsi
lea rcx, str.____s_process_found__n
call fcn.140001ac0
mov r8d, edi
mov edx, 1
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
test eax, eax
jne 0x140001352
lea rcx, str.____s_OpenProcess___success__n
call fcn.140001ac0
lea r8, [rsp + 0x50]
mov edx, 0xf
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
test eax, eax
jne 0x14000132e
lea rcx, str.____s_OpenProcessToken___success__n
call fcn.140001ac0
mov rcx, qword [rsp + 0x50]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x28], r14
mov edx, 0xf01ff
mov dword [rsp + 0x20], 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14000133d
mov rdx, rbx
lea rcx, str.____s_DuplicateTokenEx___success__n
call fcn.140001ac0
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
test eax, eax
jne 0x1400012da
lea rcx, str.____s_ImpersonatedLoggedOnUser___success__n
call fcn.140001ac0
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], 0x101
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140001ce0
cmp qword [rsp + 0x48], 8
lea r8, [rsp + 0x30]
mov rdx, rbx
lea rcx, str.____s_Current_user_is:__s_n
cmovae r8, qword [rsp + 0x30]
call fcn.140001ac0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140001239
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001234
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000137c
call fcn.140001e50
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], 0x101
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140001ce0
cmp qword [rsp + 0x48], 8
lea rdx, [rsp + 0x30]
lea rcx, str.___Current_user_is:__s_n
cmovae rdx, qword [rsp + 0x30]
call fcn.140001ac0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400012d3
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400012ce
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001376
call fcn.140001e50
mov eax, 1
jmp 0x140001303
mov r8d, edi
lea rcx, str._____s_ImpersonatedLoggedOnUser___Return_Code:__i_n
call fcn.140001ac0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str._____s_ImpersonatedLoggedOnUser___Error:__i_n
mov r8d, eax
call fcn.140001ac0
xor eax, eax
mov rsi, qword [rsp + 0x2e0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140001e30
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x2b0
pop r14
pop rdi
pop rbp
ret
mov r8d, edi
lea rcx, str._____s_OpenProcessToken___Return_Code:__i_n
call fcn.140001ac0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str._____s_OpenProcessToken___Error:__i_n
mov r8d, eax
jmp 0x1400012fc
mov r8, rsi
lea rcx, str._____s_OpenProcess___Return_Code:__i_n
call fcn.140001ac0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
lea rcx, str._____s_OpenProcess___Error:__i_n
mov r8d, eax
jmp 0x1400012fc
call fcn.1400060fc
int3
call fcn.1400060fc
int3