Function at 0x140040a90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x1401290c0]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor r14d, r14d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x140041083
mov dword [rbp - 0x70], 0x238
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140041083
movabs r12, 0x8000000000000000
movabs r15, 0x7fffffffffffffff
mov edx, 0xa
movabs rcx, 0x7ffffffffffffffe
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
lea rax, [rbp - 0x44]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140040b42
cmp rbx, rcx
ja 0x1400410d3
cmp rbx, 7
ja 0x140040b86
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], 7
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x44]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memcpy
mov word [rsp + rbx + 0x70], r14w
jmp 0x140040c1e
mov rsi, rbx
or rsi, 7
cmp rsi, rcx
jbe 0x140040b9b
mov rsi, rcx
lea rcx, [r15 + r15]
jmp 0x140040bbc
cmp rsi, 0xa
cmovb rsi, rdx
lea rcx, [rsi + 1]
cmp rcx, r15
ja 0x1400410cd
add rcx, rcx
cmp rcx, 0x1000
jb 0x140040be8
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400410cd
mov rcx, rax
call fcn.1400c1558
test rax, rax
je 0x1400410c6
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140040bfa
test rcx, rcx
je 0x140040bf7
call fcn.1400c1558
mov rdi, rax
jmp 0x140040bfa
mov rdi, r14
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rsi
add rbx, rbx
mov r8, rbx
lea rdx, [rbp - 0x44]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov word [rbx + rdi], r14w
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 7
seta dl
mov r13, qword [rsp + 0x70]
cmova rcx, r13
mov rax, qword [rbp - 0x80]
lea rsi, [rcx + rax*2]
lea rdi, [rsp + 0x70]
test dl, dl
cmovne rdi, r13
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
cmp rdi, rsi
jne 0x140040c70
mov r12, r14
mov qword [rsp + 0x60], r14
mov edi, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x68], rdi
mov byte [rsp + 0x50], 0
jmp 0x140040d6c
sub rsi, rdi
sar rsi, 1
mov ebx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x68], rbx
cmp rsi, r15
ja 0x1400410df
cmp rsi, rbx
jbe 0x140040d20
mov rbx, rsi
or rbx, 0xf
cmp rbx, r15
jbe 0x140040ca8
mov rbx, r15
lea rax, [r12 + 0x27]
jmp 0x140040ccf
cmp rbx, 0x16
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmovb rbx, rax
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140040cfb
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400410d9
mov rcx, rax
call fcn.1400c1558
mov rcx, rax
test rax, rax
je 0x1400410bf
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rbx
jmp 0x140040d25
test rcx, rcx
je 0x140040d11
call fcn.1400c1558
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rbx
jmp 0x140040d25
mov rax, r14
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rbx
jmp 0x140040d25
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x50]
cmp rbx, 0xf
cmova r8, rax
mov rcx, r8
mov rdx, rsi
test rsi, rsi
je 0x140040d53
nop dword [rax]
movzx eax, byte [rdi]
mov byte [rcx], al
lea rcx, [rcx + 1]
lea rdi, [rdi + 2]
sub rdx, 1
jne 0x140040d40
mov qword [rsp + 0x60], rsi
mov byte [r8 + rsi], 0
mov r13, qword [rsp + 0x70]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, dword [0x140115dd8]
mov dword [rsp + 0x24], eax
movzx eax, word [0x140115ddc]
mov word [rsp + 0x28], ax
movzx eax, byte [0x140115dde]
mov dl, 0x46
mov byte [rsp + 0x24], dl
xor byte [rsp + 0x25], 0x39
xor byte [rsp + 0x26], 0x3a
xor byte [rsp + 0x27], 0x3b
xor byte [rsp + 0x28], 0x3c
xor byte [rsp + 0x29], 0x3d
xor al, 0x3e
mov byte [rsp + 0x2a], al
lea rax, [rsp + 0x24]
mov rbx, 0xffffffffffffffff
nop word [rax + rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140040dc0
lea rsi, [rsp + 0x50]
cmp rdi, 0xf
seta byte [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
cmova rsi, rcx
cmp rbx, r12
ja 0x140040f6a
mov rax, r12
sub rax, rbx
test rbx, rbx
je 0x140040e68
lea r14, [rax + rsi]
movsx r15d, dl
lea r8, [r14 + 1]
sub r8, rsi
mov edx, r15d
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
je 0x140040f60
nop
mov r8, rbx
lea rdx, [rsp + 0x24]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140040e56
inc rdi
lea r8, [r14 + 1]
sub r8, rdi
mov edx, r15d
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rdi, rax
test rax, rax
jne 0x140040e20
jmp 0x140040f60
sub rdi, rsi
mov rcx, qword [rsp + 0x40]
cmp rdi, 0xffffffffffffffff
je 0x140040f65
movzx eax, word [0x1401152b8]
mov word [rsp + 0x38], ax
movsd xmm0, qword [0x1401152b0]
movzx eax, byte [0x1401152ba]
movsd qword [rsp + 0x30], xmm0
mov dl, 0x47
mov byte [rsp + 0x30], dl
xor byte [rsp + 0x31], 0x39
xor byte [rsp + 0x32], 0x3a
xor byte [rsp + 0x33], 0x3b
xor byte [rsp + 0x34], 0x3c
xor byte [rsp + 0x35], 0x3d
xor byte [rsp + 0x36], 0x3e
xor byte [rsp + 0x37], 0x3f
xor byte [rsp + 0x38], 0x40
xor byte [rsp + 0x39], 0x41
xor al, 0x42
mov byte [rsp + 0x3a], al
lea rax, [rsp + 0x30]
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x140040ed0
lea rsi, [rsp + 0x50]
cmp byte [rsp + 0x20], 0
cmovne rsi, rcx
cmp rdi, r12
ja 0x140040f65
sub r12, rdi
test rdi, rdi
je 0x140041002
lea r14, [rsi + r12]
movsx r15d, dl
lea r8, [r14 + 1]
sub r8, rsi
mov edx, r15d
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140040f60
nop word [rax + rax]
mov r8, rdi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140040f53
inc rbx
lea r8, [r14 + 1]
sub r8, rbx
mov edx, r15d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140040f20
jmp 0x140040f60
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140040ffd
mov rcx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x68]
cmp byte [rsp + 0x20], 0
je 0x140040fa4
lea rdx, [rdi + 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040f9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400410bf
call fcn.1400c146c
mov r13, qword [rsp + 0x70]
mov rax, qword [rbp - 0x78]
cmp rax, 7
jbe 0x140040fe3
lea rdx, [rax*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x140040fdb
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400410c6
mov rcx, r13
call fcn.1400c146c
lea rdx, [rbp - 0x70]
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
xor r14d, r14d
jmp 0x140040afc
mov rcx, qword [rsp + 0x40]
mov r14d, dword [rbp - 0x68]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140041043
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041039
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400410bf
call fcn.1400c146c
mov r13, qword [rsp + 0x70]
mov rdx, qword [rbp - 0x78]
cmp rdx, 7
jbe 0x14004107e
lea rdx, [rdx*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x140041076
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400410c6
mov rcx, r13
call fcn.1400c146c
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400c11b0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003b880
int3
call fcn.14003b920
nop
call fcn.14003b880
int3
call fcn.14003b920
int3