Function at 0x406830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ace3d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x82b540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x3c], edi
mov esi, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x1c], eax
cmp byte [eax + 0x31], 0
je 0x4069f8
movaps xmm5, xmmword [0x4f9200]
lea ecx, [eax + 8]
movaps xmm6, xmmword [str.efgh]
mov edi, 0x69
movaps xmm4, xmmword [0x4f9270]
sub edi, eax
mov dword [ebp - 0x20], ecx
mov edx, 0x6c
mov ecx, 0x6a
mov dword [ebp - 0x30], edi
sub ecx, eax
sub edx, eax
mov dword [ebp - 0x2c], ecx
mov esi, 0x6b
mov ecx, 0x61
mov dword [ebp - 0x34], edx
sub ecx, eax
sub esi, eax
mov dword [ebp - 0x24], ecx
mov ecx, 0x65
sub ecx, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], ecx
mov ecx, 0xfffffff8
sub ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
nop dword [eax + eax]
add ecx, eax
add edi, eax
movd xmm0, ecx
mov ecx, dword [ebp - 0x24]
pshufd xmm1, xmm0, 0
add ecx, eax
movd xmm0, dword [eax - 8]
paddd xmm1, xmm6
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
movd xmm3, edi
xorps xmm1, xmm0
mov edi, dword [ebp - 0x30]
andps xmm1, xmm4
movd xmm0, ecx
mov ecx, dword [ebp - 0x28]
packuswb xmm1, xmm1
add ecx, eax
packuswb xmm1, xmm1
movd dword [eax - 8], xmm1
pshufd xmm1, xmm0, 0
movd xmm0, dword [eax - 4]
paddd xmm1, xmm5
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
movd xmm0, ecx
andps xmm1, xmm4
lea ecx, [edx + eax]
packuswb xmm1, xmm1
lea edx, [eax + esi]
mov esi, dword [ebp - 0x2c]
packuswb xmm1, xmm1
add esi, eax
movd dword [eax - 4], xmm1
pshufd xmm1, xmm0, 0
movd xmm0, dword [eax]
paddd xmm1, xmm5
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
movd xmm2, ecx
xorps xmm1, xmm0
mov ecx, dword [ebp - 0x14]
andps xmm1, xmm4
movd xmm0, edx
punpckldq xmm3, xmm0
mov edx, dword [ebp - 0x34]
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [eax], xmm1
movd xmm0, dword [eax + 4]
punpcklbw xmm0, xmm0
movd xmm1, esi
mov esi, dword [ebp - 0x18]
punpcklwd xmm0, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
psrad xmm0, 0x18
xorps xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd dword [eax + 4], xmm3
add eax, 0x10
add ecx, eax
cmp ecx, 0x30
mov ecx, dword [ebp - 0x14]
jb 0x4068e0
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov byte [eax + 0x31], 0
lea ecx, [ebp - 0xd]
push ecx
lea ecx, [eax + 0x30]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00408c40
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x406a1b
mov edi, dword [edi]
push eax
push edi
push 0
lea ecx, [ebp - 0x58]
call fcn.0040b380
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x406a92
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x406a88
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406a88
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00461e86
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret