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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x1400ce568]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
lea r8, [0x1400a3320]
mov edx, 1
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
test rax, rax
jne 0x14004d294
lea r9, [0x1400a3320]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor esi, esi
mov dword [rsp + 0x60], 0x238
xor edx, edx
lea ecx, [rsi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
mov dword [rsp + 0x40], 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test rdi, rdi
je 0x14004d260
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x14004d552
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x14004d552
lea r14, [0x1400a3470]
nop word [rax + rax]
lea rdx, str.nViewMain64.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14004d241
mov edx, dword [rsp + 0x68]
lea rcx, [rbp + 0x1a0]
call fcn.14004ce00
nop
lea rax, [rbp + 0x1a0]
mov r9, qword [rbp + 0x1a0]
mov r10, qword [rbp + 0x1b8]
cmp r10, 8
cmovae rax, r9
lea r8, [rbp + 0x1d0]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14004d1a5
add rax, 2
test ecx, ecx
jne 0x14004d191
test edx, edx
je 0x14004d2c0
lea rbx, [rbp + 0x1a0]
cmp r10, 8
cmovae rbx, r9
call fcn.1400597f0
mov rcx, rax
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x4b
lea r9, [0x1400a33a0]
lea r8, [0x1400a3440]
mov edx, 1
call fcn.140059d70
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 8
jb 0x14004d241
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d23c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d78e
call fcn.14006fc78
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x14004d140
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400597f0
mov rcx, rax
lea rax, [0x1400a3698]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xbd
mov edx, 1
lea r9, [0x1400a33a0]
lea r8, [0x1400a3440]
call fcn.140059d70
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.14006fd90
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x14004d2e3
mov qword [rsp + 0x48], rax
mov esi, 1
jmp 0x14004d318
call fcn.1400597f0
mov rcx, rax
lea rax, [0x1400a3360]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x45
lea r9, [0x1400a33a0]
lea r8, [0x1400a3440]
mov edx, 1
call fcn.140059d70
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 8
jb 0x14004d35e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d359
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d78e
call fcn.14006fc78
test esi, esi
je 0x14004d552
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x14004d552
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x14004d552
lea rdx, str.nViewMain.exe
lea rcx, [rbp - 0x74]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14004d493
mov edx, dword [rsp + 0x68]
lea rcx, [rbp + 0x1a0]
call fcn.14004ce00
nop
lea rax, [rbp + 0x1a0]
mov r9, qword [rbp + 0x1a0]
mov r10, qword [rbp + 0x1b8]
cmp r10, 8
cmovae rax, r9
lea r8, [rbp + 0x1d0]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14004d3f7
add rax, 2
test ecx, ecx
jne 0x14004d3e3
test edx, edx
je 0x14004d4b7
lea rbx, [rbp + 0x1a0]
cmp r10, 8
cmovae rbx, r9
call fcn.1400597f0
mov rcx, rax
mov qword [rsp + 0x38], rbx
lea rax, [rbp + 0x1d0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], 0x6a
lea r9, [0x1400a33a0]
lea r8, [0x1400a3440]
mov edx, 1
call fcn.140059d70
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 8
jb 0x14004d493
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d48e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d788
call fcn.14006fc78
lea rdx, [rsp + 0x60]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x14004d392
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14004d563
mov r8d, dword [rsp + 0x68]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
je 0x14004d4d7
mov qword [rsp + 0x50], rax
inc esi
jmp 0x14004d50c
call fcn.1400597f0
mov rcx, rax
lea rax, [0x1400a34d0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x64
lea r9, [0x1400a33a0]
lea r8, [0x1400a3440]
mov edx, 1
call fcn.140059d70
nop
mov rdx, qword [rbp + 0x1b8]
cmp rdx, 8
jb 0x14004d552
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1a0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004d54d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004d788
call fcn.14006fc78
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x14004d260
call fcn.1400597f0
mov rcx, rax
mov dword [rsp + 0x30], esi
lea rax, [0x1400a3520]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x76
lea r9, [0x1400a33a0]
lea r8, [0x1400a3440]
mov edx, 3
call fcn.140059d70
mov dword [rsp + 0x20], 0x4ff
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov ecx, esi
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, esi
mov edi, eax
jne 0x14004d653
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14004d59b
cmp dword [rbp + 0x1a8], 0x12
je 0x14004d62d
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x14004d5e4
jmp 0x14004d59b
call fcn.1400597f0
mov rcx, rax
lea rax, [0x1400a3598]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x8a
mov edx, 3
jmp 0x14004d281
call fcn.1400597f0
mov rcx, rax
mov dword [rsp + 0x30], edi
lea rax, [0x1400a35c0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x98
lea r9, [0x1400a33a0]
lea r8, [0x1400a3440]
mov edx, 3
call fcn.140059d70
test esi, esi
je 0x14004d6a7
lea rbx, [rsp + 0x48]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rbx, [rbx + 8]
sub rsi, 1
jne 0x14004d694
test edi, edi
jne 0x14004d75b
mov dword [rsp + 0x20], 0x4ff
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400d6908]
lea ecx, [rdi + 1]
call qword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 0x102
jne 0x14004d294
call fcn.1400597f0
mov rcx, rax
lea rax, [0x1400a3600]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xaa
lea r9, [0x1400a33a0]
lea r8, [0x1400a3440]
lea edx, [rdi + 1]
call fcn.140059d70
mov edx, 0xff0000
mov ecx, 0x10000
call fcn.14004ecd0
lea r8, str.nView_WOW_Process_Shutdown_Event
lea edx, [rdi + 1]
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov qword [0x1400d68c8], rax
mov rax, qword [0x1400d68b8]
and dword [rax + 0x60], 0xfffffffe
mov rax, qword [0x1400d68b8]
mov qword [rax + 0x30], 0
xor ecx, ecx
call fcn.140032670
jmp 0x14004d294
cmp edi, 1
jne 0x14004d294
call fcn.1400597f0
mov rcx, rax
lea rax, [0x1400a3650]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xb5
lea edx, [rdi + 2]
jmp 0x14004d281
call fcn.14007698c
int3
call fcn.14007698c
int3