Function at 0x180033980
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x510]
sub rsp, 0x610
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x660], rbx
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rbp + 0x500], rax
mov rdi, rdx
mov r14, rcx
xor r15d, r15d
mov r13d, r15d
cmp qword [rcx + 0x10], r13
je 0x180033aba
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x180033ac1
lea rcx, [rsp + 0x40]
call fcn.180012fc0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CTS_FAILED._GetLastError:
lea rcx, [rsp + 0x40]
call fcn.18001da90
mov rcx, rax
mov edx, ebx
call fcn.18002ef10
lea rdx, str.CProcUtility::GetProcessIDByName
lea rcx, [rbp + 0x2c0]
call fcn.1800104c0
nop
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0x298]
call fcn.1800104c0
nop
lea rdx, [rbp + 0x270]
lea rcx, [rsp + 0x40]
call fcn.1800130a0
mov rbx, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x2c0]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 0x4c]
lea r8, [rbp + 0x298]
xor edx, edx
call fcn.1800326a0
nop
lea rcx, [rbp + 0x270]
call fcn.1800126d0
nop
lea rcx, [rbp + 0x298]
call fcn.18008f070
nop
lea rcx, [rbp + 0x2c0]
call fcn.18008f070
nop
lea rcx, [rbp - 0x38]
call fcn.180013040
lea rcx, [rbp - 0x38]
call fcn.180012100
xor eax, eax
jmp 0x180033cba
mov dword [rbp + 0x30], 0x238
lea rdx, [rbp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
mov rcx, r12
test eax, eax
jne 0x180033bbe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x40]
call fcn.180012fc0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.PF_FAILED._GetLastError:
lea rcx, [rsp + 0x40]
call fcn.18001da90
mov rcx, rax
mov edx, ebx
call fcn.18002ef10
lea rdx, str.CProcUtility::GetProcessIDByName
lea rcx, [rbp + 0x298]
call fcn.1800104c0
nop
lea rdx, str.ProcUtility.cpp
lea rcx, [rbp + 0x2c0]
call fcn.1800104c0
nop
lea rdx, [rbp + 0x270]
lea rcx, [rsp + 0x40]
call fcn.1800130a0
mov rbx, rax
call fcn.180014440
mov rcx, rax
mov qword [rsp + 0x28], rbx
lea rax, [rbp + 0x298]
mov qword [rsp + 0x20], rax
mov r9d, 0x56
lea r8, [rbp + 0x2c0]
xor edx, edx
call fcn.1800326a0
nop
lea rcx, [rbp + 0x270]
call fcn.1800126d0
nop
lea rcx, [rbp + 0x2c0]
call fcn.18008f070
nop
lea rcx, [rbp + 0x298]
call fcn.18008f070
nop
lea rcx, [rbp - 0x38]
call fcn.180013040
lea rcx, [rbp - 0x38]
call fcn.180012100
xor eax, eax
jmp 0x180033cba
lea rdx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x180033cae
mov rcx, r14
call fcn.180012700
mov rcx, rax
lea rdx, [rbp + 0x5c]
call fcn.1800c0fd4
test eax, eax
jne 0x180033ca2
cmp qword [rdi + 0x10], 0
je 0x180033caa
mov r8d, dword [rbp + 0x38]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x180033ca2
mov word [rbp + 0x2f0], r15w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x2f2]
call fcn.1800c7520
mov r9d, 0x104
lea r8, [rbp + 0x2f0]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x180033ca2
lea rdx, [rbp + 0x2f0]
lea rcx, [rbp + 0x270]
call fcn.180012650
nop
cmp qword [rdi + 0x18], 8
jb 0x180033c6c
mov rdx, qword [rdi]
jmp 0x180033c6f
mov rdx, rdi
mov r9, qword [rdi + 0x10]
xor r8d, r8d
mov rcx, rax
call fcn.1800156c0
cmp rax, 0xffffffffffffffff
sete bl
lea rcx, [rbp + 0x270]
call fcn.1800126d0
test bl, bl
jne 0x180033ca2
mov r13d, dword [rbp + 0x38]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
jmp 0x180033bbe
mov r13d, dword [rbp + 0x38]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r13d
mov rcx, qword [rbp + 0x500]
xor rcx, rsp
call fcn.1800be9b0
mov rbx, qword [rsp + 0x660]
add rsp, 0x610
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret