Function at 0x46f750
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movups xmm0, xmmword [str.qpie7r4fl3nb54fy879w8s6d508273h4gfd87aytsdb]
mov eax, dword [0x4f38f0]
push ebx
mov ebx, dword [ebp + 0x10]
movups xmmword [ebp - 0x40], xmm0
push esi
movups xmm0, xmmword [0x4f38d8]
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x40]
mov eax, dword [ebp + 0xc]
test eax, eax
movups xmmword [ebp - 0x30], xmm0
cmovne esi, eax
mov dword [ebp - 4], edx
movq xmm0, qword [0x4f38e8]
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 8], esi
push edi
mov edi, ecx
test bl, 4
je 0x46f814
test edi, edi
mov esi, 0x4eb673
cmovne esi, edi
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f7b0
sub ecx, edx
je 0x46f80b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f7c0
sub ecx, edx
lea eax, [ecx + 1]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, ebx
mov dword [ebp + 0xc], eax
and edx, 1
mov ecx, esi
push edx
mov edx, eax
call fcn.0046f410
mov edx, eax
add esp, 8
mov dword [ebp - 4], edx
test edx, edx
jne 0x46f834
cmp dword [ebp + 0xc], eax
je 0x46f80b
lea eax, [ebp + 0xc]
push eax
call fcn.0047e900
push dword [ebp + 0xc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test edx, edx
je 0x46f80b
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 4]
add esp, 0x10
jmp 0x46f837
mov esi, dword [ebp - 8]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
and ebx, 8
mov eax, 0x19
mov ecx, 1
cmovne eax, ecx
cmp edx, eax
jle 0x46fa4e
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp + 0x10], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46f860
sub ecx, dword [ebp + 0x10]
sub esp, 0xc
push ecx
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0046f520
add esp, 0x14
test eax, eax
je 0x46fa4e
mov esi, dword [ebp - 4]
lea edx, [esi - 1]
test edx, edx
jle 0x46f8a2
nop dword [eax]
mov ecx, dword [ebp + 0xc]
mov al, byte [ecx + edx - 1]
xor byte [ecx + edx], al
dec edx
test edx, edx
jg 0x46f890
mov esi, dword [ebp - 4]
test ebx, ebx
je 0x46f8e2
lea eax, [esi - 1]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
test esi, esi
je 0x46fa58
inc eax
push eax
push dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
push dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
inc ecx
mov dword [esi], eax
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi]
add esp, 0x14
mov eax, dword [ebp - 4]
mov byte [eax + ecx], 0
jmp 0x46fa58
mov ebx, dword [ebp + 0xc]
xorps xmm3, xmm3
xorps xmm2, xmm2
mov ecx, 2
lea eax, [ebx + 5]
movd xmm1, dword [eax - 4]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
lea eax, [eax + 8]
punpcklwd xmm1, xmm0
pxor xmm3, xmm1
movd xmm1, dword [eax - 8]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
sub ecx, 1
jne 0x46f8f3
pxor xmm2, xmm3
mov eax, 0x66666667
movaps xmm0, xmm2
sub esp, 0xc
psrldq xmm0, 8
pxor xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
pxor xmm2, xmm0
movd ecx, xmm2
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [esi - 0x11]
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
lea eax, [ebx + 1]
add ecx, 6
push ecx
push eax
lea ecx, [ebx + 0x11]
call fcn.0046f520
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
add eax, 0xffffffe7
push eax
mov dword [ebp - 8], eax
lea edx, [ebx + 0x19]
call fcn.0046f140
add esp, 0x18
cmp eax, dword [ebx + 0x11]
jne 0x46fa4e
mov eax, dword [ebp + 8]
lea esi, [ebp + 0x10]
test eax, eax
mov dword [ebp + 0x10], 0
mov dword [ebp - 0x14], 0x5d
cmovne esi, eax
mov byte [ebp - 0x10], 1
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x15]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov dword [ebp - 4], eax
add eax, 0x3e9
push eax
push dword [esi]
call ebx
add esp, 8
mov dword [esi], eax
lea ecx, [ebp - 0x14]
push 5
push ecx
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 0xc]
add ecx, 0x19
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004d0c20
test eax, eax
mov eax, dword [ebp + 0xc]
jne 0x46fa02
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x15]
jne 0x46fa02
mov eax, dword [esi]
mov byte [ecx + eax], 0
jmp 0x46fa20
mov ecx, dword [ebp - 0xc]
add eax, 0x19
push ecx
push eax
push dword [esi]
mov dword [ebp - 4], ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esi]
add esp, 0xc
mov eax, dword [ebp - 4]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 4]
inc eax
push eax
push dword [esi]
call ebx
add esp, 8
mov dword [esi], eax
cmp dword [ebp + 0x10], 0
je 0x46fa58
lea eax, [ebp + 0x10]
push eax
call fcn.0047e900
push dword [ebp + 0x10]
call edi
add esp, 8
mov dword [ebp + 0x10], 0
jmp 0x46fa58
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x46fa76
lea eax, [ebp + 0xc]
push eax
call fcn.0047e900
push dword [ebp + 0xc]
call edi
add esp, 8
mov dword [ebp + 0xc], 0
cmp dword [ebp - 4], 0
jne 0x46fa98
test esi, esi
je 0x46fa98
cmp dword [esi], 0
je 0x46fa98
push esi
call fcn.0047e900
push dword [esi]
call edi
add esp, 8
mov dword [esi], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret