Function at 0x140003d5c
Capabilities:
Encode data using xor
Get file attributes
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r13
push r14
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp], rax
and dword [rsp + 0x50], 0
lea rax, [rbp - 0x58]
and qword [rsp + 0x48], 0
lea r9, [rsp + 0x68]
movups xmm0, xmmword [rcx]
and qword [rbp - 0x40], 0
lea r8, [rbp - 0x48]
mov dword [rsp + 0x40], 0x20
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x38], 1
mov edx, 0x80000000
movdqu xmmword [rbp - 0x58], xmm0
mov dword [rsp + 0x30], 1
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], 0
movdqu xmmword [rbp - 0x28], xmm0
mov dword [rbp - 0x48], 0x30
mov dword [rbp - 0x30], 0x40
mov qword [rbp - 0x38], rax
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x14000402b
mov rcx, qword [rsp + 0x60]
lea r8, [rbp - 0x18]
mov r9d, 0x18
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
movsxd rdx, dword [rbp - 0x10]
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
and qword [rsp + 0x40], 0
xor r9d, r9d
and qword [rsp + 0x38], 0
mov rsi, rax
mov ecx, dword [rbp - 0x10]
xor r8d, r8d
mov dword [rsp + 0x30], ecx
xor edx, edx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
cmp qword [rbp - 0x10], rdx
jle 0x140003e9b
mov rcx, rsi
xor byte [rcx], 0xc1
inc edx
movsxd rax, edx
inc rcx
cmp rax, qword [rbp - 0x10]
jl 0x140003e8a
lea r13, [0x140008450]
mov rcx, rsi
mov rdx, r13
sub rdx, rsi
mov al, byte [rcx]
mov byte [rdx + rcx], al
inc rcx
test al, al
jne 0x140003eab
xor r9d, r9d
lea rcx, [0x140009550]
xor edi, edi
lea r14, [0x140009650]
xor ebx, ebx
cmp qword [rsp + 0x70], 1
je 0x140003f4f
xor edx, edx
lea rsi, [0x140009450]
cmp byte [rdx + r13], 0xd
jne 0x140003f27
lea r14, [rdx + 1]
cmp byte [r14 + r13], 0xa
jne 0x140003f27
test edi, edi
jne 0x140003ef8
mov rcx, rsi
jmp 0x140003f09
cmp edi, 1
je 0x140003f09
cmp edi, 2
jne 0x140003f1c
lea rcx, [0x140009650]
mov eax, ebx
movsxd rdx, r9d
sub eax, r9d
add rdx, r13
movsxd r8, eax
call sub.ntoskrnl.exe_strncpy
inc edi
mov rdx, r14
inc ebx
lea r9d, [rbx + 1]
mov rcx, qword [rsp + 0x70]
inc ebx
dec rcx
movsxd rax, ebx
inc rdx
cmp rax, rcx
lea rcx, [0x140009550]
jb 0x140003edd
mov rsi, qword [rsp + 0x78]
lea r14, [0x140009650]
movsxd rax, r9d
cmp rax, qword [rsp + 0x70]
jae 0x140003f75
cmp edi, 2
jne 0x140003f75
lfence
mov r8, qword [rsp + 0x70]
lea rdx, [rax + r13]
sub r8, rax
mov rcx, r14
call sub.ntoskrnl.exe_strncpy
or rbx, 0xffffffffffffffff
lea rcx, [0x140009450]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x140003f83
mov edi, 0x100
test rax, rax
je 0x140003fb9
mov qword [rbp - 0x80], rcx
lea rdx, [rsp + 0x78]
lea rcx, [0x140009b40]
mov word [rsp + 0x78], ax
mov r8b, 1
mov word [rsp + 0x7a], di
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov rax, rbx
lea rcx, [0x140009550]
inc rax
cmp byte [rcx + rax], 0
jne 0x140003fc3
test rax, rax
je 0x140003ff1
mov qword [rbp - 0x70], rcx
lea rdx, [rbp - 0x78]
lea rcx, [0x140009b30]
mov word [rbp - 0x78], ax
mov r8b, 1
mov word [rbp - 0x76], di
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x140003ff1
test rbx, rbx
je 0x140004020
mov r8b, 1
mov qword [rbp - 0x60], r14
lea rdx, [rbp - 0x68]
mov word [rbp - 0x68], bx
lea rcx, [0x140009b20]
mov word [rbp - 0x66], di
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140005640
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret