Function at 0x1400283a0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
cmp byte [0x14029c040], 0
jne 0x14002890b
mov rbx, r9
mov rdi, r8
mov r14, rdx
movsxd rsi, ecx
mov rax, qword [0x1402da510]
mov rcx, qword [rax + rsi*8]
mov qword [rsp + 0x98], rcx
call fcn.1400741a0
cmp qword [r14], 0
je 0x14002848f
mov rbp, rdi
lea rdi, [rsi + rsi*2]
shl rdi, 3
add rdi, qword [0x1402da480]
mov ecx, 0x20
call fcn.1400731c0
mov r15, rax
mov qword [rax + 0x10], 0
mov r12, qword [r14]
test r12, r12
je 0x140028477
mov rcx, r12
call sub.msvcrt.dll_wcslen
shl rax, 0x20
movabs r13, 0x100000000
add r13, rax
sar r13, 0x1f
nop word cs:[rax + rax]
mov rcx, r13
call sub.msvcrt.dll_malloc
test rax, rax
je 0x140028450
mov qword [r15 + 0x10], rax
mov rcx, rax
mov rdx, r12
mov r8, r13
call sub.msvcrt.dll_memcpy
mov rax, qword [r14 + 8]
mov qword [r15 + 0x18], rax
mov qword [r15 + 8], rdi
mov rax, qword [rdi]
mov qword [r15], rax
mov qword [rax + 8], r15
mov qword [rdi], r15
inc qword [rdi + 0x10]
mov rdi, rbp
mov rax, qword [0x1402da480]
lea rsi, [rsi + rsi*2]
mov rcx, qword [rax + rsi*8 + 0x10]
xor edx, edx
cmp rcx, rbx
seta dl
xor r8d, r8d
test rcx, rcx
setne r8b
cmp byte [rsp + 0x160], 0
cmovne edx, r8d
cmp dl, 1
jne 0x1400288fe
mov qword [rsp + 0xb8], rdi
mov byte [rsp + 0x80], 0
mov word [rsp + 0x82], 0
lea rcx, [rax + rsi*8]
mov rdi, qword [rax + rsi*8 + 8]
cmp rdi, rcx
je 0x140028660
movabs r13, 0x7ffffffffffffff0
lea r14, [0x140259608]
lea r15, [rsp + 0x60]
xorps xmm6, xmm6
mov qword [rsp + 0xc0], rsi
jmp 0x14002853c
mov rdi, qword [rdi + 8]
lea rax, [rsi*8]
add rax, qword [0x1402da480]
cmp rdi, rax
je 0x140028660
mov r12, qword [rdi + 0x10]
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp rax, r13
jae 0x140028927
mov rbx, rax
cmp rax, 0xa
ja 0x140028570
lea eax, [rbx + rbx]
mov byte [rsp + 0x60], al
lea rbp, [rsp + 0x62]
jmp 0x1400285bb
mov rsi, r15
mov r15, r14
mov r14, r13
mov r13, rbx
or r13, 7
inc r13
js 0x140028931
mov rcx, r13
add rcx, r13
call fcn.1400731c0
mov rbp, rax
mov qword [rsp + 0x70], rax
or r13, 1
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], rbx
mov r13, r14
mov r14, r15
mov r15, rsi
mov rsi, qword [rsp + 0xc0]
mov r8, rbx
add r8, rbx
mov rcx, rbp
mov rdx, r12
call sub.msvcrt.dll_memmove
mov word [rbp + rbx*2], 0
mov rcx, r15
mov rdx, r14
call fcn.140076360
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x50], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
movzx r8d, byte [rsp + 0x40]
test r8b, 1
je 0x140028620
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
jmp 0x140028628
shr r8, 1
lea rdx, [rsp + 0x42]
lea rcx, [rsp + 0x80]
call fcn.140075c20
test byte [rsp + 0x40], 1
je 0x140028646
mov rcx, qword [rsp + 0x50]
call fcn.140073240
test byte [rsp + 0x60], 1
je 0x140028520
mov rcx, qword [rsp + 0x70]
call fcn.140073240
jmp 0x140028520
mov r15, qword [rsp + 0xb8]
lea rbx, [r15 + 2]
test byte [r15], 1
mov rcx, rbx
je 0x140028679
mov rcx, qword [r15 + 0x10]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 0x10000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov r14, rax
inc rax
cmp rax, 1
ja 0x140028736
lea rdx, str.Invaild_Handle_in_log_saving
lea rcx, [rsp + 0xc8]
mov r8, r15
call fcn.140013830
lea rdx, [0x1402595f8]
lea rcx, [rsp + 0xc8]
call fcn.140076360
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x70], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x60], xmm0
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, [rsp + 0xa0]
mov edx, eax
call fcn.140076dc0
movzx r8d, byte [rsp + 0xa0]
test r8b, 1
je 0x140028776
mov rdx, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
jmp 0x140028781
lea r8, [0x1402dab08]
mov rcx, r14
xor edx, edx
mov r9d, 2
call qword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
movzx r8d, byte [rsp + 0x80]
test r8b, 1
je 0x14002883d
mov rdx, qword [rsp + 0x90]
mov r8d, dword [rsp + 0x88]
jmp 0x140028848
shr r8, 1
lea rdx, [rsp + 0xa2]
lea rcx, [rsp + 0x60]
call fcn.140075c20
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x50], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm0
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
test byte [rsp + 0x40], 1
je 0x1400287b8
mov rcx, qword [rsp + 0x50]
jmp 0x1400287bd
lea rcx, [rsp + 0x42]
mov dl, 1
call fcn.140011c60
test byte [rsp + 0x40], 1
jne 0x1400287eb
test byte [rsp + 0xa0], 1
jne 0x1400287ff
test byte [rsp + 0x60], 1
jne 0x140028813
test byte [rsp + 0xc8], 1
jne 0x14002882b
jmp 0x1400288e7
mov rcx, qword [rsp + 0x50]
call fcn.140073240
test byte [rsp + 0xa0], 1
je 0x1400287d5
mov rcx, qword [rsp + 0xb0]
call fcn.140073240
test byte [rsp + 0x60], 1
je 0x1400287dc
mov rcx, qword [rsp + 0x70]
call fcn.140073240
test byte [rsp + 0xc8], 1
je 0x1400288e7
mov rcx, qword [rsp + 0xd8]
call fcn.140073240
jmp 0x1400288e7
lea rdx, [rsp + 0x82]
shr r8d, 1
add r8d, r8d
mov qword [rsp + 0x20], 0
lea r9, [0x1402dab10]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_WriteFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rax, qword [0x1402da480]
cmp qword [rax + rsi*8 + 0x10], 0
je 0x1400288d5
lea rsi, [rax + rsi*8]
mov rax, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, qword [rax + 8]
mov rdx, qword [r14]
mov qword [rdx + 8], rcx
mov rax, qword [rax + 8]
mov qword [rax], rdx
mov qword [rsi + 0x10], 0
cmp r14, rsi
je 0x1400288d5
nop
mov rdi, qword [r14 + 8]
mov rcx, qword [r14 + 0x10]
call fcn.140257dd0
mov qword [r14 + 0x10], 0
mov rcx, r14
call fcn.140073240
mov r14, rdi
cmp rdi, rsi
jne 0x1400288b0
test byte [r15], 1
je 0x1400288df
mov rbx, qword [r15 + 0x10]
mov rcx, rbx
call fcn.14004e0c0
test byte [rsp + 0x80], 1
je 0x1400288fe
mov rcx, qword [rsp + 0x90]
call fcn.140073240
mov rcx, qword [rsp + 0x98]
call fcn.1400741d0
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [rsp + 0x60]
call fcn.140002b00
call fcn.140002ba0
mov rdi, rax
test byte [rsp + 0x40], 1
jne 0x140028960
test byte [rsp + 0xa0], 1
jne 0x140028983
test byte [rsp + 0x60], 1
jne 0x1400289b9
test byte [rsp + 0xc8], 1
jne 0x1400289cd
jmp 0x140028a0f
mov rcx, qword [rsp + 0x50]
call fcn.140073240
test byte [rsp + 0xa0], 1
je 0x14002894a
jmp 0x140028983
mov rcx, qword [rsp + 0xb0]
call fcn.140073240
test byte [rsp + 0x60], 1
je 0x140028951
jmp 0x1400289b9
mov rcx, qword [rsp + 0x70]
call fcn.140073240
test byte [rsp + 0xc8], 1
je 0x140028a0f
mov rcx, qword [rsp + 0xd8]
call fcn.140073240
jmp 0x140028a0f
test byte [rsp + 0x80], 1
je 0x140028a26
mov rcx, qword [rsp + 0x90]
call fcn.140073240
mov rcx, qword [rsp + 0x98]
call fcn.1400741d0
mov rcx, rdi
call fcn.14009d370
int3