Function at 0x43d480
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 [0x4dbcb0]
fstp qword [ebp - 0x60]
test eax, eax
je 0x43d6d0
sub esp, 0xc
lea ebx, [ebp - 0x20]
push ebx
call fcn.004270d0
push 0xdd
push str.external_openssl_crypto_rand_md_rand.c
push 0x13
push 5
call fcn.00427220
add esp, 0x18
push ebx
push 0x4dc160
call fcn.00427070
add esp, 0x10
test eax, eax
push 0xdf
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.00427220
mov eax, dword [ebp - 0x54]
add esp, 0x10
test eax, eax
je 0x43d6d0
mov eax, dword [0x4dbd00]
mov ebx, dword [0x4dbce0]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4dbd04]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4dc140]
mov dword [ebp - 0x34], eax
mov eax, dword [0x4dc144]
mov dword [ebp - 0x30], eax
mov eax, dword [0x4dc148]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [0x4dc14c]
add edx, ebx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4dc150]
mov dword [ebp - 0x24], eax
mov dword [0x4dbce0], edx
cmp edx, 0x3fe
jle 0x43d78b
mov eax, 0x3ff
mov dword [0x4dbcf0], 0x3ff
mov ecx, eax
mov eax, edx
sar edx, 0x1f
idiv ecx
mov dword [0x4dbce0], 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 [0x4dbd04]
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 [0x4dbd04], ecx
test eax, eax
je 0x43d7c9
sub esp, 0xc
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0045a430
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jle 0x43d70c
mov dword [ebp - 0x58], 0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x58]
sub esi, edi
cmp esi, 0x14
jle 0x43d5e6
mov esi, 0x14
call fcn.00451280
lea edi, [ebx + esi - 0x3ff]
push ecx
push 0
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0045a730
add esp, 0xc
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x4c]
push 0x14
push ecx
push eax
call fcn.0045a310
add esp, 0x10
test edi, edi
jle 0x43d6f2
mov eax, esi
lea ecx, [ebp - 0x4c]
sub eax, edi
push edx
push eax
lea eax, [ebx + 0x4dbd20]
push eax
push ecx
call fcn.0045a310
add esp, 0xc
lea eax, [ebp - 0x4c]
push edi
push 0x4dbd20
push eax
call fcn.0045a310
add esp, 0x10
push eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0045a310
add esp, 0xc
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x4c]
push 8
push ecx
push eax
call fcn.0045a310
add esp, 0xc
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x4c]
push 0
push ecx
push eax
call fcn.0045a670
mov eax, dword [ebp - 0x14]
add esp, 0x10
inc eax
test esi, esi
mov dword [ebp - 0x14], eax
jle 0x43d6b2
xor edx, edx
lea esi, [esi]
mov al, byte [edx + ebp - 0x34]
xor byte [ebx + 0x4dbd20], al
inc ebx
cmp ebx, 0x3ff
setl al
and eax, 0xff
inc edx
neg eax
and ebx, eax
cmp edx, esi
jne 0x43d690
mov eax, dword [ebp - 0x58]
add eax, 0x14
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ebp + 0xc], ecx
jle 0x43d70c
mov eax, dword [ebp + 8]
add eax, esi
mov dword [ebp + 8], eax
jmp 0x43d5d4
push 0xe4
push str.external_openssl_crypto_rand_md_rand.c
push 0x12
push 9
call fcn.00427220
add esp, 0x10
mov dword [ebp - 0x54], 0
jmp 0x43d4fa
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebx + 0x4dbd20]
push esi
push eax
push ecx
call fcn.0045a310
add esp, 0x10
jmp 0x43d647
sub esp, 0xc
lea eax, [ebp - 0x4c]
push eax
call fcn.0045a320
mov edi, dword [ebp - 0x54]
add esp, 0x10
test edi, edi
je 0x43d7ae
mov al, byte [ebp - 0x34]
mov edx, 1
xor byte [0x4dc140], al
mov al, byte [edx + ebp - 0x34]
xor byte [edx + 0x4dc140], al
inc edx
cmp edx, 0x14
jne 0x43d734
fld qword [0x4dbcd0]
fld dword [0x4b9308]
fucomp st(1)
fnstsw ax
test ah, 0x45
jne 0x43d764
fadd qword [ebp - 0x60]
fstp qword [0x4dbcd0]
jmp 0x43d766
fstp st(0)
mov esi, dword [ebp - 0x54]
test esi, esi
jne 0x43d783
push 0x142
push str.external_openssl_crypto_rand_md_rand.c
push 0x12
push 0xa
call fcn.00427220
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4dbcf0]
cmp eax, 0x3fe
jg 0x43d56d
cmp edx, eax
jle 0x43d56d
mov dword [0x4dbcf0], edx
jmp 0x43d56d
push 0x137
push str.external_openssl_crypto_rand_md_rand.c
push 0x12
push 9
call fcn.00427220
add esp, 0x10
jmp 0x43d726
push 0x104
push str.external_openssl_crypto_rand_md_rand.c
push 0x12
push 0xa
call fcn.00427220
add esp, 0x10
jmp 0x43d5b3