Function at 0x10156880
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x44
call fcn.101ebae0
mov eax, dword [0x102ab2c0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [esp + 0x54]
push ebp
push esi
mov esi, dword [esp + 0x54]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
mov dl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [esp + 0xf], dl
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
test dl, 0x40
jne 0x101568d8
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
mov dl, byte [esp + 0x1b]
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 dword [esp + 0x38], eax
mov byte [esi], al
cmp edx, 0xf
jae 0x10156905
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x101568f2
movzx eax, byte [esi + 0xf]
mov ebp, dword [esp + 0x60]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebp
je 0x1015692c
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.101ebfaa
add esp, 0x44
ret
lea eax, [ebp + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x10156964
ja 0x1015694d
cmp dword [esi + 0x20], 0
jbe 0x10156964
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.101ebfaa
add esp, 0x44
ret
push edi
mov edi, dword [esp + 0x5c]
cmp ebp, 0x10
jb 0x10156a03
mov eax, ebp
lea ecx, [esi + 0x10]
shr eax, 4
mov dword [esp + 0x1c], eax
nop
mov eax, dword [edi]
xor dword [ecx], eax
mov eax, dword [edi + 4]
xor dword [ecx + 4], eax
push dword [esp + 0x14]
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 [esp + 0x24]
push dword [esp + 0x20]
lea eax, [esp + 0x50]
push eax
push esi
call dword [esp + 0x30]
add esp, 0x18
mov eax, 8
dec eax
add byte [eax + esi + 8], 1
jne 0x101569c2
test eax, eax
jne 0x101569b6
mov eax, dword [edi + 4]
sub ebp, 0x10
mov ecx, dword [esp + 0x40]
xor ecx, dword [edi]
xor eax, dword [esp + 0x44]
mov dword [ebx], ecx
mov ecx, dword [esp + 0x48]
mov dword [ebx + 4], eax
xor ecx, dword [edi + 8]
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esp + 0x4c]
mov dword [ebx + 8], ecx
lea ecx, [esi + 0x10]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [esp + 0x1c], 1
jne 0x10156980
mov dword [esp + 0x64], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], edi
test ebp, ebp
je 0x10156b7a
lea ecx, [esi + 0x10]
mov edx, edi
mov esi, ebp
mov al, byte [edx]
lea edx, [edx + 1]
xor byte [ecx], al
lea ecx, [ecx + 1]
sub esi, 1
jne 0x10156a16
mov esi, dword [esp + 0x20]
push dword [esp + 0x14]
lea eax, [esi + 0x10]
push eax
push eax
call dword [esp + 0x24]
push dword [esp + 0x20]
lea eax, [esp + 0x50]
push eax
push esi
call dword [esp + 0x30]
add esp, 0x18
xor edx, edx
test ebp, ebp
je 0x10156b7a
cmp ebp, 8
jb 0x10156b5f
lea ecx, [ebp - 1]
lea eax, [esp + ebp + 0x3f]
add ecx, ebx
cmp ebx, eax
ja 0x10156a73
lea eax, [esp + 0x40]
cmp ecx, eax
jae 0x10156b5f
lea eax, [ebp - 1]
add eax, edi
cmp ebx, eax
ja 0x10156a84
cmp ecx, edi
jae 0x10156b5f
cmp ebp, 0x40
jb 0x10156b3c
mov eax, ebp
lea ecx, [edi + 0x30]
lea ebp, [esp + 0x40]
mov esi, edi
sub ebp, ebx
sub esi, ebx
mov dword [esp + 0x2c], ebp
and eax, 0xffffffc0
mov edi, dword [esp + 0x2c]
lea ebp, [esp + 0x50]
sub ebp, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ebp
lea eax, [ebx + 0x10]
lea ebp, [esp + 0x60]
mov dword [esp + 0x28], esi
sub ebp, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x34], ebp
mov ebp, esi
nop dword [eax]
movups xmm0, xmmword [ecx - 0x30]
mov esi, dword [esp + 0x34]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [esp + edx + 0x40]
add edx, 0x40
lea eax, [eax + 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax + ebp - 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x50]
movups xmm1, xmmword [ebx + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [esi + eax - 0x40]
mov esi, dword [esp + 0x20]
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [esp + 0x38]
jb 0x10156ad0
mov ebp, dword [esp + 0x64]
mov eax, ebp
mov edi, dword [esp + 0x1c]
and al, 0x3f
mov ebx, dword [esp + 0x24]
cmp al, 8
jb 0x10156b5b
mov eax, ebp
and eax, 0xfffffff8
movq xmm1, qword [edi + edx]
movq xmm0, qword [esp + edx + 0x40]
xorps xmm1, xmm0
movq qword [ebx + edx], xmm1
add edx, 8
cmp edx, eax
jb 0x10156b41
cmp edx, ebp
jae 0x10156b7a
lea eax, [esp + 0x40]
sub edi, eax
sub ebx, eax
lea ecx, [esp + 0x40]
add ecx, edx
inc edx
mov al, byte [ecx + edi]
xor al, byte [ecx]
mov byte [ecx + ebx], al
cmp edx, ebp
jb 0x10156b67
mov ecx, 0xf
sub ecx, dword [esp + 0x3c]
pop edi
cmp ecx, 0x10
jae 0x10156b9f
mov eax, 0x10
sub eax, ecx
push eax
lea eax, [ecx + esi]
push 0
push eax
call fcn.101eec70
add esp, 0xc
push dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
push esi
call dword [esp + 0x20]
mov eax, dword [esp + 0x48]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [esp + 0x40]
xor dword [esi + 0x14], eax
mov eax, dword [esp + 0x44]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x48]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0xf]
mov ecx, dword [esp + 0x4c]
mov byte [esi], al
xor eax, eax
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101ebfaa
add esp, 0x44
ret