Function at 0x43dbf0
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 [0x4dccc0]
fstp qword [ebp - 0x60]
test eax, eax
je 0x43de40
sub esp, 0xc
lea ebx, [ebp - 0x20]
push ebx
call fcn.00427770
push 0xdd
push 0x4ba860
push 0x13
push 5
call fcn.004278c0
add esp, 0x18
push ebx
push 0x4dd170
call fcn.00427710
add esp, 0x10
test eax, eax
push 0xdf
sete al
and eax, 0xff
push 0x4ba860
mov dword [ebp - 0x54], eax
push 0x13
push 6
call fcn.004278c0
mov eax, dword [ebp - 0x54]
add esp, 0x10
test eax, eax
je 0x43de40
mov eax, dword [0x4dcd10]
mov ebx, dword [0x4dccf0]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4dcd14]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4dd150]
mov dword [ebp - 0x34], eax
mov eax, dword [0x4dd154]
mov dword [ebp - 0x30], eax
mov eax, dword [0x4dd158]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [0x4dd15c]
add edx, ebx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4dd160]
mov dword [ebp - 0x24], eax
mov dword [0x4dccf0], edx
cmp edx, 0x3fe
jle 0x43defb
mov eax, 0x3ff
mov dword [0x4dcd00], 0x3ff
mov ecx, eax
mov eax, edx
sar edx, 0x1f
idiv ecx
mov dword [0x4dccf0], 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 [0x4dcd14]
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 [0x4dcd14], ecx
test eax, eax
je 0x43df39
sub esp, 0xc
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0045abf0
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
jle 0x43de7c
mov dword [ebp - 0x58], 0
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x58]
sub esi, edi
cmp esi, 0x14
jle 0x43dd56
mov esi, 0x14
call fcn.004519f0
lea edi, [ebx + esi - 0x3ff]
push ecx
push 0
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0045aef0
add esp, 0xc
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x4c]
push 0x14
push ecx
push eax
call fcn.0045aad0
add esp, 0x10
test edi, edi
jle 0x43de62
mov eax, esi
lea ecx, [ebp - 0x4c]
sub eax, edi
push edx
push eax
lea eax, [ebx + 0x4dcd30]
push eax
push ecx
call fcn.0045aad0
add esp, 0xc
lea eax, [ebp - 0x4c]
push edi
push 0x4dcd30
push eax
call fcn.0045aad0
add esp, 0x10
push eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0045aad0
add esp, 0xc
lea ecx, [ebp - 0x18]
lea eax, [ebp - 0x4c]
push 8
push ecx
push eax
call fcn.0045aad0
add esp, 0xc
lea ecx, [ebp - 0x34]
lea eax, [ebp - 0x4c]
push 0
push ecx
push eax
call fcn.0045ae30
mov eax, dword [ebp - 0x14]
add esp, 0x10
inc eax
test esi, esi
mov dword [ebp - 0x14], eax
jle 0x43de22
xor edx, edx
lea esi, [esi]
mov al, byte [edx + ebp - 0x34]
xor byte [ebx + 0x4dcd30], al
inc ebx
cmp ebx, 0x3ff
setl al
and eax, 0xff
inc edx
neg eax
and ebx, eax
cmp edx, esi
jne 0x43de00
mov eax, dword [ebp - 0x58]
add eax, 0x14
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
cmp dword [ebp + 0xc], ecx
jle 0x43de7c
mov eax, dword [ebp + 8]
add eax, esi
mov dword [ebp + 8], eax
jmp 0x43dd44
push 0xe4
push 0x4ba860
push 0x12
push 9
call fcn.004278c0
add esp, 0x10
mov dword [ebp - 0x54], 0
jmp 0x43dc6a
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebx + 0x4dcd30]
push esi
push eax
push ecx
call fcn.0045aad0
add esp, 0x10
jmp 0x43ddb7
sub esp, 0xc
lea eax, [ebp - 0x4c]
push eax
call fcn.0045aae0
mov edi, dword [ebp - 0x54]
add esp, 0x10
test edi, edi
je 0x43df1e
mov al, byte [ebp - 0x34]
mov edx, 1
xor byte [0x4dd150], al
mov al, byte [edx + ebp - 0x34]
xor byte [edx + 0x4dd150], al
inc edx
cmp edx, 0x14
jne 0x43dea4
fld qword [0x4dcce0]
fld dword [0x4ba928]
fucomp st(1)
fnstsw ax
test ah, 0x45
jne 0x43ded4
fadd qword [ebp - 0x60]
fstp qword [0x4dcce0]
jmp 0x43ded6
fstp st(0)
mov esi, dword [ebp - 0x54]
test esi, esi
jne 0x43def3
push 0x142
push 0x4ba860
push 0x12
push 0xa
call fcn.004278c0
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x4dcd00]
cmp eax, 0x3fe
jg 0x43dcdd
cmp edx, eax
jle 0x43dcdd
mov dword [0x4dcd00], edx
jmp 0x43dcdd
push 0x137
push 0x4ba860
push 0x12
push 9
call fcn.004278c0
add esp, 0x10
jmp 0x43de96
push 0x104
push 0x4ba860
push 0x12
push 0xa
call fcn.004278c0
add esp, 0x10
jmp 0x43dd23