Function at 0x1400b3140
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rsi
push rdi
sub rsp, 0x528
mov rax, qword [0x140209b48]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov eax, dword [0x14020b004]
mov rsi, r8
mov rdi, rdx
test eax, eax
mov dword [rsp + 0x58], ecx
je 0x1400b35b2
mov qword [r11 + 8], rbx
lea rcx, [0x14020afd8]
mov qword [r11 - 0x20], r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r12d, r12d
cmp qword [0x1401fca80], 0xffffffffffffffff
je 0x1400b32d2
lea rcx, [rsp + 0x90]
call fcn.1400012c0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x6a]
movzx edx, word [rsp + 0x68]
movzx r11d, word [rsp + 0x6e]
movzx eax, word [rsp + 0x6c]
movzx r10d, word [rsp + 0x66]
movzx r9d, word [rsp + 0x62]
movzx r8d, word [rsp + 0x60]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
lea rdx, str._04d__02d__02d__02d:_02d:_02d._03d:
lea rcx, [rsp + 0x90]
mov dword [rsp + 0x20], r10d
call fcn.140176700
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
mov rcx, qword [0x1401fca80]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x90]
mov r8, rsi
mov rdx, rdi
call fcn.140176660
movsxd r8, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
cmp r8d, 2
mov ebx, r12d
jl 0x1400b3279
cmp byte [r8 + rdx - 2], 0xd
je 0x1400b3279
cmp byte [r8 + rdx - 1], 0xa
jne 0x1400b3279
sub r8d, 1
lea ebx, [r12 + 1]
mov dword [rsp + 0x90], r8d
mov rcx, qword [0x1401fca80]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test ebx, ebx
je 0x1400b32b8
mov rcx, qword [0x1401fca80]
lea r9, [rsp + 0x54]
lea rdx, [0x1401aef98]
mov r8d, 2
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x1401fca80]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rcx, [rsp + 0x90]
call fcn.140175010
cmp dword [0x14020b000], r12d
je 0x1400b3595
lea rcx, [rsp + 0x1b0]
mov qword [rsp + 0x510], r13
call fcn.1400012c0
lea rcx, [rsp + 0x1b0]
mov r8, rsi
mov rdx, rdi
call fcn.140176660
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetFileType]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 2
jne 0x1400b34e5
lea rcx, [rsp + 0x2d0]
call fcn.1400012c0
mov rdx, qword [rsp + 0x1b8]
lea rcx, [rsp + 0x2d0]
call fcn.14017b470
mov rbx, qword [rsp + 0x2d8]
cmp word [rbx], r12w
je 0x1400b34d3
mov ecx, dword [rsp + 0x58]
mov qword [rsp + 0x520], rbp
mov qword [rsp + 0x508], r14
mov r14d, ecx
mov qword [rsp + 0x500], r15
movzx r15d, word [rsp + 0x50]
and r14d, 0xff000000
mov edx, ntohs
movzx eax, word [rbx]
mov rbp, rbx
test ax, ax
je 0x1400b33d9
cmp ax, 0xd
jne 0x1400b33c2
cmp word [rbx + 2], 0xa
jne 0x1400b33cc
mov rsi, rbx
mov r12d, 1
sub rsi, rbp
sar rsi, 1
add rbx, 4
jmp 0x1400b33e4
cmp ax, 0xa
je 0x1400b3479
mov ax, word [rbx + 2]
add rbx, 2
test ax, ax
jne 0x1400b33a0
mov rax, rbx
sub rax, rbp
sar rax, 1
mov esi, eax
test r14d, r14d
je 0x1400b3433
test ecx, 0xff0000
mov di, 8
cmovne di, dx
test ecx, 0xff00
je 0x1400b3403
or di, 2
test cl, cl
je 0x1400b340b
or di, 1
lea rdx, [rsp + 0x70]
mov rcx, r13
mov r15w, 7
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx edx, di
mov rcx, r13
test eax, eax
cmovne r15w, word [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea r9, [rsp + 0x50]
mov r8d, esi
mov rdx, rbp
mov rcx, r13
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test r12d, r12d
je 0x1400b3493
xor r12d, r12d
lea r9, [rsp + 0x50]
lea rdx, [0x1401b6b30]
lea r8d, [r12 + 2]
mov rcx, r13
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1400b3496
mov rax, rbx
mov r12d, 1
sub rax, rbp
sar rax, 1
add rbx, 2
mov esi, eax
jmp 0x1400b33e4
xor r12d, r12d
test r14d, r14d
je 0x1400b34a8
movzx edx, r15w
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp word [rbx], 0
mov ecx, dword [rsp + 0x58]
mov edx, ntohs
jne 0x1400b3395
mov r15, qword [rsp + 0x500]
mov r14, qword [rsp + 0x508]
mov rbp, qword [rsp + 0x520]
lea rcx, [rsp + 0x2d0]
call fcn.140175010
jmp 0x1400b3580
mov rbx, qword [rsp + 0x1b8]
cmp byte [rbx], r12b
je 0x1400b3580
nop
nop
nop
movzx eax, byte [rbx]
mov rdx, rbx
mov edi, r12d
test al, al
je 0x1400b353e
nop
cmp al, 0xd
jne 0x1400b352b
cmp byte [rbx + 1], 0xa
jne 0x1400b3533
mov r8d, ebx
mov edi, 1
sub r8d, edx
add rbx, 2
jmp 0x1400b3544
cmp al, 0xa
je 0x1400b35cc
mov al, byte [rbx + 1]
add rbx, 1
test al, al
jne 0x1400b3510
mov r8d, ebx
sub r8d, edx
lea r9, [rsp + 0x50]
mov rcx, r13
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test edi, edi
je 0x1400b357b
lea r9, [rsp + 0x50]
lea rdx, [0x1401aef98]
mov r8d, 2
mov rcx, r13
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [rbx], r12b
jne 0x1400b3500
lea rcx, [rsp + 0x1b0]
call fcn.140175010
mov r13, qword [rsp + 0x510]
lea rcx, [0x14020afd8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r12, qword [rsp + 0x518]
mov rbx, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1401a6ae0
add rsp, 0x528
pop rdi
pop rsi
ret
mov r8d, ebx
mov edi, 1
sub r8d, edx
add rbx, rdi
jmp 0x1400b3544