Function at 0x140002554
Capabilities:
Enumerate threads
Link many functions at runtime

Disassembly:
push rdi
sub rsp, 0x360
lea rcx, [0x140004488]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140004468]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
lea rcx, [0x1400044b8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.Process32First
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x88], rax
lea rcx, [0x1400044e8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.Process32Next
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xc8], rax
lea rcx, [0x140004518]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.OpenProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x90], rax
lea rcx, [0x140004548]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.VirtualAllocEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xa8], rax
lea rcx, [0x140004580]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.WriteProcessMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xb8], rax
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.QueueUserAPC
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0xc0], rax
xor edx, edx
mov ecx, 2
call qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x1400026c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
lea rdx, str.Failed_to_create_process_snapshot._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010d0
mov ecx, dword [rsp + 0x50]
mov edx, ecx
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___unsigned_long_int____ptr64]
lea rdx, [0x140001930]
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 eax, 1
jmp 0x140002aba
mov dword [rsp + 0x120], 0x238
lea rax, [rsp + 0x124]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0x88]
test eax, eax
je 0x140002a71
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x128], eax
je 0x140002a53
mov r8d, dword [rsp + 0x128]
xor edx, edx
mov ecx, 0x438
call qword [rsp + 0x90]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400029f8
lea rcx, [rsp + 0x30]
call fcn.1400015e0
mov qword [rsp + 0x98], rax
lea rdx, [0x140004350]
lea rcx, [rsp + 0x108]
call fcn.140001908
mov qword [rsp + 0xa0], rax
lea rdx, [0x140004350]
lea rcx, [rsp + 0x110]
call fcn.140001888
mov rcx, qword [rsp + 0x98]
mov r9, rcx
mov rcx, qword [rsp + 0xa0]
mov r8, qword [rcx]
mov rdx, qword [rax]
lea rcx, [rsp + 0xd0]
call fcn.14000102c
nop
lea rcx, [rsp + 0xd0]
call fcn.140002310
lea rcx, [rsp + 0xd0]
call fcn.1400024f0
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0xa8]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x1400029a1
lea rcx, [rsp + 0xd0]
call fcn.1400024f0
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0xd0]
call fcn.1400022cc
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0xb0]
mov r9, rcx
mov r8, rax
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [rsp + 0xb8]
test eax, eax
je 0x14000294a
mov dword [rsp + 0xe8], 0x1c
lea rax, [rsp + 0xec]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x78]
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x14000293d
mov eax, dword [rsp + 0x128]
cmp dword [rsp + 0xf4], eax
jne 0x140002923
mov r8d, dword [rsp + 0xf0]
xor edx, edx
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140002923
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0xc0]
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x140002916
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
lea rdx, str.QueueUserAPC_failed._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010d0
mov ecx, dword [rsp + 0x58]
mov edx, ecx
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___unsigned_long_int____ptr64]
lea rdx, [0x140001930]
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 [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000293d
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x78]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x140002885
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002986
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x5c], eax
lea rdx, str.WriteProcessMemory_failed._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010d0
mov ecx, dword [rsp + 0x5c]
mov edx, ecx
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___unsigned_long_int____ptr64]
lea rdx, [0x140001930]
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 r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x1400029dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rdx, str.VirtualAllocEx_failed._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010d0
mov ecx, dword [rsp + 0x60]
mov edx, ecx
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___unsigned_long_int____ptr64]
lea rdx, [0x140001930]
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 [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0xd0]
call fcn.140001da4
jmp 0x140002a53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
lea rdx, str.OpenProcess_failed._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010d0
mov ecx, dword [rsp + 0x64]
mov edx, ecx
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___unsigned_long_int____ptr64]
lea rdx, str._for_PID:
mov rcx, rax
call fcn.1400010d0
mov edx, dword [rsp + 0x128]
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___unsigned_long_int____ptr64]
lea rdx, [0x140001930]
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 rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x48]
call qword [rsp + 0xc8]
test eax, eax
jne 0x1400026fc
jmp 0x140002aad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rdx, str.Process32First_failed._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400010d0
mov ecx, dword [rsp + 0x68]
mov edx, ecx
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___unsigned_long_int____ptr64]
lea rdx, [0x140001930]
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 [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x360
pop rdi
ret