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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, r8
mov rsi, rdx
mov r14b, cl
test rdx, rdx
je 0x14001c64b
movups xmm0, xmmword [0x140042c90]
movdqu xmmword [rdx], xmm0
test rdi, rdi
je 0x14001c654
and dword [r8], 0
mov r15d, 0x208
lea rcx, [rsp + 0x70]
mov r8d, r15d
xor edx, edx
xor ebx, ebx
call sub.msvcrt.dll_memset
mov r8d, r15d
lea rcx, [rbp + 0x180]
xor edx, edx
call sub.msvcrt.dll_memset
and qword [rsp + 0x50], rbx
lea rax, [0x140044340]
movups xmm0, xmmword [0x140042c90]
xor r12d, r12d
lea rdx, str.SoftwareMicrosoftInputPersonalizationInkStoreToTrainImplicit
test r14b, r14b
mov r9d, 0x20019
mov rcx, 0xffffffff80000001
cmove rdx, rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x58], xmm0
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jne 0x14001c6d8
mov rbx, qword [rsp + 0x50]
xor r15d, r15d
test r14d, r14d
jne 0x14001c772
and dword [rsp + 0x40], r14d
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x48]
lea rax, [rbp + 0x180]
mov dword [rsp + 0x48], 0x104
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x44], 0x208
mov qword [rsp + 0x28], rax
mov edx, r15d
and qword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
nop dword [rax + rax]
mov r14d, eax
test eax, eax
jne 0x14001c769
inc r15d
cmp dword [rsp + 0x40], 1
jne 0x14001c769
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ole32.dll_CLSIDFromString]
nop dword [rax + rax]
mov r12d, eax
test eax, eax
jns 0x14001c7b7
test r12d, r12d
jns 0x14001c6db
test rbx, rbx
je 0x14001c786
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, 1
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.1400027f0
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
test rsi, rsi
je 0x14001c7c5
movups xmm0, xmmword [rsp + 0x58]
movdqu xmmword [rsi], xmm0
test rdi, rdi
je 0x14001c7e4
xor r8d, r8d
lea rcx, [rbp + 0x180]
xor edx, edx
call qword [sym.imp.msvcrt.dll_wcstol]
nop dword [rax + rax]
mov dword [rdi], eax
test rbx, rbx
je 0x14001c7f8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
xor eax, eax
jmp 0x14001c78b
Function at 0x14001df88
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov edi, r8d
mov rbx, rdx
xor r14d, r14d
mov qword [rbp - 0x79], r14
mov qword [rbp - 0x71], r14
mov qword [rbp - 0x69], r14
lea rax, [0x140044340]
lea r8, str.SoftwareMicrosoftInputPersonalizationInkStoreToTrainImplicit
test cl, cl
cmove r8, rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x20006
mov rdx, 0xffffffff80000001
lea rcx, [rbp - 0x79]
call fcn.140008174
test eax, eax
jne 0x14001e0d2
mov eax, dword [0x140044528]
mov dword [rbp - 0x61], eax
movzx eax, word [0x14004452c]
mov word [rbp - 0x5d], ax
xorps xmm0, xmm0
movups xmmword [rbp - 0x5b], xmm0
lea r8d, [r14 + 0x10]
lea rdx, [rbp - 0x5d]
mov ecx, edi
call qword [sym.imp.msvcrt.dll__itow]
nop dword [rax + rax]
lea r8d, [r14 + 0x40]
lea rdx, [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.ole32.dll_StringFromGUID2]
nop dword [rax + rax]
lea rcx, [rbp - 0x49]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14001e10d
lea rcx, [rbp - 0x61]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], r14w
jne 0x14001e065
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov ebx, r14d
test edi, edi
setne bl
cmp qword [rbp - 0x79], r14
je 0x14001e0ce
mov rcx, qword [rbp - 0x79]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
jmp 0x14001e0ec
mov rcx, qword [rbp - 0x79]
test rcx, rcx
je 0x14001e0e7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, 0x80004005
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400027f0
mov rbx, qword [rsp + 0x120]
add rsp, 0x100
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140007a38
int3
Function at 0x14001e13c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rdi + 0x90], rax
test rax, rax
jne 0x14001e17a
mov eax, 0x80004005
jmp 0x14001e285
lea rax, [rdi + 0x80]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x14001e9b0]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [rdi + 0x78], rax
test rax, rax
jne 0x14001e1b7
mov esi, 0x80004005
mov ebx, esi
jmp 0x14001e201
mov edx, 2
mov rcx, rax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadPriority]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x90]
mov edx, 0x9c4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x78]
xor ebx, ebx
test eax, eax
mov esi, 0x80004005
cmovne ebx, esi
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_SetThreadPriority]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x90]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
and qword [rdi + 0x90], 0
test ebx, ebx
js 0x14001e27b
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x14001e247
and qword [rdi + 0x50], 0
lea r8, [rdi + 0x58]
lea rdx, [0x140043db0]
call qword [sym.imp.ole32.dll_CoGetInterfaceAndReleaseStream]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rdi + 0x58]
mov eax, ebx
test rcx, rcx
jne 0x14001e25a
test ebx, ebx
js 0x14001e27b
mov ebx, esi
jmp 0x14001e27b
test eax, eax
js 0x14001e27b
mov rax, qword [rcx]
movabs r10, 0xbe6c8fdb56d4b170
mov rax, qword [rax + 0x18]
call qword [vtable.H_MA8HI.0]
mov ebx, eax
test eax, eax
jns 0x14001e283
mov rcx, rdi
call fcn.14001b9d8
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001fdc8
Capabilities:
Enumerate files on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor r14d, r14d
mov rsi, r8
mov word [r8], r14w
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
jne 0x14001fe07
mov ecx, 0x80070057
jmp 0x14001ff6e
xor edx, edx
mov r8d, 0x250
mov rcx, rdi
call sub.msvcrt.dll_memset
mov rcx, qword [rbx + 8]
cmp rcx, 0xffffffffffffffff
jne 0x14001fe8d
lea rbp, [rbx + 0x28]
mov rcx, rbp
call fcn.14001fb24
test eax, eax
js 0x14001ff6c
mov eax, dword [rbx + 0x24]
lea rcx, [rsp + 0x40]
mov r9d, dword [rbx + 0x14]
mov r8d, dword [rbx + 0x10]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
call fcn.14001f9e0
test eax, eax
js 0x14001ff6c
mov rdx, rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x14001fea4
lea ecx, [rax + 2]
jmp 0x14001ff6e
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
je 0x14001ff5a
mov edx, 0x5f
lea rcx, [rdi + 0x2c]
mov rbp, r14
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
je 0x14001feda
xor edx, edx
lea rcx, [rax + 2]
lea r8d, [rdx + 0x24]
call qword [sym.imp.msvcrt.dll__wcstoi64]
nop dword [rax + rax]
mov rbp, rax
cmp rbp, qword [rbx + 0x18]
jle 0x14001fe17
mov r8d, 0x104
mov rdx, rsi
sub rbx, rsi
mov ecx, 1
lea rax, [r8 + 0x7ffffefa]
test rax, rax
je 0x14001ff17
movzx eax, word [rbx + rdx + 0x28]
test ax, ax
je 0x14001ff17
mov word [rdx], ax
add rdx, 2
sub r8, rcx
jne 0x14001fef5
test r8, r8
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r14w
mov rax, r8
neg rax
sbb eax, eax
not eax
and eax, 0x8007007a
test r8, r8
je 0x14001ff70
lea rdx, [rdi + 0x2c]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
nop dword [rax + rax]
neg eax
sbb eax, eax
not eax
and eax, 0x80004005
jmp 0x14001ff70
mov rcx, rbx
call fcn.14001ff98
test eax, eax
mov ecx, 1
cmovns eax, ecx
mov ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400027f0
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140022fb0
Capabilities:
Delete file
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
lea rax, [0x140040358]
mov qword [rcx], rax
mov dword [rcx + 8], 0xc0000001
cmp byte [rcx + 0x5c], 0
jne 0x140022fee
call fcn.14002728c
mov rcx, qword [rbx + 0x28]
call fcn.140033c10
test rax, rax
je 0x1400230e3
and qword [rsp + 0x20], 0
lea rdi, [rbx + 0x14]
lea r9, [rsp + 0x20]
mov r8d, dword [rbx + 0x24]
mov rdx, rdi
mov ecx, dword [rbx + 0x10]
call fcn.140027798
test eax, eax
js 0x1400230bd
mov rax, qword [rdi]
cmp rax, qword [0x140045e00]
jne 0x14002303f
mov rax, qword [rdi + 8]
cmp rax, qword [0x140045e08]
je 0x1400230bd
xor r9d, r9d
mov r8d, 0x400
mov rdx, qword [rbx + 0x28]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_VarR8Pow]
nop dword [rax + rax]
cmp eax, 1
je 0x1400230bd
mov rax, qword [rdi]
cmp rax, qword [0x140045e10]
jne 0x14002307b
mov rax, qword [rdi + 8]
cmp rax, qword [0x140045e18]
je 0x1400230bd
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x1400230bd
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
and qword [rbx + 0x28], 0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, qword [0x140051be8]
mov rax, qword [rcx]
movabs r10, 0x92a9beee5ad9a970
mov rax, qword [rax + 0x10]
call qword [vtable.H_MA8HI.0]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400027f0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x140023c3c
Capabilities:
Check if file exists
Delete registry value
Get file attributes
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rbp + reloc.OLEAUT32.dll_VarBstrFromUI8], rax
mov r14, rdx
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
mov r8d, 0x20119
lea rdx, [rsp + 0x40]
call fcn.140028914
test eax, eax
js 0x140023e0a
mov rbx, qword [r14]
mov rbx, qword [rbx]
cmp rbx, qword [r14]
je 0x140023e0a
mov edi, dword [rbx + 0x30]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x60]
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x140023db1
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x140023db1
xor eax, eax
mov dword [rsp + 0x58], eax
mov word [rsp + 0x5c], ax
lea r9d, [rax + 0xa]
lea r8d, [rax + 3]
lea rdx, [rsp + 0x58]
mov ecx, edi
call qword [sym.imp.msvcrt.dll__itow_s]
nop dword [rax + rax]
test eax, eax
jne 0x140023db1
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140023db1
mov rdi, qword [rsp + 0x30]
lea rdx, [rsp + 0x38]
lea rcx, [rbx + 0x20]
call qword [sym.imp.ole32.dll_StringFromCLSID]
nop dword [rax + rax]
test eax, eax
jne 0x140023d9d
mov rdx, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test rdi, rdi
je 0x140023db1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
cmp byte [rbx + 0x19], 0
jne 0x140023c9e
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
jne 0x140023de9
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x140023c9e
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140023dd5
jmp 0x140023c9e
mov rax, qword [rbx + 8]
jmp 0x140023dfc
cmp rbx, qword [rax + 0x10]
jne 0x140023e02
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140023def
mov rbx, rax
jmp 0x140023c9e
cmp qword [rsp + 0x40], 0
je 0x140023e23
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp + reloc.OLEAUT32.dll_VarBstrFromUI8]
xor rcx, rsp
call fcn.1400027f0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140026f30
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x2a0
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rsp + 0x290], rax
and qword [r8], 0
mov rdi, r8
mov rcx, qword [rdx]
mov rbx, rdx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
test eax, eax
je 0x140027021
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov rcx, qword [rbx]
lea rdx, [rsp + 0x80]
mov r8d, 0x104
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x140027021
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x80]
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000
mov dword [rsp + 0x20], 3
lea edx, [r9 + 1]
mov r8d, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140027021
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileInformationByHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x54]
test ecx, ecx
jne 0x14002700b
cmp dword [rsp + 0x58], ecx
jne 0x14002700b
mov rcx, qword [rsp + 0x44]
mov qword [rdi], rcx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
xor eax, eax
jmp 0x140027026
mov eax, 0x80004005
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1400027f0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rdi
ret

Function at 0x140027680
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x60
mov rdi, rcx
test rcx, rcx
je 0x140027783
and dword [rcx], 0
lea r8, str.SoftwareMicrosoftInputPersonalizationTrainedDataStore_
and qword [rbp - 0x20], 0
lea rcx, [rbp - 0x20]
and qword [rbp - 0x18], 0
xor ebx, ebx
and qword [rsp + 0x30], rbx
mov rdx, 0xffffffff80000001
and qword [rbp - 0x10], 0
and dword [rbp + 0x20], ebx
mov dword [rsp + 0x28], 0x2011f
call fcn.140008174
test eax, eax
jne 0x14002775c
mov rcx, qword [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x20]
mov dword [rbp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140045de8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x14002771f
cmp eax, 2
je 0x14002771f
cmp eax, 0xd
jne 0x14002775c
mov eax, dword [rbp + 0x20]
lea rdx, [0x140045de8]
mov rcx, qword [rbp - 0x20]
inc eax
mov dword [rbp + 0x28], eax
mov r9d, 4
lea rax, [rbp + 0x28]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
je 0x140027763
mov ebx, 0x80004005
jmp 0x140027768
mov edx, dword [rbp + 0x20]
mov dword [rdi], edx
cmp qword [rbp - 0x20], 0
je 0x14002777f
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140027788
mov eax, 0x80070057
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
Function at 0x140027798
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3b8]
sub rsp, 0x4b8
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
mov r14, r9
mov r12d, r8d
mov rbx, rdx
mov r15d, ecx
xor r13d, r13d
test r9, r9
je 0x1400277dc
mov qword [r9], r13
mov rdi, r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov rsi, r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x190]
call sub.msvcrt.dll_memset
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call sub.msvcrt.dll_memset
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rbp + 0x190]
mov ecx, r12d
call qword [sym.imp.msvcrt.dll__itow]
nop dword [rax + rax]
mov qword [rsp + 0x48], r13
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140034810
mov ebx, eax
test eax, eax
js 0x140027910
mov r8d, 0x20106
lea rdx, [rsp + 0x68]
mov ecx, r15d
call fcn.140028914
mov ebx, eax
mov rdi, qword [rsp + 0x68]
test eax, eax
js 0x140027910
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x20119
lea r8, [rbp + 0x190]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140008174
mov rsi, qword [rsp + 0x50]
test eax, eax
jne 0x14002790b
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
je 0x1400278e9
cmp eax, 2
jmp 0x140027909
mov eax, dword [rsp + 0x44]
dec eax
cmp eax, 1
ja 0x14002790b
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140027971
test al, 1
jne 0x14002790b
shr rax, 1
cmp word [rsp + rax*2 + 0x7e], r13w
je 0x140027976
mov ebx, 0x80004005
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
test rsi, rsi
je 0x140027937
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
test rdi, rdi
je 0x14002794b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.1400027f0
add rsp, 0x4b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov word [rbp - 0x80], r13w
test r14, r14
je 0x140027910
lea rcx, [rbp - 0x80]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [r14], rax
jmp 0x140027910
Function at 0x140028060
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov esi, edx
cmp qword [rcx + 0x40], 0xffffffffffffffff
mov rbx, rcx
jne 0x14002817a
cmp qword [rcx + 0x50], rdi
jne 0x14002817a
mov rcx, qword [rcx + 0x28]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
nop dword [rax + rax]
test eax, eax
jne 0x1400280bc
lea eax, [rdi + 1]
jmp 0x140028196
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov rcx, qword [rbx + 0x28]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x1400280ff
mov rcx, rbx
call fcn.14002728c
mov eax, 0x80004005
jmp 0x140028196
mov rax, qword [rbx + 0x14]
cmp rax, qword [0x140045e00]
jne 0x140028125
mov rax, qword [rbx + 0x1c]
cmp rax, qword [0x140045e08]
jne 0x140028125
mov edx, esi
mov rcx, rbx
call fcn.1400282e0
jmp 0x14002816c
mov rax, qword [rbx + 0x14]
cmp rax, qword [0x140045e10]
jne 0x140028164
mov rax, qword [rbx + 0x1c]
cmp rax, qword [0x140045e18]
jne 0x140028164
and dword [rsp + 0x20], edi
lea r8, [rsp + 0x20]
lea rdx, str.E208CCA6_44BC_45CA_9FBF_DAE2263B9583
mov rcx, rbx
call fcn.1400281c4
cmp dword [rsp + 0x20], 0
mov edi, eax
jne 0x14002816e
test eax, eax
js 0x14002816e
mov rcx, rbx
call fcn.140028694
mov edi, eax
test edi, edi
jns 0x14002817a
mov rcx, rbx
call fcn.14002728c
cmp qword [rbx + 0x40], 0xffffffffffffffff
jne 0x140028194
cmp qword [rbx + 0x50], 0
jne 0x140028194
test edi, edi
mov eax, 0x80004005
cmovs eax, edi
jmp 0x140028196
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400027f0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140028694
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
mov rcx, qword [rbx + 0x28]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x1400286f2
mov rcx, rbx
call fcn.14002728c
mov eax, 0x80004005
jmp 0x14002871a
lea rax, [rbx + 0x30]
lea rcx, [rbx + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rbx + 0x48]
lea rcx, [rsp + 0x30]
lea r8, [rbx + 0x40]
lea rdx, [rbx + 0x38]
call fcn.1400389e4
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400027f0
add rsp, 0x250
pop rbx
ret