Function at 0x46e220
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x80
mov eax, dword [ebp + 0x14]
mov ecx, dword [0x5a8564]
xor ecx, ebp
mov dword [esp + 0x78], ecx
xor esi, esi
cmp eax, 0x30
ja 0x46e4d5
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
movups xmm0, xmmword [ecx + 0x20]
movaps xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [ecx]
movups xmm1, xmmword [ecx + 0x10]
movaps xmmword [esp + 0x40], xmm1
movaps xmmword [esp + 0x30], xmm0
test eax, eax
je 0x46e2fd
mov ecx, dword [ebp + 0x10]
xor edx, edx
cmp eax, 8
jb 0x46e2f0
xor edx, edx
cmp eax, 0x10
jb 0x46e2c2
mov edx, eax
and edx, 0xfffffff0
movups xmm0, xmmword [ecx]
xorps xmm0, xmmword [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
cmp edx, 0x10
je 0x46e2ba
movups xmm0, xmmword [ecx + 0x10]
xorps xmm0, xmmword [esp + 0x40]
movaps xmmword [esp + 0x40], xmm0
cmp edx, 0x20
je 0x46e2ba
movups xmm0, xmmword [ecx + 0x20]
xorps xmm0, xmmword [esp + 0x50]
movaps xmmword [esp + 0x50], xmm0
cmp edx, eax
je 0x46e2fd
test al, 8
je 0x46e2f0
mov esi, edx
mov edx, eax
and edx, 0xfffffff8
nop dword [eax]
movsd xmm0, qword [ecx + esi]
movsd xmm1, qword [esp + esi + 0x30]
xorps xmm1, xmm0
movlps qword [esp + esi + 0x30], xmm1
add esi, 8
cmp edx, esi
jne 0x46e2d0
cmp edx, eax
je 0x46e2fd
nop
movzx ebx, byte [ecx + edx]
xor byte [esp + edx + 0x30], bl
inc edx
cmp eax, edx
jne 0x46e2f0
movaps xmm0, xmmword [esp + 0x30]
xorps xmm0, xmmword [0x56eb80]
movdqa xmm1, xmmword [esp + 0x40]
movaps xmmword [esp + 0x30], xmm0
pxor xmm1, xmmword [str._M_kn_aN]
movdqa xmmword [esp + 0x40], xmm1
movdqa xmm0, xmmword [esp + 0x50]
pxor xmm0, xmmword [0x56eba0]
movdqa xmmword [esp + 0x50], xmm0
lea esi, [edi + 0xf4]
mov eax, dword [0x5b52d4]
test eax, 0x2000000
jne 0x46e46b
test eax, 0x200
jne 0x46e48a
mov dword [esp + 0xc], esi
mov dword [edi + 0xf0], 0xe
movaps xmm0, xmmword [esp + 0x30]
movaps xmmword [esp + 0x10], xmm0
movups xmmword [edi], xmm0
movdqa xmm0, xmmword [esp + 0x40]
movdqu xmmword [edi + 0x10], xmm0
mov ebx, 0x30
mov edi, 0x56ebf0
lea esi, [esp + 0x60]
nop dword [eax + eax]
pcmpeqd xmm1, xmm1
movdqa xmmword [esp + 0x60], xmm1
mov ecx, esi
movdqa xmmword [esp + 0x20], xmm0
call fcn.0046edc0
movzx eax, byte [edi]
movd xmm1, eax
pxor xmm1, xmmword [esp + 0x10]
movdqa xmm3, xmmword [esp + 0x60]
movdqa xmm2, xmm3
psrld xmm2, 8
pslld xmm3, 0x18
por xmm3, xmm2
psrldq xmm3, 0xc
pxor xmm3, xmm1
movdqa xmm1, xmm3
pslldq xmm1, 4
movdqa xmm2, xmm3
pslldq xmm2, 8
pxor xmm2, xmm1
movdqa xmm0, xmm3
pslldq xmm0, 0xc
pxor xmm0, xmm2
pxor xmm0, xmm3
mov eax, dword [ebp + 8]
movdqu xmmword [eax + ebx - 0x10], xmm0
cmp ebx, 0xf0
je 0x46e4ea
mov ecx, esi
movdqa xmmword [esp + 0x10], xmm0
call fcn.0046edc0
movdqa xmm1, xmmword [esp + 0x60]
psrldq xmm1, 0xc
movdqa xmm0, xmmword [esp + 0x20]
pxor xmm0, xmm1
movdqa xmm2, xmm0
pslldq xmm2, 4
movdqa xmm1, xmm0
pslldq xmm1, 8
pxor xmm1, xmm2
movdqa xmm2, xmm0
pslldq xmm2, 0xc
pxor xmm2, xmm1
pxor xmm0, xmm2
mov eax, dword [ebp + 8]
movdqu xmmword [eax + ebx], xmm0
add ebx, 0x20
inc edi
jmp 0x46e390
lea eax, [esp + 0x30]
push edi
push 0x100
push eax
call fcn.0049ea00
add esp, 0xc
mov ecx, 0x49c680
mov eax, 0x49d210
jmp 0x46e4a4
lea eax, [esp + 0x30]
push edi
push 0x100
push eax
call fcn.0049f520
add esp, 0xc
mov ecx, 0x49f5d0
xor eax, eax
test esi, esi
je 0x46e4aa
mov dword [esi], ecx
mov dword [edi + 0xf8], eax
movaps xmm0, xmmword [esp + 0x50]
movups xmmword [edi + 0xfc], xmm0
mov dword [edi + 0x114], 0
mov dword [edi + 0x110], 1
mov esi, 1
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.005327f1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x46be30
mov eax, 0x46d180
mov esi, dword [esp + 0xc]
test esi, esi
mov edi, dword [ebp + 8]
jne 0x46e4a8
jmp 0x46e4aa