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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e69d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1013d0b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
call fcn.10049180
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.1004edf0
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.10004440
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
lea esi, [ebx + 0x10]
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebp - 0x30]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1004e749
mov eax, dword [ecx]
mov dword [ebp - 0x34], eax
push ecx
mov eax, dword [eax]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x100f4524]
mov ecx, dword [ebp - 0x34]
call edi
push 0x101447c0
mov dword [ebp - 0x34], 0x101447c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004e780
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.1004f6c0
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edx, 0x811c9dc5
cmovae esi, dword [ebp - 0x28]
xor ecx, ecx
lea edi, [eax + eax]
test edi, edi
je 0x1004e7c6
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x1004e7b5
and edx, dword [0x101447f0]
mov eax, dword [0x101447e4]
mov edi, dword [0x101447dc]
mov esi, dword [eax + edx*8]
lea eax, [eax + edx*8]
mov ecx, esi
add eax, 4
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], eax
cmp ecx, edi
jne 0x1004e7f0
mov eax, edi
jmp 0x1004e7f4
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x1004e87e
cmp dword [ebp - 0x14], 8
lea edx, [esi + 8]
mov ecx, dword [edx + 0x10]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp dword [edx + 0x14], 8
mov dword [ebp - 0x30], edx
jb 0x1004e81b
mov edx, dword [edx]
mov dword [ebp - 0x30], edx
cmp ecx, dword [ebp - 0x18]
jne 0x1004e85b
test ecx, ecx
je 0x1004e865
movzx ebx, word [eax]
movzx edx, word [edx]
cmp dx, bx
mov ebx, dword [ebp - 0x38]
jb 0x1004e85b
sub dword [ebp - 0x30], eax
movzx ebx, word [eax]
cmp dx, bx
mov ebx, dword [ebp - 0x38]
ja 0x1004e85b
cmp ecx, 1
je 0x1004e865
mov edx, dword [ebp - 0x30]
add eax, 2
dec ecx
movzx ebx, word [eax]
movzx edx, word [eax + edx]
cmp dx, bx
mov ebx, dword [ebp - 0x38]
jae 0x1004e835
mov esi, dword [esi]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x3c]
jmp 0x1004e7e8
lea eax, [esi + 8]
mov ecx, 0x101447d8
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1004d080
test al, al
cmovne esi, edi
jmp 0x1004e880
mov esi, edi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1004e8bc
mov edx, dword [ebp - 0x28]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1004e8ac
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004e90f
push ecx
push edx
call fcn.10005291
mov edi, dword [0x101447dc]
add esp, 8
push 0x101447c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, edi
setne al
or ecx, 0xffffffff
mov byte [ebp - 0x29], al
lock xadd dword [ebx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1004e8f3
mov edi, dword [ebx]
push ebx
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x100f4524]
mov ecx, edi
call esi
mov al, byte [ebp - 0x29]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100055f3
mov esp, ebp
pop ebp
ret
call fcn.1000e987
int3