Function at 0x10106f10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x34
call fcn.10021e20
mov eax, dword [0x10195170]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x40]
push esi
mov esi, dword [esp + 0x40]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov dl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x24], esi
mov byte [esp + 0xb], dl
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
push edi
test dl, 0x40
jne 0x10106f74
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 byte [esi], al
mov dword [esp + 0x24], edx
cmp edx, 0xf
jae 0x10106fa3
mov edi, edi
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x10106f90
movzx eax, byte [esi + 0xf]
mov edi, dword [esp + 0x50]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, edi
je 0x10106fca
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10020a26
add esp, 0x34
ret
lea eax, [edi + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x10107002
ja 0x10106feb
cmp dword [esi + 0x20], 0
jbe 0x10107002
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10020a26
add esp, 0x34
ret
push ebp
mov ebp, edi
shr ebp, 4
test ebp, ebp
je 0x10107044
lea eax, [esi + 0x10]
push eax
push esi
push dword [esp + 0x20]
push ebp
push dword [esp + 0x24]
push ebx
call dword [esp + 0x34]
shl ebp, 4
add esp, 0x18
add dword [esp + 0x14], ebp
add ebx, ebp
sub edi, ebp
mov dword [esp + 0x54], edi
je 0x10107125
shr ebp, 4
push ebp
push esi
call fcn.101072a0
add esp, 8
test edi, edi
je 0x10107125
xor ecx, ecx
test edi, edi
je 0x1010705e
mov al, byte [ebx + ecx]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, edi
jb 0x10107052
mov ebp, dword [esp + 0x18]
lea eax, [esi + 0x10]
push ebp
push eax
push eax
call dword [esp + 0x2c]
push ebp
lea eax, [esp + 0x40]
push eax
push esi
call dword [esp + 0x38]
add esp, 0x18
xor edx, edx
test edi, edi
je 0x10107129
mov ebp, dword [esp + 0x14]
cmp edi, 0x10
jb 0x10107106
lea ecx, [ebp - 1]
lea eax, [esp + edi + 0x2f]
add ecx, edi
cmp ebp, eax
ja 0x101070a2
lea eax, [esp + 0x30]
cmp ecx, eax
jae 0x10107106
lea eax, [ebx - 1]
add eax, edi
cmp ebp, eax
ja 0x101070af
cmp ecx, ebx
jae 0x10107106
mov eax, edi
mov esi, ebp
and eax, 0xf
lea ebp, [esp + 0x30]
mov ecx, edi
sub esi, ebx
sub ecx, eax
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x2c]
sub ebp, ebx
mov dword [esp + 0x24], ebp
mov eax, ebx
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
jmp 0x101070e0
movdqu xmm0, xmmword [eax]
add edx, 0x10
lea eax, [eax + 0x10]
movdqu xmm1, xmmword [edi + eax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [eax + ebp - 0x10], xmm1
cmp edx, ecx
jb 0x101070e0
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x14]
cmp edx, edi
jae 0x10107125
lea eax, [esp + 0x30]
sub ebx, eax
sub ebp, eax
lea ecx, [esp + 0x30]
add ecx, edx
inc edx
mov al, byte [ebx + ecx]
xor al, byte [ecx]
mov byte [ecx + ebp], al
cmp edx, edi
jb 0x10107112
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
cmp eax, 0x10
jae 0x1010714c
mov ecx, 0x10
lea edi, [esi + eax]
sub ecx, eax
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 ebp
lea eax, [esp + 0x34]
push eax
push esi
call dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
add esp, 0xc
xor dword [esi + 0x10], eax
mov eax, dword [esp + 0x34]
xor dword [esi + 0x14], eax
mov eax, dword [esp + 0x38]
xor dword [esi + 0x18], eax
mov eax, dword [esp + 0x3c]
xor dword [esi + 0x1c], eax
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x40]
pop ebp
pop edi
mov byte [esi], al
xor eax, eax
pop esi
pop ebx
xor ecx, esp
call fcn.10020a26
add esp, 0x34
ret