Function at 0x14008fdb0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
enter 0, 0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rsi, rcx
test r9, r9
je 0x14008fe06
mov r14, r9
mov rdi, r8
mov ecx, edx
call qword [sym.imp.kernel32.dll_GetStdHandle]
test rax, rax
je 0x14008fe11
mov r15, rax
cmp rax, 0xffffffffffffffff
jne case.0x14001a266.1435
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
jmp 0x14008ffbc
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
invalid
jmp case.0x14001a266.1477
movabs rax, 0x600000002
jmp 0x14008ffbc
mov dword [rbp - 0x20], 0
lea rdx, [rbp - 0x20]
push rbp
loopne 0x14008fe78
mov ecx, edi
call qword [sym.imp.kernel32.dll_GetConsoleMode]
cld
invalid
add al, byte [rax]
test eax, eax
je 0x14008fea0
invalid
mov rbx, qword [rbp + 0xa0]
movzx eax, byte [rbx + 4]
test rax, rax
ror byte [rdi], 0x84
invalid
add byte [rax], al
invalid
cmp al, 4
jae case.0x140013532.1760
invalid
movzx ecx, byte [rdi]
mov edx, ecx
and dl, 0xc0
rol byte [rax - 0x7af07f06], 9
jne 0x14008ff6e
add byte [rax], al
mov byte [rbx + rax], cl
movzx eax, byte [rbx + 4]
add al, 0xfe
ror byte [rax - 0x49f0fbbd], 0xb
add al, 0xf
mov dh, 0xb
or ecx, dword [rax - 0x73]
adc eax, 0x811b9
mov ecx, 0xf000811
movzx edi, byte [rcx + rdx]
mov qword [rbp - 0x28], rdi
cmp al, dil
jae 0x14008ff92
add dword [rsi], 1
add byte [rax], al
invalid
mov qword [rsi + 8], 1
mov qword [rsi], 0
add byte [rax], al
add byte [rax], al
jmp case.0x14001a266.1477
invalid
movups xmm0, xmmword [0x140110d20]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
dec dword [rcx + 0x39]
invalid
cmovb rax, r14
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
adc dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdi
sub byte [rax - 0x73], cl
adc byte [r8 - 0x77], r9b
adc byte [rax - 0x77], cl
and al, 0x20
and al, 0x20
mov rcx, r15
stc
xor edx, edx
xor r8d, r8d
rol byte [rbp + 0x31], 0xc9
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14008ff05
mov rcx, r15
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x1400900ac
test eax, eax
js 0x14008ff74
invalid
mov rax, qword [rbp + 0x18]
xor ecx, ecx
jmp 0x14008ff89
cmp r14, 0x1000
mov r8d, 0x1000
add byte [rbp + 0xf], cl
invalid
invalid
lea rcx, [rbp + 0x10]
adc byte [r8 - 0x77], r9b
mov edx, edi
call fcn.14000e190
invalid
loop case.0x14001a266.1440
dec dword [rax - 0x7d]
jge 0x14008ff42
add byte [rdi], cl
je 0x14008ffd7
mov r8, qword [rbp + 0x18]
test r8, r8
je case.0x140013532.1542
cmp r8, r14
ja 0x140090117
enter 1, 0
lea rbx, [rbp - 0x20]
mov rcx, rbx
mov ecx, ebx
mov rdx, rdi
mov edx, edi
call fcn.14000e190
xor ah, dl
loop case.0x1400078d3.1625
dec dword [rax - 0x77]
mov ecx, ebx
fld1
invalid
add al, 0
add byte [rcx - 0x77], cl
mov r8, rax
mov eax, eax
ror byte [rcx - 0x77], 0xd1
shr ebx, 1
invalid
mov byte [rbx + 4], 0
jmp case.0x140074e6c.574
invalid
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
adc eax, 0x26474
add byte [rax - 0x3f], cl
loopne 0x14008ffa0
and byte [rax - 0x7d], cl
enter 0xffffffffffffb902, 1
add bh, byte [rcx + 1]
add byte [rax], al
mov qword [rsi], rcx
mov qword [rsi + 8], rax
or bl, ch
invalid
movzx r8d, al
cmp al, 5
add eax, 0x162830f
add dword [rax], eax
invalid
lea rcx, [rbp + 0x10]
mov rdx, rbx
mov edx, ebx
call fcn.14000e190
loope 0x14008ffa0
inc esi
add al, 0
cmp qword [rbp + 0x10], 0
cmp dword [rbp + 0x10], 0
je 0x14009000d
lea rax, str.Windows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
mov qword [rsi + 8], rax
mov qword [rsi], 1
add dword [rax], eax
add byte [rax], al
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov r8, qword [rbp + 0x18]
mov r9, qword [rbp + 0x20]
mov rcx, rsi
mov rdx, r15
call fcn.1400901a0
add byte [rax], al
jmp case.0x14001a266.1477
movzx eax, byte [rdi]
lea rcx, [0x140111034]
adc byte ds:[rax], cl
add byte [rdi], cl
mov dh, 0xc
or byte [rax - 0x7d], cl
stc
add dh, byte [rdx + 0x5f]
cmp rcx, r14
jbe 0x14009005f
mov byte [rbx], al
mov byte [rbx + 4], 1
jmp case.0x140058e11.536
mov r8, qword [rbp + 0x18]
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x38], rax
cmp rax, rdi
clc
jne case.0x14001a266.1597
lea rcx, [rbp - 0x20]
mov rdx, r15
mov r9, rdi
call fcn.1400901a0
cmp qword [rbp - 0x20], 0
mov rax, qword [rbp - 0x18]
invalid
invalid
jne 0x140090066
invalid
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdi
mov dword [rbp + 0x38], edi
cmp rax, rdi
jne case.0x14001a266.1480
mov qword [rsi + 8], 1
xor eax, eax
mov qword [rsi], rax
jmp case.0x14001a266.1477
lea rax, str.Windows_stdio_in_console_mode_does_not_support_writing_non_UTF_8_byte_sequences
mov qword [rsi + 8], rax
mov eax, 1
add dword [rax], eax
add byte [rax], al
add byte [rax - 0x77], cl
invalid
jmp case.0x14001a266.1477
invalid
invalid
invalid
lea rax, str.Unexpected_number_of_bytes_for_incomplete_UTF_8_codepoint.
mov qword [rbp - 0x20], rax
loopne 0x1400900cb
mov dword [rbp - 0x18], 1
lea rax, [0x140139bd8]
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
lea rdx, str.library_std_src_syswindows_stdio.rs
lea rcx, [rbp - 0x20]
call fcn.1400b1410
mov qword [rbp - 0x30], r15
mov dword [rbp + 0x30], 0
mov byte [rbp + 0x34], 0
lea rax, [0x140110d88]
or byte [rax], al
add byte [rax - 0x77], cl
loopne 0x14009010f
mov dword [rbp - 0x18], 1
lea rax, [rbp - 0x28]
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
lea rcx, [rbp + 0x30]
lea ecx, [rbp + 0x30]
xor byte [rax - 0x73], cl
push rbp
loopne 0x1400900ce
hlt
invalid
dec dword [rax - 0x77]
cmp byte [r8 - 0x73], r9b
cmp r8b, r13b
test eax, 0xb9ffffe8
call 0x147c300f8
invalid
add byte [rax], al
add ch, cl
sub dword [rdi], ecx
ud2
lea rax, str.library_std_src_syswindows_stdio.rs
mov edx, 4
mov rcx, r8
mov ecx, eax
mov r8, rax
call fcn.1400b1550
lea rax, str.library_std_src_syswindows_stdio.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1400b1550
mov qword [rbp - 0x20], 0
lea r9, str.library_std_src_syswindows_stdio.rs
lea ecx, [0x140111250]
adc dword [rax], ecx
add byte [rax - 0x73], cl
lea rcx, [rbp - 0x28]
lea ecx, [rbp - 0x28]
jmp 0x140090154
invalid
mov qword [rbp - 0x20], 0
lea r9, str.library_std_src_syswindows_stdio.rs
lea ecx, [0x140111268]
sbb byte [rcx], dl
or byte [rax], al
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 0x38]
lea r8, [rbp - 0x20]
lea eax, [rbp - 0x20]
call fcn.1400b4450
add al, byte [rax]
add ah, cl