Function at 0x10054cec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xf8
mov esi, ecx
mov edx, dword [ebp + 8]
mov al, byte [ebp + 0xc]
mov ecx, dword [0x10443bf0]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
lea ebx, [esi + 0x24]
lea edi, [esi + 0x30]
mov ecx, dword [esi + 0x28]
movzx eax, al
push ebx
push eax
push dword [esi + 0x18]
mov dword [ebp - 0x100], edi
push edi
call fcn.10054fa6
add esp, 0x10
mov dword [ebp - 0xcc], 0xffffffff
mov edi, dword [esi + 0x28]
test edi, edi
mov dword [ebp - 0x104], ebx
je 0x10054d6c
lea ebx, [ebp - 0xc8]
mov ecx, ebx
push 0x1028d962
call fcn.1000152c
lea eax, [ebp - 0xcc]
mov ecx, edi
push ebx
push eax
call fcn.10044d50
mov ecx, ebx
call fcn.10001802
jmp 0x10054d77
lea ecx, [ebp - 0xcc]
call fcn.100016c8
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x10054d87
cmp dword [eax + 4], 0x10
jae 0x10054d8e
xor ebx, ebx
jmp 0x10054f82
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
movdqu xmmword [ebp - 0x30], xmm0
cmp dword [esi + 0x10], 2
jne 0x10054e20
movups xmm0, xmmword [0x1028d980]
lea edi, [ebp - 0x30]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x1028d970]
movups xmmword [edi], xmm0
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xd8], 0x20
sub esp, 0x10
movsd xmm0, qword [ebp - 0xd4]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [ebp - 0xdc]
movsd qword [esp], xmm0
call fcn.1013fd3f
add esp, 0x10
mov eax, dword [ebp - 0xcc]
lea ecx, [eax + 0xc]
test eax, eax
mov eax, 0x1026a083
cmovne eax, ecx
push 0x10
push edi
jmp 0x10054f74
pxor xmm0, xmm0
lea ebx, [ebp - 0x50]
movdqu xmmword [ebx + 0x10], xmm0
movdqu xmmword [ebx], xmm0
lea edi, [ebp - 0x70]
movdqu xmmword [edi + 0x10], xmm0
movdqu xmmword [edi], xmm0
mov ecx, dword [eax + 4]
cmp ecx, 0x20
mov edx, 0x20
cmovb edx, ecx
add eax, 0xc
push edx
push eax
push ebx
call fcn.1023e3e0
add esp, 0xc
mov ebx, 0x13
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10054e75
xor ecx, ecx
mov dl, byte [esi + ecx + 0x30]
xor dl, bl
mov byte [ebp + ecx - 0x70], dl
inc ecx
cmp eax, ecx
jne 0x10054e66
mov dword [ebp - 0xe4], edi
mov dword [ebp - 0xe0], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], 0x20
sub esp, 0x10
movsd xmm0, qword [ebp - 0xe4]
movsd qword [esp + 8], xmm0
movq xmm0, qword [ebp - 0xec]
movq qword [esp], xmm0
call fcn.1013fd3f
add esp, 0x10
sub ebx, 1
jae 0x10054e5d
xor eax, eax
dec eax
lea esi, [ebp - 0xc8]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x40], xmm0
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
push esi
call fcn.1013fe42
add esp, 4
mov dword [ebp - 0xf4], 0x1028d970
mov dword [ebp - 0xf0], 0x20
sub esp, 0xc
movsd xmm0, qword [ebp - 0xf4]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.1013fe7a
add esp, 0xc
mov eax, dword [ebp - 0x104]
mov eax, dword [eax]
test eax, eax
je 0x10054f61
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10054f61
add eax, 0xc
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], ecx
sub esp, 0xc
movsd xmm0, qword [ebp - 0xfc]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.1013fe7a
add esp, 0xc
lea edi, [ebp - 0x30]
push edi
push esi
call fcn.101405f6
add esp, 8
push 0x10
push edi
lea eax, [ebp - 0x50]
push eax
call fcn.1023d4cd
add esp, 0xc
test eax, eax
sete bl
lea ecx, [ebp - 0xcc]
call fcn.10001802
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1023b4d8
mov eax, ebx
add esp, 0xf8
pop esi
pop edi
pop ebx
pop ebp
ret 8