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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1400590c0]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rsi, rcx
mov qword [rsp + 0x38], rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.14003fd50
mov dword [rsp + 0x28], 0x104
lea rdx, [rsp + 0x28]
lea rcx, [rbp + 0x180]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x1400121ba
mov rbx, 0xffffffffffffffff
jmp 0x140012264
call fcn.1400033f0
mov rcx, rax
test rax, rax
je 0x140012420
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rax, [rbp + 0x180]
mov rbx, 0xffffffffffffffff
cmp rax, 0x10000
lea rax, [rbp + 0x180]
jae 0x140012206
movzx edx, ax
lea rcx, [rsp + 0x20]
call fcn.140007210
jmp 0x14001222d
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140012210
lea rdx, [rbp + 0x180]
lea rcx, [rsp + 0x20]
call fcn.1400048b0
nop
xor r15d, r15d
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x140012285
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012264
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x14001227e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
jmp 0x1400123a3
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x44]
call fcn.14003fd50
mov dword [rsp + 0x40], 0x238
lea rdx, [rsp + 0x40]
mov rcx, r14
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14001235c
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x6c]
mov rcx, qword [rsi]
call fcn.140024094
test eax, eax
jne 0x140012347
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x140012347
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140010a90
nop
mov rcx, qword [rsp + 0x30]
cmp dword [rcx - 0x10], 0
je 0x14001231f
mov rdx, qword [rsp + 0x20]
test rdx, rdx
je 0x14001242b
call fcn.140024094
test eax, eax
je 0x1400123cf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012347
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rdx, [rsp + 0x40]
mov rcx, r14
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400122c0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140012385
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400123a0
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rax, r15
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14001d590
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x38]
mov edx, 0xb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
cmovne r15, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001235c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x14001235c
mov ecx, 0x80004005
call fcn.140002a90
nop
mov ecx, 0x80004005
call fcn.140002a90
int3