Function at 0x140001080
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Initialize winsock library

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x298
mov rax, qword [0x140010008]
xor rax, rsp
mov qword [rsp + 0x280], rax
movsxd rdi, ecx
xor esi, esi
mov r15, rdx
lea rdx, [rsp + 0xe0]
mov ebx, esi
mov ecx, 0x101
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], ebx
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x1400010dc
lea rcx, str.WSAStartup_failed_exiting..
call fcn.140001910
jmp 0x1400014a7
mov qword [rsp + 0x2c0], rbp
mov ebp, 1
mov qword [rsp + 0x2d0], r12
cmp rbp, rdi
mov qword [rsp + 0x2d8], r13
mov qword [rsp + 0x290], r14
mov r14d, ebp
lea rcx, [sym.husk.x64.exe_buf]
jge 0x140001474
lea r12d, [rbp + 1]
lea r13, [r15 + 0x10]
nop dword [rax]
mov rax, qword [r15 + rbp*8]
xor bl, bl
cmp byte [rax], 0x2d
jne 0x14000112e
mov byte [rax], 0x2f
mov rcx, qword [r15 + rbp*8]
lea rdx, [0x14000d768]
call fcn.1400014cc
test rax, rax
jne 0x140001463
mov rcx, qword [r15 + rbp*8]
lea rdx, [0x14000d764]
call fcn.1400014cc
test rax, rax
jne 0x14000145d
mov rcx, qword [r15 + rbp*8]
lea rdx, str._break
call fcn.1400014cc
test rax, rax
je 0x14000117f
mov dword [rsp + 0x40], 1
mov bl, 1
mov rcx, qword [r15 + rbp*8]
lea rdx, str._fopen
call fcn.1400014cc
test rax, rax
je 0x1400011db
cmp r12d, edi
jge 0x1400013c4
mov rbx, qword [r13]
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x1400013ad
lea rcx, str.Successfully_opened_a_handle__0x_X__to__s_r_n
mov r8, rbx
mov edx, eax
call fcn.140001910
inc r14d
inc r12d
inc rbp
mov bl, 1
add r13, 8
mov rcx, qword [r15 + rbp*8]
lea rdx, [0x14000d720]
call fcn.1400014cc
test rax, rax
je 0x140001295
cmp r12d, edi
jge 0x140001408
mov rcx, qword [r13]
call fcn.14000bbbc
lea rdx, [0x14000d71c]
mov rcx, rax
mov rbx, rax
call fcn.1400014cc
test rax, rax
je 0x1400013f4
xor edx, edx
lea rcx, [rax + 1]
mov byte [rax], 0
lea r8d, [rdx + 0x10]
call fcn.140001ea4
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x10]
mov esi, eax
call fcn.140001ea4
mov rdx, rsi
mov r9d, 0x40
mov ecx, eax
mov r8d, 0x3000
mov edi, eax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, esi
mov edx, edi
lea ecx, [rax + rsi]
mov r9d, eax
mov rbx, rax
mov dword [rsp + 0x20], ecx
lea rcx, str.VirtualAlloc_base_x__size_x____x____x_n
call fcn.140001910
test ebx, ebx
je 0x1400013d8
mov edi, dword [rsp + 0x48]
inc r14d
inc r12d
inc rbp
mov bl, 1
add r13, 8
mov rcx, qword [r15 + rbp*8]
lea rdx, str._dll
call fcn.1400014cc
test rax, rax
je 0x1400012df
cmp r12d, edi
jge 0x14000141c
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdx, qword [r13]
lea rcx, str.LoadLibrary__s___0x_x_n
mov r8d, eax
call fcn.140001910
inc r14d
inc r12d
inc rbp
mov bl, 1
add r13, 8
mov rcx, qword [r15 + rbp*8]
lea rdx, str._foff
call fcn.1400014cc
test rax, rax
je 0x14000132f
cmp r12d, edi
jge 0x140001430
mov rcx, qword [r13]
xor edx, edx
lea r8d, [rdx + 0x10]
call fcn.140001ea4
lea rcx, str.Starting_at_file_offset_0x_x_n
mov edx, eax
mov ebx, eax
mov dword [rsp + 0x44], eax
call fcn.140001910
inc r14d
inc r12d
inc rbp
add r13, 8
jmp 0x14000133b
test bl, bl
je 0x140001444
mov ebx, dword [rsp + 0x44]
inc rbp
movsxd rax, edi
inc r14d
inc r12d
add r13, 8
cmp rbp, rax
jl 0x140001120
test ebx, ebx
jle 0x140001469
lea r10, [sym.husk.x64.exe_buf]
movsxd r8, ebx
movzx ecx, byte [r8 + r10 + 3]
movzx edx, byte [r8 + r10 + 2]
movzx eax, byte [r8 + r10 + 4]
movzx r9d, byte [r8 + r10 + 1]
movzx r8d, byte [r8 + r10]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rcx, str.Start_opcodes:__04x_____02x__02x__02x__02x__02x_n
mov edx, ebx
call fcn.140001910
mov esi, dword [rsp + 0x40]
lea rcx, [sym.husk.x64.exe_buf]
jmp 0x140001474
lea rcx, str.Option__fopen_Could_not_open_file__s_r_n
mov rdx, rbx
call fcn.140001910
xor ecx, ecx
call fcn.140001870
int3
lea rcx, str._fhand_no_argument_found_n
call fcn.140001910
xor ecx, ecx
call fcn.140001870
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ErrorCode:__x_nAborting..._n
mov edx, eax
call fcn.140001910
xor ecx, ecx
call fcn.140001870
int3
lea rcx, str.Invalid_option__va_must_specify_0xBase_0xSize_as_next_arg_n
call fcn.140001910
xor ecx, ecx
call fcn.140001870
int3
lea rcx, str.Invalid_option__va_must_specify_0xBase_0xSize_as_next_arg_n
call fcn.140001910
xor ecx, ecx
call fcn.140001870
int3
lea rcx, str.Invalid_option__dll_must_specify_dll_to_load_as_next_arg_n
call fcn.140001910
xor ecx, ecx
call fcn.140001870
int3
lea rcx, str.Invalid_option__foff_must_specify_start_file_offset_as_next_arg_n
call fcn.140001910
xor ecx, ecx
call fcn.140001870
int3
movsxd rdx, r14d
lea rcx, str.Unknown_Option__s_n_n
mov rdx, qword [r15 + rdx*8]
call fcn.140001910
call fcn.140001000
int3
call fcn.140001000
int3
call fcn.140001000
int3
mov esi, dword [rsp + 0x40]
lea rcx, [sym.husk.x64.exe_buf]
movsxd rax, ebx
lea rbx, [rcx + rax*4]
test esi, esi
je 0x140001485
call qword [sym.imp.KERNEL32.dll_DebugBreak]
call rbx
mov r13, qword [rsp + 0x2d8]
mov r12, qword [rsp + 0x2d0]
mov rbp, qword [rsp + 0x2c0]
mov r14, qword [rsp + 0x290]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140001ef0
add rsp, 0x298
pop r15
pop rdi
pop rsi
pop rbx
ret