Function at 0x100ad8e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ebx, dword [esi + 0x30]
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x100adb6e
push edi
cmp dword [esi + 8], ebx
jge 0x100ad964
test ebx, ebx
je 0x100ad91b
lea eax, [ebx*4]
push 0x10
push eax
call fcn.10077ec0
add esp, 8
mov edi, eax
jmp 0x100ad91d
xor edi, edi
mov edx, dword [esi + 4]
xor ecx, ecx
test edx, edx
jle 0x100ad934
mov eax, dword [esi + 0xc]
mov eax, dword [eax + ecx*4]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, edx
jl 0x100ad926
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100ad951
cmp byte [esi + 0x10], 0
je 0x100ad94a
push eax
call fcn.10077ed0
add esp, 4
mov dword [esi + 0xc], 0
mov ecx, dword [ebp - 4]
mov edx, ebx
mov byte [esi + 0x10], 1
sub edx, ecx
mov dword [esi + 0xc], edi
mov dword [esi + 8], ebx
jmp 0x100ad96a
mov edx, ebx
mov ecx, eax
sub edx, eax
cmp edx, 4
jb 0x100ad9d0
mov eax, dword [esi + 0xc]
mov edi, dword [ebp - 4]
lea edi, [eax + edi*4]
mov dword [ebp - 8], edi
lea eax, [eax + ebx*4]
lea edi, [esi + 0xc]
add eax, 0xfffffffc
cmp dword [ebp - 8], edi
ja 0x100ad98d
cmp eax, edi
jae 0x100ad9d0
and edx, 0x80000003
jns 0x100ad99a
dec edx
or edx, 0xfffffffc
inc edx
mov eax, ebx
sub eax, edx
nop
add ecx, 4
cmp ecx, eax
jl 0x100ad9a0
sub eax, dword [ebp - 4]
mov edi, dword [ebp - 8]
add eax, 3
cdq
mov dword [ebp - 0xc], ecx
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, dword [ebp - 0xc]
cmp ecx, ebx
jge 0x100ad9df
nop
mov eax, dword [esi + 0xc]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x100ad9d0
mov dword [esi + 4], ebx
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x10], edi
cmp ebx, edi
jl 0x100adadf
jle 0x100ada5c
cmp dword [esi + 0x1c], ebx
jge 0x100ada5c
test ebx, ebx
je 0x100ada14
lea eax, [ebx*4]
push 0x10
push eax
call fcn.10077ec0
add esp, 8
mov dword [ebp - 8], eax
mov edx, eax
jmp 0x100ada19
xor edx, edx
mov dword [ebp - 8], edx
mov eax, dword [esi + 0x18]
xor ecx, ecx
test eax, eax
jle 0x100ada35
mov edi, eax
mov eax, dword [esi + 0x20]
mov eax, dword [eax + ecx*4]
mov dword [edx + ecx*4], eax
inc ecx
cmp ecx, edi
jl 0x100ada24
mov edi, dword [ebp - 0x10]
mov ecx, dword [esi + 0x20]
lea eax, [esi + 0x24]
test ecx, ecx
je 0x100ada50
cmp byte [eax], 0
je 0x100ada50
push ecx
call fcn.10077ed0
add esp, 4
lea eax, [esi + 0x24]
mov byte [eax], 1
mov eax, dword [ebp - 8]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
mov edx, ebx
mov ecx, edi
sub edx, edi
cmp edi, ebx
jge 0x100adadf
cmp edx, 4
jb 0x100adad0
mov eax, dword [esi + 0x20]
lea ecx, [eax + edi*4]
lea eax, [eax + ebx*4]
mov dword [ebp - 0xc], ecx
add eax, 0xfffffffc
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x20]
cmp ecx, eax
mov ecx, edi
ja 0x100ada8b
cmp dword [ebp - 0x10], eax
jae 0x100adad0
and edx, 0x80000003
jns 0x100ada98
dec edx
or edx, 0xfffffffc
inc edx
mov eax, ebx
sub eax, edx
nop dword [eax]
add ecx, 4
cmp ecx, eax
jl 0x100adaa0
sub eax, edi
mov dword [ebp - 0x10], ecx
mov edi, dword [ebp - 0xc]
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, dword [ebp - 0x10]
cmp ecx, ebx
jge 0x100adadf
nop dword [eax]
mov eax, dword [esi + 0x20]
mov dword [eax + ecx*4], 0
inc ecx
cmp ecx, ebx
jl 0x100adad0
xor ecx, ecx
mov dword [esi + 0x18], ebx
test ebx, ebx
jle 0x100adb10
nop dword [eax + eax]
mov eax, dword [esi + 0xc]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x100adaf0
xor ecx, ecx
mov eax, dword [esi + 0x20]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, ebx
jl 0x100adb01
mov ebx, dword [ebp - 4]
xor edi, edi
test ebx, ebx
jle 0x100adb6d
nop dword [eax]
mov eax, dword [esi + 0x48]
mov ecx, dword [eax + edi*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 [esi + 0xc]
mov eax, dword [eax + edx*4]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0xc]
mov dword [eax + edx*4], edi
inc edi
cmp edi, ebx
jl 0x100adb20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4