Function at 0x14003f540
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x14009fef0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x108]
mov r14d, r8d
mov qword [rsp + 0x68], rax
lea ebp, [r8 + r8*2]
mov dword [rsp + 0x40], r9d
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x44], edx
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x78], 0x474e5089
mov dword [rsp + 0x7c], 0xa1a0a0d
test edx, edx
jne 0x14003f5a2
mov dword [rsp + 0x44], ebp
lea r15d, [rbp + 1]
mov qword [rsp + 0xa0], rdi
mov eax, r9d
mov dword [rsp + 0x50], r15d
mul r15d
mov rbx, 0xffffffffffffffff
mov ecx, eax
cmovo rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x60], rax
mov r12, rax
test rax, rax
je 0x14003f5fe
mov eax, 3
mul r14d
mov ecx, eax
cmovo rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x14003f629
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14005bb20
add rsp, 0xa8
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
mov eax, dword [rsp + 0x40]
xor edi, edi
mov qword [rsp + 0x98], r13
mov r13d, edi
test eax, eax
jle 0x14003f802
movsxd r14, ebp
mov dword [rsp + 0x4c], edi
nop dword [rax]
mov r12d, edi
mov r15d, 0x7fffffff
mov esi, edi
nop dword [rax + rax]
mov r8d, dword [rsp + 0x48]
mov r9d, eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x20], r13d
call fcn.14003f1f0
mov r10d, edi
mov rcx, rdi
test ebp, ebp
jle 0x14003f70f
cmp ebp, 8
jb 0x14003f70f
cmp dword [0x14009ff00], 2
jl 0x14003f70f
mov edx, ebp
xorps xmm3, xmm3
xorps xmm4, xmm4
and edx, 0x80000007
jge 0x14003f6b7
dec edx
or edx, 0xfffffff8
inc edx
mov eax, ebp
sub eax, edx
movsxd rdx, eax
nop
pmovsxbd xmm1, dword [rcx + rbx]
pabsd xmm2, xmm1
pmovsxbd xmm1, dword [rcx + rbx + 4]
paddd xmm3, xmm2
add rcx, 8
pabsd xmm2, xmm1
paddd xmm2, xmm4
movdqa xmm4, xmm2
cmp rcx, rdx
jl 0x14003f6c0
paddd xmm3, xmm2
movdqa xmm0, xmm3
psrldq xmm0, 8
paddd xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
paddd xmm3, xmm0
movd r10d, xmm3
mov r8d, edi
mov r9d, edi
cmp rcx, r14
jge 0x14003f76a
mov rax, r14
sub rax, rcx
cmp rax, 2
jl 0x14003f757
lea r11, [r14 - 1]
nop word [rax + rax]
movsx eax, byte [rcx + rbx]
cdq
xor eax, edx
sub eax, edx
add r8d, eax
movsx eax, byte [rcx + rbx + 1]
cdq
add rcx, 2
xor eax, edx
sub eax, edx
add r9d, eax
cmp rcx, r11
jl 0x14003f730
cmp rcx, r14
jge 0x14003f763
movsx eax, byte [rcx + rbx]
cdq
xor eax, edx
sub eax, edx
add r10d, eax
lea eax, [r9 + r8]
add r10d, eax
cmp r10d, r15d
mov eax, esi
cmovge eax, r12d
inc esi
cmp r10d, r15d
mov r12d, eax
mov eax, dword [rsp + 0x40]
cmovge r10d, r15d
mov r15d, r10d
cmp esi, 5
jl 0x14003f660
cmp esi, r12d
je 0x14003f7bc
mov r8d, dword [rsp + 0x48]
mov r9d, eax
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x20], r13d
call fcn.14003f1f0
mov esi, r12d
mov r12, qword [rsp + 0x60]
mov r8, r14
movsxd r15, dword [rsp + 0x4c]
mov rdx, rbx
lea rcx, [r12 + 1]
add rcx, r15
mov byte [r15 + r12], sil
call sub.VCRUNTIME140.dll_memmove
lea eax, [rbp + 1]
inc r13d
add r15d, eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x4c], r15d
cmp r13d, eax
jl 0x14003f650
mov r14d, dword [rsp + 0x48]
mov r15d, dword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [rsp + 0x40]
lea r8, [rsp + 0x70]
imul r15d, esi
mov r9d, 8
mov rcx, r12
mov edx, r15d
call fcn.14003def0
mov rcx, r12
mov rbp, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r13, qword [rsp + 0x98]
test rbp, rbp
je 0x14003f5fe
mov ecx, dword [rsp + 0x70]
mov rax, 0xffffffffffffffff
add ecx, 0x2d
add ecx, 0xc
cmovb rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
je 0x14003f5fe
mov eax, dword [rsp + 0x70]
lea rbx, [r15 + 0x1a]
mov rcx, qword [rsp + 0x68]
add eax, 0x39
mov dword [rcx], eax
mov rax, qword [rsp + 0x78]
mov qword [r15], rax
mov eax, r14d
sar eax, 0x18
mov byte [r15 + 0x10], al
mov eax, r14d
sar eax, 0x10
mov byte [r15 + 0x11], al
mov eax, r14d
sar eax, 8
mov byte [r15 + 0x12], al
mov eax, esi
sar eax, 0x18
mov byte [r15 + 0x14], al
mov eax, esi
sar eax, 0x10
mov byte [r15 + 0x15], al
mov eax, esi
sar eax, 8
mov byte [r15 + 0x16], al
mov byte [r15 + 0x17], sil
lea rsi, [0x140070330]
mov dword [r15 + 8], 0xd000000
mov dword [r15 + 0xc], 0x52444849
mov byte [r15 + 0x13], r14b
mov dword [r15 + 0x18], 0x208
mov byte [r15 + 0x1c], dil
movzx eax, byte [r15 + 0xc]
not al
movzx ecx, al
movzx eax, byte [rbx - 0xd]
mov edx, dword [rsi + rcx*4]
xor edx, 0xffffff
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx - 0xc]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx - 0xb]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx - 0xa]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx - 9]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx - 8]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx - 7]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx - 6]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx - 5]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
movzx eax, byte [rbx - 4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx - 3]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx - 2]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
xor edx, dword [rsi + rcx*4]
mov eax, edx
shr edx, 8
xor rax, 2
movzx ecx, al
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
shr edx, 8
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
shr edx, 8
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
shr edx, 8
xor edx, dword [rsi + rcx*4]
not edx
mov byte [rbx + 6], dl
mov eax, edx
shr eax, 0x18
mov byte [rbx + 3], al
mov eax, edx
shr eax, 0x10
mov byte [rbx + 4], al
mov eax, edx
shr eax, 8
mov rdx, rbp
mov byte [rbx + 5], al
mov eax, dword [rsp + 0x70]
sar eax, 0x18
mov byte [rbx + 7], al
mov eax, dword [rsp + 0x70]
sar eax, 0x10
mov byte [rbx + 8], al
mov eax, dword [rsp + 0x70]
sar eax, 8
mov byte [rbx + 9], al
movzx eax, byte [rsp + 0x70]
mov byte [rbx + 0xa], al
mov dword [rbx + 0xb], 0x54414449
add rbx, 0xf
movsxd r8, dword [rsp + 0x70]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
movsxd rax, dword [rsp + 0x70]
mov rcx, rbp
add rbx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movsxd rcx, dword [rsp + 0x70]
mov r8d, 0xffffffff
lea eax, [rcx + 4]
movsxd r10, eax
test eax, eax
jle 0x14003fa9c
mov rax, rbx
sub rax, rcx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [rdi + rax - 4]
inc rdi
movzx ecx, r8b
xor rdx, rcx
shr r8d, 8
xor r8d, dword [rsi + rdx*4]
cmp rdi, r10
jl 0x14003fa80
mov rdx, qword [0x140070608]
not r8d
xor edx, 0xffffff
mov byte [rbx + 3], r8b
movzx ecx, dl
mov eax, r8d
shr eax, 0x18
mov byte [rbx], al
mov eax, r8d
shr eax, 0x10
mov byte [rbx + 1], al
mov eax, r8d
mov dword [rbx + 4], 0
mov dword [rbx + 8], 0x444e4549
shr edx, 8
shr eax, 8
mov byte [rbx + 2], al
movzx eax, byte [rbx + 9]
xor rcx, rax
movzx eax, byte [rbx + 0xa]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rbx + 0xb]
xor edx, dword [rsi + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, r15
xor edx, dword [rsi + rcx*4]
not edx
mov ecx, edx
mov byte [rbx + 0xf], dl
shr ecx, 0x18
mov byte [rbx + 0xc], cl
mov ecx, edx
shr ecx, 0x10
mov byte [rbx + 0xd], cl
mov ecx, edx
shr ecx, 8
mov byte [rbx + 0xe], cl
jmp 0x14003f600