Function at 0x46eb60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x78]
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov eax, 1
lea edx, [ebp - 0x50]
lea ecx, [ebp - 0x38]
call fcn.0040e950
call fcn.00410630
push eax
test eax, eax
jne 0x46ee50
mov eax, 0x78e008
mov ecx, 0
mov edx, 1
call fcn.004605b0
mov edx, dword [ebp - 4]
mov dword [edx - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x1c]
lea ebx, [eax - 1]
mov dword [ebp - 0xc], 0
cmp ebx, dword [ebp - 0xc]
jl 0x46ec2f
sub dword [ebp - 0xc], 1
lea esi, [esi]
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax - 8]
mov eax, dword [eax + 0x20]
lea esi, [eax - 1]
mov dword [ebp - 8], 0
cmp esi, dword [ebp - 8]
jl 0x46ec2a
sub dword [ebp - 8], 1
add dword [ebp - 8], 1
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0046eec0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx - 0x10]
mov ecx, dword [ecx]
call dword [ecx + pe_nt_image_headers32]
cmp esi, dword [ebp - 8]
jg 0x46ebf8
cmp ebx, dword [ebp - 0xc]
jg 0x46ebd8
mov eax, dword [ebp - 4]
mov dword [eax - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00460960
mov dword [ebp - 0x14], eax
jmp 0x46ec6a
mov ecx, dword [ebp - 0x14]
mov eax, 0xd20d20d3
imul ecx
add edx, ecx
sar edx, 6
shr ecx, 0x1f
add edx, ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
add dword [eax - 0x1c], 1
cmp dword [ebp - 0x14], 0
jg 0x46ec4c
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00460960
shl eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
sub eax, 0x14
mov edx, dword [ebp - 0x10]
call fcn.00410710
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp - 0x10]
mov cl, 0
call fcn.00403ae0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00460960
lea ebx, [eax - 1]
mov dword [ebp - 0x14], 0
cmp ebx, dword [ebp - 0x14]
jl 0x46ed5d
sub dword [ebp - 0x14], 1
lea esi, [esi]
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x14]
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx*4]
mov edx, dword [ebp - 4]
mov edx, dword [edx - 0x1c]
mov cx, 0
call fcn.0040a250
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x1c]
mov dword [ebp - 0x20], eax
cmp eax, 1
jl 0x46ed54
add dword [ebp - 0x20], 1
nop
sub dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x18]
cdq
mov ecx, 0x4e
idiv ecx
lea eax, [edx + 1]
and eax, 0xff
mov al, byte [eax + str.N.__abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789__:______]
mov byte [ebp - 0x1c], al
mov eax, dword [ebp - 4]
mov edx, dword [eax - 0x14]
mov eax, dword [ebp - 0x14]
lea eax, [edx + eax*4]
call fcn.004041d0
mov ecx, dword [ebp - 0x20]
mov dl, byte [ebp - 0x1c]
mov byte [eax + ecx - 1], dl
mov ecx, dword [ebp - 0x18]
mov eax, 0xd20d20d3
imul ecx
add edx, ecx
sar edx, 6
shr ecx, 0x1f
add edx, ecx
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x20], 1
jg 0x46ecfc
cmp ebx, dword [ebp - 0x14]
jg 0x46ecc4
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00460960
shl eax, 2
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
sub eax, 0x18
mov edx, dword [ebp - 0x24]
call fcn.00410710
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x18]
mov edx, dword [ebp - 0x24]
mov cl, 0
call fcn.00403ae0
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
call fcn.00460960
sub eax, 1
mov ebx, eax
mov dword [ebp - 0x14], 0
cmp ebx, dword [ebp - 0x14]
jl 0x46ee50
sub dword [ebp - 0x14], 1
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x10]
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
call fcn.00460930
cmp word [ebp - 0x26], 0
jne 0x46ede5
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x18]
mov edx, dword [ebp - 0x14]
lea eax, [eax + edx*4]
mov edx, 0x78f1a0
call fcn.00409430
jmp 0x46ee47
push 0
mov eax, 0x78f1b4
mov dword [ebp - 0x6c], eax
mov dx, word [ebp - 0x2c]
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 4]
call fcn.0046ee80
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x68], eax
mov dx, word [ebp - 0x2a]
lea ecx, [ebp - 0x74]
mov eax, dword [ebp - 4]
call fcn.0046ee80
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x64], eax
mov dx, word [ebp - 0x28]
lea ecx, [ebp - 0x78]
mov eax, dword [ebp - 4]
call fcn.0046ee80
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], eax
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
mov eax, dword [eax - 0x18]
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx*4]
mov ecx, 3
call fcn.004097a0
cmp ebx, dword [ebp - 0x14]
jg 0x46edb0
call fcn.0040ebd0
lea eax, [ebp - 0x78]
call fcn.00404190
lea eax, [ebp - 0x74]
call fcn.00404190
lea eax, [ebp - 0x70]
call fcn.00404190
pop eax
test eax, eax
je 0x46ee77
call fcn.0040ed00
pop esi
pop ebx
leave
ret