Function at 0x5ebd20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x384]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
shl eax, 5
mov dword [ebp - 0x40], eax
add eax, edx
mov edx, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov ebx, dword [ecx + 0xc]
add edi, edx
mov edx, dword [ecx + 0x10]
mov ecx, dword [ebp + 0x1c]
shl eax, 5
shl ecx, 5
mov eax, dword [eax + edx]
mov edx, dword [ebp + 0x18]
add eax, ebx
mov ebx, dword [edx + 0x10]
mov ecx, dword [ecx + ebx]
mov ebx, dword [edx + 0xc]
add ecx, ebx
mov ebx, dword [ebp + 0x20]
xor edx, edx
mov dword [ebp - 0x18], ecx
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x14], edx
mov edx, dword [esi + 0xbec]
lea edx, [edx + ebx*4]
mov ebx, dword [ebp + 0x14]
mov dword [ebp + 0x20], edx
mov edx, dword [ebp + 0x20]
mov dl, byte [edx + ebx]
cmp dl, 0xff
mov byte [ebp + 0xc], dl
je 0x5ebde0
cmp dl, 0x10
jae 0x5ebdad
add dl, byte [ebp + 0x28]
mov byte [ebp + 0xc], dl
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
and ecx, 0xff
mov dword [ebp + edx*4 - 0x60], ecx
mov edx, dword [ebp + 0x24]
add ecx, edx
lea ebx, [edx + edx*4]
lea ecx, [ecx + ebx*8]
mov ebx, dword [ebp + 0x14]
mov edx, dword [esi + ecx*4 + 0x568]
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + ecx*4 - 0x50], edx
inc ecx
mov dword [ebp + 0x1c], ecx
mov ecx, dword [ebp - 0x18]
inc ebx
cmp ebx, 4
mov dword [ebp + 0x14], ebx
jl 0x5ebd94
mov ebx, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
cmp dword [ebx + 0x14], edx
jle 0x5ec01b
lea edx, [esi + 0xb24]
mov esi, edi
mov edi, ecx
sub esi, eax
mov ebx, eax
sub edi, eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
jmp 0x5ebe21
mov esi, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + ebx]
mov edi, dword [edi + ebx]
mov esi, dword [eax + 0xc]
mov eax, dword [ebp + 0x10]
add ecx, esi
mov esi, dword [eax + 0xc]
mov eax, dword [ebx]
add esi, eax
mov eax, dword [ebp + 0x18]
mov ebx, dword [eax + 0xc]
mov eax, dword [edx]
add edi, ebx
cmp eax, 0x3f
jg 0x5ebe58
shl al, 2
mov byte [ecx], al
inc ecx
inc esi
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x28], esi
inc edi
jmp 0x5ebe75
mov ebx, eax
add esi, 2
sar ebx, 4
and bl, 0xf2
mov dword [ebp + 0x28], esi
or bl, 2
mov byte [ecx], bl
inc ecx
mov byte [ecx], al
inc ecx
mov dword [ebp + 0x20], ecx
add edi, 2
mov eax, dword [ebp - 8]
mov ebx, 4
and eax, 1
mov dword [ebp + 0x24], edi
sub ebx, eax
mov dword [ebp + 0x14], 0
neg eax
sbb eax, eax
mov dword [ebp - 0x14], ebx
and eax, 6
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [edx]
test eax, eax
jle 0x5ebfef
mov eax, dword [ebp + 0x1c]
mov dl, 0x80
test eax, eax
mov byte [ebp - 0x10], dl
mov byte [ebp + 0xc], 0
jle 0x5ebee0
xor eax, eax
mov eax, dword [ebp + eax*4 - 0x50]
mov ebx, dword [ebp - 4]
mov al, byte [eax + ebx]
cmp al, dl
jae 0x5ebec6
mov dl, al
mov al, byte [ebp + 0xc]
mov ebx, dword [ebp + 0x1c]
inc al
mov byte [ebp + 0xc], al
mov eax, dword [ebp + 0xc]
and eax, 0xff
cmp eax, ebx
jl 0x5ebeb6
mov byte [ebp - 0x10], dl
mov eax, dword [ebp - 0x10]
and eax, 0xff
shl eax, 1
cmp eax, 0x100
mov dword [ebp - 0x2c], eax
jl 0x5ebefd
mov dl, byte [esi]
mov byte [ecx], dl
jmp 0x5ebfbd
test eax, eax
jg 0x5ebf0a
mov al, byte [edi]
mov byte [ecx], al
jmp 0x5ebfbd
mov ecx, pe_nt_image_headers32
sub ecx, eax
mov dword [ebp - 0x28], ecx
push esi
push edi
push ebx
mov esi, dword [ebp + 0x28]
xor edx, edx
mov dl, byte [esi]
mov eax, dword [edx*8 + 0x68b030]
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [edx*8 + 0x68b034]
mul ebx
mov ebx, eax
shr eax, 0x10
and ebx, 0xffff
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x2c]
mul ecx
mov dword [ebp - 0x30], eax
mov esi, dword [ebp + 0x24]
xor edx, edx
mov dl, byte [esi]
mov eax, dword [edx*8 + 0x68b030]
mov ebx, dword [ebp - 0x28]
mov ecx, dword [edx*8 + 0x68b034]
mul ebx
mov ebx, eax
shr eax, 0x10
and ebx, 0xffff
add dword [ebp - 0x38], eax
add dword [ebp - 0x34], ebx
mov eax, dword [ebp - 0x28]
mul ecx
add dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
and eax, 0xf800
and ecx, 0xf800
and edx, 0xf800
shr eax, 1
shr ecx, 6
shr edx, 0xb
or eax, ecx
or eax, edx
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp + 0x20]
mov ebx, dword [ebx + 0x24]
mov cl, byte [ebx + eax]
mov byte [edi], cl
pop ebx
pop edi
pop esi
mov ecx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x28]
mov edi, dword [ebp + 0x24]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x14]
inc ecx
inc esi
inc edi
inc eax
xor ebx, edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], ebx
mov ebx, dword [edx]
inc eax
cmp eax, ebx
mov dword [ebp + 0x20], ecx
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x24], edi
mov dword [ebp + 0x14], eax
jl 0x5ebea4
mov esi, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov byte [ecx], 0xf
mov ecx, dword [ebp + 8]
inc eax
add ebx, 4
add edx, 4
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], edx
cmp eax, dword [esi + ecx + 0x14]
jl 0x5ebe1b
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x24