Function at 0x1011e1e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x101fd398]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x28], esi
mov dl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [ebp - 0x15], dl
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
test dl, 0x40
jne 0x1011e227
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
mov dl, byte [ebp - 0x15]
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, dl
xor ecx, ecx
and eax, 7
mov edx, 0xf
sub edx, eax
mov byte [esi], al
mov dword [ebp - 0x30], edx
cmp edx, 0xf
jae 0x1011e253
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x1011e240
movzx eax, byte [esi + 0xf]
mov edx, dword [ebp + 0x14]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edx
je 0x1011e277
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
lea eax, [edx + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x1011e2ad
ja 0x1011e298
cmp dword [esi + 0x20], 0
jbe 0x1011e2ad
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101534c8
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [ebp + 0xc]
cmp edx, 0x10
jb 0x1011e33a
shr edx, 4
lea ecx, [esi + 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [edi]
xor dword [ecx], eax
mov eax, dword [edi + 4]
xor dword [ecx + 4], eax
push dword [ebp - 0x20]
mov eax, dword [edi + 8]
xor dword [esi + 0x18], eax
mov eax, dword [edi + 0xc]
xor dword [esi + 0x1c], eax
push ecx
push ecx
call dword [ebp - 0x24]
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x24]
add esp, 0x18
mov eax, 8
dec eax
add byte [eax + esi + 8], 1
jne 0x1011e300
test eax, eax
jne 0x1011e2f4
mov ecx, dword [edi]
mov eax, dword [edi + 4]
xor ecx, dword [ebp - 0x14]
xor eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x14]
mov dword [ebx], ecx
sub edx, 0x10
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 4], eax
xor ecx, dword [edi + 8]
mov eax, dword [ebp - 8]
xor eax, dword [edi + 0xc]
add edi, 0x10
mov dword [ebx + 8], ecx
lea ecx, [esi + 0x10]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x1c], 1
mov dword [ebp + 0x14], edx
jne 0x1011e2c3
test edx, edx
je 0x1011e448
xor ecx, ecx
test edx, edx
je 0x1011e354
mov al, byte [ecx + edi]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, edx
jb 0x1011e348
push dword [ebp - 0x20]
lea eax, [esi + 0x10]
push eax
push eax
call dword [ebp - 0x24]
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x24]
mov ecx, dword [ebp + 0x14]
add esp, 0x18
xor edx, edx
test ecx, ecx
je 0x1011e448
cmp ecx, 0x40
jb 0x1011e425
lea eax, [ebp + ecx - 0x15]
cmp ebx, eax
ja 0x1011e39f
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
lea eax, [ecx - 1]
add eax, ebx
cmp eax, dword [ebp - 0x1c]
jae 0x1011e425
lea eax, [ecx - 1]
add eax, edi
cmp ebx, eax
ja 0x1011e3b1
lea eax, [ecx - 1]
add eax, ebx
cmp eax, edi
jae 0x1011e425
mov eax, ecx
mov esi, edi
and eax, 0xffffffc0
sub esi, ebx
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
lea eax, [ebx + 0x10]
nop dword [eax]
movups xmm0, xmmword [ebp + edx - 0x14]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edi + edx]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + edx - 4]
movups xmmword [ebx + edx], xmm1
movups xmm1, xmmword [ecx + eax - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + edx + 0xc]
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [edi + edx + 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [ebp + edx + 0x1c]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [edi + edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x2c]
jb 0x1011e3d0
mov ecx, dword [ebp + 0x14]
cmp edx, ecx
jae 0x1011e448
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x14]
sub edi, eax
sub ebx, eax
lea ecx, [ebp - 0x14]
add ecx, edx
inc edx
mov al, byte [ecx + edi]
xor al, byte [ecx]
mov byte [ecx + ebx], al
cmp edx, esi
jb 0x1011e433
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
cmp edx, 0x10
jae 0x1011e46a
mov ecx, 0x10
lea edi, [edx + esi]
sub ecx, edx
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
xor dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
xor dword [esi + 0x1c], eax
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi], al
xor ecx, ebp
pop esi
xor eax, eax
pop ebx
call fcn.101534c8
mov esp, ebp
pop ebp
ret