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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d3ba3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1021b380]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [0x107001f0]
add eax, 0xd5bd03c9
xor eax, 0xde9a561b
mov edx, dword [eax + 0x14c]
mov dword [ebp - 0x24], edx
mov edx, dword [edx + 0x25c]
cmp edx, 9
je 0x101285d3
cmp edx, 8
je 0x101285d3
cmp byte [0x1029d175], 0
je 0x101285d3
cmp byte [ecx], 0
jne 0x10128422
cmp byte [ecx + 1], 0
je 0x10128422
mov byte [ecx + 1], 0
mov eax, dword [0x107001f0]
add eax, 0xd5bd03c9
xor eax, 0xde9a561b
mov eax, dword [eax + 0x158]
or dword [eax + 0x30], 2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0x158]
mov eax, dword [eax + 0x30]
shr eax, 1
test al, 1
je 0x101285ce
mov eax, dword [0x102b7078]
test al, 1
jne 0x10128574
or eax, 1
mov dword [0x102b7078], eax
mov dword [ebp - 4], 0
mov ebx, dword [0x102b3e88]
cmp ebx, dword [0x102b3e8c]
je 0x101284a4
nop
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10128499
mov esi, dword [eax + 0xc]
mov edi, 0x811c9dc5
xor eax, eax
inc eax
cmp byte [eax + esi], 0
jne 0x10128473
xor edx, edx
test eax, eax
je 0x10128499
movsx ecx, byte [edx + esi]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, eax
jb 0x10128480
cmp edi, 0x72e242a1
je 0x101284b3
add ebx, 4
cmp ebx, dword [0x102b3e8c]
jne 0x10128460
mov ecx, dword [ebp - 0x20]
xor eax, eax
mov dword [0x102b5780], eax
jmp 0x10128579
mov eax, dword [ebp - 0x10]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp dword [eax + 4], ebx
jle 0x10128558
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
nop dword [eax]
mov edi, dword [eax]
add edi, ecx
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x10128501
cmp dword [ecx + 4], 0
jle 0x10128501
push 0
mov edx, 0xa4a37590
call fcn.1012aec0
add esp, 4
test eax, eax
je 0x101284fe
mov ecx, dword [edi + 0x2c]
add ecx, eax
add ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x10]
mov esi, dword [edi]
mov ebx, 0x811c9dc5
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp byte [ecx + esi], 0
jne 0x10128510
xor edx, edx
test ecx, ecx
je 0x1012853c
nop dword [eax]
movsx eax, byte [edx + esi]
inc edx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp edx, ecx
jb 0x10128520
cmp ebx, 0xa4a37590
je 0x10128564
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
inc edx
mov ebx, dword [ebp - 0x14]
add ecx, 0x3c
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ecx
cmp edx, dword [eax + 4]
jl 0x101284d0
mov ecx, dword [ebp - 0x20]
mov eax, ebx
mov dword [0x102b5780], eax
jmp 0x10128579
mov eax, dword [edi + 0x2c]
add eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [0x102b5780], eax
jmp 0x10128579
mov eax, dword [0x102b5780]
mov edx, dword [ebp - 0x24]
test byte [edx + eax], 1
je 0x1012859c
mov al, 1
mov byte [ecx + 1], 1
mov byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x107001f0]
add eax, 0xd5bd03c9
xor eax, 0xde9a561b
mov eax, dword [eax + 0x158]
and dword [eax + 0x30], 0xfffffffd
add eax, 0x30
xor al, al
mov byte [ecx], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov word [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret