Function at 0x140057160
Capabilities:
Create thread
Enumerate process modules
Execute command
Log keystrokes via polling
Set registry value
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x420]
sub rsp, 0x520
mov rax, qword [0x140078010]
xor rax, rsp
mov qword [rbp + 0x410], rax
xor esi, esi
lea rcx, [0x14006d5c8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov dword [rbp + 0x3e4], esi
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftClipboard
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140057232
mov dword [rbp - 0x80], 4
lea rax, [rbp + 0x3e4]
mov qword [rbp - 0x78], rax
lea rax, [rbp - 0x80]
mov qword [rbp + 0x3e8], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp + 0x3e8]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 0xb]
xor r8d, r8d
lea rdx, [0x14005cec0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140057245
lea rdx, str.Registry_error_n
mov rcx, qword [0x14005c248]
call fcn.1400066d0
mov rcx, qword [0x14005c248]
cmp dword [rbp + 0x3e4], 0x1337
jne 0x140057261
lea rdx, str.___Driver_found_
jmp 0x1400572c4
lea rdx, str.___Driver_not_found._Loading...
call fcn.1400066d0
lea rdx, [0x140006690]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call fcn.14004dbb0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400572b6
mov dword [rbp + 0x3e4], esi
lea rax, [rbp + 0x3e4]
mov qword [rsp + 0x48], rax
mov rcx, rbx
call fcn.140052310
mov rcx, rbx
test rax, rax
jne 0x140057430
call fcn.14004e730
lea rdx, str.___Driver_loaded.
mov rcx, qword [0x14005c248]
call fcn.1400066d0
lea rdx, [0x140006690]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, str.___Press__Insert__when_game_is_fully_loaded...
mov rcx, qword [0x14005c248]
call fcn.1400066d0
lea rdx, [0x140006690]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x14005733c
mov qword [rbp + 0x3e8], 0x14
nop word [rax + rax]
lea rcx, [rbp + 0x3e8]
call fcn.140009e50
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x140057320
lea rcx, [0x14006d5c8]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov r8d, 7
lea rdx, str.cs2.exe
lea rcx, [rsp + 0x60]
call fcn.140006b90
lea rdx, [rsp + 0x60]
call fcn.1400569a0
mov eax, dword [0x14007a8e0]
mov dword [rbp - 0x80], eax
mov qword [rbp - 0x78], rsi
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftClipboard
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400574a0
mov dword [rsp + 0x60], 3
lea rax, [rbp - 0x80]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x60]
mov qword [rbp + 0x3e8], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp + 0x3e8]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
lea rdx, [0x14005cec0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400574b3
call fcn.14004e730
test al, al
jne 0x14005745c
lea rdx, str.____Failed_to_fully_unload_vulnerable_driver
mov rcx, qword [0x14005c3a8]
call fcn.140007b30
lea rdx, [0x140007d10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
cmp byte [rbp + 0x3e0], sil
jne 0x1400572b6
lea rdx, str.____Couldnt_load_the_Driver.
mov rcx, qword [0x14005c248]
call fcn.1400066d0
lea rdx, [0x140006690]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, str.Registry_error_n
mov rcx, qword [0x14005c248]
call fcn.1400066d0
mov rax, qword [rbp - 0x78]
mov qword [0x14007adb8], rax
lea rdx, str.___Got_cs2.exe_base:
mov rcx, qword [0x14005c248]
call fcn.1400066d0
mov rcx, rax
lea rdx, [0x14006d680]
call fcn.1400066d0
lea rdx, [0x1400530b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, qword [0x14007adb8]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x140056960]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rdx, [0x140006690]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rdi, rsi
mov edx, dword [0x14007a8e0]
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005757d
mov dword [rbp - 0x60], 0x438
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x14005757d
lea rdx, str.client.dll
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140057579
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
jmp 0x140057551
mov rdi, qword [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14007a8d8], rdi
lea rdx, str.___Got_client.dll_base:
mov rcx, qword [0x14005c248]
call fcn.1400066d0
mov rcx, rax
lea rdx, [0x14006d680]
call fcn.1400066d0
lea rdx, [0x1400530b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, qword [0x14007a8d8]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
lea rdx, [0x140056960]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
lea rdx, [0x140006690]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.TerminateProcess
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [rbp + 0x3e0], 0xc3
mov r8d, dword [0x14007a8e0]
mov dword [rbp - 0x80], r8d
lea r8, [rbp + 0x3e0]
mov qword [rbp - 0x70], r8
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x68], 1
mov qword [rsp + 0x50], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftClipboard
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x50]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400576c4
mov dword [rsp + 0x60], 2
lea rax, [rbp - 0x80]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x60]
mov qword [rbp + 0x3e8], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp + 0x3e8]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
lea rdx, [0x14005cec0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400576d7
lea rdx, str.Registry_error_n
mov rcx, qword [0x14005c248]
call fcn.1400066d0
mov qword [0x14007a8b8], rsi
mov ecx, 8
call fcn.1400583f8
lea rcx, [0x140054c60]
mov qword [rax], rcx
mov qword [rbp + 0x3e8], rax
lea rcx, [rbp + 0x3f8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400578b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x3f0], rax
test rax, rax
je 0x140057848
mov ecx, 8
call fcn.1400583f8
lea rcx, [0x140007e60]
mov qword [rax], rcx
mov qword [rbp + 0x3e8], rax
lea rcx, [rbp + 0x408]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400578b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x400], rax
test rax, rax
je 0x140057836
cmp dword [rbp + 0x3f8], 0
je 0x14005782a
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp + 0x3f8], eax
je 0x14005781e
movaps xmm0, xmmword [rbp + 0x3f0]
movdqa xmmword [rsp + 0x60], xmm0
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140057812
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x3f0], xmm0
cmp dword [rbp + 0x408], eax
je 0x14005782a
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp + 0x408], eax
je 0x14005781e
movaps xmm0, xmmword [rbp + 0x400]
movdqa xmmword [rsp + 0x60], xmm0
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
jne 0x140057812
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x400], xmm0
cmp dword [rbp + 0x3f8], eax
je 0x14005785a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0x408], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp + 0x3f8], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.1400582b0
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret