Function at 0x438078
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
add ecx, 0x3fc
mov dword [ebp - 0x10], ecx
mov dword [0x4ccf1c], 0
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jmp 0x4380c5
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
and ecx, 0xff
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x4380ea
cmp dword [ebp - 0x20], 0x20
je 0x4380ea
cmp dword [ebp - 0x20], 0xa
jne 0x438171
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 4]
jae 0x438149
cmp dword [ebp + 0x20], 0
je 0x438149
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043a674
add esp, 8
fadd qword [ebp - 0x18]
fstp qword [ebp - 0x28]
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jbe 0x438137
fld qword [ebp - 0x28]
fcomp qword [ebp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x438137
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jmp 0x438283
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x20], 0
jne 0x438154
jmp 0x438283
cmp dword [ebp - 0x20], 0xa
jne 0x438168
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x438283
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x10]
jbe 0x43817e
jmp 0x438283
cmp dword [ebp - 0x20], 9
jne 0x4381c9
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp + 0xc]
and edx, 0x80000007
jns 0x438197
dec edx
or edx, 0xfffffff8
inc edx
mov dword [ebp - 0x20], edx
jmp 0x4381a5
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 8
jge 0x4381c4
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x10]
jae 0x4381c4
mov edx, dword [ebp - 0x1c]
mov byte [edx], 0x20
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x43819c
jmp 0x43827e
cmp dword [ebp - 0x20], 0x26
jne 0x438222
movsx ecx, byte [0x4ccf20]
test ecx, ecx
je 0x438222
mov edx, dword [ebp - 4]
movsx eax, byte [edx + 1]
test eax, eax
je 0x438222
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 1]
cmp edx, 0x26
jne 0x43820b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], 0x26
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x438220
movsx eax, byte [0x4ccf20]
cmp eax, 2
je 0x438220
mov ecx, dword [ebp - 0x1c]
mov dword [0x4ccf1c], ecx
jmp 0x43827e
cmp dword [ebp - 0x20], 0x20
jl 0x43822e
cmp dword [ebp - 0x20], 0x7f
jne 0x438253
mov edx, dword [ebp - 0x1c]
mov byte [edx], 0x5e
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
xor ecx, 0x40
mov edx, dword [ebp - 0x1c]
mov byte [edx], cl
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x43827e
cmp dword [ebp - 0x20], 0xa0
jne 0x43826d
mov ecx, dword [ebp - 0x1c]
mov byte [ecx], 0x20
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x43827e
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp - 0x20]
mov byte [eax], cl
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x4380bc
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043a674
add esp, 8
fadd qword [ebp - 0x18]
mov edx, dword [ebp + 0x1c]
fstp qword [edx]
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret