Function at 0x14001134d
Capabilities:
Get file size

Disassembly:
jmp 0x140012680
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x510
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0xcc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x538]
mov rax, qword [0x1400200a8]
xor rax, rbp
mov qword [rbp + 0x4a8], rax
lea rcx, [0x1400260f7]
call fcn.140011479
cmp dword [rbp + 0x4d0], 3
je 0x1400126e9
lea rcx, str._n____usage:_NtRemoteLoad.exe__file.bin___PID__n
call fcn.140011230
xor eax, eax
jmp 0x140012b26
call fcn.14001146a
movzx eax, al
test eax, eax
jne 0x1400126ff
mov eax, 0xffffffff
jmp 0x140012b26
lea rax, [rbp + 8]
lea rcx, str.eliFdaeRtN
mov rdi, rax
mov rsi, rcx
mov ecx, 0xb
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x38]
lea rcx, str.yromeMlautriVtcetorPtN
mov rdi, rax
mov rsi, rcx
mov ecx, 0x17
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x68]
lea rcx, str.yromeMlautriVetirWtN
mov rdi, rax
mov rsi, rcx
mov ecx, 0x15
rep movsb byte [rdi], byte [rsi]
lea rax, [rbp + 0x98]
lea rcx, str.ssecorPnepOtN
mov rdi, rax
mov rsi, rcx
mov ecx, 0xe
rep movsb byte [rdi], byte [rsi]
mov qword [rbp + 0xe8], 0
mov eax, 8
imul rax, rax, 1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rbp + 0x4d8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0x108], 0xffffffffffffffff
jne 0x1400127c9
mov eax, 0xffffffff
jmp 0x140012b26
xor edx, edx
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov eax, eax
mov qword [rbp + 0x128], rax
cmp qword [rbp + 0x128], 0
jne 0x1400127f5
mov eax, 0xffffffff
jmp 0x140012b26
mov qword [rbp + 0x148], 0
mov qword [rbp + 0x168], 0xffffffffffffffff
mov edx, 0x17
lea rcx, str.yromeMlautriVetacollAtN
call fcn.14001148d
lea rcx, str.yromeMlautriVetacollAtN
call fcn.14001128a
mov qword [rbp + 0x188], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0x3000
lea r9, [rbp + 0x128]
xor r8d, r8d
lea rdx, [rbp + 0xe8]
mov rcx, qword [rbp + 0x168]
call qword [rbp + 0x188]
mov edx, 0xa
lea rcx, [rbp + 8]
call fcn.14001148d
lea rcx, [rbp + 8]
call fcn.14001128a
mov qword [rbp + 0x1d8], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rbp + 0x128]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0xe8]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1a8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x108]
call qword [rbp + 0x1d8]
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rbp + 0x4d8]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
mov dword [rbp + 0x1f4], eax
mov dword [rbp + 0x218], 0x30
mov qword [rbp + 0x220], 0
mov dword [rbp + 0x230], 0
mov qword [rbp + 0x228], 0
mov qword [rbp + 0x238], 0
mov qword [rbp + 0x240], 0
movsxd rax, dword [rbp + 0x1f4]
mov qword [rbp + 0x288], rax
mov qword [rbp + 0x290], 0
mov edx, 0xd
lea rcx, [rbp + 0x98]
call fcn.14001148d
lea rcx, [rbp + 0x98]
call fcn.14001128a
mov qword [rbp + 0x2b8], rax
lea r9, [rbp + 0x288]
lea r8, [rbp + 0x218]
mov edx, 0x1fffff
lea rcx, [rbp + 0x268]
call qword [rbp + 0x2b8]
cmp qword [rbp + 0x268], 0
jne 0x1400129a1
lea rcx, str.Failed_to_open_process
call fcn.140011230
mov eax, 0xffffffff
jmp 0x140012b26
mov qword [rbp + 0x2d8], 0
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rbp + 0x128]
xor r8d, r8d
lea rdx, [rbp + 0x2d8]
mov rcx, qword [rbp + 0x268]
call qword [rbp + 0x188]
mov dword [rbp + 0xc4], eax
mov edx, 0x14
lea rcx, [rbp + 0x68]
call fcn.14001148d
lea rcx, [rbp + 0x68]
call fcn.14001128a
mov qword [rbp + 0x2f8], rax
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x128]
mov r8, qword [rbp + 0xe8]
mov rdx, qword [rbp + 0x2d8]
mov rcx, qword [rbp + 0x268]
call qword [rbp + 0x2f8]
mov dword [rbp + 0xc4], eax
mov edx, 0x10
lea rcx, str.xEdaerhTetaerCtN
call fcn.14001148d
lea rcx, str.xEdaerhTetaerCtN
call fcn.14001128a
mov qword [rbp + 0x318], rax
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rbp + 0x2d8]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x268]
xor r8d, r8d
mov edx, 0x10000000
lea rcx, [rbp + 0x148]
call qword [rbp + 0x318]
mov dword [rbp + 0xc4], eax
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x268]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400114a1
movzx eax, al
test eax, eax
je 0x140012b01
lea rdx, str.All_good_:D
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110a0
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
jmp 0x140012b24
lea rdx, str.Something_went_wrong_:d
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400110a0
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x14001cfe0]
call fcn.140011401
mov rax, rdi
mov rcx, qword [rbp + 0x4a8]
xor rcx, rbp
call fcn.14001124e
lea rsp, [rbp + 0x4b0]
pop rdi
pop rsi
pop rbp
ret