Function at 0x10105140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x7c
mov eax, dword [edx]
mov edi, edx
mov esi, ecx
movzx eax, byte [eax + 0x14]
cmp al, 2
je 0x1010515f
and al, 1
je 0x10105430
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx + 0x18]
test eax, eax
je 0x10105180
cmp eax, 1
jne 0x10105251
lea ecx, [ebp - 0x44]
call fcn.1010c250
jmp 0x10105344
mov eax, dword [0x103564a0]
mov ebx, dword [0x1035648c]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x101051a3
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10105446
mov dword [ebx], eax
push 0x200
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x10105446
movdqa xmm0, xmmword [0x1024d650]
mov ecx, 0xfffffe00
nop word cs:[eax + eax]
nop
movdqu xmm1, xmmword [ecx + 0x1025d0e4]
pshufd xmm3, xmm1, 0xed
pshufd xmm2, xmm1, 0xe8
movdqa xmm5, xmm3
movdqa xmm1, xmm2
movdqa xmm6, xmm2
pxor xmm5, xmm0
pxor xmm1, xmm0
movdqa xmm4, xmm5
pcmpgtd xmm4, xmm1
pcmpgtd xmm1, xmm5
pand xmm6, xmm4
pandn xmm4, xmm3
pand xmm2, xmm1
pandn xmm1, xmm3
por xmm4, xmm6
por xmm1, xmm2
punpckldq xmm4, xmm1
movdqu xmmword [eax + ecx + 0x200], xmm4
add ecx, 0x10
jne 0x101051d0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x40
mov dword [ebp - 0x2c], 0x40
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x34]
call fcn.100f8e20
mov ebx, dword [ebp + 8]
jmp 0x10105330
mov eax, dword [0x103564a0]
mov ebx, dword [0x1035648c]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x10105274
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1010544d
mov dword [ebx], eax
push 0x1818
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1010544d
movdqa xmm0, xmmword [0x1024d650]
mov ecx, 0xffffe7f0
nop word cs:[eax + eax]
movdqu xmm1, xmmword [ecx + 0x1025ce8c]
pshufd xmm3, xmm1, 0xed
pshufd xmm2, xmm1, 0xe8
movdqa xmm5, xmm3
movdqa xmm1, xmm2
movdqa xmm6, xmm2
pxor xmm5, xmm0
pxor xmm1, xmm0
movdqa xmm4, xmm5
pcmpgtd xmm4, xmm1
pcmpgtd xmm1, xmm5
pand xmm6, xmm4
pandn xmm4, xmm3
pand xmm2, xmm1
pandn xmm1, xmm3
por xmm4, xmm6
por xmm1, xmm2
punpckldq xmm4, xmm1
movdqu xmmword [eax + ecx + 0x1810], xmm4
add ecx, 0x10
jne 0x101052a0
mov dword [eax + 0x1810], 0xe0100
mov dword [eax + 0x1814], 0xe01ef
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0x303
mov dword [ebp - 0x2c], 0x303
mov byte [ebp - 0x28], 0
lea ecx, [ebp - 0x34]
call fcn.100f8e20
mov ebx, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x34]
movsd xmm1, qword [ebp - 0x2c]
movsd qword [ebp - 0x3c], xmm1
movsd qword [ebp - 0x44], xmm0
movsd xmm0, qword [ebp - 0x44]
movsd xmm1, qword [ebp - 0x3c]
mov edx, dword [edi + 4]
movsd qword [ebp - 0x80], xmm1
movsd qword [ebp - 0x88], xmm0
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x34]
push eax
push ebx
push dword [edi + 8]
call fcn.101056b0
add esp, 0xc
movzx eax, byte [ebp - 0x10]
cmp al, 7
jne 0x101053bb
movq xmm0, qword [ebp - 0x34]
movq xmm1, qword [ebp - 0x2c]
cmp byte [ebx + 0x19], 0
movq qword [ebp - 0x54], xmm0
movq qword [ebp - 0x4c], xmm1
je 0x101053a2
lea eax, [ebp - 0x54]
push eax
call fcn.10109950
add esp, 4
movsd xmm0, qword [ebp - 0x54]
movsd xmm1, qword [ebp - 0x4c]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov byte [esi + 0x24], 7
jmp 0x10105428
mov ecx, dword [ebp - 0x14]
movsd xmm1, qword [ebp - 0x24]
movsd xmm0, qword [ebp - 0x1c]
movq xmm3, qword [ebp - 0x34]
mov dword [ebp - 0x58], ecx
movsd qword [ebp - 0x68], xmm1
movsd xmm1, qword [ebp - 0x2c]
movzx ecx, byte [ebp - 0xd]
movsd qword [ebp - 0x60], xmm0
movq qword [ebp - 0x78], xmm3
movsd xmm2, qword [ebp - 0x60]
movsd qword [ebp - 0x70], xmm1
mov byte [esi + 0x27], cl
movzx ecx, word [ebp - 0xf]
movsd xmm1, qword [ebp - 0x68]
mov word [esi + 0x25], cx
mov ecx, dword [ebp - 0x58]
movsd qword [esi + 0x18], xmm2
movsd qword [esi + 0x10], xmm1
movq xmm2, qword [ebp - 0x78]
movsd xmm1, qword [ebp - 0x70]
mov dword [esi + 0x20], ecx
movsd qword [esi + 8], xmm1
movq qword [esi], xmm2
mov byte [esi + 0x24], al
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1024fc4c
push 0x28
push str.assertion_failed:_self.flags__.unicode__0
call fcn.10026890
add esp, 0xc
ud2
push 0x200
jmp 0x10105452
push 0x1818
push 4
call fcn.1001a7e0
add esp, 8
ud2