Function at 0x10103880
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x28
call fcn.101631e0
mov eax, dword [0x101f9e50]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x38]
mov bl, byte [esi]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov byte [esp + 0xf], bl
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
test bl, 0x40
jne 0x101038cc
push eax
lea eax, [esi + 0x10]
push eax
push esi
call ecx
add esp, 0xc
add dword [esi + 0x20], 1
adc dword [esi + 0x24], 0
movzx eax, bl
and eax, 7
mov edx, 0xf
sub edx, eax
xor ecx, ecx
mov byte [esi], al
mov dword [esp + 0x1c], edx
cmp edx, 0xf
jae 0x101038f9
movzx eax, byte [esi + edx]
or ecx, eax
mov byte [esi + edx], 0
inc edx
shl ecx, 8
cmp edx, 0xf
jb 0x101038e6
movzx eax, byte [esi + 0xf]
mov ebx, dword [esp + 0x44]
or ecx, eax
mov byte [esi + 0xf], 1
cmp ecx, ebx
je 0x10103920
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10160171
add esp, 0x28
ret
lea eax, [ebx + 0xf]
or eax, 8
shr eax, 3
add dword [esi + 0x20], eax
adc dword [esi + 0x24], 0
cmp dword [esi + 0x24], 0x20000000
jb 0x10103958
ja 0x10103941
cmp dword [esi + 0x20], 0
jbe 0x10103958
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10160171
add esp, 0x28
ret
push edi
mov edi, dword [esp + 0x40]
cmp ebx, 0x10
jb 0x101039ec
mov eax, ebx
shr eax, 4
lea ecx, [esi + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
xor dword [ecx], eax
mov eax, dword [edi + 4]
xor dword [ecx + 4], eax
mov eax, dword [edi + 8]
push dword [esp + 0x18]
xor dword [esi + 0x18], eax
mov eax, dword [edi + 0xc]
xor dword [esi + 0x1c], eax
push ecx
push ecx
call dword [esp + 0x20]
push dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
push esi
call dword [esp + 0x2c]
add esp, 0x18
mov ecx, 8
dec ecx
inc byte [esi + ecx + 8]
jne 0x101039b3
test ecx, ecx
jne 0x101039a8
mov ecx, dword [edi]
mov eax, dword [edi + 4]
xor ecx, dword [esp + 0x24]
xor eax, dword [esp + 0x28]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [ebp + 4], eax
xor ecx, dword [edi + 8]
mov eax, dword [esp + 0x30]
xor eax, dword [edi + 0xc]
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
add edi, 0x10
add ebp, 0x10
sub ebx, 0x10
dec dword [esp + 0x1c]
lea ecx, [esi + 0x10]
jne 0x10103972
test ebx, ebx
je 0x10103a43
xor ecx, ecx
test ebx, ebx
je 0x10103a02
mov al, byte [ecx + edi]
xor byte [esi + ecx + 0x10], al
inc ecx
cmp ecx, ebx
jb 0x101039f6
push dword [esp + 0x18]
lea eax, [esi + 0x10]
push eax
push eax
call dword [esp + 0x20]
push dword [esp + 0x24]
lea eax, [esp + 0x34]
push eax
push esi
call dword [esp + 0x2c]
add esp, 0x18
xor edx, edx
test ebx, ebx
je 0x10103a43
lea eax, [esp + 0x24]
sub edi, eax
sub ebp, eax
mov edi, edi
lea ecx, [esp + 0x24]
add ecx, edx
inc edx
mov al, byte [edi + ecx]
xor al, byte [ecx]
mov byte [ecx + ebp], al
cmp edx, ebx
jb 0x10103a30
mov eax, dword [esp + 0x20]
cmp eax, 0x10
jae 0x10103a66
mov ecx, 0x10
sub ecx, eax
mov edx, ecx
shr ecx, 2
lea edi, [esi + eax]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push esi
call dword [esp + 0x20]
mov eax, dword [esp + 0x30]
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 + 0x1f]
mov ecx, dword [esp + 0x40]
add esp, 0xc
mov byte [esi], al
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10160171
add esp, 0x28
ret