joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10000baa0
Capabilities:
Delete file
Delete registry key

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0xb0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x1000400a0]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rsi, rcx
lea r8, [rcx + 0x28]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApplets_
lea rcx, [r11 - 0x80]
call fcn.10000b950
nop
lea r8, str.Recovery_
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.10000b7ac
nop
cmp qword [rsp + 0x68], 8
jb 0x10000bb13
mov rcx, qword [rsp + 0x50]
call sub.msvcrt.dll_free
mov r12d, 7
mov qword [rsp + 0x68], r12
xor edi, edi
mov qword [rsp + 0x60], rdi
mov word [rsp + 0x50], di
lea rdx, [0x100032018]
mov rcx, rsi
call fcn.10000bb8c
cmp al, dil
je 0x100017877
cmp qword [rsp + 0xa0], 8
jb 0x10000bb5a
mov rcx, qword [rsp + 0x88]
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x10000bb5e
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1000012f0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.10000ba20
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
mov r8d, 0x10
lea rdx, str.RecoveryFilePath
lea rcx, [rsp + 0x20]
call fcn.10000a000
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x70]
lea rcx, [rsi + 0x60]
call fcn.1000291b8
mov rbx, qword [rax]
cmp qword [rsp + 0x40], 8
jb 0x1000178dd
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
cmp rbx, qword [rsi + 0x68]
je 0x100017942
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rdi
mov word [rsp + 0x28], di
mov r8d, 0x10
lea rdx, str.RecoveryFilePath
lea rcx, [rsp + 0x20]
call fcn.10000a000
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsi + 0x60]
call fcn.100029030
cmp qword [rax + 0x20], 8
jb 0x100017925
mov rcx, qword [rax + 8]
jmp 0x100017929
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp qword [rsp + 0x40], 8
jb 0x100017942
mov rcx, qword [rsp + 0x28]
call sub.msvcrt.dll_free
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae rdx, qword [rsp + 0x88]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, 1
cmp eax, edi
cmove edi, ecx
cmp qword [rsp + 0xa0], 8
jb 0x10001798b
mov rcx, qword [rsp + 0x88]
call sub.msvcrt.dll_free
mov eax, edi
jmp 0x10000bb5e
Function at 0x10000c680
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionAppletsStickyNotes
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000c70a
and dword [rsp + 0x58], eax
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x68]
lea rdx, str.Upgrade
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100015f57
test rbx, rbx
je 0x10000c70a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add rsp, 0x40
pop rbx
ret
cmp dword [rsp + 0x68], 4
jne 0x10000c6fc
test eax, eax
jne 0x10000c6fc
cmp dword [rsp + 0x58], eax
je 0x10000c6fc
test rbx, rbx
je 0x100015f82
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x10000c70c

Function at 0x10000c718
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rdi
sub rsp, 0x60
and qword [r11 - 0x38], 0
and qword [r11 - 0x30], 0
and qword [r11 - 0x28], 0
and qword [r11 + 0x10], 0
lea rax, [r11 + 0x10]
mov rdi, rcx
mov ebx, 0x2001f
mov rbp, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionAppletsStickyNotes
xor r8d, r8d
mov r9d, ebx
mov rcx, rbp
mov qword [r11 - 0x58], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001605f
mov rbx, qword [rsp + 0x88]
jmp 0x10000c775
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x90]
lea rdx, str.PROMPT_ON_DELETE
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov ebp, 4
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x88], ebp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10001609d
cmp dword [rsp + 0x90], ebp
jne 0x10001609d
test eax, eax
jne 0x10001609d
cmp dword [rsp + 0x98], 1
sete al
mov byte [rdi + 0xf0], al
jmp 0x10000c7e6
test rbx, rbx
je 0x10000c7f4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
lea r8, str.SoftwareMicrosoftWindowsCurrentVersionAppletsStickyNotes
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov rdx, rbp
mov dword [rsp + 0x28], ebx
and dword [rsp + 0x20], 0
call fcn.10000faa0
mov rbx, qword [rsp + 0x40]
test eax, eax
je 0x10000c775
jmp 0x10000c7e6
lea rax, [rsp + 0x88]
lea rdx, str.PROMPT_ON_DELETE
mov r9d, ebp
Function at 0x10000c804
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rdi
sub rsp, 0x60
and qword [r11 - 0x38], 0
and qword [r11 - 0x30], 0
and qword [r11 - 0x28], 0
and qword [r11 + 0x10], 0
lea rax, [r11 + 0x10]
mov rdi, rcx
mov ebx, 0x2001f
mov rbp, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionAppletsStickyNotes
xor r8d, r8d
mov r9d, ebx
mov rcx, rbp
mov qword [r11 - 0x58], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000160db
mov rbx, qword [rsp + 0x88]
jmp 0x10000c861
lea rax, [rsp + 0x88]
lea r9, [rsp + 0x90]
lea rdx, str.FirstRun
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x98]
mov ebp, 4
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x88], ebp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100016119
cmp dword [rsp + 0x90], ebp
jne 0x100016119
test eax, eax
jne 0x100016119
mov byte [rdi + 0xf1], al
jmp 0x10000c8c7
test rbx, rbx
je 0x10000c8d5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret
test eax, eax
or r10b, byte [rax]
Function at 0x10000f950
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rsi
sub rsp, 0x280
mov rax, qword [0x1000400a0]
xor rax, rsp
mov qword [rsp + 0x270], rax
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10000fa72
mov rcx, qword [0x100040948]
mov rbx, qword [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10000fa64
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
lea r8, [0x100032520]
lea rcx, [rsp + 0x48]
xor r9d, r9d
mov rdx, rbx
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
call fcn.10000faa0
mov esi, eax
test eax, eax
jne 0x10000fa49
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x48]
lea r9d, [rsi + 1]
lea eax, [rax + rax + 2]
lea rdx, str.RESTART_STICKY_NOTES
xor r8d, r8d
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp qword [rsp + 0x48], 0
je 0x10000fa5c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100015f89
test rbx, rbx
je 0x10000fa72
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1000012f0
mov rbx, qword [rsp + 0x290]
add rsp, 0x280
pop rsi
ret
cmp dword [0x1000408f4], 0
je 0x10000fa64
mov al, byte [0x1000408f8]
cmp al, 2
jae 0x100015fa8
test al, al
jne 0x10000fa64
movabs rcx, 0x4000000000010000
test qword [0x1000408e0], rcx
je 0x10000fa64
mov rdx, qword [0x1000408e8]
mov rax, rdx
and rax, rcx
cmp rax, rdx
jne 0x10000fa64
mov rcx, qword [0x1000400f0]
lea rdx, [0x1000331b0]
mov r8d, 0x80004005
call fcn.100019be4
nop
jmp 0x10000fa64
Function at 0x1000102c8
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1000400a0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call sub.msvcrt.dll_memset
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x100000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x100017c5a
cmp dword [rsp + 0x24], 5
jb 0x100010363
jmp 0x10001035f
mov byte [rbx + 0x18], sil
lea rax, [0x100032258]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1000103c0
movzx ecx, byte [0x100040051]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x100040051], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1000012f0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
cmp dword [rsp + 0x30], esi
jne 0x100010363
cmp dword [rsp + 0x24], 4
ja 0x10001035f
jne 0x100010363
cmp dword [rsp + 0x28], 0
ja 0x10001035f
jmp 0x100010363

Function at 0x1000104f8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x10001053f
cmp rcx, 0xffffffffffffffff
je 0x10001053f
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10001053d
cmp dword [rcx + 0x3c], edx
jl 0x10001053d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10001053d
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x10001053f
mov rax, rdx
add rsp, 0x18
ret

Function at 0x10001e13c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1000400a0]
xor rax, rsp
mov qword [rsp + 0x250], rax
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionAppletsStickyNotes
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001e1f5
mov rcx, qword [0x100040948]
mov rbx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x10001e1e7
and dword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rdx, str.PROMPT_ON_DELETE
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x10001e1e7
mov byte [rdi + 0xf0], al
test rbx, rbx
je 0x10001e1f5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1000012f0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x10001f968
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1000400a0]
xor rax, rsp
mov qword [rsp + 0x270], rax
and qword [rsp + 0x48], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
mov rdi, rcx
mov rcx, qword [rcx]
lea rax, [rsp + 0x60]
mov r9d, 0x2001f
xor r8d, r8d
mov rsi, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x10001fa6c
test rcx, rcx
je 0x10001f9e2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x60]
test ebx, ebx
mov qword [rsp + 0x48], rcx
jmp 0x10001fa08
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.10001f968
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test eax, eax
jne 0x10001fa6c
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor edx, edx
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10001f9f0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x10001fa5a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x48], 0
mov rdx, rsi
mov rcx, rdi
call fcn.10001facc
mov rcx, qword [rsp + 0x48]
mov ebx, eax
test rcx, rcx
je 0x10001fa77
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1000012f0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x10002080c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1000400a0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, 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]
mov rsi, rax
mov qword [rsp + 0x38], rax
cmp rax, rbx
jne 0x100020880
call fcn.10001edfc
mov ebx, eax
jmp 0x1000209c1
mov r8, r12
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, rbx
jne 0x1000208a3
call fcn.10001edfc
mov ebx, eax
jmp 0x1000209b7
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rsp + 0x40], rax
cmp rax, rbx
jne 0x1000208c8
call fcn.10001edfc
mov ebx, eax
jmp 0x1000209b7
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x100020901
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1000208f7
lea rcx, [rsp + 0x70]
call fcn.10001f37c
nop
mov eax, 0x8007000e
jmp 0x1000209da
mov ecx, eax
cmp rcx, rbx
je 0x10002093f
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x100020935
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x10002093f
lea rcx, [rsp + 0x70]
call fcn.10001f3dc
mov rax, qword [rsp + 0x70]
jmp 0x100020949
mov ecx, 0x80070057
call fcn.100018078
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x100020960
cmp rax, rbx
jne 0x10002096c
mov ebx, 0x8007000e
jmp 0x1000209b7
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x100020993
call fcn.10001edfc
mov ebx, eax
jmp 0x1000209b7
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.10002064c
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1000209d8
lea rcx, [rsp + 0x70]
call fcn.10001f37c
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1000012f0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret

Function at 0x100021490
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rdx, r8
mov rsi, r8
mov rbp, rcx
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1000214dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rdi, rdi
je 0x1000214dc
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rdi], eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x100024320
Capabilities:
Read .ini file

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1850
call fcn.1000105f0
sub rsp, rax
mov rax, qword [0x1000400a0]
xor rax, rsp
mov qword [rsp + 0x1840], rax
mov rax, qword [rcx]
mov r10, r8
mov rdi, rdx
mov rdx, qword [r10]
mov rcx, qword [rdi]
mov rsi, r9
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
xor ebx, ebx
mov dword [rsp + 0x20], 0xc01
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x10002439a
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x30]
not rcx
lea r8d, [rcx - 1]
mov rcx, rsi
call fcn.100003020
mov bl, 1
mov al, bl
mov rcx, qword [rsp + 0x1840]
xor rcx, rsp
call fcn.1000012f0
add rsp, 0x1850
pop rdi
pop rsi
pop rbx
ret
Function at 0x100028ab0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1000400a0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x50], rdx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov word [rsp + 0x60], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call sub.msvcrt.dll_memset
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r12
lea rbx, [rsi + 8]
mov word [rbx], r12w
xor r8d, r8d
lea rdx, [0x100032018]
mov rcx, rsi
call fcn.10000a000
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r12 + 0x1a]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, r12d
je 0x100028c6f
xor eax, eax
or r13, 0xffffffffffffffff
mov rcx, r13
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.10000a000
lea rdx, str.Microsoft_
mov rcx, rsi
call fcn.10000b850
mov r9, r13
xor r8d, r8d
lea rdx, [rbp + 0x28]
mov rcx, rsi
call fcn.10000ba20
lea rdx, [0x100032464]
mov rcx, rsi
call fcn.10000b850
cmp qword [rsi + 0x20], 8
jb 0x100028bb8
mov rcx, qword [rbx]
jmp 0x100028bbb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100028c1e
cmp qword [rsi + 0x20], 8
jb 0x100028bd2
mov rdx, qword [rbx]
jmp 0x100028bd5
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp eax, r12d
je 0x100028c1e
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
mov r9, r13
xor r8d, r8d
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.100009e54
nop
cmp qword [rsp + 0x48], 8
jb 0x100028c6f
mov rcx, qword [rsp + 0x30]
call sub.msvcrt.dll_free
jmp 0x100028c6f
cmp qword [rbp + 0x48], 8
jb 0x100028c2b
mov rdx, qword [rbp + 0x30]
jmp 0x100028c2f
lea rdx, [rbp + 0x30]
cmp qword [rsi + 0x20], 8
jb 0x100028c39
mov rbx, qword [rbx]
lea r9, [rsp + 0x270]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor r8d, r8d
lea rdx, [0x100032018]
mov rcx, rsi
call fcn.10000a000
lea rdx, [rsp + 0x270]
mov rcx, rsi
call fcn.10000b850
mov rax, rsi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1000012f0
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10002b844
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x530
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x10002b8af
and qword [rsp + 0x38], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x50]
mov r9, rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x10002b8cf
mov rax, qword [rsp + 0x538]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x538]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add rsp, 0x530
pop rbx
ret

Function at 0x10002bc30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov edi, dword [0x100040df8]
xor ebx, ebx
cmp edi, ebx
jne 0x10002bd12
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMSetup
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
lea edi, [rbx + 2]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10002bd0c
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea rdx, str.SystemSetupInProgress
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10002bd01
cmp dword [rsp + 0x40], ebx
je 0x10002bd01
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea rdx, str.OOBEInProgress
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x10002bcfc
cmp dword [rsp + 0x40], ebx
jne 0x10002bd01
mov edi, 1
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x100040df8], edi
cmp edi, 1
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x10002bd2c
Capabilities:
Check os version

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x370
mov rax, qword [0x1000400a0]
xor rax, rsp
mov qword [rsp + 0x360], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
mov rdi, r8
mov esi, edx
mov dword [rsp + 0x30], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10002bd7d
cmp dword [rsp + 0x40], 2
jne 0x10002bd7d
cmp dword [rsp + 0x34], 6
lea r8, str.D:_A__GA___SY__A__0x_x____s_S:_ML__1___LW_
jae 0x10002bd84
lea r8, str.D:_A__GA___SY__A__0x_x____s_
and qword [rdi], 0
lea rcx, [rsp + 0x150]
mov r9d, esi
mov edx, 0x104
mov qword [rsp + 0x20], rbx
call fcn.1000263f0
mov ebx, eax
test eax, eax
js 0x10002bde1
xor r9d, r9d
lea rcx, [rsp + 0x150]
mov r8, rdi
lea edx, [r9 + 1]
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x10002bde1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1000012f0
add rsp, 0x370
pop rdi
pop rsi
pop rbx
ret

Function at 0x10002be10
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
and qword [r8], 0
mov rdi, r8
mov esi, edx
test ecx, ecx
jne 0x10002beab
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
cmp dword [rcx + 0x2c0], 0
je 0x10002beab
lea r8, [rsp + 0x30]
lea rdx, [0x100032768]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x10002be8f
cmp dword [rsp + 0x30], 0
jne 0x10002be8f
lea rcx, [rsp + 0x40]
call fcn.100026500
mov ebx, eax
test eax, eax
js 0x10002be94
mov rcx, qword [rsp + 0x40]
mov r8, rdi
mov edx, esi
call fcn.10002bd2c
mov rcx, qword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10002beb9
mov ebx, 0x80004005
call fcn.10002bc30
test eax, eax
je 0x10002beb9
mov r8, rdi
mov edx, esi
lea rcx, [0x100032820]
jmp 0x10002beb2
lea rcx, [0x100032818]
call fcn.10002bd2c
mov ebx, eax
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret