joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015290
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rbx, rcx
xor ebp, ebp
mov dword [rax - 0x48], ebp
mov word [rax + 0x10], bp
xorps xmm0, xmm0
movdqu xmmword [rax - 0x38], xmm0
mov qword [rax - 0x28], rbp
lea r8, [rax + 0x10]
mov edx, 0x105
lea rcx, [rax - 0x38]
call fcn.140016f40
nop
mov rdi, qword [rsp + 0x30]
mov rdx, rdi
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
je 0x140015366
cmp esi, 0x104
jbe 0x14001531c
mov word [rsp + 0x78], bp
mov edx, esi
lea r8, [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.140016c60
mov rdi, qword [rsp + 0x30]
mov rdx, rdi
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, [0x140144318]
test rdi, rdi
cmovne rdx, rdi
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rbp
mov word [rbx], bp
cmp word [rdx], 0
jne 0x140015344
mov r8, rbp
jmp 0x14001535b
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140015350
mov rcx, rbx
call fcn.140007c60
nop
jmp 0x140015375
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rbp
mov word [rbx], bp
mov dword [rsp + 0x20], 1
test rdi, rdi
je 0x140015399
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbp
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400153b0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rsi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rax - 0x48], r14d
mov word [rax + 0x10], r14w
xorps xmm0, xmm0
movdqu xmmword [rax - 0x38], xmm0
mov qword [rax - 0x28], r14
lea r8, [rax + 0x10]
mov edx, 0x400
lea rcx, [rax - 0x38]
call fcn.140016f40
nop
cmp qword [rsi + 0x18], 8
jb 0x14001540c
mov rcx, qword [rsi]
jmp 0x14001540f
mov rcx, rsi
mov r8d, 0x400
mov rdi, qword [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebp, eax
test eax, eax
je 0x1400154b6
cmp ebp, 0x3ff
jbe 0x14001546a
mov word [rsp + 0x78], r14w
mov edx, ebp
lea r8, [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.140016c60
cmp qword [rsi + 0x18], 8
jb 0x140015456
mov rsi, qword [rsi]
mov r8d, ebp
mov rdi, qword [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rdx, [0x140144318]
test rdi, rdi
cmovne rdx, rdi
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
cmp word [rdx], 0
jne 0x140015493
mov r8, r14
jmp 0x1400154ab
or r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400154a0
mov rcx, rbx
call fcn.140007c60
nop
jmp 0x1400154c6
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r14
mov word [rbx], r14w
mov dword [rsp + 0x20], 1
test rdi, rdi
je 0x1400154ea
mov rcx, rdi
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov rax, rbx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140015510
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rdi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [rax - 0x48], ebp
cmp qword [rdx + 0x18], 8
jb 0x140015541
mov rcx, qword [rdx]
jmp 0x140015544
mov rcx, rdx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea esi, [rax + 1]
mov word [rsp + 0x78], bp
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbp
mov edx, esi
lea r8, [rsp + 0x78]
lea rcx, [rsp + 0x30]
call fcn.140016f40
nop
cmp qword [rdi + 0x18], 8
jb 0x140015581
mov rdi, qword [rdi]
mov r8d, esi
mov rsi, qword [rsp + 0x30]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rbp
mov word [rbx], bp
test eax, eax
je 0x1400155db
lea rdx, [0x140144318]
test rsi, rsi
cmovne rdx, rsi
cmp word [rdx], 0
jne 0x1400155c1
mov r8, rbp
jmp 0x1400155d0
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400155c5
mov rcx, rbx
call fcn.140007c60
nop
jmp 0x1400155db
mov dword [rsp + 0x20], 1
test rsi, rsi
je 0x1400155ff
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbp
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x140017530
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x198
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x180], rax
cmp dword [0x1401e1b64], 0
je 0x140017570
mov eax, dword [0x1401e1b60]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400f5ff0
add rsp, 0x198
ret
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x11c
call sub.MSVCR120.dll_memset
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rsp + 0x30]
movzx r9d, byte [rsp + 0x17a]
mov r8d, dword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, dword [rsp + 0x64]
mov word [rsp + 0x28], ax
movzx eax, word [rsp + 0x178]
mov word [rsp + 0x20], ax
call fcn.140017620
mov dword [0x1401e1b64], 1
mov dword [0x1401e1b60], eax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400f5ff0
add rsp, 0x198
ret
Function at 0x140026680
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
cmp qword [rdx + 0x18], 8
mov rdi, rdx
mov qword [rdx + 0x10], rbx
jb 0x1400266a4
mov rax, qword [rdx]
jmp 0x1400266a7
mov rax, rdx
mov word [rax], bx
lea r9, [rsp + 0x38]
xor r8d, r8d
mov edx, 0x4000
mov qword [rsp + 0x38], rbx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov esi, eax
test eax, eax
jns 0x14002671e
lea rcx, str.C:_btvsts3480private_softgrid_sharedinclude_sharedenv_utils.hpp
mov edx, MsiPreviewDialogW
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x1400266e4
inc rax
jmp 0x1400266eb
lea rax, str.C:_btvsts3480private_softgrid_sharedinclude_sharedenv_utils.hpp
lea rcx, [0x1401e26e8]
mov rdx, rax
call fcn.140005f30
movabs rcx, 0xc2500000000
shl rax, 0x34
or rax, rsi
or rax, rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rdx, qword [rsp + 0x38]
cmp word [rdx], bx
je 0x14002673a
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140026730
mov r8, rbx
mov rcx, rdi
call fcn.140007c60
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
movabs rax, 0x8000000000
add rsp, 0x20
pop rdi
ret
Function at 0x1400341a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x50
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov r14, r9
mov rdi, r8
mov r15, rdx
xor ecx, ecx
mov dword [rsp + 0x70], ecx
mov rbx, qword [rsp + 0x90]
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
mov qword [r11 - 0x30], rax
mov edx, 0xffffffff
cmp rax, rdx
jbe 0x140034204
mov dword [rsp + 0x30], 1
lea rdx, [0x1401d1a68]
lea rcx, [r11 - 0x38]
call sub.MSVCR120.dll__CxxThrowException
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x140034212
mov rcx, qword [rbx]
cmp qword [r8 + 0x18], 8
jb 0x14003421e
mov rdx, qword [r8]
jmp 0x140034221
mov rdx, r8
mov rax, qword [r15]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x140034259
mov rax, qword [rbx + 8]
cmp rax, qword [rbx]
jne 0x1400342a6
mov eax, dword [rsp + 0x70]
test eax, eax
jne 0x140034264
jmp 0x1400342aa
cmp eax, 0xea
jne 0x1400342a2
mov eax, dword [rsp + 0x70]
mov edx, eax
mov rcx, rbx
call fcn.140036110
mov rcx, qword [rbx]
cmp qword [rdi + 0x18], 8
jb 0x14003427b
mov rdi, qword [rdi]
mov rax, qword [r15]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
mov r9, r14
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1400342d7
mov eax, dword [rsp + 0x70]
mov rdx, qword [rsp + 0x98]
mov byte [rdx], 1
mov edx, eax
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
cmp rdx, rax
je 0x1400342cb
mov rcx, rbx
call fcn.140036110
movabs rax, 0x8000000000
jmp 0x14003431b
lea eax, [rsi - 2]
cmp eax, 1
jbe 0x1400342f8
call fcn.140033970
mov ecx, esi
or rax, rcx
movabs rcx, 0xf2100000000
or rax, rcx
jmp 0x14003431b
mov rax, qword [rbx]
mov qword [rbx + 8], rax
mov rax, qword [rsp + 0x98]
mov byte [rax], 0
movabs rax, 0x8000000000
jmp 0x14003431b
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x140034940
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r11, r8
mov r8, rdx
mov r10, qword [r9 + 8]
sub r10, qword [r9]
mov qword [rsp + 0x50], r10
mov eax, 0xffffffff
cmp r10, rax
jbe 0x140034988
mov dword [rsp + 0x30], 1
lea rdx, [0x1401d1a68]
lea rcx, [rsp + 0x30]
call sub.MSVCR120.dll__CxxThrowException
mov dword [rsp + 0x34], r10d
mov rcx, qword [r9]
cmp qword [r9 + 8], rcx
mov edx, 0
cmovne rdx, rcx
cmp qword [r11 + 0x18], 8
jb 0x1400349a7
mov r11, qword [r11]
mov rax, qword [r8]
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], rdx
mov r9d, dword [rsp + 0x70]
xor r8d, r8d
mov rdx, r11
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140034a17
mov edx, MsiPreviewDialogW
lea rcx, str...integration_store_utils.cpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x1400349eb
inc rax
jmp 0x1400349f2
lea rax, str...integration_store_utils.cpp
mov rdx, rax
lea rcx, [0x1401e26e8]
call fcn.140005f30
shl rax, 0x34
or rax, rbx
movabs rcx, 0x182100000000
or rax, rcx
jmp 0x140034a28
movabs rax, 0x8000000000
jmp 0x140034a28
add rsp, 0x40
pop rbx
ret

Function at 0x140034a30
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push r14
sub rsp, 0x50
mov qword [r11 - 0x18], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rbx, r9
mov rsi, r8
mov r14, rdx
mov rax, qword [r9 + 0x10]
inc rax
mov qword [r11 + 8], rax
mov ecx, 0xffffffff
cmp rax, rcx
jbe 0x140034a87
mov dword [rsp + 0x30], 1
lea rdx, [0x1401d1a68]
lea rcx, [r11 - 0x28]
call sub.MSVCR120.dll__CxxThrowException
mov dword [rsp + 0x38], eax
mov edi, eax
add rdi, rdi
mov qword [rsp + 0x48], rdi
mov rax, rdi
shr rax, 0x20
test eax, eax
je 0x140034ab9
mov dword [rsp + 0x34], 1
lea rdx, [0x1401d1a68]
lea rcx, [rsp + 0x34]
call sub.MSVCR120.dll__CxxThrowException
mov dword [rsp + 0x38], edi
xor cl, cl
cmp byte [rsp + 0x80], cl
je 0x140034ad3
mov rcx, rbx
call fcn.1400339b0
movzx ecx, al
cmp qword [rbx + 0x18], 8
jb 0x140034add
mov rbx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x140034ae7
mov rsi, qword [rsi]
mov rax, qword [r14]
xor r9d, r9d
test cl, cl
setne r9b
inc r9d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140034b5d
mov edx, MsiPreviewDialogW
lea rcx, str...integration_store_utils.cpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140034b31
inc rax
jmp 0x140034b38
lea rax, str...integration_store_utils.cpp
mov rdx, rax
lea rcx, [0x1401e26e8]
call fcn.140005f30
shl rax, 0x34
or rax, rbx
movabs rcx, 0x1b2100000000
or rax, rcx
jmp 0x140034b6e
movabs rax, 0x8000000000
jmp 0x140034b6e
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140034b90
Capabilities:
Delete registry value

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x88
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r14, r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov rdx, qword [rdx]
lea rcx, [rsp + 0x58]
call fcn.140059520
nop
mov rax, qword [rbx]
mov r8, qword [rax + 0x20]
lea rax, [0x1400594b0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x20], eax
mov r9, rdi
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.14005adc0
mov rdi, rax
cmp qword [rsp + 0x70], 8
jb 0x140034c26
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rsp + 0x70], 7
xor eax, eax
mov qword [rsp + 0x68], rax
mov word [rsp + 0x58], ax
mov rax, rdi
shr rax, 0x27
not eax
test al, 1
jne 0x140034cbf
cmp qword [r14 + 0x18], 8
jb 0x140034c52
mov r14, qword [r14]
mov rax, qword [rsp + 0x40]
mov rdx, r14
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov ebx, eax
test eax, eax
jne 0x140034c76
movabs rdi, 0x8000000000
jmp 0x140034cbf
mov edx, MsiPreviewDialogW
lea rcx, str...integration_store_utils.cpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140034c92
inc rax
jmp 0x140034c99
lea rax, str...integration_store_utils.cpp
mov rdx, rax
lea rcx, [0x1401e26e8]
call fcn.140005f30
shl rax, 0x34
mov rdi, rbx
or rdi, rax
movabs rax, 0x222100000000
or rdi, rax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140034ced
lock dec dword [rcx + 8]
jne 0x140034ced
mov rbx, qword [rsp + 0x48]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock dec dword [rbx + 0xc]
jne 0x140034ced
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx]
call qword [rdx + reloc.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov rax, rdi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400f5ff0
add rsp, 0x88
pop r14
pop rdi
pop rsi
pop rbx
ret

Function at 0x140034f70
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [r8 + 0x18], 8
mov r10d, r9d
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
jb 0x140034f9c
mov rdx, qword [r8]
jmp 0x140034f9f
mov rdx, rbx
mov rax, qword [rdi]
xor r9d, r9d
mov r8d, r10d
mov rcx, qword [rax + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebp, eax
test eax, eax
je 0x140035000
lea rcx, str...integration_store_utils.cpp
mov edx, MsiPreviewDialogW
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x140034fd4
inc rax
jmp 0x140034fdb
lea rax, str...integration_store_utils.cpp
lea rcx, [0x1401e26e8]
mov rdx, rax
call fcn.140005f30
movabs rcx, 0x242100000000
shl rax, 0x34
or rax, rbp
or rax, rcx
jmp 0x140035018
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.140059a40
movabs rax, 0x8000000000
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004ceb0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor ebx, ebx
mov dword [rbp - 0x19], ebx
mov qword [rbp + 0x3f], rbx
mov qword [rbp + 0x47], rbx
mov qword [rbp + 0x47], 7
mov qword [rbp + 0x3f], rbx
mov word [rbp + 0x2f], bx
movzx eax, word [str.PreserveUserIntegrationsOnLogin]
neg ax
sbb r8, r8
and r8d, 0x1f
lea rdx, str.PreserveUserIntegrationsOnLogin
lea rcx, [rbp + 0x2f]
call fcn.140007c60
nop
mov qword [rbp + 0x1f], rbx
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], rbx
mov word [rbp + 0xf], bx
movzx eax, word [str.SOFTWAREMicrosoftAppVClientIntegration]
neg ax
sbb r8, r8
and r8d, 0x2a
lea rdx, str.SOFTWAREMicrosoftAppVClientIntegration
lea rcx, [rbp + 0xf]
call fcn.140007c60
nop
mov dword [rbp - 0x19], ebx
lea rdx, [rbp + 0xf]
cmp qword [rbp + 0x27], 8
cmovae rdx, qword [rbp + 0xf]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14004d018
mov rdi, qword [rbp - 0x11]
lea ecx, [rbx + 0x18]
call qword [sym.imp.MSVCR120.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rcx, rax
mov qword [rbp - 1], rax
test rax, rax
je 0x14004cfce
lea rax, vtable.appv::utility::scope_guard_func.0
mov qword [rcx], rax
lea rax, vtable.appv::utility::scope_guard_func_impl_class_std::_Bind_1__long_int__long_int____cdecl__const__struct_HKEY______ptr64___struct_HKEY______ptr64____ptr64__.0
mov qword [rcx], rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rdi
jmp 0x14004cfd1
mov rcx, rbx
mov qword [rbp - 9], rcx
mov dword [rbp - 0x15], 4
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 8
cmovae rdx, qword [rbp + 0x2f]
lea rax, [rbp - 0x15]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
lea rcx, [rbp - 9]
call fcn.140014790
nop
cmp qword [rbp + 0x27], 8
jb 0x14004d029
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x27], 7
mov qword [rbp + 0x1f], rbx
mov word [rbp + 0xf], bx
cmp qword [rbp + 0x47], 8
jb 0x14004d04a
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x47], 7
mov qword [rbp + 0x3f], rbx
mov word [rbp + 0x2f], bx
test edi, edi
je 0x14004d062
xor al, al
jmp 0x14004d069
cmp dword [rbp - 0x19], 0
setne al
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.1400f5ff0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x14004f900
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
mov r9, qword [rdx + 0x10]
mov r8, rdx
jb 0x14004f91a
mov r8, qword [rdx]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
add r9, r9
je 0x14004f954
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
inc rdx
xor rcx, rax
imul rcx, r10
cmp rdx, r9
jb 0x14004f940
mov rax, rcx
mov edx, 0x1f31d
shr rax, 0x20
xor ecx, eax
btr ecx, 0x1f
call qword [sym.imp.MSVCR120.dll_ldiv]
mov qword [rsp + 0x30], rax
shr rax, 0x20
imul ecx, eax, 0x41a7
imul eax, dword [rsp + 0x30], 0xb14
sub ecx, eax
jns 0x14004f994
lea eax, [rcx + 0x7fffffff]
cdqe
add rsp, 0x28
ret
movsxd rax, ecx
add rsp, 0x28
ret
Function at 0x14005a5a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov r8, qword [rdx]
mov r10, rcx
cmp qword [r8 + 0x18], 8
mov r9, qword [r8 + 0x10]
jb 0x14005a5b4
mov r8, qword [r8]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
add r9, r9
je 0x14005a5e4
movabs r11, 0x100000001b3
nop
movzx eax, byte [r8 + rdx]
inc rdx
xor rcx, rax
imul rcx, r11
cmp rdx, r9
jb 0x14005a5d0
mov rdx, qword [r10 + 0x28]
mov rax, rcx
shr rax, 0x20
xor rax, rcx
and rax, rdx
cmp qword [r10 + 0x30], rax
ja 0x14005a608
shr rdx, 1
or rcx, 0xffffffffffffffff
sub rcx, rdx
add rax, rcx
ret
Function at 0x14006dc80
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbp, r9
mov rbx, r8
mov rsi, rdx
mov r14, rcx
movabs rdi, 0x8000000000
mov byte [rax - 0x30], 0
xor r15d, r15d
mov qword [rax - 0x28], r15
cmp byte [rax - 0x30], r15b
jne 0x14006ddf7
xor r8d, r8d
lea rcx, [rax - 0x28]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
setne cl
mov byte [rsp + 0x68], cl
test cl, cl
je 0x14006ddf7
cmp qword [rbx + 0x18], 8
jb 0x14006dcf6
mov rbx, qword [rbx]
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], r15
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14006dd86
lea edx, [rax + 0x5c]
lea rcx, str.c:_btvsts3480private_softgridclientintegration_notifier_process.hpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x14006dd51
inc rax
jmp 0x14006dd58
lea rax, str.c:_btvsts3480private_softgridclientintegration_notifier_process.hpp
mov rdx, rax
lea rcx, [0x1401e26e8]
call fcn.140005f30
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or rdi, rbx
movabs rax, 0x142100000000
or rdi, rax
cmp byte [rsp + 0x68], 0
je 0x14006de48
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test eax, eax
je 0x14006ddaa
mov byte [rsp + 0x68], 0
jmp 0x14006de48
mov edx, MsiPreviewDialogW
lea rcx, str.c:_btvsts3480private_softgridclientintegration_notifier_process.hpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x14006ddc6
inc rax
jmp 0x14006ddcd
lea rax, str.c:_btvsts3480private_softgridclientintegration_notifier_process.hpp
mov rdx, rax
lea rcx, [0x1401e26e8]
call fcn.140005f30
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
movabs rax, 0x152100000000
jmp 0x14006de42
mov edx, MsiPreviewDialogW
lea rcx, str.c:_btvsts3480private_softgridclientintegration_notifier_process.hpp
call qword [sym.imp.MSVCR120.dll_strrchr]
test rax, rax
je 0x14006de13
inc rax
jmp 0x14006de1a
lea rax, str.c:_btvsts3480private_softgridclientintegration_notifier_process.hpp
mov rdx, rax
lea rcx, [0x1401e26e8]
call fcn.140005f30
mov rbx, rax
shl rbx, 0x34
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
movabs rax, 0x142100000000
or rdi, rbx
or rdi, rax
cmp byte [rsp + 0x68], 0
je 0x14006de69
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
movzx ecx, byte [rsp + 0x68]
test eax, eax
cmovne ecx, r15d
mov byte [rsp + 0x68], cl
mov rax, rdi
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret