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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a062d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xa0
mov eax, dword [0x100bc00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], edx
mov edi, ecx
mov dword [ebp - 0x60], edi
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.10040350
mov esi, dword [ebp - 0x20]
test al, al
jne 0x10040a6e
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test esi, esi
je 0x10040a4e
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x10040a44
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040dc1
push ecx
push esi
call fcn.1009cd75
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1009c816
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, esi
mov dword [ebp - 0x5c], esi
cmp eax, dword [ebp - 0x1c]
je 0x10040d68
nop dword [eax]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
xor ecx, ecx
mov dword [ebp - 0x40], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], cx
mov byte [ebp - 4], 2
mov ecx, dword [eax]
test ecx, ecx
jne 0x10040ad7
xor edx, edx
mov edi, 0xf
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x68], edi
mov byte [ebp - 0x7c], dl
mov byte [ebp - 4], dl
jmp 0x10040cdc
movzx eax, word [ecx + 0x2c]
shr eax, 1
push eax
push dword [ecx + 0x30]
lea ecx, [ebp - 0x98]
call fcn.10047a20
push eax
lea ecx, [ebp - 0x50]
call fcn.10047990
mov ecx, dword [ebp - 0x84]
cmp ecx, 8
jb 0x10040b35
mov edx, dword [ebp - 0x98]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10040b2b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040dc1
push ecx
push edx
call fcn.1009cd75
add esp, 8
xor eax, eax
mov dword [ebp - 0x88], 0
cmp dword [ebp - 0x3c], 8
lea ecx, [ebp - 0x50]
mov word [ebp - 0x98], ax
cmovae ecx, dword [ebp - 0x50]
setae byte [ebp - 0x51]
mov eax, dword [ebp - 0x40]
cmp byte [ebp - 0x51], 0
mov dword [ebp - 0x84], 7
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x50]
cmovne ecx, dword [ebp - 0x50]
push ecx
push eax
push ecx
lea ecx, [ebp - 0xb0]
call fcn.10047b80
push eax
lea ecx, [ebp - 0x38]
call fcn.10039c60
mov ecx, dword [ebp - 0x9c]
cmp ecx, 0x10
jb 0x10040bc3
mov edx, dword [ebp - 0xb0]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10040bb9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040dc1
push ecx
push edx
call fcn.1009cd75
add esp, 8
cmp dword [ebp - 0x24], 0x10
lea edi, [ebp - 0x38]
mov esi, dword [ebp - 0x38]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x28]
setae cl
cmovae edi, esi
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0xf
mov byte [ebp - 0xb0], 0
test cl, cl
je 0x10040bfc
add eax, esi
jmp 0x10040c01
add eax, edx
lea esi, [ebp - 0x38]
mov dword [ebp - 0x58], eax
cmp esi, eax
je 0x10040c26
sub edi, esi
nop word [eax + eax]
movsx eax, byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [esi + edi], al
add esp, 4
inc esi
cmp esi, dword [ebp - 0x58]
jne 0x10040c10
movups xmm0, xmmword [ebp - 0x38]
mov eax, 0xf
mov byte [ebp - 0x38], 0
movups xmmword [ebp - 0x7c], xmm0
movq xmm0, qword [ebp - 0x28]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
movq qword [ebp - 0x6c], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], eax
cmp ecx, 8
jb 0x10040c8c
mov edx, dword [ebp - 0x50]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10040c7f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040dc1
push ecx
push edx
call fcn.1009cd75
mov eax, dword [ebp - 0x24]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], cx
mov byte [ebp - 4], cl
cmp eax, 0x10
jb 0x10040cd6
mov edx, dword [ebp - 0x38]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x10040ccc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10040dc1
push ecx
push edx
call fcn.1009cd75
add esp, 8
mov edx, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x7c]
cmp edi, 0x10
mov dword [ebp - 0x58], ecx
mov esi, 0x811c9dc5
cmovae eax, ecx
xor ecx, ecx
mov dword [ebp - 0x64], eax
test edx, edx
je 0x10040d14
mov edi, eax
nop dword [eax + eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x10040d00
mov edi, dword [ebp - 0x68]
cmp edi, 0x10
jb 0x10040d4b
mov eax, dword [ebp - 0x58]
inc edi
mov ecx, eax
cmp edi, 0x1000
jb 0x10040d41
mov eax, dword [ecx - 4]
add edi, 0x23
sub ecx, eax
mov dword [ebp - 0x58], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x10040dc1
mov eax, dword [ebp - 0x58]
push edi
push eax
call fcn.1009cd75
add esp, 8
mov eax, dword [ebp - 0x5c]
cmp esi, dword [ebp - 0x80]
je 0x10040dc7
add eax, 0xc
mov dword [ebp - 0x5c], eax
cmp eax, dword [ebp - 0x1c]
jne 0x10040a80
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x60]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
test esi, esi
je 0x10040a4e
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x10040a44
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10040a44
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edi, dword [ebp - 0x60]
movq xmm0, qword [eax]
mov esi, dword [ebp - 0x20]
movq qword [edi], xmm0
mov eax, dword [eax + 8]
mov dword [edi + 8], eax
jmp 0x10040a07