joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d880
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4b0
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
mov ebp, edx
mov rdi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor ebx, ebx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14001da9c
lea r8d, [rbx + 0x12]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x14001da93
mov qword [rsp + 0x4d8], r14
lea r14, [0x140093ba0]
test ebp, ebp
jne 0x14001d9a6
xorps xmm0, xmm0
mov qword [rsp + 0x60], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x68], 1
lea r8, [rsp + 0x38]
mov qword [rsp + 0x58], rax
lea edx, [rbx + 2]
mov qword [rsp + 0x70], 1
mov rcx, rdi
mov qword [rsp + 0x78], rbx
movdqu xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x38], 0x15180
mov dword [rsp + 0x50], 4
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
mov ebx, eax
mov rcx, qword [0x140093ba0]
cmp rcx, r14
je 0x14001d9a6
test byte [rcx + 0x1c], 1
lea rbp, str.ChangeServiceConfig2_failure_actions
je 0x14001d984
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call fcn.14001e200
mov rcx, qword [0x140093ba0]
cmp rcx, r14
je 0x14001d9a6
test byte [rcx + 0x44], 1
je 0x14001d9a6
mov rcx, qword [rcx + 0x38]
mov edx, 0xf
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbp
call fcn.14001e200
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x208
call fcn.140043ce0
mov r8d, 0x104
lea rdx, [rsp + 0x80]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
xor edx, edx
lea rcx, [rsp + 0x290]
mov r8d, 0x208
call fcn.140043ce0
lea r9, [rsp + 0x80]
mov edx, 0x104
lea r8, str.__s__129
lea rcx, [rsp + 0x290]
call fcn.1400032c0
lea rax, [rsp + 0x290]
mov edx, 1
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_ChangeServiceConfig2W]
mov ebx, eax
mov rcx, qword [0x140093ba0]
cmp rcx, r14
je 0x14001da82
test byte [rcx + 0x1c], 1
lea rbp, str.ChangeServiceConfig2_description
je 0x14001da60
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
call fcn.14001e200
mov rcx, qword [0x140093ba0]
cmp rcx, r14
je 0x14001da82
test byte [rcx + 0x44], 1
je 0x14001da82
mov rcx, qword [rcx + 0x38]
mov edx, 0xf
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbp
call fcn.14001e200
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov r14, qword [rsp + 0x4d8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.14001f4e0
mov rbx, qword [rsp + 0x4e0]
add rsp, 0x4b0
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001de50
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xf0
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rsp + 0xe0], rax
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
mov edi, r9d
lea r8d, [rdx + 0x68]
call fcn.140043ce0
xor eax, eax
mov dword [rsp + 0x70], 0x68
xor ecx, ecx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
xor r9d, r9d
mov qword [rsp + 0x60], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov word [rsp + 0xb0], cx
mov qword [rsp + 0x48], rax
mov rdx, rbx
lea rax, [rsp + 0x70]
mov dword [rsp + 0xac], 1
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
je 0x14001df22
mov rcx, qword [rsp + 0x50]
mov edx, edi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x14001df0a
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14001df1b
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, 1
jmp 0x14001df24
xor eax, eax
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14001f4e0
mov rbx, qword [rsp + 0x108]
add rsp, 0xf0
pop rdi
ret

Function at 0x14001df50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rsp + 0x240], rax
movzx eax, word [0x1400971c0]
cmp ax, word [0x1400815c8]
jne 0x14001e075
mov edx, 1
xor ecx, ecx
lea r8d, [rdx + 0xf]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
test rax, rax
je 0x14001e075
mov rdx, rax
mov qword [rsp + 0x268], rdi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x14001e06c
mov rcx, rax
mov qword [rsp + 0x260], rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
lea rbx, [0x1400971c0]
mov rsi, rax
test rax, rax
je 0x14001e037
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140043ce0
lea r8, str.StringFileInfo040904b0PRODUCTVERSION
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140049578
lea r9, [rsp + 0x28]
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov rcx, rsi
lea rdx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x14001e037
mov r8, qword [rsp + 0x20]
mov edx, 0x104
mov rcx, rbx
call fcn.140049578
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeResource]
mov rsi, qword [rsp + 0x260]
mov rax, rbx
mov rdi, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001f4e0
add rsp, 0x250
pop rbx
ret
lea rax, [0x1400971c0]
jmp 0x14001e04b
lea rax, [0x1400971c0]
jmp 0x14001e053
Function at 0x1400428ac
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x20
and dword [rsp + 0x30], 0
call fcn.140058fcc
mov ebx, 2
lea r8, [rsp + 0x30]
mov r9d, ebx
mov rcx, qword [rax + 0x28]
lea edx, [rbx + 0x20]
call qword [sym.imp.api_ms_win_core_localization_l1_2_0.dll_GetLocaleInfoEx]
mov eax, dword [rsp + 0x30]
cmp ax, 0x30
je 0x1400428f9
cmp ax, 0x31
jne 0x1400428ed
mov ebx, 1
jmp 0x1400428f9
xor ebx, ebx
cmp ax, 0x32
lea ecx, [rbx + 3]
cmove ebx, ecx
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x140052b74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140052998
Function at 0x1400011e0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140011d18], rbx
je 0x14000122c
cmp rax, rbx
jne 0x14000121f
mov ebx, 1
mov esi, ebx
jmp 0x140001231
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140001204
mov ebx, 1
mov eax, dword [0x140011d20]
cmp eax, ebx
jne 0x140001247
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x1400012b6
mov eax, dword [0x140011d20]
test eax, eax
jne 0x1400012b0
mov dword [0x140011d20], ebx
lea r15, [0x14000c178]
lea rdi, [0x14000c160]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400012a2
test eax, eax
jne 0x1400012a6
cmp qword [rdi], 0
je 0x140001297
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [vtable.H_.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x14000126e
test eax, eax
je 0x1400012b6
mov eax, 0xff
jmp 0x14000139c
mov dword [0x140011484], ebx
mov eax, dword [0x140011d20]
cmp eax, ebx
jne 0x1400012dd
lea rdx, [0x14000c158]
lea rcx, [0x14000c138]
call sub.msvcrt.dll__initterm
mov dword [0x140011d20], 2
test esi, esi
jne 0x1400012ea
xor eax, eax
xchg qword [0x140011d18], rax
cmp qword [0x140011d38], 0
je 0x140001328
lea rcx, [0x140011d38]
call fcn.140001690
test eax, eax
je 0x140001328
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140011d38]
mov r9, qword [vtable.H_.0]
call r9
mov r8, qword [0x140011498]
mov rdx, qword [0x140011490]
mov ecx, dword [0x140011488]
call fcn.140002b28
mov dword [0x140011480], eax
cmp dword [0x1400114a0], 0
jne 0x140001358
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140011484], 0
jne 0x14000136d
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140011480]
jmp 0x14000139c
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.140001724
add rsp, 0x28
jmp 0x1400011e0

Function at 0x14000157c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400015c8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400015c0
cmp dword [rcx + 0x3c], edx
jl 0x1400015c0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400015c0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400015c8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1400016f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140001718
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140001718
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140007280
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x140011088]
xor rax, rsp
mov qword [rsp + 0xa0], rax
and dword [rsp + 0x40], 0
lea r9, [rsp + 0x44]
xor edx, edx
mov dword [rsp + 0x44], 0x44
mov rbx, rcx
lea r8, [rsp + 0x50]
lea ecx, [rdx + 0x1a]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CreateWellKnownSid]
nop dword [rax + rax]
test eax, eax
jne 0x140007322
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x1400072e5
movzx ebx, ax
or ebx, 0xc0070000
lea rax, [0x14000cd10]
mov qword [rsp + 0x30], rax
lea rax, [0x14000da68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x36d
lea r9, str.onecoreds_securityeaspolicyenginecommon.cpp
mov r8d, ebx
lea rdx, str._0x_08x___ws:_u_:__ws:_ws_n
mov ecx, 1
call fcn.140006ac0
jmp 0x14000738c
lea r8, [rsp + 0x40]
mov rcx, rbx
lea rdx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
jne 0x14000737c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14000735a
movzx ebx, ax
or ebx, 0xc0070000
lea rax, [0x14000cd10]
mov qword [rsp + 0x30], rax
lea rax, str._CheckAdmin
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x378
jmp 0x140007305
mov eax, dword [rsp + 0x40]
neg eax
sbb ebx, ebx
not ebx
and ebx, 0xc0000022
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400013f0
add rsp, 0xb0
pop rbx
ret

Function at 0x140007598
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x140011088]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
mov r14, r8
mov rsi, rcx
mov edi, 1
test rcx, rcx
jne 0x1400075f2
lea rax, [0x14000cd10]
mov ebx, 0xc00000e5
mov qword [rsp + 0x30], rax
mov ecx, edi
lea rax, str.Registry_key_is_not_opened
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x285
jmp 0x140007698
dec edi
lea r8, [0x14000d900]
mov edx, 0xb
lea rcx, [rsp + 0x40]
mov r9d, dword [r14 + rdi*4]
call fcn.140006fdc
test eax, eax
jne 0x140007669
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, 0xfffffffc
jne 0x140007638
cmp eax, 1
je 0x140007638
test edi, edi
jne 0x1400075f2
jmp 0x1400076ae
test eax, eax
jg 0x140007640
mov ebx, eax
jmp 0x140007649
movzx ebx, ax
or ebx, 0xc0070000
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, str.RegDeleteValue
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x298
jmp 0x140007693
btr eax, 0x1c
bts eax, 0x1e
mov ebx, eax
lea rax, [0x14000cd10]
mov qword [rsp + 0x30], rax
lea rax, str.RtlStringCchPrintfW
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x28e
mov ecx, 1
lea r9, str.onecoreds_securityeaspolicyenginecommon.cpp
mov r8d, ebx
lea rdx, str._0x_08x___ws:_u_:__ws:_ws_n
call fcn.140006ac0
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400013f0
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop r14
pop rdi
pop rsi
ret
Function at 0x140008118
Capabilities:
Delete registry key

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x50
and qword [r11 + 8], 0
test edx, edx
lea rdx, [0x14000d830]
je 0x140008197
lea rax, [r11 + 0x10]
xor r9d, r9d
mov qword [r11 - 0x18], rax
xor r8d, r8d
lea rax, [r11 + 8]
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x1400081bc
jle 0x140008175
movzx ebx, ax
or ebx, 0xc0070000
lea rax, [0x14000cd10]
mov qword [rsp + 0x30], rax
lea rax, str.RegCreateKeyEx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x47b
jmp 0x1400081ed
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteTreeW]
nop dword [rax + rax]
mov ebx, eax
add eax, 0xfffffffc
cmp eax, 0x48b
jbe 0x1400081c0
cmp ebx, 1
je 0x1400081c0
cmp ebx, 0x491
jae 0x1400081c0
xor ebx, ebx
jmp 0x140008208
test ebx, ebx
jle 0x1400081cd
movzx ebx, bx
or ebx, 0xc0070000
lea rax, [0x14000cd10]
mov qword [rsp + 0x30], rax
lea rax, str.RegDeleteKey
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x489
lea r9, str.onecoreds_securityeaspolicyenginecommon.cpp
mov r8d, ebx
lea rdx, str._0x_08x___ws:_u_:__ws:_ws_n
mov ecx, 1
call fcn.140006ac0
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000821e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x50
pop rbx
ret
Function at 0x140008230
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x140011088]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, rcx
test rcx, rcx
jne 0x14000827e
lea rax, [0x14000cd10]
mov ebx, 0xc00000e5
mov qword [rsp + 0x30], rax
lea rax, str.unexpected
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x425
jmp 0x14000839d
xor ebp, ebp
lea rdi, [r8 + 0x10]
movzx eax, word [rdi - 8]
mov ecx, 0xfff7
sub ax, 0xb
test cx, ax
jne 0x140008378
mov r9d, dword [rdi - 0x10]
cmp r9d, 5
je 0x1400082aa
cmp r9d, 8
jne 0x1400082c0
mov eax, 0x13
or ecx, 0xffffffff
mov word [rdi - 8], ax
xor eax, eax
cmp cx, word [rdi]
sete al
mov dword [rdi], eax
lea r8, [0x14000d900]
mov edx, 0xc
lea rcx, [rsp + 0x48]
call fcn.140006fdc
mov ebx, eax
test eax, eax
jne 0x140008356
mov eax, dword [rdi]
lea r9d, [rbx + 4]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x140008329
inc ebp
add rdi, 0x20
cmp ebp, 1
jb 0x140008284
jmp 0x1400083b8
jle 0x140008334
movzx ebx, ax
or ebx, 0xc0070000
lea rax, [0x14000cd10]
mov qword [rsp + 0x30], rax
lea rax, str.RegSetValueEx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x458
jmp 0x14000839d
lea rax, [0x14000cd10]
mov qword [rsp + 0x30], rax
lea rax, str.RtlStringCchPrintfW
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x44b
jmp 0x14000839d
lea rax, [0x14000cd10]
mov ebx, 0xc00000bb
mov qword [rsp + 0x30], rax
lea rax, str.Invalid_Policy_Type
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x43f
lea r9, str.onecoreds_securityeaspolicyenginecommon.cpp
mov r8d, ebx
lea rdx, str._0x_08x___ws:_u_:__ws:_ws_n
mov ecx, 1
call fcn.140006ac0
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400013f0
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop r14
pop rdi
pop rbp
ret
Function at 0x140008918
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov dword [rax + 0x10], edx
mov dword [rax + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rdi, [r8 + 4]
mov dword [r8], 1
mov rsi, r8
lea rdx, [rax + 0x10]
xor ebp, ebp
xor r8d, r8d
xor ecx, ecx
mov dword [rdi], ebp
mov dword [rax + 0x10], ebp
call qword [sym.imp.ntdll.dll_RtlGetDeviceFamilyInfoEnum]
nop dword [rax + rax]
cmp dword [rsp + 0x68], 0xa
jne 0x1400089bc
lea rax, [rsp + 0x70]
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x30], rax
lea r9d, [rbp + 0x10]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x28], rax
lea r8, str.PreProvisioningCheck
lea rdx, str.SOFTWAREMicrosoftDeviceEncryption
mov qword [rsp + 0x20], rbp
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmovne ecx, ebp
test ecx, ecx
jne 0x140008a11
mov dword [rdi], 0x32
jmp 0x140008a0b
mov rdx, rdi
call fcn.140008a2c
mov ebx, eax
test eax, eax
je 0x140008a07
lea rax, [0x14000cd10]
mov r8d, ebx
mov qword [rsp + 0x30], rax
lea r9, str.onecoreds_securityeaspolicyengineevallib_bitlockerprovider.cpp
lea rax, str.QueryBitLockerStatus
mov ecx, 1
mov qword [rsp + 0x28], rax
lea rdx, str._0x_08x___ws:_u_:__ws:_ws_n
mov dword [rsp + 0x20], 0x5a
call fcn.140006ac0
jmp 0x140008a13
cmp dword [rdi], ebp
je 0x140008a11
mov dword [rsi], 3
mov ebx, ebp
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009088
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x1060
call fcn.140009d00
sub rsp, rax
mov rax, qword [0x140011088]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rdi, rcx
mov r14d, 0x800
mov r8d, r14d
lea rcx, [rsp + 0x50]
xor edx, edx
call sub.msvcrt.dll_memset
xor esi, esi
lea rcx, [rsp + 0x850]
mov r8d, r14d
mov dword [rdi], esi
xor edx, edx
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x400
mov qword [rsp + 0x30], rax
lea r9d, [rsi + 2]
lea rax, [rsp + 0x850]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea r8, str.ThirdPartyEncryptionProviderPath
lea rdx, str.SYSTEMCurrentControlSetControlEAS
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x140009144
lea ecx, [rsi + 1]
lea eax, [rsi + 0x5e]
lea rdx, [0x14000cd10]
jmp 0x140009166
lea rcx, [rsp + 0x50]
mov r8, r14
lea rdx, [rsp + 0x850]
call sub.msvcrt.dll_memcpy
mov ecx, 4
lea rdx, [rsp + 0x50]
lea eax, [rcx + 0x5e]
mov qword [rsp + 0x30], rdx
lea r9, str.onecoreds_securityeaspolicyengineutilregs.cxx
lea rdx, str.RegGetValueW_ThirdPartyEncryptionProviderPath_
mov r8d, ebx
mov qword [rsp + 0x28], rdx
lea rdx, str._0x_08x___ws:_u_:__ws:_ws_n
mov dword [rsp + 0x20], eax
call fcn.140006ac0
test ebx, ebx
jne 0x1400091b5
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x14000919e
test rax, rax
jne 0x1400091b1
lea ebx, [rax + 0xd]
jmp 0x1400091e2
test ebx, ebx
je 0x1400091c1
cmp ebx, 2
je 0x1400091da
cmp ebx, 3
jne 0x1400091e2
jmp 0x1400091da
lea rcx, [rsp + 0x50]
call fcn.1400092fc
mov ebx, eax
lea ecx, [rax - 2]
cmp ecx, 1
ja 0x1400091e2
call fcn.140009218
mov dword [rdi], 1
mov ebx, esi
mov eax, ebx
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.1400013f0
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140009218
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov r9d, 3
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlEAS
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14000926a
mov ecx, 1
lea rdx, str.RegOpenKeyEx_SYSTEMCurrentControlSetControlEAS_
mov eax, 0x9e
jmp 0x1400092ac
mov rcx, qword [rsp + 0x50]
lea rdx, str.ThirdPartyEncryptionProviderPath
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14000929b
mov ecx, 1
lea rdx, str.RegDeleteValue
mov eax, 0xa4
jmp 0x1400092ac
mov ecx, 4
lea rdx, str.RegDeleteValue_ThirdPartyEncryptionProviderPath_
mov eax, 0xa6
lea r8, [0x14000cd10]
mov qword [rsp + 0x30], r8
lea r9, str.onecoreds_securityeaspolicyengineutilregs.cxx
mov qword [rsp + 0x28], rdx
mov r8d, ebx
lea rdx, str._0x_08x___ws:_u_:__ws:_ws_n
mov dword [rsp + 0x20], eax
call fcn.140006ac0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400092ed
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x1400092fc
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbx
push rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x28], 0
xor r9d, r9d
mov dword [rax - 0x30], 0x80
mov edx, 0x80000000
mov rsi, rcx
mov byte [rax + 0x10], 0
mov dword [rax - 0x38], 3
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140009397
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test rsi, rsi
lea r9, str.onecoreds_securityeaspolicyengineutilregs.cxx
mov edi, eax
lea rdx, str._0x_08x___ws:_u_:__ws:_ws_n
lea rax, [0x14000cd10]
mov r8d, edi
cmove rsi, rax
lea ecx, [rbx + 2]
lea rax, str.CreateFile_dllPath_
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0xf1
call fcn.140006ac0
jmp 0x14000948e
and qword [rsp + 0x28], 0
lea r8, [rsp + 0x68]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x70]
xor r9d, r9d
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtGetCachedSigningLevel]
nop dword [rax + rax]
mov edi, eax
test eax, eax
je 0x1400093ee
lea rax, [0x14000cd10]
test rsi, rsi
cmove rsi, rax
lea rax, [0x14000e3d0]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x106
jmp 0x140009464
mov r8d, 8
cmp byte [rsp + 0x68], r8b
jae 0x14000947f
and qword [rsp + 0x78], 0
lea rdx, [rsp + 0x78]
xor r9d, r9d
mov dword [rsp + 0x78], r8d
lea ecx, [r8 + 0x5f]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
js 0x140009438
test byte [rsp + 0x7c], 2
je 0x140009438
cmp byte [rsp + 0x68], 4
jne 0x140009438
xor edi, edi
jmp 0x14000943d
mov edi, 0x241
lea rax, [0x14000cd10]
test rsi, rsi
cmove rsi, rax
lea rax, str.SE_SIGNING_LEVEL_MICROSOFT___resultSigningLevel
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x113
lea r9, str.onecoreds_securityeaspolicyengineutilregs.cxx
mov r8d, edi
lea rdx, str._0x_08x___ws:_u_:__ws:_ws_n
mov ecx, 1
call fcn.140006ac0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret