Function at 0x61050e70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
mov edi, dword [ebp + 0x10]
cmp byte [0x61146ea0], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0
je 0x61050eaf
mov eax, dword [0x610ed768]
add eax, 0x88
mov eax, dword [eax + 0xcc]
cmp eax, 0xffffffff
je 0x61051221
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x61050fe5
mov dword [ebp - 0x64], 0
mov eax, dword [0x610ef740]
mov eax, dword [eax + 0x124]
mov dword [ebp - 0x5c], eax
mov eax, dword [0x610ed768]
mov ebx, dword [eax + 0x88]
lea esi, [esi]
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call fcn.61050d50
mov dword [ebp - 0x58], eax
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
test esi, esi
je 0x61050fb8
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x5c]
cmp edi, dword [esi + 8]
je 0x61050fc0
mov edi, dword [ebp - 0x58]
mov edx, dword [edi + 0xc]
test edx, edx
je 0x61050fa0
mov edi, dword [edx]
xor ecx, ecx
test edi, edi
je 0x61050fa0
jmp 0x61050f30
mov esi, ebx
cld
and eax, 0xff
lodsb al, byte [esi]
scasb al, byte es:[edi]
je 0x61050f47
xor al, byte [eax + 0x610ef1e4]
cmp al, byte [edi - 1]
jne 0x61050f52
test al, al
jne 0x61050f38
mov eax, 1
jmp 0x61050f54
xor eax, eax
test eax, eax
je 0x61050f90
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x54], eax
jge 0x61050f6f
mov esi, dword [ebp - 0x58]
mov edi, dword [ebp - 0x54]
mov eax, dword [esi + 8]
mov esi, dword [ebp + 0xc]
mov dword [esi + edi*4], eax
inc dword [ebp - 0x54]
mov edi, dword [ebp + 8]
test edi, edi
je 0x61050f90
mov edi, dword [ebp + 8]
cmp dword [ebp - 0x54], edi
jg 0x61050fa8
jmp 0x61050f90
inc ecx
mov edi, dword [edx + ecx*4]
test edi, edi
jne 0x61050f30
nop
lea esi, [esi]
inc dword [ebp - 0x64]
jmp 0x61050ee0
call sym.cygwin1.dll___errno
mov dword [eax], 0x16
mov eax, 0xffffffff
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x54], eax
jge 0x61050fd1
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + edx*4], edi
inc dword [ebp - 0x54]
mov eax, dword [ebp + 8]
test eax, eax
je 0x61050fa0
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x54], esi
jle 0x61050fa0
jmp 0x61050fa8
mov dword [esp + 0xc], 0
lea esi, [ebp - 0x50]
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.610f4468
sub esp, 0x14
test eax, eax
jne 0x61051081
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
je 0x61051081
mov eax, dword [0x610f08a0]
test eax, eax
jne 0x61051054
mov eax, dword [0x610ed768]
add eax, 0x88
cmp dword [eax + 0xcc], 0xffffffff
je 0x61051044
mov eax, dword [ebp - 0x54]
jmp 0x61050fb8
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x6105103c
mov eax, dword [ebp - 0x50]
mov dword [esp + 0xc], 0x61050e40
mov dword [esp + 8], 0x61050e00
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x40
mov dword [esp], 0x610f089c
call fcn.6108fd50
jmp 0x61051029
mov dword [ebp - 0x60], esp
mov eax, dword [ebp - 0x50]
add eax, 0xf
and eax, 0xfffffff0
call sym.cygwin1.dll__alloca
mov dword [esp + 0x10], esi
lea ebx, [esp + 0x14]
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], ebx
mov dword [esp + 4], 2
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.610f4468
sub esp, 0x14
test eax, eax
je 0x61051105
lea eax, [ebp - 0x44]
test edi, edi
mov dword [ebp - 0x48], eax
je 0x61051114
xor esi, esi
cmp esi, dword [ebx]
jae 0x61051105
mov edx, dword [edi]
mov eax, dword [ebx + esi*8 + 4]
test edx, edx
je 0x6105110d
test eax, eax
je 0x6105110d
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call fcn.610f4240
sub esp, 8
test eax, eax
setne al
movzx eax, al
movzx eax, al
test eax, eax
mov dword [ebp - 0x54], eax
jne 0x61051105
inc esi
cmp esi, dword [ebx]
jb 0x610510cf
mov esp, dword [ebp - 0x60]
jmp 0x61051029
cmp eax, edx
sete al
jmp 0x610510f3
xor edi, edi
mov dword [esp], edi
call fcn.61050d50
mov dword [ebp - 0x58], eax
test eax, eax
je 0x61051105
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], eax
lea eax, [ebp - 0x48]
mov dword [esp], eax
call fcn.61078230
test eax, eax
je 0x610511b4
xor esi, esi
cmp esi, dword [ebx]
jae 0x610511b4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebx + esi*8 + 4]
test edx, edx
je 0x61051217
test eax, eax
je 0x61051217
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call fcn.610f4240
sub esp, 8
test eax, eax
setne al
movzx eax, al
test al, al
je 0x610511af
mov edx, dword [ebp - 0x48]
mov eax, dword [0x61146ba0]
test edx, edx
je 0x61051210
test eax, eax
je 0x61051210
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
call fcn.610f4240
sub esp, 8
test eax, eax
setne al
movzx eax, al
xor eax, 1
test al, al
jne 0x610511ba
inc esi
cmp esi, dword [ebx]
jb 0x61051141
inc edi
jmp 0x61051116
mov edx, dword [ebp + 8]
cmp dword [ebp - 0x54], edx
jge 0x610511d1
mov ecx, dword [ebp - 0x58]
mov esi, dword [ebp - 0x54]
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [edx + esi*4], eax
inc dword [ebp - 0x54]
mov eax, dword [ebp + 8]
test eax, eax
je 0x610511b4
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x54], ecx
jle 0x610511b4
mov eax, dword [0x610ed768]
add eax, 0x88
cmp dword [eax + 0xcc], 0xffffffff
je 0x610511fe
mov esp, dword [ebp - 0x60]
jmp 0x61050fa8
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x610511f6
cmp eax, edx
sete al
jmp 0x610511a5
cmp eax, edx
sete al
jmp 0x6105116f
mov dword [esp + 4], 8
lea eax, [ebp - 0x4c]
mov dword [esp + 8], eax
mov eax, dword [0x610eda80]
mov dword [esp], eax
call fcn.610f47b0
sub esp, 0xc
test eax, eax
sete al
movzx eax, al
dec eax
and dword [ebp - 0x4c], eax
jmp 0x61050eaf