Function at 0x1400048a0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp - 0x40], rdx
mov r14d, ecx
cmp dword [0x14000f8c8], 0xa
movabs rsi, 0x100000001
jl 0x1400048e4
mov eax, dword [0x14000f8c4]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
jne 0x14000497d
mov eax, 0x20
call fcn.14000acd0
sub rsp, rax
mov rbx, rsp
mov eax, 0x240
call fcn.14000acd0
sub rsp, rax
mov rdi, rsp
mov eax, 0x10
call fcn.14000acd0
sub rsp, rax
mov r12, rsp
mov eax, 0x10
call fcn.14000acd0
sub rsp, rax
mov r15, rsp
mov eax, 0x10
call fcn.14000acd0
sub rsp, rax
mov qword [rbp - 0x18], rsp
mov eax, 0x10
call fcn.14000acd0
sub rsp, rax
mov r13, rsp
mov qword [rbx], rsi
lea r8, [rbx + 8]
sub rsp, 0x20
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
add rsp, 0x20
cmp dword [0x14000f8c8], 0xa
jl 0x1400049b0
mov ecx, dword [0x14000f8c4]
lea edx, [rcx - 1]
imul edx, ecx
and edx, 1
je 0x1400049b0
mov eax, 0x20
call fcn.14000acd0
sub rsp, rax
mov rax, rsp
mov qword [rax], rsi
lea r8, [rax + 8]
sub rsp, 0x20
lea rdx, str.SeTcbPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
add rsp, 0x20
jmp 0x1400048e4
test eax, eax
je 0x140004ffe
mov dword [rbp - 0x1c], r14d
sub rsp, 0x20
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
add rsp, 0x20
mov r14, rax
cmp dword [0x14000f8c8], 0xa
jl 0x1400049ff
mov eax, dword [0x14000f8c4]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x1400049ff
sub rsp, 0x20
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
jmp 0x1400049c0
cmp r14, 0xffffffffffffffff
je 0x14000506c
nop dword [rax]
mov dword [rdi], 0x238
sub rsp, 0x20
mov rcx, r14
mov rdx, rdi
call sub.KERNEL32.dll_Process32FirstW
add rsp, 0x20
mov esi, dword [0x14000f8c4]
mov ecx, dword [0x14000f8c8]
cmp ecx, 0xa
jl 0x140004a60
lea edx, [rsi - 1]
imul edx, esi
and edx, 1
je 0x140004a60
mov dword [rdi], 0x238
sub rsp, 0x20
mov rcx, r14
mov rdx, rdi
call sub.KERNEL32.dll_Process32FirstW
add rsp, 0x20
jmp 0x140004a10
lea edx, [rsi - 1]
imul edx, esi
and edx, 1
test eax, eax
je 0x1400050c8
mov rax, rdi
add rax, 0x2c
mov qword [rbp - 0x48], rax
xor eax, eax
mov qword [rbp - 0x10], rax
mov dword [rbp + 4], 0x490
mov qword [rbp - 0x38], r15
mov qword [rbp - 8], r13
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], r14
jmp 0x140004aa8
test eax, eax
je 0x1400050cf
cmp ecx, 0xa
jl 0x140004ac0
test edx, edx
jne 0x140004af7
nop word cs:[rax + rax]
nop dword [rax + rax]
sub rsp, 0x20
mov rcx, qword [rbp - 0x48]
lea rdx, str.winlogon.exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add rsp, 0x20
mov esi, dword [0x14000f8c4]
mov ecx, dword [0x14000f8c8]
lea edx, [rsi - 1]
imul edx, esi
and edx, 1
cmp ecx, 0xa
jl 0x140004b20
test edx, edx
je 0x140004b20
sub rsp, 0x20
mov rcx, qword [rbp - 0x48]
lea rdx, str.winlogon.exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add rsp, 0x20
jmp 0x140004ac0
test eax, eax
je 0x140004b40
xor eax, eax
test al, al
je 0x140004fa7
jmp 0x1400050cf
mov r8d, dword [rdi + 8]
sub rsp, 0x20
mov ecx, 0x1000
xor edx, edx
mov rsi, qword [sym.imp.KERNEL32.dll_OpenProcess]
nop word cs:[rax + rax]
call rsi
add rsp, 0x20
mov r15, rax
mov eax, dword [0x14000f8c4]
mov ecx, dword [0x14000f8c8]
cmp ecx, 0xa
jl 0x140004bb0
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x140004bb0
mov r8d, dword [rdi + 8]
sub rsp, 0x20
mov ecx, 0x1000
xor edx, edx
call rsi
add rsp, 0x20
mov r8d, dword [rdi + 8]
sub rsp, 0x20
mov ecx, 0x1000
xor edx, edx
jmp 0x140004b60
lea edx, [rax - 1]
imul edx, eax
and edx, 1
test r15, r15
je 0x140004f90
cmp ecx, 0xa
jl 0x140004bd0
test edx, edx
jne 0x140004c07
nop dword [rax + rax]
sub rsp, 0x20
mov rcx, r15
mov edx, 0xa
mov r8, r12
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
add rsp, 0x20
mov esi, dword [0x14000f8c4]
mov edx, dword [0x14000f8c8]
lea ecx, [rsi - 1]
imul ecx, esi
and ecx, 1
cmp edx, 0xa
jl 0x140004c30
test ecx, ecx
je 0x140004c30
sub rsp, 0x20
mov rcx, r15
mov edx, 0xa
mov r8, r12
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
add rsp, 0x20
jmp 0x140004bd0
test eax, eax
je 0x140004f30
mov rcx, qword [r12]
sub rsp, 0x20
mov rdx, rbx
mov r8, r13
call qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
nop dword [rax]
add rsp, 0x20
mov esi, dword [0x14000f8c4]
mov ecx, dword [0x14000f8c8]
lea edx, [rsi - 1]
imul edx, esi
and edx, 1
cmp ecx, 0xa
jl 0x140004c9f
test edx, edx
je 0x140004c9f
mov rcx, qword [r12]
sub rsp, 0x20
mov rdx, rbx
mov r8, r13
mov rsi, qword [sym.imp.ADVAPI32.dll_PrivilegeCheck]
call rsi
add rsp, 0x20
mov rcx, qword [r12]
sub rsp, 0x20
mov rdx, rbx
mov r8, r13
call rsi
jmp 0x140004c50
test eax, eax
je 0x140004e7a
cmp dword [r13], 0
je 0x140004e7a
mov rcx, qword [r12]
sub rsp, 0x30
mov rax, qword [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0xc
mov r8, qword [rbp - 0x18]
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
add rsp, 0x30
mov esi, dword [0x14000f8c4]
mov ecx, dword [0x14000f8c8]
lea edx, [rsi - 1]
imul edx, esi
and edx, 1
cmp ecx, 0xa
jl 0x140004d89
test edx, edx
je 0x140004d89
nop word cs:[rax + rax]
nop dword [rax]
mov rcx, qword [r12]
sub rsp, 0x30
mov rsi, qword [rbp - 0x38]
mov qword [rsp + 0x20], rsi
mov edx, 0xc
mov r13, qword [rbp - 0x18]
mov r8, r13
mov r9d, 4
mov rbx, qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call rbx
add rsp, 0x30
mov r14, r12
mov rcx, qword [r12]
sub rsp, 0x30
mov qword [rsp + 0x20], rsi
mov edx, 0xc
mov r8, r13
mov r9d, 4
call rbx
add rsp, 0x30
mov esi, dword [0x14000f8c4]
mov ecx, dword [0x14000f8c8]
lea edx, [rsi - 1]
imul edx, esi
and edx, 1
cmp ecx, 0xa
jl 0x140004e63
test edx, edx
mov r12, r14
jne 0x140004d10
test eax, eax
je 0x140004e6e
mov eax, dword [rbp - 0x1c]
mov rsi, qword [rbp - 0x18]
cmp dword [rsi], eax
mov rsi, qword [rbp - 0x40]
mov r13, qword [rbp - 8]
mov rbx, qword [rbp - 0x30]
mov r14, qword [rbp - 0x28]
jne 0x140004e7a
mov rax, qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
nop word [rax + rax]
mov rcx, qword [r12]
sub rsp, 0x30
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 2
mov edx, 4
xor r8d, r8d
mov r9d, 2
call rax
add rsp, 0x30
mov esi, dword [0x14000f8c4]
mov ecx, dword [0x14000f8c8]
lea edx, [rsi - 1]
imul edx, esi
and edx, 1
cmp ecx, 0xa
jl 0x140004e44
test edx, edx
je 0x140004e44
mov rcx, qword [r12]
sub rsp, 0x30
mov rsi, qword [rbp - 0x40]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 2
mov edx, 4
xor r8d, r8d
mov r9d, 2
mov r13, qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
call r13
mov rax, r13
add rsp, 0x30
jmp 0x140004dc0
mov esi, 1
mov qword [rbp - 0x10], rsi
test eax, eax
mov r13, qword [rbp - 8]
je 0x140004e89
mov dword [rbp + 4], 0
cmp ecx, 0xa
jge 0x140004e7f
jmp 0x140004ee0
mov r12, r14
test eax, eax
jne 0x140004d91
mov r13, qword [rbp - 8]
mov rbx, qword [rbp - 0x30]
mov r14, qword [rbp - 0x28]
cmp ecx, 0xa
jl 0x140004ee0
test edx, edx
jne 0x140004f10
jmp 0x140004ee0
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop dword [rax]
add rsp, 0x20
mov esi, dword [0x14000f8c4]
mov ecx, dword [0x14000f8c8]
lea edx, [rsi - 1]
imul edx, esi
and edx, 1
cmp ecx, 0xa
jl 0x140004ed3
test edx, edx
je 0x140004ed3
sub rsp, 0x20
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rsi
call rsi
jmp 0x140004ea0
mov dword [rbp + 4], eax
cmp ecx, 0xa
jge 0x140004e7f
nop dword [rax + rax]
mov rcx, qword [r12]
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x20
mov eax, dword [0x14000f8c4]
mov edx, dword [0x14000f8c8]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
cmp edx, 0xa
jl 0x140004f30
test ecx, ecx
je 0x140004f30
mov rcx, qword [r12]
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x20
jmp 0x140004ee0
cmp edx, 0xa
jl 0x140004f40
test ecx, ecx
jne 0x140004f6f
nop dword [rax]
sub rsp, 0x20
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x20
mov eax, dword [0x14000f8c4]
mov ecx, dword [0x14000f8c8]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
cmp ecx, 0xa
jl 0x140004f90
test edx, edx
je 0x140004f90
sub rsp, 0x20
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x20
jmp 0x140004f40
xor eax, eax
cmp dword [rbp - 0x10], 0
setne al
mov esi, eax
mov qword [rbp - 0x10], rsi
test al, al
jne 0x1400050cf
cmp ecx, 0xa
jl 0x140004fb0
test edx, edx
jne 0x140004fe9
sub rsp, 0x20
mov rcx, r14
mov rdx, rdi
call sub.KERNEL32.dll_Process32NextW
add rsp, 0x20
mov esi, dword [0x14000f8c4]
mov ecx, dword [0x14000f8c8]
lea edx, [rsi - 1]
imul edx, esi
and edx, 1
cmp ecx, 0xa
jl 0x140004aa0
test edx, edx
je 0x140004aa0
sub rsp, 0x20
mov rcx, r14
mov rdx, rdi
call sub.KERNEL32.dll_Process32NextW
add rsp, 0x20
jmp 0x140004fb0
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x20
cmp dword [0x14000f8c8], 0xa
jl 0x1400050da
mov edx, dword [0x14000f8c4]
lea ecx, [rdx - 1]
imul ecx, edx
and ecx, 1
je 0x1400050da
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
sub rsp, 0x20
call rsi
call rsi
add rsp, 0x20
cmp dword [0x14000f8c8], 0xa
jl 0x1400050da
mov edx, dword [0x14000f8c4]
lea ecx, [rdx - 1]
imul ecx, edx
and ecx, 1
jne 0x140005040
jmp 0x1400050da
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x20
cmp dword [0x14000f8c8], 0xa
jl 0x1400050da
mov edx, dword [0x14000f8c4]
lea ecx, [rdx - 1]
imul ecx, edx
and ecx, 1
je 0x1400050da
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
sub rsp, 0x20
call rsi
call rsi
add rsp, 0x20
cmp dword [0x14000f8c8], 0xa
jl 0x1400050da
mov edx, dword [0x14000f8c4]
lea ecx, [rdx - 1]
imul ecx, edx
and ecx, 1
jne 0x1400050a0
jmp 0x1400050da
mov dword [rbp + 4], 0x490
cmp ecx, 0xa
jl 0x1400050eb
test edx, edx
jne 0x140005116
jmp 0x1400050eb
lea rsp, [rbp + 8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
sub rsp, 0x20
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x20
cmp dword [0x14000f8c8], 0xa
jl 0x140005129
mov eax, dword [0x14000f8c4]
lea ecx, [rax - 1]
imul ecx, eax
and ecx, 1
je 0x140005129
sub rsp, 0x20
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x20
jmp 0x1400050eb
mov eax, dword [rbp + 4]
jmp 0x1400050da