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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f8968
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1013c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], ebx
push 0x1014be70
mov dword [ebp - 0x24], 0x1014be70
mov byte [ebp - 0x20], bl
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov byte [ebp - 4], 1
xor edx, edx
mov esi, dword [0x1014bffc]
mov eax, esi
mov ecx, dword [0x1014bff8]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x14], edx
test eax, eax
je 0x1002cd29
lea eax, [edx*4]
mov ecx, dword [eax + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [ecx + 0x3c], 5
jne 0x1002cbdc
cmp byte [ebp + 0xc], 0
jmp 0x1002cbe0
cmp byte [ebp + 8], 0
je 0x1002cd10
cmp byte [ecx + 0x2c], 0
je 0x1002ccb0
mov ecx, dword [ecx + 0x50]
sub ecx, 0x10
call fcn.10021e50
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 2
mov edi, dword [esi - 0xc]
test edi, edi
js 0x1002cdab
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x1002cc2d
push edi
lea ecx, [ebp - 0x10]
call fcn.10021230
mov esi, dword [ebp - 0x10]
lea eax, [edi + 1]
push eax
push esi
call fcn.100deb40
lea eax, [esi - 0x10]
add esp, 8
mov dword [ebp - 0x18], eax
cmp edi, dword [eax + 8]
jg 0x1002cdab
mov ecx, esi
mov dword [eax + 4], edi
xor eax, eax
mov word [esi + edi*2], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002cc57
sub ecx, edx
mov edi, 0x811c9dc5
sar ecx, 1
lea edx, [ecx + ecx]
xor ecx, ecx
test edx, edx
jle 0x1002cc85
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, edx
jl 0x1002cc74
mov dword [ebp - 0x10], edi
mov edx, dword [ebp - 0x18]
or eax, 0xffffffff
mov byte [ebp - 4], 3
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002cca4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov esi, dword [0x1014bffc]
jmp 0x1002ccc7
cmp byte [ecx + 0x2a], 0
je 0x1002cd10
mov ecx, dword [ecx]
mov edx, 0x811c9dc5
call fcn.100b3790
mov edi, eax
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp - 0x1c]
add ecx, dword [0x1014bff8]
lea edx, [ecx + 4]
sub esi, edx
push esi
push edx
push ecx
call fcn.100d6930
sub dword [0x1014bffc], 4
add esp, 0xc
cmp dword [ebp - 0x28], ebx
je 0x1002ccf6
mov dword [ebx], edi
add ebx, 4
mov dword [ebp - 0x2c], ebx
jmp 0x1002cd06
lea eax, [ebp - 0x10]
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.10012820
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov esi, dword [0x1014bffc]
dec edx
mov ecx, dword [0x1014bff8]
mov eax, esi
sub eax, ecx
inc edx
sar eax, 2
mov dword [ebp - 0x14], edx
cmp edx, eax
jb 0x1002cbc3
push 0x1014be70
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
lea eax, [ebp - 0x30]
push eax
call fcn.1002cdc0
cmp byte [ebp + 0xc], 0
je 0x1002cd50
mov word [0x1014c016], 0
cmp byte [ebp + 8], 0
je 0x1002cd5f
mov word [0x1014c014], 0
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x1002cd92
mov ecx, dword [ebp - 0x28]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1002cd88
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002cda6
push ecx
push edx
call fcn.100d4917
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.100dca69
push 0x80070057
call fcn.10013970
int3