Function at 0x544b20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x6b97fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
push ebx
push ebp
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.0060fe70
lea ecx, [esp + 0x48]
mov dword [esp + 0x184], 0
call fcn.0060d180
lea ecx, [esp + 0x20]
mov byte [esp + 0x184], 1
call fcn.0062da70
lea ecx, [esp + 0x10]
mov byte [esp + 0x184], 2
call fcn.0060fe70
mov esi, dword [esp + 0x18c]
mov byte [esp + 0x184], 3
mov cl, byte [esi]
cmp cl, 8
jae 0x544e9a
xor edx, edx
mov al, cl
mov dl, byte [ebx + 0x1d]
mov byte [esp + 0x31], cl
add al, 3
and ecx, 0xff
mov byte [esp + 0x32], dl
mov byte [esp + 0x30], al
mov al, byte [ebx + 0x1c]
mov edx, ecx
inc esi
lea edi, [esp + 0x34]
shr ecx, 2
mov byte [esp + 0x33], al
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx ax, byte [esp + 0x30]
lea ecx, [esp + 0x31]
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.006103f0
push 1
lea ecx, [esp + 0x24]
call fcn.0061ff40
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0060fe80
lea ecx, [esp + 0x24]
call fcn.0061fbd0
sub esp, 0x24
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x40], esp
push 0
push ecx
push eax
mov ecx, 0x71b8f8
call fcn.0061a8f0
lea ecx, [esp + 0x6c]
call fcn.0060d330
push ecx
lea ecx, [esp + 0x4c]
mov edx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0060d6b0
lea ecx, [esp + 0x14]
call fcn.006101a0
lea ecx, [esp + 0x10]
call fcn.00610330
test ax, ax
jle 0x544e9a
push 3
lea ecx, [esp + 0x14]
call fcn.00610190
cmp al, 0x10
push 3
lea ecx, [esp + 0x14]
jne 0x544fe1
call fcn.00610190
and al, 0xf
push 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x84], al
call fcn.00610190
movzx bp, byte [esp + 0x80]
mov byte [esp + 0x81], al
push 1
movzx ax, al
shl ebp, 8
lea ecx, [esp + 0x14]
add ebp, eax
call fcn.00610190
push 2
lea ecx, [esp + 0x14]
mov byte [esp + 0x82], al
call fcn.00610190
mov byte [esp + 0x7f], al
xor esi, esi
lea edi, [esp + 0x82]
lea ecx, [esi + 5]
push ecx
lea ecx, [esp + 0x14]
call fcn.00610190
mov byte [edi], al
inc esi
inc edi
cmp si, 6
jl 0x544cce
sub ebp, 6
mov eax, 0x92492493
movsx ecx, bp
imul ecx
add edx, ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 0x18], edx
mov ecx, 7
cdq
idiv ecx
test edx, edx
je 0x544d14
inc dword [esp + 0x18]
mov esi, dword [esp + 0x194]
xor eax, eax
mov al, byte [ebx + 0x1d]
lea edi, [esp + 0x34]
mov cl, byte [esi]
mov byte [esp + 0x32], al
mov dl, cl
mov byte [esp + 0x31], cl
add dl, 3
and ecx, 0xff
mov byte [esp + 0x30], dl
mov dl, byte [ebx + 0x1c]
mov eax, ecx
inc esi
shr ecx, 2
mov byte [esp + 0x33], dl
lea edx, [esp + 0x31]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
movzx cx, byte [esp + 0x30]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.006103f0
lea ecx, [esp + 0x20]
call fcn.0061ff60
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
call fcn.0061ff40
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.0060fe80
lea ecx, [esp + 0x24]
call fcn.0061fbd0
sub esp, 0x24
lea ecx, [esp + 0x44]
mov eax, esp
mov dword [esp + 0x40], esp
push 0
push ecx
push eax
mov ecx, 0x71b8f8
call fcn.0061a8f0
lea ecx, [esp + 0x6c]
call fcn.0060d330
lea ecx, [esp + 0x48]
call fcn.0060d760
test ax, ax
jle 0x544e9a
push 0
lea ecx, [esp + 0x4c]
call fcn.0060d6a0
mov esi, eax
mov ecx, dword [esi + 4]
mov dl, byte [esi]
test ecx, ecx
mov byte [esp + 0x6c], dl
jne 0x544ded
xor eax, eax
jmp 0x544df5
mov eax, dword [esi + 8]
sub eax, ecx
sar eax, 2
test eax, eax
jge 0x544dfb
xor eax, eax
shl eax, 2
push eax
call fcn.00697be2
mov ebx, eax
mov eax, dword [esi + 8]
mov esi, dword [esi + 4]
add esp, 4
mov edi, ebx
cmp esi, eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], edi
je 0x544e4b
mov dword [esp + 0x40], edi
test edi, edi
mov byte [esp + 0x184], 4
je 0x544e3d
push esi
mov ecx, edi
call fcn.0060fe80
mov eax, dword [esp + 0x44]
add esi, 4
add edi, 4
cmp esi, eax
mov dword [esp + 0x1c], edi
jne 0x544e21
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
test ebx, ebx
mov byte [esp + 0x184], 5
jne 0x544e63
xor eax, eax
jmp 0x544e6a
mov eax, edi
sub eax, ebx
sar eax, 2
cmp ax, word [esp + 0x18]
jge 0x544eff
cmp ebx, edi
mov byte [esp + 0x184], 3
mov esi, ebx
je 0x544e91
mov ecx, esi
call fcn.0060ffb0
add esi, 4
cmp esi, edi
jne 0x544e83
push ebx
call fcn.00697880
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x184], 2
call fcn.0060ffb0
lea ecx, [esp + 0x20]
mov byte [esp + 0x184], 1
call fcn.0061f9a0
lea ecx, [esp + 0x48]
mov byte [esp + 0x184], 0
call fcn.0060d280
lea ecx, [esp + 0x14]
mov dword [esp + 0x184], 0xffffffff
call fcn.0060ffb0
xor ax, ax
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x178
ret 0xc
test bp, bp
jle 0x544f76
movsx eax, bp
xor esi, esi
mov dword [esp + 0x18], eax
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [esp + 0x48]
movsx edx, dx
push edx
push 0
call fcn.0060d6a0
mov ecx, eax
call fcn.00413600
push ecx
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.0060fe80
lea ecx, [esp + 0x14]
call fcn.006101a0
mov eax, esi
mov ecx, 7
cdq
idiv ecx
lea ecx, [esp + 0x10]
add edx, 4
push edx
call fcn.00610190
mov byte [esp + esi + 0x88], al
mov eax, dword [esp + 0x18]
inc esi
dec eax
mov dword [esp + 0x18], eax
jne 0x544f0d
add ebp, 0xa
movsx ecx, bp
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and ecx, 0x800000ff
mov byte [esp + 0x7c], al
jns 0x544f9e
dec ecx
or ecx, 0xffffff00
inc ecx
add ebp, 2
lea edx, [esp + 0x7c]
mov byte [esp + 0x7d], cl
mov ecx, dword [esp + 0x190]
push ebp
push edx
call fcn.006103f0
cmp ebx, edi
mov byte [esp + 0x184], 3
mov esi, ebx
je 0x544fd3
mov ecx, esi
call fcn.0060ffb0
add esi, 4
cmp esi, edi
jne 0x544fc5
push ebx
call fcn.00697880
add esp, 4
jmp 0x545091
call fcn.00610190
xor bx, bx
push 3
mov bl, al
lea ecx, [esp + 0x14]
add ebx, 4
mov byte [esp + 0x80], 0
call fcn.00610190
add al, 4
push 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x81], al
call fcn.00610190
push 2
lea ecx, [esp + 0x14]
mov byte [esp + 0x82], al
call fcn.00610190
push 3
lea ecx, [esp + 0x14]
mov byte [esp + 0x83], al
mov byte [esp + 0x84], 0
xor esi, esi
call fcn.00610190
and eax, 0xff
inc eax
test eax, eax
jle 0x54507c
xor edi, edi
lea eax, [esi + 3]
lea ecx, [esp + 0x10]
push eax
call fcn.00610190
inc esi
mov byte [esp + edi + 0x81], al
push 3
lea ecx, [esp + 0x14]
movsx edi, si
call fcn.00610190
and eax, 0xff
inc eax
cmp edi, eax
jl 0x54504f
add ebx, 2
lea ecx, [esp + 0x7c]
push ebx
push ecx
mov ecx, dword [esp + 0x198]
call fcn.006103f0
lea ecx, [esp + 0x10]
mov byte [esp + 0x184], 2
call fcn.0060ffb0
lea ecx, [esp + 0x20]
mov byte [esp + 0x184], 1
call fcn.0061f9a0
lea ecx, [esp + 0x48]
mov byte [esp + 0x184], 0
call fcn.0060d280
lea ecx, [esp + 0x14]
mov dword [esp + 0x184], 0xffffffff
call fcn.0060ffb0
mov ax, 1
jmp 0x544ee4