joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022899
Capabilities:
Create process on windows

Disassembly:
test rdx, rdx
je 0x1400229ce
push rbx
mov eax, 0x100f0
call fcn.140248980
sub rsp, rax
mov rax, qword [0x140315d90]
xor rax, rsp
mov qword [rsp + 0x100e0], rax
mov rbx, rdx
mov r8, rdx
mov qword [rsp + 0x10100], rdi
lea rcx, [rsp + 0xe0]
xor edi, edi
mov edx, 0x7fff
mov dword [rsp + 0x50], edi
call fcn.1402285e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [rsp + 0x50], edi
je 0x140022927
lea r8, str.CPLUtl64.exe__x
lea rcx, [rsp + 0xe0]
mov edx, 0x7fff
call fcn.1402285e0
lea rcx, [rsp + 0xe0]
mov r8, rbx
mov edx, 0x7fff
call fcn.140228690
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.14022a8c0
xor eax, eax
lea rdx, [rsp + 0xe0]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x70], 0x68
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rdi, qword [rsp + 0x10100]
test eax, eax
jne 0x1400229a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400229b6
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x100e0]
xor rcx, rsp
call fcn.1402272f0
add rsp, 0x100f0
pop rbx
ret 0
Function at 0x1400229e0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x450
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140315d90]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov word [rsp + 0x40], 0
xor edx, edx
mov r8d, 0x3fe
lea rcx, [rsp + 0x42]
call fcn.14022a8c0
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140022bc6
mov word [rsp + 0x246], 0
call fcn.1401fa4b0
mov rdx, rax
xor r12d, r12d
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140022a75
mov ecx, 0x80004005
call fcn.140003d20
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r9, str.SoundRecorder.exe
lea r8, [rsp + 0x40]
lea rdx, str._s_s
lea rcx, [rsp + 0x20]
call fcn.1400040e0
mov rbp, qword [rsp + 0x20]
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbp - 8], 0
jl 0x140022acd
cmp rax, qword [rbp - 0x18]
jne 0x140022acd
lea rbx, [rbp - 0x18]
lock add dword [rbp - 8], 1
jmp 0x140022b0b
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbp - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x140022ae9
call fcn.140003e50
int3
mov eax, dword [rbp - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rbp - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rbp
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.1402279d0
add rbx, 0x18
mov qword [rsp + 0x30], rbx
xor eax, eax
lea rdi, [0x140273028]
mov rsi, rbx
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
je 0x140022b2f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
jne 0x140022b57
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140022ba7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140022ba7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140022b84
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140022ba7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140022ba7
lea rdx, [rbx - 0x18]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140022ba1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r12d, 1
lock xadd dword [rbp - 8], edi
add edi, 0xffffffff
test edi, edi
jg 0x140022bc1
mov rcx, qword [rbp - 0x18]
mov rax, qword [rcx]
lea rdx, [rbp - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
jmp 0x140022bc8
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1402272f0
lea r11, [rsp + 0x450]
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
Function at 0x14002f030
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x14002f0b9
mov ecx, 0x114
mov ebx, 1
call fcn.140228760
test rax, rax
mov rdi, rax
je 0x14002f12e
xor edx, edx
mov r8d, 0x114
mov rcx, rax
call fcn.14022a8c0
mov rcx, rdi
mov dword [rdi], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rdi + 4]
cmp r11d, 4
jne 0x14002f094
lea ebx, [r11 + 1]
jmp 0x14002f126
cmp r11d, 5
jne 0x14002f126
cmp dword [rdi + 8], 0
jne 0x14002f0aa
lea ebx, [r11 + 1]
jmp 0x14002f126
cmp r11d, 5
jne 0x14002f126
cmp dword [rdi + 8], ebx
lea eax, [r11 + 2]
jmp 0x14002f123
cmp al, 4
jae 0x14002f0ca
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x114
mov ebx, 2
call fcn.140228760
test rax, rax
mov rdi, rax
je 0x14002f12e
xor edx, edx
mov r8d, 0x114
mov rcx, rax
call fcn.14022a8c0
mov rcx, rdi
mov dword [rdi], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rdi + 4]
cmp r11d, 4
jne 0x14002f126
cmp dword [rdi + 8], 0xa
jne 0x14002f116
lea ebx, [r11 - 1]
jmp 0x14002f126
cmp r11d, 4
jne 0x14002f126
cmp dword [rdi + 8], 0x5a
mov eax, r11d
cmove ebx, eax
mov rcx, rdi
call fcn.140228830
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140038610
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x2a8
mov rax, qword [0x140315d90]
xor rax, rsp
mov qword [rsp + 0x290], rax
cmp dword [0x14032e030], 0
jne 0x14003876e
lea rax, [rsp + 0x38]
mov qword [rsp + 0x2a0], rdi
lea rdx, str.SoftwareMicrosoftPlus_ThemesCurrent
mov edi, 1
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov dword [0x14032e030], edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140038766
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 0x104
mov dword [rsp + 0x34], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003875b
mov rax, qword [str.Windows_Classic.theme]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x2b0], rbx
mov qword [rcx], rax
mov rax, qword [0x140274f28]
mov qword [rcx + 8], rax
mov rax, qword [0x140274f30]
mov qword [rcx + 0x10], rax
mov rax, qword [0x140274f38]
mov qword [rcx + 0x18], rax
mov rax, qword [0x140274f40]
mov qword [rcx + 0x20], rax
mov eax, dword [0x140274f48]
mov dword [rcx + 0x28], eax
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x40]
movsxd rbx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, eax
jl 0x140038753
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdx, [rsp + 0x40]
movsxd rcx, eax
mov rax, rbx
sub rax, rcx
lea rcx, [rsp + rax*2 + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ecx, dword [0x14032e02c]
test eax, eax
cmove ecx, edi
mov dword [0x14032e02c], ecx
mov rbx, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x2a0]
mov eax, dword [0x14032e02c]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1402272f0
add rsp, 0x2a8
ret
Function at 0x14003a3a0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp qword [0x140326c70], 0
jne 0x14003a4c9
cmp qword [0x140326c80], 0
mov dword [rsp + 0x40], 0
jne 0x14003a3e0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140326c80], rax
cmp qword [0x140326c88], 0
jne 0x14003a401
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140326c88], rax
cmp qword [0x140326c90], 0
jne 0x14003a422
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140326c90], rax
cmp qword [0x140326c98], 0
jne 0x14003a443
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x140326c98], rax
cmp qword [0x140326c78], 0
jne 0x14003a46e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
mov qword [0x140326c78], rax
jne 0x14003a46e
add rsp, 0x38
ret
call fcn.1401fafc0
test rax, rax
je 0x14003a48f
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x14003a48f
mov rax, qword [rax + 0x40]
jmp 0x14003a491
xor eax, eax
mov qword [0x140326dc0], rax
lea rax, [rsp + 0x40]
lea r9, [0x140326c70]
mov qword [rsp + 0x28], rax
lea r8, [0x14003a4e0]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140326c70], rax
mov eax, 1
add rsp, 0x38
ret
Function at 0x14003e9d0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0xe0
xor edx, edx
mov rbx, rcx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.14022a8c0
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor ecx, ecx
mov qword [rsp + 0x40], rax
xor eax, eax
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14003ea53
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add rsp, 0xe0
pop rbx
ret
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0xe0
pop rbx
ret
Function at 0x14003fe10
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
xor ebx, ebx
mov rdi, rdx
mov rdx, qword [rdx]
mov rbp, r9
lea rax, [rsp + 0x50]
mov rsi, r8
lea r9d, [rbx + 2]
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003fe60
mov rbx, qword [rsp + 0x50]
jmp 0x14003fea9
mov rdx, qword [rdi]
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14003fee0
mov rbx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x90]
mov rdx, qword [rsi]
mov r9d, 3
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14003ff34
test rbx, rbx
je 0x14003fee0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
or ebx, 0xffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14003ff00
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14003ff1c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test rbx, rbx
je 0x14003ff42
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14003ff62
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14003ff7e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x14003ff1e
Function at 0x140040180
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r12
sub rsp, 0x40
mov rbp, qword [rsp + 0x70]
mov rdi, rdx
mov rdx, qword [rdx]
test rbp, rbp
mov r12, r9
mov rsi, r8
je 0x140040272
lea rax, [r11 - 0x18]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x18], 0
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004026f
mov rbx, qword [rsp + 0x30]
mov rdx, qword [rsi]
lea r9, [rsp + 0x70]
mov rcx, rbx
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140040261
cmp dword [rsp + 0x70], 3
jne 0x140040261
test rbx, rbx
je 0x14004021d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
sub rdx, 0x18
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14004023d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x14004025a
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
jmp 0x1400402ad
test rbx, rbx
je 0x14004026f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
or ebx, 0xffffffff
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14004028f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1400402ab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x140041d10
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 rax, qword [rcx]
mov rbx, rcx
lea rdi, [0x140273028]
mov rsi, rax
mov ecx, 1
repe cmpsw word [rsi], word [rdi]
jne 0x140041d67
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140041d55
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rbx]
sub rdx, 0x18
cmp eax, 0xffffffff
je 0x140041d3d
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140041d94
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140042090
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rbx, r8
mov rdi, rcx
test r8, r8
jne 0x1400420b6
xor eax, eax
jmp 0x1400421f2
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x40]
call fcn.14003c380
mov dword [rsp + 0x80], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400421ce
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x88], 4
lea rax, [rsp + 0x88]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140042198
cmp dword [rsp + 0x30], 4
jne 0x140042198
mov eax, dword [rsp + 0x80]
mov dword [rbx], eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140042181
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140042191
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1400421f2
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400421ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400421ca
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400421f2
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400421f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140042220
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
test rcx, rcx
mov rsi, r8
mov rdi, rdx
jne 0x140042261
mov rdx, qword [rdx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140042254
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test r8, r8
je 0x140042235
xor eax, eax
mov rdx, rcx
mov r9d, 1
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140042369
mov rdx, qword [rdi]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rbx
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004232a
cmp dword [rsp + 0x30], 4
jne 0x14004232a
test rbx, rbx
mov eax, dword [rsp + 0x50]
mov dword [rsi], eax
je 0x1400422f5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140042315
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
test rbx, rbx
je 0x140042338
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140042357
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret
mov rdx, qword [rdi]
jmp 0x140042238
Function at 0x140042380
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push r12
sub rsp, 0x40
test rcx, rcx
mov r12d, r8d
mov rbx, rdx
mov rbp, rcx
jne 0x1400423c1
mov rdx, qword [rdx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400423b6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret
mov rdx, qword [rdx]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rdi
lea rdi, [0x140273028]
mov ecx, 1
mov rsi, rdx
repe cmpsw word [rsi], word [rdi]
jne 0x1400423f8
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jmp 0x14004252d
lea rax, [rsp + 0x78]
xor edi, edi
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x78], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004242b
mov rdi, qword [rsp + 0x78]
xor esi, esi
test eax, eax
sete sil
test rdi, rdi
je 0x140042441
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x140042458
mov rdx, rbp
mov rcx, 0xffffffff80000002
call fcn.140045de0
test eax, eax
je 0x1400424cf
lea rax, [rsp + 0x30]
mov r9d, 2
xor r8d, r8d
mov rdx, rbp
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140042519
mov rdi, qword [rsp + 0x30]
mov rdx, qword [rbx]
lea rax, [rsp + 0x60]
mov rcx, rdi
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400424e5
test rdi, rdi
je 0x1400424cf
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jmp 0x14004252d
test rdi, rdi
je 0x1400424f3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140042512
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x14004253a
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140042538
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rbp
pop rbx
ret