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

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
xor eax, eax
mov edi, edx
mov dword [r11 + 0x18], edx
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
lea rax, [r11 + 0x18]
mov dword [rsp + 0x60], 0x3c
mov dword [rsp + 0x78], 1
lea r8, [r11 - 0x38]
mov edx, 2
mov qword [r11 - 0x18], rax
mov dword [r11 + 0x1c], 0x2710
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
test eax, eax
jne 0x18000124b
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.180003830
mov dword [rsp + 0x30], ebx
mov rcx, rax
lea rax, str.Changing_Failure_action_to__u_failed_with_error__u
lea r8, str.......CommonSetupHelper.cpp
lea rdx, str.AlterFailureAction
mov r9d, 0xd3
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.180008df0
call fcn.180003830
lea rdx, str.AlterFailureAction
lea rcx, [rsp + 0x40]
mov r8, rax
mov r9d, 0xff
call fcn.18000a9b0
lea rcx, [rsp + 0x40]
call fcn.180009670
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
xor eax, eax
add rsp, 0x90
pop rdi
ret

Function at 0x180001260
Capabilities:
Modify service

Disassembly:
mov rax, rsp
sub rsp, 0x68
test rcx, rcx
je 0x1800012e8
mov qword [rax - 8], rbx
xor ebx, ebx
or r9d, 0xffffffff
mov qword [rax - 0x18], rbx
mov qword [rax - 0x20], rbx
mov qword [rax - 0x28], rbx
mov qword [rax - 0x30], rbx
mov qword [rax - 0x38], rbx
mov r8d, edx
mov qword [rax - 0x40], rbx
or edx, r9d
mov qword [rax - 0x48], rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
test eax, eax
jne 0x1800012dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.180003830
lea r8, str.ChangeServiceConfig_failed
mov rcx, rax
lea rax, str.......CommonSetupHelper.cpp
lea rdx, str.SetServiceStartType
mov r9d, ebx
mov dword [rsp + 0x28], 0xed
mov qword [rsp + 0x20], rax
call fcn.180009160
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
mov eax, 0x57
add rsp, 0x68
ret
Function at 0x180002770
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov edi, edx
mov rsi, rcx
xor ebp, ebp
mov qword [rsp + 0x48], rbp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1800027b9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1800027b9
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x48], rbp
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SOFTWARECenterToolsDLSettingsUpdate
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180002894
mov dword [rsp + 0x90], edi
mov dword [rsp + 0x98], ebp
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x98]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180002894
cmp dword [rsp + 0x98], 4
jne 0x180002894
cmp dword [rsp + 0x40], 4
jne 0x180002894
call fcn.180003830
mov rcx, rax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0xb5
lea r9, str.......CommonSetupHelper.cpp
lea r8, str.Value_of__s_is__u
lea rdx, str.GetUpdateSetting
call fcn.180009350
mov edi, dword [rsp + 0x90]
jmp 0x180002894
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
mov ebx, eax
je 0x1800028bd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1800028b8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rsp + 0x48], rbp
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800036e0
Capabilities:
Allocate thread local storage

Disassembly:
test rcx, rcx
je 0x180003724
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rbx, rcx
cmp eax, 0xffffffff
jne 0x18000371f
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov r11d, eax
cmp eax, 0xffffffff
je 0x18000371f
or eax, 0xffffffff
lock cmpxchg dword [rbx], r11d
cmp eax, 0xffffffff
je 0x18000371f
mov ecx, dword [rbx]
cmp ecx, r11d
je 0x18000371f
mov ecx, r11d
call qword [sym.imp.KERNEL32.dll_TlsFree]
add rsp, 0x20
pop rbx
repz ret
Function at 0x180003730
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp dword [section..data], 0xffffffff
jne 0x1800037dd
lea r8, [rsp + 0x30]
lea rdx, str.DLApi.dll
xor ecx, ecx
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
je 0x1800037cd
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800037dd
lea rdx, str.GetTraceTLS
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1800037c8
mov ecx, 1
call rbx
mov r11d, eax
or eax, 0xffffffff
lock cmpxchg dword [section..data], r11d
mov ecx, 2
call rbx
mov r11d, eax
or eax, 0xffffffff
lock cmpxchg dword [0x18003f004], r11d
mov ecx, 3
call rbx
mov r11d, eax
or eax, 0xffffffff
lock cmpxchg dword [0x18003f008], r11d
mov rbx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800037dd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, section..data
call fcn.1800036e0
lea rcx, [0x18003f004]
call fcn.1800036e0
lea rcx, [0x18003f008]
add rsp, 0x28
jmp fcn.1800036e0

Function at 0x180003830
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [section..data]
mov ebx, eax
cmp ecx, 0xffffffff
je 0x180003871
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test rax, rax
je 0x180003871
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
lea rax, [0x180040730]
add rsp, 0x20
pop rdi
ret

Function at 0x180003960
Capabilities:
Write file on windows

Disassembly:
test rdx, rdx
je 0x1800039a5
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, rdx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x48]
mov rdx, rbx
mov rcx, rdi
mov r8d, eax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
repz ret

Function at 0x1800039b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [r9]
mov rdi, r9
mov rbx, r8
cmp rax, 2
jae 0x1800039e2
cmp rax, 1
jne 0x180003a4c
mov rax, qword [r8]
mov byte [rax], 0
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
dec eax
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [r8]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180003a46
cmp dword [rsp + 0x68], 1
jne 0x180003a46
mov ecx, dword [rsp + 0x30]
mov rax, qword [rbx]
inc ecx
mov byte [rcx + rax], 0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
mov al, 1
add qword [rbx], rcx
sub qword [rdi], rcx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rax, qword [rbx]
mov byte [rax], 0
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180003a90
Capabilities:
Get token privileges

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, 1
mov qword [rsp + 0x50], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
lea edx, [rbx + 7]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180003b05
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea r9d, [rbx + 3]
lea r8, [rsp + 0x48]
lea edx, [rbx + 0x11]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], 0
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x180003afa
cmp dword [rsp + 0x40], 4
cmove ebx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x180006a80
Capabilities:
Delete file
Move file

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x40
xor dil, dil
cmp qword [rcx + 0x40], 0xffffffffffffffff
mov r12, rdx
mov rbx, rcx
je 0x180006ba4
mov rcx, qword [rcx + 0x48]
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r14
cmp rcx, 0xffffffffffffffff
je 0x180006ac9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x48], 0xffffffffffffffff
lea rcx, [rbx + 0x1e8]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rdx, [rbx + 0x1e8]
lea rcx, [rbx + 0xe4]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
xor r14d, r14d
lea rcx, [rbx + 0xe4]
mov qword [rsp + 0x30], r14
lea r8d, [r14 + 5]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x180006b4d
mov r8d, dword [rbx + 0x50]
xor edx, edx
mov rcx, rax
call fcn.180006320
mov rdx, r12
mov rcx, r13
call fcn.180003960
mov rcx, qword [rbx + 0x40]
mov qword [rbx + 0x40], r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dil, 1
jmp 0x180006b61
lea rdx, [rbx + 0xe4]
lea rcx, [rbx + 0x1e8]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
xor r9d, r9d
mov qword [rsp + 0x30], r14
lea rcx, [rbx + 0xe4]
lea r8d, [r9 + 3]
mov edx, 0x80000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x60]
mov qword [rbx + 0x48], rax
movzx eax, dil
add rsp, 0x40
pop r12
pop rdi
pop rbx
ret

