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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
fld qword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
fstp qword [ebp - 0x60]
test eax, eax
je 0x43e9bf
mov eax, dword [0x4ead80]
test eax, eax
jne 0x43e9ea
push 0xe7
push str.external_openssl_crypto_rand_md_rand.c
push 0x12
push 9
call fcn.00428130
mov dword [ebp - 0x54], 0
add esp, 0x10
mov eax, dword [0x4eadd0]
mov ebx, dword [0x4eadb0]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4eadd4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4eb210]
mov dword [ebp - 0x34], eax
mov eax, dword [0x4eb214]
mov dword [ebp - 0x30], eax
mov eax, dword [0x4eb218]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [0x4eb21c]
add edx, ebx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4eb220]
mov dword [ebp - 0x24], eax
mov dword [0x4eadb0], edx
cmp edx, 0x3fe
jle 0x43e9c7
mov eax, 0x3ff
mov dword [0x4eadc0], 0x3ff
mov ecx, eax
mov eax, edx
sar edx, 0x1f
idiv ecx
mov dword [0x4eadb0], edx
mov eax, dword [ebp + 0xc]
mov edx, 0x66666667
imul edx
sar edx, 3
mov eax, dword [ebp + 0xc]
sar eax, 0x1f
sub edx, eax
mov eax, dword [0x4eadd4]
mov ecx, edx
lea edx, [edx + edx*4]
add ecx, eax
shl edx, 2
mov eax, dword [ebp + 0xc]
sub eax, edx
test eax, eax
setg al
and eax, 0xff
add ecx, eax
mov eax, dword [ebp - 0x54]
mov dword [0x4eadd4], ecx
test eax, eax
je 0x43ea82
sub esp, 0xc
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0045b500
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jle 0x43e944
mov dword [ebp - 0x58], 0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x58]
sub esi, edi
cmp esi, 0x14
jle 0x43e860
mov esi, 0x14
call fcn.00452710
lea edi, [ebx + esi - 0x3ff]
push ecx
push 0
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0045b800
add esp, 0xc
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x4c]
push 0x14
push ecx
push eax
call fcn.0045b3d0
add esp, 0x10
test edi, edi
jle 0x43ea4d
mov eax, esi
lea ecx, [ebp - 0x4c]
sub eax, edi
push edx
push eax
lea eax, [ebx + 0x4eadf0]
push eax
push ecx
call fcn.0045b3d0
add esp, 0xc
lea eax, [ebp - 0x4c]
push edi
push 0x4eadf0
push eax
call fcn.0045b3d0
add esp, 0x10
push eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0045b3d0
add esp, 0xc
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x4c]
push 8
push ecx
push eax
call fcn.0045b3d0
add esp, 0xc
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x4c]
push 0
push ecx
push eax
call fcn.0045b740
mov eax, dword [ebp - 0x14]
add esp, 0x10
inc eax
test esi, esi
mov dword [ebp - 0x14], eax
jle 0x43e926
xor edx, edx
mov al, byte [edx + ebp - 0x34]
xor byte [ebx + 0x4eadf0], al
inc ebx
cmp ebx, 0x3ff
setl al
and eax, 0xff
inc edx
neg eax
and ebx, eax
cmp edx, esi
jne 0x43e904
mov eax, dword [ebp - 0x58]
add eax, 0x14
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ebp + 0xc], ecx
jle 0x43e944
mov eax, dword [ebp + 8]
add eax, esi
mov dword [ebp + 8], eax
jmp 0x43e84e
sub esp, 0xc
lea eax, [ebp - 0x4c]
push eax
call fcn.0045b3e0
mov edi, dword [ebp - 0x54]
add esp, 0x10
test edi, edi
je 0x43ea67
mov al, byte [ebp - 0x34]
mov edx, 1
xor byte [0x4eb210], al
lea esi, [esi]
mov al, byte [edx + ebp - 0x34]
xor byte [edx + 0x4eb210], al
inc edx
cmp edx, 0x14
jne 0x43e970
fld qword [0x4eada0]
fld dword [0x4c4c08]
fucomp st(1)
fnstsw ax
test ah, 0x45
jne 0x43e9a0
fadd qword [ebp - 0x60]
fstp qword [0x4eada0]
jmp 0x43e9a2
fstp st(0)
mov esi, dword [ebp - 0x54]
test esi, esi
jne 0x43e9bf
push 0x145
push str.external_openssl_crypto_rand_md_rand.c
push 0x12
push 0xa
call fcn.00428130
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4eadc0]
cmp eax, 0x3fe
jg 0x43e7e7
cmp edx, eax
jle 0x43e7e7
mov dword [0x4eadc0], edx
jmp 0x43e7e7
sub esp, 0xc
lea ebx, [ebp - 0x20]
push ebx
call fcn.00427fe0
push 0xe0
push str.external_openssl_crypto_rand_md_rand.c
push 0x13
push 5
call fcn.00428130
add esp, 0x18
push ebx
push 0x4eb230
call fcn.00427f80
add esp, 0x10
test eax, eax
push 0xe2
sete al
and eax, 0xff
push str.external_openssl_crypto_rand_md_rand.c
mov dword [ebp - 0x54], eax
push 0x13
push 6
call fcn.00428130
mov eax, dword [ebp - 0x54]
add esp, 0x10
test eax, eax
jne 0x43e774
jmp 0x43e757
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebx + 0x4eadf0]
push esi
push eax
push ecx
call fcn.0045b3d0
add esp, 0x10
jmp 0x43e8c1
push 0x13a
push str.external_openssl_crypto_rand_md_rand.c
push 0x12
push 9
call fcn.00428130
add esp, 0x10
jmp 0x43e95e
push 0x107
push str.external_openssl_crypto_rand_md_rand.c
push 0x12
push 0xa
call fcn.00428130
add esp, 0x10
jmp 0x43e82d