Function at 0x177bcac
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
jb 0x1330e18
rol eax, 0x2d
add edi, ecx
mov eax, ebp
jmp 0x1371440
mov dword [ecx + ebp - 3], eax
pop ecx
pop edx
jge fcn.0123d44a
inc ecx
ror ebx, 0xd6
inc ecx
neg ebp
xor bx, si
push edi
inc esp
xor dword [esp + edx - 0xf36c000], ebp
dec edx
lea esi, [edx*8 + 0x5dac5e0d]
pop edi
shl bl, 0xa4
dec ebp
arpl bp, bp
inc ecx
push ebx
neg dword [esp + edx - 0xf36bfff]
jle 0x1327c26
lea ecx, [edx + 0x43c2a10]
inc ecx
mov edx, dword [esi]
mov eax, ecx
xor edx, ebx
and ecx, ecx
sbb edx, 0x469346ad
push eax
rol edx, 3
neg dword [esp]
jne 0x135df1a
sbb cl, 0xa2
shr eax, 0x28
xadd dl, ah
xor bl, cl
shl edx, 3
and dl, 0x9a
adc ecx, esp
shr dl, 0x23
neg ax
cmovs edx, eax
mov eax, dword [ecx + eax*4 - 0x3854000]
call fcn.013631b6
dec eax
shl dword [esp], 0x76
mov ecx, dword [esp]
call fcn.0125a467
ror dword [esi + 0x25], 0xc3
xor ebx, esp
add eax, ecx
push ss
pop esp
or al, 0xdf
or byte [edx - 0xa7ebeec], bh
inc ecx
xor ebp, 0xd39e41ae
movzx ebx, ax
pop ebx
inc edi
lea ebp, [ebp + ecx*4 - 0x53e5523]
inc esp
movsx eax, cx
dec eax
lea ebp, [eax + eax*8 - 0x3fc0daf1]
dec edx
mov dword [esp + ecx - 0x33], edi
dec edx
mov dword [esp + ecx*4 - 0xec], esi
rol al, 0xe4
inc esi
xor dword [esp + ecx - 0x33], ebp
movzx ebx, bp
inc eax
add cl, ch
dec edx
mov edi, dword [esp + ecx - 0x33]
call fcn.01274e17
dec ebp
add edi, ebp
dec eax
lea ecx, [eax*2 + 0x5aa55d94]
rol byte [esp + edx - 0xf36bffb], 0xc6
inc esp
xchg dword [esp + edx - 0xf36bfff], ebx
dec esp
mov dword [esp + eax - 0x6d948c5f], edi
ret
rol edx, 0x55
not ecx
push eax
dec byte [esp + eax*2 + 1]
sub eax, dword [esp + eax*8 - 0xc]
xor ebx, ecx
push edx
sar dx, 0x8e
sar al, 0xa5
adc edi, ecx
mov dword [esp + eax - 0x5c26300], edi
ret 8
inc ecx
xor ebp, 0xe881e607
inc esp
mov eax, esi
inc ecx
inc ebp
inc ebp
or ebx, ebx
inc cx
shl ebx, 0xab
inc ecx
bswap ebp
dec eax
lea ebx, [edx*8 - 0x34e01371]
ror eax, 0x8a
dec eax
inc eax
inc ecx
ror ebp, 2
jmp 0x1234c86
mov esi, 0xb3292791
movzx esi, byte [edx]
inc ecx
xor esi, eax
call 0x177bcac
inc bx
movzx esi, byte [eax + ebx - 0x6eba8300]
dec ecx
bswap ebp
dec ebp
lea esi, [esi + ecx*2 - 4]
inc dx
mov dword [ecx + esi - 5], esi
sal byte [esp + ecx*2 - 7], 6
dec esi
mov dword [esp + eax - 0x6eba8300], edi
ret 8
ror ecx, 1
sar ax, 0x4b
lea ecx, [ecx + edx*2 - 0x6a416af6]
jns 0x122a71e
inc ecx
not edx
sbb dword [esp], eax
jge 0x13b47be
movzx ecx, dl
lea ebp, [ebp + ecx*4 - 0x10]
shl dl, 0x23
or dl, cl
jge 0x12343c6
ror byte [esi + 0x23], cl
jmp 0x137148b
dec esi
inc ecx
xor edx, 0xd6987832
inc ecx
rol edx, 3
xor word [esp + ebp - 0x11bd], 0x4f9e
inc esp
sbb ch, ch
inc ecx
xor edx, 0x560ee59d
call fcn.0121f717
inc esp
xor eax, esi
dec eax
inc edx
rol byte [esp + 7], 6
inc ecx
xor eax, 0xa334f1b9
dec ecx
dec edx
dec eax
lea esp, [esp + 8]
jne 0x134c198
inc ecx
not eax
mov esi, 0x523179b6
movzx edx, si
inc esi
mov dword [esi + esi - 0x523179b6], eax
inc ebp
mov ebp, dword [esp + edx*2 - 0xf36c]
inc esp
movsx ebx, si
jmp 0x1797974
neg ax
xor ebx, edx
call fcn.01265498
inc edx
dec dword [esp]
add ax, ax
neg edx
inc edx
rol eax, 0x70
jb 0x13ab32a
dec ebp
lea esi, [esi + ebp - 0x37b7eea6]
inc edi
mov eax, dword [esp + ebp - 0xbe]
dec ecx
lea edx, [ebp + ebx*2 - 0xd7a14e3]
shr ebx, 0xe1
sar byte [esp + ebp - 0x37b7eea9], 1
dec esi
lea esp, [ebx - 0x1bdbf751]
call fcn.01289045
call fcn.01236aa3
dec esp
lea edx, [esi + 0x1e116aa2]
inc esp
xor ebp, edi
mov eax, esi
dec esp
lea ecx, [esi + 0x37b01283]
inc ecx
inc ebp
inc cx
inc ecx
jno 0x1339ea3
mov dword [esp + 4], 0x7eba4ea2
adc ebp, 4
shld dx, ax, cl
mov eax, 0x248f58ad
mov ecx, 0xfa3d9e82
pop eax
mov word [ebp], dx
pop edx
mov dword [esp + edx - 0x7eba4ea2], ecx
lea esi, [esi + edx - 0x7eba4ea6]
xor ecx, dword [esp + edx - 0x7eba4ea2]
ror dl, 0x45
jae 0x17812cc
and esi, 0xff
inc ecx
mov esi, dword [ebp + esi*4]
dec eax
mov dword [esp], 0x6635c899
inc ecx
shr eax, 8
dec eax
ror dword [esp], 0x99
jae 0x13a57ed
sub esi, 4
mov eax, dword [esi]
shr dword [esp], 0x95
xor eax, ebx
rol word [esp], 0xe1
jno 0x12869bc
or ecx, dword [esi + ecx]
xor ecx, ebx
not ecx
movzx eax, dx
rol ecx, 1
xadd dl, ah
setns byte [esp + eax*8 - 0xa8a8]
setp dl
xor ecx, 0x5e3dd8aa
dec ecx
jmp 0x135dd72
dec eax
sal edx, 0xcd
dec ebp
lea esp, [esp + edx - 0xf36bffc]
inc esp
movzx ecx, dx
jp 0x1767317
invalid