joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140010be0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x220
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x200
mov esi, 1
call fcn.14007cd30
bt dword [0x1400dd138], 0x10
jae 0x140010c1a
lea rcx, str.WinMain:_StartBlobalService_Trigger__n
call fcn.14000cbb0
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rdi, rax
jne 0x140010c67
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.bGlobalServiceAlive._failed_to_open_SCM._err_d
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.14007dc1c
lea rcx, [rsp + 0x20]
call fcn.140014620
xor eax, eax
mov rsi, qword [rsp + 0x240]
add rsp, 0x220
pop rdi
ret
cmp dword [0x1400df34c], 7
lea rax, str.Ati_HotKey_Poller
lea rdx, str.Ati_External_Event_Utility
mov r8d, 0x10
mov rcx, rdi
cmovbe rdx, rax
mov qword [rsp + 0x238], rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rbp, rax
jne 0x140010cd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.StartGlobalService._failed_to_OpenService._err_d
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.14007dc1c
lea rcx, [rsp + 0x20]
call fcn.140014620
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140010d61
mov qword [rsp + 0x230], rbx
xor ebx, ebx
nop
xor r8d, r8d
xor edx, edx
mov rcx, rbp
add ebx, esi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x140010d04
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 0xa
jl 0x140010ce0
cmp ebx, 0xa
mov rbx, qword [rsp + 0x230]
jne 0x140010d37
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.StartGlobalService._failed_to_StartService._err_d
lea rcx, [rsp + 0x20]
mov r8d, eax
call fcn.14007dc1c
lea rcx, [rsp + 0x20]
call fcn.140014620
xor esi, esi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
bt dword [0x1400dd138], 0x10
jae 0x140010d5f
lea rcx, str.WinMain:_StartBlobalService_Finish__n
call fcn.14000cbb0
mov eax, esi
mov rbp, qword [rsp + 0x238]
mov rsi, qword [rsp + 0x240]
add rsp, 0x220
pop rdi
ret
Function at 0x140010e80
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x130
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x104
call fcn.14007cd30
lea r8, str.ATI_ExtEventApp_StartupMutex
lea rdx, str.Global_s
lea rcx, [rsp + 0x20]
call fcn.14007dc1c
lea rcx, str.bSyncWithGlobalService_enter
call fcn.14000d140
mov ebx, 4
call fcn.14000cd30
test eax, eax
jne 0x140010ef5
nop
lea rcx, str.bSyncWithGlobalService__Ati_Hot_Key_Poller_Service_is_not_running_n
call fcn.14000d140
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0xffffffff
je 0x140010f32
call fcn.14000cd30
test eax, eax
je 0x140010ed0
mov qword [rsp + 0x140], rdi
xor ebx, ebx
nop
lea r8, [rsp + 0x20]
mov edx, 1
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
test rax, rax
mov rdi, rax
jne 0x140010f5c
add ebx, 1
cmp ebx, 0xa
je 0x140010f3d
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140010f00
xor eax, eax
add rsp, 0x130
pop rbx
ret
lea rcx, str.bSyncWithGlobalService__Ati_Hot_Key_Poller_Service_Startup_mutex_is_not_ready_n
call fcn.14000d140
mov rdi, qword [rsp + 0x140]
xor eax, eax
add rsp, 0x130
pop rbx
ret
mov edx, 0xfa0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140010f96
lea rcx, str.bSyncWithGlobalService:_WaitForSingleObject_failed
call fcn.14000d140
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x140]
xor eax, eax
add rsp, 0x130
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.bSyncWithGlobalService_exit
call fcn.14000d140
mov rdi, qword [rsp + 0x140]
mov eax, 1
add rsp, 0x130
pop rbx
ret
Function at 0x140013e20
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x440
mov rsi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x3e8
call fcn.14007cd30
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov eax, dword [0x1400e1cd4]
test al, 1
je 0x140013e8b
movzx eax, word [rsp + 0x46]
movzx r9d, word [rsp + 0x42]
movzx r8d, word [rsp + 0x40]
lea rdx, str._04d__02d__02d
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x20], eax
call fcn.14007dc1c
mov eax, dword [0x1400e1cd4]
test al, 2
je 0x140013ed6
movzx edx, word [rsp + 0x4e]
movzx r10d, word [rsp + 0x4c]
movzx r9d, word [rsp + 0x4a]
movzx r8d, word [rsp + 0x48]
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x28], edx
xor eax, eax
lea rdi, [rsp + 0x50]
lea rdx, str.__02d:_02d:_02d:_03d
repne scasb al, byte [rdi]
mov dword [rsp + 0x20], r10d
not rcx
lea rcx, [rsp + rcx + 0x4f]
call fcn.14007dc1c
mov eax, dword [0x1400e1cd4]
test al, 4
je 0x140013f04
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
mov r8d, eax
xor eax, eax
lea rdx, str._0x_08x
repne scasb al, byte [rdi]
not rcx
lea rcx, [rsp + rcx + 0x4f]
call fcn.14007dc1c
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
mov eax, dword [0x1400a87a0]
or rcx, 0xffffffffffffffff
mov dword [rdi - 1], eax
xor eax, eax
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
mov r8, rbx
mov rdx, rsi
not rcx
lea rcx, [rsp + rcx + 0x4f]
call fcn.14007dec4
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x50]
repne scasb al, byte [rdi]
movzx eax, word [0x1400a879c]
mov word [rdi - 1], ax
movzx eax, byte [0x1400a879e]
mov byte [rdi + 1], al
cmp byte [rsp + 0x437], 0
je 0x140013f77
lea rcx, str.____________________Log_Msg_Too_Long____________________
call fcn.140013df0
jmp 0x140014001
xor esi, esi
lea rcx, str.LogMsg.txt
xor r9d, r9d
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 1]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x140014001
lea r9d, [rsi + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x50]
lea r9, [rsp + 0x460]
lea rdx, [rsp + 0x50]
repne scasb al, byte [rdi]
mov dword [rsp + 0x460], esi
mov qword [rsp + 0x20], rsi
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140014770
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [rsp + 0xa0]
xor bx, bx
mov esi, r8d
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xa8]
movzx ebp, dx
mov qword [rsp + 0x60], rax
mov rdi, rcx
mov qword [rsp + 0x50], r9
xor eax, eax
cmp qword [rsp + rax*8 + 0x50], 0
je 0x1400147bd
add bx, 1
add rax, 1
cmp rax, 3
jl 0x1400147b1
cmp qword [rcx + 0x78], 0
jne 0x1400147de
lea rdx, [rcx + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov qword [rdi + 0x78], rax
mov rcx, qword [rdi + 0x78]
test rcx, rcx
je 0x14001481f
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x50]
mov r9d, esi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
xor r8d, r8d
movzx edx, bp
mov word [rsp + 0x28], bx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140014880
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rdi, rcx
lea rcx, str.Entering_CNTService::Initialize__
call fcn.14000cbb0
mov rdx, qword [rdi + 0x50]
lea rcx, str.CNTService::SetStatus__lu___lu_
mov r8d, 2
call fcn.14000cbb0
mov rcx, qword [rdi + 0x50]
lea rdx, [rdi + 0x58]
mov dword [rdi + 0x5c], 2
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov r11, qword [rdi]
mov rcx, rdi
call qword [r11 + 0x10]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
test ebx, ebx
mov dword [rdi + 0x64], eax
mov rax, rbp
mov dword [rdi + 0x6c], ebp
mov dword [rdi + 0x70], ebp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rbp
jne 0x14001499b
cmp qword [rsp + rax*8 + 0x50], rbp
je 0x140014910
add bx, 1
add rax, 1
cmp rax, 3
jl 0x140014905
cmp qword [rdi + 0x78], rbp
jne 0x140014930
lea rdx, [rdi + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov qword [rdi + 0x78], rax
mov rcx, qword [rdi + 0x78]
test rcx, rcx
je 0x140014969
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x50]
mov r9d, 0x68
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
xor r8d, r8d
mov dx, 1
mov word [rsp + 0x28], bx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rdx, qword [rdi + 0x50]
lea rcx, str.CNTService::SetStatus__lu___lu_
mov r8d, 1
call fcn.14000cbb0
mov rcx, qword [rdi + 0x50]
lea rdx, [rdi + 0x58]
mov dword [rdi + 0x5c], 1
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor eax, eax
jmp 0x140014a40
xor bx, bx
nop
cmp qword [rsp + rax*8 + 0x50], rbp
je 0x1400149ab
add bx, 1
add rax, 1
cmp rax, 3
jl 0x1400149a0
cmp qword [rdi + 0x78], rbp
jne 0x1400149cb
lea rdx, [rdi + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov qword [rdi + 0x78], rax
mov rcx, qword [rdi + 0x78]
test rcx, rcx
je 0x140014a04
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x50]
mov r9d, 0x69
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ebp
xor r8d, r8d
mov dx, 4
mov word [rsp + 0x28], bx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rdx, qword [rdi + 0x50]
lea rcx, str.CNTService::SetStatus__lu___lu_
mov r8d, 4
call fcn.14000cbb0
mov rcx, qword [rdi + 0x50]
lea rdx, [rdi + 0x58]
mov dword [rdi + 0x5c], 4
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
lea rcx, str.Leaving_CNTService::Initialize__
call fcn.14000cbb0
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140014a90
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xf0
xor ebx, ebx
mov eax, r8d
mov r10, rdx
test eax, eax
lea rax, [rsp + 0x60]
lea rcx, str.WinSta0Default
mov qword [rsp + 0x50], rax
mov qword [r11 - 0x68], rcx
lea rax, [r11 - 0x78]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea rcx, str.Ati2evxx.exe__NoLogOnClient
mov dword [rsp + 0x30], 0x20
lea r8, str.Ati2evxx.exe__Client
cmovne r8, rcx
xor r9d, r9d
xor edx, edx
mov rcx, r10
mov dword [rsp + 0x28], ebx
mov dword [r11 - 0x78], 0x68
mov qword [rsp + 0x20], rbx
mov qword [r11 - 0x70], rbx
mov qword [r11 - 0x60], rbx
mov dword [r11 - 0x4c], ebx
mov dword [r11 - 0x50], ebx
mov dword [r11 - 0x54], ebx
mov dword [r11 - 0x58], ebx
mov dword [r11 - 0x3c], ebx
mov word [r11 - 0x38], bx
mov qword [r11 - 0x30], rbx
mov word [r11 - 0x36], bx
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x140014b4c
lea rcx, str.Failed_to_Create_Ati2evxx.exe_process_n
call fcn.14000cbb0
mov rax, rbx
add rsp, 0xf0
pop rbx
ret
lea rcx, str.Client_Ati2evxx.exe_created_n
call fcn.14000cbb0
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140014b72
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x60]
add rsp, 0xf0
pop rbx
ret
Function at 0x140014c00
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x70
mov rbx, qword [0x1400e1ce0]
mov edi, ecx
mov edx, ecx
lea rcx, str.CNTService::Handler__lu_
call fcn.14000cbb0
mov r11d, edi
sub r11d, 1
je 0x140014ce6
sub r11d, 1
mov rcx, rbx
je 0x140014cdb
sub r11d, 1
je 0x140014cd0
sub r11d, 1
je 0x140014cc5
cmp r11d, 1
je 0x140014cb3
cmp edi, 0x80
jb 0x140014c92
mov rax, qword [rbx]
mov edx, edi
call qword [rax + 0x48]
test eax, eax
jne 0x140014db0
xor esi, esi
lea r8d, [rax + 0x6a]
xor r9d, r9d
mov dx, 1
mov rcx, rbx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.140014770
jmp 0x140014db0
xor esi, esi
xor r9d, r9d
mov dx, 1
lea r8d, [rsi + 0x6a]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call fcn.140014770
jmp 0x140014db0
mov rax, qword [rbx]
call qword [rax + 0x40]
mov dword [rbx + 0x5c], 1
jmp 0x140014db0
mov rax, qword [rbx]
call qword [rax + 0x28]
jmp 0x140014db0
mov rax, qword [rbx]
call qword [rax + 0x38]
jmp 0x140014db0
mov rax, qword [rbx]
call qword [rax + 0x30]
jmp 0x140014db0
mov rdx, qword [rbx + 0x50]
lea rcx, str.CNTService::SetStatus__lu___lu_
mov r8d, 3
call fcn.14000cbb0
mov rcx, qword [rbx + 0x50]
lea rdx, [rbx + 0x58]
mov dword [rbx + 0x5c], 3
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x18]
mov r11, qword [rbx]
mov rcx, rbx
call qword [r11 + 0x20]
xor esi, esi
xor di, di
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
mov rax, rsi
nop
cmp qword [rsp + rax*8 + 0x50], rsi
je 0x140014d4b
add di, 1
add rax, 1
cmp rax, 3
jl 0x140014d40
cmp qword [rbx + 0x78], rsi
jne 0x140014d6b
lea rdx, [rbx + 8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov qword [rbx + 0x78], rax
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x140014da4
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
mov r9d, 0x6c
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
xor r8d, r8d
mov dx, 4
mov word [rsp + 0x28], di
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
lea rcx, [0x1400e0160]
call fcn.14001b1b0
mov r8d, dword [rbx + 0x5c]
mov rdx, qword [rbx + 0x50]
lea rcx, str.Updating_status___lu___lu_
call fcn.14000cbb0
mov rcx, qword [rbx + 0x50]
lea rdx, [rbx + 0x58]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
Function at 0x140014f60
Capabilities:
Create service
Persist via windows service
Set registry value

Disassembly:
push rsi
push r12
sub rsp, 0x298
xor edx, edx
mov r12, rcx
xor ecx, ecx
lea r8d, [rdx + 6]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rsi, rax
jne 0x140014f8f
add rsp, 0x298
pop r12
pop rsi
ret
mov qword [rsp + 0x2b0], rbx
lea rdx, [rsp + 0x70]
mov r8d, 0x104
xor ecx, ecx
mov qword [rsp + 0x290], rbp
mov qword [rsp + 0x280], r13
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor r13d, r13d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
lea r9d, [r13 + 0x10]
lea r8, [r12 + 8]
lea rdx, [r12 + 8]
mov rcx, rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x110
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
mov rbp, rax
jne 0x140015027
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400151b6
mov rax, qword [str.SYSTEMCurrentControlSetServicesEventLogApplication_]
lea rcx, [rsp + 0x180]
mov qword [rsp + 0x288], rdi
mov qword [rcx], rax
mov rax, qword [0x1400a8de8]
lea rdi, [rsp + 0x180]
mov qword [rcx + 8], rax
mov rax, qword [0x1400a8df0]
mov qword [rsp + 0x2c0], r13
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400a8df8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400a8e00]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400a8e08]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400a8e10]
mov qword [rcx + 0x30], rax
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
nop
movzx eax, byte [r12 + rcx + 8]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x1400150a0
lea r8, [rsp + 0x2c0]
lea rdx, [rsp + 0x180]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x1400150ec
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x1400151ae
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
lea rax, [rsp + 0x70]
lea rdx, str.EventMessageFile
not rcx
mov r9d, 2
xor r8d, r8d
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x2c0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x2c0]
lea rax, [rsp + 0x2b8]
lea rdx, str.TypesSupported
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x2b8], 7
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x2c0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r9, [r12 + 8]
mov r8d, 0x64
mov dx, 4
mov rcx, r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call fcn.140014770
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov rdi, qword [rsp + 0x288]
mov rbp, qword [rsp + 0x290]
mov rbx, qword [rsp + 0x2b0]
mov r13, qword [rsp + 0x280]
add rsp, 0x298
pop r12
pop rsi
ret
Function at 0x1400151e0
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x30
xor edx, edx
mov rbp, rcx
xor ecx, ecx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rbx, rax
jne 0x14001520e
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
lea rdx, [rbp + 8]
mov r8d, 0x10000
mov rcx, rax
mov qword [rsp + 0x50], r12
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rsi, rax
je 0x140015295
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x14001526c
lea r9, [rbp + 8]
lea r8d, [rdi + 0x65]
mov dx, 4
mov rcx, rbp
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call fcn.140014770
mov edi, 1
jmp 0x14001528c
lea r9, [rbp + 8]
mov r8d, 0x66
mov dx, 1
mov rcx, rbp
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call fcn.140014770
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbp
ret

Function at 0x1400153a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor edx, edx
lea rax, [rsp + 0x40]
mov r9d, ecx
mov qword [rsp + 0x28], rax
lea r8, [0x1400152c0]
xor ecx, ecx
mov dword [rsp + 0x20], edx
mov dword [rsp + 0x40], edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x1400153e0
lea rcx, str.FAILURE:_HandlerEx:_Failed_to_create_thread.
call fcn.14000cbb0
add rsp, 0x38
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x38
ret

Function at 0x140015e70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push r12
sub rsp, 0x40
xor r12d, r12d
test r8d, r8d
mov rdi, r9
mov dword [r9], r12d
mov rbp, rcx
je 0x140015f14
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov esi, r8d
lea rbx, [rdx + 8]
nop
mov rdx, qword [rbx - 8]
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
xor r8d, r8d
mov rcx, rbp
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x78], r12d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140015ef6
cmp dword [rsp + 0x70], 4
jne 0x140015ef6
cmp dword [rsp + 0x78], 1
jne 0x140015f00
mov eax, dword [rbx]
or dword [rdi], eax
jmp 0x140015f00
cmp dword [rbx + 4], r12d
je 0x140015f00
mov eax, dword [rbx]
or dword [rdi], eax
add rbx, 0x10
sub rsi, 1
jne 0x140015ea0
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
Function at 0x1400173b0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x160
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
xor r12d, r12d
mov esi, r8d
mov rbp, rdx
mov qword [rsp + 0x180], r12
call fcn.140016db0
test rax, rax
mov rdi, rax
jne 0x1400173f2
lea eax, [rdi + 8]
jmp 0x1400174a1
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x104
call fcn.14007cd30
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x50]
xor r8d, r8d
call fcn.1400171a0
test eax, eax
jne 0x1400174a1
mov qword [rsp + 0x40], r12
lea rax, [rsp + 0x180]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov eax, dword [rbx + 0xc]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], r12d
call fcn.140016ef0
test eax, eax
je 0x14001745e
mov eax, 2
jmp 0x1400174a1
mov r9d, dword [rbx + 8]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rsp + 0x180]
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x180]
test eax, eax
je 0x140017499
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400174a1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x140017520
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rdi
sub rsp, 0x168
test rcx, rcx
mov rdi, rdx
mov rbx, rcx
jne 0x140017546
lea eax, [rcx + 4]
add rsp, 0x168
pop rdi
pop rbx
ret
test rdx, rdx
jne 0x140017558
lea eax, [rdx + 5]
add rsp, 0x168
pop rdi
pop rbx
ret
mov qword [rsp + 0x188], rbp
xor ebp, ebp
mov qword [rsp + 0x160], rsi
mov qword [rsp + 0x180], rbp
call fcn.140016db0
test rax, rax
mov rsi, rax
jne 0x140017587
lea ebx, [rbp + 8]
jmp 0x140017644
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x104
call fcn.14007cd30
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call fcn.1400171a0
test eax, eax
mov ebx, eax
jne 0x140017644
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x180]
mov ebx, 2
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
lea rdx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebp
call fcn.140016ef0
test eax, eax
jne 0x140017644
mov rcx, qword [rsp + 0x180]
lea rax, [rsp + 0x190]
lea r9d, [rbx + 2]
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140017634
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, 1
jmp 0x140017644
mov rcx, qword [rsp + 0x180]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, ebp
mov rsi, qword [rsp + 0x160]
mov rbp, qword [rsp + 0x188]
mov eax, ebx
add rsp, 0x168
pop rdi
pop rbx
ret