Function at 0x1011ad50
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 0x1011ad6f
and al, 1
je 0x1011b040
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx + 0x18]
test eax, eax
je 0x1011ad90
cmp eax, 1
jne 0x1011ae61
lea ecx, [ebp - 0x44]
call fcn.10121e60
jmp 0x1011af54
mov eax, dword [0x1044f00c]
mov ebx, dword [0x1044eff8]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x1011adb3
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1011b056
mov dword [ebx], eax
push 0x200
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1011b056
movdqa xmm0, xmmword [0x1033b410]
mov ecx, 0xfffffe00
nop word cs:[eax + eax]
nop
movdqu xmm1, xmmword [ecx + 0x1034aea4]
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 0x1011ade0
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.1010ea30
mov ebx, dword [ebp + 8]
jmp 0x1011af40
mov eax, dword [0x1044f00c]
mov ebx, dword [0x1044eff8]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x1011ae84
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1011b05d
mov dword [ebx], eax
push 0x1818
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1011b05d
movdqa xmm0, xmmword [0x1033b410]
mov ecx, 0xffffe7f0
nop word cs:[eax + eax]
movdqu xmm1, xmmword [ecx + 0x1034ac4c]
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 0x1011aeb0
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.1010ea30
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.1011b2c0
add esp, 0xc
movzx eax, byte [ebp - 0x10]
cmp al, 7
jne 0x1011afcb
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 0x1011afb2
lea eax, [ebp - 0x54]
push eax
call fcn.1011f560
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 0x1011b038
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 0x1033da0c
push 0x28
push str.assertion_failed:_self.flags__.unicode__
call fcn.10027330
add esp, 0xc
ud2
push 0x200
jmp 0x1011b062
push 0x1818
push 4
call fcn.1001ac80
add esp, 8
ud2