Function at 0x1400dc370
Capabilities:
Enumerate processes

Disassembly:
sub rsp, 0x1b8
mov rax, qword [0x14067d0d8]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov ecx, dword [0x1406879d0]
mov rax, qword gs:[0x58]
mov edx, 0x28
mov rax, qword [rax + rcx*8]
mov eax, dword [rdx + rax]
cmp dword [0x140681680], eax
jg 0x1400dc5a4
xor ecx, ecx
mov qword [rsp + 0x1c8], rsi
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
cmp qword [0x140681678], rax
jge 0x1400dc57d
xor ecx, ecx
mov qword [rsp + 0x1c0], rbx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
xor edx, edx
add rax, 5
mov qword [0x140681678], rax
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor edx, edx
lea rcx, [rsp + 0x74]
mov r8d, 0x12c
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, dword [0x140680fac]
xor esi, esi
mov dword [rsp + 0x70], 0x130
test r8d, r8d
jne 0x1400dc4a1
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x1b0], rdi
mov rcx, rbx
mov qword [0x140681690], rsi
mov qword [0x140681688], rsi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1400dc492
lea rdi, str.bf1.exe
nop
mov rax, rsi
lea rdx, [rsp + 0x9c]
nop dword [rax + rax]
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [rdi + rax - 1]
jne 0x1400dc481
cmp rax, 8
jne 0x1400dc460
mov r8d, dword [rsp + 0x78]
mov dword [0x140680fac], r8d
jmp 0x1400dc499
lea rdx, [rsp + 0x70]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1400dc450
mov r8d, dword [0x140680fac]
mov rdi, qword [rsp + 0x1b0]
cmp qword [0x140681690], rsi
mov rbx, qword [rsp + 0x1c0]
jne 0x1400dc4cb
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x140681690], rax
test rax, rax
je 0x1400dc540
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.GetProcessMemoryInfo__
call fcn.1400be0a0
lea rdx, [0x1400c6b20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x140681690]
lea rdx, [rsp + 0x20]
mov r8d, 0x48
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
jne 0x1400dc551
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.GetProcessMemoryInfo___failed
call fcn.1400be0a0
lea rdx, [0x1400c6b20]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x140681690]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140681690], rsi
mov dword [0x140680fac], esi
xor eax, eax
mov qword [0x140681688], rsi
jmp 0x1400dc584
mov rax, qword [rsp + 0x30]
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
cqo
and edx, 0x3ff
add rax, rdx
sar rax, 0xa
mov qword [0x140681688], rax
jmp 0x1400dc584
mov rax, qword [0x140681688]
mov rsi, qword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140248540
add rsp, 0x1b8
ret
lea rcx, [0x140681680]
call fcn.140248858
cmp dword [0x140681680], 0xffffffff
jne 0x1400dc3b0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
lea rcx, [0x140681680]
mov qword [0x140681678], rax
call fcn.1402487ec
jmp 0x1400dc3b0