Function at 0x5dcae0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x3c]
sub ecx, dword [eax + 0x74]
mov edx, dword [ebp + 8]
sub ecx, dword [edx + 0x6c]
mov dword [ebp - 0x14], ecx
xor eax, eax
je 0x5dcb37
cmp dword [ebp - 0x14], 0
jne 0x5dcb28
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6c], 0
jne 0x5dcb28
mov edx, dword [ebp + 8]
cmp dword [edx + 0x74], 0
jne 0x5dcb28
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
jmp 0x5dcb37
cmp dword [ebp - 0x14], 0xffffffff
jne 0x5dcb37
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax - 0x106]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6c], edx
jb 0x5dcc55
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x38]
add eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
push edx
call fcn.006025b0
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x70], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x6c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
mov ecx, dword [ebp - 8]
lea edx, [eax + ecx*2]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
sub eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 4]
jb 0x5dcbda
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
jmp 0x5dcbe1
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0xc]
mov ax, word [ebp - 0x20]
mov word [edx], ax
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
jne 0x5dcbb5
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x40]
mov edx, dword [ebp - 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
sub ecx, 2
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
movzx eax, word [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 4]
jb 0x5dcc30
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 4]
mov dword [ebp - 0x24], edx
jmp 0x5dcc37
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0xc]
mov cx, word [ebp - 0x24]
mov word [eax], cx
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
jne 0x5dcc0b
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
cmp dword [edx + 4], 0
jne 0x5dcc65
jmp 0x5dcdff
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x6c]
mov ecx, dword [ebp + 8]
add edx, dword [ecx + 0x74]
push edx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.005dcee0
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x74]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x74], edx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x74], 3
jb 0x5dcce8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
movzx eax, byte [edx + eax]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x48], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov edx, dword [edx + 0x48]
mov ecx, dword [eax + 0x58]
shl edx, cl
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38]
movzx ecx, byte [eax + ecx + 1]
xor edx, ecx
mov eax, dword [ebp + 8]
and edx, dword [eax + 0x54]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x48], edx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x74], 0x106
jae 0x5dcd03
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp dword [ecx + 4], 0
jne 0x5dcaef
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [edx + 0x16c0]
cmp ecx, dword [eax + 0x3c]
jae 0x5dcdff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x74]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x16c0]
cmp eax, dword [ebp - 0x18]
jae 0x5dcd7d
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x102
jbe 0x5dcd51
mov dword [ebp - 0x10], 0x102
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
add edx, dword [ebp - 0x18]
push edx
call fcn.006030b0
add esp, 0xc
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x16c0], eax
jmp 0x5dcdff
mov edx, dword [ebp - 0x18]
add edx, 0x102
mov eax, dword [ebp + 8]
cmp dword [eax + 0x16c0], edx
jae 0x5dcdff
mov ecx, dword [ebp - 0x18]
add ecx, 0x102
mov edx, dword [ebp + 8]
sub ecx, dword [edx + 0x16c0]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x3c]
sub edx, dword [ecx + 0x16c0]
cmp dword [ebp - 0x10], edx
jbe 0x5dcdcc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x3c]
sub edx, dword [ecx + 0x16c0]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x16c0]
push edx
call fcn.006030b0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x16c0]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov dword [eax + 0x16c0], edx
mov esp, ebp
pop ebp
ret