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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rsi, rdx
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rdi, rcx
call fcn.1401193c0
xor r15d, r15d
lea rcx, [rsp + 0x38]
cmp qword [rax + 8], r15
sete bl
call fcn.140118ca0
test bl, bl
je 0x140116ed8
xor eax, eax
jmp 0x140116ff7
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1401193c0
mov r12d, 0x200
lea rcx, [rsp + 0x70]
mov edx, r12d
mov r8, qword [rax + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x38]
call fcn.140118ca0
mov r14d, 1
movzx ebx, r14w
cmp r14w, word [rdi]
jae 0x140116f65
lea r8, [0x1401d00c0]
mov rdx, r12
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
movzx r8d, bx
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.1401193c0
mov rdx, r12
lea rcx, [rsp + 0x70]
mov r8, qword [rax + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x38]
call fcn.140118ca0
add bx, r14w
cmp bx, word [rdi]
jb 0x140116f1a
lea r8, str.__TrueType_
mov rdx, r12
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140116ff4
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rsi + rcx*2], r15w
jne 0x140116fb9
lea ecx, [rcx*2 + 2]
mov r9d, r14d
mov dword [rsp + 0x28], ecx
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r14d
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140121d80
lea r11, [rsp + 0x480]
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 0x140118488
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call fcn.1401183f4
mov dword [rsp + 0x38], 1
xor r9d, r9d
and qword [rsp + 0x30], 0
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call sub.Mso20Win32Client.dll_Ordinal_688
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1401184dc
xor al, al
jmp 0x140118523
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [rdi], eax
call qword [0x140264a58]
mov qword [rdi + 8], rax
test rax, rax
je 0x14011852e
mov r8d, dword [rdi]
lea r9, [rsp + 0x68]
and qword [rsp + 0x20], 0
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140118550
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call fcn.1401183f4
lea rdx, [0x1401e3920]
mov dword [rsp + 0x60], 0x1003
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, rdi
call fcn.1401183f4
lea rdx, [0x1401e3920]
mov dword [rsp + 0x60], 0x100b
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140118574
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, rdx
mov dword [rsp + 0x38], 1
and qword [rsp + 0x30], 0
mov rbx, rcx
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov rcx, rax
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov edx, 0x40000000
call sub.Mso20Win32Client.dll_Ordinal_688
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401185c2
xor al, al
jmp 0x1401185ef
mov r8d, dword [rbx]
lea r9, [rsp + 0x60]
mov rdx, qword [rbx + 8]
mov rcx, rax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
mov rcx, rdi
sbb bl, bl
and bl, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140119414
Capabilities:
Get common file path
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x158]
sub rsp, 0x250
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov ebx, dword [0x14025f94c]
cmp ebx, 0xffffffff
jne 0x14011952d
mov edi, 0x104
lea rcx, [rsp + 0x30]
mov edx, edi
mov ebx, 0x409
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140119527
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x2e], 0x5c
je 0x14011949b
lea r8, [0x140174654]
mov edx, edi
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, str.fontext.dll
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x140119527
mov edx, esi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140119527
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov r9, rax
mov r8d, esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14011951e
lea r9, [rsp + 0x24]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14011951e
cmp dword [rsp + 0x24], 4
jb 0x14011951e
mov rax, qword [rsp + 0x28]
movzx ebx, word [rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x14025f94c], ebx
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140121d80
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14011ef5c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r10, qword [rcx + 0x30]
cmp r10, 0xffffffffffffffff
je 0x14011efed
xor ebx, ebx
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x30], ebx
jb 0x14011ef9e
mov rax, qword [rdx]
jmp 0x14011efa1
mov rax, rdx
mov rcx, qword [rdx + 0x10]
mov edx, 0xffffffff
cmp rcx, rdx
ja 0x14011f015
lea r8d, [rcx + rcx]
mov qword [rsp + 0x20], rbx
mov rcx, r10
lea r9, [rsp + 0x30]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14011f048
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140121d80
mov rbx, qword [rsp + 0x400]
add rsp, 0x3e0
pop rbp
ret
lea r8, str.trying_to_write_to_a_file_thats_not_open
mov edx, 0x15
lea rcx, [rsp + 0x40]
call fcn.140030230
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, [0x1401e3810]
mov dword [rsp + 0x40], 0x5d
lea rcx, [rsp + 0x40]
mov dword [rbp + 0x144], ebx
mov word [rbp + 0x248], bx
mov word [rbp + 0x148], bx
mov word [rsp + 0x44], bx
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.write_to_file_failed
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.14002d5dc
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140121c78
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1401d4618]
movabs rdi, 0x2b992ddfa23249d6
test rax, rax
je 0x140121ca8
mov rax, qword [0x1401d4618]
cmp rax, rdi
jne 0x140121d69
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rbx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
lea rcx, [rsp + 0x40]
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor rbx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov edx, 8
lea rcx, [0x1401d4618]
lea r8d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
test rbx, rbx
lea rcx, [0x1401d4618]
mov edx, 8
cmovne rdi, rbx
mov qword [0x1401d4618], rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, 8
lea rcx, [0x1401d4618]
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov rax, qword [0x1401d4618]
not rax
mov qword [0x14025f9b0], rax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140121ea4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x140264aa4], 0
je 0x140121eca
mov eax, dword [0x140264aa8]
jmp 0x140121fce
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x140264aa8]
test eax, eax
jne 0x140121f36
mov rdx, qword [str.CLSIDInterfaceTest]
lea rax, [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140121f36
cmp dword [rbp + 0x10], ebx
je 0x140121fa5
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x140121f4a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140121fad
mov rdx, qword [str.CLSIDInterfaceTest]
lea rax, [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140121fad
cmp dword [rbp + 0x10], ebx
jne 0x140121fad
mov ebx, dword [0x140264aa8]
jmp 0x140121fb6
and dword [0x140264aa8], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov byte [0x140264aa4], 1
test rcx, rcx
je 0x140121fcc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
Function at 0x140121fe0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
lea rdx, [0x140191830]
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401220ad
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14012209e
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.InsecureQI
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14012209e
cmp dword [rbp + 0x18], 4
jne 0x14012209e
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x14012209e
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1401220af
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401220af
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1401220ad
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1401220be
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x140122ae0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140122b71
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140122b71
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140122b71
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140122b55
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140122b4f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140122b57
add rdx, 0x28
jmp 0x140122b34
xor edx, edx
test rdx, rdx
jne 0x140122b60
xor al, al
jmp 0x140122b77
test dword [rdx + 0x24], 0x80000000
je 0x140122b6d
xor al, al
jmp 0x140122b77
mov al, 1
jmp 0x140122b77
xor al, al
jmp 0x140122b77
add rsp, 0x18
ret

Function at 0x1401232a4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x1401257a4
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov r8d, 0x10000
mov rdi, rdx
mov rbx, rcx
call fcn.140125990
test al, al
je 0x1401257e6
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1401257f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
jne 0x140125814
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140121d80
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3d0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.failed_to_delete_service__s
mov qword [rsp + 0x20], rdi
mov r8d, eax
lea rcx, [rsp + 0x30]
mov edx, 0xf
call fcn.140124e80
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140125850
Capabilities:
Create service

Disassembly:
push rbx
push rdi
sub rsp, 0x428
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rsp + 0x410], rax
mov rax, qword [rsp + 0x470]
mov rdi, rcx
mov ecx, dword [rsp + 0x460]
mov rbx, rdx
mov r10d, dword [rsp + 0x468]
mov r11, qword [rsp + 0x478]
cmp qword [rax + 0x10], 0
jne 0x14012589b
xor eax, eax
jmp 0x1401258a5
cmp qword [rax + 0x18], 8
jb 0x1401258a5
mov rax, qword [rax]
cmp qword [r9 + 0x18], 8
jb 0x1401258af
mov r9, qword [r9]
cmp qword [r8 + 0x18], 8
jb 0x1401258b9
mov r8, qword [r8]
cmp qword [rdx + 0x18], 8
jb 0x1401258c3
mov rdx, qword [rdx]
and qword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
mov qword [rsp + 0x50], r11
and qword [rsp + 0x48], 0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r9
mov r9d, 0x20000000
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov qword [rdi + 8], rax
test rax, rax
je 0x140125927
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.140121d80
add rsp, 0x428
pop rdi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x70]
mov ecx, 2
lea rdx, str.OService::Install___CreateService_failed__d
mov dword [rsp + 0x70], eax
call fcn.140125084
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.failed_to_create_service__s
mov qword [rsp + 0x20], rbx
mov r8d, eax
lea rcx, [rsp + 0x80]
mov edx, 0xf
call fcn.140124e80
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x80]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140125a28
Capabilities:
Query service status

Disassembly:
sub rsp, 0x3e8
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x30]
and dword [rsp + 0x30], 0
mov r8, rdx
xor edx, edx
mov qword [rsp + 0x20], rax
mov r9d, 0x24
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140125a81
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140121d80
add rsp, 0x3e8
ret
lea r8, str.Failed_to_query_service_Status
mov edx, 0x74
lea rcx, [rsp + 0x40]
call fcn.140009640
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140125acc
Capabilities:
Modify service

Disassembly:
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
jb 0x140125ada
mov rdx, qword [rdx]
mov rcx, qword [rcx + 8]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rdx
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp eax, 1
sete al
add rsp, 0x28
ret

Function at 0x140125bb4
Capabilities:
Modify service

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov eax, dword [rbp + 0x38]
xor ebx, ebx
mov rcx, qword [rcx + 8]
xorps xmm0, xmm0
mov dword [rbp - 0x20], eax
lea rax, [rbp - 0x30]
mov dword [rbp - 0x30], r8d
lea r8, [rbp - 0x58]
mov dword [rbp - 0x58], edx
lea edx, [rbx + 2]
mov dword [rbp - 0x2c], ebx
mov dword [rbp - 0x28], r9d
mov dword [rbp - 0x24], ebx
mov dword [rbp - 0x1c], ebx
movdqu xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x40], 3
mov qword [rbp - 0x38], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp eax, 1
sete al
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.140121d80
add rsp, 0x78
pop rbx
pop rbp
ret

Function at 0x140125c28
Capabilities:
Modify service

Disassembly:
push rbx
sub rsp, 0x60
cmp qword [rdx + 0x18], 8
jb 0x140125c37
mov rdx, qword [rdx]
mov rcx, qword [rcx + 8]
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdx
or edx, 0xffffffff
mov r9d, edx
mov r8d, edx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
setne al
add rsp, 0x60
pop rbx
ret

Function at 0x140125c80
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor r8d, r8d
mov rcx, qword [rcx + 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [rsp + 0x38], eax
test eax, eax
jne 0x140125ccb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov ecx, 2
cmp eax, 0x420
jne 0x140125cd7
lea rdx, str.OService::StartService___Service_instance_already_running
call fcn.1401250dc
cmp byte [rdi + 0x28], 0
je 0x140125d26
mov rbx, qword [rdi + 0x18]
jmp 0x140125cfd
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str.OService::StartService___Failed_to_Start_Service_:_ret___d_:_errCode___d
call fcn.140125294
xor al, al
jmp 0x140125d28
add rbx, 0xffffffffffffffd0
mov rcx, rbx
call fcn.140125c80
cmp rbx, qword [rdi + 0x10]
jne 0x140125cf1
mov rsi, qword [rdi + 0x18]
mov rbx, qword [rdi + 0x10]
jmp 0x140125d19
mov rcx, rbx
call fcn.1401256f8
add rbx, 0x30
cmp rbx, rsi
jne 0x140125d0d
mov rax, qword [rdi + 0x10]
mov qword [rdi + 0x18], rax
mov al, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x140125d6c
Capabilities:
Stop service

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rdx
mov r15d, r8d
lea rdx, [rbp - 0x58]
mov rsi, rcx
call fcn.140125a28
mov eax, dword [rbp - 0x54]
xor edi, edi
mov byte [r14], dil
cmp eax, 1
je 0x140125e8b
mov ebx, dword [rbp - 0x40]
cmp byte [rsi + 0x28], dil
je 0x140125dca
mov edx, r15d
mov rcx, rsi
call fcn.140125eb4
mov eax, dword [rbp - 0x54]
mov byte [r14], 1
cmp eax, 3
je 0x140125e1d
mov rcx, qword [rsi + 8]
lea r8, [rbp - 0x30]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140125e17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x60], eax
cmp eax, 0x426
je 0x140125e13
lea r8, [rbp - 0x60]
mov ecx, 2
lea rdx, str.OService::StopServiceRecursive___Failed_to_control_service_:_errCode___d
call fcn.14012523c
xor al, al
jmp 0x140125e8e
mov al, 1
jmp 0x140125e8e
mov ebx, dword [rbp - 0x18]
mov eax, dword [rbp - 0x54]
cmp eax, 1
je 0x140125e8b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r15d
cmp eax, 0x7fffffff
jb 0x140125e6c
cmp ebx, 0x2710
jbe 0x140125e46
mov eax, 0xcccccccd
mul ebx
shr edx, 3
jmp 0x140125e4b
mov edx, 0x3e8
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x58]
mov rcx, rsi
call fcn.140125a28
mov eax, dword [rbp - 0x54]
mov ebx, dword [rbp - 0x40]
cmp eax, 1
jne 0x140125e22
jmp 0x140125e6f
mov eax, dword [rbp - 0x54]
cmp eax, 1
je 0x140125e8b
lea rdx, str.OService::StopServiceRecursive___Timed_out_waiting_for_service_to_stop
mov ecx, 2
call fcn.1401251e4
mov eax, dword [rbp - 0x54]
cmp eax, 1
sete al
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140121d80
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401288ec
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x700]
sub rsp, 0x800
mov rax, qword [0x1401d4618]
xor rax, rsp
mov qword [rbp + 0x6f0], rax
mov r14b, dl
mov rdi, rcx
lea rdx, [rbp + 0x4e0]
mov ecx, 0x104
mov rsi, r8
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x2d0]
xor r8d, r8d
lea rdx, [0x1401d5a08]
lea rcx, [rbp + 0x4e0]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [rsp + 0x38], 1
lea rcx, [rbp + 0x2d0]
xor r15d, r15d
xor r9d, r9d
mov qword [rsp + 0x30], r15
xor r8d, r8d
mov dword [rsp + 0x28], 0x100
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call sub.Mso20Win32Client.dll_Ordinal_688
mov rbx, rax
cmp word [rbp + 0x2d0], r15w
jne 0x14012899a
mov r8d, r15d
jmp 0x1401289af
lea rax, [rbp + 0x2d0]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x1401289a5
lea rdx, [rbp + 0x2d0]
mov rcx, rsi
call fcn.140008bbc
cmp rbx, 0xffffffffffffffff
je 0x140128a2f
cmp byte [rdi], r15b
jne 0x1401289d1
mov rcx, rdi
call fcn.140129860
movzx ecx, r14b
lea rdx, str.msft:spp_migrationencryptor_tokenact_1.0
mov r8, rbx
call sub.osppc.dll_SLGatherMigrationBlob
test eax, eax
js 0x140128a57
lea r8, [rbp + 0x2d0]
mov ecx, 3
lea rdx, str.Migration_blob_gathered_into__s
call fcn.140127ce4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x6f0]
xor rcx, rsp
call fcn.140121d80
mov rbx, qword [rsp + 0x848]
add rsp, 0x800
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea r8, str.Unable_to_create_migratable_blob_file_handle.
mov edx, reloc.OLEAUT32.dll_LoadRegTypeLib
lea rcx, [rsp + 0x40]
call fcn.140009850
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r9, str.Unable_to_gather_migratable_blob.
mov r8d, eax
mov edx, 0x17
lea rcx, [rsp + 0x40]
call fcn.140126fd0
lea rdx, [0x1401e3810]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3