Function at 0x401d50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1b8c
call fcn.0042c5e0
mov eax, dword [0x45ae20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x1370
mov dword [ebp - 0x1b80], eax
lea eax, [ebp - 0x1374]
push 0
push eax
mov dword [ebp - 0x1b78], ecx
mov dword [ebp - 0x1b8c], edx
call fcn.0042ac90
lea ecx, [ebp - 0x1374]
push 0x440220
push ecx
call fcn.00420db0
mov esi, dword [0x44001c]
add esp, 0x14
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
xor edi, edi
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
xor ebx, ebx
jmp 0x401e40
mov ecx, dword [ebp - 0x1b78]
push ecx
mov dword [ebp + ebx*4 - 0x1774], ebx
call fcn.00420e70
mov ecx, eax
xor edx, edx
mov eax, ebx
div ecx
mov eax, dword [ebp - 0x1b78]
add esp, 4
movzx ecx, byte [edx + eax]
lea edx, [ebp - 0x1374]
push edx
mov dword [ebp + ebx*4 - 0x1b74], ecx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
inc ebx
cmp ebx, 0x100
jl 0x401e40
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
xor eax, eax
jmp 0x401f00
mov edx, dword [ebp + eax - 0x1774]
mov ecx, dword [ebp + eax - 0x1b74]
add ecx, edx
add ecx, edi
and ecx, 0x800000ff
jns 0x401f22
dec ecx
or ecx, 0xffffff00
inc ecx
mov edi, dword [ebp + ecx*4 - 0x1774]
mov dword [ebp + eax - 0x1774], edi
mov edi, dword [ebp + eax - 0x1b70]
mov dword [ebp + ecx*4 - 0x1774], edx
mov edx, dword [ebp + eax - 0x1770]
add edi, edx
add ecx, edi
and ecx, 0x800000ff
jns 0x401f59
dec ecx
or ecx, 0xffffff00
inc ecx
mov edi, dword [ebp + ecx*4 - 0x1774]
mov dword [ebp + eax - 0x1770], edi
mov edi, dword [ebp + eax - 0x1b6c]
mov dword [ebp + ecx*4 - 0x1774], edx
mov edx, dword [ebp + eax - 0x176c]
add edi, edx
add ecx, edi
and ecx, 0x800000ff
jns 0x401f90
dec ecx
or ecx, 0xffffff00
inc ecx
mov edi, dword [ebp + ecx*4 - 0x1774]
mov dword [ebp + eax - 0x176c], edi
mov edi, dword [ebp + eax - 0x1b68]
mov dword [ebp + ecx*4 - 0x1774], edx
mov edx, dword [ebp + eax - 0x1768]
add edi, edx
add edi, ecx
and edi, 0x800000ff
jns 0x401fc7
dec edi
or edi, 0xffffff00
inc edi
mov ecx, dword [ebp + edi*4 - 0x1774]
mov dword [ebp + eax - 0x1768], ecx
add eax, 0x10
mov dword [ebp + edi*4 - 0x1774], edx
cmp eax, 0x400
jl 0x401f00
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
mov eax, dword [ebp - 0x1b80]
push eax
call fcn.00420e70
inc eax
push eax
call fcn.0042a10c
add esp, 8
lea ecx, [ebp - 0x1374]
push ecx
mov dword [ebp - 0x1b84], eax
xor ebx, ebx
xor edi, edi
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
mov edx, dword [ebp - 0x1b80]
push edx
mov dword [ebp - 0x1b78], ebx
call fcn.00420e70
add esp, 4
test eax, eax
jle 0x40217b
mov ecx, dword [ebp - 0x1b80]
mov eax, dword [ebp - 0x1b84]
sub eax, ecx
mov dword [ebp - 0x1b7c], ecx
mov dword [ebp - 0x1b88], eax
nop
inc edi
and edi, 0x800000ff
jns 0x4020d1
dec edi
or edi, 0xffffff00
inc edi
mov eax, dword [ebp + edi*4 - 0x1774]
add ebx, eax
and ebx, 0x800000ff
jns 0x4020ea
dec ebx
or ebx, 0xffffff00
inc ebx
mov edx, dword [ebp + ebx*4 - 0x1774]
mov dword [ebp + edi*4 - 0x1774], edx
mov dword [ebp + ebx*4 - 0x1774], eax
mov ecx, dword [ebp + edi*4 - 0x1774]
add eax, ecx
and eax, 0x800000ff
jns 0x402116
dec eax
or eax, 0xffffff00
inc eax
mov edx, dword [ebp - 0x1b7c]
mov cl, byte [edx]
movzx edx, cl
cmp dword [ebp + eax*4 - 0x1774], edx
mov edx, dword [ebp - 0x1b7c]
lea eax, [ebp + eax*4 - 0x1774]
jne 0x402142
mov eax, dword [ebp - 0x1b88]
mov byte [eax + edx], cl
jmp 0x40214f
mov al, byte [eax]
xor al, cl
mov ecx, dword [ebp - 0x1b88]
mov byte [ecx + edx], al
mov eax, 1
add dword [ebp - 0x1b78], eax
add dword [ebp - 0x1b7c], eax
mov eax, dword [ebp - 0x1b80]
push eax
call fcn.00420e70
add esp, 4
cmp dword [ebp - 0x1b78], eax
jl 0x4020c0
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
lea edx, [ebp - 0x1374]
push edx
call esi
lea eax, [ebp - 0x1374]
push eax
call esi
lea ecx, [ebp - 0x1374]
push ecx
call esi
mov eax, dword [ebp - 0x1b84]
mov edx, dword [ebp - 0x1b78]
mov ecx, dword [ebp - 0x1b8c]
mov byte [eax + edx], 0
push 0x1370
lea edx, [ebp - 0x1374]
push 0
push edx
mov dword [ecx], eax
call fcn.0042ac90
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042ad0a
mov esp, ebp
pop ebp
ret