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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca450
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x51fee0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
cmp dword [ecx - 0xc], 0
mov dword [ebp - 4], 0
jne 0x43b87b
mov edi, dword [ebp + 8]
push 0x4dec70
mov ecx, edi
call fcn.00401ff0
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 0x43b867
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x521340]
mov ebx, 0x12
lea edx, [esi + 1]
lea eax, [esi + 2]
imul eax, edx
imul eax, esi
cdq
idiv ebx
cmp edx, 8
jne 0x43b923
xor edi, edi
mov edx, edi
and edx, 1
dec edx
not edx
and edx, esi
mov eax, edi
sar eax, 1
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, esi
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, esi
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, esi
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, esi
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, esi
sar edx, 1
xor eax, edx
mov edx, eax
and edx, 1
dec edx
sar eax, 1
not edx
and edx, esi
xor edx, eax
mov eax, edx
and eax, 1
dec eax
not eax
and eax, esi
sar edx, 1
xor eax, edx
inc edi
add esi, eax
cmp edi, 0x100
jl 0x43b8a0
mov dword [0x521340], esi
mov eax, dword [0x522480]
test eax, eax
jne 0x43b95e
push str.Version.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x43b94e
push str.GetFileVersionInfoSizeW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x522480], eax
jmp 0x43b953
mov eax, dword [0x522480]
test eax, eax
je 0x43bb23
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push ecx
call eax
mov esi, eax
push 0x4d9c60
lea ecx, [ebp - 0x10]
call fcn.00401ff0
mov byte [ebp - 4], 1
test esi, esi
je 0x43bab4
push esi
call fcn.004a63b0
add esp, 4
mov edi, eax
push edi
push esi
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.0041d650
push eax
call fcn.00426c30
test eax, eax
je 0x43baab
mov ecx, dword [0x521340]
lea eax, [ecx + 1]
imul eax, ecx
cdq
idiv ebx
cmp edx, 0x11
jne 0x43ba10
movsd xmm3, qword [0x4da448]
movsd xmm6, qword [0x4da450]
movsd xmm5, qword [0x4da440]
movd xmm4, ecx
xorps xmm2, xmm2
cvtdq2pd xmm4, xmm4
lea ecx, [ecx]
addsd xmm2, xmm3
movapd xmm0, xmm2
mulsd xmm0, xmm2
comisd xmm0, xmm4
jbe 0x43b9fa
subsd xmm2, xmm3
divsd xmm3, xmm6
movapd xmm1, xmm2
mulsd xmm1, xmm2
movapd xmm0, xmm4
subsd xmm0, xmm1
comisd xmm0, xmm5
ja 0x43b9e0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x4da458
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x43baab
cmp dword [ebp - 0x18], 0
je 0x43ba61
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0xfeef04bd
jne 0x43ba61
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 - 0x10]
push 0x4decc4
push eax
call fcn.004060e0
add esp, 0x18
call fcn.0043f130
test al, al
jne 0x43baab
mov esi, dword [0x521340]
mov eax, 0x51eb851f
imul esi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul ecx, ecx, 0x64
sub esi, ecx
xor ecx, ecx
lea eax, [esi + 0x2f4]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a63b0
push eax
call fcn.004a8200
add esp, 8
push edi
call fcn.004a8200
add esp, 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
push eax
call fcn.00404880
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
add eax, 0x10
add edx, 0xfffffff0
or esi, 0xffffffff
mov dword [ebx], eax
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x43baee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0xc]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x43bb0f
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x43b967