Function at 0x14008fdd0
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 0x14008fe26
mov r14, r9
mov rdi, r8
mov ecx, edx
call qword [sym.imp.kernel32.dll_GetStdHandle]
test rax, rax
je 0x14008fe31
mov r15, rax
cmp rax, 0xffffffffffffffff
jne case.0x14001a276.1435
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
jmp 0x14008ffdc
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
invalid
jmp case.0x14001a276.1477
movabs rax, 0x600000002
jmp 0x14008ffdc
mov dword [rbp - 0x20], 0
lea rdx, [rbp - 0x20]
push rbp
loopne 0x14008fe98
mov ecx, edi
call qword [sym.imp.kernel32.dll_GetConsoleMode]
fsub qword [rbx + 2]
invalid
test eax, eax
je 0x14008fec0
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.0x140013542.1760
invalid
movzx ecx, byte [rdi]
mov edx, ecx
and dl, 0xc0
rol byte [rax - 0x7af07f06], 9
jne 0x14008ff8e
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, 0x81199
cdq
adc dword [rax], ecx
add byte [rdi], cl
movzx edi, byte [rcx + rdx]
mov qword [rbp - 0x28], rdi
cmp al, dil
jae 0x14008ffb2
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.0x14001a276.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 0x14008ff25
mov rcx, r15
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x1400900cc
test eax, eax
js 0x14008ff94
invalid
mov rax, qword [rbp + 0x18]
xor ecx, ecx
jmp 0x14008ffa9
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.14000e1a0
push rdx
loop case.0x14001a276.1440
dec dword [rax - 0x7d]
jge 0x14008ff62
add byte [rdi], cl
je 0x14008fff7
mov r8, qword [rbp + 0x18]
test r8, r8
je case.0x140013542.1542
cmp r8, r14
ja 0x140090137
enter 1, 0
lea rbx, [rbp - 0x20]
mov rcx, rbx
mov ecx, ebx
mov rdx, rdi
mov edx, edi
call fcn.14000e1a0
and ah, dl
loop case.0x1400078e9.1625
dec dword [rax - 0x77]
mov ecx, ebx
fld1
invalid
add al, 0
add byte [rcx - 0x77], cl
mov r8, rax
mov eax, eax
mov r9, rdx
shr ebx, 1
invalid
mov byte [rbx + 4], 0
jmp 0x14008ffd5
invalid
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
adc eax, 0x26454
add byte [rax - 0x3f], cl
loopne 0x14008ffc0
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.14000e1a0
loope 0x14008ffc0
inc esi
add al, 0
cmp qword [rbp + 0x10], 0
cmp dword [rbp + 0x10], 0
je 0x14009002d
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.1400901c0
jmp case.0x14001a276.1477
movzx eax, byte [rdi]
lea rcx, [0x140111034]
movzx ecx, byte [rax + rcx]
cmp rcx, 2
jb 0x14009007f
cmp rcx, r14
jbe 0x14009007f
mov byte [rbx], al
mov byte [rbx + 4], 1
jmp case.0x140058e21.536
mov r8, qword [rbp + 0x18]
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x38], rax
cmp rax, rdi
clc
jne case.0x14001a276.1597
lea rcx, [rbp - 0x20]
mov rdx, r15
mov r9, rdi
call fcn.1400901c0
cmp qword [rbp - 0x20], 0
mov rax, qword [rbp - 0x18]
invalid
invalid
jne 0x140090086
invalid
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], rdi
mov dword [rbp + 0x38], edi
cmp rax, rdi
jne case.0x14001a276.1480
mov qword [rsi + 8], 1
xor eax, eax
mov qword [rsi], rax
jmp case.0x14001a276.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.0x14001a276.1477
invalid
invalid
invalid
lea rax, str.Unexpected_number_of_bytes_for_incomplete_UTF_8_codepoint.
mov qword [rbp - 0x20], rax
loopne 0x1400900eb
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.1400b1400
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 0x14009012f
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 0x1400900ee
hlt
invalid
dec dword [rax - 0x77]
cmp byte [r8 - 0x73], r9b
cmp r8b, r13b
test eax, 0xb9ffffe8
call 0x147c30118
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.1400b1540
lea rax, str.library_std_src_syswindows_stdio.rs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.1400b1540
mov qword [rbp - 0x20], 0
lea r9, str.library_std_src_syswindows_stdio.rs
lea ecx, [0x140111250]
adc byte [rax], cl
add byte [rax - 0x73], cl
lea rcx, [rbp - 0x28]
lea ecx, [rbp - 0x28]
jmp 0x140090174
invalid
mov qword [rbp - 0x20], 0
lea r9, str.library_std_src_syswindows_stdio.rs
lea ecx, [0x140111268]
clc
adc byte [rax], cl
add byte [rax - 0x73], cl
invalid
invalid
lea rdx, [rbp + 0x38]
lea r8, [rbp - 0x20]
lea eax, [rbp - 0x20]
call fcn.1400b4440
add al, byte [rax]
add ah, cl