joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800225d0
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x148
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180043ef0
lea rdx, [rsp + 0x20]
lea rcx, str.TEC_OCULAR__AGENT_V3_MUTEX_AGENT
mov r8d, 0x104
call fcn.18000a7d0
lea r8, [rsp + 0x20]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
test rax, rax
jne 0x180022656
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 5
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180043ec0
add rsp, 0x148
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180043ec0
add rsp, 0x148
ret

Function at 0x180022680
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x148
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180043ef0
lea rdx, [rsp + 0x20]
lea rcx, str.TEC_OCULAR__AGENT_V3_MUTEX_WINWDGSVR
mov r8d, 0x104
call fcn.18000a7d0
lea r8, [rsp + 0x20]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
test rax, rax
jne 0x180022706
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 5
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180043ec0
add rsp, 0x148
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180043ec0
add rsp, 0x148
ret
Function at 0x180022730
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
cmp dword [0x1801340b0], 0
je 0x180022762
lea r9, str.CMonitorThread::StartService2_1
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0xf
call fcn.18001ab50
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rsi, rax
test rax, rax
je 0x180022866
cmp dword [0x1801340b0], ebx
mov qword [rsp + 0x30], rdi
je 0x1800227aa
lea r9, str.CMonitorThread::StartService2_2
lea r8, str.WatchDog
lea edx, [rbx + 0xf]
lea rcx, [0x180133ff8]
call fcn.18001ab50
lea rdx, str..Winhlpsvr
mov r8d, 0xf01ff
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x180022827
cmp dword [0x1801340b0], ebx
je 0x1800227ef
lea r9, str.CMonitorThread::StartService2_3
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0xf
call fcn.18001ab50
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
cmp dword [0x1801340b0], 0
mov ebx, eax
je 0x180022827
lea r9, str.CMonitorThread::StartService2_4
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0xf
call fcn.18001ab50
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [0x1801340b0], 0
mov rdi, qword [rsp + 0x30]
je 0x18002288e
lea r9, str.CMonitorThread::StartService2_5
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0xf
call fcn.18001ab50
cmp dword [0x1801340b0], 0
je 0x18002288e
lea r9, str.CMonitorThread::StartService2_6
lea r8, str.WatchDog
lea rcx, [0x180133ff8]
mov edx, 0xf
call fcn.18001ab50
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret
Function at 0x180026300
Capabilities:
Check mutex on windows

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
call fcn.180043ef0
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rbx
call fcn.18000a7d0
lea r8, [rsp + 0x20]
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexA]
test rax, rax
jne 0x180026371
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 5
sete cl
mov eax, ecx
jmp 0x18002637f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180043ec0
add rsp, 0x140
pop rbx
ret

Function at 0x1800263a0
Capabilities:
Check mutex on windows

Disassembly:
push rdi
sub rsp, 0x140
mov rax, qword [0x18011a300]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp qword [0x18013f390], 0
mov rdi, rcx
jne 0x180026453
mov qword [rsp + 0x158], rbx
call fcn.1800790e0
lea rcx, [rsp + 0x21]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], 0
mov rbx, rax
call fcn.180043ef0
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rdi
call fcn.18000a7d0
lea r8, [rsp + 0x20]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, qword [rsp + 0x158]
mov qword [0x18013f390], rax
test rax, rax
je 0x18002644f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x180026453
mov rcx, qword [0x18013f390]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x18013f390], 0
xor eax, eax
jmp 0x180026458
mov eax, 1
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.180043ec0
add rsp, 0x140
pop rdi
ret

Function at 0x180026e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
shr edx, 4
mov rsi, r9
inc dx
movzx r9d, r8w
mov rdi, rcx
movzx r8d, dx
mov edx, 6
and ebx, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
je 0x180026ef3
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180026ef3
xor edx, edx
nop dword [rax + rax]
movzx ecx, word [rax]
cmp ebx, edx
je 0x180026f05
inc edx
lea rax, [rax + rcx*2 + 2]
cmp edx, 0x10
jl 0x180026ee0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rbx, dword [rsp + 0x50]
lea rdx, [rax + 2]
mov rcx, rsi
mov r8, rbx
call fcn.180026d90
test eax, eax
jne 0x180026f23
mov byte [rbx + rsi - 1], al
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
dec eax
add rsp, 0x20
pop rdi
ret
Function at 0x180027360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
shr edx, 4
mov rsi, r9
inc dx
movzx r9d, r8w
mov rdi, rcx
movzx r8d, dx
mov edx, 6
and ebx, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExA]
test rax, rax
je 0x1800273cb
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x1800273cb
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x1800273e2
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x1800273b5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edi, dword [rsp + 0x50]
dec edi
cmp ecx, edi
cmovle edi, ecx
movsxd rcx, edi
lea rbx, [rcx + rcx]
mov rcx, rsi
mov r8, rbx
call fcn.180045540
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x1800273cd

