Function at 0x14004b6c0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x2060
call fcn.140065750
sub rsp, rax
mov rbx, r8
mov rsi, rdx
mov r14, rcx
mov ecx, 0xfffffff4
call sub.KERNEL32.dll_GetStdHandle
test rax, rax
je 0x14004b704
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14004b72c
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
jmp 0x14004b70e
movabs rax, 0x600000000
mov qword [r14 + 8], rax
mov qword [r14], 1
add rsp, 0x2060
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x60], 0
lea rdx, [rsp + 0x60]
mov rcx, r12
call sub.KERNEL32.dll_GetConsoleMode
test eax, eax
je 0x14004b7ab
cmp rbx, 0x1000
mov r8d, 0x1000
cmovb r8, rbx
lea rcx, [rsp + 0x48]
mov rdx, rsi
call fcn.140037470
cmp qword [rsp + 0x48], 1
jne 0x14004b7fc
mov r8, qword [rsp + 0x50]
test r8, r8
je 0x14004bac4
cmp r8, rbx
ja 0x14004bc10
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.140037470
cmp qword [rsp + 0x60], 1
je 0x14004bc15
mov r15, qword [rsp + 0x68]
mov r13, qword [rsp + 0x70]
jmp 0x14004b806
mov dword [rsp + 0x60], 0
mov eax, 0xffffffff
cmp rbx, rax
mov r8d, 0xffffffff
cmovb r8d, ebx
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
mov rcx, r12
mov rdx, rsi
call sub.KERNEL32.dll_WriteFile
test eax, eax
je 0x14004baa0
mov ebx, dword [rsp + 0x60]
movzx ecx, bl
and ebx, 0xffffff00
xor eax, eax
xor edx, edx
jmp 0x14004bab2
mov r15, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
xor edi, edi
lea rcx, [rsp + 0x60]
mov r8d, 0x2000
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r8, r15
add r8, r13
mov ecx, 0x4000
xor ebx, ebx
test di, di
jne 0x14004b833
jmp 0x14004b852
mov r15, rdx
xor eax, eax
test rcx, rcx
je 0x14004b92b
mov word [rsp + rbx*2 + 0x60], di
add rbx, 1
add rcx, 0xfffffffffffffffc
mov edi, eax
test di, di
jne 0x14004b833
cmp r15, r8
je 0x14004b92b
lea rdx, [r15 + 1]
mov al, byte [r15]
movzx edi, al
test dil, dil
jns 0x14004b830
cmp rdx, r8
je 0x14004b87d
movzx edx, byte [r15 + 1]
add r15, 2
and edx, 0x3f
jmp 0x14004b882
xor edx, edx
mov r15, r8
mov esi, edi
and esi, 0x1f
cmp dil, 0xdf
jbe 0x14004b89f
cmp r15, r8
je 0x14004b8a4
movzx edi, byte [r15]
add r15, 1
and edi, 0x3f
jmp 0x14004b8a9
shl esi, 6
jmp 0x14004b8c7
xor edi, edi
mov r15, r8
shl edx, 6
or edx, edi
cmp al, 0xf0
jb 0x14004b8c4
cmp r15, r8
je 0x14004b8d9
movzx eax, byte [r15]
add r15, 1
and eax, 0x3f
jmp 0x14004b8de
shl esi, 0xc
or edx, esi
mov edi, edx
cmp edi, 0xffff
jbe 0x14004b833
jmp 0x14004b901
xor eax, eax
mov r15, r8
and esi, 7
shl esi, 0x12
shl edx, 6
or edx, esi
or edx, eax
mov edi, edx
cmp edx, 0x110000
je 0x14004b92b
cmp edi, 0xffff
jbe 0x14004b833
add edi, 0xffff0000
mov edx, edi
shr edx, 0xa
or edx, 0xd800
and edi, 0x3ff
or edi, 0xdc00
mov eax, edi
mov edi, edx
test rcx, rcx
jne 0x14004b83e
cmp rbx, 0x1001
jae 0x14004bbf0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea rsi, [rsp + 0x60]
lea r9, [rsp + 0x30]
mov rcx, r12
mov rdx, rsi
mov r8d, ebx
call sub.KERNEL32.dll_WriteConsoleW
test eax, eax
je 0x14004b6f9
mov r15d, dword [rsp + 0x30]
cmp r15, rbx
je 0x14004bbe0
cmp rbx, r15
jbe 0x14004bc4a
movzx eax, word [rsp + r15*2 + 0x60]
add eax, 0x2312
movzx eax, ax
cmp eax, 0x311
ja 0x14004b9ce
lea rdx, [rsp + r15*2]
add rdx, 0x60
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, r12
mov r8d, 1
call sub.KERNEL32.dll_WriteConsoleW
test eax, eax
jne 0x14004b9ca
call sub.KERNEL32.dll_GetLastError
add r15, 1
cmp rbx, r15
jb 0x14004bc5e
test r15, r15
je 0x14004bb98
lea rdx, [r15 + r15]
add rdx, 0xfffffffffffffffe
mov rcx, rdx
shr rcx, 1
add rcx, 1
mov r8d, ecx
and r8d, 1
test rdx, rdx
je 0x14004bb9d
lea rdx, [rsp + 0x60]
sub rcx, r8
xor r13d, r13d
jmp 0x14004ba21
add r13, rdx
lea rdx, [rsi + 4]
add rcx, 0xfffffffffffffffe
je 0x14004bb8d
mov rsi, rdx
movzx ebx, word [rdx]
mov edx, 1
mov edi, 1
cmp ebx, 0x80
jb 0x14004ba63
movzx eax, bx
mov edi, 2
cmp eax, 0x800
jb 0x14004ba63
add ebx, 0x2312
movzx eax, bx
xor ebx, ebx
cmp eax, 0x311
seta bl
lea rdi, [rbx + rbx]
add rdi, 1
add r13, rdi
movzx ebx, word [rsi + 2]
cmp ebx, 0x80
jb 0x14004ba10
movzx eax, bx
mov edx, 2
cmp eax, 0x800
jb 0x14004ba10
add ebx, 0x2312
movzx eax, bx
xor edx, edx
cmp eax, 0x311
seta dl
add rdx, rdx
add rdx, 1
jmp 0x14004ba10
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
mov edx, 1
xor ecx, ecx
xor ebx, ebx
or rcx, rbx
or rcx, rax
mov qword [r14], rdx
mov qword [r14 + 8], rcx
jmp 0x14004b719
lea rdx, [0x14008c6fc]
lea rcx, [rsp + 0x30]
mov r8d, 0x4f
call fcn.14004b2a0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm0
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, 0x18
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x14004bbff
mov rsi, rax
mov rax, qword [rsp + 0x70]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi], xmm0
call sub.KERNEL32.dll_GetProcessHeap
mov r8d, 0x18
mov rcx, rax
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x14004bbff
mov qword [rax], rsi
lea rcx, [0x14008c660]
mov qword [rax + 8], rcx
mov byte [rax + 0x10], 0xc
mov ecx, dword [rsp + 0x60]
mov edx, dword [rsp + 0x63]
mov dword [rax + 0x14], edx
mov dword [rax + 0x11], ecx
mov ecx, dword [rsp + 0x60]
mov edx, dword [rsp + 0x63]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x33], edx
mov byte [r14 + 8], 2
mov ecx, dword [rsp + 0x30]
mov edx, dword [rsp + 0x33]
mov dword [r14 + 9], ecx
mov dword [r14 + 0xc], edx
mov qword [r14 + 0x10], rax
jmp 0x14004b712
add rsi, 4
test r8, r8
jne 0x14004bba5
jmp 0x14004bbe0
xor r13d, r13d
jmp 0x14004bbe0
xor r13d, r13d
test r8, r8
je 0x14004bbe0
movzx eax, word [rsi]
mov ecx, 1
cmp eax, 0x80
jb 0x14004bbdd
movzx edx, ax
mov ecx, 2
cmp edx, 0x800
jb 0x14004bbdd
add eax, 0x2312
movzx eax, ax
xor ecx, ecx
cmp eax, 0x311
seta cl
add rcx, rcx
add rcx, 1
add r13, rcx
mov qword [r14 + 8], r13
mov qword [r14], 0
jmp 0x14004b719
mov edx, 0x1000
mov rcx, rbx
call fcn.140033740
ud2
mov ecx, 0x18
mov edx, 8
call fcn.1400308f0
ud2
mov rcx, r8
jmp 0x14004bc61
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x30], xmm0
lea rax, str.srclibstd_syswindows_stdio.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140095908]
lea r9, [0x14008c750]
lea r8, [rsp + 0x30]
mov edx, 0x2b
call fcn.1400357c0
ud2
lea rcx, str.srclibstd_syswindows_stdio.rs
mov rdx, r15
mov r8, rbx
call fcn.140032f30
ud2
mov rcx, r15
mov rdx, rbx
call fcn.140033740
ud2