Function at 0x140029e00
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 [0x140227110], 0
jne 0x14002a36b
mov rbx, r9
mov rdi, r8
mov r14, rdx
movsxd rsi, ecx
mov rax, qword [0x140288498]
mov rcx, qword [rax + rsi*8]
mov qword [rsp + 0x98], rcx
call fcn.140070b30
cmp qword [r14], 0
je 0x140029eef
mov rbp, rdi
lea rdi, [rsi + rsi*2]
shl rdi, 3
add rdi, qword [0x140288408]
mov ecx, 0x20
call fcn.14006fb50
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
mov r12, qword [r14]
test r12, r12
je 0x140029ed7
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 0x140029eb0
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 [0x140288408]
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 0x14002a35e
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 0x14002a0c0
movabs r13, 0x7ffffffffffffff0
lea r14, [0x1401f5568]
lea r15, [rsp + 0x60]
xorps xmm6, xmm6
mov qword [rsp + 0xc0], rsi
jmp 0x140029f9c
mov rdi, qword [rdi + 8]
lea rax, [rsi*8]
add rax, qword [0x140288408]
cmp rdi, rax
je 0x14002a0c0
mov r12, qword [rdi + 0x10]
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp rax, r13
jae 0x14002a387
mov rbx, rax
cmp rax, 0xa
ja 0x140029fd0
lea eax, [rbx + rbx]
mov byte [rsp + 0x60], al
lea rbp, [rsp + 0x62]
jmp 0x14002a01b
mov rsi, r15
mov r15, r14
mov r14, r13
mov r13, rbx
or r13, 7
inc r13
js 0x14002a391
mov rcx, r13
add rcx, r13
call fcn.14006fb50
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.140072e90
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 0x14002a080
mov rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
jmp 0x14002a088
shr r8, 1
lea rdx, [rsp + 0x42]
lea rcx, [rsp + 0x80]
call fcn.140072750
test byte [rsp + 0x40], 1
je 0x14002a0a6
mov rcx, qword [rsp + 0x50]
call fcn.14006fbd0
test byte [rsp + 0x60], 1
je 0x140029f80
mov rcx, qword [rsp + 0x70]
call fcn.14006fbd0
jmp 0x140029f80
mov r15, qword [rsp + 0xb8]
lea rbx, [r15 + 2]
test byte [r15], 1
mov rcx, rbx
je 0x14002a0d9
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 0x14002a196
lea rdx, str.Invaild_Handle_in_log_saving
lea rcx, [rsp + 0xc8]
mov r8, r15
call fcn.140013d30
lea rdx, [0x1401f5558]
lea rcx, [rsp + 0xc8]
call fcn.140072e90
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.140073b60
movzx r8d, byte [rsp + 0xa0]
test r8b, 1
je 0x14002a1d6
mov rdx, qword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
jmp 0x14002a1e1
lea r8, [0x140288a98]
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 0x14002a29d
mov rdx, qword [rsp + 0x90]
mov r8d, dword [rsp + 0x88]
jmp 0x14002a2a8
shr r8, 1
lea rdx, [rsp + 0xa2]
lea rcx, [rsp + 0x60]
call fcn.140072750
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 0x14002a218
mov rcx, qword [rsp + 0x50]
jmp 0x14002a21d
lea rcx, [rsp + 0x42]
mov dl, 1
call fcn.140012160
test byte [rsp + 0x40], 1
jne 0x14002a24b
test byte [rsp + 0xa0], 1
jne 0x14002a25f
test byte [rsp + 0x60], 1
jne 0x14002a273
test byte [rsp + 0xc8], 1
jne 0x14002a28b
jmp 0x14002a347
mov rcx, qword [rsp + 0x50]
call fcn.14006fbd0
test byte [rsp + 0xa0], 1
je 0x14002a235
mov rcx, qword [rsp + 0xb0]
call fcn.14006fbd0
test byte [rsp + 0x60], 1
je 0x14002a23c
mov rcx, qword [rsp + 0x70]
call fcn.14006fbd0
test byte [rsp + 0xc8], 1
je 0x14002a347
mov rcx, qword [rsp + 0xd8]
call fcn.14006fbd0
jmp 0x14002a347
lea rdx, [rsp + 0x82]
shr r8d, 1
add r8d, r8d
mov qword [rsp + 0x20], 0
lea r9, [0x140288aa0]
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 [0x140288408]
cmp qword [rax + rsi*8 + 0x10], 0
je 0x14002a335
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 0x14002a335
nop
mov rdi, qword [r14 + 8]
mov rcx, qword [r14 + 0x10]
call fcn.1401f47c0
mov qword [r14 + 0x10], 0
mov rcx, r14
call fcn.14006fbd0
mov r14, rdi
cmp rdi, rsi
jne 0x14002a310
test byte [r15], 1
je 0x14002a33f
mov rbx, qword [r15 + 0x10]
mov rcx, rbx
call fcn.14004c5f0
test byte [rsp + 0x80], 1
je 0x14002a35e
mov rcx, qword [rsp + 0x90]
call fcn.14006fbd0
mov rcx, qword [rsp + 0x98]
call fcn.140070b60
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.140002ec0
call fcn.140002f60
mov rdi, rax
test byte [rsp + 0x40], 1
jne 0x14002a3c0
test byte [rsp + 0xa0], 1
jne 0x14002a3e3
test byte [rsp + 0x60], 1
jne 0x14002a419
test byte [rsp + 0xc8], 1
jne 0x14002a42d
jmp 0x14002a46f
mov rcx, qword [rsp + 0x50]
call fcn.14006fbd0
test byte [rsp + 0xa0], 1
je 0x14002a3aa
jmp 0x14002a3e3
mov rcx, qword [rsp + 0xb0]
call fcn.14006fbd0
test byte [rsp + 0x60], 1
je 0x14002a3b1
jmp 0x14002a419
mov rcx, qword [rsp + 0x70]
call fcn.14006fbd0
test byte [rsp + 0xc8], 1
je 0x14002a46f
mov rcx, qword [rsp + 0xd8]
call fcn.14006fbd0
jmp 0x14002a46f
test byte [rsp + 0x80], 1
je 0x14002a486
mov rcx, qword [rsp + 0x90]
call fcn.14006fbd0
mov rcx, qword [rsp + 0x98]
call fcn.140070b60
mov rcx, rdi
call fcn.14009a110
int3