joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400260a8
Capabilities:
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rdi, rcx
and qword [rbp - 0x20], 0
xor r9d, r9d
lea r8, str.VSPerfGCMode
lea rcx, [rbp - 0x10]
call fcn.140014f90
nop
xor r8d, r8d
xor edx, edx
lea rcx, str.COMPLUS_GCHeapCount
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [0x140092514], eax
test rdi, rdi
je 0x1400261e8
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x1400261e8
and qword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edi, edi
test eax, eax
cmove rdi, qword [rbp - 0x18]
mov qword [rbp - 0x20], rdi
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x1400261e2
or dword [rbp + 0x10], 0xffffffff
test rdi, rdi
je 0x1400261a6
and dword [rbp + 0x20], 0
mov dword [rbp + 0x28], 4
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
lea rdx, str.IsServerGCEnabled
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002618f
cmp dword [rbp + 0x20], 4
jne 0x1400261a6
cmp dword [rbp + 0x28], 4
jne 0x1400261a6
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x1400261a6
mov eax, dword [rbp + 0x10]
jmp 0x1400261ab
xor eax, eax
mov dword [rbp + 0x10], eax
cmp eax, 1
je 0x1400261cd
cmp dword [0x140092514], 0
jne 0x1400261cd
lea rdx, [0x140076ce0]
lea rcx, str.COMPLUS_GCHeapCount
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test rdi, rdi
je 0x140026201
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rbp - 0x20], 0
jmp 0x140026201
mov eax, dword [0x140092514]
test eax, eax
jne 0x140026201
lea rdx, [0x140076ce0]
lea rcx, str.COMPLUS_GCHeapCount
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140026220
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140026230
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, 0x21005
mov rdi, qword [rsp + 0x68]
add rsp, 0x50
pop rbp
ret
Function at 0x14002628c
Capabilities:
Load windows common language runtime

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x20
mov rax, qword [0x140092518]
test rax, rax
jne 0x140026306
lea rcx, str.mscoree.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400262cd
lea rdx, str.CLRCreateInstance
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140092518], rax
jmp 0x1400262d4
mov rax, qword [0x140092518]
test rax, rax
jne 0x140026306
lea r8, str.Could_not_locate_appropriate_CLR_version._Try_rebooting__reinstalling.
lea rdx, str.VisualStudio
lea ecx, [rax + 1]
call fcn.14005352c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x140026359
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [0x140076c08]
lea rcx, [0x140076c48]
call rax
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test eax, eax
js 0x14002634c
test rcx, rcx
je 0x140026347
mov rax, qword [rcx]
lea rdx, [0x140026378]
call qword [rax + 0x38]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
jmp 0x14002634c
mov ebx, 0x8000ffff
test rcx, rcx
je 0x140026357
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140026658
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov r15, r9
mov r14, rdx
xor edi, edi
mov qword [rbp - 8], rdi
lea rdx, [rbp - 8]
call fcn.1400264c0
mov ebx, eax
test eax, eax
js 0x140026791
mov rcx, qword [rbp - 8]
call fcn.1400265b0
mov rsi, rax
test rax, rax
jne 0x1400266af
lea ebx, [rdi + 1]
jmp 0x140026791
mov dword [rbp + 0x30], edi
mov dword [rbp + 0x40], 0x200
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.Assembly
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, 1
test eax, eax
jne 0x140026788
cmp dword [rbp + 0x30], ebx
jne 0x140026788
mov dword [rbp + 0x40], 0x200
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.Class
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140026788
cmp dword [rbp + 0x30], ebx
jne 0x140026788
mov dword [rbp - 0x10], edi
mov dword [rbp + 0x40], 4
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.InitializeNewDomainFlags
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14002677c
cmp dword [rbp + 0x30], 4
jne 0x14002677c
mov rcx, qword [rbp + 0x48]
mov eax, dword [rbp - 0x10]
mov dword [rcx], eax
jmp 0x140026793
mov rax, qword [rbp + 0x48]
mov dword [rax], 2
jmp 0x140026793
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, ebx
mov rcx, qword [rbp - 8]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret

