Function at 0x180041ea0
Capabilities:
Enumerate processes

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x180055040]
xor rax, rsp
mov qword [rbp + 0x180], rax
cmp qword [rcx + 0x18], 0xf
mov rbx, rcx
mov dword [rsp + 0x40], 0x238
jbe 0x180041ee3
mov r14, qword [rcx]
mov rbx, r14
add r14, qword [rcx + 0x10]
jmp 0x180041eea
mov r14, qword [rcx + 0x10]
add r14, rcx
mov qword [rsp + 0x2b0], rsi
xorps xmm0, xmm0
mov qword [rsp + 0x2b8], rdi
mov edi, 7
mov qword [rsp + 0x2c0], r15
xor r15d, r15d
mov qword [rsp + 0x38], rdi
movups xmmword [rsp + 0x20], xmm0
cmp rbx, r14
jne 0x180041f2f
mov ebx, r15d
mov word [rsp + 0x20], r15w
mov qword [rsp + 0x30], rbx
jmp 0x180042042
mov rax, r14
mov qword [rsp + 0x30], r15
sub rax, rbx
movabs rcx, 0x7ffffffffffffffe
mov rsi, r15
cmp rax, rcx
ja 0x1800421f7
cmp rax, rdi
jbe 0x180041ff0
mov rdi, rax
or rdi, 7
cmp rdi, rcx
jbe 0x180041f78
movabs rax, 0x7fffffffffffffff
mov rdi, rcx
lea rcx, [rax + rax]
jmp 0x180041fa7
mov eax, 0xa
cmp rdi, rax
cmovb rdi, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rdi + 1]
cmp rcx, rax
ja 0x1800421f1
add rcx, rcx
cmp rcx, 0x1000
jb 0x180041fd6
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1800421f1
mov rcx, rax
call fcn.180046604
mov rcx, rax
test rax, rax
je 0x1800421ac
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180041fe5
test rcx, rcx
je 0x180041fe2
call fcn.180046604
jmp 0x180041fe5
mov rax, r15
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rdi
nop
movsx eax, byte [rbx]
lea rcx, [rsp + 0x20]
cmp rdi, 7
cmova rcx, qword [rsp + 0x20]
inc rbx
mov word [rcx + rsi*2], ax
mov rsi, qword [rsp + 0x30]
inc rsi
mov qword [rsp + 0x30], rsi
cmp rbx, r14
je 0x180042022
mov rdi, qword [rsp + 0x38]
jmp 0x180041ff0
cmp qword [rsp + 0x38], 7
lea rax, [rsp + 0x20]
cmova rax, qword [rsp + 0x20]
mov word [rax + rsi*2], r15w
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, qword [rsp + 0x20]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x18004217d
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rax, [rsp + 0x6c]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x180042080
cmp rdi, 7
lea r9, [rsp + 0x20]
mov r8, rbx
lea rcx, [rsp + 0x6c]
cmova r9, r14
cmp rdx, rbx
cmovb r8, rdx
test r8, r8
je 0x1800420c7
lea rax, [rsp + 0x6c]
sub r9, rax
movzx eax, word [rcx + r9]
cmp ax, word [rcx]
jne 0x1800420e1
add rcx, 2
sub r8, 1
jne 0x1800420b3
cmp rbx, rdx
jb 0x1800420e1
ja 0x1800420e1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, dword [rsp + 0x48]
jmp 0x18004217d
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x180042174
nop word [rax + rax]
lea rax, [rsp + 0x6c]
mov rdx, 0xffffffffffffffff
nop dword [rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x180042110
cmp rdi, 7
lea r9, [rsp + 0x20]
mov r8, rbx
lea rax, [rsp + 0x6c]
cmova r9, r14
cmp rdx, rbx
cmovb r8, rdx
test r8, r8
je 0x180042157
lea rcx, [rsp + 0x6c]
sub r9, rcx
movzx ecx, word [r9 + rax]
cmp cx, word [rax]
jne 0x180042162
add rax, 2
sub r8, 1
jne 0x180042143
cmp rbx, rdx
jb 0x180042162
jbe 0x1800420ce
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180042100
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, 7
jbe 0x1800421bb
lea rdx, [rdi*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x1800421b3
mov r14, qword [r14 - 8]
add rdx, 0x27
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800421b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.180046410
mov rdi, qword [rsp + 0x2b8]
mov eax, r15d
mov r15, qword [rsp + 0x2c0]
mov rsi, qword [rsp + 0x2b0]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.180045e90
add rsp, 0x290
pop r14
pop rbx
pop rbp
ret
call fcn.180038220
int3
call fcn.180040a30
int3