Function at 0x1400371f0
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
push rdi
push r14
push r15
sub rsp, 0x5d0
mov rax, qword [0x140050080]
xor rax, rsp
mov qword [rsp + 0x5c0], rax
mov rdi, rcx
test byte [rcx + 0x10], 1
je 0x14003736c
cmp dword [rcx + 0x18], 6
jb 0x14003736c
cmp dword [rcx + 0x1c], 1
jb 0x14003736c
add rcx, 0x3c
mov r8d, 0x104
lea rdx, [rsp + 0xf0]
call qword [sym.imp.SHLWAPI.dll_SHAnsiToUnicode]
xor esi, esi
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], rsi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 2
mov dword [rsp + 0x80], 1
mov dword [rsp + 0x90], 1
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], rsi
mov dword [rsp + 0xac], esi
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 0x140037689
jmp 0x14003736e
xor esi, esi
mov r14d, dword [rdi + 0x10]
test r14b, 2
je 0x1400373f5
mov r11, rsi
mov r9, qword [rdi + 0x140]
mov rbx, qword [rdi + 0x148]
sub rbx, r9
sar rbx, 4
test rbx, rbx
je 0x1400373f5
lea r15, [0x140041550]
nop dword [rax]
mov ecx, dword [r9 + 8]
mov r8, qword [r9]
mov eax, 0xffffffff
test ecx, ecx
je 0x1400373dd
mov r10d, ecx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
mov ecx, eax
xor rdx, rcx
movzx ecx, dl
shr eax, 8
xor eax, dword [r15 + rcx*4]
lea r8, [r8 + 1]
sub r10, 1
jne 0x1400373c0
not eax
cmp eax, dword [r9 + 0xc]
jne 0x140037689
inc r11
add r9, 0x10
cmp r11, rbx
jb 0x1400373a0
test r14b, 4
je 0x14003761a
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140037689
mov dword [rsp + 0x44], esi
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 0x140037689
mov ecx, 0xdeadc0de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [0x140043628]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.ZwSetInformationObject
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
mov word [rsp + 0x40], 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
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 r14
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
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 [rdi + 4], 0
jne 0x140037689
cmp dword [rdi + 0x20], 0
je 0x14003757e
mov rax, qword [rdi + 0x170]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 8
lea r8, [rsp + 0x58]
lea edx, [r9 + 0x16]
lea rcx, [rdx - 0x1f]
call rax
mov ebx, 0xc0000353
cmp rax, rbx
jne 0x140037689
cmp qword [rsp + 0x58], 0
jne 0x140037689
mov edx, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x30]
call fcn.140037c10
cmp eax, dword [rdi + 0x38]
jne 0x140037689
mov rax, qword [rdi + 0x170]
lea rdx, [rsp + 0x48]
mov qword [rsp + 0x20], rdx
mov r9d, 8
lea r8, [rsp + 0x48]
lea edx, [r9 + 0x16]
lea rcx, [rdx - 0x1f]
call rax
cmp rax, rbx
jne 0x14003761a
cmp qword [rsp + 0x48], 8
jmp 0x140037618
mov rax, qword [rdi + 0x168]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 4
lea r8, [rsp + 0x58]
lea edx, [r9 + 0x1a]
mov ecx, 0xffffffff
call rax
mov ebx, 0xc0000353
cmp eax, ebx
jne 0x140037689
cmp dword [rsp + 0x58], 0
jne 0x140037689
mov edx, dword [rdi + 0x2c]
mov rcx, qword [rdi + 0x30]
call fcn.140037c10
cmp eax, dword [rdi + 0x38]
jne 0x140037689
mov rax, qword [rdi + 0x168]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rcx
mov r9d, 4
lea r8, [rsp + 0x50]
lea edx, [r9 + 0x1a]
mov ecx, 0xffffffff
call rax
cmp eax, ebx
jne 0x14003761a
cmp dword [rsp + 0x50], 4
jmp 0x140037618
jne 0x140037689
test byte [rdi + 0x10], 8
je 0x1400376b8
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rsp + 0xf0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x120], 0x100010
lea rdx, [rsp + 0xf0]
mov rcx, 0xfffffffffffffffe
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140037690
cmp qword [rsp + 0x138], 0
jne 0x140037689
cmp qword [rsp + 0x140], 0
jne 0x140037689
cmp qword [rsp + 0x148], 0
jne 0x140037689
cmp qword [rsp + 0x150], 0
je 0x140037690
mov eax, 1
jmp 0x1400376ba
lea rdx, [0x1400369f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
int3
xor eax, eax
mov rcx, qword [rsp + 0x5c0]
xor rcx, rsp
call fcn.14003d6b0
lea r11, [rsp + 0x5d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret