Function at 0x10072d26
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x34], 8
push edi
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x2c]
mov edi, dword [esi + 0x28]
mov ebx, dword [esi + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 8], eax
mov eax, ecx
and eax, 0x7fff
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], ecx
lea edx, [esi + 0x80]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x88]
mov dword [ebp - 0x30], edx
test ecx, ecx
jne 0x10072d8c
cmp dword [edx], ecx
je 0x10073167
test ebx, ebx
je 0x10073167
mov eax, dword [ebp - 0x1c]
add eax, ebx
and eax, 0x7fff
mov dword [ebp - 0x24], eax
mov eax, 0x1000
sub eax, ebx
cmp ecx, eax
cmovb eax, ecx
sub ecx, eax
mov dword [ebp - 0x2c], eax
add ebx, eax
mov dword [esi + 0x88], ecx
mov dword [ebp - 0x28], ebx
test eax, eax
je 0x10072e35
mov edi, dword [ebp - 0x24]
mov ebx, eax
mov eax, 0x8000
mov ecx, ebx
sub eax, edi
cmp eax, ebx
cmovb ecx, eax
lea eax, [esi + 0x90]
push ecx
push dword [esi + 0x84]
add eax, edi
mov dword [ebp - 0x24], ecx
push eax
call sub.msvcrt.dll_memcpy
mov eax, 0x101
add esp, 0xc
cmp edi, eax
jae 0x10072e11
sub eax, edi
cmp dword [ebp - 0x24], eax
cmovb eax, dword [ebp - 0x24]
push eax
push dword [esi + 0x84]
lea eax, [esi + 0x8090]
add eax, edi
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x24]
add edi, eax
add dword [esi + 0x84], eax
and edi, 0x7fff
sub ebx, eax
jne 0x10072dbe
mov ebx, dword [ebp - 0x28]
lea edx, [esi + 0x80]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
mov ecx, dword [ebp - 0xc]
mov eax, 0x8000
sub eax, ebx
cmp eax, ecx
cmovb ecx, eax
cmp dword [edx], 0
mov dword [ebp - 0xc], ecx
jne 0x10072e5a
cmp ebx, 0x1000
jb 0x1007316a
jmp 0x10072e63
cmp ebx, 4
jb 0x1007308b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + esi + 0x90]
xor edx, edx
and eax, 0xffffff
inc edx
mov ecx, eax
mov dword [ebp - 0x24], eax
shr ecx, 0x11
xor ecx, eax
and ecx, 0xfff
movzx eax, word [esi + ecx*2 + 0x29272]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, ax
mov word [esi + ecx*2 + 0x29272], ax
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
movzx eax, ax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0xc]
ja 0x10072fc2
and ecx, 0x7fff
lea edi, [ecx + 0x90]
add edi, esi
mov eax, dword [edi]
and eax, 0xffffff
cmp eax, dword [ebp - 0x24]
jne 0x10072fbf
mov ecx, dword [ebp - 0x10]
add ecx, 0x90
push 0x20
add ecx, esi
pop edx
add ecx, 2
add edi, 2
mov ax, word [ecx]
cmp ax, word [edi]
jne 0x10072f1b
add ecx, 2
add edi, 2
mov ax, word [ecx]
cmp ax, word [edi]
jne 0x10072f1b
add ecx, 2
add edi, 2
mov ax, word [ecx]
cmp ax, word [edi]
jne 0x10072f1b
add ecx, 2
add edi, 2
mov ax, word [ecx]
cmp ax, word [edi]
jne 0x10072f1b
sub edx, 1
jne 0x10072ede
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x28]
add eax, 0x90
mov dword [ebp - 0x2c], edx
add eax, esi
mov edx, ecx
sub edx, eax
mov al, byte [ecx]
xor ecx, ecx
sar edx, 1
cmp al, byte [edi]
sete cl
cmp dword [ebp - 0x2c], 0
lea eax, [ecx + edx*2]
mov ecx, dword [ebp - 0x20]
jne 0x10072f51
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x102
cmp eax, 3
jb 0x10072fbc
jne 0x10072f60
cmp ecx, 0x2000
jae 0x10072fbc
mov edi, dword [ebp - 0x14]
cmp eax, ebx
dec ecx
mov edx, ebx
cmovb edx, eax
mov dword [ebp - 0x20], ecx
mov dword [edi + 1], ecx
mov ecx, dword [ebp - 4]
lea eax, [edx - 3]
mov byte [edi], al
add edi, 3
mov al, byte [ecx]
shr al, 1
or al, 0x80
mov byte [ecx], al
mov eax, dword [ebp - 0x20]
and eax, 0x1ff
movzx ecx, byte [eax + 0x100aaa58]
mov eax, dword [ebp - 0x20]
shr eax, 8
cmp dword [ebp - 0x20], 0x200
movzx eax, byte [eax + 0x100aa430]
cmovb eax, ecx
inc word [esi + eax*2 + 0x83d2]
movzx eax, word [edx*2 + 0x100aa852]
jmp 0x10072fd0
xor edx, edx
inc edx
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
mov byte [edi], al
inc edi
movzx eax, al
shr byte [ecx], 1
inc word [esi + eax*2 + 0x8192]
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
mov dword [ebp - 0x2c], eax
jne 0x10072fef
push 8
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
cmp dword [ebp - 0x2c], 0
lea eax, [edi + 1]
mov ecx, 0x8000
cmovne eax, edi
add dword [ebp - 0x18], edx
add dword [ebp - 0x1c], edx
mov edi, eax
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x14], edi
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
add eax, edx
lea ecx, [esi + 0x1926a]
and eax, 0x7fff
sub ebx, edx
mov dword [ebp - 0x10], eax
cmp edi, ecx
mov dword [ebp - 0x28], ebx
mov ecx, dword [ebp - 4]
jbe 0x10073082
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x2c], ecx
mov ecx, esi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], edi
mov dword [esi + 0x38], eax
call fcn.10072816
test eax, eax
jne 0x10073190
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], edi
cmp ebx, 4
jae 0x10072e66
test ebx, ebx
je 0x1007315f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
inc dword [ebp - 0x18]
mov dl, byte [eax + esi + 0x90]
lea eax, [edi + 1]
mov byte [edi], dl
shr byte [ecx], 1
mov ecx, dword [ebp - 8]
sub ecx, 1
mov edi, ecx
mov dword [ebp - 8], ecx
cmove edi, dword [ebp - 0x34]
test ecx, ecx
mov dword [ebp - 8], edi
cmovne eax, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 4], eax
xor eax, eax
test ecx, ecx
mov ecx, 0x8000
sete al
inc eax
add edi, eax
movzx eax, dl
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], edi
inc word [esi + eax*2 + 0x8192]
inc edx
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0x1c], edx
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0xc], ecx
and eax, 0x7fff
dec ebx
mov dword [ebp - 0x10], eax
lea eax, [esi + 0x1926a]
cmp edi, eax
jbe 0x10073154
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x1c], edx
xor edx, edx
mov dword [esi + 0x24], ecx
mov ecx, esi
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], edi
mov dword [esi + 0x38], eax
call fcn.10072816
test eax, eax
jne 0x10073190
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
jmp 0x10073157
mov ecx, dword [ebp - 4]
test ebx, ebx
jne 0x10073096
mov edx, dword [ebp - 0x30]
jmp 0x10072d6f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x38], eax
xor eax, eax
mov dword [esi + 0x20], ebx
inc eax
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edi
jmp 0x10073195
not eax
shr eax, 0x1f
pop edi
pop esi
pop ebx
leave
ret