Function at 0x46d060
Capabilities:
Delete file
Execute command
Persist via windows service

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cef13
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xec
mov eax, dword [0x4ef400]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0046ce00
mov ecx, dword [esi + 0x10]
mov eax, accept
sub eax, ecx
cmp eax, 0xa
jb 0x46d457
cmp dword [esi + 0x14], 0xf
jbe 0x46d0c2
mov esi, dword [esi]
push ecx
push esi
push 0xa
push str.sc_create
push ecx
push dword [ebp - 0xe4]
lea ecx, [ebp - 0xfc]
call fcn.0045c9e0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xe8]
mov eax, edx
mov ecx, dword [ebp - 0xec]
sub eax, ecx
push 0x56
push str._binpath__C:ProgramDataMTA_San_Andreas_AllCommon_temp3FairplayKD.sys__typekernel
cmp eax, 0x56
jb 0x46d130
cmp edx, 0xf
lea esi, [ebp - 0xfc]
lea eax, [ecx + 0x56]
cmova esi, dword [ebp - 0xfc]
add esi, ecx
mov dword [ebp - 0xec], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x56], 0
lea eax, [ebp - 0xfc]
jmp 0x46d14a
mov byte [ebp - 0xe4], 0
lea ecx, [ebp - 0xfc]
push dword [ebp - 0xe4]
push 0x56
call fcn.0045b0f0
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xe8]
cmp ecx, 0xf
jbe 0x46d1c1
mov edx, dword [ebp - 0xfc]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46d1b7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46d1b7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004ca5d3
add esp, 8
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
cmova eax, dword [ebp - 0x2c]
push eax
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0xf
mov byte [ebp - 0xfc], 0
call esi
add esp, 4
lea eax, [ebp - 0xe0]
push 0xb0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 4
lea ecx, [ebp - 0xe0]
push 2
push str.temp_reg_file.reg
call fcn.00458730
mov edx, str.Windows_Registry_Editor_Version_5.00_n_n
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str._HKEY_LOCAL_MACHINESYSTEMControlSet001Services_fairplaykd2__n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str._Type_dword:00000001_n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str._Start_dword:00000003_n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str._ErrorControl_dword:00000001_n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str._ImagePath_hex_2_:5c_00_3f_00_3f_00_5c_00_43_00_3a_00_5c_00_50_00_72_00_6f_00_67_00_72_00_61_00_6d_00_44_00_61_00_74_00_61_00_5c_00_4d_00_54_00_41_00_20_00_53_00_61_00_6e_00_20_00_41_00_6e_00_64_00_72_00_65_00_61_00_73_00_20_00_41_00_6c_00_6c_00_5c_00_43_00_6f_00_6d_00_6d_00_6f_00_6e_00_5c_00_74_00_65_00_6d_00_70_00_33_00_5c_00_46_00_61_00_69_00_72_00_70_00_6c_00_61_00_79_00_4b_00_44_00_2e_00_73_00_79_00_73_00_00_00_n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str._DisplayName__FairplayKD2__n_n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str._HKEY_LOCAL_MACHINESYSTEMControlSet001Services_fairplaykd2Security__n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str._Security_hex:01_00_14_80_a0_00_00_00_ac_00_00_00_14_00_00_00_30_00_00_00_02__n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str.__00_1c_00_01_00_00_00_02_80_14_00_ff_01_0f_00_01_01_00_00_00_00_00_01_00_00__n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str.__00_00_02_00_70_00_05_00_00_00_00_00_14_00_30_00_03_00_01_01_00_00_00_00_00__n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str.__01_00_00_00_00_00_00_14_00_fd_01_02_00_01_01_00_00_00_00_00_05_12_00_00_00__n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str.__00_00_18_00_ff_01_0f_00_01_02_00_00_00_00_00_05_20_00_00_00_20_02_00_00_00__n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str.__00_14_00_8d_01_02_00_01_01_00_00_00_00_00_05_04_00_00_00_00_00_14_00_8d_01__n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str.__02_00_01_01_00_00_00_00_00_05_06_00_00_00_01_01_00_00_00_00_00_05_12_00_00__n
lea ecx, [ebp - 0xe0]
call fcn.00472210
mov edx, str.__00_01_01_00_00_00_00_00_05_12_00_00_00_n
lea ecx, [ebp - 0xe0]
call fcn.00472210
lea ecx, [ebp - 0xdc]
call fcn.004586a0
test eax, eax
jne 0x46d347
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0xe0]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push str.regedit__s_temp_reg_file.reg
call esi
add esp, 4
push str.temp_reg_file.reg
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov eax, dword [ebp - 0xe0]
add esp, 4
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe4], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x90], 0
mov dword [ebp - 0xdc], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
je 0x46d3cd
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0xa0]
cmp dword [eax], ecx
jne 0x46d3cd
mov edx, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x8c]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xc0]
mov dword [eax], ecx
mov eax, dword [ebp - 0xb0]
mov dword [eax], edx
cmp byte [ebp - 0x94], 0
je 0x46d3e1
lea ecx, [ebp - 0xdc]
call fcn.004586a0
lea ecx, [ebp - 0xdc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x78]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x46d438
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x46d42e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x46d42e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004ca5d3
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ca5c5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00446680
int3