Function at 0x140001b10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002940
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002940
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001cb0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001bcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001bb0
mov rcx, rbx
call fcn.1400025d0
mov rdi, rax
test rax, rax
je 0x140001cd2
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002710
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c60
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001b10
nop dword [rax]
xor esi, esi
jmp 0x140001bd8
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001b10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001b10
nop
nop word cs:[rax + rax]
nop dword [rax]
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov r12d, dword [0x140007090]
test r12d, r12d
je 0x140001d28
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov dword [0x140007090], 1
call fcn.140002650
cdqe
lea rax, [rax + rax*4]
lea rax, [rax*8 + 0xf]
and rax, 0xfffffffffffffff0
call fcn.1400028b0
mov r13, qword [0x140004410]
mov rbx, qword [0x140004420]
mov dword [0x140007094], 0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [0x140007098], rax
mov rax, r13
sub rax, rbx
cmp rax, 7
jle 0x140001d11
mov edx, dword [rbx]
cmp rax, 0xb
jg 0x140001f08
mov eax, dword [rbx]
test eax, eax
jne 0x140002000
mov eax, dword [rbx + 4]
test eax, eax
jne 0x140002000
mov edx, dword [rbx + 8]
cmp edx, 1
jne 0x14000203e
add rbx, 0xc
cmp rbx, r13
jae 0x140001d11
mov r14, qword [0x140004400]
movabs r15, 0xffffffff7fffffff
jmp 0x140001e22
movzx esi, byte [rdi]
and ecx, 0xc0
test sil, sil
jns 0x140001fe8
or rsi, 0xffffffffffffff00
sub rsi, rax
add rsi, r9
test ecx, ecx
jne 0x140001e0a
cmp rsi, 0xff
jg 0x140001f4f
cmp rsi, 0xffffffffffffff80
jl 0x140001f4f
mov rcx, rdi
call 0x140001b80
mov byte [rdi], sil
add rbx, 0xc
cmp rbx, r13
jae 0x140001eb0
mov eax, dword [rbx]
mov ecx, dword [rbx + 8]
mov edi, dword [rbx + 4]
add rax, r14
movzx edx, cl
mov r9, qword [rax]
add rdi, r14
cmp edx, 0x20
je 0x140001f68
ja 0x140001f30
cmp edx, 8
je 0x140001dd0
cmp edx, 0x10
jne 0x140002032
movzx esi, word [rdi]
and ecx, 0xc0
test si, si
jns 0x140001fd0
or rsi, 0xffffffffffff0000
sub rsi, rax
add rsi, r9
test ecx, ecx
jne 0x140001e90
cmp rsi, 0xffffffffffff8000
jl 0x140001f4f
cmp rsi, 0xffff
jg 0x140001f4f
mov rcx, rdi
add rbx, 0xc
call 0x140001b80
mov word [rdi], si
cmp rbx, r13
jb 0x140001e22
nop dword [rax + rax]
mov edx, dword [0x140007094]
test edx, edx
jle 0x140001d11
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ebx, ebx
lea rdi, [rbp - 4]
nop dword [rax + rax]
mov rax, qword [0x140007098]
add rax, rbx
mov r8d, dword [rax]
test r8d, r8d
je 0x140001eef
mov rdx, qword [rax + 0x10]
mov rcx, qword [rax + 8]
mov r9, rdi
call rsi
add r12d, 1
add rbx, 0x28
cmp r12d, dword [0x140007094]
jl 0x140001ed0
jmp 0x140001d11
test edx, edx
jne 0x140002000
mov eax, dword [rbx + 4]
mov edx, eax
or edx, dword [rbx + 8]
jne 0x140001d9a
add rbx, 0xc
jmp 0x140001d8d
cmp edx, 0x40
jne 0x140002032
mov rsi, qword [rdi]
sub rsi, rax
add rsi, r9
and ecx, 0xc0
jne 0x140001fb0
test rsi, rsi
js 0x140001fb0
mov qword [rsp + 0x20], rsi
mov r8, rdi
lea rcx, str._d_bit_pseudo_relocation_at__p_out_of_range__targeting__p__yielding_the_value__p._n
call fcn.140001b10
nop dword [rax + rax]
mov esi, dword [rdi]
and ecx, 0xc0
test esi, esi
jns 0x140001fc0
movabs r11, 0xffffffff00000000
or rsi, r11
sub rsi, rax
add rsi, r9
test ecx, ecx
jne 0x140001f9a
cmp rsi, r15
jle 0x140001f4f
mov eax, 0xffffffff
cmp rsi, rax
jg 0x140001f4f
mov rcx, rdi
call 0x140001b80
mov dword [rdi], esi
jmp 0x140001e15
mov rcx, rdi
call 0x140001b80
mov qword [rdi], rsi
jmp 0x140001e15
sub rsi, rax
add rsi, r9
test ecx, ecx
je 0x140001f8b
jmp 0x140001f9a
sub rsi, rax
add rsi, r9
test ecx, ecx
je 0x140001e76
jmp 0x140001e90
sub rsi, rax
add rsi, r9
test ecx, ecx
je 0x140001df3
jmp 0x140001e0a
cmp rbx, r13
jae 0x140001d11
mov r14, qword [0x140004400]
mov esi, dword [rbx + 4]
mov edi, dword [rbx]
add rbx, 8
add rsi, r14
add edi, dword [rsi]
mov rcx, rsi
call 0x140001b80
mov dword [rsi], edi
cmp rbx, r13
jb 0x140002010
jmp 0x140001eb0
lea rcx, str.__Unknown_pseudo_relocation_bit_size__d._n
call fcn.140001b10
lea rcx, str.__Unknown_pseudo_relocation_protocol_version__d._n
call fcn.140001b10
nop
nop
nop
nop
nop
nop
sub rsp, 0x58
mov rax, qword [0x1400070a0]
unpcklpd xmm2, xmm3
test rax, rax
je 0x140002089
movsd xmm0, qword [rsp + 0x80]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rdx
movups xmmword [rsp + 0x30], xmm2
movsd qword [rsp + 0x40], xmm0
call rax
nop
add rsp, 0x58
ret