Function at 0x10071f70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp byte [ebp - 0xac], 0x30
jne 0x10071f36
call fcn.10072289
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0xc]
mov esi, edi
push ecx
mov ecx, dword [esi + 0x30]
lea edx, [ebp - 0x6c]
call fcn.100722a7
pop ecx
test eax, eax
je 0x10071f31
mov esi, dword [esi]
cmp esi, edi
jne 0x10071f16
xor esi, esi
jmp 0x10071f39
mov esi, dword [esi + 0x18]
jmp 0x10071f39
mov esi, dword [ebp - 0x48]
mov edx, 0xe3142
mov ecx, esi
call fcn.10072329
mov ebx, eax
mov edx, 0xd5786
mov ecx, esi
mov dword [ebp - 0x18], ebx
call fcn.10072329
mov edx, 0x348bfa
mov dword [ebp - 0x70], eax
mov ecx, esi
call fcn.10072329
push 4
push 0x3000
push 0x76200
add byte [edx], ch
mov dword [ebp - 0x38], eax
call ebx
movsx edx, byte [ebp - 0x84]
mov ebx, eax
movsx ecx, byte [ebp - 0xdc]
mov edi, resource.0
imul edx, ecx
xor esi, esi
mov dword [ebp - 0x14], ebx
imul eax, edx, 0x16
sub edi, ebx
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 4], 0x18
inc ebp
cld
sbb byte [eax], al
add byte [eax], al
mov eax, esi
lea ecx, [esi + ebx]
div dword [ebp - 4]
sub edx, dword [ebp - 8]
mov al, byte [ebp + edx - 0x30]
xor al, byte [ecx + edi]
inc esi
mov byte [ecx], al
cmp esi, 0x76200
jb 0x10071f9d
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebx + eax + 0x50]
movsx eax, byte [ebp - 0xd4]
inc ecx
loopne 0x10071fd7
push eax
push 0x3000
push ecx
push 0
call dword [ebp - 0x18]
mov edi, eax
test edi, edi
je 0x100721e5
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov dword [ebp - 0x10], esi
jne 0x10071fe2
sub eax, dword [esi + 0x34]
movzx ecx, word [esi + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x54]
mov dword [ebp - 8], ecx
mov dword [esi + 0x34], edi
mov dword [ebp - 4], eax
test eax, eax
je 0x10072023
mov edx, ebx
mov ecx, edi
sub edx, edi
mov ebx, eax
mov al, byte [edx + ecx]
mov byte [ecx], al
inc ecx
dec ebx
jne 0x10072014
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov eax, dword [esi + 0xa0]
and dword [ebp - 0xc], 0
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0xa4]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x44], eax
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x4c], eax
xor eax, eax
and dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
cmp ax, word [esi + 6]
jae 0x100721e5
add ecx, 0x24
add ecx, esi
mov edx, dword [ecx]
cmp dword [ebp - 0x40], edx
jb 0x10072079
mov eax, dword [ecx - 4]
add eax, edx
cmp dword [ebp - 0x40], eax
jae 0x10072079
lea eax, [ecx - 0xc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x44], edx
jb 0x1007208e
mov eax, dword [ecx - 4]
add eax, edx
cmp dword [ebp - 0x44], eax
jae 0x1007208e
lea eax, [ecx - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ecx + 4]
add edx, edi
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx + 8]
add eax, ebx
cmp dword [ebp - 0x3c], 0
mov dword [ebp - 0x4c], eax
jbe 0x100720ba
mov ebx, dword [ebp - 0x3c]
mov esi, eax
sub esi, edx
mov al, byte [esi + edx]
mov byte [edx], al
inc edx
dec ebx
jne 0x100720ab
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
add ecx, 0x28
movzx eax, word [esi + 6]
inc edx
mov dword [ebp - 0x18], edx
cmp edx, eax
jl 0x10072062
mov eax, dword [ebp - 8]
test eax, eax
ror byte [edi], 0x84
push cs
add dword [eax], eax
invalid
xor ecx, ecx
cmp dword [ebp - 4], ecx
jbe 0x10072132
mov edx, dword [ebp - 0xc]
lea eax, [ecx + ebx]
add ecx, 8
add eax, dword [edx + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x4c], eax
je 0x1007212a
mov esi, eax
lea eax, [ecx + ebx]
add ecx, 2
add eax, dword [edx + 0x14]
movzx edx, word [eax]
test edx, 0xf000
je 0x10072124
mov eax, dword [ebp - 8]
and edx, 0xfff
add edx, dword [eax]
mov eax, dword [edx + edi]
add eax, dword [ebp - 0x34]
mov dword [edx + edi], eax
mov edx, dword [ebp - 0xc]
dec esi
jne 0x100720fc
cmp ecx, dword [ebp - 4]
jb 0x100720e1
mov esi, dword [ebp - 0x10]
mov ebx, dword [esi + 0x80]
add ebx, edi
je 0x100721e5
add ebx, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebx], 0
je 0x1007219a
mov eax, dword [ebx]
add eax, edi
push eax
call dword [ebp - 0x70]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x100721e5
mov esi, dword [ebx + 4]
add esi, edi
cmp dword [esi], 0
je 0x1007218c
mov ebx, eax
mov eax, dword [esi]
test eax, eax
jns 0x10072175
movzx eax, ax
jmp 0x1007217a
add eax, 2
add eax, edi
push eax
push ebx
call dword [ebp - 0x38]
mov dword [esi], eax
add esi, 4
cmp dword [esi], 0
jne 0x1007216a
mov ebx, dword [ebp - 4]
add ebx, 0x14
mov dword [ebp - 4], ebx
cmp dword [ebx], 0
jne 0x1007214b
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x3c]
cmp dword [ecx + eax + 0xc0], 0
je 0x100721cf
mov eax, dword [esi + 0xc0]
mov ebx, dword [eax + edi + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x100721cf
mov esi, ecx
push 0
push 1
push esi
call eax
lea ebx, [ebx + 4]
add al, 0x8b
invalid
test eax, eax
jne 0x100721bc
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x28]
push 0
push 1
push dword [ebp - 0x48]
add eax, edi
call eax
neg eax
sbb eax, eax
and eax, edi
jmp 0x100721e7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret