Function at 0x4621d0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508123
mov eax, dword fs:[0]
push eax
sub esp, 0x670
mov eax, dword [0x564690]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x67c], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x674], 0
mov dword [ebp - 0x670], 0
mov dword [ebp - 0x678], 0
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 0
jne 0x462272
push 0x521418
mov ecx, ebx
call fcn.00401b70
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4625d8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4625d8
mov ecx, dword [0x566814]
test ecx, ecx
jne 0x46235e
push str.Version.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [0x565ae0]
mov edi, eax
lea eax, [esi + 1]
imul eax, esi
cdq
mov ecx, 0x17
idiv ecx
cmp edx, 0xf
jne 0x462333
xor edx, edx
lea esp, [esp]
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, esi
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
sar eax, 1
not ecx
and ecx, esi
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, esi
sar ecx, 1
xor eax, ecx
inc edx
add esi, eax
cmp edx, 0x100
jl 0x4622b0
mov dword [0x565ae0], esi
test edi, edi
je 0x46234d
push str.GetFileVersionInfoSizeW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [0x566814], ecx
jmp 0x462353
mov ecx, dword [0x566814]
test ecx, ecx
je 0x46254b
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x674]
push edx
push eax
call ecx
mov esi, eax
push 0x51661c
lea ecx, [ebp - 0x66c]
call fcn.00401b70
mov byte [ebp - 4], 1
test esi, esi
je 0x46251f
call fcn.00465e80
test al, al
jne 0x46239a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x565ae0], eax
push esi
call fcn.004e3b54
add esp, 4
mov edi, eax
push edi
push esi
push dword [ebp - 0x674]
push dword [ebp + 0xc]
call fcn.0040ea10
push eax
call fcn.0041dfd0
test eax, eax
je 0x462516
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x678]
push eax
push 0x518d18
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x462516
mov esi, dword [0x565ae0]
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 0xd
jne 0x46246e
xor esi, esi
call fcn.004e5b54
movd xmm0, eax
cvtdq2pd xmm0, xmm0
inc esi
movsd qword [ebp + esi*8 - 0x670], xmm0
cmp esi, 0xcb
jb 0x462405
xor ecx, ecx
mov eax, 0xca
cmp ecx, eax
jge 0x46245f
nop
movsd xmm0, qword [ebp + eax*8 - 0x668]
movsd xmm1, qword [ebp + eax*8 - 0x670]
comisd xmm0, xmm1
jbe 0x46245a
movsd qword [ebp + eax*8 - 0x668], xmm1
movsd qword [ebp + eax*8 - 0x670], xmm0
dec eax
cmp eax, ecx
jg 0x462430
inc ecx
cmp ecx, 0xcb
jl 0x462426
mov esi, dword [0x565ae0]
cmp dword [ebp - 0x670], 0
je 0x462516
call fcn.00465df0
test al, al
jne 0x4624e0
movsd xmm3, qword [0x518d08]
movsd xmm6, qword [0x518d10]
movsd xmm5, qword [0x518d00]
movd xmm4, esi
xorps xmm2, xmm2
cvtdq2pd xmm4, xmm4
jmp 0x4624b0
addsd xmm2, xmm3
movapd xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x4624ca
subsd xmm2, xmm3
divsd xmm3, xmm6
movapd xmm1, xmm2
mulsd xmm1, xmm2
movapd xmm0, xmm4
subsd xmm0, xmm1
comisd xmm0, xmm5
ja 0x4624b0
mov eax, dword [ebp - 0x678]
cmp dword [eax], 0xfeef04bd
jne 0x462516
movzx esi, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
lea eax, [ebp - 0x66c]
push 0x52146c
push eax
call fcn.00405b60
add esp, 0x18
push edi
call fcn.004e5c83
add esp, 4
mov esi, dword [ebp - 0x66c]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [esi - 4], 0
lea edx, [esi - 4]
mov ecx, eax
jl 0x462552
cmp ecx, dword [esi - 0x10]
jne 0x462552
lea edi, [esi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x46258c
xor esi, esi
jmp 0x46236a
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x462566
call fcn.00409c50
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov ecx, dword [esi - 0xc]
lea eax, [ecx*2 + 2]
push eax
lea eax, [ecx*2 + 2]
push esi
push eax
lea eax, [edi + 0x10]
push eax
call fcn.004e5c88
add esp, 0x10
mov edx, dword [ebp - 0x66c]
lea eax, [edi + 0x10]
add edx, 0xfffffff0
or esi, 0xffffffff
mov dword [ebx], eax
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4625b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4625d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e50b4
mov esp, ebp
pop ebp
ret