Function at 0x140042b20
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x14006b030]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor ebx, ebx
mov r8d, 0x104
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x30]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], bx
jne 0x140042b70
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbx
lea rcx, [rsp + 0x50]
call fcn.140006d20
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
mov edi, 0xa
mov r8d, edi
lea rdx, str.memory.exe
lea rcx, [rsp + 0x70]
call fcn.140006d20
nop
lea r10, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae r10, qword [rsp + 0x50]
mov rax, qword [rsp + 0x60]
lea rdx, [r10 + rax*2]
mov rcx, r10
call fcn.14002ec80
cmp rax, rdx
je 0x140042c5e
nop dword [rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140042bff
cmp cx, 0x2f
jne 0x140042c08
add rax, 2
cmp rax, rdx
jne 0x140042bf0
cmp rax, rdx
je 0x140042c5e
nop dword [rax]
lea rcx, [rdx - 2]
movzx r8d, word [rcx]
cmp r8w, 0x5c
je 0x140042c31
nop
cmp r8w, 0x2f
je 0x140042c31
mov rdx, rcx
cmp rax, rcx
jne 0x140042c10
jmp 0x140042c5e
cmp rax, rdx
je 0x140042c5e
nop word [rax + rax]
lea rcx, [rdx - 2]
movzx r8d, word [rcx]
cmp r8w, 0x5c
je 0x140042c56
cmp r8w, 0x2f
jne 0x140042c5e
mov rdx, rcx
cmp rax, rcx
jne 0x140042c40
sub rdx, r10
sar rdx, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov r8, rdx
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.140006d20
nop
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.1400428c0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x140042ce6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042cdb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042cdb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
nop dword [rax + rax]
call fcn.140048710
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140042d2c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042d27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042d27
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140048710
movdqa xmm0, xmmword [0x14005c320]
movdqu xmmword ds:[rbp - 0x80], xmm0
mov word [rsp + 0x70], bx
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov r9d, 0xffffffff
mov r8d, 3
lea rdx, [rbp - 0x50]
call fcn.140047bcc
mov edx, eax
test eax, eax
jne 0x140042db6
mov eax, dword [rbp - 0x40]
test al, 1
mov ecx, 0x1ff
mov r8d, 0x16d
cmovne ecx, r8d
mov dword [rsp + 0x34], ecx
bt eax, 0xa
jae 0x140042da8
mov ecx, dword [rbp - 0x3c]
cmp ecx, 0xa000000c
jne 0x140042d99
lea edi, [rdx + 4]
jmp 0x140042ddb
nop dword [rax]
cmp ecx, 0xa0000003
je 0x140042ddb
movzx edi, al
and edi, 0x10
or edi, 0x20
shr edi, 4
jmp 0x140042ddb
mov dword ds:[rsp + 0x34], 0xffff
sub eax, 2
je 0x140042dd4
sub eax, 1
je 0x140042dd4
sub eax, 0x32
je 0x140042dd4
cmp eax, 0x46
jne 0x140042dd9
mov ebx, 1
mov edi, ebx
mov dword [rsp + 0x30], edx
lea rax, [0x14006b078]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
test edi, edi
je 0x140042e87
nop
cmp edi, 1
jne 0x140042e36
lea rdx, str.Place_memory.exe_and_place_it_near_Tool_program.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140006b20
lea rdx, [0x140008c60]
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]
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
lea rcx, [rbp - 0x70]
call fcn.140005e00
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x140042e95
lea rdx, ds:[rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042e90
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042e90
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test edx, edx
jne 0x140042eba
jmp 0x140042e05
call fcn.140048710
mov rcx, qword ds:[rbp + 0x1e0]
xor rcx, rsp
call fcn.1400486f0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x30]
call fcn.140004f50
int3