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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x40
mov rbx, rcx
mov r14d, r8d
xor ecx, ecx
mov ebp, edx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
je 0x140019d56
movzx eax, word [rbx]
cmp eax, 0x5c
je 0x140019c53
cmp eax, 0x2f
je 0x140019c53
mov ecx, eax
call fcn.14005dc38
test eax, eax
je 0x140019d56
cmp word [rbx + 2], 0x3a
jne 0x140019d56
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x140019c53
cmp ax, 0x2f
jne 0x140019d56
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140019d3a
test al, 0x50
jne 0x140019d3a
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov edx, 0x80000000
mov rcx, rbx
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140019cc0
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
test r14d, r14d
mov dword [rsp + 0x60], edi
lea rdx, [rsp + 0x60]
mov rcx, rbx
cmove rdx, rdi
call fcn.14001a5f0
test eax, eax
je 0x140019cf2
test r14d, r14d
je 0x140019d06
cmp dword [rsp + 0x60], edi
jne 0x140019d06
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.1400165b0
test eax, eax
je 0x140019d1d
and ebp, 0xffffe8f7
xor edx, edx
mov r8d, ebp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x140019caa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
jmp 0x140019ca4
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret

Function at 0x14001b250
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14001b2e0
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
je 0x14001b368
xor r8d, r8d
mov qword [rsp + 0x38], rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x14001b35b
mov qword [rsp + 0x30], rbx
lfence
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rsi
lea rdx, [0x1400ac864]
cmovo rax, rcx
mov rcx, rax
call fcn.1400245b4
mov rbx, rax
test rax, rax
je 0x14001b34b
lfence
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14001b6b0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov edi, ecx
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b73c
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
call fcn.140024e90
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14001b733
cmp dword [rsp + 0x28], edi
je 0x14001b72f
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14001b716
jmp 0x14001b733
mov esi, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140023310
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14001b7a0
Capabilities:
Get session user name

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14001b7c8
test rdx, rdx
je 0x14001b7c8
mov dword [rsp + 0x30], edx
lea rdx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp eax, 1
sete al
add rsp, 0x28
ret
xor al, al
add rsp, 0x28
ret

Function at 0x14001b7d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
xor bl, bl
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001b7fb
mov ebx, eax
shr ebx, 4
and bl, 1
jmp 0x14001b803
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
movzx eax, bl
test rdi, rdi
je 0x14001b80d
mov dword [rdi], esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001b820
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
xor bl, bl
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001b84b
mov ebx, eax
shr ebx, 0xa
and bl, 1
jmp 0x14001b853
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
movzx eax, bl
test rdi, rdi
je 0x14001b85d
mov dword [rdi], esi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001bab0
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14001e020
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x210], 0
mov rbx, rcx
jne 0x14001e065
lea rax, str.Directory_listener_has_not_been_configured.
mov r8d, 0xb0
mov rcx, qword [rcx + 0x218]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsDirectoryListenerWin32.cpp
mov r9d, 1
mov qword [rsp + 0x20], rax
call fcn.14001c680
xor al, al
add rsp, 0x30
pop rbx
ret
cmp qword [rcx + 0x228], 0
je 0x14001e07e
lea rax, str.Directory_listener_is_already_running.
mov r8d, 0xb6
jmp 0x14001e03f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x228], rax
test rax, rax
jne 0x14001e0b0
mov rcx, qword [rbx + 0x218]
lea rax, str.Failed_to_start_directory_listener__no_start_event_.
mov r8d, 0xbd
jmp 0x14001e046
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14001e0e4
mov rcx, qword [rbx + 0x218]
lea rax, str.Failed_to_start_directory_listener__no_quit_event_.
mov r8d, 0xc4
jmp 0x14001e046
xor eax, eax
lea r8, [0x14001e380]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x220], rax
test rax, rax
jne 0x14001e128
mov rcx, qword [rbx + 0x218]
lea rax, str.Failed_to_create_directory_listener_thread.
mov r8d, 0xcb
jmp 0x14001e046
mov rcx, qword [rbx + 0x228]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx + 0x218]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsDirectoryListenerWin32.cpp
test eax, eax
je 0x14001e15e
lea rax, str.Failed_to_start_directory_listener_thread.
mov r8d, 0xd1
jmp 0x14001e04d
lea rax, str.Directory_listener_thread_started.
mov r9d, 4
mov r8d, 0xd5
mov qword [rsp + 0x20], rax
call fcn.14001c680
mov al, 1
add rsp, 0x30
pop rbx
ret
Function at 0x14001f450
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rsp + 0xe0], rax
movups xmm0, xmmword [str.Unknown]
mov rbp, rdx
mov r14, rcx
xorps xmm1, xmm1
xor edx, edx
movaps xmmword [rsp + 0x60], xmm0
mov rcx, rbp
movups xmmword [rsp + 0x70], xmm1
movzx r15d, r8b
movups xmmword [rsp + 0x80], xmm1
movups xmmword [rsp + 0x90], xmm1
movups xmmword [r11 - 0x78], xmm1
movups xmmword [r11 - 0x68], xmm1
movups xmmword [r11 - 0x58], xmm1
movups xmmword [r11 - 0x48], xmm1
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x14001f5a4
mov ecx, esi
lea rdx, [0x1400ac864]
call fcn.1400245b4
mov rdi, rax
test rax, rax
je 0x14001f5a4
lea rdx, [0x1400ac864]
mov ecx, 4
call fcn.140023370
mov rbx, rax
test rax, rax
je 0x14001f59c
mov r9, rdi
mov dword [rax], 1
mov r8d, esi
xor edx, edx
mov rcx, rbp
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14001f580
xor eax, eax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], rax
lea rdx, [0x14008e33c]
mov dword [rsp + 0x50], eax
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14001f580
mov rdx, qword [rsp + 0x58]
movzx ecx, word [rdx + 0xc]
movzx r8d, word [rdx + 0xe]
movzx eax, word [rdx + 8]
movzx r9d, word [rdx + 0xa]
mov edx, 0x40
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x28], r8d
lea r8, str._u._u._u._u
mov dword [rsp + 0x20], eax
call fcn.140012b80
sub dword [rbx], 1
jne 0x14001f5a4
mov rcx, rdi
call fcn.140023278
mov edx, 4
mov rcx, rbx
call fcn.140023368
jmp 0x14001f5a4
mov rcx, rdi
call fcn.140023278
call fcn.14001b770
mov edx, 0x800
mov r8d, 1
mov rcx, rbp
mov rbx, rax
call fcn.140019bf0
mov rdi, rax
call fcn.14001b770
mov rcx, qword [r14]
lea rdx, str.C:dvsp4_build_swgcompdev_srcNvContainercommonwindowsNvcPluginLoadHelperWin32.cpp
mov rsi, rax
mov r9d, 3
lea rax, [rsp + 0x60]
sub esi, ebx
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rax
lea r8d, [r9 + 0x4d]
lea rax, str.Secure_loading__ls____ls_at__p_took__lu_microseconds
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call fcn.14001c680
test rdi, rdi
je 0x14001f61f
test r15b, r15b
je 0x14001f61f
mov rax, qword [r14 + 8]
test rax, rax
je 0x14001f61f
mov dword [rax + 0x40], esi
mov rax, rdi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.140023310
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001fe40
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push r14
sub rsp, 0xc8
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rax, qword gs:[0x58]
mov ebp, ecx
mov ecx, dword [0x1400ac8f8]
mov r14, rdx
mov edx, 0x390
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1400ac820], ecx
jg 0x14002003e
mov rdx, qword [0x1400ac818]
mov r9d, ebp
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140023310
add rsp, 0xc8
pop r14
pop rbp
ret
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r12 + rcx*2 - 2]
jne 0x14001fee7
cmp rcx, 5
je 0x14001ff3b
jmp 0x14001fed0
xor ecx, ecx
nop dword [rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r13 + rcx*2 - 2]
jne 0x14001ff07
cmp rcx, 5
jne 0x14001fef0
jmp 0x14001ff3b
xor eax, eax
nop dword [rax]
movzx ecx, word [rdx + rax*2]
cmp cx, word [r15 + rax*2]
jne 0x14001ff6a
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r15 + rax*2 + 2]
jne 0x14001ff6a
add rax, 2
cmp rax, 0x10
je 0x14001ff3b
jmp 0x14001ff10
mov rdx, qword [rdi]
xor ecx, ecx
jmp 0x14001fed0
lea eax, [r8 - 1]
cmp ebx, eax
jge 0x14001ff6a
mov r8, qword [rdi + 8]
lea rcx, [0x1400ac610]
add rdi, 8
inc ebx
mov r9, 0xffffffffffffffff
mov edx, 0x104
call fcn.14005e8c0
mov r8d, dword [rsp + 0x30]
inc ebx
add rdi, 8
cmp ebx, r8d
jl 0x14001ff34
mov r15, qword [rsp + 0xa0]
mov r13, qword [rsp + 0xa8]
mov r12, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xb8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp word [0x1400ac610], 0
lea rbx, str.SOFTWARENVIDIA_CorporationNvContainer
mov rsi, qword [rsp + 0xc0]
je 0x14002001e
movaps xmm0, xmmword [str.SYSTEMCurrentControlSetServices_ls]
lea r9, [0x1400ac610]
movaps xmm1, xmmword [0x14008faa0]
lea r8, [rsp + 0x40]
mov eax, dword [0x14008fad8]
mov edx, 0x104
movaps xmmword [rsp + 0x40], xmm0
mov rcx, rbx
movaps xmm0, xmmword [0x14008fab0]
movaps xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [0x14008fad0]
movaps xmmword [rsp + 0x50], xmm1
movaps xmm1, xmmword [0x14008fac0]
movsd qword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm1
mov dword [rsp + 0x88], eax
call fcn.140012b80
lea rcx, [0x1400ac820]
mov qword [0x1400ac818], rbx
call fcn.140023cf8
mov rbx, qword [rsp + 0xf0]
jmp 0x14001fe89
lea rcx, [0x1400ac820]
call fcn.140023d58
cmp dword [0x1400ac820], 0xffffffff
jne 0x14001fe89
mov qword [rsp + 0xf0], rbx
mov qword [rsp + 0xc0], rsi
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rsi, rax
test rax, rax
je 0x14001ff9e
mov r8d, dword [rsp + 0x30]
xor ebx, ebx
test r8d, r8d
jle 0x14001ff95
mov qword [rsp + 0xb8], rdi
mov rdi, rax
mov qword [rsp + 0xb0], r12
lea r12, [0x14008b0b0]
mov qword [rsp + 0xa8], r13
lea r13, str._cfg
mov qword [rsp + 0xa0], r15
lea r15, str.__configuration
jmp 0x14001ff34
Function at 0x140021790
Capabilities:
Delete registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rsp + 0x460], rax
cmp qword [rcx + 0x18], 0
mov rsi, rdx
mov rbp, rcx
mov edi, 4
je 0x1400218fa
cmp dword [rcx + 0x10], 0
jne 0x1400218fa
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140024e90
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call fcn.140024e90
test rsi, rsi
je 0x1400218fa
mov qword [rsp + 0x4a0], rbx
lea rdx, [0x14008e33c]
mov rcx, rsi
mov rbx, rsi
call fcn.140026460
test rax, rax
je 0x14002185b
nop dword [rax]
lea rbx, [rax + 2]
mov rcx, rbx
lea rdx, [0x14008e33c]
call fcn.140026460
test rax, rax
jne 0x140021820
cmp rbx, rsi
je 0x14002185b
mov r9, rbx
lea rcx, [rsp + 0x40]
sub r9, rsi
mov r8, rsi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.14005e8c0
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x250]
mov r8, rbx
mov edx, 0x104
call fcn.14005e8c0
mov rcx, qword [rbp + 0x18]
lea rax, [rsp + 0x30]
xor esi, esi
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
mov qword [rsp + 0x30], rsi
xor r8d, r8d
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 0x490
jne 0x1400218cd
lea eax, [rsi + 1]
mov rbx, qword [rsp + 0x4a0]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140023310
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
test eax, eax
jne 0x1400218f6
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x250]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, esi
mov eax, edi
jmp 0x1400218aa
mov eax, edi
jmp 0x1400218b2
Function at 0x140021b00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x488
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rsp + 0x470], rax
cmp qword [rcx + 0x18], 0
mov r14, r8
mov rsi, rdx
mov rbp, rcx
mov edi, 4
je 0x140021c5e
test rdx, rdx
je 0x140021c5e
xor edx, edx
mov qword [rsp + 0x480], rbx
mov r8d, 0x208
lea rcx, [rsp + 0x260]
call fcn.140024e90
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140024e90
lea rdx, [0x14008e33c]
mov rcx, rsi
mov rbx, rsi
call fcn.140026460
test rax, rax
je 0x140021bce
nop word [rax + rax]
lea rbx, [rax + 2]
mov rcx, rbx
lea rdx, [0x14008e33c]
call fcn.140026460
test rax, rax
jne 0x140021b90
cmp rbx, rsi
je 0x140021bce
mov r9, rbx
lea rcx, [rsp + 0x260]
sub r9, rsi
mov r8, rsi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.14005e8c0
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov r8, rbx
mov edx, 0x104
call fcn.14005e8c0
mov rcx, qword [rbp + 0x18]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x50]
xor ebx, ebx
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x260]
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x20], rbx
lea r9d, [rbx + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp eax, 0x57
jne 0x140021c49
lea eax, [rbx + 2]
mov rbx, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140023310
add rsp, 0x488
pop r14
pop rdi
pop rsi
pop rbp
ret
cmp eax, 2
jne 0x140021c55
mov eax, 1
jmp 0x140021c24
test eax, eax
cmove edi, ebx
mov eax, edi
jmp 0x140021c24
mov eax, edi
jmp 0x140021c2c
Function at 0x140021c70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x488
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rsp + 0x470], rax
cmp qword [rcx + 0x18], 0
mov r14, r9
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
je 0x140021dd3
test rdx, rdx
je 0x140021dd3
xor edx, edx
mov qword [rsp + 0x480], rbx
mov r8d, 0x208
lea rcx, [rsp + 0x260]
call fcn.140024e90
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140024e90
lea rdx, [0x14008e33c]
mov rcx, rdi
mov rbx, rdi
call fcn.140026460
test rax, rax
je 0x140021d3e
nop word [rax + rax]
lea rbx, [rax + 2]
mov rcx, rbx
lea rdx, [0x14008e33c]
call fcn.140026460
test rax, rax
jne 0x140021d00
cmp rbx, rdi
je 0x140021d3e
mov r9, rbx
lea rcx, [rsp + 0x260]
sub r9, rdi
mov r8, rdi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.14005e8c0
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov r8, rbx
mov edx, 0x104
call fcn.14005e8c0
mov eax, dword [r14]
lea r8, [rsp + 0x50]
mov rcx, qword [rbp + 0x18]
lea rdx, [rsp + 0x260]
mov dword [rsp + 0x40], eax
mov r9d, 2
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rbx, qword [rsp + 0x480]
cmp eax, 0xea
je 0x140021dc5
test eax, eax
jne 0x140021dad
test rsi, rsi
je 0x140021dc5
jmp 0x140021dd8
cmp eax, 0x57
jne 0x140021db9
mov eax, 2
jmp 0x140021dd8
cmp eax, 2
jne 0x140021dd3
mov eax, 1
jmp 0x140021dd8
mov ecx, dword [rsp + 0x40]
mov eax, 3
mov qword [r14], rcx
jmp 0x140021dd8
mov eax, 4
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140023310
add rsp, 0x488
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140021e00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x488
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rsp + 0x470], rax
cmp qword [rcx + 0x18], 0
mov r14, r9
mov rsi, r8
mov rdi, rdx
mov rbp, rcx
je 0x140021f63
test rdx, rdx
je 0x140021f63
xor edx, edx
mov qword [rsp + 0x480], rbx
mov r8d, 0x208
lea rcx, [rsp + 0x260]
call fcn.140024e90
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x208
call fcn.140024e90
lea rdx, [0x14008e33c]
mov rcx, rdi
mov rbx, rdi
call fcn.140026460
test rax, rax
je 0x140021ece
nop word [rax + rax]
lea rbx, [rax + 2]
mov rcx, rbx
lea rdx, [0x14008e33c]
call fcn.140026460
test rax, rax
jne 0x140021e90
cmp rbx, rdi
je 0x140021ece
mov r9, rbx
lea rcx, [rsp + 0x260]
sub r9, rdi
mov r8, rdi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.14005e8c0
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov r8, rbx
mov edx, 0x104
call fcn.14005e8c0
mov eax, dword [r14]
lea r8, [rsp + 0x50]
mov rcx, qword [rbp + 0x18]
lea rdx, [rsp + 0x260]
mov dword [rsp + 0x40], eax
mov r9d, 0x20
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov rbx, qword [rsp + 0x480]
cmp eax, 0xea
je 0x140021f55
test eax, eax
jne 0x140021f3d
test rsi, rsi
je 0x140021f55
jmp 0x140021f68
cmp eax, 0x57
jne 0x140021f49
mov eax, 2
jmp 0x140021f68
cmp eax, 2
jne 0x140021f63
mov eax, 1
jmp 0x140021f68
mov ecx, dword [rsp + 0x40]
mov eax, 3
mov qword [r14], rcx
jmp 0x140021f68
mov eax, 4
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140023310
add rsp, 0x488
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x140022090
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rsp + 0x460], rax
cmp qword [rcx + 0x18], 0
mov rsi, rdx
mov rbp, rcx
mov dword [rsp + 0x30], r8d
mov edi, 4
je 0x1400221af
cmp dword [rcx + 0x10], 0
jne 0x1400221af
test rdx, rdx
je 0x1400221af
xor edx, edx
mov qword [rsp + 0x4a8], rbx
mov r8d, 0x208
lea rcx, [rsp + 0x250]
call fcn.140024e90
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140024e90
lea rdx, [0x14008e33c]
mov rcx, rsi
mov rbx, rsi
call fcn.140026460
test rax, rax
je 0x14002215f
lea rbx, [rax + 2]
mov rcx, rbx
lea rdx, [0x14008e33c]
call fcn.140026460
test rax, rax
jne 0x140022121
cmp rbx, rsi
je 0x14002215f
mov r9, rbx
lea rcx, [rsp + 0x250]
sub r9, rsi
mov r8, rsi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.14005e8c0
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x40]
mov r8, rbx
mov edx, 0x104
call fcn.14005e8c0
mov rcx, qword [rbp + 0x18]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x40]
mov r9d, edi
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x250]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rbx, qword [rsp + 0x4a8]
xor ecx, ecx
test eax, eax
cmove edi, ecx
mov eax, edi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140023310
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400221d0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp qword [rcx + 0x18], 0
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rbp, rcx
mov ebx, 4
je 0x14002230d
cmp dword [rcx + 0x10], 0
jne 0x14002230d
test rdx, rdx
je 0x14002230d
test r8, r8
je 0x14002230d
test r9, r9
je 0x14002230d
xor edx, edx
mov qword [rsp + 0x468], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x240]
call fcn.140024e90
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140024e90
lea rdx, [0x14008e33c]
mov rcx, rsi
mov rdi, rsi
call fcn.140026460
test rax, rax
je 0x1400222be
nop dword [rax + rax]
lea rdi, [rax + 2]
mov rcx, rdi
lea rdx, [0x14008e33c]
call fcn.140026460
test rax, rax
jne 0x140022280
cmp rdi, rsi
je 0x1400222be
mov r9, rdi
lea rcx, [rsp + 0x240]
sub r9, rsi
mov r8, rsi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.14005e8c0
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 0x104
call fcn.14005e8c0
mov rcx, qword [rbp + 0x18]
lea r8, [rsp + 0x30]
mov r9d, 1
mov dword [rsp + 0x28], r15d
lea rdx, [rsp + 0x240]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rdi, qword [rsp + 0x468]
xor ecx, ecx
test eax, eax
cmove ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140023310
add rsp, 0x470
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret

