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

Disassembly:
push rdi
sub rsp, 0x6b0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x6c0], rbx
mov rax, qword [0x1400a5de0]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov rbx, qword [0x1400ae080]
test rbx, rbx
jne 0x14000870f
mov ecx, 0x310
call fcn.1400278b8
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140008706
call fcn.14002790c
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140008696
mov ecx, 0x80004005
call fcn.140007e00
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov word [rbx + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x14008a5b0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14008a5b0]
mov rcx, rbx
call fcn.140008260
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x26c]
mov word [rcx], 0
lea r8, [0x14008a5b8]
mov edx, 0x50
call fcn.140052920
nop
jmp 0x140008708
xor ebx, ebx
mov qword [0x1400ae080], rbx
lea rdx, str.Running_silent____Enable_SI...
mov rcx, rbx
call fcn.14000d860
mov edx, 0xa
lea rcx, [rsp + 0x50]
call fcn.140027e28
nop
mov word [rsp + 0x90], 0
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x92]
call fcn.140057420
mov edx, 0x104
lea rcx, [rsp + 0x90]
call fcn.140006520
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x90]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140008865
mov byte [rsp + 0x2a0], 0
xor edx, edx
mov r8d, 0x3ff
lea rcx, [rsp + 0x2a1]
call fcn.140057420
mov dword [rsp + 0x40], 0x400
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.SavedProdInstalled
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x140008865
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x50]
lea r8, str.SavedProdInstalled
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140015710
lea r8, str.SavedProdInstalled
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.1400154b0
lea r9, [rsp + 0x50]
lea r8, str.ProdInstalled
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x30]
call fcn.140015670
nop
lea rcx, [rsp + 0x50]
call fcn.140028028
lea eax, [rdi + 1]
jmp 0x14000889f
call fcn.14000d730
mov rcx, rax
lea r8, str.HKLMRegKeyExists_failed
mov edx, edi
call fcn.14000daa0
call fcn.14000d730
mov rcx, rax
lea rdx, str.Disable_SI_was_not_previously_executed.__Aborting...
call fcn.14000d860
nop
lea rcx, [rsp + 0x50]
call fcn.140028028
mov eax, 1
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.1400524a0
mov rbx, qword [rsp + 0x6c0]
add rsp, 0x6b0
pop rdi
ret
Function at 0x140008e70
Capabilities:
Query service status

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
xor esi, esi
mov rbx, qword [0x1400ae080]
test rbx, rbx
jne 0x140008f4f
mov ecx, 0x310
call fcn.1400278b8
mov rbx, rax
mov qword [rsp + 0x98], rax
test rax, rax
je 0x140008f45
call fcn.14002790c
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x140008ed8
mov ecx, 0x80004005
call fcn.140007e00
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov word [rbx + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x14008a5b0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14008a5b0]
mov rcx, rbx
call fcn.140008260
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x26c]
mov word [rcx], 0
lea r8, [0x14008a5b8]
mov edx, 0x50
call fcn.140052920
nop
jmp 0x140008f48
mov rbx, rsi
mov qword [0x1400ae080], rbx
lea r8, str.HPSIService
lea rdx, str.ServiceRunning__s_
mov rcx, rbx
call fcn.14000d860
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140008fa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14000d730
mov rcx, rax
lea r8, str.OpenSCManager_failed
mov edx, edi
call fcn.14000daa0
xor eax, eax
jmp 0x14000904c
mov r8d, 4
lea rdx, str.HPSIService
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140008fde
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14000d730
mov rcx, rax
lea r8, str.OpenService_failed
mov edx, edi
call fcn.14000daa0
jmp 0x140009041
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140009025
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14000d730
mov rcx, rax
lea r8, str.QueryServiceStatusEx_failed
mov edx, edi
call fcn.14000daa0
jmp 0x140009038
mov eax, dword [rsp + 0x3c]
cmp eax, 4
je 0x140009033
cmp eax, 2
jne 0x140009038
mov esi, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d860
Capabilities:
Print debug messages

