Function at 0x406e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4511db
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x49e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x499540]
movaps xmm2, xmmword [0x499920]
movaps xmm3, xmmword [0x4996b0]
movups xmmword [ebp - 0xac], xmm2
mov dword [ebp - 0x9c], 0xe1b3e6f4
movd xmm1, eax
psubb xmm1, xmm3
movd eax, xmm2
mov dword [ebp - 0x98], 0xf3ffe0
mov byte [ebp - 0x94], 1
movd xmm0, eax
mov eax, dword [0x499550]
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0xa8]
movd dword [ebp - 0xac], xmm1
movd xmm1, eax
mov eax, dword [str._b_t_n_v]
psubb xmm1, xmm3
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0xa4]
movd dword [ebp - 0xa8], xmm1
movd xmm1, eax
mov eax, dword [0x499570]
psubb xmm1, xmm3
xorps xmm1, xmm0
movd xmm0, dword [ebp - 0xa0]
movd dword [ebp - 0xa4], xmm1
movd xmm1, eax
mov eax, 0x10
psubb xmm1, xmm3
xorps xmm1, xmm0
movd dword [ebp - 0xa0], xmm1
lea ecx, [eax - 0x7f]
xor byte [ebp + eax - 0xac], cl
inc eax
cmp eax, 0x17
jb 0x406f52
push ecx
lea eax, [ebp - 0x95]
mov byte [ebp - 0x94], 0
push eax
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0xdc]
call fcn.00410fd0
push 0x4534f9
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 0
call fcn.00403890
mov byte [ebp - 4], 1
lea eax, [ebp - 0xdc]
cmp dword [ebp - 0xc8], 0xf
push 0x453690
cmova eax, dword [ebp - 0xdc]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x406fd2
mov byte [ebp - 0xdd], al
jmp 0x4070e5
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
lea eax, [ebp - 0x90]
push esi
push 0x80
push eax
call edi
add esp, 0xc
test eax, eax
je 0x407018
nop
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004103c0
push esi
lea eax, [ebp - 0x90]
push 0x80
push eax
call edi
add esp, 0xc
test eax, eax
jne 0x406ff0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
movaps xmm0, xmmword [0x499700]
lea eax, [ebp - 0xac]
add esp, 4
mov dword [ebp - 0xec], 0x94939595
movups xmmword [ebp - 0x10c], xmm0
lea ecx, [ebp - 0x10c]
mov word [ebp - 0xe8], 0x100
movaps xmm0, xmmword [0x4998a0]
push eax
movups xmmword [ebp - 0xfc], xmm0
call fcn.0040f0f0
cmp dword [ebp - 0x98], 0xf
lea eax, [ebp - 0xac]
mov edi, dword [ebp - 0xac]
lea ecx, [ebp - 0xc4]
mov esi, dword [ebp - 0xb0]
cmova eax, edi
push dword [ebp - 0x9c]
mov edx, dword [ebp - 0xb4]
cmp esi, 0xf
push eax
cmova ecx, dword [ebp - 0xc4]
push ecx
call fcn.004111f0
add esp, 0xc
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x98]
setne byte [ebp - 0xdd]
cmp eax, 0xf
jbe 0x4070eb
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4070db
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407162
push ecx
push edi
call fcn.0044fd86
add esp, 8
mov esi, dword [ebp - 0xb0]
cmp esi, 0xf
jbe 0x40711b
mov ecx, dword [ebp - 0xc4]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x407111
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407162
push esi
push ecx
call fcn.0044fd86
add esp, 8
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xb0], 0xf
mov byte [ebp - 0xc4], 0
cmp ecx, 0xf
jbe 0x407172
mov edx, dword [ebp - 0xdc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407168
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407168
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0044fd86
add esp, 8
mov al, byte [ebp - 0xdd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044fd73
mov esp, ebp
pop ebp
ret