Function at 0x101552a0
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 + 0x18], eax
mov eax, ebx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x101555c0
jb 0x101552dc
cmp eax, 0xffffffe0
ja 0x101555c0
cmp dword [esi + 0x170], 0
mov edx, dword [esi + 0x16c]
mov dword [esi + 0x3c], ecx
lea ecx, [esi + 0x40]
mov dword [esi + 0x38], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0xc], ecx
je 0x10155358
test ebx, ebx
jne 0x1015531e
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 edx, 0x10
mov dword [esp + 0x30], edx
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 0x1015535c
mov dword [esp + 0xc], 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 + 8], ecx
mov ecx, edx
push ebp
mov ebp, dword [esp + 0x2c]
and ecx, 0xf
push edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
je 0x10155400
lea eax, [esi + 0x17c]
add eax, edx
mov dword [esp + 0x38], eax
test ebx, ebx
je 0x101555b0
mov al, byte [ecx + esi + 0x10]
inc edx
xor al, byte [ebp]
inc ecx
mov esi, dword [esp + 0x38]
inc ebp
inc dword [esp + 0x38]
dec ebx
mov byte [edi], al
inc edi
and ecx, 0xf
mov dword [esp + 0x18], edi
mov byte [esi], al
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x1c], ecx
jne 0x101553a0
push edx
lea ecx, [esi + 0x17c]
push ecx
lea ecx, [esi + 0x60]
lea eax, [esi + 0x40]
push ecx
mov dword [esp + 0x20], eax
push eax
mov eax, dword [esi + 0x164]
call eax
mov eax, dword [esp + 0x2c]
add esp, 0x10
xor edx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], edx
jmp 0x10155404
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
cmp ebx, 0x10
jb 0x10155441
mov dword [esp + 0x2c], eax
test edx, edx
je 0x10155441
push edx
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 + 0x24]
add esp, 0x10
mov dword [esp + 0x38], 0
mov dword [esp + 0x2c], eax
cmp ebx, 0xc00
jb 0x101554cf
mov dword [esp + 0x2c], eax
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [esp + 0x24], edx
nop
push esi
push dword [esp + 0x24]
push 0xc0
push edi
push ebp
call dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
add ecx, 0xc0
mov eax, ecx
mov dword [esp + 0x24], 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
push 0xc00
mov byte [esi + 0xe], al
lea eax, [esi + 0x60]
push edi
push eax
push dword [esp + 0x4c]
mov eax, dword [esi + 0x164]
mov byte [esi + 0xf], cl
call eax
add esp, 0x24
add edi, 0xc00
add ebp, 0xc00
sub ebx, 0xc00
sub dword [esp + 0x24], 1
jne 0x10155460
mov dword [esp + 0x18], edi
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x24], eax
je 0x10155538
push esi
push dword [esp + 0x24]
mov edi, eax
shr edi, 4
push edi
push dword [esp + 0x24]
push ebp
call dword [esp + 0x50]
mov ecx, dword [esp + 0x24]
add ecx, edi
mov edi, dword [esp + 0x2c]
mov eax, ecx
mov dword [esp + 0x24], 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 + 0x38]
add ebp, eax
push eax
sub ebx, eax
mov byte [esi + 0xf], cl
push edi
lea eax, [esi + 0x60]
push eax
push dword [esp + 0x4c]
mov eax, dword [esi + 0x164]
call eax
add esp, 0x24
add edi, dword [esp + 0x24]
test ebx, ebx
je 0x101555ac
push dword [esp + 0x20]
lea eax, [esi + 0x10]
push eax
mov eax, dword [esi + 0x174]
push esi
call eax
mov ecx, dword [esp + 0x1c]
sub ebp, edi
mov edx, dword [esp + 0x44]
inc ecx
mov eax, ecx
mov byte [esi + 0xf], cl
shr eax, 0x18
add edx, 0x17c
mov byte [esi + 0xc], al
add esp, 0xc
mov eax, ecx
add edx, esi
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xe], al
mov eax, dword [esp + 0x1c]
lea ecx, [eax + edi]
add eax, 0x10
add eax, esi
add dword [esp + 0x38], ebx
mov dword [esp + 0x2c], eax
mov edi, eax
mov al, byte [ecx + ebp]
lea edx, [edx + 1]
xor al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x10155594
mov edx, dword [esp + 0x38]
pop edi
pop ebp
mov dword [esi + 0x16c], edx
xor eax, eax
pop esi
pop ebx
add esp, 0x18
ret
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret