joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ad04
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx], rbp
jne 0x14000ad40
lea r8, str.m_hKey___0
mov edx, 0x16ed
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400906e0
test rbx, rbx
jne 0x14000ad68
lea r8, str.__atl_condVal
mov edx, 0x16ee
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400906e0
mov ecx, 0x80004005
call fcn.140008e64
int3
mov r8d, ebp
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdx + rcx*2], bp
jne 0x14000ad72
inc ecx
lea rdx, [rdx + rcx*2]
lea r8d, [r8 + rcx*2]
cmp ecx, 1
jne 0x14000ad6e
mov dword [rsp + 0x28], r8d
lea r9d, [rcx + 6]
mov rcx, qword [rdi]
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000adcc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx], rbp
jne 0x14000ae08
lea r8, str.m_hKey___0
mov edx, 0x16e0
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400906e0
test rbx, rbx
jne 0x14000ae30
lea r8, str.__atl_condVal
mov edx, 0x16e1
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400906e0
mov ecx, 0x80004005
call fcn.140008e64
int3
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x14000ae34
mov rcx, qword [rdi]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140035620
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r15
sub rsp, 0x260
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov rdi, rcx
mov qword [rsp + 0x30], rbp
mov rcx, qword [0x140173048]
lea r15, [0x140173048]
lea r12, [0x1401529e0]
cmp rcx, r15
je 0x140035689
test byte [rcx + 0x1c], 1
je 0x140035689
cmp byte [rcx + 0x19], 4
jb 0x140035689
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c5
mov r8, r12
call fcn.14000c328
mov edx, dword [rdi + 0x150]
lea r8, [rsp + 0x30]
mov rcx, qword [rdi + 0x158]
call fcn.140112c60
mov ebx, eax
test eax, eax
jns 0x1400356eb
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x1400357e6
test byte [rcx + 0x1c], 1
je 0x1400357e6
cmp byte [rcx + 0x19], 2
jb 0x1400357e6
mov r9, qword [rdi + 0x158]
mov edx, 0x2c6
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.1400151b8
jmp 0x1400357df
mov ebx, 0x101
lea rcx, [rsp + 0x40]
mov r8d, ebx
mov dword [rsp + 0x38], ebx
xor edx, edx
call sub.msvcrt.dll_memset
mov r8, qword [rdi + 0x260]
lea rcx, [rsp + 0x40]
test r8, r8
jne 0x140035774
lea rdx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14003577c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x140035741
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x14003576d
test byte [rcx + 0x1c], 1
je 0x14003576d
cmp byte [rcx + 0x19], 2
jb 0x14003576d
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c7
mov r9d, eax
mov r8, r12
call fcn.14000c354
mov word [rsp + 0x40], bp
jmp 0x14003577c
mov rdx, rbx
call fcn.140006530
mov r8, qword [rdi + 0x188]
lea r9, [rsp + 0x40]
mov rdx, qword [rdi + 0x158]
mov rcx, qword [rsp + 0x30]
call fcn.1400e43e4
mov ebx, eax
test eax, eax
jns 0x1400357df
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x1400357e6
test byte [rcx + 0x1c], 1
je 0x1400357e6
cmp byte [rcx + 0x19], 2
jb 0x1400357e6
mov r9, qword [rdi + 0x158]
mov edx, 0x2c8
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x160]
mov qword [rsp + 0x20], rax
call fcn.1400152ec
mov rcx, qword [0x140173048]
cmp qword [rsp + 0x30], rbp
je 0x140035805
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140173048]
cmp rcx, r15
je 0x140035827
test byte [rcx + 0x1c], 1
je 0x140035827
cmp byte [rcx + 0x19], 4
jb 0x140035827
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c9
mov r8, r12
call fcn.14000c328
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140007410
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x14004ab50
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x20]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x10], rax
mov rsi, r8
mov qword [r11 - 0x18], r8
xor r9d, r9d
xor r8d, r8d
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14004ac0d
cmp dword [rsi], ebx
je 0x14004abc8
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14004ac84
test byte [rcx + 0x1c], 1
je 0x14004ac84
cmp byte [rcx + 0x19], 4
jb 0x14004ac84
mov edx, 0x213
jmp 0x14004abf8
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14004ac84
test byte [rcx + 0x1c], 1
je 0x14004ac84
cmp byte [rcx + 0x19], 4
jb 0x14004ac84
mov edx, 0x214
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov r9, rdi
call fcn.140015150
jmp 0x14004ac84
cmp eax, 2
jne 0x14004ac38
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14004ac84
test byte [rcx + 0x1c], 1
je 0x14004ac84
cmp byte [rcx + 0x19], 3
jb 0x14004ac84
mov edx, 0x215
jmp 0x14004abf8
test eax, eax
jg 0x14004ac40
mov ebx, eax
jmp 0x14004ac49
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x140173048]
lea rax, [0x140173048]
cmp rcx, rax
je 0x14004ac84
test byte [rcx + 0x1c], 1
je 0x14004ac84
cmp byte [rcx + 0x19], 2
jb 0x14004ac84
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0x216
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.1400151b8
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14004b730
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [0x140173048]
lea rsi, [0x140173048]
cmp rcx, rsi
je 0x14004b783
test dword [rcx + 0x1c], 0x200
je 0x14004b783
cmp byte [rcx + 0x19], 4
jb 0x14004b783
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0x2f
call fcn.14000c328
mov rcx, qword [0x140173048]
test rdi, rdi
jne 0x14004b78f
mov ebx, 0x80004003
jmp 0x14004b7e8
mov rcx, rbx
call fcn.14004c314
mov ebx, eax
test eax, eax
js 0x14004b7e1
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x14004b7ca
test byte [rcx + 0x1c], 1
je 0x14004b7ca
cmp byte [rcx + 0x19], 4
jb 0x14004b7ca
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157088]
mov edx, 0x8e
call fcn.14000c328
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
nop dword [rax + rax]
mov dword [rdi], eax
xor ebx, ebx
jmp 0x14004b811
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x14004b841
test byte [rcx + 0x1c], 1
je 0x14004b818
cmp byte [rcx + 0x19], 2
jb 0x14004b818
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0x30
mov r9d, ebx
call fcn.14000c354
mov rcx, qword [0x140173048]
cmp rcx, rsi
je 0x14004b841
test dword [rcx + 0x1c], 0x200
je 0x14004b841
cmp byte [rcx + 0x19], 4
jb 0x14004b841
mov rcx, qword [rcx + 0x10]
lea r8, [0x140153368]
mov edx, 0x31
call fcn.14000c328
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140069090
Capabilities:
Create service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa90
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rsp + 0xa80], rax
call fcn.140069360
xor edi, edi
test eax, eax
je 0x1400690c4
mov eax, 1
jmp 0x14006919d
mov ebx, 0x104
lea rdx, [rsp + 0x72]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x14006919b
cmp eax, ebx
je 0x14006919b
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x140069281
mov word [rsp + rcx + 0x70], di
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400691bf
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.140065f94
test eax, eax
jne 0x14006917b
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov ecx, eax
call fcn.140008c4c
xor r9d, r9d
lea r8, [0x140174878]
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.140007410
mov rbx, qword [rsp + 0xaa0]
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rdi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rdi
lea r8, [0x140174878]
mov qword [rsp + 0x50], rax
lea rdx, [0x140174878]
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rdi
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
nop dword [rax + rax]
test rax, rax
jne 0x14006925e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.140065f94
test eax, eax
jne 0x14006917b
lea r8, str.Could_not_start_service
jmp 0x14006915b
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
jmp 0x1400690ba
call fcn.1400075e8
int3
Function at 0x14006957c
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r14, rdx
mov rbx, rcx
call fcn.140066b00
xor r15d, r15d
test r14, r14
jne 0x1400695d2
lea r8, str.pszAccountName
mov edx, 0x9c
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlsecurity.inl
call fcn.1400906e0
jmp 0x14006977e
mov edx, 2
mov qword [rsp + 0x50], r15
lea ecx, [rdx + 0x7e]
call fcn.140007fe4
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140065d60
mov rsi, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea rdi, [rbx + 0x50]
mov dword [rsp + 0x44], 0x44
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x20]
mov rdx, r14
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
jne 0x1400696b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x14006976c
cmp dword [rsp + 0x44], 0x44
jbe 0x140069663
mov ecx, 0x80004005
call fcn.140008e64
int3
cmp dword [rsp + 0x40], 0x80
jbe 0x140069683
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x50]
add rdx, rdx
call fcn.14006b33c
mov rsi, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x20]
mov qword [rsp + 0x20], rsi
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
je 0x14006976c
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
nop dword [rax + rax]
cmp eax, 0x44
jb 0x1400696e6
lea r8, str.::GetLengthSid_pSid_____sizeof_SID____sizeof_ULONG_____15___sizeof_ULONG___
mov edx, 0xc4
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlsecurity.inl
call fcn.1400906e0
mov rcx, rbx
mov byte [rbx + 0x4c], 1
call fcn.14006f114
mov ecx, dword [rsp + 0x44]
lea r8, [rbp - 0x20]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_CopySid]
nop dword [rax + rax]
test eax, eax
je 0x14006976c
or rdi, 0xffffffffffffffff
lea rcx, [rbx + 0x60]
test rsi, rsi
jne 0x14006971f
mov eax, r15d
jmp 0x14006972c
mov rax, rdi
inc rax
cmp word [rsi + rax*2], r15w
jne 0x140069722
mov r8d, eax
mov rdx, rsi
call fcn.14006da88
lea rcx, [rbx + 0x58]
inc rdi
cmp word [r14 + rdi*2], r15w
jne 0x14006973b
mov r8d, edi
mov rdx, r14
call fcn.14006da88
lea rcx, [rbx + 0x70]
xor r8d, r8d
xor edx, edx
call fcn.14006da88
lea rcx, [rsp + 0x50]
call fcn.140008120
mov al, 1
jmp 0x140069780
mov rcx, rbx
call fcn.140066b00
lea rcx, [rsp + 0x50]
call fcn.140008120
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140007410
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006aaa0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov rsi, rcx
mov ebx, 1
mov rdi, qword [0x1401731e0]
mov rax, qword [0x1401731e8]
jmp 0x14006aaf3
test ebx, ebx
js 0x14006ac74
mov rcx, qword [rdi]
test rcx, rcx
je 0x14006aaef
mov r8d, 5
call fcn.14006bf0c
mov ebx, eax
mov rax, qword [0x1401731e8]
add rdi, 8
cmp rdi, rax
jb 0x14006aacb
test ebx, ebx
js 0x14006ac74
jne 0x14006ac70
cmp byte [rsi + 0x60], 0
je 0x14006abea
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rsi + 0x50], rax
test rax, rax
jne 0x14006ab36
and qword [rsp + 0x40], rax
jmp 0x14006ab81
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rsi
lea r8, [0x14006a240]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14006ab77
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x40], rdi
test rdi, rdi
jne 0x14006ab88
mov ebx, 0x80004005
jmp 0x14006abd6
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14006abd6
lea r8, [0x140154140]
mov edx, 0xe4a
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400906e0
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov edx, dword [rsi + 0x58]
add edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.140064ba8
test ebx, ebx
jns 0x14006ac74
jmp 0x14006ac14
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x14006ac74
lea r8, [0x140154140]
mov edx, 0xe55
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400906e0
xor eax, eax
mov rdi, qword [0x1401731e0]
mov rcx, qword [0x1401731e8]
jmp 0x14006ac51
test eax, eax
jne 0x14006ac56
mov rdx, qword [rdi]
test rdx, rdx
je 0x14006ac4d
cmp dword [rdx + 0x28], eax
je 0x14006ac4d
mov ecx, dword [rdx + 0x28]
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
nop dword [rax + rax]
mov rcx, qword [0x1401731e8]
add rdi, 8
cmp rdi, rcx
jb 0x14006ac26
lea r8, [0x140154140]
mov edx, 0xe75
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400906e0
jmp 0x14006ac74
mov byte [rsi + 0x60], 0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14006af50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rdi, r9
mov rbx, r8
mov rsi, rcx
cmp qword [rcx], rbp
jne 0x14006af89
lea r8, str.m_hKey___0
mov edx, 0x1625
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400906e0
test rdi, rdi
jne 0x14006afa6
lea r8, str.pnChars___0
mov edx, 0x1626
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400906e0
mov eax, dword [rdi]
lea r9, [rsp + 0x50]
mov rcx, qword [rsi]
lea rdx, str.LocalService
add eax, eax
mov dword [rdi], ebp
mov dword [rsp + 0x58], eax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006b00f
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
ja 0x14006b00a
mov ecx, dword [rsp + 0x58]
test rbx, rbx
je 0x14006b020
test ecx, ecx
je 0x14006b01d
test cl, 1
jne 0x14006b00a
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], bp
je 0x14006b020
mov eax, 0xd
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov word [rbx], bp
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x14006b00f
Function at 0x14006e38c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, r8
xor ebx, ebx
mov qword [r8], rbx
mov r14d, 0x104
mov r8, rcx
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140006530
lea r8, [0x140153c18]
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.14005655c
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x14006e43a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14006e519
mov rcx, qword [rbp + 0x178]
lea edx, [r14 - 0x3b]
call fcn.14006c59c
mov ebx, eax
jmp 0x14006e519
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], ebx
mov rcx, rax
mov dword [rsp + 0x20], ebx
call fcn.140068868
mov edi, eax
test eax, eax
jns 0x14006e470
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.14006c5bc
mov ebx, edi
jmp 0x14006e519
lea r8, [0x140153c20]
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14005655c
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x14006e4c5
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.14006c59c
lea rcx, [rsp + 0x28]
mov ebx, eax
call fcn.140064ae4
jmp 0x14006e519
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140068868
mov edi, eax
test eax, eax
jns 0x14006e4fb
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.14006c5bc
lea rcx, [rsp + 0x28]
call fcn.140064ae4
jmp 0x14006e469
lea rcx, [rsp + 0x28]
call fcn.140064ae4
movsxd rdx, dword [rsp + 0x20]
movsxd rcx, dword [rsp + 0x24]
shl rdx, 0x1f
or rdx, rcx
mov qword [rsi], rdx
lea rcx, [rsp + 0x30]
call fcn.140064ae4
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140007410
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14006e554
Capabilities:
Delete service
Stop service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r15
push rbp
lea rbp, [rax - 0xf58]
mov eax, 0x1050
call fcn.140149250
sub rsp, rax
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rbp + 0xf40], rax
call fcn.140069360
test eax, eax
je 0x14006e76d
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x14006e60f
lea rdx, [rsp + 0x40]
mov ecx, 0xd80a
call fcn.140065f94
test eax, eax
jne 0x14006e5eb
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov ecx, eax
call fcn.140008c4c
lea rdx, [rsp + 0x40]
lea r8, [0x140174878]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop dword [rax + rax]
xor eax, eax
jmp 0x14006e772
mov r8d, 0x10020
lea rdx, [0x140174878]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x14006e661
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
lea rdx, [rsp + 0x40]
mov ecx, 0xd80c
call fcn.140065f94
test eax, eax
jne 0x14006e5eb
lea r8, str.Could_not_open_service
jmp 0x14006e5ce
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_ControlService]
nop dword [rax + rax]
test eax, eax
jne 0x14006e6f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x426
je 0x14006e6f3
cmp eax, 0x425
jne 0x14006e69f
cmp dword [rsp + 0x24], 3
je 0x14006e6f3
lea rdx, [rsp + 0x40]
mov ecx, 0xd80e
call fcn.140065f94
test eax, eax
jne 0x14006e6d6
lea r8, str.Could_not_stop_service
mov edx, 0x400
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov ecx, eax
call fcn.140008c4c
xor r9d, r9d
lea r8, [0x140174878]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_DeleteService]
nop dword [rax + rax]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
test ebx, ebx
jne 0x14006e76d
lea rdx, [rbp + 0x740]
mov ecx, 0xd80d
call fcn.140065f94
test eax, eax
jne 0x14006e761
lea r8, str.Could_not_delete_service
mov edx, 0x400
lea rcx, [rbp + 0x740]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov ecx, eax
call fcn.140008c4c
lea rdx, [rbp + 0x740]
jmp 0x14006e5f0
mov eax, 1
mov rcx, qword [rbp + 0xf40]
xor rcx, rsp
call fcn.140007410
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov r15, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14006fcb0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140173708]
xor rax, rsp
mov qword [rbp + 0x190], rax
and qword [rsp + 0x28], 0
lea r8, str.AppID
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
and qword [rsp + 0x38], 0
mov r9d, 0x20019
mov rdx, 0xffffffff80000000
call fcn.140009dac
mov ebx, eax
test eax, eax
je 0x14006dca7
mov dword [0x140174a8c], eax
jmp 0x14006dd83
mov rdx, qword [rsp + 0x28]
lea r8, [0x140153860]
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
and qword [rsp + 0x48], 0
mov r9d, 0x20019
and qword [rsp + 0x50], 0
call fcn.140009dac
mov ebx, eax
test eax, eax
jne 0x14006dd73
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea r8, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.14006af50
and dword [0x140174a9c], ebx
test eax, eax
jne 0x14006dd65
and qword [rsp + 0x68], 0
lea rax, [0x140174878]
and qword [rsp + 0x70], 0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
lea rax, [0x14006f1b0]
mov qword [rsp + 0x60], rax
mov dword [0x140174a9c], 1
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
nop dword [rax + rax]
test eax, eax
jne 0x14006dd5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [0x140174a8c], eax
jmp 0x14006dd61
mov eax, dword [0x140174a8c]
mov ebx, eax
jmp 0x14006dd79
lea rcx, [0x140174810]
call fcn.14006c73c
mov ebx, eax
mov dword [0x140174a8c], eax
lea rcx, [rsp + 0x40]
call fcn.140009138
lea rcx, [rsp + 0x28]
call fcn.140009138
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140007410
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rbp
ret
sub rsp, 0x28
cmp byte [0x1401744a1], 0
mov qword [0x1401744a8], rcx
je 0x14006fce1
lea r8, [0x14015007c]
mov edx, 0xecf
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.1400906e0
or eax, 0xffffffff
jmp 0x14006fd10
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
nop dword [rax + rax]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.14006a9fc
cmp al, 1
jne 0x14006fd0c
add rsp, 0x28
jmp 0x14006dc40
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret