Function at 0x1400435b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10c8
call fcn.14004e380
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1030], xmm6
mov qword [rbp + 0x1028], 0xfffffffffffffffe
mov r15, rcx
mov qword [rbp + 0xfb0], rcx
mov qword [rbp + 0xfe0], rdx
mov qword [rbp + 0xfb8], rdx
lea rbx, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call fcn.14004ee60
xorps xmm6, xmm6
lea r14, [rbp + 0x1008]
lea r13, [0x1400398e0]
lea rsi, [rbp + 0xfc0]
mov r10, qword [sym.imp.KERNEL32.dll_ReadFileEx]
lea r12, [0x140043ad4]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0xfe8], r15
mov dword [rbp + 0x1008], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
mov qword [rbp + 0xfd8], r14
mov qword [rsp + 0x20], r13
mov rcx, r15
mov rdx, rbx
mov r8d, 0x1000
mov r9, rsi
call r10
test eax, eax
je 0x1400436e0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0x1008], 0
je 0x140043690
mov ecx, dword [rbp + 0x100c]
test rcx, rcx
je 0x140043720
shl rcx, 0x20
or rcx, 2
mov qword [rbp + 0x1020], rcx
mov qword [rbp + 0x1018], 1
mov eax, ecx
and eax, 3
movsxd rax, dword [r12 + rax*4]
add rax, r12
jmp rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
shl rcx, 0x20
or rcx, 2
mov qword [rbp + 0x1020], rcx
mov qword [rbp + 0x1018], 1
mov eax, ecx
and eax, 3
movsxd rax, dword [r12 + rax*4]
add rax, r12
jmp rax
movzx eax, byte [rcx + 0x10]
jmp case.0x140043762.0
mov eax, dword [rbp + 0x1010]
mov qword [rbp + 0x1020], rax
mov qword [rbp + 0x1018], 0
jmp 0x140043774
shr rcx, 0x20
call fcn.14002c060
jmp case.0x140043762.0
shr rcx, 0x20
cmp ecx, 0x28
ja case.default.0x140043762
xor eax, eax
lea rdx, [0x140043ae4]
movsxd rcx, dword [rdx + rcx*4]
invalid
or al, 0x8a
add rcx, rdx
jmp rcx
invalid
mov al, 1
jmp case.0x140043762.0
movzx eax, byte [rcx + 0xf]
cmp al, 0xb
je 0x1400439f3
mov rax, qword [rbp + 0x1018]
mov qword [rbp + 0xff0], rax
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0xff8], rax
cmp qword [rbp + 0xff0], 0
jne 0x1400439e5
mov r12, qword [rbp + 0xff8]
test r12, r12
je 0x1400439b5
cmp r12, 0x1000
ja 0x140043a1f
xor r15d, r15d
nop
mov r8d, r12d
sub r8d, r15d
lea rdx, [r15 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0x1008], 0
movaps xmmword [rbp + 0xfc0], xmm6
mov qword [rbp + 0xfd0], 0
mov qword [rbp + 0xfd8], r14
mov qword [rsp + 0x20], r13
mov rcx, qword [rbp + 0xfe0]
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x140043982
nop
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0x1008], 0
je 0x140043810
mov eax, dword [rbp + 0x100c]
test rax, rax
jne 0x140043988
mov eax, dword [rbp + 0x1010]
add r15, rax
cmp r15, r12
je 0x140043850
jbe 0x1400437c0
jmp 0x140043a0b
mov r15, qword [rbp + 0xfe8]
mov r10, qword [sym.imp.KERNEL32.dll_ReadFileEx]
mov ch, byte [rcx - 0x72b3ffff]
and eax, 0x26f
outsd dx, dword [rsi]
add al, byte [rax]
invalid
mov ch, byte [rcx - 0x72b3ffff]
and eax, 0x26f
outsd dx, dword [rsi]
add al, byte [rax]
invalid
outsd dx, dword [rsi]
add al, byte [rax]
add cl, ch
fscale
jmp 0x140043643
invalid
mov al, 0x25
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x23
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x24
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x1b
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x22
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x10
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0xe
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x21
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0xb
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 4
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x28
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0xc
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 9
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x19
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x18
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 2
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0xf
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 3
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 7
jmp case.0x140043762.0
mov al, 0x1f
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x11
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x29
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x14
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 5
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x15
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0xd
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 6
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x12
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0xa
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 8
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x1e
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x20
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x16
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x27
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x13
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x17
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x1c
jmp case.0x140043762.0
invalid
invalid
invalid
mov al, 0x1d
jmp case.0x140043762.0
mov al, 0x26
jmp case.0x140043762.0
mov al, 0x1a
jmp case.0x140043762.0
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x1020], rax
mov qword [rbp + 0x1018], 1
lea rcx, [rbp + 0x1020]
call fcn.14002a940
mov r15, qword [rbp + 0xfe8]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call rdi
mov rcx, qword [rbp + 0xfe0]
call rdi
movaps xmm6, xmmword [rbp + 0x1030]
add rsp, 0x10c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff8]
call fcn.14002a940
jmp 0x1400439b5
xorps xmm0, xmm0
movaps xmmword [rbp + 0xff0], xmm0
lea rcx, [rbp + 0x1020]
call fcn.14002a940
jmp 0x1400439b5
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r15
mov rdx, r12
call fcn.14005c3f0
jmp 0x140043a33
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.14005c180
ud2