Function at 0x10052956
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 [0x1043db14]
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.10052c10
add esp, 0x10
mov dword [ebp - 0xcc], 0xffffffff
mov edi, dword [esi + 0x28]
test edi, edi
mov dword [ebp - 0x104], ebx
je 0x100529d6
lea ebx, [ebp - 0xc8]
mov ecx, ebx
push 0x10288802
call fcn.100014cc
lea eax, [ebp - 0xcc]
mov ecx, edi
push ebx
push eax
call fcn.10043a60
mov ecx, ebx
call fcn.100017a2
jmp 0x100529e1
lea ecx, [ebp - 0xcc]
call fcn.10001668
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x100529f1
cmp dword [eax + 4], 0x10
jae 0x100529f8
xor ebx, ebx
jmp 0x10052bec
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
movdqu xmmword [ebp - 0x30], xmm0
cmp dword [esi + 0x10], 2
jne 0x10052a8a
movups xmm0, xmmword [0x10288820]
lea edi, [ebp - 0x30]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [0x10288810]
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.1019719b
add esp, 0x10
mov eax, dword [ebp - 0xcc]
lea ecx, [eax + 0xc]
test eax, eax
mov eax, 0x10265083
cmovne eax, ecx
push 0x10
push edi
jmp 0x10052bde
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.1023a630
add esp, 0xc
mov ebx, 0x13
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10052adf
xor ecx, ecx
mov dl, byte [esi + ecx + 0x30]
xor dl, bl
mov byte [ebp + ecx - 0x70], dl
inc ecx
cmp eax, ecx
jne 0x10052ad0
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.1019719b
add esp, 0x10
sub ebx, 1
jae 0x10052ac7
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.1019729e
add esp, 4
mov dword [ebp - 0xf4], 0x10288810
mov dword [ebp - 0xf0], 0x20
sub esp, 0xc
movsd xmm0, qword [ebp - 0xf4]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.101972d6
add esp, 0xc
mov eax, dword [ebp - 0x104]
mov eax, dword [eax]
test eax, eax
je 0x10052bcb
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x10052bcb
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.101972d6
add esp, 0xc
lea edi, [ebp - 0x30]
push edi
push esi
call fcn.10197a4c
add esp, 8
push 0x10
push edi
lea eax, [ebp - 0x50]
push eax
call fcn.1023971d
add esp, 0xc
test eax, eax
sete bl
lea ecx, [ebp - 0xcc]
call fcn.100017a2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.102377e8
mov eax, ebx
add esp, 0xf8
pop esi
pop edi
pop ebx
pop ebp
ret 8