joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ff81c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400ff89a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400ff891
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400ff891
mov rax, qword [rbp - 8]
jmp 0x1400ff8af
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400ff864
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001230
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, str.flZHXVBfBgEbV1lf
call fcn.180001150
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x1800012de
lea rcx, str.Y1pHR0BSWWNHXEFWVkc
call fcn.180001150
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rcx, str.dkFQUkFWYVtHVlRX
mov qword [0x18000a200], rax
call fcn.180001150
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rcx, str.YlJcR3NcR2BcXVJfUHxXWVBQQQ
mov qword [0x18000a1e0], rax
call fcn.180001150
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x18000a1f8], rax
lea rcx, str.ZltZRFRDXB1RX1k
call fcn.180001150
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x180001350
lea rcx, str.ZVJBW3RDRVZbV2I
call fcn.180001150
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea rcx, str.ZVJBW3NaWVZwS1xAQUBi
mov qword [0x18000a1f0], rax
call fcn.180001150
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x18000a1e8], rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180001360
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rdi, 0xffffffffffffffff
mov rsi, rdx
mov rbx, rdi
mov rbp, rcx
nop dword [rax + rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x180001390
inc rbx
lea rcx, [rbx + rbx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rax, rax
je 0x1800013bd
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], ebx
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x180001544
inc rdi
cmp byte [rdi + rbp], bl
jne 0x1800013e0
inc rdi
lea rcx, [rdi + rdi]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x18000140c
mov r8, rdi
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
mov r8d, 0x1bb
xor r9d, r9d
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r14, rax
test rax, rax
je 0x18000153b
mov dword [rsp + 0x30], 0x800000
lea rdx, [0x1800034f0]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbp, rax
test rax, rax
je 0x180001532
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
jne 0x180001529
xor edx, edx
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x180001529
mov edi, 0x186a0
mov dword [rsp + 0x70], ebx
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x180001529
lea eax, [rbx + 1]
cmp eax, edi
jbe 0x1800014d3
lea eax, [rdi + rdi]
mov rcx, rsi
mov edx, eax
mov edi, eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov rsi, rax
test rax, rax
je 0x180001544
mov r8d, edi
mov edx, ebx
sub r8d, ebx
lea r9, [rsp + 0x70]
dec r8d
add rdx, rsi
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x180001520
mov eax, dword [rsp + 0x70]
add ebx, eax
test eax, eax
jne 0x1800014b4
mov rcx, rbp
mov byte [rbx + rsi], al
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rax, rsi
jmp 0x180001546
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x180001560
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800015b2
lea rcx, str.dglpZFxdUVxCQGlgTEBBVlgAB29CR0ZSRVoGARtXWV8
call fcn.180001150
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
lea rcx, str.dglpZFxdUVxCQGlgTEBBVlgAB29GW1lEVENcHVFfWQ
call fcn.180001150
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xor eax, eax
lea r8, [sym.stagerx64.dll_PSFormatForDisplayAllocs]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140011258
Capabilities:
Terminate process

Disassembly:
jmp 0x1400139e0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112f3
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014d30
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014d50
xor al, al
jmp 0x140014dd1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014d63
xor al, al
jmp 0x140014dd1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014d8d
xor al, al
jmp 0x140014dd1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014da1
xor al, al
jmp 0x140014dd1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014db3
xor al, al
jmp 0x140014dd1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014dcf
xor al, al
jmp 0x140014dd1
mov al, 1
add rsp, 0x38
ret
Function at 0x140002400
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov ebx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi + 0x288]
movabs rax, 0x20c49ba5e353f7cf
imul rcx, rbx
imul rcx
mov rbx, rdx
sar rbx, 7
mov rax, rbx
shr rax, 0x3f
add rbx, rax
add rbx, qword [rsp + 0x30]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call qword [sym.imp.kernel32.dll_QueryPerformanceCounter]
cmp qword [rsp + 0x40], rbx
jle 0x140002450
mov rbx, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x140007240
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1400720d8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rdx
mov edi, ecx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.14003cd00
lea rsi, [rsp + 0x180]
call fcn.1400074a0
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x30]
xor esi, esi
mov r9, rbx
mov r8d, 0x104
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax]
call fcn.140043cdc
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_OutputDebugStringA]
test dword [0x140074d04], 0x20000
je 0x1400072f0
mov rcx, qword [0x140074d10]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], esi
lea r9d, [rsi + 1]
mov r8d, edi
mov qword [rsp + 0x20], rax
lea rdx, [0x1400540b0]
call fcn.140002770
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14001df60
add rsp, 0x150
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000c740
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 0x10]
mov rbx, rcx
mov edi, 0x80008003
cmp dword [rcx + 0x30], eax
jbe 0x14000c775
lea rdx, str.Length_of_Message_write_to_MEI_should_be_shorter_than_m_MTU
xor ecx, ecx
call fcn.140007240
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp qword [rcx + 0x40], 0xffffffffffffffff
jne 0x14000c797
lea rdx, str.Invalid_Device_Handle
xor ecx, ecx
call fcn.140007240
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x38]
mov edx, 0x4e20
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000c7c8
lea rdx, str.HECI_lock_timeout
xor ecx, ecx
call fcn.140007240
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
test eax, eax
je 0x14000c7f0
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, str.Failed_to_attain_global_heci_mutex__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.140007240
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r8d, dword [rbx + 0x30]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x14000c86e
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x3e5
je 0x14000c86e
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, str.Write_file_error__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.140007240
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.kernel32.dll_ReleaseMutex]
test eax, eax
jns 0x14000c938
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, str.Failed_to_release_global_heci_mutex__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.140007240
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov r8d, dword [rsp + 0x40]
lea rdx, str.message_size_write_to_MEI_is__d
xor ecx, ecx
call fcn.140007240
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x40]
mov qword [rsp + 0x20], 0
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x14000c8ee
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, str.Read_file_error__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.140007240
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.kernel32.dll_ReleaseMutex]
test eax, eax
jns 0x14000c938
call qword [sym.imp.kernel32.dll_GetLastError]
lea rdx, str.Failed_to_release_global_heci_mutex__last_error__d
xor ecx, ecx
mov r8d, eax
call fcn.140007240
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.kernel32.dll_ReleaseMutex]
test eax, eax
js 0x14000c84a
mov r8d, dword [rsp + 0x40]
xor ecx, ecx
mov dword [rbx + 0x30], r8d
cmp r8d, dword [rbx + 0x10]
jbe 0x14000c92a
lea rdx, str.Length_of_Message_read_from_MEI_should_be_shorter_than_m_MTU
call fcn.140007240
mov eax, edi
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
lea rdx, str.message_size_read_from_MEI_is__d
call fcn.140007240
xor edi, edi
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x14000d070
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx], 0x50564150
mov rdi, rdx
mov rbx, rcx
je 0x14000d096
lea rdx, str.Unexpected_packet_Sig
xor ecx, ecx
call fcn.140007240
mov eax, 0x100
cmp word [rbx + 4], ax
je 0x14000d0af
lea rdx, str.Unexpected_packet_Ver
xor ecx, ecx
call fcn.140007240
mov ecx, dword [rbx + 0x10]
lea rax, [rdi - 0x14]
cmp rcx, rax
je 0x14000d0c9
lea rdx, str.Unexpected_packet_DataLen
xor ecx, ecx
call fcn.140007240
mov r8d, dword [rbx + 0xc]
cmp r8d, 6
ja case.default.0x14000d0e9
lea rdx, [0x140000000]
mov ecx, dword [rdx + r8*4 + 0xd194]
add rcx, rdx
jmp rcx
lea rdx, str.Invalid_packet_status:_CHS_STATUS_MAX_MESSAGE_LENGTH_EXCEEDED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140007240
lea rdx, str.Invalid_packet_status:_CHS_STATUS_UNSPEC_ERROR
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140007240
lea rdx, str.Invalid_packet_status:_CHS_STATUS_CONN_FAILED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140007240
lea rdx, str.Invalid_packet_status:_CHS_STATUS_COMM_FAILED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140007240
lea rdx, str.Invalid_packet_status:_CHS_STATUS_NOT_CONNECTED
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140007240
lea rdx, str.Invalid_packet_status:_CHS_STATUS_HECI_NOT_READY
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140007240
lea rdx, str.Unsupported_packet_status___d
xor ecx, ecx
call fcn.140007240
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d200
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x58
cmp byte [0x140074d18], 0
je 0x14000d217
mov eax, 0xffffffff
add rsp, 0x58
ret
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.kernel32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x20]
lea rcx, [0x140074d90]
call fcn.14000d4e0
cmp al, 1
jne 0x14000d2fa
lea rdx, str.Start__
xor ecx, ecx
call fcn.140007240
call fcn.14001be20
cmp byte [rax], bl
je 0x14000d2e5
call fcn.14001be20
cmp byte [rax + 0x70], bl
je 0x14000d2e5
call fcn.14001be20
cmp byte [rax + 0x30], bl
je 0x14000d2e5
call fcn.14001be20
cmp byte [rax + 0x80], bl
je 0x14000d2e5
call fcn.14001be20
cmp byte [rax + 0x90], bl
je 0x14000d2e5
call fcn.14001be20
cmp byte [rax + 0xa0], bl
je 0x14000d2e5
lea rax, [0x140074df8]
mov dword [0x14007501c], 1
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x28]
lea rax, [0x14000fb80]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rbx
call qword [sym.imp.advapi32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14000d2fe
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [0x14007500c], eax
mov ebx, eax
jmp 0x14000d2fe
lea rdx, str.One_or_more_required_APIs_are_not_available__service_will_exit.
xor ecx, ecx
call fcn.140007240
mov ebx, 0x80070032
jmp 0x14000d2fe
mov ebx, dword [rsp + 0x20]
cmp dword [0x14007501c], 0
jne 0x14000d316
cmp byte [0x140074df2], 0
je 0x14000d316
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret
Function at 0x14000db80
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x28c], 0
mov rbx, rcx
je 0x14000dd20
mov qword [rsp + 0x48], rsi
lea rdx, str.SeDebugPrivilege
mov qword [rsp + 0x50], r14
call fcn.14000ded0
lea rdx, str.SeImpersonatePrivilege
mov rcx, rbx
call fcn.14000ded0
lea rdx, str.SeTcbPrivilege
mov rcx, rbx
call fcn.14000ded0
call qword [sym.imp.kernel32.dll_GetCurrentThreadId]
movzx edx, byte [rbx + 0x299]
movzx ecx, byte [rbx + 0x298]
mov dword [rbx + 0x290], eax
call fcn.140018bb0
test rax, rax
jne 0x14000dc07
lea rdx, str.pSecureChannelMELSPCON_is_NULL
xor ecx, ecx
mov edi, 0x8007000e
call fcn.140007240
jmp 0x14000dc2b
xor edx, edx
mov rcx, rax
call fcn.140018d30
mov edi, eax
test eax, eax
jns 0x14000dc41
lfence
mov r8d, eax
lea rdx, str.PerformInitSession__EstablishSecureChannel___failed_hr:0x_x
xor ecx, ecx
call fcn.140007240
lfence
mov r8d, edi
lea rdx, str.PerformInitSession_Failed:_0x_x___continue_with_service_bootup
xor ecx, ecx
call fcn.140007240
xor edi, edi
lea rcx, [rsp + 0x20]
call fcn.1400029e0
mov rcx, qword [rsp + 0x20]
call fcn.140003790
mov rsi, qword [rsp + 0x28]
test eax, eax
setne r14b
test rsi, rsi
je 0x14000dca9
mov qword [rsp + 0x40], rbp
mov ebp, 0xffffffff
mov eax, ebp
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14000dca4
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax]
call qword [case.0x140027396.0]
lock xadd dword [rsi + 0xc], ebp
cmp ebp, 1
jne 0x14000dca4
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [case.0x140027396.0]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
test r14b, r14b
mov r14, qword [rsp + 0x50]
jne 0x14000dccb
lea rdx, str.Intel_IGFX_adaptor_is_not_present_stop_service_bootup
xor ecx, ecx
call fcn.140007240
mov edi, 0x80004005
mov r8d, edi
lea rdx, str.CoInitializeSecurity___Done:_0x_x
xor ecx, ecx
call fcn.140007240
xor edx, edx
xor ecx, ecx
call fcn.14001decc
xor ecx, ecx
call fcn.140041d9c
xor ecx, ecx
call fcn.140041d9c
xor ecx, ecx
call fcn.140041d9c
xor ecx, ecx
call fcn.140041d9c
test edi, edi
jns 0x14000dd20
lea rdx, str.InitializeSecurity_failed
xor ecx, ecx
call fcn.140007240
mov eax, edi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
cmp dword [rbx + 0x28c], 0
je 0x14000dd56
lea rdx, str.PreMessageLoop:_Service_started_resumed
xor ecx, ecx
call fcn.140007240
mov eax, 4
lea rdx, [rbx + 0x270]
xchg dword [rbx + 0x274], eax
mov rcx, qword [rbx + 0x268]
call qword [sym.imp.advapi32.dll_SetServiceStatus]
mov rcx, rbx
call fcn.14000e4e0
test eax, eax
jns 0x14000dd78
lfence
mov r8d, eax
lea rdx, str.RegisterDisplayDeviceNotification_failed_hr:_0x_x
xor ecx, ecx
call fcn.140007240
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000f280
Capabilities:
Create service

Disassembly:
push rdi
sub rsp, 0xa90
mov rax, qword [0x1400720d8]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov rdi, rcx
call fcn.14000f500
test eax, eax
je 0x14000f2b1
mov eax, 1
jmp 0x14000f3b8
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000f4ae
cmp eax, 0x104
je 0x14000f4ae
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 0x14000f4f7
mov qword [rsp + 0xaa8], rbx
xor edx, edx
mov qword [rsp + 0xab0], rsi
mov r8d, 0xf003f
xor esi, esi
mov word [rsp + rcx + 0x70], si
xor ecx, ecx
call qword [sym.imp.advapi32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14000f3d1
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.14000f160
test eax, eax
jne 0x14000f38f
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140043df0
test eax, eax
je 0x14000f38f
cmp eax, 0xc
je 0x14000f4cb
cmp eax, 0x16
je 0x14000f4c0
cmp eax, 0x22
je 0x14000f4c0
cmp eax, 0x50
jne 0x14000f4b5
lea r8, [rdi + 0x68]
xor r9d, r9d
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.user32.dll_MessageBoxW]
xor eax, eax
mov rbx, qword [rsp + 0xaa8]
mov rsi, qword [rsp + 0xab0]
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.14001df60
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rsi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rsi
add rdi, 0x68
mov qword [rsp + 0x50], rax
mov r9d, 0xf01ff
mov qword [rsp + 0x48], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rsi
mov r8, rdi
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov dword [rsp + 0x30], 1
mov rcx, rbx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.advapi32.dll_CreateServiceW]
test rax, rax
jne 0x14000f492
mov rcx, rbx
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
mov r8d, 0x400
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.14000f160
test eax, eax
jne 0x14000f487
lea r8, str.Could_not_start_service
mov edx, 0x400
lea rcx, [rsp + 0x280]
call fcn.140043df0
test eax, eax
je 0x14000f487
cmp eax, 0xc
je 0x14000f4ec
cmp eax, 0x16
je 0x14000f4e1
cmp eax, 0x22
je 0x14000f4e1
cmp eax, 0x50
jne 0x14000f4d6
xor r9d, r9d
mov r8, rdi
jmp 0x14000f396
mov rcx, rax
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x14000f3a8
xor eax, eax
jmp 0x14000f3b8
mov ecx, 0x80004005
call fcn.14000bd70
int3
mov ecx, 0x80070057
call fcn.14000bd70
int3
mov ecx, 0x8007000e
call fcn.14000bd70
int3
mov ecx, 0x80004005
call fcn.14000bd70
int3
mov ecx, 0x80070057
call fcn.14000bd70
int3
mov ecx, 0x8007000e
call fcn.14000bd70
int3
call fcn.14001e734
int3
Function at 0x1400144a0
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x140014559
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140014525
lea rcx, str.Advapi32.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14001453d
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je case.default.0x14001453d
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call qword [case.0x140027396.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x14001453d
mov rcx, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp qword [sym.imp.advapi32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp byte [0x140075088], 0
jne 0x1400145a4
lea rcx, str.Advapi32.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140014594
lea rdx, [0x140057870]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [0x140075080], rax
mov byte [0x140075088], 1
jmp 0x1400145ab
mov rax, qword [0x140075080]
mov byte [0x140075088], 1
jmp 0x1400145ab
mov rax, qword [0x140075080]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x14001452e
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x140027396.0]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
ror ebx, cl
mov edx, 0x56d53325
invalid