Function at 0x5548c6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, dword [esi + 0x2c]
lea edx, [esi + 0x38]
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x3c]
add eax, 0xfffffefa
sub ecx, dword [esi + 0x74]
add eax, ebx
sub ecx, dword [esi + 0x6c]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], ecx
cmp dword [esi + 0x6c], eax
jb 0x554975
mov ecx, dword [edx]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.004ce9e0
mov ecx, dword [esi + 0x4c]
add esp, 0xc
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
sub dword [esi + 0x5c], ebx
mov esi, ecx
mov dword [ebp - 0xc], ecx
lea edi, [eax + ecx*2]
lea edi, [edi - 2]
movzx ecx, bx
movzx eax, word [edi]
mov edx, eax
mov dword [ebp - 8], ecx
sub eax, ecx
xor ecx, ecx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x554920
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov eax, dword [esi + 0x40]
mov esi, ebx
lea edi, [eax + ebx*2]
lea edi, [edi - 2]
xor ecx, ecx
movzx eax, word [edi]
mov edx, eax
sub eax, dword [ebp - 8]
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [edi], cx
sub esi, 1
jne 0x554950
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
add ecx, ebx
mov edi, dword [esi]
mov eax, dword [edi + 4]
test eax, eax
je 0x554ab6
mov edx, dword [esi + 0x6c]
mov ebx, dword [esi + 0x74]
mov esi, dword [ebp - 4]
add ebx, edx
mov dword [ebp - 8], edx
add ebx, dword [esi]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ebx
mov ebx, eax
cmp ebx, ecx
jbe 0x5549a4
mov ebx, ecx
test ebx, ebx
je 0x5549f0
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x5549c1
push ebx
push dword [edi]
push dword [edi + 0x30]
call fcn.00558667
jmp 0x5549d1
cmp eax, 2
jne 0x5549d7
push ebx
push dword [edi]
push dword [edi + 0x30]
call fcn.005568e7
mov dword [edi + 0x30], eax
add esp, 0xc
push ebx
push dword [edi]
push dword [ebp - 0x10]
call fcn.004ce9e0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
mov edx, dword [esi + 0x6c]
mov dword [ebp - 8], edx
mov eax, dword [esi + 0x74]
add eax, ebx
mov dword [ebp - 0xc], eax
mov dword [esi + 0x74], eax
cmp eax, 3
jb 0x554a69
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 8]
mov ecx, dword [esi + 0x58]
mov edi, dword [eax]
movzx edx, byte [edi + edx]
mov dword [esi + 0x48], edx
movzx eax, byte [edi + ebx + 1]
shl edx, cl
xor edx, eax
and edx, dword [esi + 0x54]
mov dword [esi + 0x48], edx
mov edx, dword [ebp - 0xc]
cmp edx, 0x106
jb 0x554a71
mov ecx, dword [esi + 0x16c0]
mov edi, dword [esi + 0x3c]
cmp ecx, edi
jae 0x554ab6
add ebx, edx
cmp ecx, ebx
jae 0x554a84
mov ecx, dword [ebp - 4]
mov eax, 0x102
sub edi, ebx
cmp edi, eax
cmova edi, eax
mov eax, dword [ecx]
push edi
add eax, ebx
push 0
push eax
call fcn.004cf7f0
lea eax, [edi + ebx]
add esp, 0xc
mov dword [esi + 0x16c0], eax
jmp 0x554ab6
mov dword [ebp - 8], edx
mov ebx, edx
mov edx, dword [ebp - 0xc]
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x554a2c
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
jmp 0x5548db
lea eax, [ebx + 0x102]
cmp ecx, eax
jae 0x554ab6
mov edx, dword [ebp - 4]
sub ebx, ecx
sub edi, ecx
lea eax, [ebx + 0x102]
cmp eax, edi
cmovbe edi, eax
mov eax, dword [edx]
push edi
add eax, ecx
push 0
push eax
call fcn.004cf7f0
add esp, 0xc
add dword [esi + 0x16c0], edi
pop edi
pop esi
pop ebx
leave
ret