Function at 0x140003f4c
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 - 0x78]
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 - 0x78], 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 0x140004215
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 0x14000408b
mov rcx, rsi
xor byte [rcx], 0xc1
inc edx
movsxd rax, edx
inc rcx
cmp rax, qword [rbp - 0x10]
jl 0x14000407a
lea r13, [0x140009450]
mov rcx, rsi
mov rdx, r13
sub rdx, rsi
mov al, byte [rcx]
mov byte [rdx + rcx], al
inc rcx
test al, al
jne 0x14000409b
xor r9d, r9d
lea rcx, [0x14000a550]
xor edi, edi
lea r14, [0x14000a650]
xor ebx, ebx
cmp qword [rsp + 0x70], 1
je 0x14000413f
xor edx, edx
lea rsi, [0x14000a450]
cmp byte [rdx + r13], 0xd
jne 0x140004117
lea r14, [rdx + 1]
cmp byte [r14 + r13], 0xa
jne 0x140004117
test edi, edi
jne 0x1400040e8
mov rcx, rsi
jmp 0x1400040f9
cmp edi, 1
je 0x1400040f9
cmp edi, 2
jne 0x14000410c
lea rcx, [0x14000a650]
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, [0x14000a550]
jb 0x1400040cd
mov rsi, qword [rsp + 0x78]
lea r14, [0x14000a650]
movsxd rax, r9d
cmp rax, qword [rsp + 0x70]
jae 0x140004165
cmp edi, 2
jne 0x140004165
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, [0x14000a450]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x140004173
test rax, rax
je 0x1400041a4
mov rdx, rcx
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
mov r8b, 1
lea rdx, [rsp + 0x78]
lea rcx, [0x14000ab40]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
mov rax, rbx
lea rdx, [0x14000a550]
inc rax
cmp byte [rdx + rax], 0
jne 0x1400041ae
test rax, rax
je 0x1400041da
lea rcx, [rbp - 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
mov r8b, 1
lea rdx, [rbp - 0x68]
lea rcx, [0x14000ab30]
call qword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
inc rbx
cmp byte [r14 + rbx], 0
jne 0x1400041da
test rbx, rbx
je 0x14000420a
mov rdx, r14
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitString]
mov r8b, 1
lea rdx, [rbp - 0x58]
lea rcx, [0x14000ab20]
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.140005830
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