joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14025a678
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x2b8]
sub rsp, 0x390
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx + 0x10]
mov r15d, dword [rax + 0x10]
mov edx, 3
lea rcx, [rsp + 0x30]
call fcn.14006974c
nop
movdqa xmm0, xmmword [0x140307960]
movdqu xmmword [rbp + 0x60], xmm0
xor r12d, r12d
mov word [rbp + 0x50], r12w
mov edx, 0x104
lea rcx, [rbp + 0x70]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1400694ac
mov rcx, rax
lea rdx, [0x1402cc570]
call fcn.1400694ac
mov rcx, rax
lea rdx, str.Driversmssecflt.sys
call fcn.1400694ac
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.1400692c4
lea rcx, [rbp + 0x50]
call fcn.1400492c0
movups xmm0, xmmword [rbp + 0x30]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rbp + 0x40]
movups xmmword [rbp + 0x60], xmm1
movdqa xmm0, xmmword [0x140307960]
movdqu xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x30], r12w
lea rcx, [rbp + 0x30]
call fcn.1400492c0
lea r8, [rbp + 0x50]
lea rdx, [rbp + 0x30]
mov rcx, rsi
call fcn.14025b914
lea rcx, [r14 + 0x30]
mov rdx, rax
call fcn.1400b1b84
lea rcx, [rbp + 0x30]
call fcn.14004c91c
nop
lea rcx, [rbp + 0x50]
call fcn.1400492c0
nop
lea rcx, [rbp - 0x38]
call fcn.14006964c
lea rcx, [rbp - 0x38]
call qword [sym.imp.msvcp_win.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov dword [rsp + 0x20], r12d
lea rdx, [0x1402c7938]
lea rcx, [rbp + 0x30]
call fcn.140048750
nop
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea r8, [rsp + 0x20]
lea rdx, [rbp + 0x30]
mov rax, qword [rax + 0x58]
call qword [str.__v__]
mov bl, al
lea rcx, [rbp + 0x30]
call fcn.1400492c0
mov eax, dword [rsp + 0x20]
lea ecx, [r12 + 1]
test bl, bl
cmove eax, ecx
mov dword [rsp + 0x20], eax
mov dword [r14 + 0xa8], eax
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea rdx, [rbp + 0x30]
mov rax, qword [rax + 0x80]
call qword [str.__v__]
mov rbx, rax
lea rdi, [r14 + 0x10]
cmp rdi, rax
je 0x14025a842
mov rcx, rdi
call fcn.1400492c0
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
lea rcx, [rbp + 0x30]
call fcn.1400492c0
mov r8d, r15d
mov rdx, r14
mov rcx, rsi
call fcn.14025aff0
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.14027a710
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14025e3d8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
mov r8, rcx
lea rsi, [rdi + 0x10]
cmp qword [rsi + 0x18], 8
mov r9, rsi
mov r10, qword [rsi + 0x10]
jb 0x14025e40b
mov r9, qword [rsi]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
add r10, r10
je 0x14025e43a
movzx eax, byte [rdx + r9]
movabs r11, 0x100000001b3
xor rcx, rax
inc rdx
imul rcx, r11
cmp rdx, r10
jb 0x14025e41c
mov rdx, qword [r8 + 0x30]
and rdx, rcx
mov rcx, qword [r8 + 0x18]
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rdi
jne 0x14025e472
cmp qword [rcx + rdx*8], rdi
jne 0x14025e467
mov rax, qword [r8 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r8 + 0x18]
mov rax, qword [r8 + 8]
jmp 0x14025e46b
mov rax, qword [rdi + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x14025e47f
cmp qword [rcx + rdx*8], rdi
jne 0x14025e47f
mov rax, qword [rdi]
mov qword [rcx + rdx*8], rax
mov rax, qword [rdi + 8]
lea rcx, [rsi + 0x20]
mov rbx, qword [rdi]
mov qword [rax], rbx
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
dec qword [r8 + 0x10]
call fcn.1401e4fa4
mov rcx, rsi
call fcn.1400492c0
mov rcx, rdi
call fcn.14027abd8
mov rsi, qword [rsp + 0x38]
mov rax, r14
mov rdi, qword [rsp + 0x40]
mov qword [r14], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop r14
ret
Function at 0x14025ec54
Capabilities:
Compute adler32 checksum

Disassembly:
push rbx
sub rsp, 0x20
mov r11d, r8d
mov rbx, rdx
cmp r8d, 0x20
jbe 0x14025ec9a
mov dword [rsp + 0x40], ecx
test rdx, rdx
jne 0x14025ec79
mov eax, 1
jmp 0x14025ee3a
mov rax, qword [0x14040e310]
lea r8, [rsp + 0x40]
mov edx, r11d
mov rcx, rbx
call qword [str.__v__]
mov eax, dword [rsp + 0x40]
jmp 0x14025ee3a
mov r9d, ecx
movzx r10d, cx
shr r9d, 0x10
cmp r11d, 1
jne 0x14025ecdf
movzx eax, byte [rdx]
mov edx, 0xfff1
add r10d, eax
cmp r10d, edx
lea ecx, [r10 - 0xfff1]
cmovb ecx, r10d
add r9d, ecx
cmp r9d, edx
lea eax, [r9 - 0xfff1]
cmovb eax, r9d
shl eax, 0x10
or eax, ecx
jmp 0x14025ee3a
test rbx, rbx
je 0x14025ec6f
cmp r11d, 0x10
jae 0x14025ed30
test r8d, r8d
je 0x14025ed01
movzx eax, byte [rbx]
inc rbx
add r10d, eax
add r9d, r10d
add r11d, 0xffffffff
jne 0x14025ecef
mov edx, 0xfff1
lea r8d, [r10 - 0xfff1]
cmp r10d, edx
mov eax, 0x80078071
cmovb r8d, r10d
mul r9d
shr edx, 0xf
imul eax, edx, 0xf
add eax, r9d
shl eax, 0x10
or eax, r8d
jmp 0x14025ee3a
test r8d, r8d
je 0x14025ee30
mov rcx, r11
shr rcx, 4
movzx eax, byte [rbx]
add r11d, 0xfffffff0
add r10d, eax
movzx eax, byte [rbx + 1]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 2]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 3]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 4]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 5]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 6]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 7]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 8]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 9]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 0xa]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 0xb]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 0xc]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 0xd]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 0xe]
add r9d, r10d
add r10d, eax
movzx eax, byte [rbx + 0xf]
add r9d, r10d
add rbx, 0x10
add r10d, eax
add r9d, r10d
sub rcx, 1
jne 0x14025ed40
test r11d, r11d
je 0x14025ee08
movzx eax, byte [rbx]
inc rbx
add r10d, eax
add r9d, r10d
add r11d, 0xffffffff
jne 0x14025edf6
mov eax, 0x80078071
mul r10d
mov eax, 0x80078071
shr edx, 0xf
imul ecx, edx, 0xffff000f
mul r9d
add r10d, ecx
shr edx, 0xf
imul ecx, edx, 0xffff000f
add r9d, ecx
shl r9d, 0x10
or r9d, r10d
mov eax, r9d
add rsp, 0x20
pop rbx
ret
Function at 0x140264250
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
mov eax, dword [r8]
mov rdi, r8
lea rsi, [0x140000000]
not eax
mov r11d, edx
mov r10, rcx
cmp edx, 0xf
jl 0x14026435a
mov r9d, ecx
mov qword [rsp + 0x10], rbx
and r9d, 7
je 0x1402642b3
neg r9d
and r9d, 7
sub r11d, r9d
nop dword [rax]
movzx edx, byte [r10]
mov ecx, eax
xor rdx, rcx
inc r10
shr ecx, 8
movzx r8d, dl
mov eax, dword [rsi + r8*4 + 0x302690]
xor eax, ecx
sub r9d, 1
jne 0x140264290
mov ebx, r11d
sar ebx, 3
and r11d, 7
nop dword [rax]
mov rdx, qword [r10]
add r10, 8
mov ecx, eax
mov r9, rdx
shr r9, 0x20
mov r8d, edx
xor r8, rcx
mov rax, r8
shr rax, 0x10
movzx edx, al
mov rax, r8
shr rax, 8
movzx ecx, al
mov eax, dword [rsi + rdx*4 + 0x300e90]
xor eax, dword [rsi + rcx*4 + 0x301290]
mov rcx, r9
shr rcx, 0x10
movzx edx, cl
mov rcx, r9
shr rcx, 8
xor eax, dword [rsi + rdx*4 + 0x302290]
movzx edx, cl
mov rcx, r8
shr rcx, 0x18
xor eax, dword [rsi + rdx*4 + 0x301a90]
xor eax, dword [rsi + rcx*4 + 0x300a90]
mov rcx, r9
shr rcx, 0x18
xor eax, dword [rsi + rcx*4 + 0x302690]
movzx ecx, r8b
xor eax, dword [rsi + rcx*4 + 0x301e90]
movzx ecx, r9b
xor eax, dword [rsi + rcx*4 + 0x301690]
sub ebx, 1
jne 0x1402642c0
mov rbx, qword [rsp + 0x10]
test r11d, r11d
je 0x140264384
nop
movzx edx, byte [r10]
lea r10, [r10 + 1]
mov ecx, eax
xor rdx, rcx
shr ecx, 8
movzx r8d, dl
mov eax, dword [rsi + r8*4 + 0x302690]
xor eax, ecx
sub r11d, 1
jne 0x140264360
mov rsi, qword [rsp + 0x18]
not eax
mov dword [rdi], eax
pop rdi
ret
Function at 0x1402659fc
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov esi, r8d
mov edi, edx
mov rbx, rcx
test rcx, rcx
je 0x140265aec
test edx, edx
je 0x140265aec
cmp r8d, 0x80
jae 0x140265aec
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
je 0x140265a43
mov eax, ebp
jmp 0x140265af1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
cmp eax, 0xb7
je 0x140265a3c
cmp eax, 3
je 0x140265a69
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140265af1
lea rax, [rsp + 0x50]
mov edx, 0x5c
mov qword [rsp + 0x28], rax
mov r8d, edi
lea rax, [rsp + 0x68]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1402653cc
test eax, eax
js 0x140265af1
cmp dword [rsp + 0x50], ebp
jne 0x140265a9e
mov eax, 0x80070003
jmp 0x140265af1
mov edx, dword [rsp + 0x68]
lea r8d, [rsi + 1]
mov rcx, rbx
mov edi, edx
mov word [rbx + rdx*2], bp
call fcn.1402659fc
test eax, eax
js 0x140265af1
mov eax, 0x5c
xor edx, edx
mov rcx, rbx
mov word [rbx + rdi*2], ax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x140265a3c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, eax
cmp eax, 0xb7
je 0x140265a3c
jmp 0x140265a57
mov eax, 0x80070057
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x1402715d8
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r15d, r15d
mov r14, rdx
mov rdi, rcx
mov qword [rbp - 0x49], r15
mov rdx, rcx
lea rcx, [rbp - 0x49]
lea r8d, [r15 + 4]
call fcn.1402714a0
mov esi, eax
test eax, eax
jns 0x14027165c
cmp qword [rdi + 0x18], 8
jb 0x14027162e
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x5f]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rdi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, esi
mov qword [rsp + 0x20], rax
mov edx, 0x26
call fcn.14006982c
jmp 0x140271741
mov rcx, qword [rbp - 0x49]
lea rdx, [rbp - 0x41]
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
jne 0x1402716a0
cmp qword [rdi + 0x18], 8
jb 0x140271678
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x5f]
lea r9, str.Cannot_query_service_status_for_service__ls
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov qword [rsp + 0x20], rdi
mov edx, 0x2a
call fcn.1401d35cc
mov esi, eax
jmp 0x140271741
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x140271738
cmp qword [rdi + 0x18], 8
lea rax, str.Read_current_state_of_service
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 0x3c
jb 0x1402716d0
mov rdi, qword [rdi]
lea rcx, [0x1402cb810]
mov rax, r15
test rdi, rdi
je 0x1402716f0
mov rcx, rdi
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1402716e6
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rcx
mov dword [rbp + 0x1f], eax
lea rax, [rbp - 0x3d]
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x23], r15d
mov qword [rbp + 0x2f], 4
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403540dd]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
mov eax, dword [rbp - 0x3d]
mov esi, r15d
mov dword [r14], eax
cmp qword [rbp - 0x49], r15
je 0x140271751
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14027a710
lea r11, [rsp + 0xc0]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140271d6c
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor r14d, r14d
mov dword [rbp - 0x29], edx
mov rdi, rcx
mov qword [rbp - 0x21], r14
mov rdx, rcx
lea rcx, [rbp - 0x21]
lea r8d, [r14 + 2]
call fcn.1402714a0
mov esi, eax
test eax, eax
jns 0x140271dea
cmp qword [rdi + 0x18], 8
jb 0x140271dbc
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x5f]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rdi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, esi
mov qword [rsp + 0x20], rax
mov edx, 0x89
call fcn.14006982c
jmp 0x140271ef9
mov r8d, dword [rbp - 0x29]
or edx, 0xffffffff
mov rcx, qword [rbp - 0x21]
mov r9d, edx
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfigW]
test eax, eax
jne 0x140271e5e
cmp qword [rdi + 0x18], 8
jb 0x140271e2f
mov rdi, qword [rdi]
mov eax, dword [rbp - 0x29]
lea r9, str.Cannot_change_the_service_start_type_to__d_for_service__ws
mov rcx, qword [rbp + 0x5f]
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov qword [rsp + 0x28], rdi
mov edx, 0x9b
mov dword [rsp + 0x20], eax
call fcn.1401d35cc
mov esi, eax
jmp 0x140271ef9
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x140271ef6
cmp qword [rdi + 0x18], 8
lea rax, str.Changed_the_service_start_type_successfully
mov qword [rbp + 7], rax
lea rax, [rbp - 0x29]
mov qword [rbp + 0x17], rax
mov qword [rbp + 0xf], 0x58
mov qword [rbp + 0x1f], 4
jb 0x140271e9e
mov rdi, qword [rdi]
lea rcx, [0x1402cb810]
mov rax, r14
test rdi, rdi
je 0x140271ebe
mov rcx, rdi
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r14w
jne 0x140271eb4
lea eax, [rax*2 + 2]
mov qword [rbp + 0x27], rcx
mov dword [rbp + 0x2f], eax
mov dword [rbp + 0x33], r14d
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140354152]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
mov esi, r14d
cmp qword [rbp - 0x21], r14
je 0x140271f09
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14027a710
mov rsi, qword [rsp + 0x100]
add rsp, 0xd0
pop r14
pop rdi
pop rbp
ret
Function at 0x1402721f0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14b, dl
mov rdi, rcx
lea rdx, [rbp - 0x45]
call fcn.140272408
xor r15d, r15d
mov ebx, eax
test eax, eax
jns 0x140272268
cmp qword [rdi + 0x18], 8
jb 0x140272238
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x5f]
lea rax, str.Failed_to_query_launch_protected_level_of_service__ws
mov qword [rsp + 0x28], rdi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov edx, 0x117
call fcn.14006982c
mov eax, ebx
jmp 0x1402723e2
mov r8d, 2
mov qword [rbp - 0x41], r15
mov rdx, rdi
lea rcx, [rbp - 0x41]
call fcn.1402714a0
mov esi, eax
test eax, eax
jns 0x1402722c0
cmp qword [rdi + 0x18], 8
jb 0x14027228e
mov rdi, qword [rdi]
mov rcx, qword [rbp + 0x5f]
lea rax, str.Could_not_get_handle_for_service__ws
mov qword [rsp + 0x28], rdi
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov r9d, esi
mov qword [rsp + 0x20], rax
mov edx, 0x11a
call fcn.14006982c
mov rbx, qword [rbp - 0x41]
jmp 0x1402723d2
mov rbx, qword [rbp - 0x41]
movzx eax, r14b
add eax, eax
mov dword [rbp - 0x49], eax
cmp dword [rbp - 0x45], eax
je 0x1402723cf
call fcn.140048a14
mov ecx, 4
mov r10, qword [rax + 8]
cmp dword [r10], ecx
jbe 0x14027237d
cmp qword [rdi + 0x18], 8
lea rax, str.Change_the_service_protection_level
mov qword [rbp - 0x19], rax
lea rax, [rbp - 0x45]
mov qword [rbp - 9], rax
lea rax, [rbp - 0x49]
mov qword [rbp + 7], rax
mov rax, rdi
mov qword [rbp - 0x11], VarR8FromUI1
mov qword [rbp - 1], rcx
mov qword [rbp + 0xf], rcx
jb 0x140272325
mov rax, qword [rdi]
lea rdx, [0x1402cb810]
mov rcx, r15
test rax, rax
je 0x140272345
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x14027233b
lea eax, [rcx*2 + 2]
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], r15d
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403541bf]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001078
mov eax, dword [rbp - 0x49]
lea r8, [rbp - 0x41]
mov edx, SafeArrayGetDim
mov dword [rbp - 0x41], eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x1402723cf
cmp qword [rdi + 0x18], 8
jb 0x1402723a3
mov rdi, qword [rdi]
mov eax, dword [rbp - 0x49]
lea r9, str.Failed_to_change_the_service__ws_launch_protected_level_to__d.
mov rcx, qword [rbp + 0x5f]
lea r8, str.amcorewcd_sourcecommon_src_serviceutils.cpp
mov dword [rsp + 0x28], eax
mov edx, 0x12e
mov qword [rsp + 0x20], rdi
call fcn.1401d35cc
mov esi, eax
jmp 0x1402723d2
mov esi, r15d
test rbx, rbx
je 0x1402723e0
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14027a710
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140273de4
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
mov r8d, 0x104
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
xor esi, esi
test eax, eax
jne 0x140273ef2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 2
jbe 0x140273ee3
cmp qword [rbx + 0x18], 8
lea rax, [rbp - 0x29]
mov qword [rbp + 7], rax
lea rax, str.ComputeSenseModuleFullPath_failed
mov qword [rbp + 0x17], rax
lea rax, [rbp - 0x25]
mov qword [rbp + 0x27], rax
mov dword [rbp - 0x29], SafeArrayGetDim
mov qword [rbp + 0xf], 4
mov qword [rbp + 0x1f], CloseCompressor
mov dword [rbp - 0x25], edi
mov qword [rbp + 0x2f], 4
jb 0x140273e8d
mov rbx, qword [rbx]
lea rcx, [0x1402cb810]
mov rax, rsi
test rbx, rbx
je 0x140273eac
mov rcx, rbx
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], si
jne 0x140273ea3
lea eax, [rax*2 + 2]
mov qword [rbp + 0x37], rcx
mov dword [rbp + 0x3f], eax
mov dword [rbp + 0x43], esi
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140354418]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001078
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
jmp 0x140273f1d
mov edx, 0x5c
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
mov word [rax], si
cmp qword [rbx + 0x18], 8
jb 0x140273f0d
mov rbx, qword [rbx]
mov r8, rbx
mov edx, 0x104
mov rcx, rdi
call fcn.140041934
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14027a710
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1402740e0
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rdx]
add rcx, 0x60
cmp qword [rcx + 0x18], 8
jb 0x140274119
mov rcx, qword [rcx]
mov rdx, qword [rbx]
mov r8d, 0x105
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
xor esi, esi
test eax, eax
jne 0x140274134
mov byte [rbp - 0x29], 1
jmp 0x140274143
mov rcx, qword [rbx]
call qword [sym.imp.api_ms_win_core_shlwapi_legacy_l1_1_0.dll_PathFileExistsW]
test eax, eax
sete byte [rbp - 0x29]
call fcn.140048a14
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1402741e0
lea rax, str.irrelevantRulesPredicate_returned_with
mov qword [rbp + 0xf], 0x27
mov qword [rbp + 7], rax
mov rax, qword [rdi]
add rax, 0x60
cmp qword [rax + 0x18], 8
jb 0x14027417a
mov rax, qword [rax]
lea rdx, [0x1402cb810]
mov rcx, rsi
test rax, rax
je 0x140274199
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x140274190
lea eax, [rcx*2 + 2]
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x1f], eax
lea rax, [rbp - 0x29]
mov qword [rbp + 0x27], rax
mov dword [rbp + 0x23], esi
mov qword [rbp + 0x2f], 1
lea rax, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403543ad]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001078
mov al, byte [rbp - 0x29]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14027a710
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140275264
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403f04b0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
and qword [rcx], 0
lea rsi, [rcx + 8]
and dword [rsi], 0
mov r8d, 0x104
lea rdx, [rbp - 0x60]
lea rcx, str.SystemRoot
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x140275333
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsi], eax
call fcn.140048a14
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140275410
mov qword [rbp - 0x80], rsi
mov eax, 4
mov dword [rbp - 0x78], eax
and dword [rbp - 0x74], 0
lea rdx, str.The_call_to_get_environment_variable_failed
mov qword [rbp - 0x70], rdx
mov dword [rbp - 0x68], 0x58
and dword [rbp - 0x64], 0
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403544b6]
call fcn.140001078
jmp 0x140275410
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.140048750
nop
mov r8d, DispGetParam
lea rdx, str._system32FirewallAPI.dll
lea rcx, [rsp + 0x40]
call fcn.140054efc
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14005b588
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov r14, rax
mov r15, qword [rdi]
test r15, r15
je 0x1402753a1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov rcx, r15
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
mov qword [rdi], r14
test r14, r14
jne 0x140275405
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [rsi], eax
call fcn.140048a14
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x140275405
mov qword [rbp - 0x80], rsi
lea eax, [r14 + 4]
mov dword [rbp - 0x78], eax
and dword [rbp - 0x74], r14d
lea rdx, str.Failed_to_load_the_firewall_dll_library
mov qword [rbp - 0x70], rdx
mov dword [rbp - 0x68], 0x50
and dword [rbp - 0x64], r14d
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1403544b6]
call fcn.140001078
nop
lea rcx, [rsp + 0x40]
call fcn.1400492c0
nop
mov rax, rdi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.14027a710
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret