Function at 0x46fab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
mov eax, dword [0x4f38f0]
mov edx, ecx
movups xmm0, xmmword [str.qpie7r4fl3nb54fy879w8s6d508273h4gfd87aytsdb]
mov dword [esp + 0x70], eax
lea ecx, [esp + 0x48]
mov eax, dword [ebp + 0xc]
test eax, eax
movups xmmword [esp + 0x48], xmm0
cmovne ecx, eax
mov dword [esp + 0x18], edx
movups xmm0, xmmword [0x4f38d8]
push esi
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x10]
mov esi, ecx
movups xmmword [esp + 0x5c], xmm0
and esi, 0x20
mov dword [esp + 0x30], 0
movq xmm0, qword [0x4f38e8]
push edi
movq qword [esp + 0x70], xmm0
mov dword [esp + 0x18], esi
je 0x46fb21
lea eax, [ebp + 8]
mov dword [ebp + 8], eax
jmp 0x46fb33
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x34]
test eax, eax
cmovne ecx, eax
mov dword [ebp + 8], ecx
mov ecx, dword [ebp + 0x10]
mov edi, edx
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x46fb38
sub edi, edx
mov dword [esp + 0x10], edi
jne 0x46fb4f
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test cl, 2
je 0x46fc21
lea eax, [esp + 0x88]
mov dword [esp + 0x4c], 0
xorps xmm0, xmm0
push eax
movups xmmword [esp + 0x40], xmm0
call fcn.004d0d10
push edi
push dword [esp + 0x28]
lea eax, [esp + 0x94]
push eax
call fcn.004d13d0
lea eax, [esp + 0x98]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.004d0c70
mov eax, dword [ebp + 0x10]
add esp, 0x18
test al, 4
je 0x46fbee
test esi, esi
jne 0x46fbbf
mov eax, dword [ebp + 8]
push 0x20
push dword [eax]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
and eax, 1
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [ebp + 8]
mov edx, 0x10
push dword [eax]
call fcn.0046f280
add esp, 8
lea edi, [eax + 1]
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x46fbe0
sub edi, ecx
jmp 0x46fe8f
test esi, esi
jne 0x46fc07
mov eax, dword [ebp + 8]
push 0x10
push dword [eax]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov edi, 0x10
movups xmm0, xmmword [esp + 0x3c]
mov eax, dword [eax]
movups xmmword [eax], xmm0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x24], 0
mov esi, 0xff
test cl, 0x10
je 0x46fc4d
push 1
call fcn.004825d0
xor edx, edx
mov ecx, dword [ebp + 0x10]
add esp, 4
div esi
movzx eax, dx
mov dword [esp + 0xc], eax
jmp 0x46fc55
mov dword [esp + 0xc], 0
mov esi, ecx
mov eax, 0x19
and esi, 8
mov ecx, 1
cmovne eax, ecx
add edi, eax
mov dword [esp + 0x28], eax
lea eax, [edi + 0x3e8]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [esp + 0x10]
add esp, 4
mov dword [esp + 0x14], eax
mov byte [eax], cl
test esi, 8
je 0x46fcae
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
push esi
push dword [esp + 0x24]
mov esi, eax
add ecx, esi
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x46fd97
lea edi, [eax + 1]
xor esi, esi
mov dword [esp + 0x38], edi
push 1
call fcn.004825d0
xor edx, edx
mov ecx, 0xff
div ecx
add esp, 4
mov byte [edi + esi], dl
inc esi
movzx eax, dl
xor dword [esp + 0x24], eax
cmp esi, 0x10
jl 0x46fcb7
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x28]
mov eax, dword [esp + 0x14]
push 2
mov edi, dword [esp + 0x24]
push 0x20
push 2
push 0
push 3
push 0x1000000
push 5
push ecx
lea ecx, [esp + 0x4c]
mov dword [eax + 0x15], esi
push ecx
push esi
push edi
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], 5
add eax, 0x19
mov dword [esp + 0x38], esi
push ecx
push eax
mov dword [esp + 0x60], 0
mov byte [esp + 0x64], 0
mov dword [esp + 0x44], eax
call fcn.004d0b90
test eax, eax
je 0x46fd49
push esi
push edi
push dword [esp + 0x18]
mov dword [esp + 0x18], esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x46fd4d
mov esi, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
lea edi, [esi + 0x19]
mov esi, dword [esp + 0x14]
lea eax, [edi - 0x19]
push eax
call fcn.0046f140
mov dword [esi + 0x11], eax
mov eax, 0x66666667
push ecx
mov ecx, dword [esp + 0x2c]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [edi - 0x11]
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
add ecx, 6
push ecx
push dword [esp + 0x44]
lea ecx, [esi + 0x11]
call fcn.0046f620
add esp, 0x10
mov ecx, 1
cmp edi, ecx
jle 0x46fdac
mov al, byte [ecx + esi - 1]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x46fda0
mov edx, dword [esp + 0x1c]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46fdc0
sub ecx, dword [esp + 0x1c]
sub esp, 8
push ecx
push edx
mov edx, edi
mov ecx, esi
call fcn.0046f620
add esp, 0x10
test eax, eax
je 0x46fe7f
mov eax, dword [ebp + 0x10]
test al, 4
je 0x46fe53
cmp dword [esp + 0x18], 0
jne 0x46fe0c
lea eax, [edi + edi]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
and eax, 1
mov edx, edi
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
push dword [eax]
call fcn.0046f280
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [eax]
mov edi, ecx
lea edx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x46fe30
sub edi, edx
inc edi
cmp dword [esp + 0x18], 0
jne 0x46fe81
push edi
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [ecx], eax
jmp 0x46fe81
cmp dword [esp + 0x18], 0
jne 0x46fe6e
mov eax, dword [ebp + 8]
push edi
push dword [eax]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [ecx], eax
mov eax, dword [ebp + 8]
push edi
push esi
push dword [eax]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x46fe81
xor edi, edi
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [esp + 0x1c]
add esp, 4
test edi, edi
jne 0x46fec9
mov eax, dword [ebp + 8]
test esi, esi
je 0x46fea7
mov eax, dword [eax]
mov byte [eax], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [eax], 0
je 0x46fec9
push eax
call fcn.0047e900
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [ebp + 8]
add esp, 8
mov dword [eax], 0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret