Function at 0x100738d3
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 0x10073939
cmp dword [edx], ecx
je 0x10073d14
test ebx, ebx
je 0x10073d14
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 0x100739e2
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 0x100739be
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 0x1007396b
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 0x10073a07
cmp ebx, 0x1000
jb 0x10073d17
jmp 0x10073a10
cmp ebx, 4
jb 0x10073c38
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 0x10073b6f
and ecx, 0x7fff
lea edi, [ecx + 0x90]
add edi, esi
mov eax, dword [edi]
and eax, 0xffffff
cmp eax, dword [ebp - 0x24]
jne 0x10073b6c
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 0x10073ac8
add ecx, 2
add edi, 2
mov ax, word [ecx]
cmp ax, word [edi]
jne 0x10073ac8
add ecx, 2
add edi, 2
mov ax, word [ecx]
cmp ax, word [edi]
jne 0x10073ac8
add ecx, 2
add edi, 2
mov ax, word [ecx]
cmp ax, word [edi]
jne 0x10073ac8
sub edx, 1
jne 0x10073a8b
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 0x10073afe
mov eax, ecx
neg eax
sbb eax, eax
and eax, 0x102
cmp eax, 3
jb 0x10073b69
jne 0x10073b0d
cmp ecx, 0x2000
jae 0x10073b69
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 + 0x100abba0]
mov eax, dword [ebp - 0x20]
shr eax, 8
cmp dword [ebp - 0x20], 0x200
movzx eax, byte [eax + 0x100ab578]
cmovb eax, ecx
inc word [esi + eax*2 + 0x83d2]
movzx eax, word [edx*2 + 0x100ab99a]
jmp 0x10073b7d
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 0x10073b9c
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 0x10073c2f
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.100733ba
test eax, eax
jne 0x10073d3d
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 0x10073a13
test ebx, ebx
je 0x10073d0c
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 0x10073d01
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.100733ba
test eax, eax
jne 0x10073d3d
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 0x10073d04
mov ecx, dword [ebp - 4]
test ebx, ebx
jne 0x10073c43
mov edx, dword [ebp - 0x30]
jmp 0x1007391c
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 0x10073d42
not eax
shr eax, 0x1f
pop edi
pop esi
pop ebx
leave
ret