Disassembly:
test rdx, rdx
je 0x14000da8f
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rsi
mov eax, 0x20a0
call fcn.14007a110
sub rsp, rax
mov rax, qword [0x1400a5de0]
xor rax, rsp
mov qword [rsp + 0x2070], rax
mov rsi, rcx
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x1ffe
mov qword [rsp + 0x2090], rbp
mov word [rsp + 0x70], 0
mov qword [rsp + 0x2088], rdi
call fcn.140057420
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsi + 0x26c]
lea r8, str._s__X_:
lea rcx, [rsp + 0x70]
mov edx, 0x1000
mov dword [rsp + 0x20], eax
call fcn.140052ea0
mov r8, qword [rsp + 0x20b8]
mov edx, 0x1000
movsxd rcx, eax
lea r9, [rsp + 0x20c0]
sub rdx, rcx
lea rcx, [rsp + rcx*2 + 0x70]
call fcn.140053ce0
lea r8, [0x14008a62c]
lea rcx, [rsp + 0x70]
mov edx, 0x1000
call fcn.1400539f0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsi + 0x64]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x14000d9f4
lea rcx, [rsi + 8]
mov qword [rsp + 0x2098], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [0x14008a5c8]
lea rdx, [rsi + 0x64]
lea rcx, [rsp + 0x60]
call fcn.1400549a0
test eax, eax
jne 0x14000d9e2
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5a]
movzx eax, word [rsp + 0x5c]
movzx edi, word [rsp + 0x58]
movzx r10d, word [rsp + 0x50]
movzx r9d, word [rsp + 0x56]
movzx r8d, word [rsp + 0x52]
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x60]
lea rdx, str.__2d__2d__4d__2d:_02d:_02d:_03d__
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r10d
call fcn.140054a10
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
lea rdx, [0x14008a5c0]
call fcn.140054b00
mov rcx, qword [rsp + 0x60]
call fcn.140054bd0
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x2098]
mov rbp, qword [rsp + 0x2090]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp rcx, 2
je 0x14000da50
lea rdx, [rsp + 0x70]
nop
cmp word [rdx], 0xa
jne 0x14000da2b
mov word [rdx], 0x20
or rcx, 0xffffffffffffffff
xor eax, eax
add r8d, 1
lea rdi, [rsp + 0x70]
add rdx, 2
repne scasw ax, word [rdi]
mov eax, r8d
not rcx
sub rcx, 3
cmp rax, rcx
jb 0x14000da20
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x2088]
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.1400524a0
add rsp, 0x20a0
pop rsi
ret 0
Function at 0x14000d869
Capabilities:
Print debug messages

Disassembly:
test rdx, rdx
je 0x14000da8f
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rsi
mov eax, 0x20a0
call fcn.14007a110
sub rsp, rax
mov rax, qword [0x1400a5de0]
xor rax, rsp
mov qword [rsp + 0x2070], rax
mov rsi, rcx
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x1ffe
mov qword [rsp + 0x2090], rbp
mov word [rsp + 0x70], 0
mov qword [rsp + 0x2088], rdi
call fcn.140057420
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsi + 0x26c]
lea r8, str._s__X_:
lea rcx, [rsp + 0x70]
mov edx, 0x1000
mov dword [rsp + 0x20], eax
call fcn.140052ea0
mov r8, qword [rsp + 0x20b8]
mov edx, 0x1000
movsxd rcx, eax
lea r9, [rsp + 0x20c0]
sub rdx, rcx
lea rcx, [rsp + rcx*2 + 0x70]
call fcn.140053ce0
lea r8, [0x14008a62c]
lea rcx, [rsp + 0x70]
mov edx, 0x1000
call fcn.1400539f0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsi + 0x64]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x14000d9f4
lea rcx, [rsi + 8]
mov qword [rsp + 0x2098], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [0x14008a5c8]
lea rdx, [rsi + 0x64]
lea rcx, [rsp + 0x60]
call fcn.1400549a0
test eax, eax
jne 0x14000d9e2
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5a]
movzx eax, word [rsp + 0x5c]
movzx edi, word [rsp + 0x58]
movzx r10d, word [rsp + 0x50]
movzx r9d, word [rsp + 0x56]
movzx r8d, word [rsp + 0x52]
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x60]
lea rdx, str.__2d__2d__4d__2d:_02d:_02d:_03d__
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r10d
call fcn.140054a10
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
lea rdx, [0x14008a5c0]
call fcn.140054b00
mov rcx, qword [rsp + 0x60]
call fcn.140054bd0
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x2098]
mov rbp, qword [rsp + 0x2090]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp rcx, 2
je 0x14000da50
lea rdx, [rsp + 0x70]
nop
cmp word [rdx], 0xa
jne 0x14000da2b
mov word [rdx], 0x20
or rcx, 0xffffffffffffffff
xor eax, eax
add r8d, 1
lea rdi, [rsp + 0x70]
add rdx, 2
repne scasw ax, word [rdi]
mov eax, r8d
not rcx
sub rcx, 3
cmp rax, rcx
jb 0x14000da20
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x2088]
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.1400524a0
add rsp, 0x20a0
pop rsi
ret 0
Function at 0x14000f730
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp di, bx
jne 0x14000f7c0
cmp di, ax
jne 0x14000f7c0
lea r8, [0x1400a7b20]
xor eax, eax
movzx edx, di
mov rcx, r8
nop
nop
cmp dword [rcx], edx
je 0x14000f7a3
add eax, 1
add rcx, 0x18
cmp eax, 0x26
jb 0x14000f780
mov ax, di
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, [rax + rax*2]
mov di, word [r8 + rcx*8 + 4]
mov ax, di
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r8, [0x1400a7b20]
xor eax, eax
movzx edx, si
mov rcx, r8
nop
cmp dword [rcx], edx
je 0x14000f7f3
add eax, 1
add rcx, 0x18
cmp eax, 0x26
jb 0x14000f7d0
mov ax, si
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov si, word [r8 + rcx*8 + 4]
mov ax, si
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140011440
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x280
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x2b0], rbx
mov rax, qword [0x1400a5de0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbp, r8
mov r12, rdx
mov r13, rcx
mov dword [rsp + 0x30], 0x100
xor esi, esi
mov rbx, qword [0x1400ae080]
test rbx, rbx
jne 0x140011546
mov ecx, 0x310
call fcn.1400278b8
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14001153c
call fcn.14002790c
mov rcx, rax
mov eax, esi
test rcx, rcx
setne al
test eax, eax
jne 0x1400114cf
mov ecx, 0x80004005
call fcn.140007e00
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov word [rbx + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x14008a5b0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14008a5b0]
mov rcx, rbx
call fcn.140008260
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x26c]
mov word [rcx], 0
lea r8, [0x14008a5b8]
mov edx, 0x50
call fcn.140052920
nop
jmp 0x14001153f
mov rbx, rsi
mov qword [0x1400ae080], rbx
mov r8, r12
lea rdx, str.GetPortnameViaDevInstID__s_
mov rcx, rbx
call fcn.14000d860
mov r9d, 0x100
lea r8, [rsp + 0x70]
mov rdx, r12
mov rcx, r13
call fcn.1400103e0
test eax, eax
je 0x140011663
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiCreateDeviceInfoList]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400115a4
call fcn.14000d730
mov rcx, rax
lea rdx, str.SetupDiCreateDeviceInfoList_call_returned_INVALID_HANDLE_VALUE
call fcn.14000d860
xor eax, eax
jmp 0x140011663
mov dword [rsp + 0x48], 0x20
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInfoW]
test eax, eax
je 0x140011658
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011658
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.PortName
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001164f
call fcn.14000d730
mov rcx, rax
mov r8, rbp
lea rdx, str.Found_PortName___s
call fcn.14000d860
mov esi, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, esi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400524a0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140015100
Capabilities:
Set registry value

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov r12, r9
mov rsi, r8
mov rbp, rdx
mov r13, rcx
mov rbx, qword [0x1400ae080]
test rbx, rbx
jne 0x1400151f4
mov ecx, 0x310
call fcn.1400278b8
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x1400151e8
call fcn.14002790c
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140015178
mov ecx, 0x80004005
call fcn.140007e00
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov word [rbx + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x14008a5b0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14008a5b0]
mov rcx, rbx
call fcn.140008260
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x26c]
mov word [rcx], 0
lea r8, [0x14008a5b8]
mov edx, 0x50
call fcn.140052920
nop
jmp 0x1400151ed
xor ecx, ecx
mov rbx, rcx
mov qword [0x1400ae080], rbx
mov r9, rsi
mov r8, rbp
lea rdx, str.SaveValueToHKLM__s__s
mov rcx, rbx
call fcn.14000d860
mov rdx, rbp
mov rcx, r13
call fcn.140014f80
mov rbx, rax
test rax, rax
je 0x140015252
mov ecx, dword [rsp + 0x80]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], r12
mov r9d, dword [rsp + 0x88]
xor r8d, r8d
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x140015270
call fcn.14000d730
mov rcx, rax
lea r8, str.SaveValueToHKLM__RegCreateKeyEx_failed
mov edx, 0x3f3
call fcn.14000daa0
mov eax, 0x3f3
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x1400152d0
Capabilities:
Query or enumerate registry value

Disassembly:
push r12
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov r12, r9
mov rsi, r8
mov rbp, rdx
xor edi, edi
mov qword [rsp + 0x38], rdi
mov rbx, qword [0x1400ae080]
test rbx, rbx
jne 0x1400153c3
mov ecx, 0x310
call fcn.1400278b8
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400153b9
call fcn.14002790c
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x14001534c
mov ecx, 0x80004005
call fcn.140007e00
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov word [rbx + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x14008a5b0]
add byte [rsi - 0xe], ah
scasd eax, dword [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14008a5b0]
mov rcx, rbx
call fcn.140008260
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x26c]
mov word [rcx], 0
lea r8, [0x14008a5b8]
mov edx, 0x50
call fcn.140052920
nop
jmp 0x1400153bc
mov rbx, rdi
mov qword [0x1400ae080], rbx
mov r9, rsi
mov r8, rbp
lea rdx, str.GetValueFromHKLM__s__s
mov rcx, rbx
call fcn.14000d860
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001543b
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x140015453
call fcn.14000d730
mov rcx, rax
lea r8, str.GetValueFromHKLM__RegOpenKeyEx_failed
mov edx, edi
call fcn.14000daa0
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
Function at 0x1400154b0
Capabilities:
Delete registry value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rdx
xor edi, edi
mov qword [rsp + 0x68], rdi
mov rbx, qword [0x1400ae080]
test rbx, rbx
jne 0x140015593
mov ecx, 0x310
call fcn.1400278b8
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140015589
call fcn.14002790c
mov rcx, rax
test rax, rax
setne dil
test edi, edi
jne 0x14001551c
mov ecx, 0x80004005
call fcn.140007e00
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx], rax
mov word [rbx + 0x64], 0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [0x14008a5b0]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x14008a5b0]
mov rcx, rbx
call fcn.140008260
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [rbx + 0x26c]
mov word [rcx], 0
lea r8, [0x14008a5b8]
mov edx, 0x50
call fcn.140052920
nop
jmp 0x14001558c
mov rbx, rdi
mov qword [0x1400ae080], rbx
lea r9, str.SavedProdInstalled
mov r8, rsi
lea rdx, str.DeleteValueFromHKLM__s__s
mov rcx, rbx
call fcn.14000d860
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400155f9
lea rdx, str.SavedProdInstalled
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x140015611
call fcn.14000d730
mov rcx, rax
lea r8, str.DeleteValueFromHKLM__RegOpenKeyEx_failed
mov edx, edi
call fcn.14000daa0
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140016300
Capabilities:
Check if file exists
Copy file
Move file
Set file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x450
mov rax, qword [0x1400a5de0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov rdi, qword [rsp + 0x490]
xor ebp, ebp
test rdx, rdx
mov rbx, r8
mov rsi, rcx
mov word [rsp + 0x230], bp
je 0x140016353
mov r8, rdx
lea rcx, [rsp + 0x230]
mov edx, 0x104
call fcn.140052920
lea rcx, [rsp + 0x230]
mov rdx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test rbx, rbx
mov word [rsp + 0x20], bp
je 0x140016380
lea rcx, [rsp + 0x20]
mov r8, rbx
mov edx, 0x104
call fcn.140052920
lea rcx, [rsp + 0x20]
mov rdx, rsi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
call fcn.1400164f0
test eax, eax
jg 0x1400163cc
call fcn.14000d730
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x230]
lea rdx, str.CopyFileVersionChk____s_is_not_newer_than__s
mov rcx, rax
call fcn.14000d860
xor eax, eax
jmp 0x1400164c1
call fcn.14000d730
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x230]
lea rdx, str.CopyFile____s_____s
mov rcx, rax
call fcn.14000d860
lea rcx, [rsp + 0x20]
mov edx, 0x20
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400164b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14000d730
lea r8, str.CopyFile___failed__gle___d_
mov r9d, ebx
mov edx, ebx
mov rcx, rax
call fcn.14000daa0
cmp ebx, 2
je 0x1400164e4
cmp ebx, 3
je 0x1400164e4
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400164b9
call fcn.14000d730
lea r8, [rsp + 0x230]
lea rdx, str.File_moved_to_REBOOT_temp_location.
mov rcx, rax
call fcn.14000d860
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x230]
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebp, 1
call fcn.14000d730
lea rdx, str._____REBOOT_NEEDED___
mov rcx, rax
call fcn.14000d860
or dword [rdi], ebp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1400524a0
mov rbx, qword [rsp + 0x488]
add rsp, 0x450
pop rdi
pop rsi
pop rbp
ret
mov eax, ebx
jmp 0x1400164c1