Function at 0x100ba060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
mov eax, dword [eax]
push ebx
push esi
push edi
test dword [eax + 0xc], 0x4000000
je 0x100ba259
cmp dword [ebp + 0x10], 0
jne 0x100ba0a6
mov esi, dword [ebp + 0xc]
push esi
call fcn.100ba000
add esp, 4
test eax, eax
jne 0x100ba09a
cmp dword [esi + 0x24], eax
je 0x100ba259
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebx + 0x24]
test edi, edi
je 0x100ba0e8
mov esi, dword [edi + 0x14]
xor eax, eax
test esi, esi
jle 0x100ba0e1
lea ecx, [edi + 0x24]
lea esp, [esp]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ecx]
cmp dword [ebx + edx*4], 0
mov ebx, dword [ebp + 0xc]
jge 0x100ba09a
cmp edx, dword [ebx + 4]
jne 0x100ba0d9
cmp dword [ebp + 0x14], 0
jne 0x100ba09a
inc eax
add ecx, 8
cmp eax, esi
jl 0x100ba0c0
mov edi, dword [edi + 4]
test edi, edi
jne 0x100ba0b0
mov ecx, dword [ebx]
mov esi, ecx
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x100ba106
cmp byte [ecx], 0
je 0x100ba0fe
inc esi
cmp byte [esi], 0
jne 0x100ba0f8
sub esi, ecx
and esi, 0x3fffffff
mov eax, dword [ebx + 0x44]
add eax, 0x38
mov dword [ebp + 8], esi
mov dword [ebp - 4], eax
cmp dword [eax + 0xc], 0
je 0x100ba155
xor edi, edi
mov dword [ebp - 8], ecx
mov ebx, esi
test esi, esi
jle 0x100ba148
mov esi, ecx
movzx eax, byte [esi]
lea ecx, [edi*8]
dec ebx
lea esi, [esi + 1]
movzx edx, byte [eax + 0x1015a3f8]
xor edx, ecx
xor edi, edx
test ebx, ebx
jg 0x100ba125
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov eax, edi
xor edx, edx
mov edi, dword [ebp - 4]
div dword [edi]
mov eax, edi
jmp 0x100ba157
xor edx, edx
push edx
push esi
push ecx
push eax
call fcn.1009a310
add esp, 0x10
test eax, eax
je 0x100ba259
mov esi, dword [eax + 8]
mov dword [ebp - 8], esi
test esi, esi
je 0x100ba259
lea esp, [esp]
xor ebx, ebx
mov dword [ebp + 8], ebx
cmp dword [esi + 0x14], ebx
jle 0x100ba24b
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x28]
mov dword [ebp - 4], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0xc], edx
lea ecx, [ecx]
mov ecx, dword [ecx]
xor edi, edi
mov dword [ebp - 0x10], ecx
test edx, edx
jle 0x100ba235
mov ebx, dword [eax + 0xc]
test ecx, ecx
je 0x100ba200
mov eax, dword [ebx]
mov esi, ecx
mov cl, byte [eax]
test cl, cl
je 0x100ba1e0
movzx edx, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x1015a3f8]
cmp cl, byte [edx + 0x1015a3f8]
jne 0x100ba1dd
mov cl, byte [eax + 1]
inc eax
inc esi
test cl, cl
jne 0x100ba1c0
mov edx, dword [ebp - 0xc]
movzx eax, byte [eax]
movzx ecx, byte [eax + 0x1015a3f8]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x1015a3f8]
sub ecx, eax
mov eax, dword [ebp + 0xc]
neg ecx
sbb ecx, ecx
inc ecx
jmp 0x100ba204
movzx ecx, byte [ebx + 0x15]
test ecx, ecx
je 0x100ba224
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + edi*4], 0
jge 0x100ba09a
cmp edi, dword [eax + 4]
jne 0x100ba224
cmp dword [ebp + 0x14], 0
jne 0x100ba09a
mov ecx, dword [ebp - 0x10]
inc edi
add ebx, 0x18
cmp edi, edx
jl 0x100ba1b2
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 8
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0x14]
jl 0x100ba1a0
mov esi, dword [esi + 0xc]
mov dword [ebp - 8], esi
test esi, esi
jne 0x100ba180
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret