Function at 0x140022530
Capabilities:
Check for debugger via api
Encode data using xor
Hash data with crc32
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x5d0
mov rax, qword [0x14006a020]
xor rax, rsp
mov qword [rsp + 0x5c0], rax
mov rsi, rcx
test byte [rcx + 0x10], 1
je 0x1400226b4
cmp dword [rcx + 0x18], 6
jb 0x1400226b4
cmp dword [rcx + 0x1c], 1
jb 0x1400226b4
add rcx, 0x3c
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_SHAnsiToUnicode]
xor r12d, r12d
mov qword [rsp + 0xc0], 0x20
lea rax, [rsp + 0xf0]
mov qword [rsp + 0xc8], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xd0], xmm0
mov dword [rsp + 0xe0], 0xaac56b
mov dword [rsp + 0xe4], 0x11d0cd44
mov dword [rsp + 0xe8], 0xc000c28c
mov dword [rsp + 0xec], 0xee95c24f
xor eax, eax
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x60], 0x58
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], 2
mov dword [rsp + 0x80], 1
mov dword [rsp + 0x90], 1
mov qword [rsp + 0x98], r12
mov qword [rsp + 0xa0], r12
mov dword [rsp + 0xac], r12d
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x88], rax
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.WINTRUST.dll_WinVerifyTrust]
mov ebx, eax
mov dword [rsp + 0x90], 2
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.WINTRUST.dll_WinVerifyTrust]
test ebx, ebx
jne 0x140022a5d
jmp 0x1400226b7
xor r12d, r12d
mov r15d, dword [rsi + 0x10]
test r15b, 2
je 0x140022737
mov r11, r12
mov r9, qword [rsi + 0x140]
mov rbx, qword [rsi + 0x148]
sub rbx, r9
sar rbx, 4
test rbx, rbx
je 0x140022737
mov edi, 0xffffffff
lea r14, [0x1400607b0]
nop word [rax + rax]
mov ecx, dword [r9 + 8]
mov r8, qword [r9]
mov eax, edi
test ecx, ecx
je 0x14002271d
mov r10d, ecx
movzx edx, byte [r8]
mov ecx, eax
xor rdx, rcx
movzx ecx, dl
shr eax, 8
xor eax, dword [r14 + rcx*4]
lea r8, [r8 + 1]
sub r10, 1
jne 0x140022700
not eax
cmp eax, dword [r9 + 0xc]
jne 0x140022a5d
inc r11
add r9, 0x10
cmp r11, rbx
jb 0x1400226f0
jmp 0x140022743
mov edi, 0xffffffff
lea r14, [0x1400607b0]
test r15b, 4
je 0x1400229c5
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140022a5d
mov dword [rsp + 0x44], r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [rsp + 0x44], 0
jne 0x140022a5d
mov ecx, 0xdeadc0de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.ZwSetInformationObject
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
mov word [rsp + 0x40], 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0xe0]
mov r8, rax
mov rdx, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov r9d, 2
lea r8, [rsp + 0x40]
lea edx, [r9 + 2]
mov rcx, qword [rsp + 0xe0]
call r15
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0xe0]
mov r8, rbx
mov rdx, qword [rsp + 0xe0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
nop
cmp dword [rsi + 4], 0
jne 0x140022a5d
cmp dword [rsi + 0x20], 0
je 0x1400228fd
mov rax, qword [rsi + 0x170]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 8
lea r8, [rsp + 0x50]
lea edx, [r9 + 0x16]
lea rcx, [rdx - 0x1f]
call rax
mov ebx, 0xc0000353
cmp rax, rbx
jne 0x140022a5d
cmp qword [rsp + 0x50], 0
jne 0x140022a5d
mov eax, dword [rsi + 0x2c]
test eax, eax
je 0x1400228ad
mov r8, qword [rsi + 0x30]
mov r10d, eax
nop dword [rax]
movzx ecx, byte [r8]
mov eax, edi
xor rcx, rax
movzx eax, cl
shr edi, 8
xor edi, dword [r14 + rax*4]
lea r8, [r8 + 1]
sub r10, 1
jne 0x140022890
not edi
cmp edi, dword [rsi + 0x38]
jne 0x140022a5d
mov rax, qword [rsi + 0x170]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov r9d, 8
lea r8, [rsp + 0x58]
lea edx, [r9 + 0x16]
lea rcx, [rdx - 0x1f]
call rax
cmp rax, rbx
jne 0x1400229c5
cmp qword [rsp + 0x58], 8
je 0x1400229c5
mov eax, 1
jmp 0x140022a66
mov rax, qword [rsi + 0x168]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9d, 4
lea r8, [rsp + 0x50]
lea edx, [r9 + 0x1a]
mov ecx, edi
call rax
mov ebx, 0xc0000353
cmp eax, ebx
jne 0x140022a5d
cmp dword [rsp + 0x50], 0
jne 0x140022a5d
mov edx, edi
mov eax, dword [rsi + 0x2c]
test eax, eax
je 0x14002296d
mov r8, qword [rsi + 0x30]
mov r10d, eax
nop dword [rax]
mov ecx, edx
movzx eax, byte [r8]
xor rcx, rax
movzx eax, cl
shr edx, 8
xor edx, dword [r14 + rax*4]
lea r8, [r8 + 1]
sub r10, 1
jne 0x140022950
not edx
cmp edx, dword [rsi + 0x38]
jne 0x140022a5d
mov rax, qword [rsi + 0x168]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 4
lea r8, [rsp + 0x48]
lea edx, [r9 + 0x1a]
mov ecx, edi
call rax
cmp eax, ebx
jne 0x1400229c5
cmp dword [rsp + 0x48], 4
je 0x1400229c5
mov eax, 1
jmp 0x140022a66
test byte [rsi + 0x10], 8
je 0x140022a64
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rsp + 0xf0]
call fcn.1400284a0
mov dword [rsp + 0x120], 0x100010
lea rdx, [rsp + 0xf0]
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140022a34
cmp qword [rsp + 0x138], 0
jne 0x140022a5d
cmp qword [rsp + 0x140], 0
jne 0x140022a5d
cmp qword [rsp + 0x148], 0
jne 0x140022a5d
cmp qword [rsp + 0x150], 0
jne 0x140022a5d
lea rdx, [0x140021d30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov rcx, rsi
call 0x140021d20
lea rcx, [0x140021d30]
call qword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
cmp dword [rsi], 0
je 0x140022a64
mov eax, 1
jmp 0x140022a66
xor eax, eax
mov rcx, qword [rsp + 0x5c0]
xor rcx, rsp
call fcn.140025910
lea r11, [rsp + 0x5d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret