joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001f10
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx], rbp
jne 0x140001f4c
lea r8, str.m_hKey___0
mov edx, 0x16e0
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.14008f4c8
test rbx, rbx
je 0x140001f9f
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], bp
jne 0x140001f55
mov rcx, qword [rdi]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea r8, str.__atl_condVal
mov edx, 0x16e1
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.14008f4c8
mov ecx, 0x80004005
call fcn.140001b90
int3

Function at 0x140001fc8
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140183808]
xor rax, rsp
mov qword [rbp + 0x170], rax
and qword [rsp + 0x48], 0
mov rsi, rdx
and qword [rsp + 0x50], 0
mov r8, rdx
mov rdx, qword [rcx]
mov rdi, rcx
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x48]
mov r9d, 0x2001f
call fcn.140001e48
jmp 0x14000202f
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140001fc8
mov ebx, eax
test eax, eax
jne 0x1400020a3
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x70]
and qword [rsp + 0x28], 0
xor edx, edx
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x140002020
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140002096
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.140001c8c
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400020b9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1401534b0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400027c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x140183808]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000283b
call fcn.140001c00
mov ebx, eax
jmp 0x1400029c5
xor r9d, r9d
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140002865
call fcn.140001c00
jmp 0x1400029b3
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov r15, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000285b
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x1400028de
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400028b9
lea rcx, [rsp + 0x70]
call fcn.140004c1c
nop
mov eax, 0x8007000e
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1401534b0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov r14d, eax
test eax, eax
jne 0x1400028ea
mov r14, rbx
jmp 0x140002900
xor edx, edx
or rax, 0xffffffffffffffff
div r14
cmp rax, 2
jb 0x1400029e3
add r14, r14
cmp qword [rsp + 0x70], rbx
je 0x14000291f
lea r8, str.m_p__0
mov edx, 0x207
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlalloc.h
call fcn.14008f4c8
cmp r14, 0x400
jbe 0x14000293c
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140004d5c
mov rax, qword [rsp + 0x70]
jmp 0x140002946
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x14000295d
test rax, rax
jne 0x140002969
mov ebx, 0x8007000e
jmp 0x1400029b5
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r15
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
je 0x14000285b
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.1400036c8
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400029dc
lea rcx, [rsp + 0x70]
call fcn.140004c1c
nop
mov eax, ebx
jmp 0x1400028be
mov ecx, 0x80070057
call fcn.140001b90
int3
Function at 0x140024fd4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov rbx, rcx
mov rcx, qword [0x140183048]
lea r15, [0x140183048]
cmp rcx, r15
je 0x140025026
test byte [rcx + 0x1c], 1
je 0x140025026
cmp byte [rcx + 0x19], 4
jb 0x140025026
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d600]
mov edx, 0x1f7
call fcn.140004e50
and qword [rsp + 0x60], 0
test r14, r14
jne 0x140025049
lea r8, str.pbExist
mov edx, 0x2e75
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008f4c8
test rbx, rbx
jne 0x140025066
lea r8, str.wszSnapshotName
mov edx, 0x2e76
lea rcx, str.base_stor_blbengine_service_backup.cpp
call fcn.14008f4c8
lea rdx, [rsp + 0x60]
mov byte [r14], 1
mov rcx, rbx
call fcn.140090224
mov rbx, qword [rsp + 0x60]
mov esi, eax
test eax, eax
js 0x1400251f9
xor edi, edi
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x2000000
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140025146
lea r15d, [rdi + 1]
cmp r15d, 5
jae 0x14002512d
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x140025109
test byte [rcx + 0x1c], 1
je 0x140025109
cmp byte [rcx + 0x19], 4
jb 0x140025109
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d600]
mov edx, 0x1fa
mov qword [rsp + 0x20], rbx
mov r9d, edi
call fcn.1400105f0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov ecx, 0x3e8
or rbp, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
mov edi, r15d
cmp r15d, 5
jb 0x140025088
lea r15, [0x140183048]
jmp 0x1400251e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x14002519b
mov rcx, qword [0x140183048]
lea r15, [0x140183048]
cmp rcx, r15
je 0x140025195
test byte [rcx + 0x1c], 1
je 0x140025195
cmp byte [rcx + 0x19], 4
jb 0x140025195
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d600]
mov edx, 0x1f8
mov r9, rbx
call fcn.140005f10
mov rcx, qword [0x140183048]
mov byte [r14], 0
jmp 0x140025200
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov rcx, qword [0x140183048]
lea r15, [0x140183048]
cmp rcx, r15
je 0x140025200
test byte [rcx + 0x1c], 1
je 0x140025200
cmp byte [rcx + 0x19], 2
jb 0x140025200
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d600]
mov edx, 0x1f9
mov dword [rsp + 0x20], esi
mov r9, rbx
call fcn.140005f80
cmp rbp, 0xffffffffffffffff
je 0x1400251f9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
test rbx, rbx
je 0x14002521b
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x140025241
test byte [rcx + 0x1c], 1
je 0x140025241
cmp byte [rcx + 0x19], 4
jb 0x140025241
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015d600]
mov edx, 0x1fb
call fcn.140004e50
mov rbx, qword [rsp + 0x68]
mov eax, esi
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x14002e54c
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r15
sub rsp, 0x260
mov rax, qword [0x140183808]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov rbx, rcx
mov qword [rsp + 0x30], rbp
mov rcx, qword [0x140183048]
lea r15, [0x140183048]
lea r12, [0x14015d600]
cmp rcx, r15
je 0x14002e5b5
test byte [rcx + 0x1c], 1
je 0x14002e5b5
cmp byte [rcx + 0x19], 4
jb 0x14002e5b5
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c5
mov r8, r12
call fcn.140004e50
mov edx, dword [rbx + 0x150]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x158]
call fcn.14011719c
mov edi, eax
test eax, eax
jns 0x14002e617
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x14002e714
test byte [rcx + 0x1c], 1
je 0x14002e714
cmp byte [rcx + 0x19], 2
jb 0x14002e714
mov r9, qword [rbx + 0x158]
mov edx, 0x2c6
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.140005f80
jmp 0x14002e70d
mov edi, 0x101
lea rcx, [rsp + 0x40]
mov r8d, edi
mov dword [rsp + 0x38], edi
xor edx, edx
call sub.msvcrt.dll_memset
mov r8, qword [rbx + 0x260]
lea rcx, [rsp + 0x40]
test r8, r8
jne 0x14002e6a2
lea rdx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14002e6aa
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x14002e69b
test byte [rcx + 0x1c], 1
je 0x14002e69b
cmp byte [rcx + 0x19], 2
jb 0x14002e69b
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c7
movzx r9d, ax
mov r8, r12
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
call fcn.140004e7c
mov word [rsp + 0x40], bp
jmp 0x14002e6aa
mov rdx, rdi
call fcn.14003bf98
mov r8, qword [rbx + 0x188]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x158]
mov rcx, qword [rsp + 0x30]
call fcn.1400e7574
mov edi, eax
test eax, eax
jns 0x14002e70d
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x14002e714
test byte [rcx + 0x1c], 1
je 0x14002e714
cmp byte [rcx + 0x19], 2
jb 0x14002e714
mov r9, qword [rbx + 0x158]
mov edx, 0x2c8
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x160]
mov qword [rsp + 0x20], rax
call fcn.1400060c0
mov rcx, qword [0x140183048]
cmp qword [rsp + 0x30], rbp
je 0x14002e733
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, qword [0x140183048]
cmp rcx, r15
je 0x14002e755
test byte [rcx + 0x1c], 1
je 0x14002e755
cmp byte [rcx + 0x19], 4
jb 0x14002e755
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c9
mov r8, r12
call fcn.140004e50
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1401534b0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x14003d770
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [0x140183048]
lea rsi, [0x140183048]
cmp rcx, rsi
je 0x14003d7c3
test dword [rcx + 0x1c], 0x200
je 0x14003d7c3
cmp byte [rcx + 0x19], 4
jb 0x14003d7c3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015df88]
mov edx, 0x2f
call fcn.140004e50
mov rcx, qword [0x140183048]
test rdi, rdi
jne 0x14003d7cf
mov ebx, 0x80004003
jmp 0x14003d828
mov rcx, rbx
call fcn.140053804
mov ebx, eax
test eax, eax
js 0x14003d821
mov rcx, qword [0x140183048]
cmp rcx, rsi
je 0x14003d80a
test byte [rcx + 0x1c], 1
je 0x14003d80a
cmp byte [rcx + 0x19], 4
jb 0x14003d80a
mov rcx, qword [rcx + 0x10]
lea r8, [0x140161d98]
mov edx, 0x8e
call fcn.140004e50
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
nop dword [rax + rax]
mov dword [rdi], eax
xor ebx, ebx
jmp 0x14003d851
mov rcx, qword [0x140183048]
cmp rcx, rsi
je 0x14003d881
test byte [rcx + 0x1c], 1
je 0x14003d858
cmp byte [rcx + 0x19], 2
jb 0x14003d858
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015df88]
mov edx, 0x30
mov r9d, ebx
call fcn.140004e7c
mov rcx, qword [0x140183048]
cmp rcx, rsi
je 0x14003d881
test dword [rcx + 0x1c], 0x200
je 0x14003d881
cmp byte [rcx + 0x19], 4
jb 0x14003d881
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015df88]
mov edx, 0x31
call fcn.140004e50
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14004c5b4
Capabilities:
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [0x140183048]
lea r13, [0x140183048]
lea r14, [0x14015df88]
mov r12d, 0x200
cmp rcx, r13
je 0x14004c606
test dword [rcx + 0x1c], r12d
je 0x14004c606
cmp byte [rcx + 0x19], 4
jb 0x14004c606
mov rcx, qword [rcx + 0x10]
lea edx, [r12 - 9]
mov r8, r14
call fcn.140004e50
mov rcx, rdi
call fcn.14014a988
mov rdx, rdi
mov rcx, rsi
call fcn.140115758
mov ebx, eax
test eax, eax
jns 0x14004c660
mov rcx, qword [0x140183048]
cmp rcx, r13
je 0x14004c7dc
test dword [rcx + 0x1c], r12d
je 0x14004c7dc
cmp byte [rcx + 0x19], 2
jb 0x14004c7dc
mov edx, 0x1f8
mov dword [rsp + 0x20], eax
mov r8, r14
mov rcx, qword [rcx + 0x10]
mov r9, rsi
call fcn.140005f80
jmp 0x14004c7d5
mov eax, dword [rdi]
dec eax
test eax, 0xfffffffb
je 0x14004c683
lea r8, str.pMedia__m_eMediaType__BLB_MT_SHINY__pMedia__m_eMediaType__BLB_MT_REMOVABLE
mov edx, 0x27cb
lea rcx, str.base_stor_blbengine_serviceengine.cpp
call fcn.14008f4c8
lea rbp, [rdi + 8]
mov rcx, rsi
mov rdx, rbp
call fcn.14013d118
mov ebx, eax
test eax, eax
jns 0x14004c6c3
mov rcx, qword [0x140183048]
cmp rcx, r13
je 0x14004c7dc
test dword [rcx + 0x1c], r12d
je 0x14004c7dc
cmp byte [rcx + 0x19], 2
jb 0x14004c7dc
mov edx, 0x1f9
jmp 0x14004c648
cmp qword [rbp], 0
je 0x14004c70a
lea rdx, [rdi + 0x10]
mov rcx, rsi
call fcn.14013dbfc
mov ebx, eax
test eax, eax
jns 0x14004c70a
mov rcx, qword [0x140183048]
cmp rcx, r13
je 0x14004c7dc
test dword [rcx + 0x1c], r12d
je 0x14004c7dc
cmp byte [rcx + 0x19], 2
jb 0x14004c7dc
mov edx, 0x1fa
jmp 0x14004c648
cmp qword [rbp], 0
lea r14, [rdi + 0x18]
mov rcx, rsi
je 0x14004c79d
and qword [r14], 0
lea r9, [rsp + 0x88]
and qword [rdi + 0x20], 0
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
nop dword [rax + rax]
test eax, eax
jne 0x14004c756
mov rcx, rsi
call fcn.14013f1f4
mov ebx, eax
jmp 0x14004c76c
mov rax, qword [rsp + 0x78]
mov qword [r14], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x20], rax
xor ebx, ebx
test ebx, ebx
jns 0x14004c7e8
mov rcx, qword [0x140183048]
cmp rcx, r13
je 0x14004c7dc
test dword [rcx + 0x1c], r12d
je 0x14004c7dc
cmp byte [rcx + 0x19], 2
jb 0x14004c7dc
mov edx, 0x1fb
mov dword [rsp + 0x20], ebx
lea r8, [0x14015df88]
jmp 0x14004c64f
mov rdx, r14
call fcn.14013cc40
mov ebx, eax
test eax, eax
jns 0x14004c7ce
mov rcx, qword [0x140183048]
cmp rcx, r13
je 0x14004c7dc
test dword [rcx + 0x1c], r12d
je 0x14004c7dc
cmp byte [rcx + 0x19], 2
jb 0x14004c7dc
mov edx, 0x1fc
mov dword [rsp + 0x20], eax
jmp 0x14004c791
mov rax, qword [r14]
mov qword [rdi + 0x20], rax
mov rcx, qword [0x140183048]
test ebx, ebx
jns 0x14004c7ef
mov rcx, rdi
call fcn.14014a988
mov rcx, qword [0x140183048]
cmp rcx, r13
je 0x14004c815
test dword [rcx + 0x1c], r12d
je 0x14004c815
cmp byte [rcx + 0x19], 4
jb 0x14004c815
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015df88]
mov edx, 0x1fd
call fcn.140004e50
mov eax, ebx
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004d3a4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x20]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x10], rax
mov rsi, r8
mov qword [r11 - 0x18], r8
xor r9d, r9d
xor r8d, r8d
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14004d461
cmp dword [rsi], ebx
je 0x14004d41c
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x14004d4d5
test byte [rcx + 0x1c], 1
je 0x14004d4d5
cmp byte [rcx + 0x19], 4
jb 0x14004d4d5
mov edx, 0x213
jmp 0x14004d44c
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x14004d4d5
test byte [rcx + 0x1c], 1
je 0x14004d4d5
cmp byte [rcx + 0x19], 4
jb 0x14004d4d5
mov edx, 0x214
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015df88]
mov r9, rdi
call fcn.140005f10
jmp 0x14004d4d5
cmp eax, 2
jne 0x14004d48c
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x14004d4d5
test byte [rcx + 0x1c], 1
je 0x14004d4d5
cmp byte [rcx + 0x19], 3
jb 0x14004d4d5
mov edx, 0x215
jmp 0x14004d44c
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x140183048]
lea rax, [0x140183048]
cmp rcx, rax
je 0x14004d4d5
test byte [rcx + 0x1c], 1
je 0x14004d4d5
cmp byte [rcx + 0x19], 2
jb 0x14004d4d5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015df88]
mov edx, 0x216
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005f80
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400624f4
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x140183808]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [rdx], 0
mov r12, rdx
mov r8, rcx
mov edi, 0x104
mov edx, edi
lea rcx, [rsp + 0x30]
xor r15d, r15d
xor r14d, r14d
call fcn.14003bf98
lea r8, [0x14015e840]
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.1400536a4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x1400625a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14006269d
mov rcx, qword [rbp + 0x178]
lea edx, [rdi - 0x3b]
call fcn.1400611b8
mov esi, eax
jmp 0x140062683
and dword [rsp + 0x24], r14d
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], r14d
mov rcx, rbx
call fcn.140062700
mov esi, eax
test eax, eax
jns 0x1400625e3
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.14006117c
mov rcx, rbx
call fcn.1400621dc
jmp 0x140062683
lea r8, [0x14015e848]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1400536a4
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14006262c
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.1400611b8
mov esi, eax
jmp 0x1400625d6
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140062700
mov esi, eax
test eax, eax
jns 0x140062660
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.14006117c
mov rcx, rdi
call fcn.1400621dc
jmp 0x1400625d6
mov rcx, rdi
call fcn.1400621dc
movsxd rax, dword [rsp + 0x24]
mov rcx, rbx
movsxd r14, dword [rsp + 0x20]
shl r14, 0x1f
or r14, rax
call fcn.1400621dc
xor esi, esi
test esi, esi
jns 0x14006269d
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x62
call fcn.14006117c
jmp 0x1400626a2
mov r15, r14
xor esi, esi
test esi, esi
jns 0x1400626be
mov rcx, qword [rbp + 0x178]
mov r9d, esi
mov edx, 0x6b
call fcn.14006117c
mov eax, esi
jmp 0x1400626cb
mov rax, r15
shl rax, 2
mov qword [r12], rax
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1401534b0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140067dcc
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
cmp byte [0x140184541], 0
mov qword [0x140184548], rcx
je 0x140067dfd
lea r8, [0x14015aca4]
mov edx, 0xecf
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.14008f4c8
or eax, 0xffffffff
jmp 0x140067e2c
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
nop dword [rax + rax]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.140068e28
cmp al, 1
jne 0x140067e28
add rsp, 0x28
jmp 0x140068fc0
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r14
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140183808]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r14d, r14d
lea r8, str.AppID
mov r9d, 0x20019
mov qword [rsp + 0x50], r14
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x60], r14
call fcn.140001e48
mov ebx, eax
test eax, eax
je 0x14006902c
mov dword [0x140184a6c], eax
jmp 0x14006917f
mov rdx, qword [rsp + 0x50]
lea r8, [0x14015e480]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001e48
mov ebx, eax
test eax, eax
jne 0x140069161
cmp qword [rsp + 0x38], r14
jne 0x140069080
lea r8, str.m_hKey___0
mov edx, 0x1625
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.14008f4c8
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400690f2
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x1400690d1
mov eax, 0xd
jmp 0x1400690f2
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400690ea
test al, 1
jne 0x1400690ca
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x1400690ef
jmp 0x1400690ca
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x140184a7c], r14d
test eax, eax
jne 0x140069153
lea rax, [0x140184858]
mov dword [0x140184a7c], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x140069650]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
nop dword [rax + rax]
test eax, eax
jne 0x14006914b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
jmp 0x14006915f
mov ebx, dword [0x140184a6c]
jmp 0x140069167
lea rcx, [0x1401847f0]
call fcn.140067850
mov ebx, eax
mov dword [0x140184a6c], eax
cmp qword [rsp + 0x38], r14
je 0x14006917f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
cmp qword [rsp + 0x50], r14
je 0x140069197
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1401534b0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret