Function at 0x420fb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, ecx
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [esp + 0x54]
mov cl, byte [esi]
test cl, cl
je 0x421328
mov ebx, esi
xor edi, edi
mov al, 0x10
mov dword [esp + 0x1c], ebp
lea esi, [esi]
inc ebx
mov dl, al
sub edx, ebx
and ecx, 0xff
add edx, esi
add edi, ecx
movsx ebp, byte [ebx]
movsx edx, dl
imul edx, ebp
mov ecx, ebp
test edx, edx
jne 0x420fd8
mov ecx, 0x65
mov eax, edi
xor edx, edx
mov ebp, dword [esp + 0x1c]
div ecx
lea edx, [edx + edx*2]
mov eax, dword [esp + 0x50]
mov edi, dword [eax + edx*4]
test edi, edi
jne 0x421028
jmp 0x421190
jg 0x421190
mov edi, dword [edi]
test edi, edi
je 0x421190
mov dword [esp + 4], esi
mov eax, dword [edi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x421018
mov esi, dword [edi + 0xc]
mov byte [edi + 8], 1
mov ebx, eax
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov dword [ebp + 8], 0
test esi, esi
je 0x421181
mov al, byte [esi]
mov edx, esi
test al, al
je 0x4210f4
lea esi, [esi]
cmp al, 0x2c
sete al
inc edx
and eax, 0xff
add ebx, eax
mov al, byte [edx]
test al, al
jne 0x421070
test ebx, ebx
je 0x4210f4
cmp ebx, 0x1fffffff
ja 0x4825f7
lea eax, [ebx*4]
mov dword [esp], eax
call fcn.00480010
mov edi, eax
mov eax, dword [ebp + 4]
test eax, eax
je 0x4210ee
mov ecx, dword [ebp + 8]
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x4210da
mov edx, edi
lea ecx, [eax + ecx*4]
mov dword [esp + 0x20], ebx
lea esi, [esi]
mov ebx, dword [eax]
add eax, 4
mov dword [edx], ebx
add edx, 4
cmp ecx, eax
jne 0x4210c8
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4210ee
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
call fcn.0047ffe0
mov dword [ebp + 4], ebx
mov dword [ebp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll_strtol
mov ebx, eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 4]
je 0x421248
mov edi, dword [ebp]
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov dword [edi + eax*4], ebx
mov al, byte [esi]
test al, al
jne 0x421138
jmp 0x421181
mov al, byte [edx + 1]
inc esi
test al, al
je 0x421181
mov edx, esi
cmp al, 0x2c
jne 0x421130
nop
mov al, byte [esi + 1]
inc esi
dec eax
cmp al, 0x1f
jbe 0x421140
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll_strtol
mov ebx, eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 4]
je 0x4211b8
mov edi, dword [ebp]
lea edx, [eax + 1]
mov dword [ebp + 8], edx
mov edx, esi
mov dword [edi + eax*4], ebx
inc esi
mov al, byte [edx + 1]
test al, al
jne 0x421138
add esp, 0x3c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov dword [ebp + 8], 0
add esp, 0x3c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
test eax, eax
jne 0x4212d8
mov eax, 4
mov dword [esp + 0x20], 1
mov dword [esp], eax
call fcn.00480010
mov ecx, dword [ebp + 4]
mov edi, eax
test ecx, ecx
mov eax, dword [ebp + 8]
je 0x421233
mov ecx, dword [ebp]
test eax, eax
mov dword [esp + 0x24], ecx
je 0x42121c
mov edx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov ecx, edi
lea edx, [edx + eax*4]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
lea esi, cs:[esi]
mov eax, dword [edx]
add edx, 4
mov dword [ecx], eax
add ecx, 4
cmp dword [esp + 0x1c], edx
jne 0x421208
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
test edx, edx
je 0x421233
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0047ffe0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
mov dword [ebp], edi
mov dword [ebp + 4], ecx
jmp 0x42116e
test eax, eax
jne 0x421300
mov eax, 4
mov dword [esp + 0x20], 1
mov dword [esp], eax
call fcn.00480010
mov ecx, dword [ebp + 4]
mov edi, eax
test ecx, ecx
mov eax, dword [ebp + 8]
je 0x4212c3
mov ecx, dword [ebp]
test eax, eax
mov dword [esp + 0x24], ecx
je 0x4212ac
mov edx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov ecx, edi
lea edx, [edx + eax*4]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
lea esi, cs:[esi]
mov eax, dword [edx]
add edx, 4
mov dword [ecx], eax
add ecx, 4
cmp dword [esp + 0x1c], edx
jne 0x421298
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
test edx, edx
je 0x4212c3
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0047ffe0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
mov dword [ebp], edi
mov dword [ebp + 4], ecx
jmp 0x42111d
lea edi, [eax + eax]
mov dword [esp + 0x20], edi
cmp eax, edi
jae 0x42116b
cmp dword [esp + 0x20], 0x1fffffff
ja 0x4825d9
shl eax, 3
jmp 0x4211cd
lea edi, [eax + eax]
mov dword [esp + 0x20], edi
cmp eax, edi
jae 0x42111a
cmp dword [esp + 0x20], 0x1fffffff
ja 0x4825d4
shl eax, 3
jmp 0x42125d
xor edx, edx
jmp 0x421005
call fcn.00482e30
call fcn.00482e30
mov ebx, eax
mov eax, dword [ebp]
test eax, eax
je 0x4825ef
mov dword [esp], eax
call fcn.0047ffe0
mov dword [esp], ebx
call fcn.00462b50
call fcn.00482e30
call fcn.00482e30
mov ebx, eax
mov eax, dword [ebp]
test eax, eax
je 0x482612
mov dword [esp], eax
call fcn.0047ffe0
mov dword [esp], ebx
call fcn.00462b50
call fcn.00482e30
call fcn.00482e30
mov byte [0], 0
ud2