Function at 0x18001e6c0
Capabilities:
Encode data using xor
Get thread local storage value
Hash data with crc32
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x60
xor r14d, r14d
mov esi, r9d
mov r13d, r8d
mov r12, rdx
mov rbx, rcx
lea r9d, [r14 + 4]
mov r8d, 0x3000
mov edx, 0x2a0
xor ecx, ecx
mov ebp, r14d
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x58], 0x2a0
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18001e93e
mov ecx, dword [0x18002dbb0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
jne 0x18001e775
mov qword [rsp + 0x30], r14
lea rcx, str..dcrypt
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18001e7b5
mov ecx, dword [0x18002dbb0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov r9d, 0xc
mov edx, 0x2201f0
mov rcx, rdi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x18001e7c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18001e7c5
mov rcx, qword [rsp + 0x50]
mov edx, 0x2a0
call qword [sym.imp.KERNEL32.dll_VirtualLock]
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x18001e93e
lea rcx, [rdi + 0x208]
nop word [rax + rax]
movzx eax, word [rbx]
add rcx, 2
add rbx, 2
mov word [rcx - 2], ax
test ax, ax
jne 0x18001e7e0
mov dword [rdi + 0x28a], r13d
test r12, r12
je 0x18001e811
mov rcx, rdi
mov rdx, r12
mov r8d, 0x104
call sub.msvcrt.dll_memcpy
mov ebx, 1
cmp esi, 0xffffffff
jne 0x18001e8cd
lea rcx, [rsp + 0x48]
mov edx, ebx
call sym.dcapi.dll_checker_dc_obtain_structure_info
cmp eax, ebx
je 0x18001e943
mov rbp, qword [rsp + 0x48]
or r8d, 0xffffffff
lea r10d, [rbx + 7]
lea r9, [rbp + 1]
lea r11, [0x180027090]
nop dword [rax + rax]
movzx ecx, byte [r9 - 1]
movzx eax, r8b
shr r8d, 8
xor rcx, rax
movzx eax, byte [r9]
add r9, 4
mov edx, dword [r11 + rcx*4]
xor edx, r8d
movzx ecx, dl
shr edx, 8
xor rcx, rax
mov r8d, dword [r11 + rcx*4]
movzx ecx, byte [r9 - 3]
xor r8d, edx
movzx eax, r8b
shr r8d, 8
xor rcx, rax
mov edx, dword [r11 + rcx*4]
movzx ecx, byte [r9 - 2]
xor edx, r8d
movzx eax, dl
shr edx, 8
xor rcx, rax
mov r8d, dword [r11 + rcx*4]
xor r8d, edx
dec r10
jne 0x18001e850
mov eax, 0x10624dd3
mul r8d
shr edx, 6
imul edx, edx, 0x3e8
sub r8d, edx
mov dword [rdi + 0x29c], r8d
jmp 0x18001e8db
or eax, 0xffffffff
test esi, esi
cmove esi, eax
mov dword [rdi + 0x29c], esi
mov ecx, dword [0x18002dbb0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], r14
mov r9d, 0x2a0
mov rcx, rax
lea rax, [rsp + 0x44]
mov r8, rdi
mov qword [rsp + 0x30], rax
mov edx, 0x22019c
mov dword [rsp + 0x28], 0x2a0
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov esi, eax
test rbp, rbp
je 0x18001e92a
mov rcx, rbp
call qword [sym.imp.msvcrt.dll_free]
test esi, esi
je 0x18001e934
mov ebx, dword [rdi + 0x28e]
mov rcx, rdi
call sym.dcapi.dll_secure_free
jmp 0x18001e943
mov ebx, 9
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret