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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 + 0x18], r8
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rsi, r9
mov rbx, rdx
mov r14, rcx
xor r12d, r12d
test rdx, rdx
je 0x14003632a
lea rax, [r11 + 0x18]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x48], r12
lea r9, [r11 + 0x10]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003632a
mov ecx, dword [rsp + 0x78]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x1400362b2
cmp ecx, 7
jne 0x14003632a
mov eax, dword [rsp + 0x80]
shr eax, 1
inc eax
movsxd r15, eax
mov eax, 2
mul r15
mov rbp, 0xffffffffffffffff
cmovo rax, rbp
lea rdx, [0x1400650d6]
mov rcx, rax
call fcn.14000cd4c
mov rdi, rax
test rax, rax
je 0x14003632a
lea r8, [r15 + r15]
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
test eax, eax
je 0x140036345
call fcn.140002da0
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400363f0
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140036394
mov qword [rsp + 0x30], r12
lea r8, [rsp + 0x30]
mov rdx, rbx
mov rcx, qword [rsi]
call qword [sym.imp.OLEAUT32.dll_VarBstrCmp]
test eax, eax
js 0x1400363e5
mov rcx, qword [rsi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rax, qword [rsp + 0x30]
mov qword [rsi], rax
lea rdx, [0x140064ca0]
inc rbp
cmp word [rdx + rbp*2], r12w
jne 0x14003639b
mov r8d, ebp
mov rcx, rsi
call fcn.1400046e0
test eax, eax
js 0x140036401
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x1400363ca
mov rcx, rbx
mov rbx, r12
mov qword [rdx], rcx
mov rcx, rdi
call fcn.140002da0
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, 1
jmp 0x14003632c
mov ecx, eax
call fcn.1400312f0
nop
jmp 0x1400363ef
nop
mov ecx, 0x8007000e
call fcn.1400312f0
nop
jmp 0x140036400
nop
mov ecx, eax
call fcn.1400312f0
int3
Function at 0x140036874
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x60], rax
xor ebx, ebx
xor edx, edx
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], VarUI4FromDisp
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x44], 6
ja 0x1400368d3
jne 0x1400369aa
cmp dword [rsp + 0x48], 1
jb 0x1400369aa
and qword [rsp + 0x38], rbx
cmp byte [0x1400900b8], 0
jne 0x14003691c
lea rcx, str.shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x14003690c
lea rdx, str.GetCurrentProcessExplicitAppUserModelID
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400900b0], rax
jmp 0x140036913
mov rax, qword [0x1400900b0]
mov byte [0x1400900b8], 1
jmp 0x140036923
mov rax, qword [0x1400900b0]
test rax, rax
je 0x14003699a
lea rcx, [rsp + 0x38]
call rax
mov ebx, eax
test eax, eax
js 0x14003699f
and qword [rsp + 0x30], 0
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [0x140075198]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x14006fc08]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x140036988
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x38]
call qword [rax + 0x18]
mov ebx, eax
test eax, eax
js 0x140036988
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayAllocDescriptorEx]
mov ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14003699f
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
jmp 0x14003699f
mov ebx, 0x80004005
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x180]
add rsp, 0x170
pop rbp
ret
Function at 0x1400369e8
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
mov qword [rbp - 0x20], rdi
and dword [rbp - 0x18], edi
and qword [rbp - 0x10], rdi
lea rdx, str.SoftwareMicrosoftVsCommonConnectedUser
lea rcx, [rbp + 0x38]
call fcn.140002cec
lea rdx, str.ResetUserTokenStorage
lea rcx, [rbp + 0x30]
call fcn.140002cec
and qword [rbp + 0x28], rdi
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 2]
xor r8d, r8d
mov rdx, qword [rbp + 0x38]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140036a56
mov rdi, qword [rbp + 0x28]
mov qword [rbp - 0x20], rdi
and dword [rbp - 0x18], eax
test ebx, ebx
jne 0x140036a83
mov dword [rbp + 0x20], 1
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rbp + 0x30]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbp + 0x30]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140036aa5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
add eax, edi
test eax, eax
jg 0x140036ac4
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 0x140036ad3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rbx
pop rbp
ret
Function at 0x140038584
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
xor ebp, ebp
test rdx, rdx
jne 0x14003862d
mov ebx, ebp
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_VariantInit]
dec eax
mov edi, ebp
mov word [rbx + rax*2], bp
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
xor eax, eax
mov qword [rsp + 0x50], rax
mov eax, 0x414
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x28], 3
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x30], rbx
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x40], ax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov esi, eax
test eax, eax
je 0x140038609
mov ecx, reloc.OLEAUT32.dll_SetErrorInfo
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, 0xa
jl 0x1400385b6
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea r11, [rsp + 0x60]
test esi, esi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
sete al
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rcx, rdx
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
jne 0x1400385a5
mov ecx, 0x8007000e
call fcn.1400312f0
int3

Function at 0x140039780
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400397ef
cmp byte [rcx + 0x71], 0
je 0x1400397ef
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140039844
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140039809
sub eax, 1
je 0x14003980d
cmp eax, 2
jne 0x140039844
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14003983b
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140039844
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400397f1
xor al, al
jmp 0x1400397f1
Function at 0x14003d300
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rsi
sub rsp, 0x50
mov esi, r8d
xor ebx, ebx
mov qword [rax + 8], rbx
and qword [rax + 0x20], rbx
mov rcx, qword [rcx + 0x48]
lea r8, [rax + 0x20]
mov rcx, qword [rcx]
call fcn.1400045d8
cmp qword [rsp + 0x78], rbx
je 0x14003d3d3
and qword [rsp + 0x60], rbx
and qword [rsp + 0x40], rbx
lea rax, [rsp + 0x60]
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 + 0x78]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
cmove rbx, qword [rsp + 0x60]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x14003d3d3
mov dword [rsp + 0x60], esi
test rbx, rbx
jne 0x14003d39b
mov esi, 0x8000ffff
jmp 0x14003d3d8
mov r9d, 4
mov dword [rsp + 0x28], r9d
lea rax, [rsp + 0x60]
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 0x14003d3d8
mov esi, 0x80004005
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rbx, rbx
je 0x14003d3f1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rsi
ret
Function at 0x14003dd84
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 [0x14008d310]
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 0x14003ddd9
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
cmp byte [r14 + 0x1f8], dil
jne 0x14003df1d
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x14003df5e
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 0x14003de4c
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 0x14003df2b
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14003df2b
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14003de16
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x14003de6d
mov r8d, eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.140002a20
mov edx, 0x5c
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x14003defa
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
je 0x14003defa
lea edx, [rax + 1]
lea rcx, [rsp + 0x28]
call fcn.14003e5f0
lea rcx, [rsp + 0x28]
call fcn.14003e49c
mov rbx, qword [rsp + 0x28]
cmp dword [rbx - 0x10], 0x104
jge 0x14003defa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003defa
lea r8, [rsp + 0x20]
mov dl, 1
mov rcx, rbx
call qword [sym.imp.mscoree.dll_StrongNameSignatureVerificationEx]
test al, al
jne 0x14003defa
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 0x14003df1d
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.140001020
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3
Function at 0x14003f600
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rdx
lea rax, [rbp - 0x48]
xor ebx, ebx
mov qword [r11 - 0x78], rax
lea rdx, str.SoftwareMicrosoftVisualStudio17.0
mov qword [rbp - 0x48], rbx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
mov r15d, 0x80070000
test eax, eax
jne 0x14003f66c
mov rdi, qword [rbp - 0x48]
jmp 0x14003f67e
movzx eax, cx
mov rdi, rbx
or eax, r15d
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x14003f6da
lea rax, [rbp - 0x50]
mov dword [rbp - 0x50], 8
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x4c]
lea rax, [rbp - 0x40]
xor r8d, r8d
lea rdx, str.SetupMessageTimestamp
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test eax, eax
jne 0x14003f6bd
cmp dword [rbp - 0x4c], 0xb
je 0x14003f705
lea ecx, [rax + 0xd]
movzx eax, cx
or eax, r15d
test ecx, ecx
cmovle eax, ecx
test eax, eax
jns 0x14003f705
test rdi, rdi
je 0x14003f6da
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001020
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov eax, dword [rbp - 0x3c]
lea rdx, [rbp - 0x20]
mov dword [rbp - 0x34], eax
lea rcx, [rbp - 0x38]
mov eax, dword [rbp - 0x40]
mov dword [rbp - 0x38], eax
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x14003f748
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, r15d
test eax, eax
cmovle esi, eax
test rdi, rdi
je 0x14003f742
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
js 0x14003f6da
jmp 0x14003f756
test rdi, rdi
je 0x14003f756
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp - 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
jne 0x14003f77f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, r15d
test ecx, ecx
cmovle eax, ecx
jmp 0x14003f6dc
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x14003f767
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x28]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
setle bl
mov eax, ebx
jmp 0x14003f6dc
Function at 0x14003fd58
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov r11, r8
mov edi, edx
mov rbx, rcx
mov dword [rsp + 0x58], edx
movabs r9, 0xcbf29ce484222325
mov rdx, r9
xor ecx, ecx
movabs rsi, 0x100000001b3
movzx eax, byte [rsp + rcx + 0x58]
xor rdx, rax
imul rdx, rsi
inc rcx
cmp rcx, 4
jb 0x14003fd8c
mov rcx, qword [0x14008e460]
and rcx, rdx
add rcx, rcx
mov r8, qword [0x14008e448]
mov rax, qword [r8 + rcx*8 + 8]
mov rdx, qword [0x14008e438]
cmp rax, rdx
je 0x14003fddc
mov r10, qword [r8 + rcx*8]
jmp 0x14003fdd5
cmp rax, r10
je 0x14003fddc
mov rax, qword [rax + 8]
cmp edi, dword [rax + 0x10]
jne 0x14003fdcc
jmp 0x14003fdde
xor eax, eax
mov rcx, rdx
test rax, rax
cmovne rcx, rax
cmp rcx, rdx
je 0x14003fe06
mov rcx, qword [rcx + 0x18]
sub rcx, 0x18
call fcn.1400028e4
add rax, 0x18
mov qword [rbx], rax
jmp 0x14003feed
cmp r11, 0xbabe
jne 0x14003fe88
mov dword [rsp + 0x58], edi
xor ecx, ecx
movzx eax, byte [rsp + rcx + 0x58]
xor r9, rax
imul r9, rsi
inc rcx
cmp rcx, 4
jb 0x14003fe15
and r9, qword [0x14008e4a0]
add r9, r9
mov rcx, qword [0x14008e488]
mov rax, qword [rcx + r9*8 + 8]
mov rdx, qword [0x14008e478]
cmp rax, rdx
je 0x14003fe62
mov r8, qword [rcx + r9*8]
jmp 0x14003fe5b
cmp rax, r8
je 0x14003fe62
mov rax, qword [rax + 8]
cmp edi, dword [rax + 0x10]
jne 0x14003fe52
jmp 0x14003fe64
xor eax, eax
mov rcx, rdx
test rax, rax
cmovne rcx, rax
cmp rcx, rdx
jne 0x14003fded
lea rdx, [0x140075e88]
mov rcx, rbx
call fcn.140002cec
jmp 0x14003feed
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.14003fc84
nop
mov dword [rsp + 0x58], edi
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x28]
call fcn.140041880
mov rcx, qword [rax]
add rcx, 0x18
lea rdx, [rsp + 0x68]
call fcn.140006324
mov rcx, qword [rsp + 0x68]
add rcx, 0xffffffffffffffe8
call fcn.1400028e4
add rax, 0x18
mov qword [rbx], rax
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003feed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400403f8
Capabilities:
Get common file path
Get startup folder

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x50], rdx
call fcn.1400027c4
mov rcx, rax
test rax, rax
je 0x140040594
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1400404d7
lea rcx, [rbx - 0x18]
call fcn.1400028e4
add rax, 0x18
mov qword [rdi], rax
lea rdx, [rbx - 0x18]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400404b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140040574
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140040574
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140002cec
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140006324
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140040517
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
lea rcx, [rsp + 0x30]
call fcn.140009ab0
mov r14, qword [rsp + 0x30]
lea rcx, [r14 - 0x18]
call fcn.1400028e4
add rax, 0x18
mov qword [rdi], rax
mov eax, ebx
lock xadd dword [r14 - 8], eax
add eax, ebx
test eax, eax
jg 0x140040556
mov rcx, qword [r14 - 0x18]
mov rax, qword [rcx]
lea rdx, [r14 - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
mov ecx, ebx
lock xadd dword [rdx + 0x10], ecx
add ecx, ebx
test ecx, ecx
jg 0x140040574
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140001020
add rsp, 0x280
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400312f0
int3

Function at 0x1400405fc
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140040623
mov rcx, qword [rbx]
mov edx, 2
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_WerRegisterFile]
add rsp, 0x20
pop rbx
ret
Function at 0x1400408bc
Capabilities:
Get common file path
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x5a0]
sub rsp, 0x6a0
mov rax, qword [0x14008d310]
xor rax, rsp
mov qword [rbp + 0x590], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.1400408ac
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8, rdi
lea rdx, str._sPIDs_d
mov r9d, eax
lea rcx, [rbp + 0x380]
call fcn.14004154c
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor esi, esi
test eax, eax
js 0x140040ab7
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rsi
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x380]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140040a02
mov rcx, qword [rsp + 0x30]
lea r9d, [rsi + 4]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ShutdownReason
mov dword [rsp + 0x38], 2
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x1400409f7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 8
lea r9d, [rsi + 0xb]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CrashTime
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14003ff00
cmp al, 1
jne 0x140040ab7
mov r9d, 0x104
movzx eax, si
mov ecx, r9d
lea rdi, [rbp + 0x170]
rep stosw word [rdi], ax
lea rdi, [rsp + 0x60]
mov edx, r9d
lea rax, [rbp + 0x170]
sub rdi, rax
lea rcx, [rbp + 0x170]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140040a68
movzx eax, word [rdi + rcx]
test ax, ax
je 0x140040a68
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140040a46
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
lea rcx, [rsp + 0x60]
mov word [rax], si
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], si
jne 0x140040a7f
sub r9, rax
lea r8, str.debuggee.mdmp
mov rdx, r9
lea rcx, [rbp + 0x170]
call fcn.14001d958
mov edx, 2
lea rcx, [rbp + 0x170]
lea r8d, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_WerRegisterFile]
mov rcx, qword [rbp + 0x590]
xor rcx, rsp
call fcn.140001020
mov rbx, qword [rsp + 0x6d0]
add rsp, 0x6a0
pop rdi
pop rsi
pop rbp
ret