Function at 0x1400013f4
Capabilities:
Print debug messages
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov eax, dword [0x14000e644]
xor r12d, r12d
mov qword [rbp + 0x77], r12
xorps xmm0, xmm0
mov dword [rbp + 0x6f], r12d
xorps xmm1, xmm1
mov rbx, rcx
mov r13b, r12b
mov edi, r12d
mov r14d, r12d
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 0x17], xmm1
movups xmmword [rbp - 0x39], xmm0
test al, 1
jne 0x14000144a
xor al, al
jmp 0x140001a1d
or rsi, 0xffffffffffffffff
lea rcx, [0x14000e650]
mov rax, rsi
inc rax
cmp byte [rcx + rax], r12b
jne 0x140001458
test rax, rax
jne 0x140001484
mov r8d, 0xdc
lea rdx, [0x140009d20]
lea rcx, [0x140009d40]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400019f4
lea rdx, [0x140009c10]
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rbx + 0x10]
xor r9d, r9d
mov r8b, 1
lea rcx, [rbp - 9]
call qword [sym.imp.ntoskrnl.exe_FsRtlIsNameInExpression]
test al, al
je 0x1400019f4
mov r15d, 0x2d0
mov r8d, 0x626f7574
mov edx, r15d
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r14, rax
test rax, rax
je 0x1400019f4
mov r8d, r15d
xor edx, edx
mov rcx, rax
call fcn.1400099c0
xorps xmm0, xmm0
mov word [rbp - 0x37], r15w
lea rdx, [0x140009d70]
mov qword [rbp - 0x31], r14
lea rcx, [rbp - 0x19]
movups xmmword [rbp - 0x19], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov rcx, qword [rbx]
lea rdx, [rbp - 0x39]
call fcn.140005dd0
test al, al
jne 0x140001542
mov r8d, 0x100
lea rcx, [0x140009d80]
mov r9, qword [rbp - 0x31]
lea rdx, [0x140009d20]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400019f4
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea rcx, [rbp - 0x39]
call fcn.140001cb0
test al, al
je 0x1400019f4
xorps xmm0, xmm0
lea rbx, [0x14000e650]
xorps xmm1, xmm1
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp - 0x19], xmm1
inc rsi
cmp byte [rbx + rsi], r12b
jne 0x140001576
lea rdx, [0x140009dc0]
lea rcx, [rbp + 7]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
movaps xmm0, xmmword [rbp - 0x39]
lea rdx, [rbp + 0x77]
lea rcx, [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
call fcn.1400063ac
test eax, eax
jns 0x1400015fd
cmp eax, 0xc0000034
je 0x1400015d1
mov r8d, 0x117
lea rcx, [0x140009df0]
jmp 0x14000152d
movaps xmm0, xmmword [rbp - 0x39]
lea rdx, [rbp + 0x77]
lea rcx, [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
call fcn.140005d1c
test eax, eax
jns 0x1400015fd
mov r8d, 0x121
lea rcx, [0x140009e20]
jmp 0x14000152d
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp + 0x6f]
call fcn.140005ecc
test eax, eax
jns 0x140001620
mov r8d, 0x129
lea rcx, [0x140009e50]
jmp 0x14000152d
mov eax, dword [rbp + 0x6f]
test eax, eax
jne 0x14000167e
mov rcx, qword [rbp + 0x77]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x40], r12
xor r9d, r9d
mov qword [rsp + 0x38], r12
xor r8d, r8d
mov dword [rsp + 0x30], esi
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
jns 0x1400019de
mov r9d, eax
lea rdx, [0x140009d20]
mov r8d, 0x132
lea rcx, [0x140009e80]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400019f4
lea r15d, [rax + 0xa]
mov qword [rbp + 0x7f], r12
add r15d, esi
xorps xmm0, xmm0
mov edx, r15d
mov r8d, 0x626f7574
xor ecx, ecx
mov ebx, r15d
movups xmmword [rbp - 0x29], xmm0
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x1400019f4
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.1400099c0
lea rcx, [0x14001b9e0]
call fcn.1400082cc
mov rcx, qword [rbp + 0x77]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x40], r12
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x46
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jns 0x140001730
mov r8d, 0x149
lea rcx, [0x140009eb0]
mov r9d, eax
lea rdx, [0x140009d20]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [0x14001b9e0]
call fcn.1400082fc
jmp 0x1400019e6
lea rdx, [0x140009ee0]
mov rcx, rdi
call sub.ntoskrnl.exe_strstr
test rax, rax
je 0x140001758
lea rdx, [0x14000ed70]
mov rcx, rdi
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x14000171f
lea rdx, [0x140009ee0]
mov rcx, rdi
call sub.ntoskrnl.exe_strstr
mov rcx, rdi
test rax, rax
jne 0x14000182c
mov r8, rbx
xor edx, edx
call fcn.1400099c0
mov r8d, esi
lea rdx, [0x14000e650]
mov rcx, rdi
mov ebx, esi
call fcn.140009700
mov qword [rsp + 0x40], r12
lea rdx, [rbp + 0x7f]
mov qword [rsp + 0x38], rdx
lea rax, [rbx + rdi]
mov ecx, r15d
xor r9d, r9d
sub ecx, esi
xor r8d, r8d
mov dword [rsp + 0x30], ecx
xor edx, edx
mov rcx, qword [rbp + 0x77]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jns 0x1400017db
mov r8d, 0x15c
jmp 0x140001709
mov rcx, qword [rbp + 0x77]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x40], r12
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], r15d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x7f], r12
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
jns 0x1400019a9
mov r8d, 0x165
lea rcx, [0x140009e80]
jmp 0x140001710
lea rdx, [0x140009ee0]
call sub.ntoskrnl.exe_strstr
test rax, rax
je 0x1400019b9
lea rdx, [0x14000ed70]
mov rcx, rdi
call sub.ntoskrnl.exe_strstr
test rax, rax
jne 0x1400019b9
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.1400099c0
mov rcx, qword [rbp + 0x77]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x40], r12
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], 0x71d
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jns 0x1400018ab
mov r8d, 0x173
jmp 0x140001709
lea rdx, str.__repcode___dddd___r_nendasdf01_RANDOM_r_nfi_r_n
mov rcx, rdi
call sub.ntoskrnl.exe_strstr
mov r12, rax
test rax, rax
jne 0x1400018ec
mov r8d, 0x17b
lea rdx, [0x140009d20]
lea rcx, [0x140009ef0]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [0x14001b9e0]
call fcn.1400082fc
jmp 0x1400019e6
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.1400099c0
mov r8d, esi
lea rdx, [0x14000e650]
mov rcx, rdi
mov ebx, esi
call fcn.140009700
lea rax, [rbp + 0x7f]
sub r12, rdi
add r12, 0x2e
lea rcx, [rbx + rdi]
mov qword [rbp + 0x7f], r12
xor r9d, r9d
xor r12d, r12d
xor r8d, r8d
mov qword [rsp + 0x40], r12
xor edx, edx
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x6f]
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp + 0x77]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jns 0x140001963
mov r8d, 0x18b
jmp 0x140001709
mov rcx, qword [rbp + 0x77]
lea rax, [rbp + 0x7f]
mov qword [rsp + 0x40], r12
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], r15d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rdi
xor edx, edx
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x7f], r12
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
test eax, eax
jns 0x1400019a9
mov r8d, 0x194
jmp 0x140001820
mov rcx, qword [rbp + 0x77]
lea rdx, [rbp - 0x29]
call qword [sym.imp.ntoskrnl.exe_ZwFlushBuffersFile]
jmp 0x1400019d2
mov r8d, 0x19c
lea rdx, [0x140009d20]
lea rcx, [0x140009f20]
call sub.ntoskrnl.exe_DbgPrint
lea rcx, [0x14001b9e0]
call fcn.1400082fc
mov r13b, 1
test rdi, rdi
je 0x1400019f4
mov edx, 0x626f7574
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp + 0x77]
test rcx, rcx
je 0x140001a07
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov qword [rbp + 0x77], r12
test r14, r14
je 0x140001a1a
mov edx, 0x626f7574
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, r13b
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret