Function at 0x140001be0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push rbx
push rdi
sub rsp, 0x368
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov ebx, ecx
mov rdi, rdx
lea rcx, str.Starting_up_n
call fcn.140001370
cmp ebx, 3
jge 0x140001cb0
lea rcx, str.Usage:_shellcode_launcher.exe_n
call fcn.140001370
lea rcx, str.shellcode_launcher.exe__i__shellcode_filename___o__offset___ba__base_address____bp____r__in_filename___n_____w__in_filename_____L__lib_name_____reg____reg___n
call fcn.140001370
lea rcx, str.___shellcode_filename__is_the_binary_containing_the_shellcode_to_execute_n
call fcn.140001370
lea rcx, str.___offset__is_the__decimal__offset_into_the_shellcode_to_start_executing_n
call fcn.140001370
lea rcx, str.___base_address__is_your_preferred_base_address_to_insert_the_shellcode__i.e._0xFD0000_n
call fcn.140001370
lea rcx, str.___in_filename__is_an_additional_file_to_open__either_readonly___r___n
call fcn.140001370
lea rcx, str._____or_writeable___w___such_as_for_a_malicious_PDF_the_shellcode_n
call fcn.140001370
lea rcx, str._____requires_an_open_handle_for_n
call fcn.140001370
lea rcx, str.____reg_:_load_register__reg__with_a_pointer_to_the_start_of_the_shellcode_n
call fcn.140001370
lea rcx, str.___reg_:_load_register__reg__with_a_pointer_to_the_end_of_the_shellcode_n
call fcn.140001370
lea rcx, str.___bp:_add_a_breakpoint_prior_to_jumping_into_the_shellcode_n
call fcn.140001370
lea rcx, str.___L__lib_name_:_Load_library__libname__during_initialization_n
call fcn.140001370
mov eax, 1
jmp 0x14000206b
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x2f0
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x50]
mov rdx, rdi
mov ecx, ebx
call fcn.1400016d0
test eax, eax
js 0x140001ca6
xor edi, edi
mov qword [rsp + 0x380], rbp
mov qword [rsp + 0x390], rsi
mov esi, edi
cmp dword [rsp + 0x298], edi
jle 0x140001d33
lea rbx, [rsp + 0x2f0]
nop word [rax + rax]
mov rbp, qword [rbx - 0x50]
lea rcx, str.Trying_to_LoadLibrary:__s_n
mov rdx, rbp
call fcn.140001370
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x140001d57
mov qword [rbx], rax
inc esi
add rbx, 8
cmp esi, dword [rsp + 0x298]
jl 0x140001d00
lea rcx, [rsp + 0x50]
call fcn.140001540
test eax, eax
jns 0x140001d85
lea rcx, str.Creat_auxiliary_files_failed._Exiting_n
call fcn.140001370
mov eax, 1
jmp 0x14000205b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbp
lea rcx, str.Error_loading_library__s:_0x_08_n
mov r8d, eax
call fcn.140001370
lea rcx, str.Load_Libraries_failed._Exiting_n
call fcn.140001370
mov eax, 1
jmp 0x14000205b
mov rsi, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov rcx, rsi
mov qword [rsp + 0x358], r14
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov qword [rsp + 0x350], r15
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001de9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rsi
lea rcx, str.Couldnt_open_shellcode_containing_file__s:__08x_n
mov r8d, eax
call fcn.140001370
jmp 0x140001eb7
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x68], eax
mov r15d, eax
cmp eax, 0xffffffff
jne 0x140001e11
lea rcx, str.Couldnt_get_file_size_n
call fcn.140001370
jmp 0x140001eb7
cmp dword [rsp + 0x54], r15d
jbe 0x140001e29
lea rcx, str.Execution_offset_larger_than_file_size__n
call fcn.140001370
jmp 0x140001eb7
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x140001e3b
add ecx, 0xffff0000
mov dword [rsp + 0x58], ecx
lea edx, [rax + 0x10000]
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
jne 0x140001e6c
mov edx, r15d
lea rcx, str.Couldnt_allocate__d_bytes_n
call fcn.140001370
jmp 0x140001eb7
lea rdx, [rax + 0x10000]
mov dword [rsp + 0x40], edi
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, r15d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140001e9f
lea rcx, str.Couldnt_read_file_bytes_n
call fcn.140001370
jmp 0x140001eb7
mov edx, dword [rsp + 0x40]
cmp edx, r15d
je 0x140001ecd
mov r8d, r15d
lea rcx, str.Only_read__d_of__d_bytes__n
call fcn.140001370
lea rcx, str.Creating_shellcode_buffer_failed._Exiting_n
call fcn.140001370
mov eax, 1
jmp 0x14000204b
mov qword [rsp + 0x398], r12
lea rsi, [rsp + 0x84]
mov ebx, 5
mov qword [rsp + 0x360], r13
lea r13, [0x140006058]
mov dword [rsp + 0x40], ebx
mov ebp, edi
lea r12, str.X_YZ_
nop
cmp dword [rsi - 0x18], 0
je 0x140001f77
mov r9d, ebp
lea rcx, str.Setting_reg_start:__08x__08x__d_n
mov r8d, 0x10000
mov edx, edi
call fcn.140001370
mov eax, dword [0x14000604c]
lea rcx, str.Setting_pop__d_at_0x_08x_n
mov r8d, dword [rsp + 0x40]
mov edx, ebp
mov ebx, edi
add rbx, r14
mov dword [rbx], eax
movzx eax, byte [0x140006050]
mov byte [rbx + 4], al
call fcn.140001370
mov r8d, dword [rsp + 0x40]
movzx eax, byte [r12]
mov byte [r8 + r14], al
movzx eax, word [r13]
mov word [rbx + 6], ax
mov eax, 0xfffb
sub eax, edi
add edi, 0xc
add r8d, 0xc
mov dword [rbx + 8], eax
mov dword [rsp + 0x40], r8d
mov ebx, r8d
cmp dword [rsi], 0
je 0x140001fd5
mov r9d, ebp
lea rcx, str.Setting_reg_end:__08x__08x__d_n
mov r8d, 0x10000
mov edx, edi
call fcn.140001370
mov eax, dword [0x14000604c]
mov edx, edi
add rdx, r14
mov ecx, ebx
mov dword [rdx], eax
movzx eax, byte [0x140006050]
mov byte [rdx + 4], al
movzx eax, byte [r12]
mov byte [rcx + r14], al
movzx eax, word [r13]
mov word [rdx + 6], ax
mov eax, r15d
sub eax, edi
add edi, 0xc
add eax, 0xfffb
add ebx, 0xc
mov dword [rdx + 8], eax
mov dword [rsp + 0x40], ebx
inc ebp
add rsi, 4
inc r12
add r13, 2
cmp ebp, 6
jl 0x140001f00
cmp dword [rsp + 0x50], 0
mov r13, qword [rsp + 0x360]
mov r12, qword [rsp + 0x398]
je 0x14000201b
lea edx, [r14 + rdi]
lea rcx, str.Creating_breakpoint_at:_0x_08x_n
call fcn.140001370
mov eax, edi
inc edi
mov byte [rax + r14], 0xcc
mov ecx, dword [rsp + 0x54]
lea edx, [r14 + 0x10000]
mov eax, edi
sub ecx, edi
add ecx, 0xfffb
mov byte [rax + r14], 0xe9
mov dword [rax + r14 + 1], ecx
lea rcx, str.Calling_file_now._Loaded_binary_at:_0x_08x_n
call fcn.140001370
call r14
xor eax, eax
mov r14, qword [rsp + 0x358]
mov r15, qword [rsp + 0x350]
mov rbp, qword [rsp + 0x380]
mov rsi, qword [rsp + 0x390]
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1400020a0
add rsp, 0x368
pop rdi
pop rbx
ret