joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14029ab60
Capabilities:
Check if file exists
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rdx
mov rbx, rcx
mov edx, 0x80
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1405088f4], eax
jle 0x14029abe5
lea rcx, [0x1405088f4]
call fcn.140118680
cmp dword [0x1405088f4], 0xffffffff
jne 0x14029abe5
lea rdx, [0x1403ecda0]
lea rcx, [0x1405088f8]
call fcn.14008c350
lea rcx, [0x14037ff20]
call fcn.1401129d0
nop
lea rcx, [0x1405088f4]
call fcn.140118618
mov edx, 0x104
lea rcx, [rbp - 0x19]
call fcn.1400ab794
nop
movdqa xmm0, xmmword [0x1403a9cf0]
movdqu xmmword [rbp + 0xf], xmm0
xor esi, esi
mov word [rbp - 1], si
mov rax, qword [rbp - 0x11]
mov rcx, qword [rbp - 0x19]
sub rax, rcx
sar rax, 1
cmp qword [rbx + 0x18], 8
jb 0x14029ac1f
mov rbx, qword [rbx]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
je 0x14029ac74
mov rdx, qword [rbp - 0x19]
lea rcx, [rbp + 0x1f]
call fcn.14008c350
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.14008aed0
lea rcx, [rbp + 0x1f]
call fcn.14007a7c0
jmp 0x14029acff
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x14029acbb
lea rcx, str.GetVolumeInformation_failed
mov qword [rbp - 0x21], rcx
mov dword [rbp - 0x29], ebx
lea rcx, [rbp - 0x21]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x29]
mov qword [rsp + 0x20], rcx
lea rdx, [0x14044e636]
mov rcx, rax
call fcn.14000789c
cmp ebx, 0x3ed
je 0x14029acef
cmp ebx, 0x80310000
je 0x14029acef
cmp ebx, 3
je 0x14029acef
cmp ebx, 0x80070005
je 0x14029acef
cmp ebx, 0x45d
je 0x14029acef
test ebx, ebx
jle 0x14029ad16
movzx ebx, bx
or ebx, 0x80070000
jmp 0x14029ad16
lea rdx, [0x1403a9f84]
lea rcx, [rbp - 1]
call fcn.14007d630
xor r8d, r8d
lea rdx, [0x1405088f8]
lea rcx, [rbp - 1]
call fcn.140086d00
mov byte [rdi], al
mov ebx, esi
lea rcx, [rbp - 1]
call fcn.14007a7c0
nop
lea rcx, [rbp - 0x19]
call fcn.1400f6764
mov eax, ebx
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140112420
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14029c528
Capabilities:
Modify service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
mov rbx, rcx
movzx esi, dl
mov r8d, 3
mov rdx, rcx
lea rcx, [rax - 0x18]
call fcn.14008f444
mov edi, eax
test eax, eax
jns 0x14029c594
cmp qword [rbx + 0x18], 8
jb 0x14029c565
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x48]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rbx
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, edi
mov qword [rsp + 0x20], rax
mov edx, 0x201
call fcn.14008f264
jmp 0x14029c64f
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
lea edx, [r9 - 1]
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceConfig2W]
nop dword [rax + rax]
test eax, eax
jne 0x14029c5f2
cmp qword [rbx + 0x18], 8
jb 0x14029c5cc
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x48]
lea r9, str.Failed_to_query_the_service__ws_delayed_auto_start_info.
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov qword [rsp + 0x20], rbx
mov edx, 0x206
call fcn.1400929ac
mov edi, eax
jmp 0x14029c64f
cmp dword [rsp + 0x60], esi
je 0x14029c64d
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x60]
mov edx, 3
mov dword [rsp + 0x60], esi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
test eax, eax
jne 0x14029c64d
cmp qword [rbx + 0x18], 8
jb 0x14029c625
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x48]
lea r9, str.Failed_to_change_the_service__ws_start_type_to_delayed_auto_start__d.
mov dword [rsp + 0x28], esi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov edx, 0x20d
mov qword [rsp + 0x20], rbx
call fcn.1400929ac
jmp 0x14029c5ee
xor edi, edi
lea rcx, [rsp + 0x30]
call fcn.140092a20
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14029c674
Capabilities:
Modify service

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rsp + 0x88], rax
and qword [r11 - 0x38], 0
mov rsi, rdx
mov rdx, rcx
mov rbx, rcx
lea rcx, [r11 - 0x38]
mov r8d, 2
call fcn.14008f444
mov edi, eax
test eax, eax
jns 0x14029c6f8
cmp qword [rbx + 0x18], 8
jb 0x14029c6c6
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x98]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rbx
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, edi
mov qword [rsp + 0x20], rax
mov edx, 0x1e6
call fcn.14008f264
jmp 0x14029c7bb
xor r8d, r8d
lea rcx, [rsp + 0x68]
mov rdx, rsi
call fcn.140146120
cmp qword [rsp + 0x80], 8
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
cmovae rax, qword [rsp + 0x68]
or edx, 0xffffffff
and qword [rsp + 0x50], 0
mov r9d, edx
and qword [rsp + 0x48], 0
mov r8d, edx
and qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
nop dword [rax + rax]
test eax, eax
jne 0x14029c7af
cmp qword [rbx + 0x18], 8
jb 0x14029c76d
mov rbx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x14029c777
mov rsi, qword [rsi]
mov rcx, qword [rsp + 0x98]
lea r9, str.Cannot_add_the_dependency_on__ws_to_service__ws
mov qword [rsp + 0x28], rbx
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov edx, 0x1f7
mov qword [rsp + 0x20], rsi
call fcn.1400929ac
lea rcx, [rsp + 0x68]
mov edi, eax
call fcn.14007a7c0
jmp 0x14029c7bb
lea rcx, [rsp + 0x68]
call fcn.14007a7c0
xor edi, edi
lea rcx, [rsp + 0x60]
call fcn.140092a20
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140112420
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14029c7f4
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x60
movzx esi, dl
mov rbx, rcx
lea rdx, [rbp + 0x30]
call fcn.14008f338
mov edi, eax
test eax, eax
jns 0x14029c850
cmp qword [rbx + 0x18], 8
jb 0x14029c822
mov rbx, qword [rbx]
mov rcx, qword [rbp + 0x18]
lea rax, str.Failed_to_query_launch_protected_level_of_service__ws
mov qword [rsp + 0x28], rbx
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, edi
mov qword [rsp + 0x20], rax
mov edx, 0x21b
call fcn.14008f264
jmp 0x14029c971
and qword [rbp - 0x18], 0
lea rcx, [rbp - 0x18]
mov r8d, 2
mov rdx, rbx
call fcn.14008f444
mov edi, eax
test eax, eax
jns 0x14029c8a5
cmp qword [rbx + 0x18], 8
jb 0x14029c877
mov rbx, qword [rbx]
mov rcx, qword [rbp + 0x18]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rbx
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, edi
mov qword [rsp + 0x20], rax
mov edx, 0x21e
call fcn.14008f264
jmp 0x14029c968
mov edi, esi
mov esi, dword [rbp + 0x30]
add edi, edi
cmp esi, edi
je 0x14029c966
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x14029c913
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x14029c8cb
mov rcx, qword [rbx]
mov qword [rbp - 0x10], rcx
lea rdx, [0x140451449]
lea rcx, str.Change_the_service_protection_level
mov dword [rbp + 0x30], edi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x30]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 8]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov dword [rbp + 0x38], esi
call fcn.140003f50
mov rcx, qword [rbp - 0x18]
lea r8, [rbp - 0x20]
mov edx, SafeArrayGetDim
mov dword [rbp - 0x20], edi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
test eax, eax
jne 0x14029c966
cmp qword [rbx + 0x18], 8
jb 0x14029c93d
mov rbx, qword [rbx]
mov rcx, qword [rbp + 0x18]
lea r9, str.Failed_to_change_the_service__ws_launch_protected_level_to__d.
mov dword [rsp + 0x28], edi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov edx, 0x232
mov qword [rsp + 0x20], rbx
call fcn.1400929ac
mov edi, eax
jmp 0x14029c968
xor edi, edi
lea rcx, [rbp - 0x18]
call fcn.140092a20
mov rbx, qword [rsp + 0x80]
mov eax, edi
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14029c98c
Capabilities:
Modify service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x70
and qword [rax + 0x20], 0
mov esi, edx
mov rdx, rcx
mov rbx, rcx
lea rcx, [rax + 0x20]
mov r8d, 2
call fcn.14008f444
mov edi, eax
test eax, eax
jns 0x14029c9f7
cmp qword [rbx + 0x18], 8
jb 0x14029c9c8
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x78]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rbx
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, edi
mov qword [rsp + 0x20], rax
mov edx, 0x18a
call fcn.14008f264
jmp 0x14029cad7
and qword [rsp + 0x50], 0
or edx, 0xffffffff
and qword [rsp + 0x48], 0
mov r9d, edx
and qword [rsp + 0x40], 0
mov r8d, esi
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x98]
and qword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
nop dword [rax + rax]
test eax, eax
jne 0x14029ca76
cmp qword [rbx + 0x18], 8
jb 0x14029ca4c
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x78]
lea r9, str.Cannot_change_the_service_start_type_to__d_for_service__ws
mov qword [rsp + 0x28], rbx
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov edx, 0x19c
mov dword [rsp + 0x20], esi
call fcn.1400929ac
mov edi, eax
jmp 0x14029cad7
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x14029cad5
cmp qword [rbx + 0x18], 8
jb 0x14029ca8a
mov rbx, qword [rbx]
lea rcx, str.Changed_the_service_start_type_successfully
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
lea rdx, [0x1404512c5]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x90], esi
mov qword [rsp + 0x30], rcx
xor r8d, r8d
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140008b90
xor edi, edi
lea rcx, [rsp + 0x98]
call fcn.140092a20
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14029cd80
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rbp + 0x47], rax
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x14029cdb4
call fcn.14007e73c
and qword [rbp + 0x17], 0
lea rcx, [rbp + 0x17]
mov r8d, Compress
mov rdx, rbx
call fcn.14008f444
mov edi, eax
test eax, eax
jns 0x14029ce09
cmp qword [rbx + 0x18], 8
jb 0x14029cddb
mov rbx, qword [rbx]
mov rcx, qword [rbp + 0x5f]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rbx
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, edi
mov qword [rsp + 0x20], rax
mov edx, 0x13c
call fcn.14008f264
jmp 0x14029cf48
mov rcx, qword [rbp + 0x17]
lea r8, [rbp + 0x27]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
mov qword [rbp + 0x37], rax
mov dword [rbp + 0x3f], eax
lea edx, [rax + 1]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
mov edi, eax
call fcn.140091ae4
mov r8, rax
cmp dword [rax], 4
jbe 0x14029cecf
mov eax, dword [rbp + 0x2b]
lea rdx, [0x14045136c]
mov ecx, dword [rbp + 0x3f]
mov dword [rbp + 0xb], eax
mov eax, dword [rbp + 0x27]
mov dword [rbp + 0xf], eax
lea rax, str.Service_status
mov qword [rbp + 0x1f], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 5]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 3]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 7]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0xb]
mov dword [rbp - 9], ecx
mov ecx, dword [rbp + 0x3b]
mov dword [rbp - 5], ecx
mov ecx, dword [rbp + 0x37]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf]
mov dword [rbp - 1], ecx
mov ecx, dword [rbp + 0x33]
mov dword [rbp + 3], ecx
mov ecx, dword [rbp + 0x2f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1f]
mov dword [rbp + 7], ecx
mov rcx, r8
mov qword [rsp + 0x20], rax
call fcn.140011144
test edi, edi
jne 0x14029cf02
cmp qword [rbx + 0x18], 8
jb 0x14029cedd
mov rbx, qword [rbx]
mov rcx, qword [rbp + 0x5f]
lea r9, str.Could_not_stop_service__ws
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov qword [rsp + 0x20], rbx
mov edx, 0x14f
call fcn.1400929ac
mov edi, eax
jmp 0x14029cf48
call fcn.140091ae4
cmp dword [rax], 4
jbe 0x14029cf46
cmp qword [rbx + 0x18], 8
jb 0x14029cf16
mov rbx, qword [rbx]
lea rcx, str.Stop_command_sent_to_SCM_successfully
mov qword [rbp + 0x1f], rbx
mov qword [rbp + 0xf], rcx
lea rdx, [0x140451294]
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0xf]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400056ec
xor edi, edi
lea rcx, [rbp + 0x17]
call fcn.140092a20
mov eax, edi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140112420
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14029da14
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rdi, rdx
mov rbx, rcx
mov rax, qword [rdx + 0x10]
test rax, rax
jne 0x14029da53
call fcn.14007e73c
mov rax, qword [rdi + 0x10]
test rax, rax
jne 0x14029da53
and qword [rbx], rax
and qword [rbx + 8], rax
and qword [rbx + 0x10], rax
jmp 0x14029db88
and dword [rbp + 0x18], 0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x14029da64
mov rcx, qword [rdi]
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rdx, [rbp + 0x18]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, eax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
nop dword [rax + rax]
test eax, eax
jne 0x14029dacf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14029daaa
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rbp + 8]
lea rdx, str.CertificateUtils::ConvertBase64StringToByteArray_failed_to_calculate_needed_size_of_converted_message
mov qword [rsp + 0x20], rdx
mov r9d, eax
lea r8, str.amcorewcd_sourcecommoncertificateutilscertificateutils.cpp
mov edx, 0x2f
call fcn.140121d1c
int3
mov edx, dword [rbp + 0x18]
lea rcx, [rbp - 0x20]
call fcn.1400b73f8
nop
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x14029daea
mov rdi, qword [rdi]
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rcx, [rbp + 0x18]
mov qword [rsp + 0x20], rcx
mov r9, qword [rbp - 0x20]
mov r8d, 1
mov edx, eax
mov rcx, rdi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
nop dword [rax + rax]
test eax, eax
jne 0x14029db5b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14029db36
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rbp + 8]
lea rdx, str.CertificateUtils::ConvertBase64StringToByteArray_failed_conversion
mov qword [rsp + 0x20], rdx
mov r9d, eax
lea r8, str.amcorewcd_sourcecommoncertificateutilscertificateutils.cpp
mov edx, 0x3e
call fcn.140121d1c
int3
mov rax, qword [rbp - 0x20]
mov qword [rbx], rax
mov rax, qword [rbp - 0x18]
mov qword [rbx + 8], rax
mov rax, qword [rbp - 0x10]
mov qword [rbx + 0x10], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
and qword [rbp - 0x10], 0
lea rcx, [rbp - 0x20]
call fcn.14007a750
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14029e8d4
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x50
cmp qword [rdx + 0x18], 8
mov rbx, rdx
mov rdi, rcx
mov rax, rdx
jb 0x14029e8f2
mov rax, qword [rdx]
xor edx, edx
mov qword [rsp + 0x20], rax
mov r9d, 0x20000
xor r8d, r8d
lea ecx, [rdx + 0xa]
call qword [sym.imp.CRYPT32.dll_CertOpenStore]
nop dword [rax + rax]
mov qword [rbp + 0x30], rax
test rax, rax
jne 0x14029e950
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x14029ea17
cmp qword [rbx + 0x18], 8
jb 0x14029e940
mov rbx, qword [rbx]
lea rcx, str.Faild_to_open_certificate_store
lea rdx, [0x140451751]
jmp 0x14029e9a1
mov rdx, qword [rdi]
xor r9d, r9d
mov rcx, rax
lea r8d, [r9 + 1]
call qword [sym.imp.CRYPT32.dll_CertAddCertificateContextToStore]
nop dword [rax + rax]
test eax, eax
jne 0x14029e9d1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
call fcn.140091ae4
cmp dword [rax], 2
jbe 0x14029ea17
cmp qword [rbx + 0x18], 8
jb 0x14029e993
mov rbx, qword [rbx]
lea rcx, str.Faild_to_add_certificate_to_desired_store
lea rdx, [0x140451751]
mov qword [rbp - 0x10], rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, rax
mov dword [rbp + 0x28], edi
mov qword [rbp + 0x38], rbx
call fcn.140003418
jmp 0x14029ea17
call fcn.140091ae4
cmp dword [rax], 5
jbe 0x14029ea15
cmp qword [rbx + 0x18], 8
jb 0x14029e9e5
mov rbx, qword [rbx]
lea rcx, str.Successfully_installed_certificate_to_desired_store
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x38], rcx
lea rdx, [0x140451722]
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x38]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.1400056ec
xor edi, edi
lea rcx, [rbp + 0x30]
call fcn.14029e480
mov eax, edi
add rsp, 0x50
pop rdi
pop rbx
pop rbp
ret
Function at 0x1402a8010
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1404e1800]
xor rax, rsp
mov qword [rsp + 0x78], rax
and qword [rsp + 0x30], 0
lea rdi, str.Sense
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14008c350
mov r8d, 4
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.14008f444
mov ebx, eax
lea rcx, [rsp + 0x58]
call fcn.14007a7c0
test ebx, ebx
jns 0x1402a809d
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rdi
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str.amcorewcd_sourceonboardingonboardingmanager_senseservicesettings.cpp
mov edx, 0x43
call fcn.14008f264
jmp 0x1402a811e
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x1402a80de
lea r9, str.Cannot_query_service_status_for_service__ws
lea edx, [rax + 0x49]
lea r8, str.amcorewcd_sourceonboardingonboardingmanager_senseservicesettings.cpp
mov qword [rsp + 0x20], rdi
mov rcx, qword [rsp + 0x88]
call fcn.1400929ac
mov ebx, eax
jmp 0x1402a811e
or dword [rsp + 0x40], 1
mov rcx, qword [0x1404e2548]
test rcx, rcx
jne 0x1402a80fb
call fcn.14007e73c
mov rcx, qword [0x1404e2548]
lea rdx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_SetServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x1402a811c
lea r9, str.Cannot_set_service_status_for_service__ws
lea edx, [rax + 0x51]
jmp 0x1402a80c1
xor ebx, ebx
lea rcx, [rsp + 0x30]
call fcn.140092a20
mov eax, ebx
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140112420
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1402b4c64
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ebx, ebx
mov dil, dl
cmp qword [rcx + 0x18], 8
jb 0x1402b4c7d
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
cmp eax, 1
je 0x1402b4cba
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dil, 1
jne 0x1402b4ca9
cmp eax, 0xb7
je 0x1402b4cba
test eax, eax
jg 0x1402b4cb1
mov ebx, eax
jmp 0x1402b4cba
movzx ebx, ax
or ebx, 0x80070000
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1402c7c78
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r14
sub rsp, 0x48
mov r14, rdx
mov rsi, rcx
and dword [rsp + 0x30], 0
mov ecx, 0x28
call fcn.140112a2c
mov rdi, rax
mov qword [rsp + 0x70], rax
mov eax, 1
mov dword [rdi + 8], eax
mov dword [rdi + 0xc], eax
lea rax, vtable.std::_Ref_count_obj_class_sense::machineStateCollection::MachinePropertiesState_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov rcx, rbx
call fcn.1400ed530
mov byte [rbx + 0x14], 0
or eax, 0xffffffff
mov dword [rbx], eax
mov dword [rbx + 0x10], eax
and qword [r14], 0
and qword [r14 + 8], 0
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.1400718e8
mov dword [rsp + 0x30], 3
mov rdx, r14
mov rcx, rsi
call fcn.1402c7db4
lea rdx, [rsi + 8]
lea rcx, [0x1404fde78]
call fcn.1400b23f0
test al, al
je 0x1402c7d9d
lea r9, [rsp + 0x80]
mov r8d, 2
lea rdx, [rsp + 0x78]
mov ecx, SysAllocStringByteLen
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1402c7d8a
call fcn.140091ae4
cmp dword [rax], 3
jbe 0x1402c7d82
mov dword [rsp + 0x70], ebx
lea rcx, str.Machine_properties_state_collector___failed_to_get_SystemSecureBootInformation
mov qword [rsp + 0x88], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x20], rcx
xor r8d, r8d
lea rdx, [0x1404554c7]
mov rcx, rax
call fcn.14000615c
mov rax, qword [r14]
mov dword [rax + 0x10], ebx
jmp 0x1402c7d9d
mov al, byte [rsp + 0x78]
mov rcx, qword [r14]
and dword [rcx + 0x10], 0
test al, al
setne al
mov byte [rcx + 0x14], al
mov rax, r14
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret