Function at 0x1002b6ce
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0xf8
mov ecx, dword [ebp + 0x5c]
push ebx
mov ebx, dword [ebp + 0x60]
push esi
push edi
xor edi, edi
mov esi, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp], edi
mov dword [ebp + 4], edi
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x14], edi
mov edx, ebx
mov eax, dword [ecx]
lea eax, [ebp + eax*4 - 0x28]
inc dword [eax]
add ecx, 4
dec edx
jne 0x1002b46b
cmp dword [ebp - 0x28], ebx
jne 0x1002b48f
mov eax, dword [ebp + 0x70]
mov dword [eax], edi
mov dword [esi], edi
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x54
leave
ret
mov ebx, dword [esi]
xor edx, edx
inc edx
push 0xf
mov dword [ebp + 0x50], ebx
mov ecx, edx
pop eax
cmp dword [ebp + ecx*4 - 0x28], edi
jne 0x1002b4a7
inc ecx
cmp ecx, eax
jbe 0x1002b49c
cmp ebx, ecx
mov dword [ebp + 0x4c], ecx
jae 0x1002b4b1
mov dword [ebp + 0x50], ecx
cmp dword [ebp + eax*4 - 0x28], edi
jne 0x1002b4ba
dec eax
jne 0x1002b4b1
cmp dword [ebp + 0x50], eax
mov dword [ebp + 0x28], eax
jbe 0x1002b4c5
mov dword [ebp + 0x50], eax
mov ebx, dword [ebp + 0x50]
mov dword [esi], ebx
shl edx, cl
jmp 0x1002b4db
sub edx, dword [ebp + ecx*4 - 0x28]
js 0x1002b5a6
inc ecx
shl edx, 1
cmp ecx, eax
jb 0x1002b4ce
mov esi, eax
shl esi, 2
lea ecx, [ebp + esi - 0x28]
mov ebx, dword [ecx]
sub edx, ebx
mov dword [ebp + 0x20], edx
js 0x1002b5a6
add ebx, edx
mov dword [ecx], ebx
xor ecx, ecx
dec eax
mov dword [ebp - 0x64], edi
je 0x1002b511
xor ebx, ebx
add ecx, dword [ebp + ebx - 0x24]
add ebx, 4
dec eax
mov dword [ebp + ebx - 0x64], ecx
jne 0x1002b503
mov ecx, dword [ebp + 0x5c]
xor ebx, ebx
mov eax, dword [ecx]
add ecx, 4
cmp eax, edi
mov dword [ebp + 0x5c], ecx
je 0x1002b537
mov edx, dword [ebp + 0x7c]
lea eax, [ebp + eax*4 - 0x68]
mov ecx, dword [eax]
mov dword [edx + ecx*4], ebx
mov edx, dword [ebp + 0x20]
inc ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 0x5c]
inc ebx
cmp ebx, dword [ebp + 0x60]
jb 0x1002b516
mov eax, dword [ebp + esi - 0x68]
mov ebx, dword [ebp + 0x50]
or dword [ebp + 0x48], 0xffffffff
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x4c]
neg ebx
cmp eax, dword [ebp + 0x28]
mov dword [ebp + 0x34], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp + 0x2c], edi
mov dword [ebp + 0x44], edi
jg 0x1002b788
lea ecx, [eax - 1]
lea eax, [ebp + eax*4 - 0x28]
mov dword [ebp + 0x24], ecx
mov dword [ebp + 0x30], eax
mov eax, dword [ebp + 0x30]
mov eax, dword [eax]
cmp eax, edi
mov dword [ebp + 0x38], eax
je 0x1002b772
mov eax, dword [ebp + 0x50]
dec dword [ebp + 0x38]
add eax, ebx
cmp dword [ebp + 0x4c], eax
jle 0x1002b694
mov ecx, ebx
sub ecx, dword [ebp + 0x50]
jmp 0x1002b5b0
push 0xfffffffffffffffd
jmp 0x1002b79c
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x50]
mov esi, dword [ebp + 0x28]
inc dword [ebp + 0x48]
add ebx, edx
add ecx, edx
add eax, edx
sub esi, ebx
cmp esi, edx
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x1c], eax
jbe 0x1002b5cd
mov esi, edx
mov ecx, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x38]
xor eax, eax
sub ecx, ebx
inc eax
shl eax, cl
inc edx
cmp eax, edx
jbe 0x1002b60d
or edx, 0xffffffff
sub edx, dword [ebp + 0x38]
add eax, edx
cmp ecx, esi
mov edx, dword [ebp + 0x30]
jae 0x1002b60d
inc ecx
cmp ecx, esi
jae 0x1002b60d
jmp 0x1002b5f8
mov edx, dword [ebp + 0x44]
add edx, 4
mov dword [ebp + 0x44], edx
mov edx, dword [edx]
shl eax, 1
cmp eax, edx
jbe 0x1002b60d
sub eax, edx
inc ecx
cmp ecx, esi
jb 0x1002b5f5
mov eax, dword [ebp + 0x78]
mov eax, dword [eax]
xor edx, edx
inc edx
shl edx, cl
lea esi, [eax + edx]
cmp esi, 0x5a0
mov dword [ebp + 0x44], edx
ja 0x1002b7a2
mov edx, dword [ebp + 0x74]
lea eax, [edx + eax*8]
mov edx, dword [ebp + 0x48]
lea edx, [ebp + edx*4 - 0xa4]
mov dword [ebp + 0x2c], eax
mov dword [edx], eax
mov eax, dword [ebp + 0x78]
mov dword [eax], esi
mov eax, dword [ebp + 0x48]
cmp eax, edi
je 0x1002b67d
mov esi, dword [ebp + 0x34]
mov dword [ebp + eax*4 - 0x68], esi
mov al, byte [ebp + 0x50]
mov byte [ebp + 0x3d], al
mov byte [ebp + 0x3c], cl
mov ecx, dword [ebp + 0x18]
mov eax, esi
mov esi, dword [ebp + 0x3c]
shr eax, cl
mov ecx, dword [edx - 4]
mov edx, dword [ebp + 0x2c]
sub edx, ecx
sar edx, 3
sub edx, eax
mov dword [ecx + eax*8], esi
mov dword [ebp + 0x40], edx
mov dword [ecx + eax*8 + 4], edx
jmp 0x1002b685
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x4c], eax
jg 0x1002b5ad
mov edx, dword [ebp + 0x20]
mov al, byte [ebp + 0x4c]
mov ecx, dword [ebp + 0x60]
sub al, bl
mov byte [ebp + 0x3d], al
mov eax, dword [ebp + 0x7c]
lea ecx, [eax + ecx*4]
mov eax, dword [ebp + 0x5c]
cmp eax, ecx
jb 0x1002b6b2
mov byte [ebp + 0x3c], 0xc0
jmp 0x1002b6ea
mov eax, dword [eax]
cmp eax, dword [ebp + 0x64]
jae 0x1002b6cb
cmp eax, 0x100
setb cl
dec cl
and ecx, 0x60
mov byte [ebp + 0x3c], cl
jmp 0x1002b6e3
sub eax, dword [ebp + 0x64]
mov ecx, dword [ebp + 0x6c]
shl eax, 2
mov cl, byte [eax + ecx]
add cl, 0x50
mov byte [ebp + 0x3c], cl
mov ecx, dword [ebp + 0x68]
mov eax, dword [eax + ecx]
add dword [ebp + 0x5c], 4
mov dword [ebp + 0x40], eax
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x34]
xor esi, esi
sub ecx, ebx
inc esi
shl esi, cl
mov ecx, ebx
shr eax, cl
cmp eax, dword [ebp + 0x44]
jae 0x1002b722
mov ecx, dword [ebp + 0x2c]
lea ecx, [ecx + eax*8]
mov edx, dword [ebp + 0x3c]
mov dword [ecx], edx
mov edx, dword [ebp + 0x40]
mov dword [ecx + 4], edx
mov edx, esi
shl edx, 3
add eax, esi
add ecx, edx
cmp eax, dword [ebp + 0x44]
jb 0x1002b706
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x34]
xor eax, eax
inc eax
shl eax, cl
jmp 0x1002b733
xor esi, eax
shr eax, 1
test esi, eax
jne 0x1002b72f
xor esi, eax
xor eax, eax
inc eax
mov ecx, ebx
shl eax, cl
mov dword [ebp + 0x34], esi
dec eax
and eax, esi
mov ecx, eax
mov eax, dword [ebp + 0x48]
cmp ecx, dword [ebp + eax*4 - 0x68]
je 0x1002b769
sub ebx, dword [ebp + 0x50]
xor esi, esi
inc esi
mov ecx, ebx
shl esi, cl
dec eax
dec esi
and esi, dword [ebp + 0x34]
cmp esi, dword [ebp + eax*4 - 0x68]
jne 0x1002b751
mov dword [ebp + 0x48], eax
cmp dword [ebp + 0x38], edi
jne 0x1002b58e
inc dword [ebp + 0x4c]
add dword [ebp + 0x30], 4
mov eax, dword [ebp + 0x4c]
inc dword [ebp + 0x24]
cmp eax, dword [ebp + 0x28]
jle 0x1002b57e
cmp edx, edi
je 0x1002b485
cmp dword [ebp + 0x28], 1
je 0x1002b485
push 0xfffffffffffffffb
pop eax
jmp 0x1002b487
push 0xfffffffffffffffc
jmp 0x1002b79c