Function at 0x140049960
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x14005d010]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r14, rdx
mov r12, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140049c1a
mov dword [rbp - 0x60], 0x238
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140049bea
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], di
lea rax, [rbp - 0x34]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400499f1
lea rdx, [rbp - 0x34]
lea rcx, [rsp + 0x40]
call fcn.140048490
nop
cmp qword [rsp + 0x50], 0
jne 0x140049a3f
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], 0xf
xor r8d, r8d
lea rdx, [0x14004c8d7]
lea rcx, [rsp + 0x60]
call fcn.140048770
jmp 0x140049aea
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
mov r9d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x70], rdi
mov qword [rbp - 0x68], 0xf
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140048610
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae r8, qword [rsp + 0x40]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rbp - 0x70]
movups xmmword [rsp + 0x70], xmm1
mov rdx, qword [rsp + 0x58]
cmp rdx, 8
jb 0x140049b2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140049b27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049bad
call fcn.14004a33c
lea rdx, [rsp + 0x60]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
cmp rsi, 0x10
cmovae rdx, rbx
mov r8, qword [r14 + 0x10]
mov rcx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x140049b54
mov rcx, qword [r14]
cmp r8, qword [rsp + 0x70]
jne 0x140049b64
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140049bb4
cmp rsi, 0x10
jb 0x140049b9b
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140049b93
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049c13
mov rcx, rbx
call fcn.14004a33c
lea rdx, [rbp - 0x60]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x1400499c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov edi, dword [rbp - 0x58]
cmp rsi, 0x10
jb 0x140049bea
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140049be2
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140049c13
mov rcx, rbx
call fcn.14004a33c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x140049c1a
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [r12], rax
test rax, rax
setne al
jmp 0x140049c1c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor al, al
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.14004a1a0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret