Function at 0x402270
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4290f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x43900c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x34]
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x20]
push eax
call fcn.004158a0
movaps xmm1, xmmword [0x435370]
mov ecx, 8
mov edx, 0x43d2d8
lea eax, [ecx - 8]
movd xmm0, eax
lea edx, [edx + 0x40]
pshufd xmm0, xmm0, 0
lea eax, [ecx - 4]
paddd xmm0, xmm1
movups xmmword [edx - 0x50], xmm0
movd xmm0, eax
lea eax, [ecx + 4]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x40], xmm0
movd xmm0, ecx
add ecx, 0x10
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x30], xmm0
movd xmm0, eax
lea eax, [ecx - 8]
pshufd xmm0, xmm0, 0
paddd xmm0, xmm1
movups xmmword [edx - 0x20], xmm0
cmp eax, 0x100
jl 0x4022d3
mov edi, dword [ebp - 0x34]
xor esi, esi
mov dword [ebp - 0x18], 0
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x34]
mov eax, esi
cmovae ecx, edi
cdq
idiv dword [ebp - 0x14]
lea eax, [edx + ecx]
mov ecx, dword [esi*4 + 0x43d2c8]
movsx edx, byte [eax]
add edx, ecx
add edx, dword [ebp - 0x18]
and edx, 0x800000ff
jns 0x402372
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [edx*4 + 0x43d2c8]
mov dword [esi*4 + 0x43d2c8], eax
inc esi
mov dword [ebp - 0x18], edx
mov dword [edx*4 + 0x43d2c8], ecx
cmp esi, 0x100
jl 0x402340
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x4023c6
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4023bc
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40257c
push ecx
push edi
call fcn.00417475
add esp, 8
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
call fcn.004158a0
xor ecx, ecx
mov byte [ebp - 4], 2
xor edi, edi
xor esi, esi
cmp dword [ebp - 0x1c], ecx
jle 0x40246e
inc edi
and edi, 0x800000ff
jns 0x4023f6
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [edi*4 + 0x43d2c8]
add ecx, edx
and ecx, 0x800000ff
jns 0x40240f
dec ecx
or ecx, 0xffffff00
inc ecx
mov eax, dword [ecx*4 + 0x43d2c8]
cmp dword [ebp - 0x20], 0x10
mov dword [edi*4 + 0x43d2c8], eax
mov dword [ecx*4 + 0x43d2c8], edx
mov eax, dword [edi*4 + 0x43d2c8]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x34]
cmovae ecx, dword [ebp - 0x34]
add eax, edx
and eax, 0x800000ff
jns 0x402449
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [eax*4 + 0x43d2c8]
xor al, byte [ecx + esi]
mov ecx, dword [ebp - 0x14]
mov byte [esi + 0x43b208], al
inc esi
cmp esi, dword [ebp - 0x1c]
jl 0x4023e5
cmp esi, 0x100
jae 0x402581
mov byte [esi + 0x43b208], 0
mov ecx, 0x43b208
mov esi, dword [ebp - 0x38]
lea edx, [ecx + 1]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402491
sub ecx, edx
push ecx
push 0x43b208
mov ecx, esi
call fcn.00415c00
mov edx, dword [ebp - 0x20]
cmp edx, 0x10
jb 0x4024db
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4024d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402586
push edx
push ecx
call fcn.00417475
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
cmp edx, 0x10
jb 0x40251d
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402513
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402586
push edx
push ecx
call fcn.00417475
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x40255f
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x402555
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402586
push edx
push ecx
call fcn.00417475
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416e02
mov esp, ebp
pop ebp
ret
call fcn.0041c0c8
call fcn.0041711a
call fcn.0041c0c8
int3