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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1013e7e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.1006c5b0
push 0
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x74]
mov eax, dword [edi]
push 0x10195180
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
call fcn.100512a0
mov edx, dword [ebp + 0x18]
mov ecx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10066210
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.100512a0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x34]
test edx, edx
je 0x100662ec
mov ebx, dword [ebp - 0x30]
lea ecx, [ebp - 0x44]
cmp ebx, 8
lea eax, [edx - 1]
cmovae ecx, dword [ebp - 0x44]
or esi, 0xffffffff
cmp eax, esi
cmovb esi, eax
cmp word [ecx + esi*2], 0x5c
lea eax, [ecx + esi*2]
je 0x1006626d
nop word [eax + eax]
cmp eax, ecx
je 0x10066276
sub eax, 2
cmp word [eax], 0x5c
jne 0x10066260
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x100662a6
cmp ebx, 8
lea ecx, [ebp - 0x44]
cmovae ecx, dword [ebp - 0x44]
cmp word [ecx + esi*2], 0x2f
lea eax, [ecx + esi*2]
je 0x1006629d
nop word [eax + eax]
cmp eax, ecx
je 0x100662ec
sub eax, 2
cmp word [eax], 0x2f
jne 0x10066290
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x100662ec
lea ecx, [eax + 1]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
cmp edx, ecx
jb 0x1006662a
sub edx, ecx
lea eax, [ebp - 0x44]
cmp edx, 0xffffffff
mov esi, 0xffffffff
cmovb esi, edx
cmp ebx, 8
push esi
cmovae eax, dword [ebp - 0x44]
lea eax, [eax + ecx*2]
push eax
lea ecx, [ebp - 0x5c]
call fcn.100512a0
jmp 0x100662f8
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x5c]
call fcn.1004fd90
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x74]
push 0xffffffffffffffff
push dword [ebp - 0x18]
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
push 1
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
call fcn.1006c6c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
cmp ecx, 8
jb 0x10066355
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1006634b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100663e9
push ecx
push edx
call fcn.1013b151
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 8
jb 0x100663a2
mov edx, dword [ebp - 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10066398
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100663e9
push ecx
push edx
call fcn.1013b151
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp ecx, 8
jb 0x100663f9
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100663ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100663ef
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1013b151
add esp, 8
mov ebx, dword [ebp + 0x14]
cmp ebx, 2
jne 0x1006640e
mov eax, dword [edi]
xor ebx, ebx
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], bl
sete bl
lea eax, [edi + 0x2c]
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 3
call fcn.1004fd90
mov dword [ebp - 0x78], ebx
mov byte [ebp - 4], 4
lea esi, [ebp - 0x90]
mov eax, dword [ebp - 0x80]
add edi, 0xc
cmp dword [ebp - 0x7c], 8
mov edx, 0x811c9dc5
mov dword [ebp + 0xc], edi
cmovae esi, dword [ebp - 0x90]
xor ecx, ecx
add eax, eax
je 0x10066474
mov edi, eax
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x10066460
mov edi, dword [ebp + 0xc]
xor edx, ebx
lea eax, [ebp - 0x90]
push edx
push eax
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.10069440
cmp dword [eax + 4], 0
je 0x1006653f
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.100687a0
mov eax, dword [eax]
cmp byte [eax + 0x48], 0
jne 0x100664cc
lea eax, [ebp - 0x90]
mov ecx, edi
push eax
call fcn.100687a0
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov eax, dword [eax]
push dword [eax + 4]
push dword [eax]
call fcn.10068190
test al, al
je 0x10066542
mov ecx, edi
lea eax, [ebp - 0x90]
push eax
call fcn.100687a0
mov esi, dword [ebp + 8]
mov ecx, eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x100664f7
lock inc dword [eax + 4]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x7c]
mov dword [esi + 4], eax
cmp ecx, 8
jb 0x100665f5
mov edx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10066538
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100665e5
push ecx
push edx
jmp 0x100665ed
mov esi, dword [ebp - 0x14]
push ebx
push dword [ebp + 0x10]
mov ecx, esi
call fcn.10068570
mov eax, dword [ebp - 0x80]
lea esi, [ebp - 0x90]
cmp dword [ebp - 0x7c], 8
mov edx, 0x811c9dc5
mov edi, dword [ebp - 0x90]
cmovae esi, edi
xor ecx, ecx
lea ebx, [eax + eax]
test ebx, ebx
je 0x10066582
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x10066571
mov eax, dword [ebp - 0x78]
mov esi, dword [ebp - 0x14]
xor eax, edx
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0xc]
call fcn.10069440
cmp dword [eax + 4], 0
je 0x100665ac
lea ecx, [esi + 0xc]
jmp 0x100664ce
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x7c]
mov dword [esi], 0
mov dword [esi + 4], 0
cmp eax, 8
jb 0x100665f5
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x100665eb
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100665eb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edi
call fcn.1013b151
add esp, 8
push dword [ebp + 0x14]
xor eax, eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 7
mov word [ebp - 0x90], ax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call fcn.100505c0
int3