Function at 0x1009f4d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1019bcfd
push eax
mov dword fs:[0], esp
sub esp, 0x20
push edi
mov edi, ecx
mov eax, dword [edi + 0x7c]
test eax, eax
jle 0x1009f445
dec eax
mov dword [edi + 0x7c], eax
test eax, eax
jg 0x1009f445
push 0xc
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xregex_error_enum_std::regex_constants::error_type_]
mov eax, dword [edi + 0x78]
test eax, eax
jle 0x1009f45c
dec eax
mov dword [edi + 0x78], eax
test eax, eax
jg 0x1009f45c
push 0xb
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xregex_error_enum_std::regex_constants::error_type_]
push ebx
mov ebx, dword [ebp + 8]
mov byte [ebp - 0x10], 0
test ebx, ebx
je 0x1009f85a
push esi
mov esi, 1
mov eax, dword [ebx + 4]
cmp eax, 0x15
ja case.0x1009f47e.0
jmp dword [eax*4 + 0x1009f888]
mov eax, dword [edi + 0x60]
mov dword [ebp - 0x10], eax
test eax, 0x100
jne 0x1009f4a9
mov eax, dword [edi]
cmp eax, dword [edi + 0x4c]
jne 0x1009f4a9
mov eax, dword [ebp - 0x10]
and eax, 0xffffff01
mov dword [ebp - 0x10], eax
jmp 0x1009f838
mov eax, dword [edi]
dec eax
cmp byte [eax], 0xa
setne al
mov dword [ebp - 0x10], eax
jmp 0x1009f838
mov eax, dword [edi]
cmp eax, dword [edi + 0x50]
jne 0x1009f4ac
mov eax, dword [edi + 0x60]
shr eax, 1
and al, 1
mov dword [ebp - 0x10], eax
jmp 0x1009f838
mov eax, dword [edi + 0x60]
test eax, 0x100
jne 0x1009f52a
mov ecx, dword [edi]
cmp ecx, dword [edi + 0x4c]
jne 0x1009f52a
cmp ecx, dword [edi + 0x50]
jne 0x1009f503
test al, 0xc
mov edx, 0
mov eax, dword [ebx + 8]
sete dl
and eax, 1
cmp edx, eax
sete al
mov dword [ebp - 0x10], eax
jmp 0x1009f838
test al, 4
jne 0x1009f53b
movzx eax, byte [ecx]
cmp byte [eax + 0x1021f7c8], 0
je 0x1009f53b
mov eax, dword [ebx + 8]
mov edx, 1
and eax, edx
cmp edx, eax
sete al
mov dword [ebp - 0x10], eax
jmp 0x1009f838
mov ecx, dword [edi]
cmp ecx, dword [edi + 0x50]
jne 0x1009f550
test al, 8
jne 0x1009f53b
movzx eax, byte [ecx - 1]
jmp 0x1009f50a
mov eax, dword [ebx + 8]
xor edx, edx
and eax, 1
cmp edx, eax
sete al
mov dword [ebp - 0x10], eax
jmp 0x1009f838
movzx eax, byte [ecx - 1]
xor edx, edx
movzx ecx, byte [ecx]
mov al, byte [eax + 0x1021f7c8]
cmp al, byte [ecx + 0x1021f7c8]
mov eax, dword [ebx + 8]
setne dl
and eax, 1
cmp edx, eax
sete al
mov dword [ebp - 0x10], eax
jmp 0x1009f838
mov eax, dword [edi]
cmp eax, dword [edi + 0x50]
je 0x1009f855
mov cl, byte [eax]
cmp cl, 0xa
je 0x1009f855
cmp cl, 0xd
je 0x1009f855
inc eax
mov dword [edi], eax
jmp case.0x1009f47e.1
push dword [edi + 0x5c]
mov eax, dword [ebx + 0x18]
lea ecx, [ebp - 0x14]
push dword [edi + 0x70]
mov edx, dword [ebx + 0x1c]
add eax, edx
push eax
push dword [edi + 0x50]
push dword [edi]
call fcn.100a1470
add esp, 0x14
mov eax, dword [eax]
cmp eax, dword [edi]
je 0x1009f855
mov dword [edi], eax
jmp case.0x1009f47e.1
mov eax, dword [edi]
cmp eax, dword [edi + 0x50]
je 0x1009f855
push ebx
mov ecx, edi
call fcn.100a0d80
test al, al
je 0x1009f855
mov byte [ebp - 0x10], 0
jmp 0x1009f841
mov esi, dword [edi]
lea ecx, [ebp - 0x2c]
cmp eax, 0xb
push edi
sete bl
call fcn.1009ffa0
mov eax, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
push dword [eax + 0x14]
call fcn.1009f410
cmp al, bl
jne 0x1009f64e
mov eax, dword [ebp - 0x2c]
lea esi, [edi + 4]
mov dword [edi], eax
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x1009f648
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
sub eax, ecx
sar eax, 2
push eax
push ecx
mov ecx, esi
call fcn.100a1d80
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov byte [ebp - 0x10], 1
jmp 0x1009f650
mov dword [edi], esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10075f50
mov ebx, dword [ebp + 8]
jmp case.0x1009f47e.1
mov edx, dword [ebx + 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi]
mov dword [ecx + edx*8], eax
mov esi, dword [edi + 0x10]
cmp dword [ebx + 0x14], esi
jae case.0x1009f47e.1
nop
mov eax, dword [edi + 4]
dec esi
mov ecx, esi
shr ecx, 5
lea edx, [eax + ecx*4]
mov ecx, esi
mov eax, dword [edx]
and ecx, 0x1f
btr eax, ecx
mov dword [edx], eax
cmp dword [ebx + 0x14], esi
jb 0x1009f680
jmp case.0x1009f47e.1
cmp byte [edi + 0x65], 0
mov esi, dword [ebx + 0x14]
jne 0x1009f6b5
cmp dword [esi + 0x14], 0
je case.0x1009f47e.1
mov edx, dword [esi + 0x14]
mov ecx, edx
mov eax, dword [edi + 4]
and edx, 0x1f
shr ecx, 5
lea ecx, [eax + ecx*4]
mov eax, dword [ecx]
bts eax, edx
mov dword [ecx], eax
mov edx, dword [esi + 0x14]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi]
mov dword [ecx + edx*8 + 4], eax
jmp case.0x1009f47e.1
mov esi, dword [ebx + 0x14]
mov ecx, esi
mov eax, dword [edi + 4]
shr ecx, 5
lea edx, [eax + ecx*4]
mov ecx, esi
and ecx, 0x1f
mov eax, 1
shl eax, cl
test dword [edx], eax
je case.0x1009f47e.1
mov ecx, dword [edi + 0x14]
mov eax, dword [edi]
lea edx, [ecx + esi*8]
mov ecx, dword [edx]
mov edx, dword [edx + 4]
cmp ecx, edx
je 0x1009f732
push dword [edi + 0x5c]
push edx
mov edx, dword [edi + 0x70]
push ecx
push dword [edi + 0x50]
lea ecx, [ebp - 0x18]
push eax
call fcn.100a15c0
add esp, 0x14
mov eax, dword [eax]
cmp eax, dword [edi]
je 0x1009f855
mov dword [edi], eax
jmp case.0x1009f47e.1
push ebx
mov ecx, edi
call fcn.100a0930
mov edx, dword [ebp - 0x10]
test al, al
movzx ecx, dl
cmove ecx, esi
mov byte [ebp - 0x10], cl
jmp case.0x1009f47e.12
mov eax, dword [ebx + 8]
mov ecx, edi
shr eax, 1
and al, 1
push 0
movzx eax, al
push eax
push ebx
call fcn.100a0b40
mov edx, dword [ebp - 0x10]
test al, al
movzx ecx, dl
cmove ecx, esi
mov byte [ebp - 0x10], cl
jmp case.0x1009f47e.12
mov edx, dword [ebx + 0x14]
cmp dword [edx + 0x24], 0
jne case.0x1009f47e.12
mov ecx, dword [edx + 0x20]
mov eax, dword [edi + 0x40]
push dword [eax + ecx*8]
mov eax, dword [edx + 8]
mov ecx, edi
shr eax, 1
and al, 1
movzx eax, al
push eax
push edx
call fcn.100a0b40
mov edx, dword [ebp - 0x10]
test al, al
movzx ecx, dl
cmove ecx, esi
mov byte [ebp - 0x10], cl
jmp case.0x1009f47e.12
test dword [edi + 0x60], 0x2020
je 0x1009f7c8
mov eax, dword [edi + 0x4c]
cmp eax, dword [edi]
je 0x1009f7d5
cmp byte [edi + 0x74], 0
je 0x1009f7db
mov eax, dword [edi]
cmp eax, dword [edi + 0x50]
je 0x1009f7db
mov byte [ebp - 0x10], 1
jmp case.0x1009f47e.12
cmp byte [edi + 0x64], 0
je 0x1009f7ec
mov ecx, edi
call fcn.100a0ee0
test al, al
je case.0x1009f47e.12
mov eax, dword [edi]
lea esi, [edi + 4]
lea ebx, [edi + 0x24]
mov dword [edi + 0x20], eax
cmp ebx, esi
je 0x1009f814
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
sar eax, 2
push eax
push ecx
mov ecx, ebx
call fcn.100a1d80
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [edi + 0x14]
lea ecx, [edi + 0x34]
cmp ecx, eax
je 0x1009f82f
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
sar eax, 3
push eax
push edx
call fcn.100a1c40
mov byte [edi + 0x64], 1
xor ebx, ebx
mov eax, dword [ebp - 0x10]
test al, al
jne 0x1009f859
mov esi, 1
test ebx, ebx
je 0x1009f859
mov ebx, dword [ebx + 0xc]
mov dword [ebp + 8], ebx
test ebx, ebx
jne 0x1009f472
jmp 0x1009f859
mov byte [ebp - 0x10], 1
pop esi
mov eax, dword [edi + 0x7c]
pop ebx
test eax, eax
jle 0x1009f866
inc eax
mov dword [edi + 0x7c], eax
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
sete al
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 4
push 0xd
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xregex_error_enum_std::regex_constants::error_type_]
nop
jle 0x1009f882
invalid
or dword [eax], edx
xor eax, 0x851009f8
hlt