Function at 0x14006a260
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x1401f2308]
xor rax, rsp
mov qword [rbp + 8], rax
mov rbx, rdx
mov eax, dword [rdx + 0x10]
dec eax
lea r14, [0x1401fb7e8]
mov rsi, 0xffffffffffffffff
xor r15d, r15d
cmp eax, 1
ja 0x14006a3b0
lea rcx, [rdx + 0x18]
xor r8d, r8d
lea rdx, [rsp + 0x58]
call fcn.140042cf0
nop
mov rdx, qword [rax]
test rdx, rdx
je 0x14006a2d4
add rdx, 8
jmp 0x14006a2d7
mov rdx, r14
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
mov r8, rsi
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14006a2f0
lea rcx, [rbp - 0x50]
call fcn.14002b930
nop
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x14006a340
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rsp + 0x58]
mov dword [rax], ecx
jne 0x14006a340
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax + 4]
add rcx, rcx
lea rdi, [rax + 8]
xor eax, eax
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x58], r15
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rdx, qword [rbp - 0x50]
lea rcx, [0x1401aac58]
call fcn.14006eb60
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14006a39e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006a399
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006a399
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140027f70
movdqa xmm0, xmmword [0x1401b4e20]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
cmp dword [rbx + 0x10], 2
jne 0x14006a9fa
mov rcx, qword [0x1401fb800]
mov rax, qword [rcx]
mov edx, 7
mov rax, qword [rax]
call qword [case.0x1400309a4.0]
test rax, rax
je 0x14006a9fa
mov rcx, qword [0x1401fb800]
mov rax, qword [rcx]
mov edx, 7
mov rax, qword [rax]
call qword [case.0x1400309a4.0]
mov rcx, rax
mov dword [rsp + 0x20], r15d
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
call sub.VCRUNTIME140.dll___RTDynamicCast
mov rdx, rax
test rax, rax
je 0x14006a9fa
mov rcx, qword [rax]
mov rax, qword [rcx + 0x10]
mov rcx, rdx
call qword [case.0x1400309a4.0]
test rax, rax
je 0x14006a9fa
cmp dword [rax + 0x20], 0
je 0x14006a9fa
mov edx, reloc.WS2_32.dll_recv
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1401fdd28], eax
jg 0x14006aa3f
mov rax, qword [0x1401fdd30]
mov r13d, 1
cmp dword [rax - 0x10], 0
jne 0x14006a54a
call fcn.140007380
mov rcx, rax
test rax, rax
je 0x14006aaa6
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400309a4.0]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x80], rdi
mov ecx, r13d
sub ecx, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x14006a4c0
mov edx, 0x104
lea rcx, [rbp - 0x80]
call fcn.140027ca0
mov rdi, qword [rbp - 0x80]
cmp dword [rdi - 0xc], 0x104
jl 0x14006aab1
mov dword [rdi - 0x10], 0x104
mov word [rdi + 0x208], r15w
mov edx, 0x104
mov rcx, rdi
call fcn.1400256c0
test al, al
je 0x14006a527
mov rcx, rdi
call fcn.14005a8a0
test al, al
jne 0x14006a505
mov rcx, rdi
call fcn.14005a9c0
test al, al
je 0x14006a527
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov r9d, eax
mov r8, rdi
lea rdx, str._sESET__08X.tis.log
lea rcx, [0x1401fdd30]
call fcn.14005eaa0
nop
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006a54a
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400309a4.0]
xor edx, edx
lea r9d, [rdx + 4]
lea r8d, [rdx + 2]
mov rcx, qword [0x1401fdd30]
call fcn.14001ebc0
mov qword [rbp - 0x68], rax
test rax, rax
je 0x14006a9fa
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
call fcn.140007380
mov rcx, rax
test rax, rax
je 0x14006aabc
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400309a4.0]
add rax, 0x18
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rbp - 0x54]
movzx edx, word [rbp - 0x56]
movzx edi, word [rbp - 0x58]
movzx r10d, word [rbp - 0x5a]
movzx r9d, word [rbp - 0x5e]
movzx r8d, word [rbp - 0x60]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r10d
lea rdx, str._d__d__d__d:_d:_d_PID:_u__
lea rcx, [rsp + 0x50]
call fcn.14006eb30
lea rcx, [rbx + 0x18]
xor r8d, r8d
lea rdx, [rsp + 0x60]
call fcn.140042cf0
nop
mov rcx, qword [rax]
test rcx, rcx
je 0x14006a60a
lea r14, [rcx + 8]
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.1400605d0
nop
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14006a653
mov ecx, dword [rax]
sub ecx, 1
mov rax, qword [rsp + 0x60]
mov dword [rax], ecx
jne 0x14006a653
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 4]
add rcx, rcx
lea rdi, [rax + 8]
xor eax, eax
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x60], r15
call fcn.140007380
mov rcx, rax
test rax, rax
je 0x14006aa29
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400309a4.0]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r9d, esi
mov r8, qword [rsp + 0x78]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd r14, eax
test eax, eax
js 0x14006aa34
mov edx, r13d
sub edx, dword [rdi - 8]
mov ecx, dword [rdi - 0xc]
sub ecx, r14d
or ecx, edx
jge 0x14006a6d3
lfence
mov edx, r14d
lea rcx, [rsp + 0x68]
call fcn.14006e900
mov rdi, qword [rsp + 0x68]
cmp r14d, dword [rdi - 0xc]
jg 0x14006aa34
lfence
mov rbx, qword [rsp + 0x68]
mov dword [rbx - 0x10], r14d
mov byte [r14 + rbx], 0
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
mov r9d, esi
mov r8, qword [rsp + 0x78]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
test eax, eax
js 0x14006aa34
cmp eax, dword [rbx - 0xc]
jg 0x14006aa34
mov dword [rbx - 0x10], eax
cdqe
mov byte [rax + rbx], 0
movsxd rax, dword [rbx - 0x10]
mov r15, rbx
mov r12, rbx
mov rdi, qword [rsp + 0x50]
sub r12, rdi
mov r14d, dword [rdi - 0x10]
mov dword [rsp + 0x70], r14d
test eax, eax
js 0x14006aa34
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov rdx, rax
mov qword [rbp - 0x70], rax
mov ecx, 0x7fffffff
sub ecx, eax
cmp ecx, r14d
jl 0x14006aa34
add r14d, eax
js 0x14006aa34
sub r13d, dword [rdi - 8]
mov eax, dword [rdi - 0xc]
sub eax, r14d
or eax, r13d
jge 0x14006a7ba
lfence
mov edx, r14d
lea rcx, [rsp + 0x50]
call fcn.14006e900
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
mov rdx, qword [rbp - 0x70]
mov eax, dword [rsp + 0x70]
cmp r12, rax
ja 0x14006a7c7
lea r15, [r12 + rdi]
movsxd r8, edx
lea rcx, [rax + rdi]
test edx, edx
je 0x14006a80c
test rcx, rcx
je 0x14006a7fa
test r15, r15
je 0x14006a7f3
lfence
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
jmp 0x14006a80c
xor edx, edx
call main
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], socket
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
cmp r14d, dword [rdi - 0xc]
jg 0x14006aa34
mov dword [rdi - 0x10], r14d
movsxd rax, r14d
mov byte [rax + rdi], 0
xor r12d, r12d
mov qword [rsp + 0x70], r12
lea r9d, [r12 + 2]
lea r8, [rsp + 0x74]
xor edx, edx
mov r14, qword [rbp - 0x68]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x70], eax
cmp eax, 0xffffffff
jne 0x14006a851
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r15d, dword [rdi - 0x10]
cmp dword [rdi - 8], 1
jle 0x14006a86d
mov edx, r15d
lea rcx, [rsp + 0x50]
call fcn.14006e7b0
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x78]
mov r8d, r15d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, r14
call qword [0x1401f2070]
call fcn.1400543e0
mov r10, rax
test rax, rax
je 0x14006a987
mov rcx, qword [rax]
mov rax, qword [rcx + 0x60]
xor r9d, r9d
lea r8d, [r9 + 0xb]
lea rdx, str.main.tislog
mov rcx, r10
call qword [case.0x1400309a4.0]
mov r15, rax
test rax, rax
je 0x14006a987
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 8]
call qword [sym.imp.sciter_x.dll_ValueInit]
nop
cmp dword [rdi - 8], 1
jle 0x14006a8f9
mov edx, dword [rdi - 0x10]
lea rcx, [rsp + 0x50]
call fcn.14006e7b0
mov rdi, qword [rsp + 0x50]
movsxd r14, dword [rdi - 0x10]
add r14, rdi
cmp dword [rdi - 8], 1
jle 0x14006a918
mov edx, dword [rdi - 0x10]
lea rcx, [rsp + 0x50]
call fcn.14006e7b0
mov rdi, qword [rsp + 0x50]
lea rcx, [rbp - 0x30]
call qword [sym.imp.sciter_x.dll_ValueInit]
sub r14, rdi
cmovs r14d, r12d
mov dword [rsp + 0x20], r12d
mov r9d, reloc.WS2_32.dll_inet_ntoa
mov r8d, r14d
mov rdx, rdi
lea rcx, [rbp - 0x30]
call qword [sym.imp.sciter_x.dll_ValueBinaryDataSet]
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 8]
call qword [sym.imp.sciter_x.dll_ValueCopy]
nop
lea rcx, [rbp - 0x30]
call qword [sym.imp.sciter_x.dll_ValueClear]
mov rax, qword [r15]
lea r9, [rbp - 0x20]
xor r8d, r8d
lea rdx, str.dump
mov rcx, r15
mov rax, qword [rax]
call qword [case.0x1400309a4.0]
nop
lea rcx, [rbp - 8]
call qword [sym.imp.sciter_x.dll_ValueClear]
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006a9ab
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400309a4.0]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14006a9d4
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400309a4.0]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14006a9fa
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400309a4.0]
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.140160900
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
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 ecx, 0x80004005
call fcn.140007240
nop
mov ecx, 0x80070057
call fcn.140007240
nop
lea rcx, [0x1401fdd28]
call fcn.140160aa8
cmp dword [0x1401fdd28], 0xffffffff
jne 0x14006a45f
call fcn.140007380
mov rcx, rax
test rax, rax
jne 0x14006aa70
mov ecx, 0x80004005
call fcn.140007240
int3
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x1400309a4.0]
add rax, 0x18
mov qword [0x1401fdd30], rax
lea rcx, [0x14017b090]
call fcn.140160df0
nop
lea rcx, [0x1401fdd28]
call fcn.140160a48
jmp 0x14006a45f
mov ecx, 0x80004005
call fcn.140007240
nop
mov ecx, 0x80070057
call fcn.140007240
nop
mov ecx, 0x80004005
call fcn.140007240
int3