Function at 0x10153c90
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 0x10153f71
jb 0x10153ccc
cmp eax, 0xffffffe0
ja 0x10153f71
cmp dword [edi + 0x170], 0
push ebp
mov ebp, dword [edi + 0x16c]
mov dword [edi + 0x3c], ecx
lea ecx, [edi + 0x40]
push esi
mov dword [edi + 0x38], eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ecx
je 0x10153d4e
test ebx, ebx
jne 0x10153d12
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 esi
pop ebp
pop edi
pop ebx
add esp, 0x1c
ret
movups xmm0, xmmword [ecx]
lea esi, [edi + 0x17c]
mov ebp, 0x10
mov dword [esp + 0x18], ebp
movups xmmword [esi], 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 0x10153d58
lea esi, [edi + 0x17c]
mov dword [esp + 0x1c], ecx
mov eax, dword [edi + 0xc]
mov edx, ebp
bswap eax
and edx, 0xf
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], edx
je 0x10153df5
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x10], esi
test ebx, ebx
je 0x10153dc1
mov al, byte [edx + edi + 0x10]
dec ebx
xor al, byte [esi]
inc edx
lea esi, [edi + 0x17c]
mov byte [ecx], al
mov dword [esp + 0x18], esi
inc ecx
mov esi, dword [esp + 0x10]
mov byte [edi + ebp + 0x17c], al
inc esi
inc ebp
mov dword [esp + 0x3c], ecx
and edx, 0xf
mov dword [esp + 0x10], esi
mov dword [esp + 0x24], edx
jne 0x10153d88
jmp 0x10153dd1
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
test edx, edx
jne 0x10153f61
push ebp
push dword [esp + 0x1c]
lea ecx, [edi + 0x60]
lea eax, [edi + 0x40]
push ecx
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 0x10153e05
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], esi
lea edx, [edi + 0x60]
cmp ebx, 0x10
jb 0x10153e2c
test ebp, ebp
je 0x10153e2c
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
mov ecx, dword [esp + 0x40]
cmp ebx, 0xc00
jb 0x10153eb2
mov ebp, dword [esp + 0x3c]
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [esp + 0x10], edx
nop word [eax + eax]
push edi
push dword [esp + 0x24]
push 0xc0
push ebp
push esi
call ecx
mov eax, dword [esp + 0x28]
add eax, 0xc0
mov dword [esp + 0x28], eax
bswap eax
push 0xc00
mov dword [edi + 0xc], eax
lea eax, [edi + 0x60]
push ebp
push eax
push dword [esp + 0x3c]
mov eax, dword [edi + 0x164]
call eax
mov ecx, dword [esp + 0x64]
add esp, 0x24
add ebp, 0xc00
add esi, 0xc00
sub ebx, 0xc00
sub dword [esp + 0x10], 1
jne 0x10153e50
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 0x10153f0d
push edi
push dword [esp + 0x24]
mov esi, eax
shr esi, 4
push esi
push dword [esp + 0x48]
push dword [esp + 0x20]
call ecx
mov eax, dword [esp + 0x28]
add eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x28], eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x2c]
add esi, eax
push eax
push dword [esp + 0x54]
sub ebx, eax
lea eax, [edi + 0x60]
push eax
push dword [esp + 0x3c]
mov eax, dword [edi + 0x164]
call eax
mov eax, dword [esp + 0x3c]
add esp, 0x24
add dword [esp + 0x3c], eax
test ebx, ebx
je 0x10153f61
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 edx, dword [esp + 0x24]
inc eax
bswap eax
mov dword [edi + 0xc], eax
add edi, 0x10
mov eax, dword [esp + 0x3c]
lea ecx, [edx + eax]
add edx, edi
mov edi, dword [esp + 0x28]
sub esi, eax
mov al, byte [esi + ecx]
lea edx, [edx + 1]
xor al, byte [edx - 1]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
mov byte [edi + ebp], al
inc ebp
sub ebx, 1
jne 0x10153f45
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