joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004d1b0
Capabilities:
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea r14, [rsp + 0x64]
mov dword [r14], 0x104
lea rbx, [rcx + 0x30]
mov edx, 0x104
mov rcx, rbx
call fcn.140084190
mov edx, dword [rdi + 0x78]
mov rcx, qword [rdi + 0x48]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x20], xmm0
mov r8, rax
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [rdi + 0x78]
test eax, eax
je 0x14004d251
add rdi, 0x60
mov rcx, rdi
call fcn.140185440
mov qword [rsi], 0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14012d050
mov rax, rsi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, [rdi + 0x10]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x40]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x1401c1a20]
movaps xmmword [r14], xmm0
lea r8, [0x1401cbe52]
mov rcx, r14
call fcn.140026ab0
movzx eax, byte [r14 + 0x17]
mov rcx, r14
test al, al
jns 0x14004d298
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov word [rcx + rax*2], 0
movzx r8d, byte [rdi + 0x47]
test r8b, r8b
js 0x14004d2ae
and r8d, 0x7f
jmp 0x14004d2b6
mov r8, qword [rdi + 0x38]
mov rbx, qword [rdi + 0x30]
mov rcx, r14
mov rdx, rbx
call fcn.14007de60
cmp byte [rsp + 0x57], 0
jns 0x14004d2cd
mov r14, qword [rsp + 0x40]
mov ecx, 0x50
call fcn.14012c4a0
mov rbx, rax
mov ebp, dword [rdi + 0x28]
lea r15, [rsp + 0x68]
mov rcx, r15
mov rdx, r14
call fcn.140167ac0
mov rdi, qword [rdi + 8]
lea rax, fcn.14004ce00
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov dword [rbx + 0x10], ebp
lea r14, [rbx + 0x18]
mov rcx, r14
call fcn.140081480
mov rcx, rbx
add rcx, 0x30
cmp byte [r15 + 0x17], 0
js 0x14004d36f
mov rax, qword [rsp + 0x78]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rcx], xmm0
mov rcx, r14
mov rdx, rdi
mov r8, r15
mov r9d, ebp
call fcn.140081580
mov dword [rbx + 0x48], eax
cmp byte [rsp + 0x7f], 0
jns 0x14004d352
mov rcx, qword [rsp + 0x68]
call fcn.14012c4dc
mov qword [rsi], rbx
cmp byte [rsp + 0x57], 0
jns 0x14004d22e
mov rcx, qword [rsp + 0x40]
call fcn.14012c4dc
jmp 0x14004d22e
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
call fcn.14007da70
cmp byte [rsp + 0x7f], 0
js 0x14004d38c
lea r15, [rsp + 0x68]
jmp 0x14004d32d
mov r15, qword [rsp + 0x68]
jmp 0x14004d32d
Function at 0x1400634f0
Capabilities:
Delete directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x180], rax
lea rax, [0x1401c4118]
mov qword [rcx], rax
cmp byte [rcx + 0x38], 0
je 0x140063593
lea rcx, str.....operadesktopwindowsinstaller_transactionsdelete_file_operation.cc
mov edx, VarR8FromUI1
call fcn.1400f1490
test eax, eax
jg 0x140063657
lea rdi, [rsi + 0x20]
mov rcx, rdi
call fcn.140088160
test al, al
jne 0x140063552
mov rcx, rdi
call fcn.140187f60
cmp byte [rsi + 0x3a], 0
je 0x140063603
lea rcx, [rsi + 8]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401c1a20]
movaps xmmword [rdi], xmm0
mov rdx, rdi
call fcn.1400f2570
mov r14, qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rbx, [rsp + 0x28]
jmp 0x1400635ed
cmp qword [rsi + 0x40], 0
je 0x140063603
lea rdi, [rsi + 0x40]
mov rcx, qword [0x140203c48]
test rcx, rcx
jne 0x1400635b9
call fcn.140046090
mov rcx, rax
mov qword [0x140203c48], rax
mov rdx, rdi
call fcn.140047050
jmp 0x140063603
mov rcx, qword [rsp + 0x40]
call r14
test eax, eax
je 0x1400635f9
mov rcx, rdi
mov rdx, rbx
call fcn.1400f2570
mov rcx, rdi
mov rdx, rbx
call fcn.140098e60
mov rcx, rbx
call fcn.1400f22a0
cmp byte [rsp + 0x57], 0
mov rcx, rdi
jns 0x1400635c8
jmp 0x1400635c3
lea rcx, [rsp + 0x40]
call fcn.1400f22a0
mov rdi, qword [rsi + 0x40]
mov qword [rsi + 0x40], 0
test rdi, rdi
je 0x140063624
mov rcx, rdi
call fcn.1400480b0
mov rcx, rdi
call fcn.14012c4dc
lea rcx, [rsi + 0x20]
call fcn.1400f22a0
add rsi, 8
mov rcx, rsi
call fcn.1400f22a0
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.14012d050
nop
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.....operadesktopwindowsinstaller_transactionsdelete_file_operation.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r8d, 0x25
mov r9d, 0xffffffff
call fcn.140096a00
lea rcx, [rsp + 0x50]
lea rdx, str.Actual_removal_of
mov r8d, shutdown
call fcn.140167e50
lea rdx, [rsi + 0x20]
mov rcx, rax
call fcn.1400907b0
mov rcx, rdi
call fcn.140097050
jmp 0x14006353a
Function at 0x140065d60
Capabilities:
Delete directory

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, [0x1401c4158]
mov qword [rcx], rax
cmp byte [rcx + 0x40], 0
je 0x140065e02
lea rcx, [rsi + 0x10]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401c1a20]
movaps xmmword [rdi], xmm0
mov rdx, rdi
call fcn.1400f2570
mov r14, qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea rbx, [rsp + 0x28]
jmp 0x140065dec
mov rcx, qword [rsp + 0x40]
call r14
test eax, eax
je 0x140065df8
mov rcx, rdi
mov rdx, rbx
call fcn.1400f2570
mov rcx, rdi
mov rdx, rbx
call fcn.140098e60
mov rcx, rbx
call fcn.1400f22a0
cmp byte [rsp + 0x57], 0
mov rcx, rdi
jns 0x140065dc7
jmp 0x140065dc2
lea rcx, [rsp + 0x40]
call fcn.1400f22a0
lea rcx, [rsi + 0x28]
call fcn.1400f22a0
lea rcx, [rsi + 0x10]
call fcn.1400f22a0
mov rcx, qword [rsi + 8]
movabs rax, 0xfffffffc00000000
and rax, rcx
cmp rax, qword [0x1401f2888]
jne 0x140065e33
call fcn.1400f61d0
mov qword [rsi + 8], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14012d050
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140072c30
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140072c77
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140072c82
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140072c6f
mov qword [rsi], rdi
call fcn.1400f1700
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400f1700
mov rcx, qword [rsi]
call fcn.1400dc460
mov qword [rsi], 0
jmp 0x140072c5d

Function at 0x140072cd0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov rbx, qword [rdx]
mov qword [rdx], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x140072cf6
call fcn.1400f1700
cmp qword [rsi], rbx
je 0x140072d25
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140072d32
cmp r14, 2
jb 0x140072d1d
mov qword [rsi], rbx
call fcn.1400f1700
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400f1700
mov rcx, qword [rsi]
call fcn.1400dc460
mov qword [rsi], 0
jmp 0x140072d0f

Function at 0x140072d50
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, qword [rdx]
mov qword [rdx], 0
lea r14, [rbx + 1]
cmp r14, 2
jb 0x140072d75
call fcn.1400f1700
cmp qword [rsi], rbx
je 0x140072da4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140072db1
cmp r14, 2
jb 0x140072d9c
mov qword [rsi], rbx
call fcn.1400f1700
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400f1700
mov rcx, qword [rsi]
call fcn.1400dc460
mov qword [rsi], 0
jmp 0x140072d8e

Function at 0x140072e80
Capabilities:
Terminate process

Disassembly:
mov rcx, qword [rcx]
lea rax, [rcx + 1]
cmp rax, 2
jae 0x140072e8e
ret
xor edx, edx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140073730
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x40], rax
movzx eax, byte [rcx + 0x1f]
test al, al
jns 0x140073758
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x14007380e
lea r8, [rsi + 8]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x20]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1401c1a20]
movaps xmmword [rdi], xmm0
lea rdx, str.opera_splash_lock_
mov rcx, rdi
call fcn.140056be0
cmp byte [rdi + 0x17], 0
jns 0x14007379c
mov rdi, qword [rsp + 0x20]
xor ecx, ecx
mov edx, 1
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
cmp qword [rsi + 0x38], rax
je 0x1400737ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi + 0x38]
inc rax
cmp rax, 2
jae 0x14007386e
mov rax, rdi
inc rax
cmp rax, 2
jb 0x1400737e3
mov qword [rsi + 0x38], rdi
call fcn.1400f1700
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x38]
xor ebp, ebp
lea rax, [rdi + 1]
cmp rax, 2
jae 0x140073828
cmp byte [rsp + 0x37], 0
jns 0x140073810
mov rcx, qword [rsp + 0x20]
call fcn.14012c4dc
jmp 0x140073810
xor ebp, ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012d050
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
test bl, bl
mov eax, 0x1f4
cmovne ebp, eax
mov rcx, rdi
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov bpl, 1
test eax, 0xffffff7f
je 0x1400737fb
mov rax, qword [rsi + 0x38]
inc rax
cmp rax, 2
jb 0x14007386a
call fcn.1400f1700
mov rcx, qword [rsi + 0x38]
call fcn.1400dc460
mov qword [rsi + 0x38], 0
xor ebp, ebp
jmp 0x1400737fb
call fcn.1400f1700
mov rcx, qword [rsi + 0x38]
call fcn.1400dc460
mov qword [rsi + 0x38], 0
jmp 0x1400737ce
Function at 0x14007f8f0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402058d8]
mov ecx, dword [0x1401feb28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007f950
lea rsi, [0x1402058d0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14012d050
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402058d8]
call fcn.14012c600
cmp dword [0x1402058d8], 0xffffffff
jne 0x14007f92c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14012ffe0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14012c4a0
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140205920]
mov ecx, dword [0x1401feb28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007fa10
lea r8, [0x1402058f0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14007fb10
mov qword [0x1402058d0], rsi
lea rcx, [0x1402058d8]
call fcn.14012c698
jmp 0x14007f92c
lea rcx, [0x140205920]
call fcn.14012c600
cmp dword [0x140205920], 0xffffffff
jne 0x14007f9e1
xorps xmm0, xmm0
movups xmmword [0x140205910], xmm0
movups xmmword [0x140205900], xmm0
movups xmmword [0x1402058f0], xmm0
lea rcx, [0x1402058f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140205920]
call fcn.14012c698
jmp 0x14007f9e1

Function at 0x14007fa60
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140205920]
mov ecx, dword [0x1401feb28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007fa9b
movzx eax, word [0x1402058f0]
cmp eax, 9
jne 0x14007fae3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x140205920]
call fcn.14012c600
cmp dword [0x140205920], 0xffffffff
jne 0x14007fa85
xorps xmm0, xmm0
movups xmmword [0x140205910], xmm0
movups xmmword [0x140205900], xmm0
movups xmmword [0x1402058f0], xmm0
lea rcx, [0x1402058f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140205920]
call fcn.14012c698
jmp 0x14007fa85
test eax, eax
je 0x14007fa96
cmp eax, 6
jne 0x14007faf3
mov eax, 2
jmp 0x14007fa96
cmp eax, 0xc
jne 0x14007faff
mov eax, 3
jmp 0x14007fa96
mov eax, 4
jmp 0x14007fa96
Function at 0x140081310
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, qword [rcx + 8]
lea rax, [r14 + 1]
cmp rax, 1
ja 0x140081396
xor ecx, ecx
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r14, rax
cmp qword [rdi + 8], rax
je 0x140081396
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rdi + 8]
inc rax
cmp rax, 2
jae 0x140081432
mov rax, r14
inc rax
cmp rax, 2
jb 0x14008138a
mov qword [rdi + 8], r14
call fcn.1400f1700
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140081470
mov dword [rsp + 0x20], 1
mov rcx, rbx
mov edx, 1
mov r8d, 0x1000000f
mov r9, r14
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x14008144d
lea rcx, [rdi + 0x68]
mov rdx, rsi
call fcn.1400f1f50
lea rbx, [rdi + 0x10]
lea rdx, str.StartWatching
lea r8, [0x1401d9150]
lea r14, [rsp + 0x28]
mov rcx, r14
mov r9d, 0x66
call fcn.1400f16e0
mov rdx, qword [rdi + 8]
mov rcx, rbx
mov r8, rdi
mov r9, r14
call fcn.1400dc550
mov edi, eax
mov rcx, rsi
call fcn.1400f1fc0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012d050
mov eax, edi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400f1700
mov rcx, qword [rdi + 8]
call fcn.1400dc460
mov qword [rdi + 8], 0
jmp 0x140081375
mov rax, qword [rdi + 8]
inc rax
cmp rax, 2
jb 0x140081470
call fcn.1400f1700
mov rcx, qword [rdi + 8]
call fcn.1400dc460
mov qword [rdi + 8], 0
xor edi, edi
jmp 0x140081410

Function at 0x140081650
Capabilities:
Query or enumerate registry value

Disassembly:
add rcx, 0x18
cmp byte [rdx + 0x17], 0
jns 0x140081650
mov rdx, qword [rdx]
jmp 0x140081650
sub rsp, 0x38
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x140081680
Capabilities:
Delete registry key

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x14008174e
mov r14d, r8d
mov rdi, rdx
movabs r15, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], r15
xor eax, eax
mov qword [rsp + 0x38], rax
mov r12d, dword [rsi + 8]
mov r9d, r12d
or r9d, 0x10001
lea rdx, [rsp + 0x40]
mov qword [rdx], rax
mov qword [rsp + 0x20], rdx
mov rdx, rdi
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008172e
mov rbx, qword [rsp + 0x40]
mov qword [rsp + 0x28], rbx
and r12d, 0x300
mov dword [rsp + 0x30], r12d
test r14b, r14b
je 0x140081755
test rbx, rbx
je 0x14008171f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8d, dword [rsi + 8]
mov rcx, qword [rsi]
mov rdx, rdi
call fcn.1400817b0
mov ebp, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012d050
mov eax, ebp
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ebp, 6
jmp 0x140081730
lea rdi, [rsp + 0x40]
mov qword [rdi], r15
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.140081950
cmp byte [rdi + 4], 0
je 0x14008177b
mov ebp, dword [rsp + 0x40]
test rbx, rbx
je 0x140081730
jmp 0x140081796
mov r8d, dword [rsi + 8]
lea rdx, [0x1401caf34]
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebp, eax
jmp 0x140081774
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140081730
Function at 0x1400817b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov esi, r8d
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], r14
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov r9d, r8d
or r9d, 0x10009
lea rax, [rsp + 0x60]
mov qword [rax], rbx
mov qword [rsp + 0x20], rax
mov r8d, 8
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008188e
lea rbx, [rsp + 0x60]
mov rdi, qword [rbx]
lea rcx, [rsp + 0x48]
mov qword [rcx], rdi
mov eax, esi
and eax, 0x300
mov dword [rcx + 8], eax
mov qword [rbx], r14
mov rdx, rbx
call fcn.140081950
cmp byte [rbx + 4], 0
jne 0x14008193a
lea rdx, [0x1401caf34]
xor ebx, ebx
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x140081896
test rdi, rdi
je 0x14008186b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14012d050
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
cmp eax, 2
cmovne ebx, eax
jmp 0x14008186b
mov ecx, 0x200
call fcn.14012c51c
mov r14, rax
mov r8d, 0x200
mov rcx, rax
xor edx, edx
call fcn.14012ffe0
xorps xmm6, xmm6
lea rbx, [rsp + 0x60]
mov r15, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x60], 0x100
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
mov rcx, rdi
xor edx, edx
mov r8, r14
mov r9, rbx
call r15
test eax, eax
jne 0x14008190c
mov eax, dword [rsp + 0x60]
cmp rax, 0x100
jae 0x140081943
cmp word [r14 + rax*2], 0
jne 0x140081946
mov rcx, rdi
mov rdx, r14
mov r8d, esi
call fcn.1400817b0
test eax, eax
je 0x1400818c2
lea rdx, [0x1401caf34]
mov rcx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebx, eax
test r14, r14
je 0x14008185d
mov rcx, r14
call fcn.14012c524
jmp 0x14008185d
mov ebx, dword [rsp + 0x60]
jmp 0x14008185d
int3
int3
Function at 0x140081950
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea r9, [rsp + 0x3c]
mov dword [r9], 0
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
lea rdx, str.SymbolicLinkValue
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x1400819b6
mov byte [rsi], 0
xor eax, eax
mov byte [rsi + 4], al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012d050
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
ret
test eax, eax
jne 0x140081a04
cmp dword [rsp + 0x3c], 6
jne 0x140081997
mov rcx, qword [rdi]
call sub.ntdll.dll_NtDeleteKey
test eax, eax
je 0x140081a0a
mov edi, eax
mov eax, dword [0x140205938]
mov ecx, dword [0x1401feb28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140081a19
mov rax, qword [0x140205930]
test rax, rax
je 0x140081a12
mov ecx, edi
call qword [0x140224008]
mov dword [rsi], eax
mov al, 1
jmp 0x14008199c
mov dword [rsi], 0
jmp 0x140081a06
mov eax, 5
jmp 0x140081a04
lea rcx, [0x140205938]
call fcn.14012c600
cmp dword [0x140205938], 0xffffffff
jne 0x1400819f0
lea rcx, [0x1401d91a6]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.RtlNtStatusToDosError
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140205930], rax
lea rcx, [0x140205938]
call fcn.14012c698
jmp 0x1400819f0

Function at 0x140081a70
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140081af8
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140081ae2
cmp dword [rsp + 0x38], 4
jne 0x140081ae2
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14012d050
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140081ae2
Function at 0x140081b00
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14012cff0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1401f0038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14012ffe0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140081bb3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140081bb7
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.14007dd90
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14012d050
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140081b94
cmp eax, 2
jne 0x140081bff
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14012ffe0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x140081c06
lea rdx, [rsp + 0x40]
jmp 0x140081b8a
mov edi, 0x3f4
jmp 0x140081b94
mov edi, 0xea
jmp 0x140081b94

Function at 0x140081c10
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.14014edd4
lea eax, [rax*2 + 2]
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret