Function at 0x1400014c0
Capabilities:
Access peb ldr_data
Enumerate threads
Inject apc

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rdi, rdx
mov r13d, ecx
xor ebx, ebx
mov r8d, ecx
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r15, rax
test rax, rax
jne 0x14000154b
lea rdx, str.Failed_to_open_target_process._Error_Code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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]
mov rcx, rax
lea rdx, [0x140005470]
call fcn.1400027a0
jmp 0x14000179f
mov r8, qword [rdi + 0x10]
inc r8
mov dword [rsp + 0x20], 4
xor edx, edx
mov r9d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400015b3
lea rdx, str.Failed_to_allocate_memory_in_target_process._Error_Code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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]
mov rcx, rax
lea rdx, [0x140005470]
call fcn.1400027a0
jmp 0x140001796
mov r9, qword [rdi + 0x10]
inc r9
mov r8, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x1400015c7
mov r8, qword [rdi]
mov qword [rsp + 0x20], rbx
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1400015e8
lea rdx, str.Failed_to_write_DLL_path_to_target_process_memory._Error_Code:
jmp 0x140001752
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140001606
lea rdx, str.Failed_to_get_handle_of_kernel32.dll._Error_Code:
jmp 0x140001752
lea rdx, [0x140005698]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
jne 0x14000162a
lea rdx, str.Failed_to_get_address_of_LoadLibraryA._Error_Code:
jmp 0x140001752
xor edx, edx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x14000164a
lea rdx, str.Failed_to_create_thread_snapshot._Error_Code:
jmp 0x140001752
mov dword [rsp + 0x78], 0x1c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x7c], xmm0
mov qword [rbp - 0x74], rax
lea rdx, [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x140001742
cmp dword [rbp - 0x7c], r13d
jne 0x140001727
mov r8d, dword [rbp - 0x80]
xor edx, edx
lea ecx, [rdx + 0x10]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1400016f1
mov r8, qword [rsp + 0x40]
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
jne 0x1400017cb
lea rdx, str.Failed_to_queue_APC_in_target_thread._Error_Code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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]
mov rcx, rax
lea rdx, [0x140005470]
call fcn.1400027a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001727
lea rdx, str.Failed_to_open_thread._Error_Code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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]
mov rcx, rax
lea rdx, [0x140005470]
call fcn.1400027a0
lea rdx, [rsp + 0x78]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001676
mov rsi, qword [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Injection_failed:_no_suitable_thread_found._Error_Code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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, [0x140005470]
mov rcx, rax
call fcn.1400027a0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400031f0
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x140001812
lea rdx, str.Failed_to_retrieve_module_handle_after_injection._Error_Code:
jmp 0x14000157f
mov r14, qword [rdi + 0x10]
mov rbx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140001823
mov rbx, qword [rdi]
mov rsi, 0xffffffffffffffff
test r14, r14
je 0x140001897
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
mov dword [rbp + 0x18], eax
xor edx, edx
mov r8d, 0xa3
lea rcx, [rbp + 0x1d]
call sub.VCRUNTIME140.dll_memset
mov byte [rbp + 0x1c], 1
lea rax, [r14 - 1]
mov rcx, rsi
cmp rax, rcx
cmovb rcx, rax
add rcx, rbx
movzx eax, byte [rcx]
cmp byte [rbp + rax - 0x40], 0
jne 0x140001892
nop
cmp rcx, rbx
je 0x140001897
dec rcx
movzx eax, byte [rcx]
cmp byte [rbp + rax - 0x40], 0
je 0x140001880
sub rcx, rbx
jmp 0x14000189a
mov rcx, rsi
inc rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x58], xmm1
mov rax, r14
cmp r14, rcx
jb 0x140001d3b
sub rax, rcx
cmp rax, rsi
cmovb rsi, rax
cmp qword [rdi + 0x18], 0xf
jbe 0x1400018cc
mov rdi, qword [rdi]
lea rdx, [rdi + rcx]
mov r8, rsi
lea rcx, [rbp - 0x68]
call fcn.1400030d0
nop
mov r8d, r13d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x1400019a9
lea rdx, str.Failed_to_open_target_process_for_verification._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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]
mov rcx, rax
lea rdx, [0x140005470]
call fcn.1400027a0
lea rdx, str.DLL_verification_failed._Injection_unsuccessful._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x140001d33
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d2e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1400019e3
lea rdx, str.Failed_to_get_handle_of_the_DLL._DLL_might_be_unloaded._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000192f
lea rdx, str.VerifyInjection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001a01
lea rdx, str.Failed_to_locate_verification_function_in_DLL._n
jmp 0x1400019c9
call rax
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xdeadbeef
jne 0x14000192f
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140001cfb
call fcn.140001410
test al, al
jne 0x140001a67
lea rdx, str.Failed_to_unlink_module_from_PEB._Error_Code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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]
mov rcx, rax
lea rdx, [0x140005470]
call fcn.1400027a0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ae0
lea r9, [rsp + 0x30]
mov r8d, 4
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140001ae0
mov r8, qword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x140001b16
lea rdx, str.Failed_to_erase_PE_header._Error_Code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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]
mov rcx, rax
lea rdx, [0x140005470]
call fcn.1400027a0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b62
lea r9, [rsp + 0x30]
mov r8d, 1
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b98
lea rdx, str.Failed_to_set_PAGE_NOACCESS_for_DLL_memory._Error_Code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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]
mov rcx, rax
lea rdx, [0x140005470]
call fcn.1400027a0
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
add rcx, 0x10
mov rax, qword [rcx]
cmp rax, rcx
je 0x140001bc8
mov rdx, qword [rsp + 0x38]
cmp qword [rax + 0x30], rdx
je 0x140001d22
mov rax, qword [rax]
cmp rax, rcx
jne 0x140001bb6
lea rdx, str.Failed_to_modify_LDR_flags._Error_Code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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]
mov rcx, rax
lea rdx, [0x140005470]
call fcn.1400027a0
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c38
lea r9, [rsp + 0x30]
mov r8d, 0x10
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c6e
lea rdx, str.Failed_to_set_memory_to_execute_only._Error_Code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400027a0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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]
mov rcx, rax
lea rdx, [0x140005470]
call fcn.1400027a0
mov r11, qword [rsp + 0x38]
movsxd rax, dword [r11 + 0x3c]
mov r9d, dword [rax + r11 + 0xb0]
add r9, r11
mov ebx, r11d
sub ebx, dword [rax + r11 + 0x30]
cmp dword [r9], 0
je 0x140001cfb
mov edi, 0xf000
mov esi, 0x3000
nop word [rax + rax]
mov eax, dword [r9 + 4]
sub rax, 8
shr rax, 1
lea r8, [r9 + 8]
test eax, eax
je 0x140001cee
mov r10d, eax
nop word [rax + rax]
movzx edx, word [r8]
movzx eax, dx
and ax, di
cmp ax, si
jne 0x140001ce4
and edx, 0xfff
mov ecx, dword [r9]
lea rax, [r11 + rdx]
add rcx, rax
mov eax, ebx
add qword [rcx], rax
add r8, 2
sub r10, 1
jne 0x140001cc0
mov eax, dword [r9 + 4]
add r9, rax
cmp dword [r9], 0
jne 0x140001ca0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x140001964
or dword [rax + 0x68], 0x2000000
jmp 0x140001bfe
call fcn.140003278
movzx eax, bl
jmp 0x1400017a1
call fcn.140002e20
int3