Function at 0x4ef5d0
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 0x4ef5ef
and al, 1
je 0x4ef8c0
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx + 0x18]
test eax, eax
je 0x4ef610
cmp eax, 1
jne 0x4ef6e1
lea ecx, [ebp - 0x44]
call fcn.004f66e0
jmp 0x4ef7d4
mov eax, dword [0x6074b4]
mov ebx, dword [0x6074a0]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x4ef633
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x4ef8d6
mov dword [ebx], eax
push 0x200
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x4ef8d6
movdqa xmm0, xmmword [0x5b1bd0]
mov ecx, 0xfffffe00
nop word cs:[eax + eax]
nop
movdqu xmm1, xmmword [ecx + 0x5c1664]
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 0x4ef660
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.004e32b0
mov ebx, dword [ebp + 8]
jmp 0x4ef7c0
mov eax, dword [0x6074b4]
mov ebx, dword [0x6074a0]
movzx eax, byte [eax]
mov eax, dword [ebx]
test eax, eax
jne 0x4ef704
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x4ef8dd
mov dword [ebx], eax
push 0x1818
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x4ef8dd
movdqa xmm0, xmmword [0x5b1bd0]
mov ecx, 0xffffe7f0
nop word cs:[eax + eax]
movdqu xmm1, xmmword [ecx + 0x5c140c]
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 0x4ef730
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.004e32b0
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.004efb40
add esp, 0xc
movzx eax, byte [ebp - 0x10]
cmp al, 7
jne 0x4ef84b
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 0x4ef832
lea eax, [ebp - 0x54]
push eax
call fcn.004f3de0
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 0x4ef8b8
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 0x5b41cc
push 0x28
push str.assertion_failed:_self.flags__.unicode__
call fcn.004251d0
add esp, 0xc
ud2
push 0x200
jmp 0x4ef8e2
push 0x1818
push 4
call fcn.0041a8c0
add esp, 8
ud2