Function at 0x140009ee0
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
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rax, qword [0x140029090]
xor rax, rbp
mov qword [rbp], rax
mov eax, dword [0x14002b884]
mov ebx, dword [0x14002b880]
lea edi, [rax - 1]
imul edi, eax
test dil, 1
sete byte [rbp - 1]
cmp ebx, 0xa
setl byte [rbp - 2]
mov qword [rbp - 0x60], rdx
mov rdi, rcx
mov ecx, 0xdad011f0
mov rbx, qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r12, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, 0xa7d97dae
jmp 0x140009f6d
mov eax, dword [0x14002b884]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov ecx, 0xffa5ea72
mov eax, 0xadef4193
nop
cmove ecx, eax
cmp dword [0x14002b880], 0xa
cmovl ecx, eax
cmp ecx, 0x28caeb28
jg 0x14000a000
cmp ecx, 0xd761f80d
jle 0x14000a060
cmp ecx, 0xf7dd7311
jle 0x14000a128
cmp ecx, 0xffa5ea71
jle 0x14000a240
cmp ecx, 0xffa5ea72
je 0x14000a4c0
cmp ecx, 0x174c0c2
je 0x14000a4ca
cmp ecx, 0x1613bf5d
jne 0x140009f6d
sub rsp, 0x40
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call rbx
add rsp, 0x40
mov ecx, 0x38d00e7f
jmp 0x140009f6d
cmp ecx, 0x5843c4c5
jle 0x14000a0d0
cmp ecx, 0x6566277a
jle 0x14000a16b
cmp ecx, 0x774b3864
jg 0x14000a276
cmp ecx, 0x66af5196
je 0x14000a4d7
cmp ecx, 0x774a9ccc
jne 0x14000a6a4
cmp byte [rbp - 3], 0
mov ecx, 0x8726ec37
mov eax, 0xf7dd7312
cmovne ecx, eax
jmp 0x140009f6d
cmp ecx, 0x943ae07b
jg 0x14000a1bc
cmp ecx, 0x8726ec36
jg 0x14000a2a7
cmp ecx, 0x8343b9ed
je 0x14000a506
cmp ecx, 0x839be69a
jne 0x140009f6d
mov r9, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x58]
mov r8d, dword [rbp - 0x24]
sub rsp, 0x30
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x30
test eax, eax
mov ecx, 0xfcd6d52e
mov eax, 0x633943b6
cmove ecx, eax
jmp 0x140009f6d
cmp ecx, 0x441d1f73
jg 0x14000a1fe
cmp ecx, 0x2d70989f
jg 0x14000a2f7
cmp ecx, 0x28caeb29
je 0x14000a524
cmp ecx, 0x2c3c45be
jne 0x140009f6d
mov rcx, qword [rbp - 0x10]
sub rsp, 0x20
call r12
add rsp, 0x20
mov rcx, qword [rbp - 0x20]
sub rsp, 0x20
call r12
add rsp, 0x20
mov ecx, 0xd761f80e
jmp 0x140009f6d
cmp ecx, 0xe73f6eea
jg 0x14000a3ad
cmp ecx, 0xd761f80e
je 0x14000a530
cmp ecx, 0xdad011f0
jne 0x140009f6d
movzx eax, byte [rbp - 1]
cmp byte [rbp - 2], 0
mov ecx, 0x1613bf5d
mov edx, 0x38d00e7f
cmovne ecx, edx
test al, al
cmovne ecx, edx
jmp 0x140009f6d
cmp ecx, 0x633943b5
jg 0x14000a3d2
cmp ecx, 0x5843c4c6
je 0x14000a57e
cmp ecx, 0x613f75d1
jne 0x140009f6d
mov rcx, qword [rbp - 0x10]
sub rsp, 0x20
call r12
add rsp, 0x20
mov eax, dword [0x14002b884]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov ecx, 0x7cc8aeeb
mov eax, 0xec377ac1
jmp 0x140009f60
cmp ecx, 0xadef4192
jg 0x14000a444
cmp ecx, 0x943ae07c
je 0x14000a59c
cmp ecx, 0xa7d97dae
jne 0x140009f6d
mov eax, dword [0x14002b884]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov ecx, 0x2d7098a0
mov eax, 0x6566277b
jmp 0x140009f60
cmp ecx, 0x51e89403
jg 0x14000a466
cmp ecx, 0x441d1f74
je 0x14000a5b5
cmp ecx, 0x47689a77
jne 0x140009f6d
mov eax, dword [0x14002b884]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov ecx, 0x774b3865
mov eax, 0x441d1f74
jmp 0x140009f60
cmp ecx, 0xf7dd7312
je 0x140009f46
cmp ecx, 0xfcd6d52e
jne 0x140009f6d
mov rax, qword [rbp - 0x18]
mov eax, dword [rax]
mov rcx, qword [rbp - 0x30]
cmp eax, dword [rcx]
mov ecx, 0x633943b6
mov eax, 0x63a6450b
cmove ecx, eax
jmp 0x140009f6d
cmp ecx, 0x774b3865
je 0x14000a5c3
cmp ecx, 0x7cc8aeeb
jne 0x140009f6d
mov rcx, qword [rbp - 0x10]
sub rsp, 0x20
call r12
add rsp, 0x20
mov ecx, 0x613f75d1
jmp 0x140009f6d
cmp ecx, 0x8726ec37
je 0x14000a5cd
cmp ecx, 0x8f38c3a2
jne 0x140009f6d
mov eax, r13d
and al, 1
mov byte [rbp - 4], al
mov eax, dword [0x14002b884]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov ecx, 0x47689a77
mov eax, 0x774b3865
cmovne ecx, eax
cmp dword [0x14002b880], 9
mov eax, 0x47689a77
cmovle ecx, eax
jmp 0x140009f6d
cmp ecx, 0x2d7098a0
je 0x14000a61d
cmp ecx, 0x38d00e7f
jne 0x140009f6d
mov eax, 0x1000
call fcn.14000d850
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x38], rax
mov eax, 0x10
call fcn.14000d850
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x18], rax
mov eax, 0x10
call fcn.14000d850
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x30], rax
sub rsp, 0x40
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call rbx
add rsp, 0x40
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
cmp rax, 0xffffffffffffffff
sete byte [rbp - 3]
mov eax, dword [0x14002b884]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov ecx, 0x1613bf5d
mov eax, 0x774a9ccc
jmp 0x140009f60
cmp ecx, 0xe73f6eeb
je 0x14000a627
cmp ecx, 0xec377ac1
jne 0x140009f6d
mov ecx, 0x8f38c3a2
xor r13d, r13d
jmp 0x140009f6d
cmp ecx, 0x633943b6
je 0x14000a63d
cmp ecx, 0x63a6450b
jne 0x140009f6d
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x58], rax
mov r9, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x58]
sub rsp, 0x30
mov qword [rsp + 0x20], 0
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_ReadFile]
add rsp, 0x30
mov rcx, qword [rbp - 0x18]
mov ecx, dword [rcx]
mov dword [rbp - 0x24], ecx
cmp dword [rbp - 0x24], 0
mov ecx, 0x8343b9ed
mov edx, 0x839be69a
cmovne ecx, edx
test eax, eax
mov eax, 0x8343b9ed
cmove ecx, eax
jmp 0x140009f6d
cmp ecx, 0xadef4193
je 0x14000a668
cmp ecx, 0xb435a9b3
jne 0x140009f6d
mov ecx, 0x63a6450b
jmp 0x140009f6d
cmp ecx, 0x51e89404
je 0x14000a686
cmp ecx, 0x5249aa5c
jne 0x140009f6d
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
mov rax, qword [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x50]
mov eax, dword [0x14002b884]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov ecx, 0xe73f6eeb
mov eax, 0xb435a9b3
jmp 0x140009f60
mov ecx, 0xadef4193
jmp 0x140009f6d
mov ecx, 0x943ae07c
mov r15b, 1
jmp 0x140009f6d
mov eax, esi
and al, 1
mov byte [rbp - 5], al
mov eax, dword [0x14002b884]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov ecx, 0x2d7098a0
cmove ecx, r14d
cmp dword [0x14002b880], 0xa
cmovl ecx, r14d
jmp 0x140009f6d
mov eax, dword [0x14002b884]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov ecx, 0x2c3c45be
mov eax, 0xd761f80e
jmp 0x140009f60
mov ecx, 0x66af5196
xor esi, esi
jmp 0x140009f6d
mov rcx, qword [rbp - 0x10]
sub rsp, 0x20
call r12
add rsp, 0x20
mov rcx, qword [rbp - 0x20]
sub rsp, 0x20
call r12
add rsp, 0x20
mov eax, dword [0x14002b884]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov ecx, 0x174c0c2
mov eax, 0x2c3c45be
cmovne ecx, eax
cmp dword [0x14002b880], 9
mov eax, 0x174c0c2
cmovle ecx, eax
jmp 0x140009f6d
mov eax, dword [0x14002b884]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov ecx, 0x7cc8aeeb
mov eax, 0x613f75d1
jmp 0x140009f60
mov rax, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
mov rax, qword [rbp - 0x40]
mov ecx, 0x8f38c3a2
mov r13d, r15d
jmp 0x140009f6d
mov ecx, 0x66af5196
movzx esi, byte [rbp - 4]
jmp 0x140009f6d
mov ecx, 0x47689a77
jmp 0x140009f6d
sub rsp, 0x40
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, qword [rbp - 0x60]
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call rbx
add rsp, 0x40
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
cmp rax, 0xffffffffffffffff
mov ecx, 0x51e89404
mov eax, 0x5843c4c6
cmove ecx, eax
jmp 0x140009f6d
mov ecx, 0xa7d97dae
jmp 0x140009f6d
mov rax, qword [rbp - 0x38]
mov rax, qword [rbp - 0x18]
mov rax, qword [rbp - 0x30]
mov ecx, 0x5249aa5c
jmp 0x140009f6d
mov rcx, qword [rbp - 0x10]
sub rsp, 0x20
call r12
add rsp, 0x20
mov rcx, qword [rbp - 0x20]
sub rsp, 0x20
call r12
add rsp, 0x20
mov ecx, 0x943ae07c
xor r15d, r15d
jmp 0x140009f6d
mov eax, dword [0x14002b884]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov ecx, 0xffa5ea72
mov eax, 0x28caeb29
jmp 0x140009f60
mov eax, dword [0x14002b884]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov ecx, 0xe73f6eeb
mov eax, 0x5249aa5c
jmp 0x140009f60
cmp ecx, 0x6566277b
jne 0x140009f6d
mov bl, byte [rbp - 5]
mov rcx, qword [rbp]
xor rcx, rbp
sub rsp, 0x20
call fcn.14000d8c0
add rsp, 0x20
mov eax, ebx
lea rsp, [rbp + 8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret