Function at 0x10153640
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.10228380
push ebx
mov ebx, dword [esp + 0x30]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x28]
mov eax, dword [edi + 0x178]
mov dword [esp + 0x18], eax
mov eax, ebx
add eax, dword [edi + 0x38]
adc ecx, dword [edi + 0x3c]
cmp ecx, 0xf
ja 0x10153922
jb 0x1015367c
cmp eax, 0xffffffe0
ja 0x10153922
cmp dword [edi + 0x170], 0
mov dword [edi + 0x3c], ecx
lea ecx, [edi + 0x40]
push ebp
mov ebp, dword [edi + 0x16c]
mov dword [edi + 0x38], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ecx
je 0x101536fc
test ebx, ebx
jne 0x101536c0
lea eax, [edi + 0x60]
push eax
mov eax, dword [edi + 0x168]
push ecx
call eax
add esp, 8
mov dword [edi + 0x170], ebx
xor eax, eax
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret
movups xmm0, xmmword [ecx]
lea edx, [edi + 0x17c]
mov ebp, 0x10
mov dword [esp + 0x14], ebp
movups xmmword [edx], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x170], 0
jmp 0x10153706
lea edx, [edi + 0x17c]
mov dword [esp + 0x18], ecx
mov eax, dword [edi + 0xc]
bswap eax
mov dword [esp + 0x10], eax
mov eax, ebp
push esi
mov esi, dword [esp + 0x34]
and eax, 0xf
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], esi
je 0x101537a3
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x3c], edx
test ebx, ebx
je 0x10153776
mov cl, byte [esi]
lea edx, [edi + 0x17c]
mov dword [esp + 0x18], edx
inc esi
mov edx, dword [esp + 0x3c]
dec ebx
mov byte [edi + ebp + 0x17c], cl
inc ebp
mov al, byte [eax + edi + 0x10]
xor al, cl
mov dword [esp + 0x10], esi
mov byte [edx], al
inc edx
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x3c], edx
and eax, 0xf
mov dword [esp + 0x24], eax
jne 0x10153733
mov ecx, dword [esp + 0x18]
jmp 0x10153782
mov ecx, dword [esp + 0x18]
test eax, eax
jne 0x10153912
push ebp
push ecx
lea edx, [edi + 0x60]
lea eax, [edi + 0x40]
push edx
push eax
mov eax, dword [edi + 0x164]
call eax
mov ecx, dword [esp + 0x2c]
add esp, 0x10
xor ebp, ebp
mov dword [esp + 0x18], ebp
jmp 0x101537ab
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], eax
lea edx, [edi + 0x60]
cmp ebx, 0x10
jb 0x101537d2
test ebp, ebp
je 0x101537d2
push ebp
lea eax, [edi + 0x17c]
push eax
mov eax, dword [edi + 0x164]
push edx
push ecx
call eax
add esp, 0x10
xor ebp, ebp
mov dword [esp + 0x18], ebp
cmp ebx, 0xc00
jb 0x10153853
mov ebp, dword [esp + 0x3c]
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [esp + 0x10], edx
nop dword [eax]
push 0xc00
push esi
lea eax, [edi + 0x60]
push eax
push dword [esp + 0x28]
mov eax, dword [edi + 0x164]
call eax
push edi
push dword [esp + 0x34]
push 0xc0
push ebp
push esi
call dword [esp + 0x64]
mov ecx, dword [esp + 0x38]
add esp, 0x24
add ecx, 0xc0
add ebp, 0xc00
mov eax, ecx
mov dword [esp + 0x14], ecx
bswap eax
add esi, 0xc00
mov dword [edi + 0xc], eax
sub ebx, 0xc00
sub dword [esp + 0x10], 1
jne 0x101537f0
mov dword [esp + 0x3c], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x10], esi
mov eax, ebx
and eax, 0xfffffff0
mov dword [esp + 0x18], eax
je 0x101538ad
push eax
push dword [esp + 0x14]
mov esi, eax
lea eax, [edi + 0x60]
push eax
push dword [esp + 0x28]
mov eax, dword [edi + 0x164]
shr esi, 4
call eax
mov ecx, dword [esp + 0x4c]
push edi
push dword [esp + 0x34]
push esi
push ecx
push dword [esp + 0x30]
call dword [esp + 0x64]
mov eax, dword [esp + 0x38]
add esp, 0x24
add eax, esi
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x18]
add esi, eax
add dword [esp + 0x3c], eax
sub ebx, eax
test ebx, ebx
je 0x10153912
push dword [esp + 0x20]
lea eax, [edi + 0x10]
push eax
mov eax, dword [edi + 0x174]
push edi
call eax
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x3c]
inc eax
bswap eax
mov dword [edi + 0xc], eax
add edi, 0x10
mov eax, dword [esp + 0x24]
lea edx, [eax + ecx]
add eax, edi
mov dword [esp + 0x3c], eax
sub esi, ecx
mov edi, eax
nop word [eax + eax]
mov eax, dword [esp + 0x28]
lea edi, [edi + 1]
mov cl, byte [esi + edx]
lea edx, [edx + 1]
mov byte [eax + ebp], cl
inc ebp
mov al, byte [edi - 1]
xor al, cl
mov byte [edx - 1], al
sub ebx, 1
jne 0x101538f0
mov edi, dword [esp + 0x30]
pop esi
mov dword [edi + 0x16c], ebp
xor eax, eax
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret
pop edi
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret