joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001144c
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
jmp 0x140013960
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x528
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0xda
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x548]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x4d8], rax
lea rcx, [0x1400291a7]
call fcn.14001150a
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x1fe
rep stosb byte [rdi], al
mov dword [rbp + 0x224], 0xff
lea rax, [rbp + 0x224]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 2
lea r8, str.ReleaseId
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
lea rdx, [rbp + 0x10]
lea rcx, str.___Windows_Version__s_Found_n
call fcn.14001103c
lea rcx, [rbp + 0x10]
call qword [sym.imp.ucrtbased.dll__wtoi]
mov dword [rbp + 0x244], eax
mov eax, dword [rbp + 0x244]
mov dword [rbp + 0x4d4], eax
cmp dword [rbp + 0x4d4], 0x76f
jg 0x140013a7b
cmp dword [rbp + 0x4d4], 0x76f
je 0x140013b3e
cmp dword [rbp + 0x4d4], 0x647
je 0x140013ab0
cmp dword [rbp + 0x4d4], 0x70b
je 0x140013af7
cmp dword [rbp + 0x4d4], 0x711
je 0x140013af7
jmp 0x140013bc6
cmp dword [rbp + 0x4d4], 0x775
je 0x140013b3e
cmp dword [rbp + 0x4d4], 0x7d4
je 0x140013b82
cmp dword [rbp + 0x4d4], 0x7d9
je 0x140013b82
jmp 0x140013bc6
mov rax, qword [rbp + 0x500]
mov qword [rax], 0x2e8
mov rax, qword [rbp + 0x500]
mov qword [rax + 8], 0x2f0
mov rax, qword [rbp + 0x500]
mov qword [rax + 0x10], 0x358
mov rax, qword [rbp + 0x500]
mov qword [rax + 0x18], 0x6c8
mov rax, qword [rbp + 0x500]
jmp 0x140013bdd
mov rax, qword [rbp + 0x500]
mov qword [rax], 0x2e0
mov rax, qword [rbp + 0x500]
mov qword [rax + 8], 0x2e8
mov rax, qword [rbp + 0x500]
mov qword [rax + 0x10], 0x358
mov rax, qword [rbp + 0x500]
mov qword [rax + 0x18], 0x6c8
mov rax, qword [rbp + 0x500]
jmp 0x140013bdd
mov rax, qword [rbp + 0x500]
mov qword [rax], 0x2e8
mov rax, qword [rbp + 0x500]
mov qword [rax + 8], 0x2f0
mov rax, qword [rbp + 0x500]
mov qword [rax + 0x10], 0x360
mov rax, qword [rbp + 0x500]
mov qword [rax + 0x18], 0x6f8
mov rax, qword [rbp + 0x500]
jmp 0x140013bdd
mov rax, qword [rbp + 0x500]
mov qword [rax], 0x440
mov rax, qword [rbp + 0x500]
mov qword [rax + 8], 0x448
mov rax, qword [rbp + 0x500]
mov qword [rax + 0x10], 0x4b8
mov rax, qword [rbp + 0x500]
mov qword [rax + 0x18], 0x878
mov rax, qword [rbp + 0x500]
jmp 0x140013bdd
lea rcx, str.____Version_Offsets_Not_Found__n
call fcn.14001103c
mov ecx, 0xffffffff
call qword [sym.imp.ucrtbased.dll_exit]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001f0f0]
call fcn.140011438
mov rax, rdi
mov rcx, qword [rbp + 0x4d8]
xor rcx, rbp
call fcn.140011244
lea rsp, [rbp + 0x4e8]
pop rdi
pop rbp
ret
Function at 0x14001145b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x140012af0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1400291a7]
call fcn.14001150a
cmp qword [rbp + 0x138], 0
je 0x140012be5
cmp qword [rbp + 0x140], 0
je 0x140012be5
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140012be5
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x140012be5
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rcx, qword [rbp + 0x138]
mov qword [rcx], rax
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rbp + 0x140]
mov dword [rcx], eax
mov rax, qword [rbp + 0x138]
cmp qword [rax], 0
je 0x140012bd3
mov rax, qword [rbp + 0x140]
cmp dword [rax], 0
je 0x140012bd3
mov dword [rbp + 0xf4], 1
jmp 0x140012bdd
mov dword [rbp + 0xf4], 0
mov eax, dword [rbp + 0xf4]
jmp 0x140012be7
xor eax, eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00409750]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00409760]
mov dword [rax], 1
mov rax, qword [0x00409770]
mov dword [rax], 1
mov rax, qword [0x00409740]
mov dword [rax], 1
mov rax, qword [0x00409630]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00409730]
mov dword [0x0040c00c], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x004096f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004095b0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x4015ce
Capabilities:
Log keystrokes via application hook

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov r9d, 0
mov r8d, 0
lea rdx, [dbg.HookCallback(int, unsigned long long, long long)]
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_SetWindowsHookExA]
call rax
mov qword [0x0040c048], rax
mov rax, qword [0x0040c048]
test rax, rax
sete al
test al, al
je 0x401631
lea rdx, str.Failed_to_install_hook_
mov rcx, qword [sym.imp.libstdc_6.dll_std::cout]
call sym.std::basic_ostream_char__std::char_traits_char____std::operator____std::char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [0x004095d0]
mov rcx, rax
call sym.std::ostream::operator___std::ostream____std::ostream__
nop
add rsp, 0x20
pop rbp
ret
Function at 0x402a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040ca64]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x402c18
mov rax, qword [0x0040ca68]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x402adc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x402b65
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x402ac0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x402c4d
mov rax, qword [0x0040ca68]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040ca68]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402c30
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x402b5e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x402bc0
add dword [0x0040ca64], 1
cmp edi, 8
jae 0x402b93
test dil, 4
jne 0x402c04
test edi, edi
je 0x402b88
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x402c1f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x402b88
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x402bac
jmp 0x402b88
add rsi, qword [0x0040ca68]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402b5e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x402b88
xor esi, esi
jmp 0x402ae7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x402b88
mov rax, qword [0x0040ca68]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x4033a0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040cd40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040cd20]
test rbx, rbx
je 0x4033f4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4033eb
test rsi, rsi
je 0x4033eb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4033d0
lea rcx, [0x0040cd40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403630
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x403640
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x403650
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x403691
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x403688
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x403693
add rax, 0x28
cmp rax, r9
jne 0x403674
xor eax, eax
ret

Function at 0x403730
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00409630]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40379d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40379d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40379d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403794
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40379f
add rax, 0x28
cmp rax, r9
jne 0x403780
xor eax, eax
add rsp, 0x28
ret

Function at 0x4038a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00409630]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x4038c0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4038b8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40391d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x403914
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403924
add rax, 0x28
cmp rax, r9
jne 0x403900
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x403940
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00409630]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x4039ae
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4039ae
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x4039ae
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x4039ae
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x4039a5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x4039b5
add rcx, 0x28
cmp rcx, rax
jne 0x403990
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x4039c8
jmp 0x4039ae
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x4039d6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x4039ae
test r9d, r9d
jg 0x4039c0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x407530
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14002d392
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14002d3d6
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.14002d3e0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14002d3c6
mov qword [rdi], rsi
call fcn.1400afa60
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140034554
Capabilities:
Check mutex on windows

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx], 0
mov qword [rcx + 8], 0
lea r8, str.A946A6A9_917E_4949_B9BC_6BADA8C7FD63
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi + 8], rax
test rax, rax
je 0x140034594
mov rcx, rax
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete byte [rsi]
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x1400382b8
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov edi, edx
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
xor edx, edx
call fcn.1400360e8
mov dword [rsi + 0x120], ebx
mov dword [rsi + 0x124], edi
movaps xmm0, xmmword [0x1401e7440]
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rdi + 4]
mov ecx, dword [rdi + 0x28]
cmp eax, ecx
cmova ecx, eax
mov qword [rsi + 0x128], rcx
mov qword [rsi + 0x130], 0x20
mov qword [rsi + 0x138], 0x40
mov dword [rsi + 0x140], ebx
lea rax, [rsi + 8]
mov qword [rsi + 8], 0
xor rax, 0xffffffffb37cc16a
mov qword [rsi + 0x10], rax
mov qword [rsi + 0x18], rsi
mov dword [rsi + 0x28], ebx
lea rcx, [rsi + 0x30]
mov r8d, 0xf0
xor edx, edx
call fcn.1401a0cc0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14019eb90
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003f240
Capabilities:
Move file

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x198], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x180], xmm0
movaps xmmword [rsp + 0x170], xmm0
mov dword [rsp + 0x190], 0
cmp byte [rcx + 0x17], 0
jns 0x14003f286
mov rcx, qword [rsi]
lea r8, [rsp + 0x170]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14003f335
mov rcx, rsi
call fcn.140093ea0
movzx r8d, al
xor r8d, 5
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003f2ba
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14003f38c
lea rcx, str.....chromeinstallerutildelete_after_reboot_helper.cc
mov edx, 0x3a
call fcn.1400ad490
mov dil, 1
test eax, eax
jle 0x14003f404
lea rdx, str.....chromeinstallerutildelete_after_reboot_helper.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r8d, 0x5e
mov r9d, 0xffffffff
call fcn.1400ad510
lea rcx, [rsp + 0x40]
lea rdx, str.Scheduled_for_deletion:
mov r8d, 0x18
call fcn.14002e9c2
mov rcx, rax
mov rdx, rsi
call fcn.1400ae5c0
mov rcx, rbx
call fcn.1400ad9f0
jmp 0x14003f404
mov ecx, 1
call fcn.1400ad460
test al, al
je 0x14003f402
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstallerutildelete_after_reboot_helper.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x3f
mov r9d, 1
call fcn.1400ae3b0
lea rcx, [rsp + 0x40]
mov rdx, rsi
call fcn.1400ae5c0
lea rdx, str._does_not_exist.
mov r8d, 0x10
jmp 0x14003f3f2
mov ecx, 2
call fcn.1400ad460
test al, al
je 0x14003f402
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstallerutildelete_after_reboot_helper.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x4a
mov r9d, 2
call fcn.1400ae3b0
lea rcx, [rsp + 0x40]
lea rdx, str.Could_not_schedule
mov r8d, 0x13
call fcn.14002e9c2
mov rcx, rax
mov rdx, rsi
call fcn.1400ae5c0
lea rdx, str._for_deletion.
mov r8d, reloc.WS2_32.dll_ntohl
mov rcx, rax
call fcn.14002e9c2
mov rcx, rdi
call fcn.1400ae4a0
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14019eb90
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003fd06
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, qword [rcx]
mov rdi, qword [rcx + 8]
cmp rdi, rbx
je 0x14003fd44
add rdi, 0xffffffffffffffd0
mov rcx, rdi
call fcn.140033ec7
jmp 0x14003fd31
mov qword [rsi + 8], rbx
movaps xmm0, xmmword [0x1401e7440]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea r8, str.SYSTEMCurrentControlSetControlSession_Manager
mov rcx, rdi
mov rdx, 0xffffffff80000002
mov r9d, 1
call fcn.14008b430
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14003fe59
mov dword [rsp + 0x4c], 0
xorps xmm0, xmm0
lea rdi, [rsp + 0x30]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov edx, 1
mov rcx, rdi
call fcn.14003ab66
mov dword [rsp + 0x78], 0xaaaaaaaa
mov rax, qword [rdi]
cmp qword [rdi + 8], rax
je 0x14003feb9
lea r15, [rsp + 0x4c]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
lea rdx, str.PendingFileRenameOperations
lea r9, [rsp + 0x78]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x14003fe60
cmp eax, 0xea
jne 0x14003fe49
mov ebp, 0x8000ffff
cmp dword [rsp + 0x78], 7
jne 0x14003fe65
mov edx, dword [rsp + 0x4c]
test dl, 1
jne 0x14003fe65
lea r14, [rsp + 0x30]
mov rcx, r14
call fcn.14003ab66
mov rax, qword [r14]
cmp qword [r14 + 8], rax
je 0x14003feb9
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rax
lea rdx, str.PendingFileRenameOperations
lea r9, [rsp + 0x78]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14003fe9e
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
jmp 0x14003fe65
mov ebp, 0x80070002
jmp 0x14003fe72
mov ebp, 0x80070002
lea rcx, [rsp + 0x78]
mov qword [rcx], rdi
call fcn.14003981a
lea rcx, [rsp + 0x50]
call fcn.14008b520
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebp
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
je 0x14003feb9
mov r8, rsi
call fcn.14003f934
mov ebp, eax
jmp 0x14003fe65
lea rax, str.vector___index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_vector
lea r9, str.__n___size__
mov r8d, 0x5b7
call fcn.14003a2a8
int3
Function at 0x140047db4
Capabilities:
Delete service

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rsi, rdx
mov rbx, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov rcx, qword [rdx]
test rcx, rcx
je 0x140047e9f
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dil, 1
test eax, eax
jne 0x140047ea1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, 1
call fcn.1400ad460
test al, al
je 0x140047e93
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstallerutilinstall_service_work_item_impl.cc
lea rcx, [rsp + 0x48]
mov r8d, 0x25d
mov r9d, 1
call fcn.1400ae3b0
lea rcx, [rsp + 0x58]
lea rdx, str.DeleteService_failed
mov r8d, 0x15
call fcn.14002e9c2
mov r14, rax
lea r15, [rsp + 0x30]
mov rcx, rbx
mov rdx, r15
call fcn.140047a7a
cmp byte [r15 + 0x17], 0
jns 0x140047e6d
mov r15, qword [rsp + 0x30]
mov rcx, r14
mov rdx, r15
call fcn.1400ae560
cmp byte [rsp + 0x47], 0
jns 0x140047e89
mov rcx, qword [rsp + 0x30]
call fcn.14019d34c
lea rcx, [rsp + 0x48]
call fcn.1400ae4a0
cmp edi, 0x430
sete dil
jmp 0x140047ea1
xor edi, edi
mov rcx, rsi
call fcn.140048fdc
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.14019eb90
mov eax, edi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140048772
Capabilities:
Modify service

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b8
mov rsi, rcx
mov rax, qword [0x14021f030]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov al, byte [rdx + 0x57]
test al, al
js 0x1400487a9
lea rcx, [rdx + 0x40]
xor r10d, r10d
test al, al
cmovne r10, rcx
jmp 0x1400487b6
mov r10, qword [rdx + 0x48]
test r10, r10
je 0x1400487b6
mov r10, qword [rdx + 0x40]
mov rax, qword [rdx + 0x28]
xor r11d, r11d
cmp rax, qword [rdx + 0x30]
cmovne r11, rax
mov al, byte [rdx + 0x27]
test al, al
js 0x1400487da
lea rcx, [rdx + 0x10]
xor edi, edi
test al, al
cmovne rdi, rcx
jmp 0x1400487e7
mov rdi, qword [rdx + 0x18]
test rdi, rdi
je 0x1400487e7
mov rdi, qword [rdx + 0x10]
mov r9d, dword [rdx + 0xc]
mov eax, dword [rdx + 4]
mov r8d, dword [rdx + 8]
mov rcx, qword [rsi + 0x130]
mov qword [rsp + 0x50], r10
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], r11
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rdi
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov edi, eax
test eax, eax
jne 0x1400488be
mov ecx, 1
call fcn.1400ad460
test al, al
je 0x1400488be
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str.....chromeinstallerutilinstall_service_work_item_impl.cc
lea rcx, [rsp + 0x70]
mov r8d, 0x19e
mov r9d, 1
call fcn.1400ae3b0
lea rcx, [rsp + 0x80]
lea rdx, str.Failed_to_change_service_config
mov r8d, 0x20
call fcn.14002e9c2
mov rbx, rax
lea r14, [rsp + 0x58]
mov rcx, rsi
mov rdx, r14
call fcn.140047a7a
cmp byte [r14 + 0x17], 0
jns 0x140048898
mov r14, qword [rsp + 0x58]
mov rcx, rbx
mov rdx, r14
call fcn.1400ae560
cmp byte [rsp + 0x6f], 0
jns 0x1400488b4
mov rcx, qword [rsp + 0x58]
call fcn.14019d34c
lea rcx, [rsp + 0x70]
call fcn.1400ae4a0
test edi, edi
setne bl
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14019eb90
mov eax, ebx
add rsp, 0x1b8
pop rbx
pop rdi
pop rsi
pop r14
ret