joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c2bc
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9a0]
sub rsp, 0xaa0
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rbp + 0x990], rax
movsxd r15, edx
mov r14d, r8d
mov rbx, rcx
lea rdi, [r15 + r15*2]
lea r12, [0x140003030]
lea rcx, [rbp + 0x360]
add rdi, rdi
xor r13d, r13d
mov edx, 0x104
mov r8, qword [r12 + rdi*8 + 8]
mov esi, r9d
mov word [rbp + 0x360], r13w
call fcn.140009608
lea rcx, [rbp + 0x360]
call fcn.140010cec
mov r8, rbx
mov ebx, 0x104
lea r9, [rbp + 0x360]
lea rcx, [rbp + 0x150]
mov edx, ebx
call fcn.140011294
test r14d, r14d
je 0x14000c37f
lea r8, [rbp + 0x150]
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.140009608
lea rcx, [rsp + 0x40]
call fcn.140010bd0
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea rcx, [rbp + 0x570]
mov r8d, 0x26
call fcn.14000eec4
lea rcx, [rbp + 0x780]
mov r8d, 0x2a
call fcn.14000eec4
test r14d, r14d
je 0x14000c421
cmp dword [r12 + rdi*8 + 0x1c], r13d
jne 0x14000c46b
mov esi, dword [r12 + rdi*8 + 0x18]
mov r14d, dword [r12 + rdi*8 + 0x14]
lea rax, [0x140003030]
cmp r15d, 3
mov r15d, dword [r12 + rdi*8 + 0x2c]
mov r12d, dword [r12 + rdi*8 + 0x28]
mov rdi, qword [rax + rdi*8 + 0x20]
lea rbx, [0x1400029b8]
lea rcx, [rbp + 0x150]
cmovne rbx, r13
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14000c46b
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], r14d
lea r8, [rbp + 0x150]
lea rcx, [rbp + 0x570]
mov r9, rdi
mov rdx, rbx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r12d
call fcn.14000b8e8
jmp 0x14000c46b
lea r8, [rbp + 0x150]
lea rcx, [rsp + 0x40]
mov rdx, rbx
call fcn.140009608
lea rcx, [rsp + 0x40]
call fcn.140010bd0
test eax, eax
js 0x14000c46b
lea rdx, [rbp + 0x570]
lea rcx, [rsp + 0x40]
mov r8d, esi
call fcn.14000bd54
lea rdx, [rbp + 0x780]
lea rcx, [rsp + 0x40]
mov r8d, esi
call fcn.14000bd54
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.14002ad70
mov rbx, qword [rsp + 0xaf0]
add rsp, 0xaa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x250], rax
and dword [rsp + 0x30], 0
mov edi, r8d
mov ebx, edx
lea r8, [0x1400033b0]
lea r9, [0x140002f70]
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.140009684
lea rax, [rsp + 0x34]
lea r8, [0x140002fc0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
and ebx, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
or ebx, edi
lea r8, [0x140002fc0]
lea rdx, [rsp + 0x40]
mov r9d, 4
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14002ad70
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x14000c57c
Capabilities:
Enumerate files on windows
Set current directory

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
je 0x14000c5f3
lea rdx, [rsp + 0x20]
lea rcx, [0x1400029d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000c5f3
lea rdx, [rsp + 0x4c]
mov rcx, rsi
call fcn.14000bc24
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000c5cb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14002ad70
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x14000c628
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x580]
sub rsp, 0x680
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rbp + 0x570], rax
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 0x10]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ebx, 0x104
test eax, eax
je 0x14000c6e8
lea rdx, [rbp + 0x150]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14000c68f
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call fcn.14000c57c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [rbp + 0x360]
mov r9d, ebx
mov rcx, rax
mov edx, 0x10
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x14000c6e8
lea r8, [rbp + 0x360]
lea rcx, [rsp + 0x40]
call fcn.1400114e0
lea rdx, [rbp + 0x150]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14000c6e8
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call fcn.14000c57c
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
lea r8, [0x140002a28]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x360]
lea rdx, [0x140002a60]
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x30], SHFlushSFCache
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x14000c74e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [rbp + 0x360]
mov r9d, ebx
mov rcx, rax
mov edx, 0x11
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x14000c79b
xor r9d, r9d
lea rdx, [rsp + 0x40]
xor ecx, ecx
lea r8d, [r9 + 2]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000c79b
lea r8, [rbp + 0x360]
lea rcx, [rsp + 0x40]
call fcn.1400114e0
lea rdx, [rbp + 0x150]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14000c79b
lea rdx, [rbp + 0x150]
lea rcx, [rsp + 0x40]
call fcn.14000c57c
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.14002ad70
mov rbx, qword [rsp + 0x690]
add rsp, 0x680
pop rbp
ret
Function at 0x14000c7c4
Capabilities:
Get common file path

Disassembly:
test r8d, r8d
je 0x14000c84d
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov esi, r9d
mov rbx, rdx
mov ebp, ecx
mov edi, r8d
mov r8d, dword [rbx]
lea rdx, [rsp + 0x20]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000c822
lea rcx, [rsp + 0x20]
mov r9d, esi
xor r8d, r8d
mov edx, ebp
call fcn.14000c2bc
add rbx, 4
dec rdi
jne 0x14000c7f9
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14002ad70
mov rbx, qword [rsp + 0x270]
add rsp, 0x240
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000c854
Capabilities:
Get common file path

Disassembly:
test r8d, r8d
je 0x14000c8c0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, r9d
mov rbx, rdx
mov edi, r8d
lea r9, [rsp + 0x20]
or r8, 0xffffffffffffffff
xor edx, edx
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x14000c8a8
mov rcx, qword [rsp + 0x20]
xor r8d, r8d
mov r9d, esi
lea edx, [r8 + 2]
call fcn.14000c2bc
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
add rbx, 0x10
dec rdi
jne 0x14000c871
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000c8c8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x570]
sub rsp, 0x670
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rbp + 0x560], rax
mov r8d, ecx
lea rdx, [rbp + 0x350]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000c9f4
mov edi, 0x104
lea r9, [0x1400026a0]
lea r8, [rbp + 0x350]
lea rcx, [rsp + 0x30]
mov edx, edi
call fcn.140011294
xor r9d, r9d
lea rcx, [rsp + 0x30]
lea edx, [r9 + 2]
xor r8d, r8d
call fcn.14000c2bc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [rbp + 0x140]
mov r9d, edi
mov rcx, rax
mov edx, 0x2db
call qword [sym.imp.USER32.dll_LoadStringW]
lea rcx, [rbp + 0x140]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea r9, [rbp + 0x140]
lea r8, [rbp + 0x350]
lea rcx, [rsp + 0x30]
mov edx, edi
call fcn.140011294
xor r9d, r9d
lea rcx, [rsp + 0x30]
lea edx, [r9 + 2]
xor r8d, r8d
call fcn.14000c2bc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [rbp + 0x140]
mov r9d, edi
mov rcx, rax
mov edx, 0x2dd
call qword [sym.imp.USER32.dll_LoadStringW]
lea rcx, [rbp + 0x140]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea r9, [rbp + 0x140]
lea r8, [rbp + 0x350]
lea rcx, [rsp + 0x30]
mov edx, edi
call fcn.140011294
xor r9d, r9d
lea rcx, [rsp + 0x30]
lea edx, [r9 + 2]
xor r8d, r8d
call fcn.14000c2bc
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.14002ad70
mov rdi, qword [rsp + 0x688]
add rsp, 0x670
pop rbp
ret
Function at 0x14000cae0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
lea rax, [r11 + 0x18]
lea r9, [r11 + 8]
lea r8, [0x140002ba8]
mov qword [r11 - 0x10], rax
lea rax, [r11 + 0x10]
lea rdx, [0x140002be0]
xor ebx, ebx
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x40], 4
mov qword [r11 - 0x18], rax
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x48], ebx
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x14000cb47
cmp dword [rsp + 0x40], 4
jne 0x14000cb47
cmp dword [rsp + 0x48], ebx
lea ecx, [rbx + 1]
movzx eax, bl
cmovne eax, ecx
mov bl, al
mov al, bl
add rsp, 0x30
pop rbx
ret

Function at 0x14000cb58
Capabilities:
Create directory
Get common file path

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov ebx, edx
mov r9d, edx
lea rdx, [rsp + 0x20]
mov r8d, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000cbe6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r8, [rsp + 0x230]
mov r9d, 0x104
mov rcx, rax
mov edx, 0x2da
call qword [sym.imp.USER32.dll_LoadStringW]
lea r8, [rsp + 0x230]
lea rcx, [rsp + 0x20]
call fcn.1400114e0
lea rcx, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor r9d, r9d
lea rcx, [rsp + 0x20]
lea edx, [r9 + 1]
mov r8d, ebx
call fcn.14000c2bc
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.14002ad70
add rsp, 0x450
pop rbx
ret

Function at 0x14000cc08
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rcx
mov rdx, rcx
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, 2
jne 0x14000cc9d
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x14000cc9d
mov rcx, qword [rsp + 0x30]
mov byte [rsp + 0x38], al
xor eax, eax
mov qword [rsp + 0x39], rax
mov qword [rsp + 0x41], rax
mov qword [rsp + 0x49], rax
mov dword [rsp + 0x51], eax
mov byte [rsp + 0x55], al
lea rax, [rsp + 0x38]
lea rdx, [0x140003388]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x1e
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002ad70
add rsp, 0x60
pop rbx
ret
Function at 0x14000d858
Capabilities:
Delete registry value
Set registry value

Disassembly:
test edx, edx
jne 0x14000d90c
push rbx
sub rsp, 0x250
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebx, ebx
test ecx, ecx
je 0x14000d89d
lea r8, [0x140003648]
lea rdx, [0x140002ea0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
jmp 0x14000d8f4
lea rcx, [rsp + 0x30]
mov r8d, 0x26
call fcn.14000eec4
test al, al
je 0x14000d8f4
lea rcx, [rsp + 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x14000d8ba
add eax, eax
lea r8, [0x140003648]
lea rdx, [0x140002ea0]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov r9d, 1
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002ad70
add rsp, 0x250
pop rbx
ret
Function at 0x14000dd78
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rdi, rcx
mov rsi, rdx
mov ebx, 0x68
lea rcx, [rbp - 0x59]
xor edx, edx
mov r8d, ebx
mov dword [rbp - 0x79], Ordinal_91
call sub.msvcrt.dll_memset
xor eax, eax
xor r15d, r15d
or r14, 0xffffffffffffffff
mov qword [rbp - 0x71], rax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
mov dword [rbp - 0x59], ebx
mov word [rbp - 0x19], r15w
mov dword [rbp - 0x1d], 1
test rdi, rdi
je 0x14000de7e
mov qword [rsp + 0x30], r15
lea r9, [rbp + 0x17]
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x28], Ordinal_134
mov dword [rbp + 0x17], 0x18
mov qword [rbp + 0x1f], r15
mov dword [rbp + 0x27], 1
mov qword [rbp - 9], r14
mov qword [rbp + 7], r14
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp - 1], rax
cmp rax, r14
je 0x14000df0e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rbp - 1]
mov dword [rsp + 0x30], 2
lea r9, [rbp + 7]
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14000dedf
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
bts dword [rbp - 0x1d], 8
mov qword [rbp - 9], rax
lea rax, [rbp - 0x71]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x59]
mov rdx, rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
xor ecx, ecx
mov dword [rsp + 0x28], 0x10
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14000def1
mov rcx, qword [rbp - 0x71]
mov edx, 0x2bf20
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000df19
cmp eax, 0x102
jne 0x14000df2b
mov dword [rbp - 0x79], r15d
jmp 0x14000df34
mov rcx, qword [rbp - 1]
mov qword [rbp + 7], r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 1], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x79], eax
jmp 0x14000def1
mov rcx, qword [rbp - 0x71]
lea rdx, [rbp - 0x79]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x14000df34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x79], eax
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x69]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, r14
je 0x14000df82
mov rcx, qword [rbp - 1]
cmp rcx, r14
je 0x14000df60
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 1], r14
mov rcx, qword [rbp + 7]
cmp rcx, r14
je 0x14000df73
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 7], r14
mov rcx, qword [rbp - 9]
cmp rcx, r14
je 0x14000df82
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp - 0x79]
jmp 0x14000def7
Function at 0x14000df90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x9d0]
sub rsp, 0xad0
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rbp + 0x9c0], rax
mov rdi, qword [rcx]
xor ebx, ebx
jmp 0x14000e0e2
mov r9d, 0x32
lea r8, [rbp + 0x30]
lea rcx, [0x140003680]
mov edx, r9d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x14000e0e2
lea r8d, [rax + 0x62]
lea rcx, [rsp + 0x60]
xor edx, edx
call sub.msvcrt.dll_memset
xor eax, eax
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x30]
lea rdx, [0x1400036e8]
lea rcx, [rbp + 0x30]
mov r9d, 0x63
mov qword [rsp + 0x28], 0x13
mov qword [rsp + 0x20], rax
call qword [sym.imp.msvcrt.dll_swscanf_s]
cmp eax, 2
jne 0x14000e0e2
lea r9d, [rax + 9]
lea r8, [rsp + 0x30]
lea rcx, [0x1400036f8]
mov edx, r9d
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x14000e0e2
lea rdx, [0x140003710]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x14000e0e2
lea r9, [rsp + 0x60]
lea r8, [0x140003720]
lea rcx, [rbp + 0x1c0]
mov edx, 0x200
call fcn.140009684
test eax, eax
js 0x14000e0e2
lea rdx, [rbp + 0x5c0]
lea rcx, [rbp + 0x1c0]
mov r8d, 0x200
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 0x200
jae 0x14000e0d7
lea rdx, [rbp + 0x5c0]
xor ecx, ecx
call fcn.14000dd78
jmp 0x14000e0dc
mov eax, Ordinal_91
test eax, eax
jne 0x14000e0e2
inc ebx
lea rcx, [rbp + 0x30]
mov r8, rdi
mov edx, 0xc8
call qword [sym.imp.msvcrt.dll_fgetws]
test rax, rax
jne 0x14000dfc5
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_fclose]
mov eax, ebx
mov rcx, qword [rbp + 0x9c0]
xor rcx, rsp
call fcn.14002ad70
lea r11, [rsp + 0xad0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14000e668
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rbp
push rdi
push r15
mov rbp, rsp
sub rsp, 0x50
lea rax, [rbp + 0x30]
mov sil, dl
mov dil, cl
mov qword [r11 - 0x38], rax
lea rax, [0x14002eb70]
lea r8, [0x140003950]
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], 0
lea rdx, [0x140003960]
mov r9d, 0x18
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov r15d, 0x80070000
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000e869
lea rax, [rbp + 0x30]
lea r8, [0x140003950]
lea rdx, [0x1400039f0]
mov qword [rsp + 0x30], rax
lea rax, [0x14002eb74]
mov r9d, 0x18
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000e869
lea rax, [rbp + 0x30]
lea r8, [0x140003950]
lea rdx, [0x140003a80]
mov qword [rsp + 0x30], rax
lea rax, [0x14002eb78]
mov r9d, 0x18
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000e869
and qword [rbp - 8], 0
lea rax, [rbp - 8]
lea rdx, [0x140003b10]
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000e85f
mov rcx, qword [rbp - 8]
and dword [rbp + 0x30], 0
and dword [rbp - 0x10], 0
lea rax, [rbp + 0x38]
lea r9, [rbp - 0x10]
lea rdx, [0x140003b88]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x38], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000e85f
mov ecx, dword [rbp + 0x30]
test dil, dil
je 0x14000e816
mov eax, dword [0x14002eb70]
not eax
and ecx, eax
mov dword [rbp + 0x30], ecx
test sil, sil
je 0x14000e82c
mov eax, dword [0x14002eb78]
or eax, dword [0x14002eb74]
or ecx, eax
mov dword [rbp + 0x30], ecx
mov eax, dword [rbp + 0x38]
mov r9d, dword [rbp - 0x10]
mov rcx, qword [rbp - 8]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x30]
lea rdx, [0x140003b88]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, r15d
test eax, eax
cmovle ebx, eax
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r15
pop rdi
pop rbp
ret
Function at 0x14000ec6c
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x168]
sub rsp, 0x260
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rbp + 0x150], rax
and qword [rsp + 0x30], 0
mov dil, cl
mov sil, dl
lea rcx, [0x140003c08]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x14000
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov ebx, eax
test eax, eax
jne 0x14000ed5e
mov r8, qword [rsp + 0x30]
mov r14d, 0x104
lea r9, [0x140003cf8]
lea rcx, [rsp + 0x40]
mov edx, r14d
call fcn.140011294
mov ebx, eax
test eax, eax
jne 0x14000ed5e
lea r9, [0x1400026a0]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x40]
mov edx, r14d
call fcn.140011294
mov ebx, eax
test eax, eax
jne 0x14000ed5e
test dil, dil
je 0x14000ed37
lea r9, [0x140003c70]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x40]
mov edx, r14d
call fcn.140011294
mov ebx, eax
test eax, eax
jne 0x14000ed5e
lea r8, [rsp + 0x40]
mov rdx, r14
lea rcx, [rsp + 0x40]
lea r9, [0x140003c88]
test sil, sil
jne 0x14000ed57
lea r9, [0x140003c98]
call fcn.140011294
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000ed6e
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
jne 0x14000ed90
lea rcx, [rsp + 0x40]
call sub.SHLWAPI.dll_PathFileExistsW
test eax, eax
je 0x14000ed8e
lea rcx, [rsp + 0x40]
call fcn.14000eb18
mov ebx, eax
jmp 0x14000ed90
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14002ad70
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14000edc4
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x14002e008]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rcx, qword [0x140004e28]
xor r8d, r8d
lea r9, [rsp + 0x30]
lea edx, [r8 + 2]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.iertutil.dll_Ordinal_654]
mov ebx, eax
test eax, eax
js 0x14000eea3
lea rdx, [rsp + 0x40]
lea rcx, [0x140003ca8]
mov r8d, 0x104
mov ebx, 0x80004005
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000ee7d
lea rax, [0x140002040]
lea r9, [rsp + 0x40]
lea r8, [0x140003cc0]
lea rcx, [rsp + 0x250]
mov edx, 0x104
mov qword [rsp + 0x20], rax
call fcn.140009684
mov ebx, eax
test eax, eax
js 0x14000ee7d
mov rcx, qword [0x140004ce8]
lea r8, [rsp + 0x250]
call fcn.1400102f8
mov ebx, eax
test eax, eax
jns 0x14000eea3
mov rcx, qword [0x140004e28]
and dword [rsp + 0x30], 0
xor r8d, r8d
lea edx, [r8 + 2]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], 4
call qword [sym.imp.iertutil.dll_Ordinal_654]
mov eax, ebx
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14002ad70
add rsp, 0x470
pop rbx
ret