Function at 0x1002b770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, ecx
mov eax, dword [0x10123014]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x44], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.1006b360
lea edi, [esi + 0x70]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1002b97d
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov esi, dword [esi + 0x78]
test esi, esi
je 0x1002b955
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x10]
lea edx, [eax + 0x74]
mov dword [esp + 0x24], edx
lea ebx, [eax + 0x78]
mov edi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x20], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ebx
nop dword [eax]
mov dword [esp + 0xc], ebx
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x14]
cmp edx, edi
mov ebx, edi
mov edi, eax
mov ecx, dword [esp + 0x20]
sbb edi, ecx
setb byte [esp + 8]
xor eax, ecx
xor edx, ebx
mov edi, dword [esi + 0x1c]
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x18], ecx
sbb edi, dword [esp + 0x1c]
mov edi, ebx
mov ebx, dword [esp + 0xc]
setb ch
or edx, eax
movzx eax, ch
movzx ecx, byte [esp + 8]
cmove ecx, eax
test cl, cl
lea eax, [esi + 4]
cmove eax, esi
cmove ebx, esi
mov esi, dword [eax]
test esi, esi
jne 0x1002b800
mov esi, dword [esp + 0x20]
cmp ebx, dword [esp + 0x28]
je 0x1002b955
mov eax, dword [ebx + 0x10]
cmp edi, eax
mov ecx, dword [ebx + 0x14]
mov edx, esi
sbb edx, ecx
setb dl
xor esi, ecx
xor edi, eax
mov eax, dword [esp + 0x18]
cmp eax, dword [ebx + 0x18]
mov eax, dword [esp + 0x1c]
sbb eax, dword [ebx + 0x1c]
setb al
or edi, esi
movzx eax, al
movzx ecx, dl
cmove ecx, eax
test cl, cl
jne 0x1002b955
mov edi, dword [ebx + 0x24]
test edi, edi
je 0x1002b955
lea eax, [ebx + 0x20]
mov dword [esp + 8], eax
lea esi, [ebx + 0x24]
mov dword [esp + 0xc], esi
nop word cs:[eax + eax]
lea eax, [edi + 0x10]
push dword [ebp + 0x10]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.10021c80
add esp, 0xc
lea eax, [edi + 4]
cmp byte [esp + 0x2c], 0
cmovns eax, edi
cmovns esi, edi
mov edi, dword [eax]
test edi, edi
jne 0x1002b8c0
cmp esi, dword [esp + 0xc]
lea edi, [esp + 0x2c]
je 0x1002b955
lea eax, [esi + 0x10]
push eax
push dword [ebp + 0x10]
push edi
call fcn.10021c80
add esp, 0xc
cmp byte [esp + 0x2c], 0
js 0x1002b955
lea eax, [esi + 0x20]
lea ecx, [esp + 0x30]
push eax
call fcn.10080a10
mov ecx, dword [esp + 8]
push esi
push edi
call fcn.1002f4f0
cmp dword [ebx + 0x28], 0
jne 0x1002b932
mov ecx, dword [esp + 0x24]
push ebx
push edi
call fcn.1002eae0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [esp + 0x38]
push eax
call fcn.1007a7c0
jmp 0x1002b95f
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
lea ecx, [esp + 0x30]
call fcn.10080980
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.100dea63
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ecx, edi
call fcn.1006ca90
jmp 0x1002b7be