Function at 0x43e670
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 0x43e8ff
mov eax, dword [0x4ebd80]
test eax, eax
jne 0x43e92a
push 0xe7
push str.external_openssl_crypto_rand_md_rand.c
push 0x12
push 9
call fcn.00428070
mov dword [ebp - 0x54], 0
add esp, 0x10
mov eax, dword [0x4ebdd0]
mov ebx, dword [0x4ebdb0]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4ebdd4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4ec210]
mov dword [ebp - 0x34], eax
mov eax, dword [0x4ec214]
mov dword [ebp - 0x30], eax
mov eax, dword [0x4ec218]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [0x4ec21c]
add edx, ebx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4ec220]
mov dword [ebp - 0x24], eax
mov dword [0x4ebdb0], edx
cmp edx, 0x3fe
jle 0x43e907
mov eax, 0x3ff
mov dword [0x4ebdc0], 0x3ff
mov ecx, eax
mov eax, edx
sar edx, 0x1f
idiv ecx
mov dword [0x4ebdb0], 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 [0x4ebdd4]
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 [0x4ebdd4], ecx
test eax, eax
je 0x43e9c2
sub esp, 0xc
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0045b440
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jle 0x43e884
mov dword [ebp - 0x58], 0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x58]
sub esi, edi
cmp esi, 0x14
jle 0x43e7a0
mov esi, 0x14
call fcn.00452650
lea edi, [ebx + esi - 0x3ff]
push ecx
push 0
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0045b740
add esp, 0xc
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x4c]
push 0x14
push ecx
push eax
call fcn.0045b310
add esp, 0x10
test edi, edi
jle 0x43e98d
mov eax, esi
lea ecx, [ebp - 0x4c]
sub eax, edi
push edx
push eax
lea eax, [ebx + 0x4ebdf0]
push eax
push ecx
call fcn.0045b310
add esp, 0xc
lea eax, [ebp - 0x4c]
push edi
push 0x4ebdf0
push eax
call fcn.0045b310
add esp, 0x10
push eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0045b310
add esp, 0xc
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x4c]
push 8
push ecx
push eax
call fcn.0045b310
add esp, 0xc
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x4c]
push 0
push ecx
push eax
call fcn.0045b680
mov eax, dword [ebp - 0x14]
add esp, 0x10
inc eax
test esi, esi
mov dword [ebp - 0x14], eax
jle 0x43e866
xor edx, edx
mov al, byte [edx + ebp - 0x34]
xor byte [ebx + 0x4ebdf0], al
inc ebx
cmp ebx, 0x3ff
setl al
and eax, 0xff
inc edx
neg eax
and ebx, eax
cmp edx, esi
jne 0x43e844
mov eax, dword [ebp - 0x58]
add eax, 0x14
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ebp + 0xc], ecx
jle 0x43e884
mov eax, dword [ebp + 8]
add eax, esi
mov dword [ebp + 8], eax
jmp 0x43e78e
sub esp, 0xc
lea eax, [ebp - 0x4c]
push eax
call fcn.0045b320
mov edi, dword [ebp - 0x54]
add esp, 0x10
test edi, edi
je 0x43e9a7
mov al, byte [ebp - 0x34]
mov edx, 1
xor byte [0x4ec210], al
lea esi, [esi]
mov al, byte [edx + ebp - 0x34]
xor byte [edx + 0x4ec210], al
inc edx
cmp edx, 0x14
jne 0x43e8b0
fld qword [0x4ebda0]
fld dword [0x4c4ec8]
fucomp st(1)
fnstsw ax
test ah, 0x45
jne 0x43e8e0
fadd qword [ebp - 0x60]
fstp qword [0x4ebda0]
jmp 0x43e8e2
fstp st(0)
mov esi, dword [ebp - 0x54]
test esi, esi
jne 0x43e8ff
push 0x145
push str.external_openssl_crypto_rand_md_rand.c
push 0x12
push 0xa
call fcn.00428070
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4ebdc0]
cmp eax, 0x3fe
jg 0x43e727
cmp edx, eax
jle 0x43e727
mov dword [0x4ebdc0], edx
jmp 0x43e727
sub esp, 0xc
lea ebx, [ebp - 0x20]
push ebx
call fcn.00427f20
push 0xe0
push str.external_openssl_crypto_rand_md_rand.c
push 0x13
push 5
call fcn.00428070
add esp, 0x18
push ebx
push 0x4ec230
call fcn.00427ec0
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.00428070
mov eax, dword [ebp - 0x54]
add esp, 0x10
test eax, eax
jne 0x43e6b4
jmp 0x43e697
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebx + 0x4ebdf0]
push esi
push eax
push ecx
call fcn.0045b310
add esp, 0x10
jmp 0x43e801
push 0x13a
push str.external_openssl_crypto_rand_md_rand.c
push 0x12
push 9
call fcn.00428070
add esp, 0x10
jmp 0x43e89e
push 0x107
push str.external_openssl_crypto_rand_md_rand.c
push 0x12
push 0xa
call fcn.00428070
add esp, 0x10
jmp 0x43e76d