Function at 0x100881b0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
mov ebp, dword [esi + 4]
mov ebx, dword [esi + 0x30]
mov dword [esp + 0xc], ebp
cmp ebp, ebx
jge 0x1008842c
push edi
cmp dword [esi + 8], ebx
jge 0x10088235
test ebx, ebx
je 0x100881ee
lea eax, [ebx*4]
push 0x10
push eax
call fcn.1005c880
add esp, 8
mov edi, eax
jmp 0x100881f0
xor edi, edi
mov edx, dword [esi + 4]
xor ecx, ecx
test edx, edx
jle 0x1008820e
nop dword [eax]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + ecx*4]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, edx
jl 0x10088200
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1008822b
cmp byte [esi + 0x10], 0
je 0x10088224
push eax
call fcn.1005c890
add esp, 4
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 1
mov dword [esi + 0xc], edi
mov dword [esi + 8], ebx
mov edx, ebx
mov ecx, ebp
sub edx, ebp
cmp edx, 4
jb 0x100882a0
mov eax, dword [esi + 0xc]
lea edi, [esi + 0xc]
lea ebp, [eax + ebp*4]
lea eax, [eax + ebx*4]
mov dword [esp + 0x14], ebp
add eax, 0xfffffffc
cmp ebp, edi
ja 0x1008825b
cmp eax, edi
jae 0x100882a0
and edx, 0x80000003
jns 0x10088268
dec edx
or edx, 0xfffffffc
inc edx
mov eax, ebx
sub eax, edx
nop dword [eax]
add ecx, 4
mov ebp, ecx
cmp ecx, eax
jl 0x10088270
sub eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
add eax, 3
cdq
and edx, 3
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 2
shl ecx, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
cmp ebp, ebx
jge 0x100882af
nop
mov eax, dword [esi + 0xc]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x100882a0
mov dword [esi + 4], ebx
mov edi, dword [esi + 0x18]
cmp ebx, edi
jl 0x100883a0
jle 0x10088326
cmp dword [esi + 0x1c], ebx
jge 0x10088326
test ebx, ebx
je 0x100882de
lea eax, [ebx*4]
push 0x10
push eax
call fcn.1005c880
add esp, 8
mov ebp, eax
jmp 0x100882e0
xor ebp, ebp
mov edx, dword [esi + 0x18]
xor ecx, ecx
test edx, edx
jle 0x100882ff
nop dword [eax]
mov eax, dword [esi + 0x20]
mov eax, dword [eax + ecx*4]
mov dword [ebp + ecx*4], eax
inc ecx
cmp ecx, edx
jl 0x100882f0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x1008831c
cmp byte [esi + 0x24], 0
je 0x10088315
push eax
call fcn.1005c890
add esp, 4
mov dword [esi + 0x20], 0
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], ebp
mov dword [esi + 0x1c], ebx
mov edx, ebx
mov ecx, edi
sub edx, edi
cmp edi, ebx
jge 0x100883a0
cmp edx, 4
jb 0x10088391
mov eax, dword [esi + 0x20]
lea ebp, [esi + 0x20]
lea esi, [eax + edi*4]
lea eax, [eax + ebx*4]
mov dword [esp + 0x14], esi
add eax, 0xfffffffc
cmp esi, ebp
mov esi, dword [esp + 0x18]
ja 0x10088354
cmp eax, ebp
jae 0x10088391
and edx, 0x80000003
jns 0x10088361
dec edx
or edx, 0xfffffffc
inc edx
mov eax, ebx
sub eax, edx
add ecx, 4
mov ebp, ecx
cmp ecx, eax
jl 0x10088365
sub eax, edi
mov edi, dword [esp + 0x14]
add eax, 3
cdq
and edx, 3
lea ecx, [edx + eax]
xor eax, eax
sar ecx, 2
shl ecx, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
cmp ebp, ebx
jge 0x100883a0
mov eax, dword [esi + 0x20]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x10088391
xor ecx, ecx
mov dword [esi + 0x18], ebx
lea edi, [esi + 0xc]
test ebx, ebx
jle 0x100883cf
nop dword [eax]
mov eax, dword [edi]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x100883b0
xor ecx, ecx
mov eax, dword [esi + 0x20]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x100883c0
mov ebp, dword [esp + 0x10]
xor ebx, ebx
test ebp, ebp
jle 0x1008842b
nop dword [eax]
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + ebx*8]
mov eax, ecx
shl eax, 0xf
not eax
add ecx, eax
mov eax, ecx
shr eax, 0xa
xor eax, ecx
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 6
xor ecx, eax
mov eax, ecx
shl eax, 0xb
not eax
add ecx, eax
mov eax, dword [esi + 0x30]
mov edx, ecx
dec eax
shr edx, 0x10
xor edx, ecx
mov ecx, dword [esi + 0x20]
and edx, eax
mov eax, dword [edi]
mov eax, dword [eax + edx*4]
mov dword [ecx + ebx*4], eax
mov eax, dword [edi]
mov dword [eax + edx*4], ebx
inc ebx
cmp ebx, ebp
jl 0x100883e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4