Function at 0x180031360
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x18003138e
or r9d, 0x20019
mov r8d, r9d
call fcn.1800312c0
mov rbx, rax
jmp 0x180031391
mov rbx, rcx
test rbx, rbx
je 0x180031437
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18003142a
cmp dword [rsp + 0x30], 4
jne 0x18003142a
mov eax, dword [rsp + 0x58]
mov ecx, 4
mov rdx, rsi
cmp eax, ecx
cmova eax, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], eax
lea rax, [rsp + 0x58]
mov rcx, rbx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18003142a
cmp rbx, rdi
je 0x180031415
mov rcx, rbx
call fcn.180031340
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x180031437
mov rcx, rbx
call fcn.180031340
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
Function at 0x180031450
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x18003147e
or r9d, 0x20019
mov r8d, r9d
call fcn.1800312c0
mov rbx, rax
jmp 0x180031481
mov rbx, rcx
test rbx, rbx
je 0x18003151f
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180031512
cmp dword [rsp + 0x30], 3
jne 0x180031512
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x78], eax
jb 0x180031512
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180031512
cmp rbx, rdi
je 0x1800314fd
mov rcx, rbx
call fcn.180031340
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x18003151f
mov rcx, rbx
call fcn.180031340
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x180031540
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x18003156e
or r9d, 0x20019
mov r8d, r9d
call fcn.1800312c0
mov rbx, rax
jmp 0x180031571
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x180031623
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180031616
cmp dword [rsp + 0x30], 3
jne 0x180031616
mov ecx, dword [rsp + 0x58]
call fcn.180045488
mov rdi, rax
test rax, rax
je 0x180031616
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18003160e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rdi
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
cmp rbx, rsi
je 0x180031607
mov rcx, rbx
call fcn.180031340
mov eax, 1
jmp 0x180031625
mov rcx, rdi
call fcn.180045904
cmp rbx, rsi
je 0x180031623
mov rcx, rbx
call fcn.180031340
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
Function at 0x180031640
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x40
mov rbp, r8
mov rdi, rcx
test rdx, rdx
je 0x18003166e
or r9d, 0x20019
mov r8d, r9d
call fcn.1800312c0
mov rbx, rax
jmp 0x180031671
mov rbx, rcx
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x180031760
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180031753
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x1800316ca
cmp eax, 2
je 0x1800316ca
cmp eax, 6
je 0x1800316ca
cmp eax, 7
jne 0x180031753
mov ecx, dword [rsp + 0x58]
add ecx, 2
call fcn.180045488
mov r8d, dword [rsp + 0x58]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.180043ef0
lea r11, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x18003173a
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.180027d50
cmp rbx, rdi
je 0x18003172b
mov rcx, rbx
call fcn.180031340
mov rcx, rsi
call fcn.180045904
mov eax, 1
jmp 0x180031762
mov rcx, rsi
call fcn.180045904
mov rcx, qword [rsp + 0x70]
lea rdx, [0x1800d51b0]
call fcn.180027d50
cmp rbx, rdi
je 0x180031760
mov rcx, rbx
call fcn.180031340
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x180031780
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x40
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov rax, qword [0x18011a300]
xor rax, rbp
mov qword [rbp + 8], rax
mov r13, r8
mov r12, rcx
test rdx, rdx
je 0x1800317c8
or r9d, 0x20019
mov r8d, r9d
call fcn.1800312c0
mov rbx, rax
jmp 0x1800317cb
mov rbx, rcx
test rbx, rbx
je 0x1800319bd
call fcn.180036d30
test eax, eax
je 0x1800318e6
test r13, r13
je 0x180031845
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9d, [rax + 1]
lea ecx, [r9 + r9]
movsxd rdx, ecx
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x18003180d
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1800470d0
sub rsp, rax
lea rsi, [rsp + 0x30]
test rsi, rsi
je 0x180031845
mov dword [rsp + 0x28], r9d
xor edi, edi
mov r8, r13
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov word [rsi], di
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x180031849
xor edi, edi
mov esi, edi
lea rax, [rbp]
lea r9, [rbp + 4]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800319b0
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x18003188d
cmp eax, 2
je 0x18003188d
cmp eax, 6
je 0x18003188d
cmp eax, 7
jne 0x1800319b0
mov ecx, dword [rbp]
add ecx, 2
call fcn.180045488
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.180043ef0
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180031998
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.1800296b0
jmp 0x18003197c
lea rax, [rbp]
lea r9, [rbp + 4]
xor edi, edi
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1800319b0
mov eax, dword [rbp + 4]
cmp eax, 1
je 0x18003192c
cmp eax, 2
je 0x18003192c
cmp eax, 6
je 0x18003192c
cmp eax, 7
jne 0x1800319b0
mov ecx, dword [rbp]
add ecx, 2
call fcn.180045488
mov r8d, dword [rbp]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rdi, rax
call fcn.180043ef0
lea r11, [rbp]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, r13
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x180031998
mov rcx, qword [rbp + 0x50]
mov rdx, rdi
call fcn.18002c0c0
cmp rbx, r12
je 0x180031989
mov rcx, rbx
call fcn.180031340
mov rcx, rdi
call fcn.180045904
mov eax, 1
jmp 0x1800319bf
mov rcx, rdi
call fcn.180045904
mov rcx, qword [rbp + 0x50]
lea rdx, [0x1800d51b0]
call fcn.18002c0c0
cmp rbx, r12
je 0x1800319bd
mov rcx, rbx
call fcn.180031340
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.180043ec0
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
lea rsp, [rbp + 0x10]
pop r13
pop r12
pop rbp
ret
Function at 0x1800319f0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x180031a1e
or r9d, 0x20006
mov r8d, r9d
call fcn.1800312f0
mov rbx, rax
jmp 0x180031a21
mov rbx, rcx
test rbx, rbx
je 0x180031a80
lea rax, [rsp + 0x60]
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x180031a73
cmp rbx, rdi
je 0x180031a5e
mov rcx, rbx
call fcn.180031340
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180031a80
mov rcx, rbx
call fcn.180031340
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180031aa0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x180031ace
or r9d, 0x20006
mov r8d, r9d
call fcn.1800312f0
mov rbx, rax
jmp 0x180031ad1
mov rbx, rcx
test rbx, rbx
je 0x180031b30
mov eax, dword [rsp + 0x68]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x180031b23
cmp rbx, rdi
je 0x180031b0e
mov rcx, rbx
call fcn.180031340
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180031b30
mov rcx, rbx
call fcn.180031340
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x180031b50
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x180031b7e
or r9d, 0x20006
mov r8d, r9d
call fcn.1800312f0
mov rbx, rax
jmp 0x180031b81
mov rbx, rcx
test rbx, rbx
je 0x180031bf4
mov rdx, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x40], rdi
mov rdi, rdx
lea r9d, [rax + 1]
repne scasb al, byte [rdi]
xor r8d, r8d
not rcx
and ecx, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x180031be7
cmp rbx, rsi
je 0x180031bd2
mov rcx, rbx
call fcn.180031340
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp rbx, rsi
je 0x180031bf4
mov rcx, rbx
call fcn.180031340
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rsi
ret
Function at 0x180031c10
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov r11, rsp
push rbp
push rsi
sub rsp, 0x68
xor eax, eax
mov esi, edx
xor r9d, r9d
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], rax
lea rax, [r11 + 0x18]
xor r8d, r8d
xor edx, edx
mov qword [r11 - 0x50], rax
lea rax, [r11 + 0x20]
mov rbp, rcx
mov qword [r11 - 0x58], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x180031d89
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x60], rdi
cmp dword [rsp + 0x98], eax
je 0x180031d5f
mov eax, dword [rsp + 0x90]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x90], eax
lea ecx, [rax + 1]
call fcn.180045488
mov rbx, rax
test rax, rax
je 0x180031d85
nop word [rax + rax]
mov r8d, dword [rsp + 0x90]
xor edx, edx
mov rcx, rbx
inc r8d
call fcn.180043ef0
mov r9d, dword [rsp + 0x90]
mov r8, rbx
xor edx, edx
mov rcx, rbp
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x180031d7d
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
or r8d, 0x2001f
call fcn.1800312c0
mov rdi, rax
test rax, rax
je 0x180031d7d
mov edx, esi
mov rcx, rax
call fcn.180031c10
mov rcx, rdi
test eax, eax
je 0x180031d78
call fcn.180031340
mov r11, qword [0x18013f460]
test r11, r11
je 0x180031d3a
test esi, esi
je 0x180031d3a
xor r9d, r9d
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call r11
jmp 0x180031d46
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x180031d7d
dec dword [rsp + 0x98]
jne 0x180031cb0
mov rcx, rbx
call fcn.180045904
mov eax, 1
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x60]
add rsp, 0x68
pop rsi
pop rbp
ret
call fcn.180031340
mov rcx, rbx
call fcn.180045904
xor eax, eax
jmp 0x180031d64
xor eax, eax
add rsp, 0x68
pop rsi
pop rbp
ret
Function at 0x180031da0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov esi, r9d
mov rbp, r8
mov r12, rdx
mov rdi, rcx
test rdx, rdx
je 0x180031ddf
mov r8d, r9d
or r8d, 0x2001f
call fcn.1800312c0
mov rbx, rax
jmp 0x180031de2
mov rbx, rcx
test rbx, rbx
je 0x180031e79
mov rcx, rbx
test rbp, rbp
je 0x180031e14
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x180031e6c
cmp rbx, rdi
je 0x180031e0d
mov rcx, rbx
call fcn.180031340
mov eax, 1
jmp 0x180031e7b
mov edx, esi
call fcn.180031c10
test eax, eax
je 0x180031e6c
cmp rbx, rdi
je 0x180031e2c
mov rcx, rbx
call fcn.180031340
mov rax, qword [0x18013f460]
test rax, rax
je 0x180031e55
test esi, esi
je 0x180031e55
xor r9d, r9d
mov r8d, esi
mov rdx, r12
mov rcx, rdi
call rax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x180031e7b
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
jmp 0x180031e7b
cmp rbx, rdi
je 0x180031e79
mov rcx, rbx
call fcn.180031340
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov r9d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x180031da0

Function at 0x180031ea0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x60
mov rbp, r9
mov rdi, rcx
test rdx, rdx
je 0x180031ed6
or r8d, 0x20019
call fcn.1800312c0
mov rbx, rax
jmp 0x180031ed9
mov rbx, rcx
mov rsi, qword [rsp + 0x90]
xor r12d, r12d
test rbx, rbx
je 0x180031f47
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x180031f3a
cmp rbx, rdi
je 0x180031f33
mov rcx, rbx
call fcn.180031340
mov eax, 1
jmp 0x180031f50
cmp rbx, rdi
je 0x180031f47
mov rcx, rbx
call fcn.180031340
mov dword [rbp], r12d
xor eax, eax
mov dword [rsi], r12d
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret