Function at 0x1400200d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x1400cf070]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rcx
add rcx, 0x20
cmp qword [rcx + 0x18], 0x10
jb 0x14002010d
mov rcx, qword [rcx]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400204a1
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov dword [rbp - 9], r15d
mov qword [rbp - 1], r15
mov eax, dword [rbp - 0x39]
and eax, 0xffffff04
or eax, 0x104
mov dword [rbp - 0x39], eax
mov qword [rbp - 0x31], r15
mov r12d, 4
mov rax, qword gs:[0x58]
mov r14, qword [rax]
mov eax, dword [r12 + r14]
cmp dword [0x1400d4420], eax
jle 0x1400201b9
lea rcx, [0x1400d4420]
call fcn.1400737b8
cmp dword [0x1400d4420], 0xffffffff
jne 0x1400201b9
lea rcx, [0x140077210]
call fcn.140073b3c
lea rcx, [0x1400d4420]
call fcn.140073758
lea rdx, [rdi + 0x40]
cmp qword [rdi + 0x58], 0x10
jb 0x1400201c8
mov rdx, qword [rdi + 0x40]
mov rcx, qword [0x1400cf0d0]
mov rax, qword [rcx]
mov r8d, dword [rdi + 0x50]
call qword [rax + Ordinal_26]
mov qword [rbp - 0x41], rax
lea rdx, str.osStartTime
lea rcx, [rbp - 0x11]
call fcn.1400181e0
mov rbx, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x59]
call fcn.1400174e0
movsx r8d, byte [rbx + 8]
movzx ecx, byte [rbp - 0x51]
mov byte [rbx + 8], cl
mov ecx, dword [rbp - 0x51]
xor ecx, r8d
movzx r8d, cl
xor r8d, dword [rbp - 0x51]
mov rax, qword [rbx]
mov rcx, qword [rbp - 0x59]
mov qword [rbx], rcx
mov qword [rbp - 0x59], rax
mov ecx, dword [rbx + 8]
mov edx, ecx
shl edx, 0x17
sar edx, 0x1f
mov eax, ecx
xor eax, r8d
and eax, 0x100
xor eax, ecx
mov dword [rbx + 8], eax
shl edx, 8
xor edx, r8d
and edx, 0x100
xor edx, r8d
mov dword [rbp - 0x51], edx
lea rcx, [rbp - 0x59]
call fcn.140017720
nop
lea rcx, [rbp - 0x41]
call fcn.140017720
mov eax, dword [rbp - 0x39]
and eax, 0xffffff04
or eax, 0x104
mov dword [rbp - 0x39], eax
mov qword [rbp - 0x31], r15
mov eax, dword [r12 + r14]
cmp dword [0x1400d4420], eax
jle 0x1400202be
lea rcx, [0x1400d4420]
call fcn.1400737b8
cmp dword [0x1400d4420], 0xffffffff
jne 0x1400202be
lea rcx, [0x140077210]
call fcn.140073b3c
lea rcx, [0x1400d4420]
call fcn.140073758
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400202cb
mov rdx, qword [rdi]
mov rcx, qword [0x1400cf0d0]
mov rax, qword [rcx]
mov r8d, dword [rdi + 0x10]
call qword [rax + Ordinal_26]
mov qword [rbp - 0x41], rax
lea rdx, str.flag
lea rcx, [rbp - 0x11]
call fcn.1400181e0
mov rbx, rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x59]
call fcn.1400174e0
movsx r8d, byte [rbx + 8]
movzx ecx, byte [rbp - 0x51]
mov byte [rbx + 8], cl
mov ecx, dword [rbp - 0x51]
xor ecx, r8d
movzx r8d, cl
xor r8d, dword [rbp - 0x51]
mov rax, qword [rbx]
mov rcx, qword [rbp - 0x59]
mov qword [rbx], rcx
mov qword [rbp - 0x59], rax
mov ecx, dword [rbx + 8]
mov edx, ecx
shl edx, 0x17
sar edx, 0x1f
mov eax, ecx
xor eax, r8d
and eax, 0x100
xor eax, ecx
mov dword [rbx + 8], eax
shl edx, 8
xor edx, r8d
and edx, 0x100
xor edx, r8d
mov dword [rbp - 0x51], edx
lea rcx, [rbp - 0x59]
call fcn.140017720
nop
lea rcx, [rbp - 0x41]
call fcn.140017720
lea rbx, vtable.Json::FastWriter.0
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x21], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x39], 0
mov byte [rbp - 0x19], 0
xor r8d, r8d
lea rdx, [0x1400c0271]
lea rcx, [rbp - 0x39]
call fcn.140003160
lea rdx, [rbp - 0x11]
lea rcx, [rbp - 0x41]
call fcn.140019af0
mov r8d, 1
lea rdx, reloc.WS2_32.dll_ioctlsocket
lea rcx, [rbp - 0x39]
call fcn.14000ac70
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.1400024e0
nop
mov qword [rbp - 0x41], rbx
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x14002041d
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020418
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140020418
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073b54
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rdx, qword [rbp + 7]
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x27]
mov r8d, dword [rbp + 0x17]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x140020488
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020483
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140020483
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140073b54
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], reloc.WS2_32.dll_ntohs
mov byte [rbp + 7], 0
lea rcx, [rbp - 0x11]
call fcn.140017720
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140073640
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret