Function at 0x101b5cd0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x68
call fcn.10107170
mov eax, dword [0x102c6100]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x74]
push ebx
mov ebx, dword [esp + 0x8c]
push esi
mov esi, dword [esp + 0x74]
push edi
mov edi, dword [esp + 0x8c]
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 1
call fcn.1015e000
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
js 0x101b604c
call fcn.101b1410
mov dword [esp + 0x10], eax
test eax, eax
je 0x101b604c
test esi, esi
jne 0x101b5d41
mov esi, 0x102acaa2
xor ecx, ecx
jmp 0x101b5d59
mov ecx, dword [esp + 0x7c]
cmp ecx, 0xffffffff
jne 0x101b5d59
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101b5d50
sub ecx, edx
push ebp
push 0
push edi
mov edi, dword [esp + 0x1c]
push ecx
push esi
push edi
call fcn.101b15f0
add esp, 0x14
test eax, eax
je 0x101b602e
call fcn.101b1410
mov ebp, eax
mov dword [esp + 0x30], ebp
test ebp, ebp
je 0x101b602e
mov edx, dword [esp + 0x94]
test edx, edx
je 0x101b5fe3
mov ecx, 1
nop dword [eax + eax]
cmp edx, dword [esp + 0x18]
mov esi, edx
mov eax, ecx
mov byte [esp + 0x13], cl
cmovg esi, dword [esp + 0x18]
shr eax, 0x18
mov byte [esp + 0x10], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x11], al
mov eax, ecx
shr eax, 8
push edi
push ebp
mov dword [esp + 0x34], esi
mov byte [esp + 0x1a], al
call fcn.101b12b0
add esp, 8
test eax, eax
je 0x101b600a
push dword [esp + 0x88]
push dword [esp + 0x2c]
push ebp
call fcn.101b1830
add esp, 0xc
test eax, eax
je 0x101b600a
push 4
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.101b1830
add esp, 0xc
test eax, eax
je 0x101b600a
push 0
lea eax, [esp + 0x38]
push eax
push ebp
call fcn.101b1540
add esp, 0xc
test eax, eax
je 0x101b600a
push esi
lea eax, [esp + 0x38]
push eax
push ebx
call fcn.1012d8a0
add esp, 0xc
mov dword [esp + 0x1c], 1
cmp dword [esp + 0x8c], 1
jle 0x101b5fbc
push edi
push ebp
call fcn.101b12b0
add esp, 8
test eax, eax
je 0x101b600a
push dword [esp + 0x18]
lea eax, [esp + 0x38]
push eax
push ebp
call fcn.101b1830
add esp, 0xc
test eax, eax
je 0x101b600a
push 0
lea eax, [esp + 0x38]
push eax
push ebp
call fcn.101b1540
add esp, 0xc
test eax, eax
je 0x101b600a
xor ecx, ecx
test esi, esi
jle 0x101b5fa2
cmp esi, 8
jb 0x101b5f80
lea edx, [ebx - 1]
lea eax, [esp + esi + 0x33]
add edx, esi
cmp ebx, eax
ja 0x101b5ec1
lea eax, [esp + 0x34]
cmp edx, eax
jae 0x101b5f80
cmp esi, 0x40
jb 0x101b5f45
mov eax, esi
and eax, 0x8000003f
jns 0x101b5ed4
dec eax
or eax, 0xffffffc0
inc eax
mov edx, esi
lea edi, [esp + 0x34]
mov esi, dword [esp + 0x2c]
lea ebp, [esp + 0x44]
sub edx, eax
sub edi, ebx
lea eax, [ebx + 0x20]
sub ebp, ebx
lea ebx, [esp + 0x34]
nop
movups xmm0, xmmword [eax - 0x20]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebx + ecx]
xorps xmm1, xmm0
movups xmmword [eax - 0x60], xmm1
movups xmm0, xmmword [eax - 0x50]
movups xmm1, xmmword [esp + ecx + 0x44]
add ecx, 0x40
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm1, xmmword [eax + ebp - 0x40]
movups xmm0, xmmword [eax - 0x30]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
cmp ecx, edx
jl 0x101b5ef0
mov ebx, dword [esp + 0x24]
mov eax, esi
and al, 0x3f
cmp al, 8
jb 0x101b5f7c
mov eax, esi
and eax, 0x80000007
jns 0x101b5f53
dec eax
or eax, 0xfffffff8
inc eax
mov edx, esi
lea edi, [esp + 0x34]
sub edx, eax
lea eax, [ecx + ebx]
sub edi, ebx
movq xmm1, qword [eax + edi]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add ecx, 8
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp ecx, edx
jl 0x101b5f60
cmp ecx, esi
jge 0x101b5f9e
lea edi, [esp + 0x34]
mov edx, esi
sub edi, ebx
lea eax, [ecx + ebx]
sub edx, ecx
nop dword [eax]
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x101b5f90
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x8c]
jl 0x101b5e51
mov edx, dword [esp + 0x94]
add ebx, esi
mov ecx, dword [esp + 0x20]
sub edx, esi
inc ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
test edx, edx
jne 0x101b5da0
push ebp
call fcn.101b13a0
push edi
call fcn.101b13a0
add esp, 8
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.101064d2
add esp, 0x68
ret
push ebp
call fcn.101b13a0
push edi
call fcn.101b13a0
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.101064d2
add esp, 0x68
ret
push edi
call fcn.101b13a0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.101064d2
add esp, 0x68
ret
mov ecx, dword [esp + 0x70]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101064d2
add esp, 0x68
ret