Function at 0x412b00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp + 8]
lea edx, [ebp + 8]
imul eax, edx
lea edx, [ebp + 8]
push ebx
push esi
cmp eax, edx
push edi
mov dword [ebp - 0x10], ecx
mov dword [ecx], 0x4300b8
jne 0x412c80
push 1
pop ecx
push ecx
pop eax
cmp eax, 5
jg 0x412b4b
test eax, eax
je 0x412b44
mov dl, byte [ebp + ecx + 7]
cmp dl, byte [ebp + eax + 9]
je 0x412b44
mov eax, dword [ebp + eax*4 - 0x20]
jmp 0x412b46
inc ecx
inc eax
cmp ecx, 3
jle 0x412b2b
xor eax, eax
xor esi, esi
mov cl, byte [eax]
test cl, cl
je 0x412b8d
push 0x30
pop ebx
cmp cl, bl
jl 0x412b85
cmp cl, 0x39
jg 0x412b85
movsx ecx, cl
sub ecx, ebx
inc eax
mov dword [esi], ecx
mov cl, byte [eax]
cmp cl, bl
jl 0x412b82
cmp cl, 0x39
jg 0x412b82
mov edx, dword [esi]
movsx ecx, cl
lea edx, [edx + edx*4]
lea ecx, [ecx + edx*2 - 0x30]
jmp 0x412b66
add esi, 4
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x412b58
push 1
pop esi
push 2
pop ecx
mov eax, esi
cdq
idiv ecx
test edx, edx
jne 0x412ba2
inc ecx
cmp ecx, 0x32
jl 0x412b93
cmp esi, ecx
je 0x412bac
inc esi
cmp esi, 0x64
jle 0x412b90
push 0xa
lea edi, [ebp - 0x1c]
pop edx
push 3
mov ecx, edx
pop eax
push 1
rep stosd dword es:[edi], eax
pop ebx
lea eax, [ebp - 0x1c]
cmp ebx, edx
jge 0x412bda
lea ecx, [eax + 4]
sub edx, ebx
mov esi, dword [eax]
mov edi, dword [ecx]
cmp esi, edi
jle 0x412bd4
mov dword [ecx], esi
mov dword [eax], edi
add ecx, 4
dec edx
jne 0x412bc8
inc ebx
push 0xa
pop edx
add eax, 4
lea ecx, [ebx - 1]
cmp ecx, edx
jl 0x412bbf
xor ebx, ebx
mov dword [ebp - 0xc], 3
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], 3
xor edx, edx
xor eax, eax
lea ecx, [eax + eax*2]
add edx, dword [ebp + ecx*4 - 0x20]
inc eax
cmp eax, 3
jl 0x412c08
push 2
xor esi, esi
pop eax
lea ecx, [esi + eax*2]
mov edi, eax
lea ecx, [ebp + ecx*4 - 0x20]
cmp edi, esi
je 0x412c29
add edx, dword [ecx]
inc edi
add ecx, 8
cmp edi, eax
jle 0x412c23
inc esi
dec eax
cmp eax, 0xffffffff
jg 0x412c1a
dec dword [ebp - 8]
jne 0x412c04
dec dword [ebp - 0xc]
jne 0x412bfd
push 0xa
lea edi, [ebp - 0x1c]
pop ecx
push 3
pop eax
push 1
rep stosd dword es:[edi], eax
pop ebx
lea eax, [ebp - 0x1c]
push 0xa
pop edx
cmp ebx, edx
jge 0x412c71
lea ecx, [eax + 4]
sub edx, ebx
mov esi, dword [eax]
mov edi, dword [ecx]
cmp esi, edi
jle 0x412c6b
mov dword [ecx], esi
mov dword [eax], edi
add ecx, 4
dec edx
jne 0x412c5f
inc ebx
add eax, 4
lea ecx, [ebx - 1]
cmp ecx, 0xa
jl 0x412c53
mov ecx, dword [ebp - 0x10]
lea esi, [ecx + 4]
xor eax, eax
mov ecx, esi
mov byte [ecx], al
inc eax
inc ecx
cmp ax, 0x100
jl 0x412c87
and byte [esi + 0x100], 0
and byte [esi + 0x101], 0
xor dl, dl
xor edi, edi
mov ebx, esi
mov dword [ebp - 0xc], 0x100
mov al, byte [ebx]
movzx ecx, dl
mov edx, dword [ebp + 8]
mov byte [ebp - 1], al
movzx eax, al
movzx edx, byte [ecx + edx]
add edi, edx
add eax, edi
mov edi, 0x100
cdq
idiv edi
movzx edi, dl
mov al, byte [edi + esi]
mov byte [ebx], al
mov al, byte [ebp - 1]
mov byte [edi + esi], al
lea eax, [ecx + 1]
cdq
idiv dword [ebp + 0xc]
inc ebx
dec dword [ebp - 0xc]
jne 0x412cac
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret 8