Function at 0x5ddab0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004094d4
mov eax, dword [ebp - 8]
call fcn.004094d4
xor eax, eax
push ebp
push 0x5ddd24
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, edx
test eax, eax
je 0x5ddaf9
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5ddb01
mov al, 1
jmp 0x5ddb12
mov eax, dword [ebp - 4]
test eax, eax
je 0x5ddb0d
sub eax, 4
mov eax, dword [eax]
test eax, eax
sete al
test al, al
jne 0x5ddcf6
mov eax, edx
test eax, eax
je 0x5ddb25
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x100
jle 0x5ddb33
mov ebx, pe_nt_image_headers32
jmp 0x5ddb35
mov ebx, eax
push ebx
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x5dddb8]
call fcn.0040b3d0
add esp, 4
lea eax, [ebp - 8]
call fcn.00409994
mov edx, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x5ddb62
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
xchg edx, ecx
xchg ecx, eax
call fcn.004069a0
xor ecx, ecx
lea eax, [ebp - 0x41c]
mov dword [eax], ecx
inc ecx
add eax, 4
cmp ecx, 0x100
jne 0x5ddb75
xor esi, esi
xor ecx, ecx
lea ebx, [ebp - 0x41c]
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x5ddb99
sub edi, 4
mov edi, dword [edi]
mov eax, ecx
cdq
idiv edi
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax + edx]
add esi, dword [ebx]
add eax, esi
and eax, 0x800000ff
jns 0x5ddbb7
dec eax
or eax, 0xffffff00
inc eax
mov esi, eax
movzx eax, byte [ebx]
mov edx, dword [ebp + esi*4 - 0x41c]
mov dword [ebx], edx
movzx eax, al
mov dword [ebp + esi*4 - 0x41c], eax
inc ecx
add ebx, 4
cmp ecx, 0x100
jne 0x5ddb8d
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x5ddbe7
sub ebx, 4
mov ebx, dword [ebx]
push ebx
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, dword [0x5dddb8]
call fcn.0040b3d0
add esp, 4
lea eax, [ebp - 4]
call fcn.00409994
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x5ddc14
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
xchg edx, ecx
xchg ecx, eax
call fcn.004069a0
xor ecx, ecx
xor esi, esi
mov eax, dword [ebp - 4]
test eax, eax
je 0x5ddc2f
sub eax, 4
mov eax, dword [eax]
dec eax
test eax, eax
jl 0x5ddcc0
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
inc ecx
and ecx, 0x800000ff
jns 0x5ddc54
dec ecx
or ecx, 0xffffff00
inc ecx
add esi, dword [ebp + ecx*4 - 0x41c]
and esi, 0x800000ff
jns 0x5ddc6b
dec esi
or esi, 0xffffff00
inc esi
movzx eax, byte [ebp + ecx*4 - 0x41c]
mov edx, dword [ebp + esi*4 - 0x41c]
mov dword [ebp + ecx*4 - 0x41c], edx
movzx eax, al
mov dword [ebp + esi*4 - 0x41c], eax
mov eax, dword [ebp + ecx*4 - 0x41c]
add eax, dword [ebp + esi*4 - 0x41c]
and eax, 0x800000ff
jns 0x5ddca7
dec eax
or eax, 0xffffff00
inc eax
movzx eax, byte [ebp + eax*4 - 0x41c]
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x18]
xor byte [edx + ebx], al
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x5ddc43
mov eax, dword [ebp - 4]
test eax, eax
je 0x5ddccc
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
xchg edx, eax
call fcn.00409c70
mov eax, dword [ebp - 0x14]
call fcn.00409994
mov edx, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x5ddced
sub eax, 4
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
xchg ecx, eax
call fcn.004069a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ddd2b
lea eax, [ebp - 0x10]
mov edx, dword [0x5dddb8]
mov ecx, 2
call fcn.0040a8ac
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409470
ret