Function at 0x140026a6c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
call fcn.1400265b0
mov rsi, rax
mov eax, dword [rdi + 0x18]
test rsi, rsi
je 0x140026ae5
and dword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
mov dword [rsp + 0x58], eax
lea rdx, str.StartupFlags
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140026ae2
cmp dword [rsp + 0x50], 4
mov eax, dword [rsp + 0x58]
je 0x140026ae5
mov eax, dword [rdi + 0x18]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140026af0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
mov rsi, rdx
xor edi, edi
mov rcx, qword [rcx + 0x10]
call fcn.1400265b0
mov r14, rax
test rax, rax
je 0x140026bb8
and dword [rbp + 0x30], edi
and dword [rbp + 0x40], edi
mov dword [rbp + 0x48], 4
lea rax, [rbp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x30]
xor r8d, r8d
lea rdx, str.SegmentSize
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140026bb8
cmp dword [rbp + 0x30], 4
jne 0x140026bb8
and qword [rbp - 0x10], rdi
mov rcx, qword [rsi]
mov rax, qword [rcx]
lea r8, [rbp - 0x10]
lea rdx, [0x140076a98]
call qword [rax + 0x18]
mov edi, eax
test eax, eax
jns 0x140026b96
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140026bb8
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x140026bb8
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
xor r8d, r8d
mov edx, dword [rbp + 0x40]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
mov edi, eax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140026bb8
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x140026bc6
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, edi
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x140028440
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rsi
sub rsp, 0x60
mov esi, r8d
xor ebx, ebx
mov qword [rax - 0x18], rbx
and qword [rax + 0x20], rbx
mov rcx, qword [rcx + 0x48]
lea r8, [rax + 0x20]
mov rcx, qword [rcx]
call fcn.1400128c0
cmp qword [rsp + 0x88], rbx
je 0x14002851e
and qword [rsp + 0x70], rbx
and qword [rsp + 0x40], rbx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
cmove rbx, qword [rsp + 0x70]
mov qword [rsp + 0x50], rbx
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14002851e
mov dword [rsp + 0x70], esi
test rbx, rbx
jne 0x1400284e6
mov esi, 0x8000ffff
jmp 0x140028523
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SkipLoading
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x140028523
mov esi, 0x80004005
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
test rbx, rbx
je 0x140028541
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, esi
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rsi
ret
Function at 0x1400291f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140090008]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, rdx
mov r14, rcx
xor edi, edi
mov esi, edi
add rcx, 0x1a8
mov qword [rsp + 0x30], rcx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140029249
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
cmp byte [r14 + 0x1f8], dil
jne 0x14002938d
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x1400293ce
mov rax, qword [rax]
call qword [rax + 0x18]
mov rbx, rax
add rax, 0x18
mov qword [rsp + 0x28], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400292bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
or eax, 0xffffffff
lock xadd dword [rbx + 0x10], eax
sub eax, 1
jg 0x14002939b
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14002939b
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140029286
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1400292dd
mov r8d, eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.14000a350
mov edx, 0x5c
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x14002936a
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14002936a
lea edx, [rax + 1]
lea rcx, [rsp + 0x28]
call fcn.140029a5c
lea rcx, [rsp + 0x28]
call fcn.140029908
mov rbx, qword [rsp + 0x28]
cmp dword [rbx - 0x10], 0x104
jge 0x14002936a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002936a
lea r8, [rsp + 0x20]
mov dl, 1
mov rcx, rbx
call qword [sym.imp.mscoree.dll_StrongNameSignatureVerificationEx]
test al, al
jne 0x14002936a
mov byte [r14 + 0x1f9], 1
mov byte [r14 + 0x1f8], 1
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14002938d
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
cmp byte [r14 + 0x1f9], dil
setne dil
mov dword [r15], edi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, esi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140052570
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002fa4
int3
Function at 0x140029bd4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
push r15
sub rsp, 0x70
mov rbx, r8
mov rdi, rdx
mov r14, rcx
call fcn.140029ba0
xor r15d, r15d
mov qword [rsp + 0x38], r15
and dword [rsp + 0x40], r15d
and qword [rsp + 0x48], r15
and qword [rsp + 0x30], r15
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140029c43
mov r15, qword [rsp + 0x30]
mov qword [rsp + 0x38], r15
and dword [rsp + 0x40], eax
test eax, eax
je 0x140029c66
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test r15, r15
je 0x140029c5f
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x140029de0
and dword [rsp + 0x98], 0
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.SplashHash
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140029ca9
cmp dword [rsp + 0x30], 3
je 0x140029ccc
lea ebx, [rax + 0xd]
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
test r15, r15
je 0x140029cc5
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x140029de0
mov ebx, dword [rsp + 0x98]
mov rcx, qword [r14 + 8]
call fcn.140052590
and dword [r14], 0
and qword [r14 + 8], 0
test ebx, ebx
je 0x140029cff
mov ecx, ebx
call fcn.14005212c
mov qword [r14 + 8], rax
test rax, rax
je 0x140029df7
jmp 0x140029d01
xor eax, eax
mov dword [r14], ebx
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.SplashHash
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140029d3e
cmp dword [rsp + 0x30], 3
je 0x140029d6c
lea ebx, [rax + 0xd]
mov rcx, r14
call fcn.140029ba0
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
test r15, r15
je 0x140029d68
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x38], 0
mov eax, edi
jmp 0x140029de0
mov r8d, dword [rsp + 0x98]
cmp r8d, 8
jb 0x140029d9b
add r8d, 0xfffffff8
mov rcx, qword [r14 + 8]
mov eax, dword [r8 + rcx]
mov dword [r14 + 0x1c], eax
mov eax, dword [r8 + rcx + 4]
mov dword [r14 + 0x20], eax
cmp r8d, dword [r14]
ja 0x140029d9b
mov dword [r14], r8d
cmp r8d, 4
jb 0x140029db9
add r8d, 0xfffffffc
mov rax, qword [r14 + 8]
mov ecx, dword [r8 + rax]
mov dword [r14 + 0x18], ecx
cmp r8d, dword [r14]
ja 0x140029db9
mov dword [r14], r8d
test r15, r15
je 0x140029dc7
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140029de0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop r15
ret
lea rcx, [rsp + 0x50]
call fcn.140029b58
lea rdx, [0x14008b5a0]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140037e80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rbx, rdx
mov rdi, r9
mov rdx, qword [rdx]
mov r14, r8
mov rsi, rcx
cmp dword [rdx - 0x10], 0
jne 0x140037eb1
mov eax, 0x80070057
jmp 0x140037f2d
mov rcx, qword [rcx]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x28], rdi
xor r8d, r8d
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140037ee3
mov eax, ecx
jmp 0x140037f2d
mov ecx, dword [rdi]
call fcn.14005212c
mov qword [r14], rax
lea r9, [rsp + 0x48]
mov rdx, qword [rbx]
xor r8d, r8d
mov rcx, qword [rsi]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140037edf
mov eax, dword [rsp + 0x48]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0x80004005
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140037f44
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 8]
mov rbx, r8
mov rdi, rdx
mov qword [r11 - 0x20], rax
mov rdx, qword [rdx]
lea r9, [r11 + 0x10]
mov rsi, rcx
xor ebp, ebp
mov rcx, qword [rcx]
xor r8d, r8d
mov qword [r11 - 0x28], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
jns 0x140037f9d
mov eax, ecx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbx]
mov r8d, 1
mov edx, dword [rsp + 0x50]
shr edx, 1
mov ecx, dword [rax - 0xc]
sub r8d, dword [rax - 8]
sub ecx, edx
or r8d, ecx
jge 0x140037fc2
mov rcx, rbx
call fcn.1400028a0
mov rax, qword [rbx]
lea rcx, [rsp + 0x50]
mov rdx, qword [rdi]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbx]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
test edx, edx
jns 0x14003800f
cmp dword [rcx - 0xc], ebp
jl 0x140038041
mov dword [rcx - 0x10], ebp
mov eax, edx
mov rcx, qword [rbx]
mov word [rcx], bp
jmp 0x140037f90
test rcx, rcx
jne 0x140038018
mov eax, ebp
jmp 0x140038026
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x140038041
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140038041
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
xor eax, eax
jmp 0x140037f90
mov ecx, 0x80070057
call fcn.140002fa4
int3
Function at 0x14003804c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov r9, qword [r8]
xor ebx, ebx
test r9, r9
jne 0x140038061
lea ecx, [rbx + 0xd]
jmp 0x140038096
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], bx
jne 0x140038065
mov rdx, qword [rdx]
lea eax, [rax*2 + 2]
mov rcx, qword [rcx]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
add rsp, 0x30
pop rbx
ret

Function at 0x1400380ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rdx, qword [rdx]
lea rax, [r11 + 8]
mov rcx, qword [rcx]
lea r9, [r11 + 0x10]
mov qword [r11 - 0x10], rax
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
movzx edx, ax
or edx, 0x80070000
xor eax, eax
test ecx, ecx
cmovle edx, ecx
test edx, edx
cmovs eax, edx
add rsp, 0x38
ret

Function at 0x1400380f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
mov rdx, qword [rdx]
lea rax, [r11 + 8]
mov rcx, qword [rcx]
lea r9, [r11 + 0x10]
mov qword [r11 - 0x10], rax
mov rbx, r8
lea rax, [r11 + 0x20]
mov dword [rsp + 0x40], 8
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x140038142
mov eax, dword [rsp + 0x48]
sub eax, 0xb
neg eax
sbb ecx, ecx
and ecx, 0xd
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x140038162
mov eax, dword [rsp + 0x58]
mov dword [rbx], eax
mov eax, dword [rsp + 0x5c]
mov dword [rbx + 4], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x140038168
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, r8
mov rcx, rdx
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov rdx, qword [rsi]
mov rcx, rdi
test eax, eax
setne bl
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, eax
test eax, eax
je 0x1400381be
sub edx, 2
je 0x1400381b7
cmp edx, 1
je 0x1400381b7
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400381c0
mov edi, 1
jmp 0x1400381c0
xor edi, edi
test bl, bl
je 0x1400381ca
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400381e4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov edi, edx
mov rbx, rcx
xor esi, esi
mov dword [rax - 0x18], esi
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x140038299
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
lea ecx, [rsi + 1]
mov dword [rsp + 0x30], ecx
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
mov edx, 0x105
sub eax, edx
or ecx, eax
jge 0x140038240
mov rcx, rbx
call fcn.1400028a0
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140038264
mov eax, esi
jmp 0x140038272
movsxd rdx, dword [rcx - 0xc]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsnlen]
test eax, eax
js 0x1400382a4
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400382a4
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
mov ecx, 0x80004005
call fcn.140002fa4
int3
mov ecx, 0x80070057
call fcn.140002fa4
int3
Function at 0x14003b134
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
test byte [rcx + 8], 0x40
jne 0x14003b150
xor eax, eax
jmp 0x14003b24a
mov rax, qword [rcx + 0xe8]
mov rcx, qword [0x140092568]
test rax, rax
cmovne rcx, rax
lea r8, [rdi + 0xb0]
mov rdx, qword [rdi + 0xe0]
call fcn.140038168
mov ebx, eax
test eax, eax
js 0x14003b24a
mov rcx, qword [rdi + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14003b248
lea rdx, [rsp + 0x88]
mov rcx, rdi
call fcn.1400347cc
mov rbp, rax
call fcn.140002dfc
mov rcx, rax
test rax, rax
je 0x14003b25a
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x80], rbx
lea r8, [rsp + 0x80]
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.140043a5c
nop
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14003b1fd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [0x14007c428]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14003b22b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [rdi + 0x60]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140035034
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140043b98
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002fa4
int3