Function at 0x140051880
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1d0]
sub rsp, 0x2d0
xor r12d, r12d
mov edi, r12d
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400518fe
mov dword [rbp - 0x70], 0x238
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400518fe
lea rdx, [0x14019c008]
lea rcx, [rbp - 0x44]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x1400518fb
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400518d3
jmp 0x1400518fe
mov edi, dword [rbp - 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1403d34b4], edi
test edi, edi
je 0x140051b97
lea rdx, [0x14019c008]
mov ecx, edi
call fcn.140045760
mov rbx, rax
mov r8d, dword [0x1403d34b4]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r12, rax
lea r13, [rbx + 0x2140688]
lea rax, [rbx + 0x2f32010]
mov qword [rbp + 0x210], rax
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x34], 0xce8
mov dword [rsp + 0x3c], r14d
mov dword [rsp + 0x40], 0xa8
mov dword [rsp + 0x44], 0x9cc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r14
mov edx, 6
lea rcx, [rsp + 0x58]
call fcn.14008fb90
mov r8d, Ordinal_26
lea rdx, [rsp + 0x30]
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
lea rbx, [rsi + 0x18]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x48], 0x60
mov dword [rsp + 0x4c], reloc.WS2_32.dll_recv
mov dword [rsp + 0x50], 0x38c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov edx, 3
lea rcx, [rsp + 0x70]
call fcn.14008fb90
mov r8d, ntohs
lea rdx, [rsp + 0x48]
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea r15, [rdi + 0xc]
mov qword [rsp + 0x78], r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
sub rbx, rsi
mov r14, rbx
sar r14, 2
test r14, r14
je 0x140051a51
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.14008fb90
mov r8, rbx
mov rdx, rsi
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + r14*4]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x30]
mov rdx, r13
mov rcx, r12
call fcn.140045800
mov r13, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
sub r15, rdi
mov r14, r15
sar r14, 2
test r14, r14
je 0x140051aae
mov rdx, r14
lea rcx, [rsp + 0x30]
call fcn.14008fb90
mov r8, r15
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + r14*4]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x30]
mov rdx, qword [rbp + 0x210]
mov rcx, r12
call fcn.140045800
mov rbx, rax
xor r14d, r14d
mov qword [rsp + 0x20], r14
mov r9d, 4
lea r8, [0x140230e8c]
mov rdx, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x20], r14
mov r9d, 4
lea r8, [0x140230e8c]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rdi, rdi
je 0x140051b4e
mov rax, qword [rbp - 0x80]
sub rax, rdi
sar rax, 2
lea rdx, [rax*4]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140051b45
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140051b45
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14015d09c
nop
test rsi, rsi
je 0x140051b94
mov rax, qword [rsp + 0x68]
sub rax, rsi
sar rax, 2
lea rdx, [rax*4]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140051b8c
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005224b
mov rcx, rsi
call fcn.14015d09c
xor r12d, r12d
mov edi, r12d
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140051bfb
mov dword [rbp - 0x70], 0x238
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140051bfb
nop dword [rax + rax]
lea rdx, [0x14019c0a8]
lea rcx, [rbp - 0x44]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140051bf8
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140051bd0
jmp 0x140051bfb
mov edi, dword [rbp - 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1403d34b4], edi
test edi, edi
je 0x140051d4f
lea rdx, [0x14019c0a8]
mov ecx, edi
call fcn.140045760
mov r15, rax
mov r8d, dword [0x1403d34b4]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
mov dword [rsp + Ordinal_79], 0x48
mov dword [rsp + 0x4c], reloc.WS2_32.dll_recv
mov dword [rsp + 0x50], 0xcac
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov edx, 3
lea rcx, [rsp + 0x58]
call fcn.14008fb90
mov r8d, ntohs
lea rdx, [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea rbx, [rdi + 0xc]
mov qword [rsp + 0x60], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
sub rbx, rdi
mov rsi, rbx
sar rsi, 2
test rsi, rsi
je 0x140051cd6
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14008fb90
mov r8, rbx
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rsi*4]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x30]
lea rdx, [r15 + 0x2566aa0]
mov rcx, r14
call fcn.140045800
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [0x140230e8c]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rdi, rdi
je 0x140051d4f
mov rax, qword [rsp + 0x68]
sub rax, rdi
sar rax, 2
lea rdx, [rax*4]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140051d47
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005224b
mov rcx, rdi
call fcn.14015d09c
mov edi, r12d
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140051dab
mov dword [rbp - 0x70], 0x238
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140051dab
lea rdx, [0x14019c260]
lea rcx, [rbp - 0x44]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140051da8
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140051d80
jmp 0x140051dab
mov edi, dword [rbp - 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1403d34b4], edi
test edi, edi
je 0x140051eff
lea rdx, [0x14019c260]
mov ecx, edi
call fcn.140045760
mov r15, rax
mov r8d, dword [0x1403d34b4]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
mov dword [rsp + 0x48], 0x80
mov dword [rsp + 0x4c], 0x140
mov dword [rsp + 0x50], 0xecc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov edx, 3
lea rcx, [rsp + 0x58]
call fcn.14008fb90
mov r8d, ntohs
lea rdx, [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea rbx, [rdi + 0xc]
mov qword [rsp + 0x60], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
sub rbx, rdi
mov rsi, rbx
sar rsi, 2
test rsi, rsi
je 0x140051e86
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14008fb90
mov r8, rbx
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rsi*4]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x30]
lea rdx, [r15 + 0x1dc74d8]
mov rcx, r14
call fcn.140045800
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [0x140230e8c]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rdi, rdi
je 0x140051eff
mov rax, qword [rsp + 0x68]
sub rax, rdi
sar rax, 2
lea rdx, [rax*4]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140051ef7
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005224b
mov rcx, rdi
call fcn.14015d09c
mov edi, r12d
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140051f5b
mov dword [rbp - 0x70], 0x238
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140051f5b
lea rdx, [0x14019c2b8]
lea rcx, [rbp - 0x44]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140051f58
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140051f30
jmp 0x140051f5b
mov edi, dword [rbp - 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1403d34b4], edi
test edi, edi
je 0x1400520af
lea rdx, [0x14019c2b8]
mov ecx, edi
call fcn.140045760
mov r15, rax
mov r8d, dword [0x1403d34b4]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
mov dword [rsp + 0x48], reloc.WS2_32.dll_recv
mov dword [rsp + 0x4c], 0x140
mov dword [rsp + 0x50], 0xc8c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov edx, 3
lea rcx, [rsp + 0x58]
call fcn.14008fb90
mov r8d, ntohs
lea rdx, [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea rbx, [rdi + 0xc]
mov qword [rsp + 0x60], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
sub rbx, rdi
mov rsi, rbx
sar rsi, 2
test rsi, rsi
je 0x140052036
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14008fb90
mov r8, rbx
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rsi*4]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x30]
lea rdx, [r15 + 0x28d8440]
mov rcx, r14
call fcn.140045800
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [0x140230e8c]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rdi, rdi
je 0x1400520af
mov rax, qword [rsp + 0x68]
sub rax, rdi
sar rax, 2
lea rdx, [rax*4]
mov rax, rdi
cmp rdx, 0x1000
jb 0x1400520a7
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005224b
mov rcx, rdi
call fcn.14015d09c
mov edi, r12d
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005210b
mov dword [rbp - 0x70], 0x238
lea rdx, [rbp - 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14005210b
lea rdx, [0x14019c1b0]
lea rcx, [rbp - 0x44]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140052108
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400520e0
jmp 0x14005210b
mov edi, dword [rbp - 0x68]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1403d34b4], edi
test edi, edi
je 0x14005225a
lea rdx, [0x14019c1b0]
mov ecx, edi
call fcn.140045760
mov r15, rax
mov r8d, dword [0x1403d34b4]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r14, rax
mov dword [rsp + 0x48], reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x4c], 0x140
mov dword [rsp + 0x50], 0x3cc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov edx, 3
lea rcx, [rsp + 0x58]
call fcn.14008fb90
mov r8d, ntohs
lea rdx, [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
lea rbx, [rdi + 0xc]
mov qword [rsp + 0x60], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
sub rbx, rdi
mov rsi, rbx
sar rsi, 2
test rsi, rsi
je 0x1400521e6
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14008fb90
mov r8, rbx
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rsi*4]
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x30]
lea rdx, [r15 + 0x28bc718]
mov rcx, r14
call fcn.140045800
mov qword [rsp + 0x20], r12
mov r9d, 4
lea r8, [0x140230e8c]
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
test rdi, rdi
je 0x14005225a
mov rdx, qword [rsp + 0x68]
sub rdx, rdi
and rdx, 0xfffffffffffffffc
mov rax, rdi
cmp rdx, 0x1000
jb 0x140052252
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140052252
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.14015d09c
mov rbx, qword [rsp + 0x320]
add rsp, 0x2d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret