Function at 0x140033b80
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14009e018]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov r15, r8
mov qword [rsp + 0x60], r8
mov rdi, rdx
mov rbp, rcx
lea rbx, [rcx + 0x10]
mov qword [rsp + 0x50], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xor esi, esi
mov r9d, esi
movzx eax, word [rdi]
test ax, ax
je 0x140033c06
nop dword [rax]
rol r9d, 0x10
movzx eax, ax
add r9d, eax
lea rdi, [rdi + 2]
movzx eax, word [rdi]
test ax, ax
jne 0x140033bf0
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rcx + 8]
mov rax, rcx
cmp byte [rdx + 0x19], sil
jne 0x140033c2f
cmp dword [rdx + 0x20], r9d
jae 0x140033c23
mov rdx, qword [rdx + 0x10]
jmp 0x140033c29
mov rax, rdx
mov rdx, qword [rdx]
cmp byte [rdx + 0x19], sil
je 0x140033c17
cmp rax, rcx
je 0x140033c3a
cmp r9d, dword [rax + 0x20]
jae 0x140033c3d
mov rax, rcx
cmp rax, rcx
je 0x140033dcf
mov rcx, qword [rax + 0x28]
cmp byte [rcx + 0x100], 0x99
jne 0x140033dcf
mov r14, qword [rcx + 0x101]
mov rax, qword [r15]
lea rdx, [0x140077d78]
mov rcx, r15
call qword [rax + 0x38]
mov r12d, esi
cmp dword [r14], esi
jbe 0x140033dd4
mov ecx, 0x20e66881
call fcn.140031380
mov rbp, rax
movdqa xmm6, xmmword [0x1400934f0]
mov r15d, esi
mov r9d, 0x5017
mov rbx, qword [rsp + 0x60]
nop dword [rax]
mov eax, r15d
lea r13, [r14 + rax*4]
lea eax, [r15 + 1]
lea rdi, [r14 + rax*4]
test r12d, r12d
je 0x140033cf3
mov ecx, 0xff4be8b4
call fcn.140031280
mov rcx, rax
movzx eax, word [rax]
xor ax, r9w
mov word [rsp + 0x60], ax
movzx eax, word [rcx + 2]
xor ax, r9w
mov word [rsp + 0x62], ax
mov word [rsp + 0x64], si
mov rax, qword [rbx]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [rax + 0x30]
mov r9d, 0x5017
mov rdx, rsi
lea rcx, [rsp + 0x68]
lea rax, [rbp + 0x30]
cmp rcx, rax
ja 0x140033d11
lea rax, [rsp + 0x98]
cmp rax, rbp
jae 0x140033d38
movdqu xmm0, xmmword [rbp]
movdqa xmm1, xmm6
pxor xmm1, xmm0
movdqu xmmword [rsp + 0x68], xmm1
movdqu xmm0, xmmword [rbp + 0x10]
pxor xmm0, xmm6
movdqu xmmword [rsp + 0x78], xmm0
mov edx, 0x10
lea rax, [rsp + 0x68]
mov r8, rbp
sub r8, rax
lea rax, [r8 + rdx*2]
movzx ecx, word [rsp + rax + 0x68]
xor cx, r9w
mov word [rsp + rdx*2 + 0x68], cx
inc rdx
cmp rdx, 0x19
jb 0x140033d43
mov word [rsp + 0x9a], si
movzx eax, byte [rdi + 4]
movzx ecx, byte [rdi + 5]
movzx edx, byte [rdi + 6]
movzx r10d, byte [rdi + 7]
movzx r11d, byte [r13 + 4]
movzx edi, byte [r13 + 5]
movzx r9d, byte [r13 + 6]
movzx r8d, byte [r13 + 7]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], edi
lea rdx, [rsp + 0x68]
mov rcx, rbx
call fcn.140030e30
inc r12d
add r15d, 2
cmp r12d, dword [r14]
mov r9d, 0x5017
jb 0x140033ca0
mov rbx, qword [rsp + 0x50]
jmp 0x140033dd4
mov esi, 0xe0010001
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov eax, esi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140051aa0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret