Function at 0x140022db0
Capabilities:
Delete file
Execute command

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x1400ae0c0]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rcx
mov qword [rbp + 7], rcx
xor r13d, r13d
mov byte [0x1400af472], r13b
lea rcx, str.C:GarfBIOS.bin
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov r14, qword [rbx + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r14
cmp rax, 0xc
jb 0x140023135
mov r12, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140022e2b
mov r12, qword [rbx]
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x39], xmm1
lea r15, [r14 + 0xc]
mov edi, reloc.WS2_32.dll_ntohs
lea rsi, [rbp - 0x49]
cmp r15, rdi
jbe 0x140022ec9
mov rdi, r15
or rdi, 0xf
cmp rdi, rcx
jbe 0x140022e84
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140089530
test rax, rax
je 0x140022eac
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140022ec5
mov eax, reloc.WLDAP32.dll_Ordinal_22
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x140022eb3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14002313b
jmp 0x140022e69
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140022ec2
call fcn.140089530
mov rsi, rax
jmp 0x140022ec5
mov rsi, r13
mov qword [rbp - 0x49], rsi
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x31], rdi
movsd xmm0, qword [str.C:GarfFPT_]
movsd qword [rsi], xmm0
mov eax, dword [0x1400a04c0]
mov dword [rsi + 8], eax
lea rcx, [rsi + 0xc]
mov r8, r14
mov rdx, r12
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + r15], 0
mov r8d, reloc.WLDAP32.dll_Ordinal_50
lea rdx, str.FPTW64.exe__bios__d__C:GarfBIOS.bin___NUL_2_NUL
lea rcx, [rbp - 0x49]
call fcn.140003cd0
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1f], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x140022f7b
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022f76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022f76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140089574
movdqa xmm0, xmmword [0x1400a07e0]
movdqu xmmword [rbp - 0x39], xmm0
mov byte [rbp - 0x49], 0
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call fcn.140088b74
lea rcx, str.C:GarfBIOS.bin
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x21], reloc.WS2_32.dll_recv
lea r8, [rbp - 0x29]
mov edx, eax
lea rcx, [rbp - 0x19]
call fcn.140002620
nop
lea rcx, [rbp - 0x19]
call fcn.1400030f0
movzx edi, al
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x140023017
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140023012
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140023012
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140089574
test dil, dil
jne 0x1400230e9
mov byte [0x1400af472], 1
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x140023062
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002305d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140023127
call fcn.140089574
movdqa xmm0, xmmword [0x1400a07e0]
movdqu xmmword [rbp + 0x1f], xmm0
mov byte [rbp + 0xf], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x1400230ad
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1400230a8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14002312e
mov rcx, r8
call fcn.140089574
mov byte [rbx], 0
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], r13
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140089510
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x140023062
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002305d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002305d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140001f10
int3
call fcn.140001e70
int3