Function at 0x1800070b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x2f4], 0
mov rbx, rcx
je 0x180007117
cmp byte [rcx + 0x1e8], 0
je 0x180007117
mov rcx, qword [rcx + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x180007117
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180007117
mov eax, dword [rbx + 0x2f4]
cmp qword [rsp + 0x30], rax
jle 0x180007117
lea rdx, str._r_n____Continued_from_old_log_because_size_limit_was_reached_____r_n_r_n
mov rcx, rbx
call fcn.180006a80
test al, al
jne 0x180007117
mov dword [rbx + 0x2f4], 0
add rsp, 0x20
pop rbx
ret
Function at 0x180007820
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xf0
mov rax, qword [0x18003f390]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rsi, rcx
lea rcx, [rsp + 0x40]
mov rdi, r9
mov rbx, r8
call fcn.180007180
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call fcn.1800054e0
mov eax, dword [rsp + 0x120]
cmp eax, 2
jae 0x1800078a5
cmp eax, 1
jne 0x18000787e
mov byte [rdi], 0
xor al, al
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.180014930
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rcx, qword [rsi + 0x80]
dec eax
lea r9, [rsp + 0x34]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov dword [rsp + 0x34], 0
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18000787b
cmp dword [rsp + 0x34], 1
jne 0x18000787b
mov eax, dword [rsp + 0x30]
inc eax
mov byte [rax + rdi], 0
mov al, 1
jmp 0x180007880

Function at 0x1800079d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov ebx, 1
test rdx, rdx
je 0x180007a67
cmp byte [rdx], 0
je 0x180007a67
add rcx, 0x58
mov qword [rsp + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [rsi + 0x40], 0xffffffffffffffff
mov dword [rsp + 0x48], 0
je 0x180007a43
mov rcx, rsi
call fcn.1800070b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsi + 0x40]
lea r9, [rsp + 0x48]
mov r8d, eax
mov rdx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
lea rcx, [rsi + 0x58]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [rsi + 8], 0
mov rbp, qword [rsp + 0x40]
je 0x180007a67
lea rcx, [0x1800319f4]
mov rdx, rdi
call fcn.1800160d8
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180009670
Capabilities:
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x68], rsi
mov esi, dword [rcx + 0x18]
mov rdi, rcx
cmp esi, 0xff
je 0x1800096d6
mov qword [rsp + 0x60], rbx
call fcn.180003810
mov rcx, rdi
mov rbx, rax
call fcn.180004a20
xor edx, edx
mov dword [rsp + 0x40], edx
lea rcx, [0x180031722]
xor r9d, r9d
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], edx
mov rdx, rbx
xor r8d, r8d
mov rcx, rax
mov dword [rsp + 0x20], 0x50
call fcn.180008870
mov rbx, qword [rsp + 0x60]
mov ecx, dword [0x18003f004]
mov rsi, qword [rsp + 0x68]
cmp ecx, 0xffffffff
je 0x180009708
cmp dword [0x18003f008], 0xffffffff
je 0x180009708
mov rdx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rdx, qword [rdi + 8]
mov ecx, dword [0x18003f008]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x50
pop rdi
ret
Function at 0x18000a9b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor eax, eax
mov rbx, rcx
mov qword [rcx + 0x10], r8
mov dword [rcx + 0x18], r9d
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov ecx, dword [0x18003f004]
mov rdi, rdx
cmp ecx, 0xffffffff
je 0x18000aa1c
cmp dword [0x18003f008], 0xffffffff
je 0x18000aa1c
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rbx], rax
mov ecx, dword [0x18003f008]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdx, rdi
mov qword [rbx + 8], rax
mov ecx, dword [0x18003f004]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [0x18003f008]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x18000aa2a
call fcn.18000a620
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000d100
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor ecx, ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov dword [rsp + 0x58], ecx
mov dword [rsp + 0x50], ecx
lea r9, [rsp + 0x58]
xor r8d, r8d
mov rcx, rsi
mov rdi, rdx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18000d1c2
mov eax, dword [rsp + 0x58]
cmp eax, 1
je 0x18000d156
cmp eax, 7
je 0x18000d156
cmp eax, 2
jne 0x18000d1c2
mov edx, dword [rsp + 0x50]
mov ecx, 0x40
add rdx, 2
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x18000d1c2
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18000d1b9
mov ecx, dword [rsp + 0x50]
mov byte [rcx + rbx], al
lea eax, [rcx + 1]
mov byte [rax + rbx], 0
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x18000d1e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
xor r8d, r8d
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
mov dword [rsp + 0x50], r8d
mov dword [rsp + 0x58], r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

Function at 0x18000d220
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov eax, dword [r9]
mov rbx, r9
lea r9, [rsp + 0x30]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18000d26a
mov eax, dword [rsp + 0x68]
mov dword [rbx], eax
mov eax, 1
add rsp, 0x40
pop rbx
ret
mov dword [rbx], 0
xor eax, eax
add rsp, 0x40
pop rbx
ret

Function at 0x18000d490
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov r9d, 3
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret
Function at 0x18000d4c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov r9d, r8d
lea rax, [rax - 0x30]
mov esi, r8d
xor ebx, ebx
xor r8d, r8d
or r9d, 9
mov dword [rax + 0x50], ebx
mov qword [rsp + 0x20], rax
mov rbp, rdx
mov rdi, rcx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x18000d508
mov rcx, rdi
jmp 0x18000d62e
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x80]
lea r8, [rsp + 0xc8]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x64]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edi, eax
test eax, eax
je 0x18000d59a
cmp eax, 0xea
je 0x18000d59a
cmp eax, 0x7a
je 0x18000d59a
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x18000d637
mov edx, dword [rsp + 0xc0]
mov ecx, 0x40
inc edx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
jne 0x18000d5d0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [rdi + 8]
jmp 0x18000d637
mov r9d, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
mov r8, rdi
inc r9d
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x18000d603
mov rcx, qword [rsp + 0x78]
mov r8d, esi
mov rdx, rdi
call fcn.18000d4c0
test eax, eax
je 0x18000d605
inc ebx
cmp eax, 0x103
je 0x18000d612
cmp ebx, dword [rsp + 0x60]
jb 0x18000d5d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0xb0]
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0xb8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret

Function at 0x18000e840
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
call fcn.18000d7e0
test al, al
je 0x18000e89f
mov edx, dword [rcx + 8]
lea r8, [rbx + 0x14]
lea r9, [rsp + 0x58]
lea eax, [rdx + 1]
mov dword [rsp + 0x58], 0x104
mov dword [rcx + 8], eax
lea rax, [rcx + 0x10]
lea rcx, [rcx + 0xc]
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x18000e89f
mov rcx, rbx
call fcn.18000d830
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp fcn.18000d7e0
Function at 0x18000e8c0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
call fcn.18000d870
test al, al
je 0x18000e917
mov edx, dword [rcx + 8]
lea r8, [rcx + 0xc]
lea r9, [rsp + 0x58]
lea eax, [rdx + 1]
mov dword [rsp + 0x58], 0x104
mov dword [rcx + 8], eax
mov rcx, qword [rcx]
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x18000e917
mov rcx, rbx
call fcn.18000d8a0
mov rcx, rbx
add rsp, 0x40
pop rbx
jmp fcn.18000d870

Function at 0x18000f830
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
xor r13d, r13d
mov rsi, r8
mov r15, rdx
mov edi, r13d
cmp rbx, qword [r8 + 8]
je 0x18000f87d
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
add rbx, 8
lea edi, [rdi + rax + 1]
cmp rbx, qword [rsi + 8]
jne 0x18000f866
inc edi
movsxd rbx, edi
mov rcx, rbx
call fcn.1800144c8
mov r8, rbx
xor edx, edx
mov rcx, rax
mov r14, rax
call fcn.1800149c0
mov rbx, qword [rsi]
mov rbp, r14
mov r12d, r13d
cmp rbx, qword [rsi + 8]
je 0x18000f8e0
nop dword [rax]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rdx, qword [rbx]
mov rcx, rbp
mov edi, eax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea r11d, [rdi + 1]
movsxd rcx, r11d
add rbx, 8
lea r12d, [r12 + rdi + 1]
add rbp, rcx
cmp rbx, qword [rsi + 8]
jne 0x18000f8b0
lea ecx, [r12 + 1]
mov r9d, 7
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x60]
mov rdx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, r14
test eax, eax
sete r13b
call fcn.180016bd8
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, r13d
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1800176c7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18003f390]
jne 0x18001494a
rol rcx, 0x10
test cx, 0xffff
jne 0x180014946
repz ret
ror rcx, 0x10
jmp 0x180017620
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180040c30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180040d28]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800176a5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180040c30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800176c7
mov rax, qword [rsp + 0x88]
mov qword [0x180040d28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180040cc8], rax
mov rax, qword [0x180040d28]
mov qword [0x180040ba0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180040cb0], rax
mov dword [0x180040b90], 0xc0000409
mov dword [0x180040b94], 1
mov rax, qword [0x18003f390]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18003f398]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180040c28], eax
mov ecx, 1
call fcn.18001ffe4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180034400]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180040c28], 0
jne 0x18001774e
mov ecx, 1
call fcn.18001ffe4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret