Function at 0x140066320
Capabilities:
Enumerate processes

Disassembly:
mov dword [rsp + 8], ecx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1e8]
sub rsp, 0x2e8
cmp ecx, 0xffffffff
jne 0x14006634b
xor al, al
jmp 0x140066b5f
xor bl, bl
mov dword [rbp + 0x238], ebx
mov dword [rbp - 0x60], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov r15, rax
mov qword [rbp + 0x248], rax
cmp rax, 0xffffffffffffffff
je 0x140066b5c
xor esi, esi
mov r12d, esi
mov dword [rbp + 0x240], esi
lea rdx, [rbp - 0x60]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x140066b53
nop dword [rax + rax]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], si
lea rax, [rbp - 0x34]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400663c3
lea rdx, [rbp - 0x34]
lea rcx, [rsp + 0x60]
call fcn.14003a5e0
nop
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, dword [rsp + 0x70]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
mov rdx, rbx
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.14002d900
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1400664c7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400664c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140066b79
call fcn.140133e68
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], si
lea rdi, [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x58]
cmp r8, 0x10
cmovae rdi, rcx
lea rsi, [rsp + 0x40]
cmovae rsi, rcx
mov r9, qword [rsp + 0x50]
add rsi, r9
lea rbx, [rsp + 0x40]
cmp r8, 0x10
cmovae rbx, rcx
cmp rbx, rsi
je 0x140066539
sub rdi, rbx
movsx ecx, byte [rbx]
call fcn.140172bc0
mov byte [rdi + rbx], al
inc rbx
cmp rbx, rsi
jne 0x140066517
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
lea r14, [rsp + 0x40]
cmp r8, 0x10
cmovae r14, rcx
add r14, r9
lea rsi, [rsp + 0x40]
cmp r8, 0x10
cmovae rsi, rcx
add rsi, r9
lea rbx, [rsp + 0x40]
cmp r8, 0x10
cmovae rbx, rcx
cmp rbx, rsi
je 0x1400665cc
nop dword [rax + rax]
movsx ecx, byte [rbx]
call fcn.140177fc8
test eax, eax
jne 0x140066584
inc rbx
cmp rbx, rsi
jne 0x140066570
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
cmp rbx, rsi
je 0x1400665cc
lea rdi, [rbx + 1]
cmp rdi, rsi
je 0x1400665cc
movsx ecx, byte [rdi]
call fcn.140177fc8
test eax, eax
jne 0x1400665b5
movzx eax, byte [rdi]
mov byte [rbx], al
inc rbx
inc rdi
cmp rdi, rsi
jne 0x1400665a1
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x40]
cmp r8, 0x10
cmovae rax, rcx
mov rdx, rbx
sub rdx, rax
sub r14, rbx
mov rax, r9
sub rax, rdx
cmp rax, r14
cmovb r14, rax
lea rax, [rsp + 0x40]
cmp r8, 0x10
cmovae rax, rcx
lea rcx, [rax + rdx]
sub r9, r14
mov qword [rsp + 0x50], r9
sub r9, rdx
lea r8, [r9 + 1]
lea rdx, [rcx + r14]
call fcn.1401378a0
mov edx, 0xf0
lea rcx, [rbp - 0x80]
call fcn.1400175a0
mov r15, rax
cmp qword [rax + 0x18], 0x10
jb 0x140066633
mov r15, qword [rax]
lea r14, [rsp + 0x40]
mov rdi, qword [rsp + 0x40]
mov r13, qword [rsp + 0x58]
cmp r13, 0x10
cmovae r14, rdi
mov rsi, qword [rax + 0x10]
mov rax, qword [rsp + 0x50]
cmp rsi, rax
ja 0x1400666cc
test rsi, rsi
jne 0x140066662
mov rbx, rsi
jmp 0x1400666d5
sub rax, rsi
lea r12, [rax + r14]
movsx edx, byte [r15]
lea r8, [r12 + 1]
sub r8, r14
mov rcx, r14
call fcn.140138350
mov rbx, rax
test rax, rax
je 0x1400666c5
nop word [rax + rax]
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call fcn.1401383d0
test eax, eax
je 0x140066ae9
inc rbx
lea r8, [r12 + 1]
sub r8, rbx
movsx edx, byte [r15]
mov rcx, rbx
call fcn.140138350
mov rbx, rax
test rax, rax
jne 0x140066690
mov r12d, dword [rbp + 0x240]
mov rbx, 0xffffffffffffffff
xor esi, esi
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14006671a
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006670b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140066b7f
call fcn.140133e68
mov r13, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
cmp rbx, 0xffffffffffffffff
je 0x140066758
mov dword [rbp + 0x240], esi
lea rdx, [rbp + 0x240]
mov ecx, dword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov eax, dword [rbp + 0x230]
cmp dword [rbp + 0x240], eax
cmove r12d, dword [rbp - 0x58]
mov dword [rbp + 0x240], r12d
mov r13, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x40]
cmp r13, 0x10
jb 0x14006678f
lea rdx, [r13 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140066787
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140066b85
mov rcx, rdi
call fcn.140133e68
lea rdx, [rbp - 0x60]
mov r15, qword [rbp + 0x248]
mov rcx, r15
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
je 0x1400663a0
test r12d, r12d
je 0x140066b4d
lea rdx, [rbp - 0x60]
mov rcx, r15
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x140066b4d
mov r13d, eax
nop dword [rax]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], si
lea rax, [rbp - 0x34]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1400667f3
lea rdx, [rbp - 0x34]
lea rcx, [rsp + 0x60]
call fcn.14003a5e0
nop
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
mov r9d, dword [rsp + 0x70]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
mov rdx, rbx
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.14002d900
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae r8, qword [rsp + 0x60]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
xor edx, edx
mov ecx, 0xfde9
lea r9d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x1400668f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400668f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140066b8b
call fcn.140133e68
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], si
lea rdi, [rsp + 0x40]
mov rcx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x58]
cmp r8, 0x10
cmovae rdi, rcx
lea rsi, [rsp + 0x40]
cmovae rsi, rcx
mov r9, qword [rsp + 0x50]
add rsi, r9
lea rbx, [rsp + 0x40]
cmp r8, 0x10
cmovae rbx, rcx
cmp rbx, rsi
je 0x140066969
sub rdi, rbx
movsx ecx, byte [rbx]
call fcn.140172bc0
mov byte [rdi + rbx], al
inc rbx
cmp rbx, rsi
jne 0x140066947
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
lea r14, [rsp + 0x40]
cmp r8, 0x10
cmovae r14, rcx
add r14, r9
lea rsi, [rsp + 0x40]
cmp r8, 0x10
cmovae rsi, rcx
add rsi, r9
lea rbx, [rsp + 0x40]
cmp r8, 0x10
cmovae rbx, rcx
cmp rbx, rsi
je 0x1400669fc
nop dword [rax + rax]
movsx ecx, byte [rbx]
call fcn.140177fc8
test eax, eax
jne 0x1400669b4
inc rbx
cmp rbx, rsi
jne 0x1400669a0
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
cmp rbx, rsi
je 0x1400669fc
lea rdi, [rbx + 1]
cmp rdi, rsi
je 0x1400669fc
movsx ecx, byte [rdi]
call fcn.140177fc8
test eax, eax
jne 0x1400669e5
movzx eax, byte [rdi]
mov byte [rbx], al
inc rbx
inc rdi
cmp rdi, rsi
jne 0x1400669d1
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x40]
cmp r8, 0x10
cmovae rax, rcx
mov rdx, rbx
sub rdx, rax
sub r14, rbx
mov rax, r9
sub rax, rdx
cmp rax, r14
cmovb r14, rax
lea rax, [rsp + 0x40]
cmp r8, 0x10
cmovae rax, rcx
lea rcx, [rax + rdx]
sub r9, r14
mov qword [rsp + 0x50], r9
sub r9, rdx
lea r8, [r9 + 1]
lea rdx, [rcx + r14]
call fcn.1401378a0
mov edx, 0xee
lea rcx, [rbp - 0x80]
call fcn.1400175a0
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140067090
mov rbx, rax
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140066aa4
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140066a9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140066b91
call fcn.140133e68
xor esi, esi
cmp rbx, 0xffffffffffffffff
je 0x140066af8
mov dword [rbp + 0x240], esi
lea rdx, [rbp + 0x240]
mov ecx, dword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov eax, dword [rbp + 0x230]
mov ebx, dword [rbp + 0x238]
cmp dword [rbp + 0x240], eax
jne 0x140066afe
movzx ebx, bl
cmp dword [rbp - 0x40], r12d
cmove ebx, r13d
mov dword [rbp + 0x238], ebx
jmp 0x140066afe
sub rbx, r14
mov r12d, dword [rbp + 0x240]
jmp 0x1400666d3
mov ebx, dword [rbp + 0x238]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x140066b37
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140066b32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140066b73
call fcn.140133e68
lea rdx, [rbp - 0x60]
mov rcx, r15
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x140066b53
jmp 0x1400667d0
mov ebx, dword [rbp + 0x238]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
add rsp, 0x2e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1401462a8
nop
call fcn.1401462a8
nop
call fcn.1401462a8
nop
call fcn.1401462a8
nop
call fcn.1401462a8
int3
call fcn.1401462a8
int3