joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400055e8
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400548d0]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r15, r8
xor r13d, r13d
mov qword [r8], r13
mov ebx, 0x104
mov r9d, ebx
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x30]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140005668
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140005668
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140005646
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r13w
lea r8, [0x140037198]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400036e0
lea r8, [rsp + 0x30]
xor edx, edx
mov r14d, 0x1f0003
mov ecx, r14d
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
setne r12b
test rax, rax
jne 0x1400056ea
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x1400057dc
mov rcx, qword [rbp + 0x178]
lea r8, [0x14003715c]
mov edx, 0xc9
call fcn.140005360
mov esi, eax
jmp 0x1400057df
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x24]
mov rcx, rdi
call fcn.140005460
mov esi, eax
test eax, eax
jns 0x140005727
mov rcx, qword [rbp + 0x178]
mov r9d, eax
lea r8, [0x14003715c]
mov edx, 0xcf
call fcn.14000533c
jmp 0x1400057df
lea r8, [0x1400371a0]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400036e0
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, r14d
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
setne r14b
test rax, rax
jne 0x14000577c
mov rcx, qword [rbp + 0x178]
lea r8, [0x14003715c]
mov edx, 0xd5
call fcn.140005360
mov esi, eax
jmp 0x1400057aa
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140005460
mov esi, eax
test eax, eax
jns 0x1400057ba
mov rcx, qword [rbp + 0x178]
mov r9d, eax
lea r8, [0x14003715c]
mov edx, 0xd7
call fcn.14000533c
test r14b, r14b
je 0x1400057df
mov rcx, rbx
call fcn.1400053d8
nop
jmp 0x1400057df
test r14b, r14b
je 0x1400057c8
mov rcx, rbx
call fcn.1400053d8
nop
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r15], rax
mov esi, r13d
test r12b, r12b
je 0x1400057ed
mov rcx, rdi
call fcn.1400053d8
nop
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140031070
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14000c098
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r15, r9
lea rax, [rbp - 8]
mov r14, r8
mov qword [r11 - 0x38], rax
xor edi, edi
xor ebx, ebx
and qword [rbp - 8], rbx
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea r9d, [rdi + 1]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000c0f7
mov rdi, qword [rbp - 8]
and qword [rbp - 8], rbx
xor esi, esi
jmp 0x14000c10c
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.14000b6d0
mov ecx, esi
call fcn.14000b5f4
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14000c12c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rbp - 8], rbx
test esi, esi
js 0x14000c1fa
and dword [rbp + 0x20], ebx
lea rax, [rbp + 0x20]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
mov rdx, r14
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000c1ec
test rbx, rbx
jne 0x14000c1aa
mov eax, dword [rbp + 0x20]
test eax, eax
je 0x14000c1a3
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14000c137
mov esi, 0x8007000e
jmp 0x14000c1fa
mov esi, 0x8000ffff
jmp 0x14000c1fa
cmp dword [rbp - 0x10], 0xb
je 0x14000c1b7
mov esi, 0x8007000d
jmp 0x14000c1fa
xor r14d, r14d
cmp dword [rbp + 0x20], 8
je 0x14000c1d1
mov esi, 0x8007000d
mov ecx, esi
mov r14d, esi
call fcn.14000b6d0
jmp 0x14000c1d7
mov rax, qword [rbx]
mov qword [r15], rax
mov ecx, r14d
call fcn.14000b5f4
mov esi, r14d
test r14d, r14d
jns 0x14000c201
mov ecx, r14d
jmp 0x14000c1fc
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov ecx, esi
call fcn.14000b6d0
mov ecx, esi
call fcn.14000b5f4
test rbx, rbx
je 0x14000c22d
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test rdi, rdi
je 0x14000c241
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x14000d474
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r9
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x30
xor ebx, ebx
lea rax, [r11 + 8]
and qword [r11 + 8], rbx
mov rsi, r8
xor r8d, r8d
mov qword [r11 - 0x18], rax
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 2]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000d4ca
mov rbx, qword [rsp + 0x40]
and qword [rsp + 0x40], 0
xor edi, edi
jmp 0x14000d4df
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.14000b6d0
mov ecx, edi
call fcn.14000b5f4
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000d502
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rsp + 0x40], 0
test edi, edi
js 0x14000d550
xor ecx, ecx
call fcn.14000b5f4
mov eax, dword [rsp + 0x60]
mov r9d, 0xb
mov dword [rsp + 0x28], eax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000d542
xor edi, edi
jmp 0x14000d557
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.14000b6d0
mov ecx, edi
call fcn.14000b5f4
test rbx, rbx
je 0x14000d572
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000f43c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rsi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x14000f46c
cvtsi2ss xmm0, rdx
jmp 0x14000f481
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_ceilf
movss xmm1, dword [0x140045ddc]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x14000f4af
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x14000f4af
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x14000f4dd
cmp rbx, 0x200
jae 0x14000f4da
shl rbx, 3
cmp rbx, rcx
jae 0x14000f4dd
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rbx, rax
ja 0x14000f654
lea rax, [rbx - 1]
mov edi, 1
mov rbx, qword [rsi + 8]
or rax, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.14000d5e8
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x14000f617
mov rcx, qword [rcx]
movabs r8, 0xcbf29ce484222325
xor r9d, r9d
movzx edx, byte [r9 + rax + 0x10]
movabs r10, 0x100000001b3
xor r8, rdx
inc r9
imul r8, r10
cmp r9, 4
jb 0x14000f555
mov r10, qword [rsi + 0x30]
mov r11, qword [rsi + 0x18]
and r10, r8
add r10, r10
cmp qword [r11 + r10*8], rbx
jne 0x14000f594
mov qword [r11 + r10*8], rax
mov qword [r11 + r10*8 + 8], rax
jmp 0x14000f60b
mov rdx, qword [r11 + r10*8 + 8]
mov r8d, dword [rax + 0x10]
cmp r8d, dword [rdx + 0x10]
jne 0x14000f5ce
mov rdi, qword [rdx]
cmp rdi, rax
je 0x14000f58d
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], rdi
mov rdx, qword [rdi + 8]
mov qword [rdx], rax
mov qword [rdi + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000f58d
mov rdi, rdx
jmp 0x14000f5e0
mov rdx, qword [rdx + 8]
mov rdi, rdx
cmp r8d, dword [rdx + 0x10]
je 0x14000f62e
cmp qword [r11 + r10*8], rdx
jne 0x14000f5d3
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], rdi
mov rdx, qword [rdi + 8]
mov qword [rdx], rax
mov qword [rdi + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
mov qword [r11 + r10*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x14000f545
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x14000f60b
lea rcx, str.invalid_hash_bucket_count
call fcn.14000fd9c
int3
Function at 0x14000f68c
Capabilities:
Create service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x290
mov rax, qword [0x1400548d0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x14000f786
mov ebx, 3
xor edx, edx
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000f786
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x70]
and qword [rsp + 0x58], 0
lea r9d, [rbx + 1]
and qword [rsp + 0x50], 0
lea r8, str.Restores_Health_of_Windows_Update_Components
and qword [rsp + 0x48], 0
lea rdx, str.Update_Health_Service
and qword [rsp + 0x40], 0
mov rcx, rdi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14000f761
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
test rbx, rbx
je 0x14000f792
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
jmp 0x14000f792
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140031070
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x290
pop rdi
ret
Function at 0x14000f7bc
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400548d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
xorps xmm0, xmm0
xor edx, edx
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov dword [rsp + 0x38], eax
movups xmmword [rsp + 0x20], xmm0
lea r8d, [rax + 1]
mov esi, 0xe10
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000f8cd
mov r8d, 0x10024
lea rdx, str.Update_Health_Service
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000f8aa
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
test eax, eax
je 0x14000f89b
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
nop dword [rax + rax]
jmp 0x14000f883
cmp dword [rsp + 0x24], 3
jne 0x14000f89b
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
nop dword [rax + rax]
sub esi, 1
je 0x14000f89b
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x14000f866
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
test rbx, rbx
je 0x14000f8cd
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140031070
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14001348c
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file version info

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov rax, qword [0x1400548d0]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rax, qword [rbp + 0x1d0]
mov r13, rcx
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rdx
mov edi, 0x104
mov edx, edi
mov qword [rsp + 0x38], rax
mov r12, r9
mov r15, r8
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
dec eax
lea esi, [rdi - 2]
cmp eax, esi
ja 0x140013676
lea r8, str.kernel32.dll
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400036e0
mov ebx, eax
test eax, eax
js 0x14001367b
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14001356b
mov edx, edi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
nop dword [rax + rax]
dec eax
cmp eax, esi
ja 0x140013676
lea r8, str._ntdll.dll
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.1400036e0
mov ebx, eax
test eax, eax
js 0x14001367b
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_version_l1_1_1.dll_GetFileVersionInfoSizeW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
je 0x140013676
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140013676
mov r8d, r14d
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400135ca
mov ebx, 0x8007000e
jmp 0x14001367b
mov r9, rdi
lea rcx, [rsp + 0x40]
mov r8d, r14d
xor edx, edx
call qword [sym.imp.api_ms_win_core_version_l1_1_1.dll_GetFileVersionInfoW]
nop dword [rax + rax]
test eax, eax
jne 0x1400135ee
mov ebx, 0x8000ffff
jmp 0x140013660
lea r9, [rsp + 0x28]
mov rcx, rdi
lea r8, [rsp + 0x20]
lea rdx, [0x140036f78]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x1400135e7
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
movzx eax, word [rcx + 0xa]
mov dword [r13], eax
movzx eax, word [rcx + 8]
mov dword [rdx], eax
movzx r8d, word [rcx + 0xe]
mov rax, qword [rsp + 0x38]
mov dword [rax], r8d
cmp r8d, 0x23f0
jae 0x140013655
mov eax, 0xcccccccd
mul r8d
shr edx, 3
lea eax, [rdx + rdx*4]
add eax, eax
sub r8d, eax
jmp 0x140013658
xor r8d, r8d
mov dword [r15], r8d
and dword [r12], 0
mov r8, rdi
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14001367b
mov ebx, 0x8000ffff
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140031070
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140013eb0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor r11d, r11d
lea r8, [0x140000000]
mov r9, rdx
test rdx, rdx
jne 0x140013ee1
mov r9, r8
not r9
mov rdx, r9
mov rcx, r8
call fcn.140013bd8
test eax, eax
je 0x1400140e2
mov edx, 0x40
call fcn.140013bd8
test eax, eax
je 0x1400140e2
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x1400140e2
movsxd rax, dword [0x14000003c]
cmp rax, r9
jae 0x1400140e2
lea rcx, [rax + r8]
mov edx, 0x108
call fcn.140013bd8
test eax, eax
je 0x1400140e2
cmp dword [rcx], 0x4550
jne 0x1400140e2
movzx eax, word [rcx + 0x14]
cmp rax, r9
jae 0x1400140e2
add rcx, 0x18
mov edx, 0x10b
cmp word [rcx], dx
jne 0x140013f8a
cmp rax, 0x60
jb 0x1400140e2
mov edx, 0xe0
call fcn.140013bd8
test eax, eax
je 0x1400140e2
mov eax, dword [rcx + 0x5c]
add rcx, 0x70
jmp 0x140013fbb
mov edx, 0x20b
cmp word [rcx], dx
jne 0x1400140e2
cmp rax, 0x70
jb 0x1400140e2
mov edx, 0xf0
call fcn.140013bd8
test eax, eax
je 0x1400140e2
mov eax, dword [rcx + 0x6c]
sub rcx, 0xffffffffffffff80
cmp eax, 2
jbe 0x1400140e2
mov eax, dword [rcx]
mov edx, dword [rcx + 4]
test rax, rax
je 0x1400140e2
test rdx, rdx
je 0x1400140e2
lea rdi, [rax + r8]
test rdi, rdi
je 0x1400140e2
mov rcx, rdi
call fcn.140013bd8
test eax, eax
je 0x1400140e2
mov ebp, 0x10
cmp rdx, rbp
jb 0x1400140e2
movzx ebx, word [rdi + 0xe]
test rbx, rbx
je 0x1400140e2
movzx ecx, word [rdi + 0xc]
lea r14d, [rbp - 8]
add rcx, 2
mov rsi, r11
lea rcx, [rdi + rcx*8]
test rbx, rbx
je 0x140014051
mov rdx, r14
call fcn.140013bd8
test eax, eax
je 0x1400140e2
cmp word [rcx], bp
je 0x140014051
add rcx, r14
inc rsi
cmp rsi, rbx
jb 0x14001402b
je 0x1400140e2
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x1400140ca
mov esi, 0x7fffffff
mov rdx, rbp
and rbx, rsi
add rbx, rdi
mov rcx, rbx
call fcn.140013bd8
test eax, eax
je 0x1400140e2
cmp word [rbx + 0xe], r11w
jne 0x140014080
cmp word [rbx + 0xc], r11w
je 0x1400140e2
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.140013bd8
test eax, eax
je 0x1400140e2
mov ebx, dword [rcx + 4]
test ebx, ebx
jns 0x1400140ca
and rbx, rsi
mov rdx, rbp
add rbx, rdi
mov rcx, rbx
call fcn.140013bd8
test eax, eax
je 0x1400140e2
cmp word [rbx + 0xe], r11w
jne 0x1400140ba
cmp word [rbx + 0xc], r11w
je 0x1400140e2
lea rcx, [rbx + 0x10]
mov rdx, r14
call fcn.140013bd8
test eax, eax
je 0x1400140e2
mov ecx, dword [rcx + 4]
mov rdx, rbp
add rcx, rdi
call fcn.140013bd8
test eax, eax
je 0x1400140e2
mov r11d, dword [rcx]
add r11, r8
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400148a8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x270
mov rax, qword [0x1400548d0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, qword [rsp + 0x2a8]
lea rdx, str.UpdateHealthTools
mov rdi, rcx
add rcx, 8
call fcn.14001334c
lea rcx, [rdi + 0x10]
lea rdx, str.CloudManagedUpdate
call fcn.14001334c
lea rcx, [rdi + 0x18]
lea rdx, str.UpdateHealthTools
call fcn.14001334c
mov rdx, rbx
lea rcx, [rdi + 0x20]
call fcn.14001334c
mov rcx, rdi
mov qword [rdi + 0x78], 0xffffffff80000002
call fcn.140015534
xor r14d, r14d
mov ebx, eax
test eax, eax
js 0x1400149ca
mov rcx, rdi
call fcn.14001545c
mov ebx, eax
test eax, eax
js 0x1400149ca
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rdx, qword [rdi + 0x20]
lea rax, [rsp + 0x40]
mov rcx, qword [rdi + 0x78]
lea r9d, [r14 + 2]
mov qword [rsp + 0x30], rax
lea r8, str.Endpoint
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x1400149bb
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x1400149a7
lea rdx, [rsp + 0x50]
test rax, rax
jne 0x1400149c2
lea rdx, str.settings_win.data.microsoft.com
mov rcx, rdi
call fcn.14001334c
mov byte [rdi + 0xa8], 1
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140031070
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400150c4
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rdx, qword [rcx + 0x20]
lea rax, [rsp + 0x48]
mov rcx, qword [rcx + 0x78]
xor ebx, ebx
and qword [rsp + 0x48], rbx
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14001510e
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001516e
mov rcx, qword [rsp + 0x48]
lea rdx, str.ETag
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, eax
je 0x140015141
cmp eax, 2
je 0x14001513d
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14001516e
mov rcx, qword [rsp + 0x48]
lea rdx, str.RefreshAfter
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, 0xfffffffd
je 0x14001516e
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140015184
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1400163bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
and qword [rax + 8], 0
mov r14, r9
lea r9, [rax + 8]
mov rcx, 0xffffffff80000002
xor ebx, ebx
call fcn.140016748
mov edi, eax
test eax, eax
jns 0x1400163fe
mov ecx, eax
jmp 0x1400164cb
and dword [rsp + 0x60], ebx
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.RacSampleNumber
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400164bb
test rbx, rbx
jne 0x14001647e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x140016477
mov ebx, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140016402
mov edi, 0x8007000e
jmp 0x1400164c9
mov edi, 0x8000ffff
jmp 0x1400164c9
cmp dword [rsp + 0x58], 4
je 0x14001648c
mov edi, 0x8007000d
jmp 0x1400164c9
xor esi, esi
cmp dword [rsp + 0x60], 4
je 0x1400164a5
mov edi, 0x8007000d
mov ecx, edi
mov esi, edi
call fcn.14000b6d0
jmp 0x1400164aa
mov eax, dword [rbx]
mov dword [r14], eax
mov ecx, esi
call fcn.14000b5f4
mov edi, esi
test esi, esi
jns 0x1400164d0
mov ecx, esi
jmp 0x1400164cb
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov ecx, edi
call fcn.14000b6d0
mov ecx, edi
call fcn.14000b5f4
test rbx, rbx
je 0x1400164fc
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
cmp qword [rsp + 0x50], 0
je 0x140016515
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret