Function at 0x100029b9
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
and dword [esp + 0xc], 0
push ebx
push ebp
push esi
mov esi, dword [0x10005008]
xor ebx, ebx
push edi
mov dword [esp + 0x34], esi
inc ebx
mov byte [esp + 0x18], 0
lea ebp, [esi + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov ecx, dword [esi + 0x1c]
mov edi, 0x10000
test ecx, ecx
je 0x10002a3b
mov eax, dword [esi]
lea edx, [esp + 0x14]
cmp ecx, edi
push edx
cmovg ecx, edi
and dword [esp + 0x18], 0
push ecx
lea edi, [esi + 0x18]
mov ecx, esi
push dword [edi]
call dword [eax + 8]
test al, al
je 0x10002a2a
mov eax, dword [esp + 0x14]
cmp eax, dword [esi + 0x1c]
jne 0x10002a1f
mov ecx, edi
call fcn.10001a07
jmp 0x10002a36
push eax
push ecx
mov ecx, edi
call fcn.100019d0
jmp 0x10002a36
mov dword [esp + 0x1c], 2
mov byte [esp + 0x18], bl
mov edi, 0x10000
push ebp
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp byte [esp + 0x18], 0
jne 0x10002c99
mov eax, dword [esi]
lea ecx, [esp + 0x20]
and dword [esp + 0x20], 0
push ecx
push edi
push dword [esi + 4]
mov ecx, esi
call dword [eax + 0xc]
test al, al
je 0x10002c95
push dword [esp + 0x20]
lea edi, [esi + 0xc]
push dword [esi + 4]
mov ecx, edi
call fcn.1000198d
mov eax, dword [esi + 0x10]
cmp eax, 0x14
jb 0x10002ca6
mov ebp, dword [edi]
mov dword [esp + 0x2c], ebp
cmp dword [ebp + 0xc], 0x10
jb 0x10002c8b
test byte [ebp + 0xc], 0xf
jne 0x10002c8b
add eax, 0xffffffec
cmp eax, dword [ebp + 0xc]
jb 0x10002ca6
lea eax, [esi + 0x34]
push 0x10
push eax
lea eax, [esi + 0xf4]
push eax
call fcn.10003006
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 0x14]
add esp, 0xc
mov dword [esp + 0x14], eax
lea ecx, [esi + 0x44]
mov edi, eax
mov dword [esp + 0x30], ecx
test ebx, ebx
je 0x10002b38
dec ebx
lea eax, [ecx + 0xb0]
shr ebx, 4
mov ebp, eax
mov dword [esp + 0x24], eax
inc ebx
mov esi, ecx
push 0x10
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.10003006
add esp, 0xc
mov edx, esi
mov ecx, edi
call fcn.10001826
push 0x10
mov ecx, ebp
pop edx
mov al, byte [ecx]
xor byte [edi], al
inc ecx
inc edi
sub edx, 1
jne 0x10002b0a
push 0x10
lea eax, [esp + 0x3c]
push eax
push ebp
call fcn.10003006
add esp, 0xc
sub ebx, 1
jne 0x10002aec
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 0x14]
and dword [esp + 0x24], 0
lea ecx, [esp + 0x24]
push ecx
mov edx, ebx
mov ecx, eax
call section..text
mov eax, dword [esp + 0x28]
pop ecx
cmp eax, dword [ebp + 4]
jne 0x10002c81
movsx eax, byte [ebx + ebp + 0x13]
push 0
pop edi
push edi
pop ecx
sub ebx, eax
je 0x10002beb
cmp dword [ebp + 0x10], edi
je 0x10002be6
mov ecx, dword [esp + 0x14]
inc edi
xor ebp, ebp
mov dl, byte [ecx]
mov byte [esp + 0x13], dl
mov al, byte [edi + ecx]
inc edi
cmp al, dl
jne 0x10002be3
lea edx, [edi + ecx]
cmp byte [edx], 0
jne 0x10002bb5
inc ebp
inc edi
mov dl, byte [esp + 0x13]
cmp edi, ebx
jb 0x10002b7d
push ebp
call fcn.10002cce
mov ecx, dword [esp + 0x18]
mov edi, eax
push ebx
mov edx, edi
call fcn.1000135d
mov ebp, dword [esp + 0x34]
pop ecx
pop ecx
mov ecx, eax
jmp 0x10002beb
lea ecx, [esp + 0x28]
call fcn.100010de
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x30]
add edi, eax
lea edx, [edi + edx]
call fcn.100010de
mov ecx, dword [esp + 0x14]
add edi, eax
cmp dword [esp + 0x28], 0
jbe 0x10002b8f
add ebp, dword [esp + 0x28]
jmp 0x10002b8f
inc ebp
jmp 0x10002b93
lea edi, [ebp + 0x14]
mov ecx, ebx
xor ebx, ebx
inc ebx
cmp dword [ebp + 8], ebx
jne 0x10002c1b
push 0x10
lea eax, [esi + 0x24]
push edi
push eax
call fcn.10003006
push 0x10
lea eax, [edi + 0x10]
push eax
lea eax, [esi + 0x34]
push eax
call fcn.10003006
add esp, 0x14
mov ecx, esi
push 0
push 0
push 2
jmp 0x10002c2a
cmp dword [ebp + 8], 4
push ecx
mov ecx, esi
jne 0x10002c31
push 0
push 0
push 5
call fcn.100027ec
jmp 0x10002c4a
mov eax, dword [esi]
push edi
push dword [ebp + 8]
call dword [eax + 0x14]
mov ecx, dword [esp + 0x18]
test al, al
movzx ecx, cl
cmove ecx, ebx
mov dword [esp + 0x18], ecx
test edi, edi
je 0x10002c5b
cmp dword [ebp + 0x10], 0
je 0x10002c5b
push edi
call fcn.10002cde
pop ecx
mov eax, dword [ebp + 0xc]
lea edi, [esi + 0xc]
add eax, 0x14
push eax
push ecx
mov ecx, edi
call fcn.100019d0
cmp byte [esp + 0x18], 0
jne 0x10002c99
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x10002a7e
jmp 0x10002ca6
mov dword [esp + 0x1c], 4
jmp 0x10002c99
mov dword [esp + 0x1c], 3
jmp 0x10002c99
mov dword [esp + 0x1c], ebx
mov eax, dword [esi]
mov ecx, esi
push dword [esp + 0x1c]
call dword [eax + 0x10]
xor bl, bl
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x38
ret