Function at 0x1400022b4
Capabilities:
Execute command
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x1a0
mov rax, qword [0x1401be0c0]
xor rax, rsp
mov qword [rbp + 0x90], rax
xor esi, esi
lea rbx, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rbp - 0x18], rbx
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14000230b
lea ecx, [rsi + 5]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x1401be19c], 0x7fffffff
jne 0x14000232d
mov dword [0x1401be19c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
lea rcx, [rbp + 0x70]
call fcn.140001e5c
nop
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
mov rcx, qword [rbp + 0x80]
sub rax, rcx
cmp rax, 0x4c
jb 0x140002888
lea rax, [rbp + 0x70]
mov r14d, reloc.WS2_32.dll_ntohs
cmp qword [rbp + 0x88], r14
cmova rax, qword [rbp + 0x70]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], Ordinal_79
lea r9, str.REG_ADD__HKLMSOFTWAREMicrosoftCryptography___v_MachineGuid__t_REG_SZ__d__
lea r8, [rbp + 0x70]
mov dl, byte [rsp + 0x40]
lea rcx, [rbp - 0x10]
call fcn.140004270
nop
lea r8d, [r14 - 0xb]
lea rdx, [0x140145168]
lea rcx, [rbp - 0x10]
call fcn.140003acc
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r14
mov byte [rax], sil
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], r14
cmova rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov r15d, 0x1000
mov rdx, qword [rsp + 0x60]
cmp rdx, r14
jbe 0x140002442
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r15
jb 0x14000243d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000243d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140115d44
movdqa xmm0, xmmword [0x1401aa3f0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], sil
mov rdx, qword [rbp + 8]
cmp rdx, r14
jbe 0x14000248e
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, r15
jb 0x140002489
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002489
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140115d44
mov rcx, qword [rbp + 0x80]
sub rdi, rcx
cmp rdi, 0x72
jb 0x140002882
lea rax, [rbp + 0x70]
cmp qword [rbp + 0x88], r14
cmova rax, qword [rbp + 0x70]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], WSAStartup
lea r9, str.REG_ADD__HKLMSYSTEMCurrentControlSetControlIDconfigDBHardware_Profiles0001___v_HwProfileGuid__t_REG_SZ__d__
lea r8, [rbp + 0x70]
mov dl, byte [rsp + 0x40]
lea rcx, [rbp + 0x10]
call fcn.140004270
nop
mov r8d, 5
lea rdx, str.___f
lea rcx, [rbp + 0x10]
call fcn.140003acc
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r14
mov byte [rax], sil
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], r14
cmova rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp - 0x80]
cmp rdx, r14
jbe 0x140002570
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r15
jb 0x14000256b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000256b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140115d44
movdqa xmm0, xmmword [0x1401aa3f0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], sil
mov rdx, qword [rbp + 0x28]
cmp rdx, r14
jbe 0x1400025bc
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, r15
jb 0x1400025b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400025b7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140115d44
mov edx, ntohl
lea rcx, [rbp + 0x30]
call fcn.140001da4
nop
mov r9d, 0x82
lea r8, str.REG_ADD__HKLMSYSTEMCurrentControlSetControlClass4d36e972_e325_11ce_bfc1_08002be103180001___v_NetworkAddress__t_REG_SZ__d__
xor edx, edx
mov rcx, rax
call fcn.14000435c
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x28], xmm1
mov qword [rax + 0x18], r14
mov qword [rax + 0x10], rsi
mov byte [rax], sil
mov r8d, 4
lea rdx, [0x140145168]
lea rcx, [rbp - 0x38]
call fcn.140003acc
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r14
mov byte [rax], sil
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], r14
cmova rcx, qword [rbp - 0x78]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp - 0x60]
cmp rdx, r14
jbe 0x140002696
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, r15
jb 0x140002691
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002691
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140115d44
movdqa xmm0, xmmword [0x1401aa3f0]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], sil
mov rdx, qword [rbp - 0x20]
cmp rdx, r14
jbe 0x1400026e8
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, r15
jb 0x1400026db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400026db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140115d44
movdqa xmm0, xmmword [0x1401aa3f0]
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x38], sil
mov rdx, qword [rbp + 0x48]
cmp rdx, r14
jbe 0x14000272a
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, r15
jb 0x140002725
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002725
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140115d44
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea rcx, [rbp + 0x50]
call fcn.140001da4
nop
mov r9d, reloc.WS2_32.dll_sendto
lea r8, str.AMIDEWINx64.EXE__SU
xor edx, edx
mov rcx, rax
call fcn.14000435c
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x48], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r14
mov byte [rax], sil
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], r14
cmova rcx, qword [rbp - 0x58]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rbp - 0x40]
cmp rdx, r14
jbe 0x1400027c5
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, r15
jb 0x1400027c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400027c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140115d44
movdqa xmm0, xmmword [0x1401aa3f0]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], sil
mov rdx, qword [rbp + 0x68]
cmp rdx, r14
jbe 0x140002810
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, r15
jb 0x14000280a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000280a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140115d44
nop
mov rdx, qword [rbp + 0x88]
cmp rdx, r14
jbe 0x14000284d
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, r15
jb 0x140002847
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002847
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140115d44
nop
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140115ce0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140001a34
nop
call fcn.140001a34
int3