Function at 0x140004d78
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x14002a428]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor r15d, r15d
mov rbx, rdx
cmp byte [0x14002ae9c], r15b
mov rdi, rcx
jne 0x140004fdd
xorps xmm0, xmm0
lea rcx, [rsp + 0x70]
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [rsp + 0x7e]
movzx edx, word [rsp + 0x7c]
movzx r9d, word [rsp + 0x7a]
movzx r8d, word [rsp + 0x78]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x20], edx
lea rdx, str._i:_02i:_02i._03i_u
call fcn.14000206c
test rbx, rbx
je 0x140004e10
cmp word [rbx], r15w
jne 0x140004e17
lea rbx, str._NULL__n
mov qword [rsp + 0x40], r15
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x38], r15
xor r9d, r9d
mov qword [rsp + 0x30], r15
mov r8, rbx
mov qword [rsp + 0x28], r15
mov rdx, rdi
mov qword [rsp + 0x20], r15
call fcn.14000717c
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
call fcn.140005c7c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test eax, eax
jle 0x140004fd3
mov rax, qword [0x14002aea8]
test rax, rax
jne 0x140004ee5
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [0x14002aea8], rax
test rax, rax
jne 0x140004ebb
or qword [0x14002aea8], 0xffffffffffffffff
cmp byte [0x14002aeb0], r15b
lfence
jne 0x140004eff
mov rcx, qword [0x14002aea8]
mov rdx, qword [rsp + 0x50]
mov r8d, edi
call fcn.140005004
jmp 0x140004fd3
xor ecx, ecx
lea rdx, [rbp - 0x80]
mov dword [rbp - 0x70], ecx
xorps xmm0, xmm0
mov word [rbp - 0x6c], cx
mov rcx, rax
movups xmmword [rbp - 0x80], xmm0
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140004e96
mov byte [0x14002aeb0], 1
jmp 0x140004e96
cmp rax, 0xffffffffffffffff
jne 0x140004e96
cmp byte [0x14002ae9d], r15b
je 0x140004fd3
lfence
xor ecx, ecx
jmp 0x140004ea9
cmp byte [0x14002ae9d], r15b
je 0x140004f1a
lfence
mov rdx, qword [rsp + 0x50]
mov r8d, edi
xor ecx, ecx
call fcn.140005004
call qword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov r8, qword [rsp + 0x50]
mov r9d, edi
mov qword [rsp + 0x38], r15
mov ecx, eax
mov qword [rsp + 0x30], r15
xor edx, edx
mov dword [rsp + 0x28], r15d
mov r14d, eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
cmp eax, 0xc8
jb 0x140004f67
lfence
lea ecx, [rsi + 1]
call fcn.140005c2c
mov rbx, rax
test rax, rax
je 0x140004fd3
jmp 0x140004f6b
lea rbx, [rbp + 0x40]
lfence
mov qword [rsp + 0x38], r15
lea eax, [rsi + 1]
mov qword [rsp + 0x30], r15
mov r9d, edi
mov byte [rsi + rbx], r15b
xor edx, edx
mov r8, qword [rsp + 0x50]
mov ecx, r14d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x140004fbf
lfence
mov rcx, qword [0x14002aea8]
lea r9, [rsp + 0x60]
mov r8d, esi
mov qword [rsp + 0x20], r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rax, [rbp + 0x40]
cmp rbx, rax
je 0x140004fd3
lfence
mov rcx, rbx
call fcn.140005bb8
lea rcx, [rsp + 0x50]
call fcn.140005cac
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1400074d0
mov rbx, qword [rsp + 0x260]
add rsp, 0x220
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret