Function at 0x10373130
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov edx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], ecx
mov eax, dword [edx + 0x20]
add eax, 3
mov dword [ecx + 8], eax
mov ebx, dword [edx + 0x24]
add ebx, eax
mov dword [ecx + 4], ebx
mov ecx, ebx
mov eax, dword [edx + 0xc]
dec eax
push edi
mov edi, 1
mov esi, edi
shl esi, cl
add eax, esi
mov ecx, dword [ebp - 4]
cdq
idiv esi
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
dec eax
mov dword [ecx + 0x14], esi
add eax, esi
cdq
idiv esi
mov edx, dword [ebp + 8]
mov esi, ecx
mov dword [ecx + 0x10], eax
mov eax, dword [edx + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [edx + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edx + 0xc]
sar eax, 2
mov dword [esi + 0x20], eax
mov eax, dword [edx + 0x10]
sar eax, 2
mov dword [esi + 0x24], eax
mov ecx, dword [edx + 0xc]
sar ecx, 3
mov dword [esi + 0x28], ecx
inc ecx
mov edx, dword [edx + 0x10]
mov eax, ecx
and eax, 0xfffffffe
sar edx, 3
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], edx
sar ecx, 1
lea eax, [edx + 1]
mov dword [esi + 0x34], ecx
sar eax, 1
mov dword [esi + 0x38], eax
mov eax, dword [ebp + 8]
sub ebx, dword [eax + 0x8c]
lea ecx, [ebx - 3]
mov ebx, esi
shl edi, cl
mov ecx, eax
dec edi
mov dword [ebx + 0x3c], edi
mov eax, dword [ecx + 0xac]
add eax, 2
xor edx, edx
mov dword [ebx + 0x40], eax
mov eax, dword [ecx + 0xa8]
mov dword [ebx + 0x44], eax
mov eax, dword [ecx + 0x48]
mov dword [ebx + 0x48], eax
movzx eax, byte [ecx + 0x84]
mov byte [ebx + 0x4c], al
movzx eax, byte [ecx + 0x90]
mov byte [ebx + 0x4e], al
movzx eax, byte [ecx + 0x94]
mov byte [ebx + 0x4f], al
movzx eax, byte [ecx + 0x44]
mov byte [ebx + 0x4d], al
lea esi, [ebx + 0xbc]
lea edi, [ecx + 0x1b0]
nop dword [eax + eax]
mov eax, dword [ebp + 8]
lea edi, [edi + 2]
movzx ecx, word [edi - 2]
lea esi, [esi + 2]
mov al, byte [eax + edx + 0x1d0]
mov byte [ebx + edx + 0xac], al
inc edx
mov word [esi - 2], cx
cmp edx, 0x10
jl 0x10373230
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi]
mov eax, dword [ebx + eax*4 + 0x6c]
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0xc]
imul eax, dword [ebx + 0x10]
test eax, eax
jle 0x1037328e
nop
mov eax, dword [ebx + 0x64]
mov dword [eax + ecx*8], 0xffffffff
mov dword [eax + ecx*8 + 4], 0
inc ecx
mov eax, dword [ebx + 0xc]
imul eax, dword [ebx + 0x10]
cmp ecx, eax
jl 0x10373270
mov eax, dword [ebx + 0x38]
imul eax, dword [ebx + 0x28]
push eax
push 0
push dword [ebx + 0x54]
call fcn.10425c00
mov eax, dword [ebx + 0x34]
imul eax, dword [ebx + 0x2c]
push eax
push 0
push dword [ebx + 0x58]
call fcn.10425c00
mov eax, dword [esi]
lea ecx, [ebx + 0xf8]
mov dword [ecx + 0x14], eax
xor edi, edi
mov eax, dword [ebx + 0x28]
add esp, 0x18
mov dword [ecx + 8], eax
mov eax, dword [ebx + 0x2c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 0x70]
mov dword [ecx + 0x18], eax
movzx eax, byte [esi + 0x3c]
inc al
mov dword [ebp - 0x2c], ecx
mov byte [ecx + 0x1c], al
movzx eax, byte [esi + 0x40]
inc al
mov dword [ebp - 0x24], edi
mov byte [ecx + 0x1d], al
movzx eax, byte [esi + 0x90]
mov byte [ecx + 0x1e], al
movzx eax, byte [esi + 0x94]
mov byte [ecx + 0x1f], al
mov eax, dword [ebx + 0xe4]
mov dword [ecx], eax
mov eax, dword [ebx + 0xe8]
mov dword [ecx + 4], eax
lea eax, [ebx + 0x778]
mov dword [ebp - 0x10], eax
lea ecx, [esi + 0x5de]
mov dword [ebp - 8], eax
add ebx, 0x178
lea eax, [esi + 0x558]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], ecx
nop
lea edx, [eax - 0x17f]
mov esi, 8
lea ecx, [ebx + 1]
nop
mov al, byte [edx - 1]
lea edx, [edx + 8]
mov byte [ecx - 1], al
lea ecx, [ecx + 0x20]
mov byte [ecx - 0x20], al
mov byte [ecx - 0x11], al
mov byte [ecx - 0x10], al
mov al, byte [edx - 8]
mov byte [ecx - 0x1f], al
mov byte [ecx - 0x1e], al
mov byte [ecx - 0xf], al
mov byte [ecx - 0xe], al
mov al, byte [edx - 7]
mov byte [ecx - 0x1d], al
mov byte [ecx - 0x1c], al
mov byte [ecx - 0xd], al
mov byte [ecx - 0xc], al
mov al, byte [edx - 6]
mov byte [ecx - 0x1b], al
mov byte [ecx - 0x1a], al
mov byte [ecx - 0xb], al
mov byte [ecx - 0xa], al
mov al, byte [edx - 5]
mov byte [ecx - 0x19], al
mov byte [ecx - 0x18], al
mov byte [ecx - 9], al
mov byte [ecx - 8], al
mov al, byte [edx - 4]
mov byte [ecx - 0x17], al
mov byte [ecx - 0x16], al
mov byte [ecx - 7], al
mov byte [ecx - 6], al
mov al, byte [edx - 3]
mov byte [ecx - 0x15], al
mov byte [ecx - 0x14], al
mov byte [ecx - 5], al
mov byte [ecx - 4], al
mov al, byte [edx - 2]
mov byte [ecx - 0x13], al
mov byte [ecx - 0x12], al
mov byte [ecx - 3], al
mov byte [ecx - 2], al
sub esi, 1
jne 0x10373350
mov eax, dword [ebp - 0x30]
add eax, edi
mov dword [ebp - 0x34], eax
mov al, byte [eax - 6]
mov byte [ebx], al
cmp edi, 2
jae 0x10373468
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 8
nop dword [eax]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], 8
nop word [eax + eax]
mov dl, byte [ebx]
mov esi, eax
mov edi, 4
nop dword [eax]
mov eax, esi
mov ecx, 4
mov byte [eax], dl
lea eax, [eax + 1]
sub ecx, 1
jne 0x10373427
add esi, 0x20
sub edi, 1
jne 0x10373420
mov eax, dword [ebp - 0x14]
inc ebx
add eax, 4
sub dword [ebp - 0x18], 1
mov dword [ebp - 0x14], eax
jne 0x10373410
mov eax, dword [ebp - 0x1c]
sub eax, 0xffffff80
sub dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], eax
jne 0x10373400
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
mov al, byte [eax]
mov byte [ecx], al
mov eax, dword [ebp - 0xc]
inc edi
add dword [ebp - 8], 0x400
add ebx, 0x100
add eax, 0x40
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], eax
cmp edi, 6
jl 0x10373340
mov eax, dword [ebp + 8]
mov ebx, 2
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x2c]
add edx, 0x278
add ecx, 0x38
lea esi, [eax + 0x298]
lea edi, [eax + 0x208]
lea eax, [edi - 0x10]
mov dword [ecx - 0x14], edi
mov dword [ecx - 0x18], eax
lea ecx, [ecx + 0xc]
lea eax, [esi - 0x40]
mov dword [ecx - 8], esi
mov dword [ecx - 0xc], eax
lea eax, [edx - 0x100]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], eax
lea eax, [edi + 0x10]
mov dword [ecx - 0x1c], eax
add edi, 0x30
lea eax, [esi + 0x40]
mov dword [ecx + 0x10], edx
mov dword [ecx - 4], eax
add esi, 0xc0
lea eax, [edx + 0x100]
add edx, 0x300
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x2c], eax
add eax, 0x400
mov dword [ebp - 0x10], eax
sub ebx, 1
jne 0x103734b1
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push dword [ebp - 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc