Function at 0x140028b60
Capabilities:
Delete file
Execute command

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2c0
mov rax, qword [0x1400aa180]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
xor ebx, ebx
mov qword [rsp + 0x88], rbx
movups xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x1400924b0]
movdqu xmmword [rsp + 0x40], xmm1
movabs rax, 0x72657070616d646b
mov qword [rsp + 0x30], rax
mov byte [rsp + 0x38], bl
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.14004f290
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140028c0b
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028c06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028c06
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007f2e0
lea rdx, str.kdmapper_downloaded_successfully.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002bbd0
lea rdx, [0x14002bdb0]
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]
nop
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
movups xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [reloc.WS2_32.dll_getsockname]
movdqu xmmword [rsp + 0x40], xmm1
mov eax, dword [str.driver]
mov dword [rsp + 0x30], eax
movzx eax, word [0x140091fb0]
mov word [rsp + 0x34], ax
mov byte [rsp + 0x36], 0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.14004f290
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140028cbe
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028cb9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140028cb9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14007f2e0
lea rdx, str.driver_downloaded_successfully.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14002bbd0
lea rdx, [0x14002bdb0]
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]
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x1a0]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.C:_Windows_System32_kdmapper.exe
lea rcx, [rsp + 0x1a0]
call fcn.14002a850
nop
cmp qword [rsp + 0x228], 0
je 0x140028d6e
mov r8, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x78]
sub r8, rdx
lea rcx, [rsp + 0x1a0]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x1a8]
call fcn.14002aff0
test rax, rax
jne 0x140028d81
mov rax, qword [rsp + 0x1a0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x1a0]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
jmp 0x140028d81
lea rdx, str.Failed_to_open_kdmapper_file_for_writing._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002bbd0
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x90]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.C:_Windows_System32_driver.sys
lea rcx, [rsp + 0x90]
call fcn.14002a850
nop
cmp qword [rsp + 0x118], 0
je 0x140028e0a
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
sub r8, rdx
lea rcx, [rsp + 0x90]
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x98]
call fcn.14002aff0
test rax, rax
jne 0x140028e1d
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x90]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
jmp 0x140028e1d
lea rdx, str.Failed_to_open_driver_file_for_writing._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14002bbd0
lea rcx, str.cmd__c__cd_C:_Windows_System32__kdmapper.exe_driver.sys_mlx4_bus.sys_.data_
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.C:_Windows_System32_driver.sys
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rcx, str.C:_Windows_System32_kdmapper.exe
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [0x1400920f0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x90], rdi
mov rax, qword [rsp + 0x90]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x8c], edx
lea rcx, [rsp + 0x98]
call fcn.14002a7e0
lea rcx, [rsp + 0xa0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x138]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rax, qword [rsp + 0x1a0]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x1a0], rdi
mov rax, qword [rsp + 0x1a0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x19c], edx
lea rcx, [rsp + 0x1a8]
call fcn.14002a7e0
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rsp + 0x248]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140028f5c
mov rdx, qword [rsp + 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028f49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140028fef
call fcn.14007f2e0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rbx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140028f9b
mov rdx, qword [rsp + 0x88]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140028f96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140029040
call fcn.14007f2e0
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.14007ee90
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rdi
ret
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