Function at 0x541cd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x5dedd7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x170
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
lea ecx, [esp + 0x44]
call fcn.00558090
push 6
push 0x60f890
lea ecx, [esp + 0x64]
mov dword [esp + 0x190], ebp
call fcn.00558100
push 6
push 0x60f888
lea ecx, [esp + 0x74]
mov byte [esp + 0x190], 1
call fcn.00558100
push 6
push 0x60f880
lea ecx, [esp + 0x58]
mov byte [esp + 0x190], 2
call fcn.00558100
push 6
push 0x60f9c4
lea ecx, [esp + 0x54]
mov byte [esp + 0x190], 3
call fcn.00558100
lea eax, [esp + 0x5c]
mov byte [esp + 0x188], 4
push eax
call fcn.0053e3a0
lea ecx, [esp + 0x70]
push ecx
call fcn.0053e3a0
lea edx, [esp + 0x58]
push edx
call fcn.0053e3a0
lea eax, [esp + 0x58]
push eax
call fcn.0053e3a0
add esp, 0xc
mov ecx, esp
mov dword [esp + 0x30], esp
push ebp
call fcn.00558090
lea ecx, [esp + 0x44]
lea edx, [esp + 0x60]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x198], 5
call fcn.00558070
mov byte [esp + 0x194], 4
call fcn.005427b0
add esp, 8
mov ecx, esp
mov dword [esp + 0x30], esp
push ebp
call fcn.00558090
lea eax, [esp + 0x44]
lea edx, [esp + 0x70]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x198], 6
call fcn.00558070
mov byte [esp + 0x194], 4
call fcn.005427b0
add esp, 8
mov ecx, esp
mov dword [esp + 0x30], esp
push ebp
call fcn.00558090
lea eax, [esp + 0x44]
lea edx, [esp + 0x54]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x198], 7
call fcn.00558070
mov byte [esp + 0x194], 4
call fcn.005427b0
add esp, 8
mov ecx, esp
mov dword [esp + 0x30], esp
push ebp
call fcn.00558090
lea eax, [esp + 0x44]
lea edx, [esp + 0x50]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x198], 8
call fcn.00558070
mov byte [esp + 0x194], 4
call fcn.005427b0
add esp, 0xc
lea ecx, [esp + 0x70]
push 6
push 0x60f9bc
call fcn.00558100
mov al, byte [esp + 0x13]
mov dword [esp + 0x34], ebp
mov byte [esp + 0x30], al
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
push 6
push 0x60f9b4
lea ecx, [esp + 0x70]
mov byte [esp + 0x190], 0xa
call fcn.00558100
xor bl, bl
mov byte [esp + 0x188], 0xb
mov byte [esp + 0x14], bl
mov ecx, dword [esp + 0x14]
push ecx
push 5
lea ecx, [esp + 0x70]
call fcn.005584a0
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x68]
push edx
push 1
push eax
lea ecx, [esp + 0x3c]
call fcn.00402a90
inc bl
cmp bl, 1
mov byte [esp + 0x14], bl
jbe 0x541ebf
lea ecx, [esp + 0x74]
call fcn.00544b40
push ecx
lea edx, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0x190], 0xc
call fcn.00558070
mov ecx, dword [0x619a6c]
call fcn.00544c70
mov byte [esp + 0x60], 0
mov ecx, dword [esp + 0x34]
cmp ecx, ebp
jne 0x541f2d
xor eax, eax
jmp 0x541f36
mov eax, dword [esp + 0x38]
sub eax, ecx
sar eax, 2
mov ecx, dword [esp + 0x60]
and ecx, 0xff
cmp ecx, eax
jae 0x541f6c
push ecx
lea ecx, [esp + 0x34]
call fcn.00402a80
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push eax
call fcn.00558070
mov ecx, dword [0x619a6c]
call fcn.00544db0
inc byte [esp + 0x60]
jmp 0x541f21
mov ecx, dword [0x619a6c]
lea eax, [esp + 0x74]
push eax
call fcn.00545270
test al, al
je 0x54240f
push ebp
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 6
push 0x609448
call fcn.00558100
push ecx
mov byte [esp + 0x198], 0xd
mov ecx, esp
mov dword [esp + 0x38], esp
push 6
push 0x60e420
call fcn.00558100
mov ecx, 0x619a58
mov byte [esp + 0x198], 0xc
call fcn.00543af0
mov cl, byte [esp + 0x13]
xor bl, bl
xor edi, edi
mov byte [esp + 0x2c], bl
mov byte [esp + 0x18], cl
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov byte [esp + 0x188], 0xe
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
cmp esi, ebp
jne 0x541ffa
xor eax, eax
jmp 0x542001
mov eax, edx
sub eax, esi
sar eax, 2
mov ebp, dword [esp + 0x2c]
and ebp, 0xff
cmp ebp, eax
jae 0x542048
xor dx, dx
lea ecx, [esp + 0x74]
mov dl, bl
push edx
call fcn.00545400
test al, al
je 0x54203a
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
lea ecx, [eax + ebp*4]
push ecx
push 1
push edx
lea ecx, [esp + 0x24]
call fcn.00402a90
mov edi, dword [esp + 0x1c]
inc bl
mov byte [esp + 0x2c], bl
xor ebp, ebp
jmp 0x541fea
xor ebx, ebx
cmp edi, ebx
je 0x54205f
mov eax, dword [esp + 0x20]
sub eax, edi
test eax, 0xfffffffc
jne 0x542185
cmp esi, ebx
jne 0x542067
xor ecx, ecx
jmp 0x54206e
mov ecx, edx
sub ecx, esi
sar ecx, 2
cmp edi, ebx
jne 0x542076
xor eax, eax
jmp 0x54207f
mov eax, dword [esp + 0x20]
sub eax, edi
sar eax, 2
cmp ecx, eax
ja 0x5420d9
cmp esi, edx
mov ebp, edx
je 0x5420a7
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push esi
call fcn.00558070
mov ecx, edi
call fcn.00558390
add esi, 4
add edi, 4
cmp esi, ebp
jne 0x542089
mov ebp, dword [esp + 0x20]
mov esi, edi
cmp edi, ebp
je 0x5420c0
push ebx
mov ecx, esi
call fcn.00406c10
add esi, 4
cmp esi, ebp
jne 0x5420b1
lea ecx, [esp + 0x30]
call fcn.0056e680
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + eax*4]
mov dword [esp + 0x20], edx
jmp 0x542185
lea ecx, [esp + 0x18]
call fcn.00412570
lea ecx, [esp + 0x30]
mov esi, eax
call fcn.0056e680
cmp eax, esi
ja 0x54212a
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x18]
call fcn.0056e680
mov ecx, dword [esp + 0x34]
lea esi, [esi + eax*4]
mov eax, dword [esp + 0x1c]
push eax
push esi
push ecx
call fcn.00412590
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
add esp, 0xc
lea ecx, [esp + 0x18]
push edx
push eax
push esi
call fcn.00402d20
jmp 0x5420c0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00402cf0
mov edx, dword [esp + 0x1c]
push edx
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x30]
call fcn.0056e680
cmp eax, ebx
jge 0x542159
xor eax, eax
shl eax, 2
push eax
call fcn.005bcf2f
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
add esp, 4
mov dword [esp + 0x1c], eax
push eax
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00402d20
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [0x609450]
mov ecx, 0x3e
mov dword [esp + 0x80], eax
xor eax, eax
lea edi, [esp + 0x84]
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x4c]
stosb byte es:[edi], al
call fcn.00558090
mov byte [esp + 0x188], 0xf
push ebx
lea edx, [esp + 0x17]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
push 0x619c18
call fcn.00404ee0
sub esp, 0x10
lea eax, [esp + 0x8b]
mov ecx, esp
mov dword [esp + 0x68], esp
push eax
push 0x619c18
mov byte [esp + 0x1b4], 0x10
call fcn.00404ee0
mov ecx, dword [0x619a60]
mov byte [esp + 0x1ac], 0xf
call fcn.005455c0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push ebx
call fcn.00558090
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x50]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push edx
mov byte [esp + 0x198], 0x11
call fcn.00558070
mov byte [esp + 0x194], 0xf
call fcn.005427b0
mov al, byte [0x619c14]
add esp, 0xc
test al, al
je 0x5422a5
lea ecx, [esp + 0x54]
call fcn.00558060
mov byte [esp + 0x188], 0x12
mov esi, 0xff
call fcn.005bd3bd
cdq
mov ecx, 0xff
idiv ecx
lea ecx, [esp + 0x54]
inc edx
push edx
call fcn.00558500
dec esi
jne 0x54225f
push ecx
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00558070
lea ecx, [esp + 0x4c]
call fcn.00558390
lea ecx, [esp + 0x54]
mov byte [esp + 0x188], 0xf
call fcn.005581a0
mov byte [esp + 0x14], 0
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
jne 0x5422b6
xor eax, eax
jmp 0x5422bf
mov eax, dword [esp + 0x20]
sub eax, ecx
sar eax, 2
mov ebp, dword [esp + 0x14]
and ebp, 0xff
cmp ebp, eax
jae 0x542393
mov edi, 0x609450
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x48]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x80]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00558070
push 5
push ebp
lea ecx, [esp + 0x28]
mov byte [esp + 0x198], 0xf
call fcn.00402a80
mov ecx, eax
call fcn.00558380
push eax
call fcn.00542500
add esp, 0xc
lea eax, [esp + 0x5b]
lea edx, [esp + 0x80]
push ebx
push 0xffff
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
push edx
call fcn.00404ee0
push ebp
lea ecx, [esp + 0x34]
mov byte [esp + 0x1a4], 0x14
call fcn.00402a80
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push eax
call fcn.00558070
mov ecx, dword [0x619a60]
mov byte [esp + 0x1a4], 0xf
call fcn.00545a80
inc byte [esp + 0x14]
jmp 0x5422aa
mov ecx, dword [0x619a60]
push ebx
call fcn.00545f70
cmp ax, 0xb
jne 0x5421b6
lea ecx, [esp + 0x48]
mov byte [esp + 0x188], 0xe
call fcn.005581a0
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, eax
mov byte [esp + 0x188], 0xc
mov edi, eax
je 0x5423e2
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x5423d0
mov esi, dword [esp + 0x1c]
push esi
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x74]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x188], 0xb
call fcn.005581a0
xor ebp, ebp
jmp 0x541eef
lea ecx, [esp + 0x74]
mov byte [esp + 0x188], 0xb
call fcn.005581a0
lea ecx, [esp + 0x68]
mov byte [esp + 0x188], 0xa
call fcn.005581a0
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
cmp esi, eax
mov byte [esp + 0x188], 9
mov edi, eax
je 0x542459
mov ecx, esi
call fcn.005581a0
add esi, 4
cmp esi, edi
jne 0x542447
mov esi, dword [esp + 0x34]
push esi
call fcn.005bc500
add esp, 4
lea ecx, [esp + 0x70]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x188], 4
call fcn.005581a0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x188], 3
call fcn.005581a0
lea ecx, [esp + 0x50]
mov byte [esp + 0x188], 2
call fcn.005581a0
lea ecx, [esp + 0x6c]
mov byte [esp + 0x188], 1
call fcn.005581a0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x188], 0
call fcn.005581a0
lea ecx, [esp + 0x40]
mov dword [esp + 0x188], 0xffffffff
call fcn.005581a0
mov ecx, dword [esp + 0x180]
pop edi
pop esi
pop ebp
mov ax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x17c
ret