Function at 0x180021790
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x18005d0e0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor r13d, r13d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
test rax, rax
jne 0x18002180e
mov rdx, qword [r14]
sub rdx, 0x18
or rsi, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x180021807
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x180021a7c
mov dword [rsp + 0x40], 0x130
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
mov rcx, r15
test eax, eax
jne 0x180021858
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [r14]
sub rdx, 0x18
or rsi, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x180021807
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
xor eax, eax
jmp 0x180021a7c
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32First]
or rsi, 0xffffffffffffffff
test eax, eax
je 0x180021a54
lea rbp, [rsp + 0x6c]
lea rdi, [rsp + 0x6c]
shr rdi, 0x10
mov qword [rsp + 0x28], rdi
lea rcx, [0x18005d078]
mov rax, qword [0x18005d078]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
test rdi, rdi
jne 0x1800218ce
movzx edi, bp
mov ecx, edi
call fcn.180001110
test rax, rax
je 0x1800219ad
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.180001a00
mov rbx, qword [rsp + 0x20]
jmp 0x1800219ad
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x6c]
repne scasb al, byte [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x18002193a
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1800219ad
cmp dword [rdx + 0x10], eax
jge 0x180021910
cmp dword [rbx - 0xc], eax
jl 0x180021a06
mov dword [rbx - 0x10], r13d
mov byte [rbx], al
jmp 0x1800219ad
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180021926
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x20], rbx
jmp 0x1800219ad
mov r12d, dword [rbx - 0x10]
lea rbp, [rsp + 0x6c]
sub rbp, rbx
test ecx, ecx
js 0x180021a49
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x180021970
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.180001ef0
mov rbx, qword [rsp + 0x20]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
cmp rbp, r12
movsxd r12, edi
mov r9, r12
ja 0x18002198d
lea r8, [rbx + rbp]
call fcn.18002f970
jmp 0x180021997
lea r8, [rsp + 0x6c]
call fcn.18002feb4
cmp edi, dword [rbx - 0xc]
jg 0x180021a3e
mov dword [rbx - 0x10], edi
mov byte [r12 + rbx], 0
lea rbp, [rsp + 0x6c]
mov rdx, qword [r14]
mov eax, r13d
test rdx, rdx
setne al
test eax, eax
je 0x180021a33
mov rcx, rbx
call fcn.180030ab0
test eax, eax
sete al
test al, al
jne 0x180021a11
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Process32Next]
mov edi, eax
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800219f8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
test edi, edi
je 0x180021a54
mov rdi, qword [rsp + 0x28]
jmp 0x180021882
mov ecx, 0x80070057
call fcn.180001050
nop
mov r13d, 1
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180021a54
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
jmp 0x180021a54
mov ecx, 0x80004005
call fcn.180001050
nop
mov ecx, 0x80070057
call fcn.180001050
int3
mov ecx, 0x80070057
call fcn.180001050
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x180021a79
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, r13d
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.18002f950
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret