Function at 0x1007c070
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017ab69
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x101f9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0xac]
mov dword [ebp - 0xac], 0
call fcn.10129130
mov dword [ebp - 4], 0
xor eax, eax
push 0x28
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push 0x101afff8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10007df0
mov byte [ebp - 4], 1
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x80000002
lea ecx, [ebp - 0xac]
call fcn.101292b0
mov byte [ebp - 0xa5], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10007d90
cmp byte [ebp - 0xa5], 0
jne 0x1007c1ee
cmp dword [0x101fdd8c], 0
je 0x1007c1dc
push 0
mov ecx, 0x101fdd8c
call fcn.10152790
mov eax, dword [0x101fdd8c]
cmp byte [eax + 0x54], 0
je 0x1007c1dc
cmp dword [eax + 0x58], 2
jb 0x1007c1dc
mov al, byte [eax + 0x5c]
mov byte [ebp - 0xa5], al
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push 0x16
push str.create_lock_key_failed
call fcn.10007df0
push 0x2ef
push str.RC::RCMonitorMain::SetOtherDesktopInjectSpecProcName
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src_sdhipswebprotect_src_sfguard_rcsfloadbasemain.cpp
lea eax, [ebp - 0x40]
mov ecx, 0x101fdd8c
push eax
push 2
call fcn.10153110
cmp byte [ebp - 0xa5], 0
je 0x1007c1d0
lea eax, [ebp - 0x40]
mov ecx, 0x101fdd8c
push eax
call fcn.10153430
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.10007d90
mov esi, dword [ebp - 0xac]
mov byte [ebp - 0xa5], 0
jmp 0x1007c9d7
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 3
mov esi, dword [edi]
mov edi, dword [edi + 4]
cmp esi, edi
je 0x1007c2a1
push esi
lea ecx, [ebp - 0xa4]
call fcn.100074c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
cmp dword [ebp - 0x64], 0
jne 0x1007c25c
cmp dword [ebp - 0x90], 8
lea eax, [ebp - 0xa4]
push dword [ebp - 0x94]
cmovae eax, dword [ebp - 0xa4]
push eax
call fcn.10007df0
jmp 0x1007c28b
push 1
push 0x101a91e0
call fcn.1000d420
cmp dword [ebp - 0x90], 8
lea eax, [ebp - 0xa4]
push dword [ebp - 0x94]
cmovae eax, dword [ebp - 0xa4]
lea ecx, [ebp - 0x74]
push eax
call fcn.1000d420
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xa4]
call fcn.10007d90
add esi, 0x18
cmp esi, edi
jne 0x1007c221
cmp dword [0x101fdd8c], 0
je 0x1007c361
push 0
mov ecx, 0x101fdd8c
call fcn.10152790
mov eax, dword [0x101fdd8c]
cmp byte [eax + 0x54], 0
je 0x1007c361
cmp dword [eax + 0x58], 2
jb 0x1007c361
mov al, byte [eax + 0x5c]
mov byte [ebp - 0xa5], al
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
cmovae eax, dword [ebp - 0x74]
push eax
lea eax, [ebp - 0x40]
push str.set_reg_spec_proc___s
push eax
call fcn.100b78e0
add esp, 0xc
lea eax, [ebp - 0x40]
mov ecx, 0x101fdd8c
push 0x2ff
push str.RC::RCMonitorMain::SetOtherDesktopInjectSpecProcName
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src_sdhipswebprotect_src_sfguard_rcsfloadbasemain.cpp
push eax
push 2
call fcn.10153110
cmp byte [ebp - 0xa5], 0
je 0x1007c355
lea eax, [ebp - 0x40]
mov ecx, 0x101fdd8c
push eax
call fcn.10153430
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.10007d90
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov byte [ebp - 4], 6
mov esi, dword [ebp - 0x64]
test esi, esi
je 0x1007c867
add esi, esi
mov dword [ebp - 0xc4], esi
lea eax, [esi + 1]
push eax
call fcn.10166d89
mov edi, eax
add esp, 4
mov dword [ebp - 0xb4], edi
test edi, edi
je 0x1007c7b5
cmp dword [ebp - 0x60], 8
lea ecx, [ebp - 0x74]
push esi
cmovae ecx, dword [ebp - 0x74]
push ecx
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
mov byte [edi + esi], 0
mov dword [ebp - 0x30], 0
push 0x1e
push str.owM90MwFe7WOUcWSL4bP37cncS
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.10007fa0
mov byte [ebp - 4], 7
push 0x108
mov dword [ebp - 0x44], 0
call fcn.101669dd
push 0x102
mov edi, eax
push 0
push edi
mov dword [ebp - 0x44], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [edi + 0x104], 0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0xb8], eax
jb 0x1007c45a
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0xb8], eax
test eax, eax
je 0x1007c4f8
cmp dword [ebp - 0x30], 0
je 0x1007c4f8
xor dl, dl
xor eax, eax
nop dword [eax + eax]
mov byte [eax + edi], al
inc eax
cmp eax, 0x100
jb 0x1007c470
xor eax, eax
mov word [edi + 0x100], 0
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xbc], eax
movzx esi, dl
mov dl, byte [eax + edi]
mov eax, dword [ebp - 0xb8]
movzx ecx, dl
mov dword [ebp - 0xc0], esi
movzx eax, byte [esi + eax]
add eax, dword [ebp - 0xbc]
mov esi, dword [ebp - 0xb0]
add ecx, eax
movzx eax, cl
lea ecx, [eax + edi]
mov dword [ebp - 0xbc], eax
mov al, byte [ecx]
mov byte [esi + edi], al
mov eax, dword [ebp - 0xc0]
mov byte [ecx], dl
xor edx, edx
mov ecx, dword [ebp - 0x30]
lea eax, [eax + 1]
div ecx
mov eax, esi
inc eax
mov dword [ebp - 0xb0], eax
cmp eax, 0x100
jb 0x1007c492
mov esi, dword [ebp - 0xc4]
mov dword [edi + 0x104], ecx
test esi, esi
je 0x1007c50d
mov edx, dword [ebp - 0xb4]
mov ecx, edi
push esi
call fcn.100e14b0
add esp, 4
push esi
push dword [ebp - 0xb4]
mov dword [ebp - 0x4c], 0
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
call fcn.10007fa0
mov byte [ebp - 4], 9
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x28]
call fcn.100e1540
mov esi, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x5c]
cmp eax, esi
je 0x1007c581
mov ecx, eax
call fcn.10007f50
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x5c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x4c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1007c5bb
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007c5b1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007c5b1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10166d53
add esp, 8
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
push eax
mov byte [ebp - 0x28], 0
call fcn.1012c1c0
add esp, 8
mov esi, eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x8c]
cmp eax, esi
je 0x1007c61b
mov ecx, eax
call fcn.10007d90
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x7c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.10007d90
cmp dword [0x101fdd8c], 0
je 0x1007c6ed
push 0
mov ecx, 0x101fdd8c
call fcn.10152790
mov eax, dword [0x101fdd8c]
cmp byte [eax + 0x54], 0
je 0x1007c6ed
cmp dword [eax + 0x58], 2
jb 0x1007c6ed
mov al, byte [eax + 0x5c]
mov byte [ebp - 0xa5], al
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x78], 8
cmovae eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0x28]
push str.spec_proc_cipher_text___s
push eax
call fcn.100b78e0
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, 0x101fdd8c
push 0x316
push str.RC::RCMonitorMain::SetOtherDesktopInjectSpecProcName
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src_sdhipswebprotect_src_sfguard_rcsfloadbasemain.cpp
push eax
push 2
call fcn.10153110
cmp byte [ebp - 0xa5], 0
je 0x1007c6e1
lea eax, [ebp - 0x28]
mov ecx, 0x101fdd8c
push eax
call fcn.10153430
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x28]
call fcn.10007d90
push 1
push dword [ebp - 0xb4]
call fcn.10166d53
add esp, 8
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x48]
cmp edx, 0x10
jb 0x1007c737
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1007c72d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007c72d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10166d53
add esp, 8
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
mov byte [ebp - 4], 7
push 0x108
push edi
call fcn.10166d53
add esp, 8
mov dword [ebp - 0x44], 0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x1007c79e
mov edx, dword [ebp - 0x40]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007c794
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007c794
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10166d53
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
jmp 0x1007c867
cmp dword [0x101fdd8c], 0
je 0x1007c867
push 0
mov ecx, 0x101fdd8c
call fcn.10152790
mov eax, dword [0x101fdd8c]
cmp byte [eax + 0x54], 0
je 0x1007c867
cmp dword [eax + 0x58], 2
jb 0x1007c867
mov al, byte [eax + 0x5c]
mov byte [ebp - 0xa5], al
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x28]
push 0x18
push str.alloc_cipher_text_failed
call fcn.10007df0
push 0x31d
push str.RC::RCMonitorMain::SetOtherDesktopInjectSpecProcName
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src_sdhipswebprotect_src_sfguard_rcsfloadbasemain.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fdd8c
push eax
push 2
call fcn.10153110
cmp byte [ebp - 0xa5], 0
je 0x1007c85b
lea eax, [ebp - 0x28]
mov ecx, 0x101fdd8c
push eax
call fcn.10153430
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.10007d90
push 0xf
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.DesktopSpecProc
mov byte [ebp - 0xa5], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10007df0
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x8c]
mov edi, dword [ebp - 0xc8]
lea ecx, [ebp - 0xac]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.10129c30
mov byte [ebp - 0xa6], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.10007d90
cmp byte [ebp - 0xa6], 0
jne 0x1007c998
cmp dword [0x101fdd8c], 0
mov byte [ebp - 0xa5], 0
je 0x1007c998
push 0
mov ecx, 0x101fdd8c
call fcn.10152790
mov eax, dword [0x101fdd8c]
cmp byte [eax + 0x54], 0
je 0x1007c998
cmp dword [eax + 0x58], 2
jb 0x1007c998
mov al, byte [eax + 0x5c]
mov byte [ebp - 0xa6], al
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x28]
push 0x16
push str.write_spec_proc_failed
call fcn.10007df0
push 0x325
push str.RC::RCMonitorMain::SetOtherDesktopInjectSpecProcName
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinoprotect_rtpsystem_src_sdhipswebprotect_src_sfguard_rcsfloadbasemain.cpp
lea eax, [ebp - 0x28]
mov ecx, 0x101fdd8c
push eax
push 2
call fcn.10153110
cmp byte [ebp - 0xa6], 0
je 0x1007c98c
lea eax, [ebp - 0x28]
mov ecx, 0x101fdd8c
push eax
call fcn.10153430
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.10007d90
mov esi, dword [ebp - 0xac]
mov eax, dword [esi + 4]
test eax, eax
je 0x1007c9bc
push 0x101bb23c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007c9bc
test edi, edi
je 0x1007c9bc
push edi
call eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8c]
call fcn.10007d90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.10007d90
mov dword [ebp - 4], 0xffffffff
push 8
push esi
call fcn.10166d53
mov al, byte [ebp - 0xa5]
add esp, 8
mov dword [ebp - 0xac], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101669b4
mov esp, ebp
pop ebp
ret