Function at 0x140002770
Capabilities:
Create process on windows
Create thread
Get token membership
Log keystrokes via polling
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
mov byte [rbp + 0x30], 0
mov byte [rbp + 0x31], 0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x38], xmm1
xor r13d, r13d
mov qword [rbp + 0x48], r13
movabs rdi, 0x7ffffffffd050f7f
movabs rsi, 0x7fffffffffffffff
nop
mov ecx, 0x31
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x140002957
lea rdx, str.Made_by_EmirKefir._v._0.0.2_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003ed0
mov dword [rbp + 0x58], r13d
mov qword [rbp - 0x50], r13
mov dword [rbp + 0x50], 0
mov word [rbp + 0x54], 0x500
lea rax, [rbp - 0x50]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140002879
lea r8, [rbp + 0x58]
mov rdx, qword [rbp - 0x50]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmp dword [rbp + 0x58], 1
jne 0x140003084
lea rdx, str.Please_enter_the_key:
call fcn.140003ed0
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r13
mov qword [rbp + 0x98], 0xf
mov byte [rbp + 0x80], 0
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp + 0x80]
mov rcx, rbx
call fcn.140004880
lea rcx, [rbp + 0x80]
call fcn.140001f80
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
test al, al
jne 0x1400029a7
lea rdx, str.Key_invalid._n
call fcn.140003ed0
nop
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
jbe 0x1400027e0
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000294d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000306d
call fcn.1400053b0
jmp 0x1400027e0
mov ecx, 0x32
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140003135
lea rcx, [rbp + 0x60]
call fcn.140001270
mov rax, qword [rbp + 0x60]
cmp rax, rdi
jge 0x140002995
add rax, 0x2faf080
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x50]
call fcn.140004a20
jmp 0x1400027e0
mov qword [rbp - 0x50], rsi
lea rcx, [rbp - 0x50]
call fcn.140004a20
jmp 0x1400027e0
lea rdx, str.Key_valid__Hello__n
call fcn.140003ed0
lea rdx, str.Choose_mode:_n1___Auto__all_adapters__n2___Manual__specific_adapter__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003ed0
xor r12b, r12b
nop dword [rax]
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r13
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], 0
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rbp + 0xa0]
mov rcx, rbx
call fcn.140004880
lea rax, [rbp + 0xa0]
mov r14, qword [rbp + 0xa0]
mov r15, qword [rbp + 0xb8]
cmp r15, 0xf
cmova rax, r14
mov rcx, qword [rbp + 0xb0]
cmp rcx, 1
jne 0x140002b4a
cmp byte [rax], 0x31
jne 0x140002b4a
lea rcx, [rsp + 0x60]
call fcn.140001670
mov rbx, rax
lea rax, [rbp + 0x38]
cmp rax, rbx
je 0x140002ae5
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140002ac3
mov rdx, qword [rbp + 0x40]
call fcn.140004470
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x38]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002ab2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002ee7
call fcn.1400053b0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x38], xmm0
mov qword [rbp + 0x48], r13
mov rax, qword [rbx]
mov qword [rbp + 0x38], rax
mov rax, qword [rbx + 8]
mov qword [rbp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rbp + 0x48], rax
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140002b34
mov rdx, qword [rsp + 0x68]
call fcn.140004470
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002b2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002ee7
call fcn.1400053b0
mov rax, qword [rbp + 0x40]
cmp qword [rbp + 0x38], rax
je 0x140002ef5
mov r12b, 1
jmp 0x140002da9
lea rax, [rbp + 0xa0]
cmp r15, 0xf
cmova rax, r14
cmp rcx, 1
jne 0x140002d95
cmp byte [rax], 0x32
jne 0x140002d95
lea rcx, [rsp + 0x78]
call fcn.140001670
mov rbx, rax
lea rax, [rbp + 0x38]
cmp rax, rbx
je 0x140002bfb
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x140002bd9
mov rdx, qword [rbp + 0x40]
call fcn.140004470
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x38]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002bc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002eee
call fcn.1400053b0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x38], xmm0
mov qword [rbp + 0x48], r13
mov rax, qword [rbx]
mov qword [rbp + 0x38], rax
mov rax, qword [rbx + 8]
mov qword [rbp + 0x40], rax
mov rax, qword [rbx + 0x10]
mov qword [rbp + 0x48], rax
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140002c48
mov rdx, qword [rbp - 0x80]
call fcn.140004470
mov rdx, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x78]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002c43
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002eee
call fcn.1400053b0
mov rax, qword [rbp + 0x40]
cmp qword [rbp + 0x38], rax
je 0x140002ef5
lea rdx, str.Available_adapters:_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003ed0
mov rsi, r13
mov rax, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x38]
sub rax, rcx
sar rax, 5
test rax, rax
je 0x140002cea
mov rdi, r13
lea rbx, [rdi + rcx]
lea rdx, [rsi + 1]
mov rsi, rdx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
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]
mov rcx, rax
lea rdx, [0x140007580]
call fcn.140003ed0
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140002cb7
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140004b60
lea rdx, [0x140007930]
mov rcx, rax
call fcn.140003ed0
add rdi, 0x20
mov rax, qword [rbp + 0x40]
mov rcx, qword [rbp + 0x38]
sub rax, rcx
sar rax, 5
cmp rsi, rax
jb 0x140002c83
lea rdx, str.Enter_the_number_of_the_adapter_you_want_to_use:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003ed0
lea rdx, [rbp + 0x60]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64____ptr64]
mov edx, 0x3e8
mov r8d, 0xa
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::ignore_long_long___int64___int____ptr64]
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140002d8c
mov rax, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x38]
sub rax, rdx
sar rax, 5
cmp rcx, rax
ja 0x140002d8c
shl rcx, 5
add rdx, 0xffffffffffffffe0
add rdx, rcx
lea rcx, [rbp - 0x70]
call fcn.140003a90
nop
mov r8d, 1
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0x38]
call fcn.1400040b0
nop
lea r9, [fcn.140003a30]
mov edx, 0x20
mov r8d, 1
lea rcx, [rbp - 0x70]
call fcn.1400053f4
mov r12b, 1
jmp 0x140002da9
lea rdx, str.Invalid_selection._Please_try_again._n
jmp 0x140002d9c
lea rdx, str.Invalid_choice._Please_enter_1_for_Auto_or_2_for_Manual._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003ed0
nop
cmp r15, 0xf
jbe 0x140002de0
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140002dd8
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002fd7
mov rcx, r14
call fcn.1400053b0
test r12b, r12b
je 0x1400029d0
lea rdx, str.KefirNetwork_working..._Made_by_EmirKefir_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003ed0
mov eax, 1
xchg byte [rbp + 0x30], al
lea rcx, [rbp + 0x31]
mov qword [rbp + 0x60], rcx
lea rax, [rbp + 0x30]
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x60]
lea r8, [rbp - 0x50]
lea rcx, [rbp + 0x50]
call fcn.140005090
mov rdi, qword [rax]
mov qword [rax], r13
mov qword [rbp + 0x60], rdi
mov rbx, qword [rbp + 0x50]
test rbx, rbx
je 0x140002ea2
mov rcx, qword [rbx]
test rcx, rcx
je 0x140002e95
mov rdx, qword [rbx + 8]
call fcn.140004470
mov rcx, qword [rbx]
mov rdx, qword [rbx + 0x10]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
cmp rdx, 0x1000
jb 0x140002e85
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002fde
mov rcx, r8
call fcn.1400053b0
mov qword [rbx], r13
mov qword [rbx + 8], r13
mov qword [rbx + 0x10], r13
mov edx, 0x30
mov rcx, rbx
call fcn.1400053b0
lea rax, [rbp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9, rdi
lea r8, [0x140005230]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x70], rax
test rax, rax
je 0x140003074
cmp dword [rbp + 0x78], 0
jne 0x140002fe5
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rdx, str.No_active_network_adapters_found._Exiting..._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003ed0
lea rcx, [rbp - 0x50]
call fcn.140001270
movabs rcx, 0x7ffffffed5fa0dff
mov rax, qword [rbp - 0x50]
cmp rax, rcx
jge 0x140002f37
movabs rcx, 0x12a05f200
add rcx, rax
mov qword [rbp - 0x50], rcx
jmp 0x140002f45
movabs rax, 0x7fffffffffffffff
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x50]
call fcn.140004a20
nop
cmp r15, 0xf
jbe 0x140002f8a
lea rdx, [r15 + 1]
mov rax, r14
cmp rdx, 0x1000
jb 0x140002f81
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002f81
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1400053b0
nop
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
jbe 0x14000315c
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fcd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002fcd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400053b0
jmp 0x14000315c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp + 0x78], eax
jne 0x140002ffc
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp + 0x70]
movdqa xmmword [rbp + 0x60], xmm0
xor edx, edx
lea rcx, [rbp + 0x60]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x140003021
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x70], xmm0
mov rdx, qword [rbp + 0x98]
cmp rdx, 0xf
jbe 0x14000315c
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fcd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002fcd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rbp + 0x78], r13d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rdx, str.Requesting_admin_privileges..._n
call fcn.140003ed0
mov r8d, 0x104
lea rdx, [rbp + 0xc0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x1400030c1
lea rdx, str.Failed_to_get_module_file_name._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003ed0
jmp 0x14000315c
mov dword [rbp - 0x40], 0x70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
movups xmmword [rbp + 0x14], xmm0
mov qword [rbp + 0x24], rax
mov dword [rbp + 0x2c], eax
lea rax, str.runas
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0xc0]
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x10], 1
lea rcx, [rbp - 0x40]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x14000312c
lea rdx, str.Failed_to_restart_with_admin_privileges._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140003ed0
jmp 0x14000315c
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, str.https:__warthunder.com_
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x1400031aa
mov rdx, qword [rbp + 0x40]
call fcn.140004470
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x38]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400031a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400031a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400053b0
xor eax, eax
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140005390
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret