Function at 0x140001630
Capabilities:
Create thread
Inject thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140017040]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov rsi, rdx
mov r13, rcx
mov qword [rbp + 0x50], rdx
mov r12, rdx
mov rbx, qword [rdx + 0x18]
cmp rbx, 0xf
jbe 0x140001674
mov r12, qword [rdx]
mov r15, qword [rdx + 0x10]
inc r15
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov rdx, rsi
cmp rbx, 0xf
jbe 0x140001699
mov rdx, qword [rsi]
lea rcx, [rsp + 0x40]
call fcn.1400059b0
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rdi
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xb0]
mov dword [rsp + rcx + 0x3c], r8d
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
je 0x1400017d6
mov rdx, r12
lea rcx, str.Failed_to_open__s__n
call fcn.140001060
test eax, eax
sete bl
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x40], rdi
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x3c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x50], rax
cmp qword [rbp - 0x30], 0
je 0x14000175c
lea rcx, [rbp - 0x40]
mov rax, qword [rsp + 0x68]
cmp qword [rax], rcx
jne 0x14000175c
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
mov qword [rax], rcx
mov rax, qword [rbp - 0x78]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x60]
mov dword [rax], edx
cmp byte [rbp - 0x34], 0
je 0x14000176c
lea rcx, [rsp + 0x50]
call fcn.1400065f0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x1400017c8
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x1400017c3
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001993
mov rcx, r8
call fcn.140008254
xor r14d, r14d
mov byte [rsi], r14b
movzx eax, bl
jmp 0x140001960
lea rcx, [rsp + 0x50]
call fcn.1400065f0
test rax, rax
jne 0x140001804
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x40]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, r15
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
xor r14d, r14d
mov qword [rsp + 0x20], r14
mov r9, r15
mov r8, r12
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rdi
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
mov r8, r15
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x3c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x50], rax
cmp qword [rbp - 0x30], r14
je 0x1400018f3
lea rcx, [rbp - 0x40]
mov rax, qword [rsp + 0x68]
cmp qword [rax], rcx
jne 0x1400018f3
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x28]
mov qword [rax], rcx
mov rax, qword [rbp - 0x78]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x60]
mov dword [rax], edx
cmp byte [rbp - 0x34], 0
je 0x140001903
lea rcx, [rsp + 0x50]
call fcn.1400065f0
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14000195b
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140001956
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001993
mov rcx, r8
call fcn.140008254
mov byte [rsi], 0
mov al, 1
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], r14
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.140007fb0
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3