Function at 0x10154ad0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.101ebae0
push ebx
mov ebx, dword [esp + 0x2c]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x178]
mov dword [esp + 0x1c], eax
mov eax, ebx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x10154e39
jb 0x10154b0c
cmp eax, 0xffffffe0
ja 0x10154e39
cmp dword [esi + 0x170], 0
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x16c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], ecx
je 0x10154b87
test ebx, ebx
jne 0x10154b4e
lea eax, [esi + 0x60]
push eax
mov eax, dword [esi + 0x168]
push ecx
call eax
add esp, 8
mov dword [esi + 0x170], ebx
xor eax, eax
pop esi
pop ebx
add esp, 0x18
ret
movups xmm0, xmmword [ecx]
mov dword [esp + 0x30], 0x10
movups xmmword [esi + 0x17c], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x170], 0
jmp 0x10154b8b
mov dword [esp + 0x10], ecx
movzx ecx, byte [esi + 0xc]
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xf]
shl ecx, 8
or ecx, eax
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov edx, ecx
push ebp
mov ebp, dword [esp + 0x2c]
and edx, 0xf
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x20], edx
je 0x10154c4a
lea eax, [esi + 0x17c]
add eax, ecx
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x10154c3a
mov cl, byte [ebp]
dec ebx
mov byte [eax], cl
inc ebp
mov al, byte [edx + esi + 0x10]
inc edx
xor al, cl
mov ecx, dword [esp + 0x38]
mov byte [edi], al
inc ecx
mov eax, dword [esp + 0x18]
inc edi
inc eax
mov dword [esp + 0x1c], edi
and edx, 0xf
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
jne 0x10154bd7
push ecx
lea edx, [esi + 0x17c]
push edx
lea edx, [esi + 0x60]
lea eax, [esi + 0x40]
push edx
mov dword [esp + 0x24], eax
push eax
mov eax, dword [esi + 0x164]
call eax
mov eax, dword [esp + 0x30]
add esp, 0x10
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], ecx
jmp 0x10154c4e
pop edi
pop ebp
mov dword [esi + 0x16c], ecx
xor eax, eax
pop esi
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x1c], edi
lea eax, [esi + 0x60]
mov edx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp ebx, 0x10
jb 0x10154c9a
mov dword [esp + 0x10], eax
lea edx, [esi + 0x60]
test ecx, ecx
je 0x10154c9a
push ecx
lea ecx, [esi + 0x17c]
push ecx
lea ecx, [esi + 0x60]
push ecx
push eax
mov eax, dword [esi + 0x164]
call eax
mov eax, dword [esp + 0x28]
lea ecx, [esi + 0x60]
add esp, 0x10
mov dword [esp + 0x38], 0
mov edx, ecx
mov dword [esp + 0x10], eax
jmp 0x10154c9d
lea ecx, [esi + 0x60]
cmp ebx, 0xc00
jb 0x10154d32
mov dword [esp + 0x10], eax
mov eax, 0xaaaaaaab
mul ebx
mov dword [esp + 0x18], ecx
shr edx, 0xb
mov dword [esp + 0x1c], edx
nop
mov eax, dword [esi + 0x164]
push 0xc00
push ebp
push ecx
push dword [esp + 0x1c]
call eax
push esi
push dword [esp + 0x38]
push 0xc0
push edi
push ebp
call dword [esp + 0x60]
mov ecx, dword [esp + 0x38]
add esp, 0x24
add ecx, 0xc0
add edi, 0xc00
mov eax, ecx
mov dword [esp + 0x14], ecx
shr eax, 0x18
add ebp, 0xc00
mov byte [esi + 0xc], al
sub ebx, 0xc00
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
mov ecx, dword [esp + 0x18]
shr eax, 8
sub dword [esp + 0x1c], 1
mov byte [esi + 0xe], al
jne 0x10154cc0
mov dword [esp + 0x1c], edi
mov edx, ecx
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x18], eax
je 0x10154d96
push eax
push ebp
push edx
push dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esi + 0x164]
shr edi, 4
call eax
push esi
push dword [esp + 0x38]
push edi
push dword [esp + 0x38]
push ebp
call dword [esp + 0x60]
mov ecx, dword [esp + 0x38]
add esp, 0x24
add ecx, edi
mov edi, dword [esp + 0x1c]
mov eax, ecx
mov dword [esp + 0x14], ecx
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [esp + 0x18]
add edi, eax
add ebp, eax
mov byte [esi + 0xf], cl
sub ebx, eax
test ebx, ebx
je 0x10154e25
push dword [esp + 0x24]
lea eax, [esi + 0x10]
push eax
mov eax, dword [esi + 0x174]
push esi
call eax
mov ecx, dword [esp + 0x20]
add esp, 0xc
inc ecx
sub ebp, edi
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
mov ecx, dword [esp + 0x38]
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [esp + 0x20]
lea edx, [eax + edi]
add eax, 0x10
add eax, esi
mov dword [esp + 0x20], eax
lea eax, [esi + 0x17c]
mov esi, dword [esp + 0x20]
add eax, ecx
add ecx, ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x38], ecx
nop
mov cl, byte [edx + ebp]
lea esi, [esi + 1]
mov byte [eax], cl
lea edx, [edx + 1]
mov al, byte [esi - 1]
xor al, cl
mov byte [edx - 1], al
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
sub ebx, 1
jne 0x10154e00
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x38]
pop edi
pop ebp
mov dword [esi + 0x16c], eax
xor eax, eax
pop esi
pop ebx
add esp, 0x18
ret
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret