Function at 0x465745
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x20
call fcn.00462cfe
mov dword [0xa56a18], eax
fld qword [ebp - 0x10]
fstp qword [esp + 8]
mov dword [esp + 4], str.__.15E
mov dword [esp], 0xa237e0
call sub.msvcrt.dll_sprintf
mov dword [0xa56a1c], eax
mov eax, dword [0xa56a1c]
cmp eax, 0x16
jne 0x4657c8
mov dword [esp + 8], 2
mov dword [esp + 4], 0xa237f4
mov dword [esp], 0xa237f5
call sub.msvcrt.dll_memmove
mov byte [0xa237f4], 0x30
mov dword [0xa56a1c], 0x17
movzx eax, byte [0xa237f1]
cmp al, 0x39
jne 0x465829
fld qword [ebp - 0x10]
fstp qword [esp + 8]
mov dword [esp + 4], str.__.14E
mov dword [esp], 0xa23800
call sub.msvcrt.dll_sprintf
mov eax, dword [0xa23800]
mov dword [0xa237e0], eax
mov eax, dword [0xa23804]
mov dword [0xa237e4], eax
mov eax, dword [0xa23808]
mov dword [0xa237e8], eax
mov eax, dword [0xa2380c]
mov dword [0xa237ec], eax
movzx eax, byte [0xa23810]
mov byte [0xa237f0], al
mov byte [0xa237f1], 0x30
mov byte [0xa237f2], 0x44
mov dword [0xa56a20], 0x10
mov dword [0xa56a24], 0x11
jmp 0x465882
mov eax, dword [0xa56a24]
movzx eax, byte [eax + 0xa237e0]
cmp al, 0x30
jne 0x465865
mov eax, dword [0xa56a20]
sub eax, 1
mov dword [0xa56a20], eax
jmp 0x465875
mov eax, dword [0xa56a24]
movzx eax, byte [eax + 0xa237e0]
cmp al, 0x2e
jne 0x465892
mov eax, dword [0xa56a24]
sub eax, 1
mov dword [0xa56a24], eax
mov eax, dword [0xa56a24]
test eax, eax
setg al
test al, al
jne 0x465846
jmp 0x465893
nop
mov eax, dword [0xa56a20]
test eax, eax
jne 0x4658c9
mov eax, dword [0xa56a18]
mov dword [eax + 4], 2
mov eax, dword [0xa56a18]
mov eax, dword [eax]
mov byte [eax], 0x20
mov eax, dword [0xa56a18]
mov eax, dword [eax]
add eax, 1
mov byte [eax], 0x30
mov eax, dword [0xa56a18]
jmp 0x465bb4
movzx eax, byte [0xa237f4]
movzx eax, al
imul eax, eax, 0x64
lea ecx, [eax - 0x12c0]
movzx eax, byte [0xa237f5]
movzx edx, al
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
sub eax, 0x1e0
lea edx, [ecx + eax]
movzx eax, byte [0xa237f6]
movzx eax, al
sub eax, 0x30
add eax, edx
mov dword [0xa56a28], eax
movzx eax, byte [0xa237f3]
cmp al, 0x2d
jne 0x465922
mov eax, dword [0xa56a28]
neg eax
mov dword [0xa56a28], eax
mov eax, dword [0xa56a28]
cmp eax, 0xf
jg 0x465946
mov edx, dword [0xa56a28]
mov eax, dword [0xa56a20]
mov ecx, edx
sub ecx, eax
mov eax, ecx
cmp eax, 0xffffffef
jge 0x465ab5
mov dword [0xa56a2c], 0
mov eax, dword [0xa56a20]
add eax, 2
mov dword [0xa56a30], eax
mov eax, dword [0xa56a20]
cmp eax, 1
jne 0x465974
mov eax, dword [0xa56a30]
sub eax, 1
mov dword [0xa56a30], eax
mov dword [0xa56a24], 0
jmp 0x4659b6
mov eax, dword [0xa56a18]
mov edx, dword [eax]
mov eax, dword [0xa56a2c]
add edx, eax
mov eax, dword [0xa56a24]
movzx eax, byte [eax + 0xa237e0]
mov byte [edx], al
mov eax, dword [0xa56a2c]
add eax, 1
mov dword [0xa56a2c], eax
mov eax, dword [0xa56a24]
add eax, 1
mov dword [0xa56a24], eax
mov edx, dword [0xa56a24]
mov eax, dword [0xa56a30]
cmp edx, eax
setl al
test al, al
jne 0x465980
mov dword [0xa56a24], 0x12
jmp 0x465a0c
mov eax, dword [0xa56a18]
mov edx, dword [eax]
mov eax, dword [0xa56a2c]
add edx, eax
mov eax, dword [0xa56a24]
movzx eax, byte [eax + 0xa237e0]
mov byte [edx], al
mov eax, dword [0xa56a2c]
add eax, 1
mov dword [0xa56a2c], eax
mov eax, dword [0xa56a24]
add eax, 1
mov dword [0xa56a24], eax
mov eax, dword [0xa56a24]
cmp eax, 0x13
setle al
test al, al
jne 0x4659d6
mov eax, dword [0xa56a28]
mov edx, eax
sar edx, 0x1f
xor eax, edx
sub eax, edx
mov dword [0xa56a28], eax
mov dword [0xa56a30], 0x15
mov eax, dword [0xa56a28]
cmp eax, 0x63
jle 0x465a4c
mov dword [0xa56a30], 0x14
mov eax, dword [0xa56a30]
mov dword [0xa56a24], eax
jmp 0x465a8e
mov eax, dword [0xa56a18]
mov edx, dword [eax]
mov eax, dword [0xa56a2c]
add edx, eax
mov eax, dword [0xa56a24]
movzx eax, byte [eax + 0xa237e0]
mov byte [edx], al
mov eax, dword [0xa56a2c]
add eax, 1
mov dword [0xa56a2c], eax
mov eax, dword [0xa56a24]
add eax, 1
mov dword [0xa56a24], eax
mov eax, dword [0xa56a24]
cmp eax, 0x16
setle al
test al, al
jne 0x465a58
mov eax, dword [0xa56a18]
mov edx, dword [0xa56a2c]
mov dword [eax + 4], edx
mov eax, dword [0xa56a18]
jmp 0x465bb4
nop
mov edx, dword [0xa56a28]
mov eax, dword [0xa56a20]
mov ecx, edx
sub ecx, eax
mov eax, ecx
not eax
mov dword [0xa56a24], eax
mov eax, dword [0xa56a24]
test eax, eax
jns 0x465ae1
mov dword [0xa56a24], 0
mov byte [0xa237d0], 0x25
mov byte [0xa237d1], 0x20
mov byte [0xa237d2], 0x2e
mov eax, dword [0xa56a24]
cmp eax, 9
jle 0x465b16
mov byte [0xa237d3], 0x31
mov eax, dword [0xa56a24]
add eax, 0x26
mov byte [0xa237d4], al
jmp 0x465b2a
mov byte [0xa237d3], 0x30
mov eax, dword [0xa56a24]
add eax, 0x30
mov byte [0xa237d4], al
mov byte [0xa237d5], 0x66
mov byte [0xa237d6], 0
mov ebx, dword [0xa56a18]
mov eax, dword [0xa56a18]
mov eax, dword [eax]
fld qword [ebp - 0x10]
fstp qword [esp + 8]
mov dword [esp + 4], 0xa237d0
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
mov dword [ebx + 4], eax
mov eax, dword [0xa56a18]
mov eax, dword [eax]
add eax, 1
movzx eax, byte [eax]
cmp al, 0x30
jne 0x465baf
mov eax, dword [0xa56a18]
mov eax, dword [eax + 4]
sub eax, 2
mov edx, dword [0xa56a18]
mov edx, dword [edx]
lea ecx, [edx + 2]
mov edx, dword [0xa56a18]
mov edx, dword [edx]
add edx, 1
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.msvcrt.dll_memmove
mov eax, dword [0xa56a18]
mov edx, dword [eax + 4]
sub edx, 1
mov dword [eax + 4], edx
mov eax, dword [0xa56a18]
add esp, 0x24
pop ebx
pop ebp
ret