Function at 0x405cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a8bb
mov eax, dword fs:[0]
push eax
mov eax, 0x1048
call fcn.00439600
mov eax, dword [0x44e414]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1054], ecx
mov ecx, dword [ecx + 0xc]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x104c], edi
mov eax, dword [ecx]
call dword [eax + 0x28]
test edi, edi
je 0x40607b
mov edi, dword [ebp - 0x1054]
lea edx, [ebp - 0x1014]
mov word [ebp - 0x1014], 0xce31
push edx
push 2
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x30]
push 0x401
lea eax, [ebp - 0x814]
push 0
push eax
call fcn.0043a378
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x814]
add esp, 0xc
mov eax, dword [ecx]
push edx
push 1
call dword [eax + 0x38]
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov al, byte [ebp - 0x814]
cmp al, 0x1f
je 0x40607b
cmp al, 0x79
jne 0x40607b
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0xf
mov byte [ebp - 0x102c], 0
mov eax, dword [ebp + 8]
mov edx, eax
shr edx, 0x18
mov ecx, eax
mov byte [ebp - 0xc14], dl
shr eax, 8
mov dword [ebp - 0x1050], edx
mov edx, dword [ebp + 8]
mov byte [ebp - 0xc11], dl
xor dl, al
mov byte [ebp - 0xc12], al
mov eax, edx
shr ecx, 0x10
xor al, cl
mov byte [ebp - 0xc13], cl
mov ecx, dword [edi + 0xc]
mov dword [ebp + 8], edx
mov edx, dword [ebp - 0x1050]
xor al, dl
mov byte [ebp - 0xc10], al
lea edx, [ebp - 0xc14]
mov eax, dword [ecx]
push edx
push 5
mov dword [ebp - 4], 0
call dword [eax + 0x30]
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x814]
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x38]
cmp byte [ebp - 0x814], 0x79
jne 0x40607b
mov dword [ebp - 0x1044], 0
mov dword [ebp - 0x1034], 0
mov dword [ebp - 0x1030], 0xf
mov byte [ebp - 0x1044], 0
mov ecx, dword [ebp - 0x104c]
mov eax, ecx
mov byte [ebp - 4], 1
and eax, 0x80000003
jns 0x405e5a
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x405f20
lea edx, [ecx - 1]
movzx eax, dl
mov dword [ebp - 0x1050], eax
mov byte [ebp - 0x1045], dl
mov byte [ebp - 0x410], dl
lea edi, [eax + 1]
xor eax, eax
test edi, edi
je 0x405eef
cmp edi, 0x20
jb 0x405eef
mov ecx, edi
xorps xmm1, xmm1
and ecx, 0xffffffe0
xorps xmm2, xmm2
movups xmm0, xmmword [esi + eax]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + eax + 0x10]
add eax, 0x20
pxor xmm2, xmm0
cmp eax, ecx
jl 0x405e91
pxor xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 2
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 1
pxor xmm1, xmm0
movd ecx, xmm1
xor dl, cl
mov ecx, dword [ebp - 0x104c]
mov byte [ebp - 0x1045], dl
cmp eax, edi
jge 0x405f01
xor dl, byte [esi + eax]
inc eax
cmp eax, edi
jl 0x405ef3
mov byte [ebp - 0x1045], dl
push ecx
lea eax, [ebp - 0x40f]
push esi
push eax
call fcn.0043a372
mov esi, dword [ebp - 0x1050]
mov edi, dword [ebp - 0x1054]
jmp 0x406027
mov eax, ecx
xor ecx, ecx
cdq
and edx, 3
add eax, edx
sar eax, 2
shl al, 2
add al, 3
mov dword [ebp - 0x1050], eax
mov dl, al
mov byte [ebp - 0x1045], al
mov byte [ebp - 0x410], al
mov eax, dword [ebp - 0x104c]
test eax, eax
jle 0x405fd2
cmp eax, 0x20
jb 0x405fc4
and eax, 0xffffffe0
xorps xmm1, xmm1
xorps xmm2, xmm2
movups xmm0, xmmword [esi + ecx]
pxor xmm1, xmm0
movups xmm0, xmmword [esi + ecx + 0x10]
add ecx, 0x20
pxor xmm2, xmm0
cmp ecx, eax
jl 0x405f62
pxor xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 2
pxor xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 1
pxor xmm1, xmm0
movd eax, xmm1
xor dl, al
mov eax, dword [ebp - 0x104c]
mov byte [ebp - 0x1045], dl
cmp ecx, eax
jge 0x405fd2
xor dl, byte [esi + ecx]
inc ecx
cmp ecx, eax
jl 0x405fc4
mov byte [ebp - 0x1045], dl
push eax
lea eax, [ebp - 0x40f]
push esi
push eax
call fcn.0043a372
mov eax, dword [ebp - 0x1050]
add esp, 0xc
mov ecx, dword [ebp - 0x104c]
movzx esi, al
cmp ecx, esi
jg 0x40600e
mov al, byte [ebp - 0x1045]
mov edx, esi
sub edx, ecx
inc edx
not al
sub edx, 1
jne 0x406001
mov byte [ebp - 0x1045], al
mov eax, esi
sub eax, ecx
inc eax
push eax
lea eax, [ebp - 0x40f]
add eax, ecx
push 0xff
push eax
call fcn.0043a378
mov al, byte [ebp - 0x1045]
add esp, 0xc
mov ecx, dword [edi + 0xc]
mov byte [ebp + esi - 0x40e], al
lea eax, [ebp - 0x410]
push eax
mov edx, dword [ecx]
lea eax, [esi + 3]
push eax
call dword [edx + 0x30]
push dword [ebp + 0x14]
call dword [0x43f130]
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x814]
mov byte [ebp - 0x814], 0xff
push edx
push 1
mov eax, dword [ecx]
call dword [eax + 0x38]
cmp byte [ebp - 0x814], 0x79
sete al
dec al
and al, 0x14
jmp 0x40607d
mov al, 0x14
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.004395e6
mov esp, ebp
pop ebp
ret 0x10