Function at 0x5e761a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0x18c
mov eax, 0x693cf3
call fcn.005b8597
mov eax, dword [ebp + 0x28]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, ecx
and dword [ebx], 0
mov ecx, 0x76bc9c
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x13c], eax
call fcn.005d659b
inc dword [eax + 4]
and dword [ebp - 4], 0
call fcn.005d9bdf
mov byte [ebp - 0x119], al
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test eax, eax
je 0x5e7e87
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test eax, eax
je 0x5e7e87
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ebx, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
cmp ebx, eax
je 0x5e7e81
push dword [ebp + 0x14]
mov eax, dword [esi + 0x10]
push dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 8]
mov ebx, dword [esi + 4]
cmp dword [esi + 0xc], 4
mov dword [ebp - 0x150], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x154], eax
mov eax, dword [edi + 8]
push eax
push ecx
push edx
lea eax, [ebp - 0x174]
push ebx
push eax
sete byte [ebp - 0x112]
call fcn.005e73a2
mov eax, dword [ebp - 0x174]
mov ebx, dword [ebp - 0x13c]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x170]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x168]
add esp, 0x1c
mov dword [ebp - 0x12c], eax
test ebx, ebx
je 0x5e77a3
mov eax, dword [ebx]
mov dword [ebp - 0x194], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x18c], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x190], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x188], eax
xor eax, eax
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x174]
call fcn.005e7316
test al, al
jne 0x5e7780
mov eax, dword [ebp - 0x144]
mov dword [eax], 5
jmp 0x5e7e8d
mov eax, dword [ebx]
mov dword [ebp - 0x134], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x140], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x12c], eax
fld qword [ebp + 0x18]
fld1
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5e77e5
and dword [ebp - 0x118], 0
fild dword [ebp - 0x118]
fmul qword [ebp + 0x18]
call fcn.005b8cd6
mov ecx, dword [ebp - 0x118]
inc dword [ebp - 0x118]
cmp dword [ebp - 0x118], 0x100
mov byte [ebp + ecx - 0x110], al
jl 0x5e77b8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ebx, dword [ebp - 0x14c]
mov esi, eax
mov eax, ebx
imul eax, dword [ebp - 0x150]
add esi, eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, ebx
sub ecx, dword [ebp + 0x14]
imul ecx, dword [ebp - 0x154]
add eax, ecx
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x130], eax
mov eax, ecx
imul eax, eax, 3
cmp byte [ebp - 0x112], 0
je 0x5e7911
mov eax, ecx
shl eax, 2
cmp dword [ebp + 0x20], 4
je 0x5e7c56
mov dword [ebp - 0x118], ebx
cmp ebx, dword [ebp - 0x12c]
jae 0x5e7e69
and dword [ebp - 0x124], 0
add eax, esi
mov dword [ebp - 0x128], eax
mov ebx, 0x76bc9c
mov edx, dword [ebp - 0x134]
mov esi, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x128]
mov eax, edx
sub eax, dword [ebp + 0x10]
lea esi, [esi + eax*4]
cmp edx, dword [ebp - 0x140]
jae 0x5e7bc0
mov eax, dword [ebp - 0x140]
sub eax, edx
mov dword [ebp - 0x148], eax
fld qword [ebp + 0x18]
mov dl, byte [ecx]
fld1
lea edi, [ecx + 1]
mov al, byte [edi]
fucompp
mov byte [ebp - 0x11b], al
mov al, byte [ecx + 2]
mov byte [ebp - 0x11c], al
mov al, byte [esi]
mov byte [ebp - 0x11a], al
mov al, byte [esi + 1]
mov byte [ebp - 0x11d], al
mov al, byte [esi + 2]
mov byte [ebp - 0x112], al
mov al, byte [esi + 3]
mov byte [ebp - 0x111], al
fnstsw ax
mov dword [ebp - 0x13c], edi
test ah, 0x44
jnp 0x5e78fc
movzx eax, byte [ebp - 0x111]
mov al, byte [ebp + eax - 0x110]
mov byte [ebp - 0x111], al
cmp byte [ebp - 0x111], 0
jne 0x5e7ae0
add ecx, 3
jmp 0x5e7bb0
mov dword [ebp - 0x128], ebx
cmp ebx, dword [ebp - 0x12c]
jae 0x5e7e69
and dword [ebp - 0x124], 0
add eax, esi
mov dword [ebp - 0x118], eax
mov ebx, 0x76bc9c
mov edx, dword [ebp - 0x134]
mov esi, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x118]
mov eax, edx
sub eax, dword [ebp + 0x10]
lea esi, [esi + eax*4]
cmp edx, dword [ebp - 0x140]
jae 0x5e7a3b
mov eax, dword [ebp - 0x140]
sub eax, edx
mov dword [ebp - 0x138], eax
fld qword [ebp + 0x18]
mov dl, byte [esi + 3]
fld1
lea edi, [ecx + 1]
mov al, byte [edi]
fucompp
mov byte [ebp - 0x11b], al
mov al, byte [ecx + 2]
mov byte [ebp - 0x11c], al
mov al, byte [esi]
mov byte [ebp - 0x11a], al
mov al, byte [esi + 1]
mov byte [ebp - 0x11d], al
mov al, byte [esi + 2]
mov byte [ebp - 0x112], al
fnstsw ax
mov dword [ebp - 0x13c], edi
test ah, 0x44
jnp 0x5e79ba
movzx eax, dl
mov dl, byte [ebp + eax - 0x110]
test dl, dl
jne 0x5e79c3
add ecx, 3
jmp 0x5e7a2c
movzx edi, byte [ebp - 0x11a]
movzx eax, dl
movzx edx, byte [ecx]
shl eax, 8
sub edx, eax
mov dl, byte [edx + 0x76a540]
add dl, byte [edi + eax + 0x75a640]
movzx edi, byte [ebp - 0x11d]
mov byte [ecx], dl
movzx edx, byte [ebp - 0x11b]
mov ecx, dword [ebp - 0x13c]
sub edx, eax
mov dl, byte [edx + 0x76a540]
add dl, byte [edi + eax + 0x75a640]
movzx edi, byte [ebp - 0x112]
mov byte [ecx], dl
movzx edx, byte [ebp - 0x11c]
sub edx, eax
mov dl, byte [edx + 0x76a540]
add dl, byte [edi + eax + 0x75a640]
add ecx, 2
mov byte [ecx - 1], dl
add esi, 4
dec dword [ebp - 0x138]
jne 0x5e796b
cmp byte [ebp - 0x119], 0
je 0x5e7a92
mov ecx, ebx
call fcn.005d659b
cmp dword [eax + 4], 1
jne 0x5e7a8c
mov ecx, ebx
call fcn.005d659b
cmp dword [eax], 0
je 0x5e7a8c
mov ecx, ebx
call fcn.005d659b
mov ecx, ebx
mov esi, eax
call fcn.005d659b
push dword [esi + 8]
mov ecx, dword [ebp - 0x12c]
sub ecx, dword [ebp - 0x14c]
push ecx
push dword [ebp - 0x124]
call dword [eax]
neg eax
sbb eax, eax
inc eax
jmp 0x5e7a8e
xor eax, eax
test eax, eax
jne 0x5e7acd
mov eax, dword [ebp - 0x150]
add dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x154]
add dword [ebp - 0x130], eax
inc dword [ebp - 0x128]
mov eax, dword [ebp - 0x128]
inc dword [ebp - 0x124]
cmp eax, dword [ebp - 0x12c]
jb 0x5e7937
jmp 0x5e7e6e
mov eax, dword [ebp - 0x144]
mov dword [eax], 0xe
mov ecx, ebx
jmp 0x5e7e92
movzx eax, byte [ebp - 0x111]
movzx edi, byte [ebp - 0x11a]
movzx edx, dl
mov dword [ebp - 0x138], eax
shl eax, 8
sub edx, eax
mov dl, byte [edx + 0x76a540]
add dl, byte [edi + eax + 0x75a640]
movzx edi, byte [ebp - 0x11d]
mov byte [ecx], dl
movzx edx, byte [ebp - 0x11b]
mov ecx, dword [ebp - 0x13c]
sub edx, eax
mov dl, byte [edx + 0x76a540]
add dl, byte [edi + eax + 0x75a640]
movzx edi, byte [ebp - 0x112]
mov byte [ecx], dl
movzx edx, byte [ebp - 0x11c]
sub edx, eax
mov dl, byte [edx + 0x76a540]
add dl, byte [edi + eax + 0x75a640]
mov eax, dword [ebp + 0x20]
mov byte [ecx + 1], dl
add ecx, 2
dec eax
je 0x5e7ba8
dec eax
je 0x5e7b9e
dec eax
je 0x5e7b88
dec eax
dec eax
jne 0x5e7bb0
movzx edi, byte [ecx]
mov edx, 0xff
mov eax, edx
sub edx, dword [ebp - 0x138]
sub eax, edi
imul eax, edx
cdq
mov edi, 0xff
idiv edi
mov edx, edi
sub edx, eax
mov byte [ecx], dl
jmp 0x5e7bb0
movzx edi, byte [ecx]
add edi, dword [ebp - 0x138]
mov eax, 0xff
cmp edi, eax
jge 0x5e7bae
mov eax, edi
jmp 0x5e7bae
mov al, byte [ecx]
cmp byte [ebp - 0x111], al
jbe 0x5e7bae
mov al, byte [ebp - 0x111]
mov byte [ecx], al
inc ecx
add esi, 4
dec dword [ebp - 0x148]
jne 0x5e789b
cmp byte [ebp - 0x119], 0
je 0x5e7c1b
mov ecx, ebx
call fcn.005d659b
cmp dword [eax + 4], 1
jne 0x5e7c11
mov ecx, ebx
call fcn.005d659b
cmp dword [eax], 0
je 0x5e7c11
mov ecx, ebx
call fcn.005d659b
mov ecx, ebx
mov esi, eax
call fcn.005d659b
push dword [esi + 8]
mov ecx, dword [ebp - 0x12c]
sub ecx, dword [ebp - 0x14c]
push ecx
push dword [ebp - 0x124]
call dword [eax]
neg eax
sbb eax, eax
inc eax
jmp 0x5e7c13
xor eax, eax
test eax, eax
jne 0x5e7acd
mov eax, dword [ebp - 0x150]
add dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x154]
add dword [ebp - 0x130], eax
inc dword [ebp - 0x118]
mov eax, dword [ebp - 0x118]
inc dword [ebp - 0x124]
cmp eax, dword [ebp - 0x12c]
jb 0x5e7867
jmp 0x5e7e6e
mov dword [ebp - 0x124], ebx
cmp ebx, dword [ebp - 0x12c]
jae 0x5e7e69
and dword [ebp - 0x128], 0
add esi, eax
mov dword [ebp - 0x13c], esi
mov ebx, 0x76bc9c
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x130]
mov eax, ecx
sub eax, dword [ebp + 0x10]
lea edi, [edx + eax*4]
cmp ecx, dword [ebp - 0x140]
jae 0x5e7dd0
mov eax, dword [ebp - 0x140]
sub eax, ecx
mov dword [ebp - 0x138], eax
mov ecx, 0xff
fld qword [ebp + 0x18]
movzx ebx, byte [edi + 3]
fld1
movzx edx, byte [esi + 3]
fucompp
lea eax, [esi + 1]
mov dword [ebp - 0x148], eax
movzx eax, byte [edi]
mov dword [ebp - 0x15c], eax
movzx eax, byte [edi + 1]
mov dword [ebp - 0x158], eax
movzx eax, byte [edi + 2]
mov dword [ebp - 0x164], eax
add edi, 4
fnstsw ax
mov dword [ebp - 0x118], ebx
test ah, 0x44
jnp 0x5e7d02
movzx ebx, byte [ebp + ebx - 0x110]
mov dword [ebp - 0x118], ebx
mov eax, ecx
sub eax, ebx
imul eax, edx
cdq
mov ebx, ecx
idiv ebx
mov ebx, eax
mov eax, dword [ebp - 0x118]
add ebx, eax
mov dword [ebp - 0x160], ebx
jne 0x5e7d24
xor eax, eax
jmp 0x5e7d2d
imul eax, eax, 0xff
cdq
idiv ebx
movzx edx, byte [esi]
sub ecx, eax
mov dword [ebp - 0x118], eax
imul eax, dword [ebp - 0x15c]
mov ebx, ecx
imul ebx, edx
add eax, ebx
cdq
mov ebx, 0xff
idiv ebx
mov edx, dword [ebp - 0x148]
movzx edx, byte [edx]
mov ebx, ecx
imul ebx, edx
mov dword [ebp - 0x15c], eax
mov eax, dword [ebp - 0x118]
imul eax, dword [ebp - 0x158]
add eax, ebx
cdq
mov ebx, 0xff
idiv ebx
movzx edx, byte [esi + 2]
imul ecx, edx
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x118]
imul eax, dword [ebp - 0x164]
add eax, ecx
cdq
idiv ebx
mov dl, byte [ebp - 0x15c]
mov byte [esi], dl
mov esi, dword [ebp - 0x148]
mov dl, byte [ebp - 0x158]
mov byte [esi], dl
add esi, 3
dec dword [ebp - 0x138]
mov ecx, ebx
mov byte [esi - 2], al
mov al, byte [ebp - 0x160]
mov byte [esi - 1], al
jne 0x5e7caf
mov ebx, 0x76bc9c
cmp byte [ebp - 0x119], 0
je 0x5e7e2b
mov ecx, ebx
call fcn.005d659b
cmp dword [eax + 4], 1
jne 0x5e7e21
mov ecx, ebx
call fcn.005d659b
cmp dword [eax], 0
je 0x5e7e21
mov ecx, ebx
call fcn.005d659b
mov ecx, ebx
mov esi, eax
call fcn.005d659b
push dword [esi + 8]
mov ecx, dword [ebp - 0x12c]
sub ecx, dword [ebp - 0x14c]
push ecx
push dword [ebp - 0x128]
call dword [eax]
neg eax
sbb eax, eax
inc eax
jmp 0x5e7e23
xor eax, eax
test eax, eax
jne 0x5e7acd
mov esi, dword [ebp - 0x13c]
add esi, dword [ebp - 0x150]
mov eax, dword [ebp - 0x154]
add dword [ebp - 0x130], eax
inc dword [ebp - 0x124]
mov eax, dword [ebp - 0x124]
inc dword [ebp - 0x128]
mov dword [ebp - 0x13c], esi
cmp eax, dword [ebp - 0x12c]
jb 0x5e7c7c
jmp 0x5e7e6e
mov ebx, 0x76bc9c
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
call fcn.005d659b
dec dword [eax + 4]
xor eax, eax
inc eax
jmp 0x5e7ea0
mov ebx, dword [ebp - 0x144]
mov dword [ebx], 5
mov ecx, 0x76bc9c
or dword [ebp - 4], 0xffffffff
call fcn.005d659b
dec dword [eax + 4]
xor eax, eax
call fcn.005b861a
ret 0x24