Function at 0x403520
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1c8
push esi
push edi
push 0x30
lea eax, [esp + 0x54]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x30], esi
call sub.VCRUNTIME140.dll_memset
mov edi, dword [ebp + 8]
lea edx, [esp + 0x8c]
mov ecx, dword [esi]
add esp, 8
push 0x40
push 0
push edi
call fcn.0040ca50
mov eax, dword [esp + 0xbc]
cdq
push ecx
mov ecx, dword [esi]
add eax, edi
push 0xf8
adc edx, 0
push edx
push eax
lea edx, [esp + 0xe8]
call fcn.0040ca50
cmp dword [ebp + 0x14], edi
mov ecx, edi
mov esi, dword [esp + 0x128]
cmovae ecx, dword [ebp + 0x14]
push esi
mov dword [esp + 0x2c], ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [esp + 0x28]
mov edx, eax
push esi
push 0
push edi
mov ecx, dword [ecx]
mov dword [esp + 0x30], eax
call fcn.0040ca50
mov eax, dword [esp + 0x28]
sub eax, edi
mov byte [esp + 0x13], 1
xor ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
cmp eax, esi
jae 0x403819
mov eax, dword fs:[0x2c]
xorps xmm0, xmm0
mov edi, dword [ebp + 0x10]
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x40], xmm0
mov ecx, dword [eax]
lea eax, [esp + 0x50]
cdq
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
nop word [eax + eax]
mov eax, dword [esp + 0x24]
mov esi, dword [eax]
mov eax, dword [0x509f90]
cmp eax, dword [ecx + 4]
jle 0x4036f0
push 0x509f90
call fcn.0040fcde
add esp, 4
cmp dword [0x509f90], 0xffffffff
jne 0x4036f0
mov ecx, 0x811c9dc5
xor edx, edx
nop dword [eax + eax]
movzx eax, byte [edx + str.NtQueryVirtualMemory]
xor eax, ecx
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 0x412a95]
xor ecx, eax
movzx eax, byte [edx + 0x412a96]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0x412a97]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0x412a98]
imul ecx, ecx, 0x1000193
add edx, 5
xor ecx, eax
imul ecx, ecx, 0x1000193
cmp edx, 0x14
jb 0x403640
lea eax, [esp + 0x80]
push eax
call fcn.0040c4f0
push 0x509f90
movups xmm0, xmmword [eax]
movups xmmword [0x50a1c8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [0x50a1d8], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [0x50a1e8], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [0x50a1f8], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [0x50a208], xmm0
movq xmm0, qword [eax + 0x50]
movq qword [0x50a218], xmm0
call fcn.0040fc94
add esp, 4
push dword [esp + 0x44]
mov eax, esi
mov ecx, 0
push dword [esp + 0x44]
mov esi, dword [ebp + 8]
add esi, dword [esp + 0x20]
push 0
adc ecx, dword [esp + 0x28]
push 0x30
push dword [esp + 0x3c]
cdq
push dword [esp + 0x44]
push dword [esp + 0x64]
push dword [esp + 0x64]
push ecx
push esi
push edx
push eax
push dword [0x50a218]
call fcn.0040dbc0
add esp, 0x34
cmp dword [esp + 0x70], 0x10000
je 0x4037e9
mov edx, dword [esp + 0x50]
xor esi, esi
sub edx, dword [ebp + 8]
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x50]
cmp byte [esp + 0x13], 0
mov eax, dword [esp + 0x68]
cmovne esi, ecx
mov dword [esp + 0x14], 0
mov ecx, dword [esp + 0x6c]
sub eax, edi
mov dword [esp + 0x38], eax
sbb ecx, 0
mov dword [esp + 0x34], ecx
cmp dword [esp + 0x14], ecx
ja 0x4037e9
jb 0x403781
cmp esi, eax
jae 0x4037e9
mov ecx, dword [esp + 0x20]
add ecx, edx
mov dword [esp + 0x14], ecx
nop dword [eax + eax]
xor eax, eax
test edi, edi
je 0x4037b4
lea edx, [ecx + esi]
nop dword [eax]
mov ecx, dword [ebp + 0xc]
mov cl, byte [eax + ecx]
test cl, cl
je 0x4037ae
cmp byte [edx], cl
jne 0x4037cf
inc eax
inc edx
cmp eax, edi
jb 0x4037a0
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [esp + 0x54]
add esp, 4
add eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x14]
xor eax, eax
inc esi
mov byte [esp + 0x13], 0
cmp eax, dword [esp + 0x34]
jb 0x403790
ja 0x4037e9
cmp esi, dword [esp + 0x38]
jb 0x403790
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x1c]
adc ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test ecx, ecx
ja 0x403819
jb 0x403810
cmp eax, dword [esp + 0x128]
jae 0x403819
mov ecx, dword [esp + 0x3c]
jmp 0x403600
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10