Function at 0x10130980
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.101a6170
push ebx
mov ebx, dword [esp + 0x24]
xor ecx, ecx
push esi
mov esi, dword [esp + 0x34]
mov eax, dword [ebx + 0x178]
mov dword [esp + 0x20], eax
mov eax, esi
add eax, dword [ebx + 0x38]
adc ecx, dword [ebx + 0x3c]
cmp ecx, 0xf
ja 0x10130cac
jb 0x101309bc
cmp eax, 0xffffffe0
ja 0x10130cac
cmp dword [ebx + 0x170], 0
mov edx, dword [ebx + 0x16c]
mov dword [ebx + 0x3c], ecx
lea ecx, [ebx + 0x40]
push ebp
push edi
mov dword [ebx + 0x38], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
je 0x10130a5c
test esi, esi
jne 0x10130a02
lea eax, [ebx + 0x60]
push eax
mov eax, dword [ebx + 0x168]
push ecx
call eax
add esp, 8
mov dword [ebx + 0x170], esi
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret
movups xmm0, xmmword [ecx]
lea eax, [ebx + 0x17c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov edx, 0x10
movups xmmword [eax], xmm0
mov dword [ecx], 0
lea eax, [ebx + 0xc]
mov dword [ecx + 4], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 0
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
bswap eax
mov dword [esp + 0x10], edx
mov dword [ebx + 0x170], 0
mov dword [esp + 0x3c], eax
jmp 0x10130b2b
lea eax, [ebx + 0x17c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
mov ecx, edx
lea eax, [ebx + 0xc]
and ecx, 0xf
mov dword [esp + 0x1c], eax
mov eax, dword [eax]
bswap eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], ecx
je 0x10130b27
mov edi, dword [esp + 0x38]
lea eax, [ebx + 0x17c]
mov ebp, dword [esp + 0x34]
add eax, edx
mov dword [esp + 0x1c], eax
nop dword [eax]
test esi, esi
je 0x10130b17
mov al, byte [ecx + ebx + 0x10]
inc edx
xor al, byte [ebp]
inc ecx
mov ebx, dword [esp + 0x1c]
inc ebp
inc dword [esp + 0x1c]
dec esi
mov byte [edi], al
inc edi
and ecx, 0xf
mov dword [esp + 0x24], edi
mov byte [ebx], al
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
jne 0x10130aa0
push edx
lea eax, [ebx + 0x17c]
push eax
lea eax, [ebx + 0x60]
push eax
mov eax, dword [ebx + 0x164]
lea ecx, [ebx + 0x40]
push ecx
call eax
mov eax, dword [esp + 0x30]
add esp, 0x10
mov ecx, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x20], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x3c], eax
jmp 0x10130b37
pop edi
pop ebp
pop esi
mov dword [ebx + 0x16c], edx
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x24], edi
lea eax, [ebx + 0x60]
cmp esi, 0x10
jb 0x10130b5d
test edx, edx
je 0x10130b5d
push edx
push dword [esp + 0x24]
push eax
mov eax, dword [ebx + 0x164]
push ecx
call eax
add esp, 0x10
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x40]
cmp esi, 0xc00
jb 0x10130bdd
mov eax, 0xaaaaaaab
mul esi
shr edx, 0xb
mov dword [esp + 0x30], edx
nop word [eax + eax]
push ebx
push dword [esp + 0x2c]
push 0xc0
push edi
push ebp
call ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
add eax, 0xc0
mov dword [esp + 0x50], eax
bswap eax
push 0xc00
mov dword [ecx], eax
lea eax, [ebx + 0x60]
push edi
push eax
push dword [esp + 0x34]
mov eax, dword [ebx + 0x164]
call eax
mov ecx, dword [esp + 0x64]
add esp, 0x24
add edi, 0xc00
add ebp, 0xc00
sub esi, 0xc00
sub dword [esp + 0x30], 1
jne 0x10130b80
mov dword [esp + 0x24], edi
mov eax, esi
and eax, 0xfffffff0
mov dword [esp + 0x30], eax
je 0x10130c31
push ebx
push dword [esp + 0x2c]
mov edi, eax
shr edi, 4
push edi
push dword [esp + 0x30]
push ebp
call ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
add eax, edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x50], eax
bswap eax
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
add ebp, eax
push eax
sub esi, eax
lea eax, [ebx + 0x60]
push edi
push eax
push dword [esp + 0x34]
mov eax, dword [ebx + 0x164]
call eax
add esp, 0x24
add edi, dword [esp + 0x30]
test esi, esi
je 0x10130c98
push dword [esp + 0x28]
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x174]
push ebx
call eax
mov eax, dword [esp + 0x48]
sub ebp, edi
mov ecx, dword [esp + 0x28]
inc eax
mov edx, dword [esp + 0x1c]
add esp, 0xc
bswap eax
add edx, 0x17c
mov dword [ecx], eax
add edx, ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
add eax, 0x10
add eax, ebx
add ecx, edi
add dword [esp + 0x10], esi
mov edi, eax
mov dword [esp + 0x30], eax
nop dword [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 esi, 1
jne 0x10130c80
mov eax, dword [esp + 0x10]
pop edi
pop ebp
mov dword [ebx + 0x16c], eax
xor eax, eax
pop esi
pop ebx
add esp, 0x1c
ret
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x1c
ret