Function at 0x492f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x80
mov eax, dword [edx]
mov ebx, edx
mov esi, ecx
movzx eax, byte [eax + 0x14]
cmp al, 2
je 0x492f22
and al, 1
je 0x493293
mov edi, dword [ebp + 8]
movzx eax, byte [edi + 0x18]
test eax, eax
je 0x492f43
cmp eax, 1
jne 0x492fcf
lea ecx, [ebp - 0x4c]
call fcn.00498310
jmp 0x4931ad
mov edi, dword [0x56bbf8]
mov eax, dword [edi]
test eax, eax
jne 0x492f5e
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4932a9
mov dword [edi], eax
push 0x1f0
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4932a9
lea ecx, str.anyAnyassignedAssignedASCII
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], esi
cmp eax, ecx
jae 0x49310a
mov edx, eax
add edx, 0x1f0
cmp edx, 0x52aa9c
jbe 0x49310a
xor edx, edx
nop dword [eax]
mov ebx, dword [edx + 0x52aaa0]
mov edi, dword [edx + 0x52aa9c]
cmp edi, ebx
mov esi, ebx
cmovb esi, edi
cmova ebx, edi
lea edi, [edx + 0x52aaa4]
mov dword [eax + edx], esi
mov dword [eax + edx + 4], ebx
add edx, 8
cmp edi, ecx
jne 0x492fa0
jmp 0x49317c
mov edi, dword [0x56bbf8]
mov eax, dword [edi]
test eax, eax
jne 0x492fea
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4932b2
mov dword [edi], eax
push 0x17b8
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4932b2
mov dword [ebp - 0x10], ebx
lea ebx, [0x52aa4c]
mov edx, eax
mov dword [ebp - 0x14], esi
cmp eax, ebx
jae 0x49302c
lea esi, [edx + 0x17b8]
mov dword [ebp - 0x18], 0x529294
cmp esi, 0x529294
mov esi, edx
ja 0x4930ac
movdqa xmm0, xmmword [0x51bcb0]
mov esi, edx
lea eax, [0x52aa44]
mov edi, 0xffffe850
add esi, 0x17b0
mov dword [ebp - 0x18], eax
nop word [eax + eax]
movdqu xmm1, xmmword [edi + 0x52aa44]
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 [edx + edi + 0x17b0], xmm4
add edi, 0x10
jne 0x493050
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x18]
xor edi, edi
nop word cs:[eax + eax]
nop
mov eax, esi
mov esi, dword [edx + edi]
mov ecx, dword [edx + edi + 4]
cmp esi, ecx
mov edx, ecx
cmovb edx, esi
cmova ecx, esi
mov esi, eax
mov dword [eax + edi], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + edi + 4], ecx
lea ecx, [edx + edi + 8]
add edi, 8
cmp ecx, ebx
jne 0x4930c0
mov eax, dword [ebp - 0x5c]
movsd xmm0, qword [0x51bcc0]
mov dword [ebp - 0x40], eax
movsd qword [ebp - 0x3c], xmm0
lea ecx, [ebp - 0x40]
call fcn.00487f90
jmp 0x493194
movdqa xmm0, xmmword [0x51bcb0]
mov ecx, 0xfffffe10
nop word [eax + eax]
movdqu xmm1, xmmword [ecx + str.anyAnyassignedAssignedASCII]
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 + 0x1f0], xmm4
add ecx, 0x10
jne 0x493120
movsd xmm0, qword [0x51bcd0]
mov dword [ebp - 0x40], eax
movsd qword [ebp - 0x3c], xmm0
lea ecx, [ebp - 0x40]
call fcn.00487f90
mov eax, dword [ebp - 0x38]
movsd xmm0, qword [ebp - 0x40]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x44], eax
movsd qword [ebp - 0x4c], xmm0
mov eax, dword [ebp - 0x44]
movsd xmm0, qword [ebp - 0x4c]
mov edx, dword [ebx + 4]
mov dword [ebp - 0x84], eax
movsd qword [ebp - 0x8c], xmm0
lea eax, [ebp - 0x8c]
lea ecx, [ebp - 0x40]
push eax
push edi
push dword [ebx + 8]
call fcn.00493360
add esp, 0xc
movzx eax, byte [ebp - 0x1c]
cmp al, 8
jne 0x49321b
mov eax, dword [ebp - 0x38]
movsd xmm0, qword [ebp - 0x40]
cmp byte [edi + 0x19], 0
movsd qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], eax
je 0x493206
lea eax, [ebp - 0x58]
push eax
call fcn.00494b70
add esp, 4
mov eax, dword [ebp - 0x50]
movsd xmm0, qword [ebp - 0x58]
mov dword [esi + 8], eax
movsd qword [esi], xmm0
mov byte [esi + 0x24], 8
jmp 0x493288
mov ecx, dword [ebp - 0x20]
movsd xmm1, qword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x28]
movq xmm3, qword [ebp - 0x40]
mov dword [ebp - 0x60], ecx
movsd qword [ebp - 0x70], xmm1
movsd xmm1, qword [ebp - 0x38]
movzx ecx, byte [ebp - 0x19]
movsd qword [ebp - 0x68], xmm0
movq qword [ebp - 0x80], xmm3
movsd xmm2, qword [ebp - 0x68]
movsd qword [ebp - 0x78], xmm1
mov byte [esi + 0x27], cl
movzx ecx, word [ebp - 0x1b]
movsd xmm1, qword [ebp - 0x70]
mov word [esi + 0x25], cx
mov ecx, dword [ebp - 0x60]
movsd qword [esi + 0x18], xmm2
movsd qword [esi + 0x10], xmm1
movq xmm2, qword [ebp - 0x80]
movq xmm1, qword [ebp - 0x78]
mov dword [esi + 0x20], ecx
movq qword [esi + 8], xmm1
movq qword [esi], xmm2
mov byte [esi + 0x24], al
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x51d88c
push 0x28
push str.assertion_failed:_self.flags__.unicode__D
call fcn.00414ad0
add esp, 0xc
ud2
push 4
push 0x1f0
jmp 0x4932b9
push 4
push 0x17b8
call fcn.004085f0
add esp, 8
ud2