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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
sub rsp, 0x60
xor r13d, r13d
mov ebp, r8d
mov r12, rdx
mov rdi, rcx
lea r9d, [r13 + 4]
mov edx, 0x2a0
mov r8d, 0x3000
xor ecx, ecx
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x58], 0x2a0
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18001e697
mov ecx, dword [0x18002dbb0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x18001e4e4
mov qword [rsp + 0x30], r13
lea rcx, str..dcrypt
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18001e527
mov ecx, dword [0x18002dbb0]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x98]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov r9d, 0xc
mov edx, 0x2201f0
mov rcx, rbx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x18001e537
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18001e537
mov rcx, qword [rsp + 0x50]
mov edx, 0x2a0
call qword [sym.imp.KERNEL32.dll_VirtualLock]
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x18001e697
test rdi, rdi
je 0x18001e55b
mov rcx, rbx
mov rdx, rdi
mov r8d, 0x104
call sub.msvcrt.dll_memcpy
mov edi, 1
lea rcx, [rsp + 0x48]
mov edx, edi
call sym.dcapi.dll_checker_dc_obtain_structure_info
cmp eax, edi
je 0x18001e69c
mov qword [rsp + 0x80], rsi
mov rsi, qword [rsp + 0x48]
or r8d, 0xffffffff
lea r10d, [rdi + 7]
lea r11, [0x180027090]
lea r9, [rsi + 1]
nop word [rax + rax]
movzx ecx, byte [r9 - 1]
movzx eax, r8b
shr r8d, 8
xor rcx, rax
add r9, 4
mov edx, dword [r11 + rcx*4]
movzx ecx, byte [r9 - 4]
xor edx, r8d
movzx eax, 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 0x18001e5a0
mov ecx, dword [0x18002dbb0]
mov eax, 0x10624dd3
mov dword [rbx + 0x28a], ebp
mul r8d
shr edx, 6
imul edx, edx, 0x3e8
sub r8d, edx
mov dword [rbx + 0x29c], r8d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], r13
mov rcx, rax
lea rax, [rsp + 0x40]
mov r9d, 0x2a0
mov qword [rsp + 0x30], rax
mov r8, rbx
mov edx, 0x2201a0
mov dword [rsp + 0x28], 0x2a0
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ebp, eax
test rsi, rsi
je 0x18001e671
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rsi, qword [rsp + 0x80]
test ebp, ebp
je 0x18001e68d
mov eax, dword [rbx + 0x292]
mov edi, dword [rbx + 0x28e]
mov dword [r12], eax
mov rcx, rbx
call sym.dcapi.dll_secure_free
jmp 0x18001e69c
mov edi, 9
lea r11, [rsp + 0x60]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret