Function at 0x14004896c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x118
mov qword [rsp + 0xf8], 0xfffffffffffffffe
mov dword [rsp + 0x50], 0
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
cmp qword [rax + 0x18], 0x10
jb 0x1400489dc
mov rax, qword [rsp + 0x100]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x78]
mov rax, qword [rax]
mov qword [rsp + 0x80], rax
jmp 0x1400489e9
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
je 0x140048cd4
mov rax, qword [rsp + 0x120]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0xc8]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.1400eef44
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140045dc4
nop
call fcn.1400eef44
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.140045dc4
nop
mov rax, qword [rsp + 0x120]
cmp qword [rax + 0x28], 0
jne 0x140048acd
mov qword [rsp + 0x98], 0
jmp 0x140048ad9
mov qword [rsp + 0x98], 0xffffffffffffffff
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0
je 0x140048c81
mov rax, qword [rsp + 0x120]
add rax, 0x10
lea r9, [rsp + 0xa8]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0xa0]
mov rcx, rax
call fcn.1400ef7ac
mov rax, qword [rsp + 0x58]
mov eax, dword [rax - 0x10]
mov dword [rsp + 0x64], eax
lea rcx, [rsp + 0x58]
call fcn.140027cd0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x64]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0xa8]
lea r8, str._Y_m_d_H_M
lea rdx, [rsp + 0x90]
mov rcx, rax
call fcn.140049a6c
nop
mov rax, qword [rsp + 0x90]
mov eax, dword [rax - 0x10]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x90]
call fcn.140027cd0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x68]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rsp + 0xa8]
movzx eax, byte [rax + 8]
test eax, eax
je 0x140048bd6
lea rax, [0x140364444]
mov qword [rsp + 0xb0], rax
jmp 0x140048be5
lea rax, [0x1403645c4]
mov qword [rsp + 0xb0], rax
mov rdx, qword [rsp + 0xb0]
lea rcx, [rsp + 0x88]
call fcn.140045774
nop
mov rax, qword [rsp + 0x88]
mov eax, dword [rax - 0x10]
mov dword [rsp + 0x6c], eax
lea rcx, [rsp + 0x88]
call fcn.140027cd0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x6c]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rax, qword [rsp + 0x88]
sub rax, 0x18
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call fcn.140045ed4
nop
mov rax, qword [rsp + 0x90]
sub rax, 0x18
mov qword [rsp + 0xd8], rax
mov rcx, qword [rsp + 0xd8]
call fcn.140045ed4
jmp 0x140048ae9
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0xe0]
sub rax, 0x18
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call fcn.140045ed4
nop
mov rax, qword [rsp + 0x58]
sub rax, 0x18
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsp + 0xf0]
call fcn.140045ed4
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x70], eax
xor r8d, r8d
mov dl, 1
mov rcx, qword [rsp + 0x128]
call fcn.14001196c
nop
mov eax, dword [rsp + 0x70]
add rsp, 0x118
ret