Function at 0xdd58e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x2c
mov eax, dword [eax + 0x2c]
mov ecx, dword [edi + 0x74]
mov dword [ebp - 0x1c], eax
add eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
lea edx, [eax - 0x106]
mov dword [ebp - 0x28], edx
jmp 0xdd59d3
mov ebx, dword [edi]
mov esi, dword [ebx + 4]
test esi, esi
je 0xdd5a7a
mov eax, dword [edi + 0x74]
mov edx, dword [edi + 0x38]
mov ecx, dword [edi + 0x6c]
mov dword [ebp - 0x24], eax
xor eax, eax
cmp dword [ebp - 0x20], esi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
jae 0xdd5945
mov edx, dword [ebp - 0x20]
test edx, edx
je 0xdd5988
mov eax, esi
mov esi, dword [ebp - 0x20]
sub eax, dword [ebp - 0x20]
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
je 0xdd5ad6
cmp eax, 2
je 0xdd5af3
mov eax, dword [ebp - 0x18]
mov edx, dword [ebx]
add eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x24]
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [edi + 0x74]
mov eax, esi
add dword [ebx], esi
add dword [ebx + 8], esi
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x24]
lea esi, [eax + ecx]
cmp esi, 2
mov dword [edi + 0x74], esi
jbe 0xdd59b5
mov ebx, dword [edi + 0x38]
mov edx, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx eax, byte [ebx + edx]
mov dword [edi + 0x48], eax
movzx edx, byte [edx + ebx + 1]
shl eax, cl
xor eax, edx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x105
mov ecx, esi
ja 0xdd5a82
mov eax, dword [edi]
mov eax, dword [eax + 4]
test eax, eax
je 0xdd5a82
mov eax, dword [edi + 0x2c]
mov ebx, dword [edi + 0x3c]
mov edx, dword [edi + 0x6c]
add eax, dword [ebp - 0x28]
sub ebx, ecx
sub ebx, edx
cmp edx, eax
mov dword [ebp - 0x20], ebx
jb 0xdd5910
mov edx, dword [edi + 0x38]
mov ecx, dword [ebp - 0x1c]
mov dword [esp], edx
lea eax, [edx + ecx]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
mov esi, dword [edi + 0x4c]
mov ebx, dword [ebp - 0x1c]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
lea ebx, [esi + esi]
add ebx, dword [edi + 0x44]
lea esi, [esi]
movzx eax, word [ebx - 2]
xor edx, edx
movzx ecx, ax
sub ax, word [ebp - 0x1c]
cmp dword [ebp - 0x1c], ecx
cmovbe edx, eax
mov word [ebx - 2], dx
sub ebx, 2
sub esi, 1
jne 0xdd5a20
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x1c]
add ebx, dword [edi + 0x40]
movzx eax, word [ebx - 2]
xor edx, edx
movzx ecx, ax
sub ax, word [ebp - 0x1c]
cmp dword [ebp - 0x1c], ecx
cmovbe edx, eax
mov word [ebx - 2], dx
sub ebx, 2
sub esi, 1
jne 0xdd5a48
mov ebx, dword [edi]
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x20], eax
mov esi, dword [ebx + 4]
test esi, esi
jne 0xdd591d
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0xdd5a7a
add esi, dword [edi + 0x6c]
cmp edx, esi
jb 0xdd5b10
lea eax, [esi + 0x102]
cmp edx, eax
jae 0xdd5a7a
sub esi, edx
mov eax, ecx
sub eax, edx
lea ebx, [esi + 0x102]
cmp ebx, eax
cmova ebx, eax
add edx, dword [edi + 0x38]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
add dword [edi + 0x16c0], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], esi
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.00dd96c0
mov dword [ebx + 0x30], eax
jmp 0xdd5960
mov dword [esp + 8], esi
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.00dd8010
mov dword [ebx + 0x30], eax
jmp 0xdd5960
mov eax, ecx
mov ebx, 0x102
sub eax, esi
cmp eax, 0x102
cmovbe ebx, eax
mov eax, esi
add eax, dword [edi + 0x38]
mov dword [esp + 8], ebx
add ebx, esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [edi + 0x16c0], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret