Function at 0x404eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x40b010]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.qpie7r4fl3nb54fy879w8s6d508273h4gfd87aytsdb]
mov eax, dword [0x409d14]
push ebx
mov ebx, dword [ebp + 8]
movups xmmword [ebp - 0x38], xmm0
push esi
movups xmm0, xmmword [0x409cfc]
mov esi, dword [ebp + 0xc]
test esi, esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
movups xmmword [ebp - 0x28], xmm0
cmovne eax, esi
mov dword [ebp - 0x44], ecx
movq xmm0, qword [0x409d0c]
mov dword [ebp - 0x3c], edx
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x40], eax
test edx, edx
je 0x40513c
push edi
push edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
push dword [ebp - 0x3c]
mov edi, eax
push dword [ebp - 0x44]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [ebp - 0x3c]
add esp, 0x10
cmp edx, 0x19
jle 0x4050f5
mov esi, dword [ebp - 0x40]
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x40], eax
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404f40
sub ecx, dword [ebp - 0x40]
sub esp, 0xc
push ecx
push esi
mov ecx, edi
call fcn.00404d80
add esp, 0x14
test eax, eax
je 0x4050f5
mov eax, dword [ebp - 0x3c]
dec eax
test eax, eax
jle 0x404f7c
nop dword [eax]
mov cl, byte [eax + edi - 1]
xor byte [eax + edi], cl
dec eax
test eax, eax
jg 0x404f70
xorps xmm3, xmm3
lea eax, [edi + 5]
xorps xmm2, xmm2
mov ecx, 2
nop word [eax + eax]
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 0x404f90
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
mov edx, dword [ebp - 0x3c]
lea eax, [eax + eax*4]
add eax, eax
lea edx, [edx - 0x11]
sub ecx, eax
lea eax, [edi + 1]
add ecx, 6
push ecx
push eax
lea ecx, [edi + 0x11]
call fcn.00404d80
mov eax, dword [ebp - 0x3c]
lea edx, [edi + 0x19]
mov dword [ebp - 0x48], eax
lea ecx, [eax - 0x19]
push ecx
mov dword [ebp - 0x40], ecx
call fcn.00404c40
add esp, 0x18
cmp eax, dword [edi + 0x11]
jne 0x4050f5
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
lea eax, [ebp - 0x44]
test ebx, ebx
mov dword [ebp - 0xc], 0x5d
mov byte [ebp - 8], 1
cmovne eax, ebx
mov dword [ebp - 0x44], 0
mov ebx, eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x40], eax
xor eax, eax
mov ecx, dword [edi + 0x15]
mov dword [ebp - 0x3c], ecx
add ecx, 0x3e9
setb al
neg eax
or eax, ecx
push eax
push dword [ebx]
call esi
add esp, 8
mov dword [ebx], eax
lea ecx, [ebp - 0xc]
push 5
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [edi + 0x19]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.004057d0
test eax, eax
jne 0x4050a2
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [edi + 0x15]
jne 0x4050a2
mov eax, dword [ebx]
mov byte [ecx + eax], 0
jmp 0x4050c0
mov eax, dword [ebp - 0x48]
push eax
mov dword [ebp - 0x3c], eax
lea eax, [edi + 0x19]
push eax
push dword [ebx]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebx]
add esp, 0xc
mov eax, dword [ebp - 0x3c]
mov byte [eax + ecx], 0
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
add eax, 1
setb cl
neg ecx
or ecx, eax
push ecx
push dword [ebx]
call esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 8
mov dword [ebx], eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x405102
push eax
call esi
add esp, 4
mov dword [ebp - 0x44], 0
jmp 0x405102
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 0x3c], 0
test edi, edi
je 0x40510c
push edi
call esi
add esp, 4
cmp dword [ebp - 0x3c], 0
pop edi
jne 0x405129
test ebx, ebx
je 0x405129
mov eax, dword [ebx]
test eax, eax
je 0x405129
push eax
call esi
add esp, 4
mov dword [ebx], 0
mov eax, dword [ebp - 0x3c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407268
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00407268
mov esp, ebp
pop ebp
ret