Function at 0x140001c40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140042040]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, rdx
mov r14, rcx
xor r13d, r13d
mov ebx, r13d
mov qword [rsp + 0x50], rbx
mov ebp, r13d
mov rdi, qword [rcx + 0x10]
mov qword [rsp + 0x48], 0x20
mov ecx, 0x10
call fcn.14000e020
mov word [rax + 0xa], r13w
mov qword [rsp + 0x40], rax
mov dword [rax], 0x10
mov dword [rax + 4], 6
mov word [rax + 8], 0xcf8
mov dword [rax + 0xc], 0x8000fd10
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, 0x10
lea r8, [rsp + 0x40]
mov edx, 0x222aa4
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
setne sil
test eax, eax
je 0x140001d43
mov rax, qword [rsp + 0x40]
mov dword [rax + 4], 3
mov rax, qword [rsp + 0x40]
mov word [rax + 8], 0xcfc
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, 0x10
lea r8, [rsp + 0x40]
mov edx, 0x222aa4
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
setne sil
test eax, eax
je 0x140001d43
mov rdi, qword [rsp + 0x40]
mov ebp, dword [rdi + 0xc]
jmp 0x140001d48
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov edx, 0x10
mov rcx, qword [rsp + 0x40]
call fcn.14000e05c
test sil, sil
je 0x140002091
test bpl, 1
jne 0x14000208e
and ebp, 0xfffff000
lea rsi, [r14 + 0x18]
mov rdi, qword [r14 + 0x10]
test rsi, rsi
je 0x14000208e
mov qword [rsi], r13
mov qword [rsp + 0x48], 0x2c
mov ecx, 0x1c
call fcn.14000e020
mov qword [rax + 0x10], r13
mov dword [rax + 0x18], r13d
mov qword [rsp + 0x40], rax
mov dword [rax], 0x18
mov edx, ebp
mov qword [rax + 4], rdx
mov dword [rax + 0xc], 0x1000
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
mov r9d, 0x10
lea r8, [rsp + 0x40]
mov edx, 0x222ab8
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebp, eax
mov rdi, qword [rsp + 0x40]
test eax, eax
je 0x140001e00
mov rcx, qword [rdi + 0x10]
mov qword [rsi], rcx
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov edx, 0x1c
mov rcx, qword [rsp + 0x40]
call fcn.14000e05c
test ebp, ebp
je 0x14000208e
mov rsi, qword [rsi]
mov ebp, dword [rsi]
and ebp, 0x7fff0000
or ebp, 0xfff0
shr ebp, 4
inc ebp
mov ecx, ebp
call fcn.14000e090
mov rbx, rax
mov r8d, ebp
xor edx, edx
mov rcx, rax
call fcn.14002e5d0
mov ecx, dword [rsi + 4]
bt ecx, 0xe
jae 0x14000208e
test cl, 0x20
je 0x140001e62
nop
jmp 0x140001e60
and dword [rsi + 8], 0xf8000000
and ecx, 0xfffffff8
mov dword [rsi + 4], ecx
lea r14, [rsi + 0x54]
mov r15d, 0xc
nop dword [rax]
mov edi, dword [r14]
mov ecx, edi
and ecx, 0x7fff
shl ecx, 0xc
and edi, 0x7fff0000
or edi, 0xfff0
shr edi, 4
inc edi
cmp ecx, edi
ja 0x140002013
mov eax, dword [rsi + 8]
and eax, 0xf8000000
or eax, ecx
mov dword [rsi + 8], eax
and eax, 0x7ffffff
mov r8d, edi
mov edx, eax
lea rcx, str.___Reading__04x_of__04x_r
call fcn.140001600
mov ecx, dword [rsi + 4]
and ecx, 0xffe1ffff
or ecx, 0x3f010000
mov dword [rsi + 4], ecx
mov eax, ecx
and eax, 1
test eax, eax
je 0x140001ee1
test cl, 0x26
jne 0x140001fed
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x10]
mov dword [rcx + rbx], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x14]
mov dword [rcx + rbx + 4], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x18]
mov dword [rcx + rbx + 8], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x1c]
mov dword [rcx + rbx + 0xc], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x20]
mov dword [rcx + rbx + 0x10], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x24]
mov dword [rcx + rbx + 0x14], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x28]
mov dword [rcx + rbx + 0x18], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x2c]
mov dword [rcx + rbx + 0x1c], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x30]
mov dword [rcx + rbx + 0x20], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x34]
mov dword [rcx + rbx + 0x24], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x38]
mov dword [rcx + rbx + 0x28], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x3c]
mov dword [rcx + rbx + 0x2c], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x40]
mov dword [rcx + rbx + 0x30], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x44]
mov dword [rcx + rbx + 0x34], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x48]
mov dword [rcx + rbx + 0x38], eax
mov ecx, dword [rsi + 8]
and ecx, 0x7ffffff
mov eax, dword [rsi + 0x4c]
mov dword [rcx + rbx + 0x3c], eax
and dword [rsi + 4], 0xfffffff8
mov ecx, dword [rsi + 8]
lea edx, [rcx + 0x40]
mov eax, ecx
xor eax, edx
and eax, 0x7ffffff
xor eax, ecx
mov dword [rsi + 8], eax
and edx, 0x7ffffff
cmp edx, edi
jb 0x140001eb4
add r14, 4
sub r15, 1
jne 0x140001e80
mov dword [rsp + 0x50], r13d
cmp qword [r12 + 0x18], 7
jbe 0x140002032
mov r12, qword [r12]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000208e
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
mov r8d, ebp
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne sil
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140002091
xor sil, sil
test rbx, rbx
je 0x14000209e
mov rcx, rbx
call fcn.14000e05c
movzx eax, sil
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000e000
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret