Function at 0x7097c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
movzx edx, byte [edi]
test dl, dl
jne 0x70994c
mov edx, dword [ebp - 0x2c]
mov eax, 0x1c
mov edx, dword [edx]
test edx, edx
je 0x7097f6
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
mov esi, 1
xor edx, edx
test esi, edx
mov eax, 0x28
jne 0x7097ee
mov ecx, dword [ebp - 0x28]
mov esi, dword [ecx + 0x178]
cmp byte [ecx + 0x1d8], 1
sbb ebx, 0xffffffff
test esi, esi
je 0x709913
cmp ebx, dword [esi + 0x18]
jg 0x7098ea
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x178], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x14], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ecx + 0x1d8]
test dl, dl
je 0x709863
mov eax, dword [esi + 0x10]
mov byte [ebx + eax - 1], dl
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
mov dword [esi], eax
mov ecx, eax
mov eax, dword [eax + 4]
mov dword [esi + 0xc], edx
mov dword [esi + 8], eax
cmp byte [edi], 0
jne 0x709892
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x164]
lea eax, [edx + 0x98]
cmp eax, ecx
je 0x7099ed
mov edx, dword [ebp - 0x2c]
mov dword [edx + 4], esi
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx], esi
test eax, eax
je 0x7099e6
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x64]
test edx, edx
je 0x7099e6
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 4]
test eax, eax
mov eax, 0
cmove edi, eax
mov dword [esp + 8], edi
mov eax, dword [ecx]
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 4]
mov dword [esp], eax
call edx
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov dword [esp + 4], eax
mov eax, dword [esi + 0x10]
mov dword [esp], eax
call dword [ecx + 0x10]
test eax, eax
je 0x7099fc
mov edx, dword [ebp - 0x24]
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], edx
jmp 0x70982c
mov dword [esp], 0x1c
call dword [ecx + 0xc]
test eax, eax
je 0x7099fc
lea ecx, [ebx + 0x18]
mov esi, eax
mov dword [ebp - 0x1c], ecx
mov dword [esp], ecx
mov edx, dword [ebp - 0x28]
call dword [edx + 0xc]
test eax, eax
mov dword [esi + 0x10], eax
je 0x709a2d
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], eax
jmp 0x709838
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
test ecx, ecx
je 0x70995e
cmp byte [ecx], 0x78
je 0x709a06
mov byte [ebp - 0x1d], 0
movzx ecx, byte [ebp - 0x1d]
xor ebx, ebx
mov byte [ebp - 0x48], 1
xor ecx, 1
mov esi, ecx
mov ecx, 1
test cl, cl
je 0x709989
cmp ebx, 0x24
jg 0x709987
cmp dl, byte [ebx + str.http:__www.w3.org_XML_1998_namespace]
je 0x709989
xor ecx, ecx
cmp byte [ebp - 0x48], 0
je 0x7099a6
mov eax, esi
test al, al
je 0x7099a6
cmp ebx, 0x1d
jg 0x7099a2
cmp dl, byte [ebx + str.http:__www.w3.org_2000_xmlns_]
je 0x7099a6
mov byte [ebp - 0x48], 0
add ebx, 1
movzx edx, byte [ebx + edi]
test dl, dl
jne 0x709976
movzx edx, byte [ebp - 0x48]
and edx, 1
mov esi, edx
xor edx, edx
cmp ebx, 0x1d
sete dl
xor eax, eax
cmp ebx, 0x24
sete al
and eax, ecx
cmp byte [ebp - 0x1d], al
je 0x7097ff
cmp byte [ebp - 0x1d], 1
sbb eax, eax
and eax, 2
add eax, 0x26
jmp 0x7097ee
xor eax, eax
jmp 0x7097ee
mov dword [edx + 0x9c], 0
jmp 0x709898
mov eax, 1
jmp 0x7097ee
cmp byte [ecx + 1], 0x6d
jne 0x70995e
cmp byte [ecx + 2], 0x6c
jne 0x70995e
movzx eax, byte [ecx + 3]
cmp al, 0x6e
je 0x709a40
test al, al
sete byte [ebp - 0x1d]
jmp 0x709962
mov dword [esp], esi
mov ecx, dword [ebp - 0x28]
call dword [ecx + 0x14]
mov eax, 1
jmp 0x7097ee
cmp byte [ecx + 4], 0x73
jne 0x70995e
cmp byte [ecx + 5], 0
mov eax, 0x27
jne 0x70995e
jmp 0x7097ee