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

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rsi
push rdi
sub rsp, 0x918
mov rax, qword [0x0001a100]
xor rax, rsp
mov qword [rsp + 0x908], rax
mov dword [rsp + 0x8c8], 0
lea rdi, [rsp + 0x8cc]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
lea rdi, [rsp + 0x8d0]
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov dword [rsp + 0x480], 0
lea rdi, [rsp + 0x484]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x470], 0
mov dword [rsp + 0x474], 0
mov qword [rsp + 0x60], 0
mov byte [rsp + 0x70], 0
lea rdi, [rsp + 0x71]
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
mov byte [rsp + 0x4c0], 0
lea rdi, [rsp + 0x4c1]
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
movzx eax, byte [0x0001ae41]
test eax, eax
jne 0x13ab3
jmp 0x13d50
call fcn.00013d70
mov qword [rsp + 0x8e8], rax
lea rax, [rsp + 0x4c0]
mov qword [rsp + 0x8f0], rax
mov rax, qword [rsp + 0x8f0]
mov qword [rsp + 0x8f8], rax
mov rax, qword [rsp + 0x8e8]
movzx eax, byte [rax]
mov byte [rsp + 0x900], al
mov rcx, qword [rsp + 0x8f0]
movzx eax, byte [rsp + 0x900]
mov byte [rcx], al
mov rax, qword [rsp + 0x8e8]
add rax, 1
mov qword [rsp + 0x8e8], rax
mov rax, qword [rsp + 0x8f0]
add rax, 1
mov qword [rsp + 0x8f0], rax
cmp byte [rsp + 0x900], 0
jne 0x13ae0
lea rax, [rsp + 0x938]
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x930]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_vsprintf]
mov dword [rsp + 0x474], eax
mov qword [rsp + 0x60], 0
lea rdi, [rsp + 0x4c0]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
sub rdi, 1
lea rdx, [rsp + 0x70]
xor ecx, ecx
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx], al
add rcx, 1
test al, al
jne 0x13b89
lea rdi, [rsp + 0x4c0]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
sub rdi, 1
lea rsi, [0x00017dd0]
mov ecx, 3
rep movsb byte [rdi], byte [rsi]
xor eax, eax
mov rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x4c0]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
mov dword [rsp + 0x470], ecx
cmp qword [rsp + 0x930], 0
je 0x13d36
cmp dword [rsp + 0x470], 0
jbe 0x13d36
mov eax, 0x1c
mov word [rsp + 0x8d8], ax
mov eax, 0x1e
mov word [rsp + 0x8da], ax
lea rax, [0x00017de0]
mov qword [rsp + 0x8e0], rax
mov dword [rsp + 0x488], 0x30
mov qword [rsp + 0x490], 0
mov dword [rsp + 0x4a0], 0x240
lea rax, [rsp + 0x8d8]
mov qword [rsp + 0x498], rax
mov qword [rsp + 0x4a8], 0
mov qword [rsp + 0x4b0], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x8c8]
lea r8, [rsp + 0x488]
mov edx, 4
lea rcx, [rsp + 0x478]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x8c0], eax
cmp dword [rsp + 0x8c0], 0
jl 0x13d34
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x480]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x470]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x4c0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8c8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x478]
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov dword [rsp + 0x8c0], eax
jmp 0x13d42
lea rcx, [0x00017e00]
call sub.ntoskrnl.exe_DbgPrint
mov rcx, qword [rsp + 0x478]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x908]
xor rcx, rsp
call fcn.00017030
add rsp, 0x918
pop rdi
pop rsi
ret