Function at 0x4022a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x254
mov eax, dword [0x473500]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [esp + 0x258]
push ebx
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], 0
call fcn.00405a28
mov esi, dword [esp + 0x278]
mov ebp, eax
mov edi, dword [esp + 0x274]
add esp, 4
xor ecx, ecx
mov dword [ebp], ebp
mov dword [ebp + 4], ebp
mov dword [ebp + 8], ebp
mov word [ebp + 0xc], 0x101
mov dword [esp + 0x10], ebp
nop word [eax + eax]
mov eax, ecx
mov byte [esp + ecx + 0x60], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x160], al
inc ecx
cmp ecx, 0x100
jl 0x402300
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x60]
movzx eax, byte [esp + esi + 0x160]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x402343
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x60]
mov byte [esp + esi + 0x60], al
inc esi
mov byte [esp + edi + 0x60], dl
cmp esi, 0x100
jl 0x402320
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x18], edx
cmp dword [esp + 0x26c], edx
jle 0x40253b
nop dword [eax]
inc ebx
and ebx, 0x800000ff
jns 0x402381
dec ebx
or ebx, 0xffffff00
inc ebx
mov cl, byte [esp + ebx + 0x60]
movzx esi, cl
add edx, esi
mov dword [esp + 0x24], ebx
and edx, 0x800000ff
jns 0x40239e
dec edx
or edx, 0xffffff00
inc edx
mov al, byte [esp + edx + 0x60]
xorps xmm0, xmm0
mov byte [esp + ebx + 0x60], al
push 4
mov byte [esp + edx + 0x64], cl
lea ecx, [esp + 0x30]
push str.AAA_n
mov dword [esp + 0x30], edx
movups xmmword [esp + 0x34], xmm0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.00401250
cmp dword [esp + 0x40], 7
lea eax, [esp + 0x2c]
push dword [esp + 0x3c]
cmova eax, dword [esp + 0x30]
push eax
push 0x474560
call fcn.00401540
movzx eax, byte [esp + ebx + 0x6c]
add esp, 0xc
mov ebp, dword [esp + 0x10]
add eax, esi
movzx eax, al
xor edi, edi
mov dword [esp + 0x1c], eax
nop word [eax + eax]
mov ebx, dword [ebp + 4]
xorps xmm0, xmm0
movups xmmword [esp + 0x48], xmm0
xor esi, esi
mov dword [esp + 0x58], 4
mov dword [esp + 0x5c], 0xf
mov ecx, ebp
cmp byte [ebx + 0xd], 0
mov dword [esp + 0x48], 0x6f72655a
mov byte [esp + 0x4c], 0
jne 0x402461
mov eax, ebx
mov ebx, eax
cmp dword [eax + 0x10], edi
jge 0x402452
mov eax, dword [eax + 8]
xor esi, esi
jmp 0x40245b
mov ecx, eax
mov esi, 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x402444
cmp byte [ecx + 0xd], 0
jne 0x40246c
cmp edi, dword [ecx + 0x10]
jge 0x4024c7
cmp dword [esp + 0x14], 0x5d1745d
je 0x402576
push 0x2c
call fcn.00405a28
movups xmm0, xmmword [esp + 0x4c]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [eax + 0x10], edi
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
movups xmmword [eax + 0x14], xmm0
push eax
movq xmm0, qword [esp + 0x5c]
movq qword [eax + 0x24], xmm0
mov dword [eax], ebp
mov dword [eax + 4], ebp
push esi
mov dword [eax + 8], ebp
push ebx
mov word [eax + 0xc], 0
call fcn.00402580
mov ebp, dword [esp + 0x10]
inc edi
cmp edi, 0xa
jl 0x402410
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
mov al, byte [esp + eax + 0x60]
xor byte [ecx + ebx], al
mov ecx, dword [esp + 0x40]
cmp ecx, 7
jbe 0x402520
mov edx, dword [esp + 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x402512
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402571
push ecx
push edx
call fcn.00405a58
mov ebp, dword [esp + 0x18]
add esp, 8
inc ebx
mov dword [esp + 0x18], ebx
cmp ebx, dword [esp + 0x26c]
jge 0x40253b
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
jmp 0x402370
push dword [ebp + 4]
lea eax, [esp + 0x14]
push eax
mov ecx, eax
call fcn.004014b0
push 0x2c
push dword [esp + 0x14]
call fcn.00405a58
mov ecx, dword [esp + 0x268]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405a66
add esp, 0x254
ret
call fcn.0040a49f
call fcn.00402820
int3