Function at 0x140002050
Capabilities:
Enumerate processes

Disassembly:
push r14
sub rsp, 0x4a0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14000209e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error_creating_snapshot.
call fcn.140003f00
lea rdx, [0x1400040d0]
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]
lea eax, [r14 + 2]
add rsp, 0x4a0
pop r14
ret
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x1400020f3
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.Error_getting_first_process.
call fcn.140003f00
lea rdx, [0x1400040d0]
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, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x4a0
pop r14
ret
mov qword [rsp + 0x4b0], rbx
mov qword [rsp + 0x4b8], rbp
mov qword [rsp + 0x498], r12
xor r12d, r12d
mov qword [rsp + 0x490], r15
lea r15, str.BinariesWin64DungeonCrawler.exe
mov qword [rsp + 0x4c0], rsi
mov qword [rsp + 0x4c8], rdi
nop dword [rax]
mov r8d, dword [rsp + 0x48]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbp, rax
test rax, rax
je 0x1400022ad
mov r9d, 0x104
lea r8, [rsp + 0x280]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x1400022a4
mov qword [rsp + 0x20], r12
lea rax, [rsp + 0x280]
mov qword [rsp + 0x30], r12
mov r8, 0xffffffffffffffff
mov qword [rsp + 0x38], 7
inc r8
cmp word [rax + r8*2], r12w
jne 0x140002191
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x20]
call fcn.140003cf0
mov rsi, qword [rsp + 0x38]
lea rdi, [rsp + 0x20]
mov r11, qword [rsp + 0x20]
cmp rsi, 8
mov rax, qword [rsp + 0x30]
cmovae rdi, r11
cmp rax, 0x21
jb 0x140002269
add rax, 0xffffffffffffffe0
lea rbx, [rdi + rax*2]
mov rax, rdi
nop
mov rcx, rbx
mov rdx, r12
sub rcx, rax
sar rcx, 1
je 0x14000220a
cmp word [rax], 0x42
je 0x140002207
cmp rcx, 1
je 0x14000220a
add rax, 2
dec rcx
cmp word [rax], 0x42
jne 0x1400021f4
mov rdx, rax
mov rax, rdx
test rdx, rdx
je 0x140002269
movzx ecx, word [rax]
mov r8d, 0x42
mov r9d, 0x21
mov rdx, r15
cmp cx, r8w
jb 0x140002253
mov r10, rax
sub r10, r15
cmp cx, r8w
ja 0x140002253
cmp r9, 1
je 0x140002259
movzx ecx, word [r10 + rdx + 2]
add rdx, 2
dec r9
movzx r8d, word [rdx]
cmp cx, r8w
jae 0x140002234
add rax, 2
jmp 0x1400021e0
sub rax, rdi
sar rax, 1
cmp rax, 0xffffffffffffffff
jne 0x140002308
cmp rsi, 8
jb 0x1400022a4
lea rdx, [rsi*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x14000229c
mov r11, qword [r11 - 8]
add rdx, 0x27
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002347
mov rcx, r11
call fcn.14000457c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002130
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, qword [rsp + 0x4c8]
mov rsi, qword [rsp + 0x4c0]
mov r12, qword [rsp + 0x498]
mov rbp, qword [rsp + 0x4b8]
mov rbx, qword [rsp + 0x4b0]
mov r15, qword [rsp + 0x490]
add rsp, 0x4a0
pop r14
ret
mov ebx, dword [rsp + 0x48]
cmp rsi, 8
jb 0x140002343
lea rdx, [rsi*2 + 2]
mov r8, r11
cmp rdx, 0x1000
jb 0x14000233b
mov r11, qword [r11 - 8]
add rdx, 0x27
sub r8, r11
add r8, 0xfffffffffffffff8
cmp r8, 0x1f
ja 0x140002347
mov rcx, r11
call fcn.14000457c
mov eax, ebx
jmp 0x1400022ce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3