Function at 0x46b8a8
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040555c
mov eax, dword [ebp - 8]
call fcn.0040555c
xor eax, eax
push ebp
push 0x46bc78
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
test eax, eax
je 0x46b900
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46b900
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
test eax, eax
je 0x46b909
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x46bc4a
mov eax, dword [ebp - 4]
test eax, eax
je 0x46b92e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46b92e
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00404f08
test eax, eax
je 0x46b937
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x46bc4a
mov eax, dword [ebp - 8]
test eax, eax
je 0x46b95c
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46b95c
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
test eax, eax
je 0x46b965
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x100
jle 0x46b9a3
push pe_nt_image_headers32
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x46b878]
call fcn.00406af4
add esp, 4
lea eax, [ebp - 8]
call fcn.00405f0c
mov edx, eax
mov eax, dword [ebp - 0xc]
mov ecx, pe_nt_image_headers32
call fcn.0046b8a0
jmp 0x46ba2c
mov eax, dword [ebp - 8]
test eax, eax
je 0x46b9c0
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46b9c0
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
mov ebx, eax
test ebx, ebx
je 0x46b9cb
sub ebx, 4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x46b878]
call fcn.00406af4
add esp, 4
lea eax, [ebp - 8]
call fcn.00405f0c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x46ba0a
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46ba0a
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46ba1e
mov eax, dword [ebp - 0x1c]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
call fcn.0046b8a0
xor edi, edi
lea ebx, [ebp - 0x420]
mov dword [ebx], edi
inc edi
add ebx, 4
cmp edi, 0x100
jne 0x46ba34
xor esi, esi
xor edi, edi
lea ebx, [ebp - 0x420]
mov eax, dword [ebp - 8]
test eax, eax
je 0x46ba69
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46ba69
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.00404f08
mov ecx, eax
test ecx, ecx
je 0x46ba74
sub ecx, 4
mov ecx, dword [ecx]
mov eax, edi
cdq
idiv ecx
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edx]
add esi, dword [ebx]
add eax, esi
and eax, 0x800000ff
jns 0x46ba92
dec eax
or eax, 0xffffff00
inc eax
mov esi, eax
movzx eax, byte [ebx]
mov edx, dword [ebp + esi*4 - 0x420]
mov dword [ebx], edx
movzx eax, al
mov dword [ebp + esi*4 - 0x420], eax
inc edi
add ebx, 4
cmp edi, 0x100
jne 0x46ba4c
xor esi, esi
xor ebx, ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x46bad7
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46bad7
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00404f08
mov edi, eax
test edi, edi
je 0x46bae2
sub edi, 4
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x46b878]
call fcn.00406af4
add esp, 4
lea eax, [ebp - 4]
call fcn.00405f0c
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x46bb20
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46bb20
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00404f08
test eax, eax
je 0x46bb29
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, eax
mov eax, edi
xchg edx, eax
call fcn.0046b8a0
mov eax, dword [ebp - 4]
test eax, eax
je 0x46bb53
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46bb53
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00404f08
test eax, eax
je 0x46bb5c
sub eax, 4
mov eax, dword [eax]
dec eax
test eax, eax
jl 0x46bbdf
inc eax
mov dword [ebp - 0x18], eax
xor edi, edi
inc esi
and esi, 0x800000ff
jns 0x46bb78
dec esi
or esi, 0xffffff00
inc esi
add ebx, dword [ebp + esi*4 - 0x420]
and ebx, 0x800000ff
jns 0x46bb8f
dec ebx
or ebx, 0xffffff00
inc ebx
movzx eax, byte [ebp + esi*4 - 0x420]
mov edx, dword [ebp + ebx*4 - 0x420]
mov dword [ebp + esi*4 - 0x420], edx
movzx eax, al
mov dword [ebp + ebx*4 - 0x420], eax
mov eax, dword [ebp + esi*4 - 0x420]
add eax, dword [ebp + ebx*4 - 0x420]
and eax, 0x800000ff
jns 0x46bbcb
dec eax
or eax, 0xffffff00
inc eax
movzx eax, byte [ebp + eax*4 - 0x420]
mov edx, dword [ebp - 0x10]
xor byte [edx + edi], al
inc edi
dec dword [ebp - 0x18]
jne 0x46bb67
mov eax, dword [ebp - 4]
test eax, eax
je 0x46bbfc
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46bbfc
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00404f08
test eax, eax
je 0x46bc05
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
xchg edx, eax
call fcn.004058a8
mov eax, dword [ebp - 0x14]
call fcn.00405f0c
mov ebx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x46bc35
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x46bc35
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00404f08
test eax, eax
je 0x46bc3e
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov ecx, eax
mov eax, ebx
call fcn.0046b8a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bc7f
lea eax, [ebp - 0x10]
mov edx, dword [0x46b878]
mov ecx, 2
call fcn.0040613c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040556c
ret