Function at 0x1002b2c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x60
mov eax, dword [0x1006d680]
xor eax, esp
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov esi, dword [edx + 4]
sub esi, 0xa2
xor ebx, ebx
neg esi
sbb esi, esi
and esi, 0xfffffff4
push edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x28], ecx
mov ecx, 2
add esi, 0x20
cmp edi, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
jg 0x1002b58e
jge 0x1002b367
sub eax, edi
mov ebx, eax
add edi, ebx
lea eax, [ebx + edi]
push eax
call fcn.10005850
push ebx
push 0
push eax
mov dword [esp + 0x2c], eax
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x2c]
mov ecx, edi
sub ecx, ebx
push ecx
mov edx, ebp
push edx
lea ecx, [ebx + eax]
push ecx
call sub.MSVCR80.dll_memcpy
mov ebp, dword [esp + 0x38]
add esp, 0x1c
cmp ebx, 1
jle 0x1002b370
jmp 0x1002b36b
cmp edi, eax
jne 0x1002b370
mov ebx, 1
lea edx, [esi + esi + 1]
cmp edi, edx
jl 0x1002b555
sub edi, esi
sub edi, ebx
push edi
mov dword [esp + 0x24], edi
call fcn.10005850
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
je 0x1002b555
lea eax, [esi + ebp]
add eax, ebx
add ebp, ebx
mov ebx, dword [esp + 0x74]
cmp dword [ebx + 4], 0xa2
push edi
mov dword [esp + 0x14], eax
push eax
jne 0x1002b3c1
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.1002aa50
jmp 0x1002b3cd
lea ecx, [esp + 0x34]
push 0x14
push ecx
call fcn.1002a4e0
add esp, 0x10
test esi, esi
jle 0x1002b3f1
lea ecx, [esp + 0x2c]
mov eax, ebp
sub ecx, ebp
mov edi, esi
mov edi, edi
mov dl, byte [ecx + eax]
xor byte [eax], dl
add eax, 1
sub edi, 1
jne 0x1002b3e0
mov edi, dword [esp + 0x20]
cmp dword [ebx + 4], 0xa2
jne 0x1002b40a
mov eax, dword [esp + 0x14]
push 0x20
push ebp
push edi
push eax
call fcn.1002aa50
jmp 0x1002b418
mov ecx, dword [esp + 0x14]
push 0x14
push ebp
push edi
push ecx
call fcn.1002a4e0
mov ebx, dword [esp + 0x20]
add esp, 0x10
test edi, edi
jle 0x1002b43d
mov ecx, dword [esp + 0x14]
mov eax, ebx
sub ecx, ebx
mov ebp, edi
lea ecx, [ecx]
mov dl, byte [ecx + eax]
xor byte [eax], dl
add eax, 1
sub ebp, 1
jne 0x1002b430
mov eax, dword [esp + 0x74]
cmp dword [eax + 4], 0xa2
jne 0x1002b45a
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0
call fcn.1002f5b0
jmp 0x1002b468
lea edx, [esp + 0x4c]
push edx
push 0
push 0
call fcn.1002f590
add esp, 0xc
test eax, eax
mov dword [esp + 0x18], eax
jne 0x1002b555
cmp esi, 4
mov eax, esi
lea ecx, [esp + 0x4c]
mov edx, ebx
jb 0x1002b498
mov ebp, dword [edx]
cmp ebp, dword [ecx]
jne 0x1002b49c
sub eax, 4
add ecx, 4
add edx, 4
cmp eax, 4
jae 0x1002b484
test eax, eax
je 0x1002b501
movzx ebx, byte [edx]
movzx ebp, byte [ecx]
sub ebx, ebp
jne 0x1002b4eb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1002b4fd
movzx ebx, byte [edx]
movzx ebp, byte [ecx]
sub ebx, ebp
jne 0x1002b4eb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1002b4fd
movzx ebx, byte [edx]
movzx ebp, byte [ecx]
sub ebx, ebp
jne 0x1002b4eb
sub eax, 1
add ecx, 1
add edx, 1
test eax, eax
je 0x1002b4fd
movzx ebx, byte [edx]
movzx eax, byte [ecx]
sub ebx, eax
je 0x1002b4fd
test ebx, ebx
mov ebx, dword [esp + 0x10]
mov eax, 1
jg 0x1002b503
or eax, 0xffffffff
jmp 0x1002b503
mov ebx, dword [esp + 0x10]
xor eax, eax
test eax, eax
jne 0x1002b555
cmp esi, edi
jge 0x1002b51d
jmp 0x1002b510
cmp byte [esi + ebx], 0
jne 0x1002b51d
add esi, 1
cmp esi, edi
jl 0x1002b510
cmp byte [esi + ebx], 1
jne 0x1002b555
mov ecx, esi
add esi, 1
cmp ecx, edi
jge 0x1002b555
mov ebx, dword [esp + 0x28]
sub edi, esi
cmp dword [ebx], edi
jl 0x1002b555
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push edi
add esi, edx
push esi
push eax
call sub.MSVCR80.dll_memcpy
add esp, 0xc
mov dword [ebx], edi
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1002b566
push eax
call fcn.10005870
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1002b577
push eax
call fcn.10005870
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.100508c2
add esp, 0x60
ret
pop edi
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x64]
pop ebp
pop ebx
xor ecx, esp
call fcn.100508c2
add esp, 0x60
ret