Function at 0x140022330
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x1400a9538]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp qword [rcx + 0x18], 0
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rbp, rcx
mov ebx, 4
je 0x14002246d
cmp dword [rcx + 0x10], 0
jne 0x14002246d
test rdx, rdx
je 0x14002246d
test r8, r8
je 0x14002246d
test r9, r9
je 0x14002246d
xor edx, edx
mov qword [rsp + 0x468], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x240]
call fcn.140024e90
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.140024e90
lea rdx, [0x14008e33c]
mov rcx, rsi
mov rdi, rsi
call fcn.140026460
test rax, rax
je 0x14002241e
nop dword [rax + rax]
lea rdi, [rax + 2]
mov rcx, rdi
lea rdx, [0x14008e33c]
call fcn.140026460
test rax, rax
jne 0x1400223e0
cmp rdi, rsi
je 0x14002241e
mov r9, rdi
lea rcx, [rsp + 0x240]
sub r9, rsi
mov r8, rsi
sar r9, 1
mov edx, 0x104
dec r9
call fcn.14005e8c0
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 0x104
call fcn.14005e8c0
mov rcx, qword [rbp + 0x18]
lea r8, [rsp + 0x30]
mov r9d, 7
mov dword [rsp + 0x28], r15d
lea rdx, [rsp + 0x240]
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rdi, qword [rsp + 0x468]
xor ecx, ecx
test eax, eax
cmove ebx, ecx
mov eax, ebx
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140023310
add rsp, 0x470
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret