Function at 0x4adbe8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ae30f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004ada28
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040456c
mov ebx, eax
mov eax, dword [edi + 8]
imul dword [edi + 4]
test eax, eax
jns 0x4adc34
add eax, 7
sar eax, 3
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
jge 0x4adc47
mov dword [ebp - 0x4c], 1
mov eax, dword [edi]
cmp eax, 0xa
jl 0x4adc61
cmp dword [edi + 8], 4
jne 0x4adc61
cmp dword [edi + 4], 3
jne 0x4adc61
mov dword [ebp - 0x4c], 2
mov edx, dword [edi + 8]
imul edx, dword [edi + 4]
imul edx, dword [edi + 0xc]
mov ecx, edx
test ecx, ecx
jns 0x4adc75
add ecx, 7
sar ecx, 3
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x3c]
shl ecx, 3
cmp edx, ecx
jle 0x4adc88
inc dword [ebp - 0x3c]
cmp eax, 0xa
jl 0x4adc93
mov eax, dword [ebp - 0x3c]
inc eax
jmp 0x4adc96
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x5c], ebx
fild dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
fild dword [ebp - 0x60]
fdivp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.0042ce2c
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
mov ecx, 1
mov edx, dword [0x4adb58]
call fcn.00405974
add esp, 4
mov eax, dword [ebp - 0x38]
dec eax
test eax, eax
jl 0x4adcfe
inc eax
mov dword [ebp - 0x50], eax
xor esi, esi
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
lea eax, [eax + esi*4]
mov ecx, 1
mov edx, dword [0x4adb28]
call fcn.00405974
add esp, 4
inc esi
dec dword [ebp - 0x50]
jne 0x4adcdb
mov eax, dword [ebp - 0x3c]
push eax
lea eax, [ebp - 0x44]
mov ecx, 1
mov edx, dword [0x4adb88]
call fcn.00405974
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x48]
mov ecx, 1
mov edx, dword [0x4adbb8]
call fcn.00405974
add esp, 4
mov dword [ebp - 0x34], 1
mov eax, dword [edi]
cmp eax, 0xa
jl 0x4addbc
mov eax, dword [ebp - 0x38]
dec eax
test eax, eax
jl 0x4ade8f
inc eax
mov dword [ebp - 0x50], eax
xor esi, esi
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [ebp - 0x34]
mov al, byte [eax + edx - 1]
mov edx, dword [ebp - 0x48]
mov byte [edx + esi], al
inc dword [ebp - 0x34]
dec ebx
cmp ebx, dword [ebp - 0x3c]
jl 0x4add8c
mov eax, dword [ebp - 4]
call fcn.004047c4
mov edx, dword [ebp - 0x34]
lea eax, [eax + edx - 1]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 0x3c]
call fcn.004029a4
jmp 0x4adda8
mov eax, dword [ebp - 4]
call fcn.004047c4
mov edx, dword [ebp - 0x34]
lea eax, [eax + edx - 1]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4]
mov ecx, ebx
call fcn.004029a4
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x34], eax
sub ebx, dword [ebp - 0x3c]
inc esi
dec dword [ebp - 0x50]
jne 0x4add52
jmp 0x4ade8f
cmp eax, 2
jne 0x4ade2b
mov eax, dword [ebp - 0x38]
dec eax
test eax, eax
jl 0x4ade8f
inc eax
mov dword [ebp - 0x50], eax
xor esi, esi
mov eax, dword [ebp - 0x48]
mov byte [eax + esi], 0xca
cmp ebx, dword [ebp - 0x3c]
jl 0x4addfe
mov eax, dword [ebp - 4]
call fcn.004047c4
mov edx, dword [ebp - 0x34]
lea eax, [eax + edx - 1]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 0x3c]
call fcn.004029a4
jmp 0x4ade1a
mov eax, dword [ebp - 4]
call fcn.004047c4
mov edx, dword [ebp - 0x34]
lea eax, [eax + edx - 1]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4]
mov ecx, ebx
call fcn.004029a4
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x34], eax
sub ebx, dword [ebp - 0x3c]
inc esi
dec dword [ebp - 0x50]
jne 0x4addd3
jmp 0x4ade8f
mov eax, dword [ebp - 0x38]
dec eax
test eax, eax
jl 0x4ade8f
inc eax
mov dword [ebp - 0x50], eax
xor esi, esi
mov eax, dword [ebp - 0x48]
mov byte [eax + esi], 0
cmp ebx, dword [ebp - 0x3c]
jl 0x4ade64
mov eax, dword [ebp - 4]
call fcn.004047c4
mov edx, dword [ebp - 0x34]
lea eax, [eax + edx - 1]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4]
mov ecx, dword [ebp - 0x3c]
call fcn.004029a4
jmp 0x4ade80
mov eax, dword [ebp - 4]
call fcn.004047c4
mov edx, dword [ebp - 0x34]
lea eax, [eax + edx - 1]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4]
mov ecx, ebx
call fcn.004029a4
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x34], eax
sub ebx, dword [ebp - 0x3c]
inc esi
dec dword [ebp - 0x50]
jne 0x4ade39
mov eax, dword [ebp - 0x38]
dec eax
test eax, eax
jl 0x4ae292
inc eax
mov dword [ebp - 0x50], eax
xor esi, esi
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax + esi]
cmp eax, 3
jg 0x4adebe
je 0x4adf68
dec eax
je 0x4aded7
dec eax
je 0x4adf1e
jmp 0x4ae288
sub eax, 4
je 0x4adfe3
sub eax, 0xc6
je 0x4ae08b
jmp 0x4ae288
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x3c]
dec eax
sub eax, ebx
jl 0x4ae288
inc eax
mov dword [ebp - 0x54], eax
mov eax, ebx
sub eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4]
movzx eax, byte [edx + eax]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4]
mov al, byte [eax + ebx]
add al, byte [ebp - 8]
and al, 0xff
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4]
mov byte [edx + ebx], al
inc ebx
dec dword [ebp - 0x54]
jne 0x4adeea
jmp 0x4ae288
test esi, esi
jle 0x4ae288
mov eax, dword [ebp - 0x3c]
dec eax
test eax, eax
jl 0x4ae288
inc eax
mov dword [ebp - 0x54], eax
xor ebx, ebx
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4 - 4]
movzx eax, byte [eax + ebx]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4]
mov al, byte [eax + ebx]
add al, byte [ebp - 8]
and al, 0xff
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4]
mov byte [edx + ebx], al
inc ebx
dec dword [ebp - 0x54]
jne 0x4adf38
jmp 0x4ae288
mov eax, dword [ebp - 0x3c]
dec eax
test eax, eax
jl 0x4ae288
inc eax
mov dword [ebp - 0x54], eax
xor ebx, ebx
cmp ebx, dword [ebp - 0x4c]
jl 0x4adf93
mov eax, ebx
sub eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4]
movzx eax, byte [edx + eax]
mov dword [ebp - 0x2c], eax
jmp 0x4adf98
xor eax, eax
mov dword [ebp - 0x2c], eax
test esi, esi
jle 0x4adfac
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4 - 4]
movzx eax, byte [eax + ebx]
mov dword [ebp - 0x30], eax
jmp 0x4adfb1
xor eax, eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp - 0x30]
sar eax, 1
jns 0x4adfbe
adc eax, 0
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4]
mov al, byte [eax + ebx]
add al, byte [ebp - 8]
and al, 0xff
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4]
mov byte [edx + ebx], al
inc ebx
dec dword [ebp - 0x54]
jne 0x4adf7a
jmp 0x4ae288
mov eax, dword [ebp - 0x3c]
dec eax
test eax, eax
jl 0x4ae288
inc eax
mov dword [ebp - 0x54], eax
xor ebx, ebx
cmp ebx, dword [ebp - 0x4c]
jl 0x4ae00e
mov eax, ebx
sub eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4]
movzx eax, byte [edx + eax]
mov dword [ebp - 0x20], eax
jmp 0x4ae013
xor eax, eax
mov dword [ebp - 0x20], eax
test esi, esi
jle 0x4ae027
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4 - 4]
movzx eax, byte [eax + ebx]
mov dword [ebp - 0x24], eax
jmp 0x4ae02c
xor eax, eax
mov dword [ebp - 0x24], eax
cmp ebx, dword [ebp - 0x4c]
jl 0x4ae04a
test esi, esi
jle 0x4ae04a
mov eax, ebx
sub eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4 - 4]
movzx eax, byte [edx + eax]
mov dword [ebp - 0x28], eax
jmp 0x4ae04f
xor eax, eax
mov dword [ebp - 0x28], eax
mov cl, byte [ebp - 0x28]
mov dl, byte [ebp - 0x24]
mov al, byte [ebp - 0x20]
call fcn.004ada7c
and eax, 0xff
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4]
mov al, byte [eax + ebx]
add al, byte [ebp - 8]
and al, 0xff
mov edx, dword [ebp - 0x40]
mov edx, dword [edx + esi*4]
mov byte [edx + ebx], al
inc ebx
dec dword [ebp - 0x54]
jne 0x4adff5
jmp 0x4ae288
mov eax, dword [edi + 4]
dec eax
test eax, eax
jl 0x4ae0a3
inc eax
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x19]
mov byte [eax], 0
inc eax
dec dword [ebp - 0x54]
jne 0x4ae09a
mov eax, dword [ebp - 0x3c]
dec eax
test eax, eax
jl 0x4ae0e0
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4]
mov edx, dword [ebp - 0xc]
mov al, byte [eax + edx]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4]
mov edx, dword [ebp - 0xc]
mov byte [eax + edx], 0
inc dword [ebp - 0xc]
dec dword [ebp - 0x54]
jne 0x4ae0b6
mov eax, dword [edi + 0xc]
dec eax
test eax, eax
jl 0x4ae288
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 8], 0
mov eax, dword [edi + 4]
dec eax
test eax, eax
jl 0x4ae27c
inc eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0xc], 0
lea ebx, [ebp - 0x19]
mov eax, dword [edi + 4]
imul dword [ebp - 8]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 8]
dec eax
je 0x4ae132
dec eax
je 0x4ae156
sub eax, 2
je 0x4ae17c
sub eax, 4
je 0x4ae1a2
jmp 0x4ae1b1
mov eax, dword [ebp - 0x10]
and eax, 7
mov ecx, 7
sub ecx, eax
mov eax, dword [ebp - 0x10]
shr eax, 3
mov edx, dword [ebp - 0x44]
movzx eax, byte [edx + eax]
shr eax, cl
and eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x4ae1be
mov eax, dword [ebp - 0x10]
and eax, 3
mov ecx, 3
sub ecx, eax
add ecx, ecx
mov eax, dword [ebp - 0x10]
shr eax, 2
mov edx, dword [ebp - 0x44]
movzx eax, byte [edx + eax]
shr eax, cl
and eax, 3
mov dword [ebp - 0x2c], eax
jmp 0x4ae1be
mov eax, dword [ebp - 0x10]
and eax, 1
mov ecx, 1
sub ecx, eax
shl ecx, 2
mov eax, dword [ebp - 0x10]
shr eax, 1
mov edx, dword [ebp - 0x44]
movzx eax, byte [edx + eax]
shr eax, cl
and eax, 0xf
mov dword [ebp - 0x2c], eax
jmp 0x4ae1be
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx]
mov dword [ebp - 0x2c], eax
jmp 0x4ae1be
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x10]
movzx eax, byte [eax + edx]
mov dword [ebp - 0x2c], eax
mov ecx, dword [edi + 8]
mov eax, 1
shl eax, cl
push eax
xor eax, eax
mov al, byte [ebx]
add eax, dword [ebp - 0x2c]
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [ebp - 0x30], edx
mov eax, dword [edi + 8]
dec eax
je 0x4ae1ee
dec eax
je 0x4ae211
sub eax, 2
je 0x4ae236
sub eax, 4
je 0x4ae25b
jmp 0x4ae26a
mov eax, dword [ebp - 0x10]
and eax, 7
mov ecx, 7
sub ecx, eax
mov al, byte [ebp - 0x30]
shl al, cl
mov edx, dword [ebp - 0x10]
shr edx, 3
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + esi*4]
or byte [ecx + edx], al
jmp 0x4ae26a
mov eax, dword [ebp - 0x10]
and eax, 3
mov ecx, 3
sub ecx, eax
add ecx, ecx
mov al, byte [ebp - 0x30]
shl al, cl
mov edx, dword [ebp - 0x10]
shr edx, 2
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + esi*4]
or byte [ecx + edx], al
jmp 0x4ae26a
mov eax, dword [ebp - 0x10]
and eax, 1
mov ecx, 1
sub ecx, eax
shl ecx, 2
mov al, byte [ebp - 0x30]
shl al, cl
mov edx, dword [ebp - 0x10]
shr edx, 1
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + esi*4]
or byte [ecx + edx], al
jmp 0x4ae26a
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4]
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 0x30]
mov byte [eax + edx], cl
mov al, byte [ebp - 0x30]
mov byte [ebx], al
inc dword [ebp - 0xc]
inc ebx
dec dword [ebp - 0x58]
jne 0x4ae111
inc dword [ebp - 8]
dec dword [ebp - 0x54]
jne 0x4ae0f7
inc esi
dec dword [ebp - 0x50]
jne 0x4adea1
mov ebx, 1
mov edx, dword [ebp - 0x38]
imul edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.004048f8
mov eax, dword [ebp - 0x38]
dec eax
test eax, eax
jl 0x4ae2d7
inc eax
mov dword [ebp - 0x50], eax
xor esi, esi
mov eax, dword [ebp - 4]
call fcn.004047c4
lea edx, [eax + ebx - 1]
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + esi*4]
mov ecx, dword [ebp - 0x3c]
call fcn.004029a4
add ebx, dword [ebp - 0x3c]
inc esi
dec dword [ebp - 0x50]
jne 0x4ae2b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae316
lea eax, [ebp - 0x48]
mov edx, dword [0x4adbb8]
call fcn.00405a94
lea eax, [ebp - 0x44]
mov edx, dword [0x4adb88]
call fcn.00405a94
lea eax, [ebp - 0x40]
mov edx, dword [0x4adb58]
call fcn.00405a94
ret