Function at 0x401d61
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1b90
call fcn.00422900
mov eax, dword [0x4476f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1b84], eax
mov eax, dword [ebp + 0x10]
push 0x1370
mov dword [ebp - 0x1b8c], eax
xor edi, edi
lea eax, [ebp - 0x1374]
push edi
push eax
call fcn.00422870
add esp, 0xc
push 0x438218
lea eax, [ebp - 0x1374]
push eax
call dword [0x438020]
mov esi, dword [0x43801c]
lea eax, [ebp - 0x1374]
push eax
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea eax, [ebp - 0x1374]
push eax
mov dword [ebp - 0x1b78], edi
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
push ebx
mov dword [ebp + edi*4 - 0x1774], edi
call fcn.0041a2cf
pop ecx
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
movzx eax, byte [edx + ebx]
mov dword [ebp + edi*4 - 0x1b74], eax
lea eax, [ebp - 0x1374]
push eax
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
inc edi
cmp edi, 0x100
jl 0x401dfb
lea eax, [ebp - 0x1374]
push eax
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
xor edx, edx
mov ecx, dword [ebp + edx - 0x1b74]
lea eax, [ebp + edx - 0x1774]
mov edi, dword [eax]
add ecx, edi
add ecx, dword [ebp - 0x1b78]
and ecx, 0x800000ff
jns 0x401e85
dec ecx
or ecx, 0xffffff00
inc ecx
mov dword [ebp - 0x1b78], ecx
lea ecx, [ebp + ecx*4 - 0x1774]
mov ebx, dword [ecx]
add edx, 4
mov dword [eax], ebx
mov dword [ecx], edi
cmp edx, 0x400
jl 0x401e5d
lea eax, [ebp - 0x1374]
push eax
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
push dword [ebp - 0x1b84]
call fcn.0041a2cf
inc eax
push eax
call fcn.00421bd0
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0x1374]
xor edi, edi
push eax
mov dword [ebp - 0x1b90], ebx
mov dword [ebp - 0x1b78], edi
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
push dword [ebp - 0x1b84]
and dword [ebp - 0x1b7c], edi
call fcn.0041a2cf
pop ecx
test eax, eax
jle 0x401fdf
mov eax, dword [ebp - 0x1b84]
mov dword [ebp - 0x1b80], ebx
sub dword [ebp - 0x1b80], eax
mov dword [ebp - 0x1b88], eax
inc edi
and edi, 0x800000ff
jns 0x401f40
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp - 0x1b78]
lea eax, [ebp + edi*4 - 0x1774]
mov ecx, dword [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x401f61
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x1b78], edx
lea edx, [ebp + edx*4 - 0x1774]
mov ebx, dword [edx]
mov dword [eax], ebx
mov dword [edx], ecx
mov eax, dword [eax]
add eax, ecx
and eax, 0x800000ff
jns 0x401f86
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp - 0x1b88]
mov cl, byte [edx]
movzx ebx, cl
lea eax, [ebp + eax*4 - 0x1774]
cmp dword [eax], ebx
jne 0x401fa7
mov eax, dword [ebp - 0x1b80]
mov byte [eax + edx], cl
jmp 0x401fb4
mov al, byte [eax]
xor al, cl
mov ecx, dword [ebp - 0x1b80]
mov byte [ecx + edx], al
inc dword [ebp - 0x1b7c]
push dword [ebp - 0x1b84]
inc edx
mov dword [ebp - 0x1b88], edx
call fcn.0041a2cf
pop ecx
cmp dword [ebp - 0x1b7c], eax
jl 0x401f2f
mov ebx, dword [ebp - 0x1b90]
lea eax, [ebp - 0x1374]
push eax
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
mov eax, dword [ebp - 0x1b7c]
mov ecx, dword [ebp - 4]
mov byte [ebx + eax], 0
mov eax, dword [ebp - 0x1b8c]
pop edi
pop esi
mov dword [eax], ebx
xor ecx, ebp
pop ebx
call fcn.004228ea
leave
ret