Function at 0x140001f30
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rbp + 0x2f], xmm0
mov ecx, 0x20
call fcn.140002c40
mov rdi, rax
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x3f], 0x12
mov qword [rbp + 0x47], 0x1f
movups xmm0, xmmword [str.C:AMIDEWINx64.EXE]
movups xmmword [rax], xmm0
movzx eax, word [0x1400046c0]
mov word [rdi + 0x10], ax
mov byte [rdi + 0x12], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov ecx, 0x20
call fcn.140002c40
mov rdx, rax
mov qword [rbp - 0x19], rax
movdqa xmm0, xmmword [0x140004900]
movdqu xmmword [rbp - 9], xmm0
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movzx ecx, word [rdi + 0x10]
mov word [rax + 0x10], cx
mov ecx, dword [str.__BS]
mov dword [rax + 0x12], ecx
movzx eax, byte [0x1400046c8]
mov byte [rdx + 0x16], al
mov byte [rdx + 0x17], 0
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140001ff8
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 0x19]
call fcn.140002800
xorps xmm0, xmm0
movups xmmword [rbp + 0xf], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1f], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1f], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x140002074
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000206f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000206f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002c7c
movdqa xmm0, xmmword [0x1400048d0]
movdqu xmmword [rbp - 9], xmm0
mov byte [rbp - 0x19], 0
lea rcx, [rbp + 0xf]
cmp qword [rbp + 0x27], 0xf
cmova rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
test eax, eax
jne 0x1400020cb
lea rdx, str.Disk_serial_number_changed_successfully_to
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001900
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x1400020be
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.140002a10
jmp 0x1400020de
lea rdx, str.Failed_to_change_disk_serial_number._Please_ensure_AMIDEWIN_is_correctly_installed_and_you_have_the_necessary_permissions.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001900
lea rdx, [0x140001ae0]
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
mov rdx, qword [rbp + 0x27]
cmp rdx, 0xf
jbe 0x14000212d
inc rdx
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002128
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002128
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002c7c
movdqa xmm0, xmmword [0x1400048d0]
movdqu xmmword [rbp + 0x1f], xmm0
mov byte [rbp + 0xf], 0
mov edx, 0x20
mov rcx, rdi
call fcn.140002c7c
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140002c20
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret