Function at 0x46f9ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push eax
push ecx
add esp, 4
and eax, 0x1219f
and eax, 0x4ca4
or eax, 0x14209
pop eax
push edx
sub edx, 0x42ee
call 0x46f9ac
add byte [eax + 0x3d], dl
cmp al, 0x48
inc edx
push eax
dec ebp
inc esi
add esp, 4
pop edx
lea edx, [ebp - 0x1628]
mov dword [ebp - 0xc38], edx
mov eax, dword [ebp - 0x4dc]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc34], ecx
xor edx, edx
mov word [ebp - 0x200], dx
xor eax, eax
mov word [ebp - 0x34], ax
push eax
or eax, 0x98a4
jmp 0x46f9e8
jmp 0x46f9ed
pop eax
push ecx
push ecx
add esp, 4
and ecx, 0x7403
add ecx, 0x185ee
sub ecx, 0x10776
add ecx, 0xd3b7
pop ecx
mov ecx, dword [ebp - 0xc34]
mov dx, word [ecx]
mov word [ebp - 0xf86], dx
mov eax, dword [ebp - 0xc34]
add eax, 2
mov dword [ebp - 0xc34], eax
mov cx, word [ebp - 0xf86]
mov word [ebp - 0x200], cx
mov edx, dword [ebp - 0xc38]
mov ax, word [edx]
mov word [ebp - 0xf88], ax
mov ecx, dword [ebp - 0xc38]
add ecx, 2
mov dword [ebp - 0xc38], ecx
mov dx, word [ebp - 0xf88]
mov word [ebp - 0x34], dx
push ebx
or ebx, 0x29
or ebx, 0x9f56
pop ebx
push ebx
push eax
add esp, 4
sub ebx, 0x1b11
sub ebx, 0x8ff8
pop ebx
push ebx
push esi
add esp, 4
and ebx, 0x9cac
and ebx, 0xbb2b
pop ebx
movzx eax, word [ebp - 0x34]
test eax, eax
jne 0x46fab2
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
sub ecx, edx
mov dword [ebp - 0x14fc], ecx
jmp 0x46fb0c
movzx eax, word [ebp - 0x200]
movzx ecx, word [ebp - 0x34]
cmp eax, ecx
je 0x46f9da
movzx edx, word [ebp - 0x200]
xor edx, 0x20
movzx eax, word [ebp - 0x34]
cmp edx, eax
je 0x46f9da
movzx ecx, word [ebp - 0x200]
movzx edx, word [ebp - 0x34]
cmp ecx, edx
jge 0x46faf6
mov dword [ebp - 0x14f8], 0xffffffff
jmp 0x46fb00
mov dword [ebp - 0x14f8], 1
mov eax, dword [ebp - 0x14f8]
mov dword [ebp - 0x14fc], eax
cmp dword [ebp - 0x14fc], 0
jne 0x46fb55
push esi
push eax
add esp, 4
and esi, 0x8039
pop esi
push edx
push edi
add esp, 4
and edx, 0x10afb
pop edx
push ebx
push ebx
add esp, 4
add ebx, 0x5649
sub ebx, 0x11045
pop ebx
push eax
add eax, 0x31cc
pop eax
mov ecx, dword [ebp - 0x4dc]
mov dword [ebp - 0x2e0], ecx
jmp 0x46fbbd
push ebx
push edi
add esp, 4
call 0x46fb6a
add byte [eax], bh
xor esi, dword [0x3943473e]
inc edi
inc edi
inc esi
add esp, 4
pop ebx
push edi
add edi, 0xdf0
call 0x46fb83
add byte [ebx + 0x37], cl
inc ebp
cmp bh, byte [esi]
dec ebx
cmp dword [eax - 0x7d], edx
les eax, [edi + ebx*2]
mov edx, dword [ebp - 0x4dc]
mov eax, dword [edx]
mov dword [ebp - 0x4dc], eax
mov ecx, dword [ebp - 0x4dc]
cmp ecx, dword [ebp - 0xc3c]
je 0x46fbb3
mov edx, dword [ebp - 0x4dc]
cmp dword [edx + 0x30], 0
jne 0x46f97e
mov dword [ebp - 0x2e0], 0
push ebx
push edi
add esp, 4
jmp 0x46fbcb
add ebx, 0xd9d5
call 0x46fbdf
add byte [edx], dh
dec edi
xor edi, dword [edi]
dec ecx
inc ebp
aaa
cmp eax, dword [ebx + 0x505b04c4]
push esi
add esp, 4
and eax, 0x33f6
pop eax
mov eax, dword [ebp - 0x2e0]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x2fc], ecx
push eax
call 0x46fc0c
add byte [eax + 0x4e], cl
cmp byte [ebp + eax*2 + 0x33], cl
dec edx
add esp, 4
sub eax, 0x14a5
pop eax
push ecx
and ecx, 0x1337a
or ecx, 0x16a6c
xor ecx, 0xe4c3
sub ecx, 0x1c09
pop ecx
mov dword [ebp - 0x70c], 0
mov edx, dword [ebp - 0x2fc]
mov dword [ebp - 0x1500], edx
cmp dword [ebp - 0x1500], 0
jne 0x46fc60
mov eax, dword [ebp - 0x70c]
mov dword [ebp - 0x4e0], eax
jmp 0x46ff51
mov ecx, dword [ebp - 0x1500]
mov edx, dword [ebp - 0x2fc]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1504], edx
jne 0x46fc88
mov eax, dword [ebp - 0x70c]
mov dword [ebp - 0x4e0], eax
jmp 0x46ff51
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x1504]
mov ecx, dword [eax + edx + 0x78]
mov dword [ebp - 0x1508], ecx
cmp dword [ebp - 0x1508], 0
jne 0x46fcba
mov edx, dword [ebp - 0x70c]
mov dword [ebp - 0x4e0], edx
jmp 0x46ff51
mov eax, dword [ebp - 0x2fc]
add eax, dword [ebp - 0x1508]
mov dword [ebp - 0x700], eax
jne 0x46fcdf
mov ecx, dword [ebp - 0x70c]
mov dword [ebp - 0x4e0], ecx
jmp 0x46ff51
mov edx, dword [ebp - 0x700]
mov eax, dword [ebp - 0x2fc]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x18c0], eax
mov ecx, dword [ebp - 0x700]
mov edx, dword [ebp - 0x2fc]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x18c4], edx
mov eax, dword [ebp - 0x700]
mov ecx, dword [ebp - 0x2fc]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x18c8], ecx
mov dword [ebp - 0x704], 0
jmp 0x46fd39
mov edx, dword [ebp - 0x704]
add edx, 1
mov dword [ebp - 0x704], edx
mov eax, dword [ebp - 0x700]
mov ecx, dword [ebp - 0x704]
cmp ecx, dword [eax + 0x18]
jae 0x46ff45
mov edx, dword [ebp - 0x704]
mov eax, dword [ebp - 0x18c0]
mov ecx, dword [ebp - 0x2fc]
add ecx, dword [eax + edx*4]
mov dword [ebp - 0x708], ecx
mov edx, dword [ebp - 0x704]
mov eax, dword [ebp - 0x18c4]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x18c8]
mov eax, dword [ebp - 0x2fc]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x18cc], eax
mov dword [ebp - 0x184], 0
jmp 0x46fda9
mov ecx, dword [ebp - 0x184]
add ecx, 1
mov dword [ebp - 0x184], ecx
mov edx, dword [ebp - 0x708]
add edx, dword [ebp - 0x184]
movsx eax, byte [edx]
test eax, eax
je 0x46fe5b
mov ecx, dword [ebp - 0x184]
movsx edx, byte [ebp + ecx - 0x804]
test edx, edx
je 0x46fe5b
push ebx
push edx
add esp, 4
sub ebx, 0x16082
pop ebx
push edi
and edi, 0x35eb
pop edi
push eax
push edx
add esp, 4
xor eax, 0x41cd
or eax, 0x32b2
pop eax
push edi
push ecx
add esp, 4
and edi, 0x1696
pop edi
mov eax, dword [ebp - 0x708]
add eax, dword [ebp - 0x184]
movsx ecx, byte [eax]
mov edx, dword [ebp - 0x184]
movsx eax, byte [ebp + edx - 0x804]
cmp ecx, eax
je 0x46fe4d
mov ecx, dword [ebp - 0x708]
add ecx, dword [ebp - 0x184]
movsx edx, byte [ecx]
xor edx, 0x20
mov eax, dword [ebp - 0x184]
movsx ecx, byte [ebp + eax - 0x804]
cmp edx, ecx
jne 0x46fe54
jmp 0x46fd9a
jmp 0x46fe5b
push ecx
jmp 0x46fe61
xor ecx, 0x3b2b
call 0x46fe73
add byte [edi], bh
xor bh, byte [0x83453737]
les eax, [ecx + eax*4]
loope 0x46fedf
push 0
add byte [ecx + 0x57], bl
or edi, 0x93ed
pop edi
push ecx
add ecx, 0x1406d
pop ecx
mov edx, dword [ebp - 0x708]
add edx, dword [ebp - 0x184]
movsx eax, byte [edx]
mov ecx, dword [ebp - 0x184]
movsx edx, byte [ebp + ecx - 0x804]
cmp eax, edx
jne 0x46feba
mov dword [ebp - 0xc40], 0
jmp 0x46ff29
push ebx
xor ebx, 0x13de2
add ebx, 0x10742
xor ebx, 0x2ad6
pop ebx
push edx
xor edx, 0x524c
pop edx
push ebx
or ebx, 0x147b8
pop ebx
push edi
or edi, 0x13a56
add edi, 0xff53
pop edi
mov eax, dword [ebp - 0x708]
add eax, dword [ebp - 0x184]
movsx ecx, byte [eax]
or ecx, 0x20
mov edx, dword [ebp - 0x184]
movsx eax, byte [ebp + edx - 0x804]
or eax, 0x20
cmp ecx, eax
jge 0x46ff1f
mov dword [ebp - 0xc40], 0xffffffff
jmp 0x46ff29
mov dword [ebp - 0xc40], 1
cmp dword [ebp - 0xc40], 0
jne 0x46ff40
mov ecx, dword [ebp - 0x18cc]
mov dword [ebp - 0x4e0], ecx
jmp 0x46ff51
jmp 0x46fd2a
mov edx, dword [ebp - 0x70c]
mov dword [ebp - 0x4e0], edx
mov eax, dword [ebp - 0x4e0]
mov dword [ebp - 0x738], eax
push esi
push ebx
add esp, 4
add esi, 0x741e
pop esi
push esi
xor esi, 0x12009
sub esi, 0xc17f
sub esi, 0xf626
sub esi, 0x2173
pop esi
push edx
push edi
add esp, 4
xor edx, 0x310b
pop edx
mov ecx, dword [ebp - 0x3cc]
add ecx, 0xe
mov dword [ebp - 0x1918], ecx
push eax
or eax, 0x14740
sub eax, 0x8764
pop eax
push ecx
push ecx
add esp, 4
sub ecx, 0x56a1
and ecx, 0x15eec
xor ecx, 0x15c5
pop ecx
push ecx
push edi
add esp, 4
xor ecx, 0xdc80
pop ecx
cmp dword [ebp - 0x3cc], 0
je 0x46ffe2
cmp dword [ebp - 0xa5c], 0
jne 0x470028
push ebx
push eax
add esp, 4
or ebx, 0xfc4c
add ebx, 0x165d4
call 0x470002
add byte [edi], bh
cmp dword [esi + eax*2 + 0x3b], eax
inc esi
inc ebp
dec eax
push eax
add esp, 4
add ebx, 0x207c
pop ebx
push edi
xor edi, 0x5d84
pop edi
mov edx, dword [ebp - 0x738]
mov dword [ebp - 0x18d0], edx
push 0
call dword [ebp - 0x18d0]
mov dword [ebp - 0x1fb0], 0xa
push ebx
xor ebx, 0x132ff
or ebx, 0xee49
pop ebx
push ecx
push esi
add esp, 4
call 0x470052
add byte [eax + 0x43], cl
dec eax
dec eax
dec esi
aaa
xor al, 0x83
les eax, [ecx + eax*4]
int1
insd dword es:[edi], dx
daa
add dword [eax], eax
pop ecx
push esi
and esi, 0x15215
pop esi
mov eax, dword [ebp - 0x3cc]
mov cl, byte [eax + 0xa]
mov byte [ebp - 0x381], cl
mov edx, dword [ebp - 0xa5c]
sub edx, dword [ebp - 0x3cc]
mov dword [ebp - 0x158c], edx
mov dword [ebp - 0xc70], 0
push eax
push eax
add esp, 4
or eax, 0xc578
xor eax, 0x182cf
add eax, 0x18160
pop eax
push eax
add eax, 0x114da
pop eax
push edi
push edi
add esp, 4
add edi, 0xd628
or edi, 0x6447
pop edi
mov byte [ebp - 0x960], 0x56
mov byte [ebp - 0x95f], 0x69
mov byte [ebp - 0x95e], 0x72
mov byte [ebp - 0x95d], 0x74
mov byte [ebp - 0x95c], 0x75
mov byte [ebp - 0x95b], 0x61
mov byte [ebp - 0x95a], 0x6c
mov byte [ebp - 0x959], 0x50
mov byte [ebp - 0x958], 0x72
mov byte [ebp - 0x957], 0x6f
mov byte [ebp - 0x956], 0x74
mov byte [ebp - 0x955], 0x65
mov byte [ebp - 0x954], 0x63
mov byte [ebp - 0x953], 0x74
mov byte [ebp - 0x952], 0
push ecx
push ebx
add esp, 4
xor ecx, 0x1833a
xor ecx, 0x154eb
sub ecx, 0x3c54
pop ecx
push ebx
add ebx, 0xb016
sub ebx, 0x780d
add ebx, 0x16517
sub ebx, 0x6195
pop ebx
mov eax, dword fs:[0x18]
mov dword [ebp - 0x1c34], eax
mov ecx, dword [ebp - 0x1c34]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0x18d4], edx
mov eax, dword [ebp - 0x18d4]
mov dword [ebp - 0x150c], eax
push ebx
push esi
add esp, 4
and ebx, 0x471c
pop ebx
push esi
add esi, 0x13c3e
pop esi
push edx
push edi
add esp, 4
or edx, 0x16677
xor edx, 0x25b0
pop edx
push ecx
push ebx
add esp, 4
and ecx, 0x1127d
pop ecx
cmp dword [ebp - 0x150c], 0
jne 0x4701cd
mov dword [ebp - 0x2a8], 0
jmp 0x470474
mov ecx, dword [ebp - 0x150c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0xc4c], eax
push edx
xor edx, 0x10262
or edx, 0x15955
and edx, 0xe382
pop edx
push esi
push edx
add esp, 4
and esi, 0x6c01
jmp 0x470204
pop esi
push edx
push ecx
add esp, 4
and edx, 0xbc0c
push edx
xor edx, 0x47da
pop edx
push edi
and edi, 0xb94f
sub edi, 0xedf3
and edi, 0x2eff
pop edi
push eax
and eax, 0x1316
xor eax, 0x16665
jmp 0x4704a5
pop eax
cmp dword [ebp - 0x2a8], 0
jne 0x470dab
mov eax, 0x6b
mov word [ebp - 0x16e8], ax
mov ecx, 0x65
mov word [ebp - 0x16e6], cx
mov edx, 0x72
mov word [ebp - 0x16e4], dx
mov eax, 0x6e
mov word [ebp - 0x16e2], ax
mov ecx, 0x65
mov word [ebp - 0x16e0], cx
mov edx, 0x6c
mov word [ebp - 0x16de], dx
mov eax, 0x33
mov word [ebp - 0x16dc], ax
mov ecx, 0x32
mov word [ebp - 0x16da], cx
mov edx, 0x2e
mov word [ebp - 0x16d8], dx
mov eax, 0x64
mov word [ebp - 0x16d6], ax
mov ecx, 0x6c
mov word [ebp - 0x16d4], cx
mov edx, 0x6c
mov word [ebp - 0x16d2], dx
xor eax, eax
mov word [ebp - 0x16d0], ax
push edx
xor edx, 0xc6ce
add edx, 0x85f1
call 0x470566
add byte [ebp + 0x38], cl
dec ebx
inc esp
inc ebx
xor dh, byte [edi]
add esp, 4
sub edx, 0x9e19
pop edx
push ebx
add ebx, 0x106d1
or ebx, 0x114db
pop ebx
mov byte [ebp - 0x830], 0x4c
mov byte [ebp - 0x82f], 0x6f
mov byte [ebp - 0x82e], 0x61
mov byte [ebp - 0x82d], 0x64
mov byte [ebp - 0x82c], 0x4c
mov byte [ebp - 0x82b], 0x69
mov byte [ebp - 0x82a], 0x62
mov byte [ebp - 0x829], 0x72
mov byte [ebp - 0x828], 0x61
mov byte [ebp - 0x827], 0x72
mov byte [ebp - 0x826], 0x79
mov byte [ebp - 0x825], 0x57
mov byte [ebp - 0x824], 0
mov ecx, dword fs:[0x18]
mov dword [ebp - 0x18d8], ecx
mov edx, dword [ebp - 0x18d8]
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x18dc], eax
mov ecx, dword [ebp - 0x18dc]
mov dword [ebp - 0x1518], ecx
push ecx
add ecx, 0x11c9f
or ecx, 0x7cf9
add ecx, 0x14f15
sub ecx, 0x71c5
pop ecx
push eax
push edx
add esp, 4
call 0x47062f
add byte [edx], dh
inc ebx
dec esp
xor eax, 0x4741374f
inc ebp
add esp, 4
pop eax
cmp dword [ebp - 0x1518], 0
jne 0x47064b
mov dword [ebp - 0x710], 0
jmp 0x4708f2
mov edx, dword [ebp - 0x1518]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc58], ecx
push esi
push ecx
add esp, 4
and esi, 0x1df0
and esi, 0x142de
sub esi, 0x1d64
pop esi
push ecx
or ecx, 0x891
xor ecx, 0xf80f
sub ecx, 0xf770
add ecx, 0xc7d2
pop ecx
cmp dword [ebp - 0xc58], 0
jne 0x4706a7
mov dword [ebp - 0x710], 0
jmp 0x4708f2
mov edx, dword [ebp - 0xc58]
mov dword [ebp - 0x4e8], edx
push edx
push eax
add esp, 4
jmp 0x4706be
and edx, 0xd54e
and edx, 0x123a7
sub edx, 0xc1cc
pop edx
push ebx
or ebx, 0xabad
jmp 0x4706df
jmp 0x4706e4
pop ebx
lea eax, [ebp - 0x16e8]
mov dword [ebp - 0xc54], eax
mov ecx, dword [ebp - 0x4e8]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xc50], edx
xor eax, eax
mov word [ebp - 0x208], ax
xor ecx, ecx
mov word [ebp - 0x3c], cx
push ecx
call fcn.00470720
add byte [esi], bh
xor ecx, dword [ebx + 0x48]
push eax
aas
inc ebp
cmp dword [ebx], edi
dec ecx
push esi
push eax
add esp, 4
and esi, 0xd4ea
pop esi
push ebx
push edi
add esp, 4
and ebx, 0xe321
and ebx, 0xa9e3
pop ebx