joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026f40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov rax, qword [0x1403542a0]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x78], 0
je 0x140026f89
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0x82]
test eax, eax
jne 0x140026f95
mov al, 1
jmp 0x1400271f1
mov dword [rsp + 0x60], 8
call fcn.140004b00
mov rcx, qword [rsp + 0xd0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
movzx edx, ax
mov rcx, qword [rsp + 0xd0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov word [rsp + 0x34], ax
call fcn.140004b00
mov word [rsp + 0x3c], ax
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x3c]
call fcn.140004b10
movzx eax, al
test eax, eax
je 0x140026ff1
xor al, al
jmp 0x1400271f1
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x98]
call fcn.140025640
nop
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x98]
call fcn.140027eb0
mov rcx, rax
call fcn.140026850
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x98]
call fcn.1400108b0
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x98]
call fcn.140027eb0
mov rcx, rax
call fcn.140026850
mov rcx, qword [rsp + 0xd0]
add rcx, 0x84
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov rdx, qword [rsp + 0x58]
mov r9, rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 0x78]
call qword [sym.imp.MSVCP110.dll_public:_int___cdecl_std::codecvt_unsigned_short_int__char__int_::unshift_int____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x1400270be
cmp dword [rsp + 0x38], 1
je 0x1400270cd
cmp dword [rsp + 0x38], 3
je 0x1400271ac
jmp 0x1400271c5
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x82], 0
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x98]
call fcn.140027eb0
mov rcx, rax
call fcn.140026850
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x140027161
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x98]
call fcn.140027eb0
mov rcx, rax
call fcn.140026850
mov rcx, qword [rsp + 0xd0]
mov r9, qword [rcx + 0x90]
mov r8, qword [rsp + 0x40]
mov edx, 1
mov rcx, rax
call qword [sym.imp.MSVCR110.dll_fwrite]
cmp qword [rsp + 0x40], rax
je 0x140027161
mov byte [rsp + 0x33], 0
lea rcx, [rsp + 0x98]
call fcn.140025bd0
movzx eax, byte [rsp + 0x33]
jmp 0x1400271f1
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0x82]
test eax, eax
jne 0x14002718d
mov byte [rsp + 0x32], 1
lea rcx, [rsp + 0x98]
call fcn.140025bd0
movzx eax, byte [rsp + 0x32]
jmp 0x1400271f1
cmp qword [rsp + 0x40], 0
jne 0x1400271aa
xor r8d, r8d
mov edx, 8
lea rcx, [rsp + 0x98]
call fcn.140027d50
jmp 0x1400271de
mov byte [rsp + 0x31], 1
lea rcx, [rsp + 0x98]
call fcn.140025bd0
movzx eax, byte [rsp + 0x31]
jmp 0x1400271f1
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x98]
call fcn.140025bd0
movzx eax, byte [rsp + 0x30]
jmp 0x1400271f1
jmp 0x140027007
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400f3d50
add rsp, 0xc8
ret
Function at 0x140040e00
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1403542a0]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x60]
call fcn.1400d2ae0
nop
lea rcx, [rsp + 0x40]
call fcn.140003440
nop
lea rdx, [0x140185d7c]
lea rcx, [rsp + 0x40]
call fcn.140041f20
mov rdx, qword [rsp + 0xa8]
lea rcx, [rsp + 0x40]
call fcn.14000c290
lea rdx, [0x140185d9c]
lea rcx, [rsp + 0x40]
call fcn.140041f20
lea rcx, [rsp + 0x60]
call fcn.1400108b0
test rax, rax
jbe 0x140040ecb
lea rcx, [rsp + 0x40]
call fcn.140004a60
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x60]
call fcn.140004a60
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x30]
mov r9, rcx
mov r8, rax
lea rdx, [0x14018c770]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x140040efc
lea rcx, [rsp + 0x40]
call fcn.140004a60
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, [0x14018c780]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
lea rcx, [rsp + 0x40]
call fcn.140003870
nop
lea rcx, [rsp + 0x60]
call fcn.140003870
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400f3d50
add rsp, 0x98
ret

Function at 0x140043b30
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, reloc.msi.dll_MsiDatabaseIsTablePersistentA
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x80
test eax, eax
jne 0x140043b63
mov ecx, 0xa1
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x80
test eax, eax
je 0x140043bd3
mov ecx, 0xa2
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x80
test eax, eax
jne 0x140043b8d
mov ecx, 0xa3
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x80
test eax, eax
je 0x140043bd3
call fcn.14006b0f0
mov rcx, rax
call fcn.140072990
movzx eax, al
test eax, eax
je 0x140043bd3
call fcn.14002bab0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140043bcf
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140043bcf
mov rcx, qword [rsp + 0x28]
call fcn.1400872d0
mov al, 1
jmp 0x140043bd5
xor al, al
add rsp, 0x38
ret
Function at 0x14006b060
Capabilities:
Open clipboard

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_OpenClipboard]
add rsp, 0x28
ret
Function at 0x14006ee90
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x258
mov rax, qword [0x1403542a0]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rax, qword [rsp + 0x260]
add rax, 0x188
mov rcx, rax
call qword [sym.imp.mfc110u.dll_Ordinal_13854]
mov rax, qword [rsp + 0x260]
add rax, 0x188
mov rcx, rax
call qword [sym.imp.mfc110u.dll_Ordinal_13860]
mov rax, qword [rsp + 0x260]
add rax, 0x188
mov rcx, rax
call qword [sym.imp.mfc110u.dll_Ordinal_5545]
test eax, eax
jg 0x14006ef47
mov r8d, reloc.mfc110u.dll_Ordinal_520
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.MSVCR110.dll_memset
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x26
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov rax, qword [rsp + 0x260]
add rax, 0x188
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.mfc110u.dll_Ordinal_1494]
mov rax, qword [rsp + 0x260]
add rax, 0x188
mov rdx, rax
mov rcx, qword [rsp + 0x268]
call qword [sym.imp.mfc110u.dll_Ordinal_1492]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400f3d50
add rsp, 0x258
ret
Function at 0x1400722b0
Capabilities:
Shutdown system

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x1403542a0]
xor rax, rsp
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x48]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140072320
mov rax, qword [rsp + 0x90]
add rax, 8
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x58], rcx
lea r9, str.Failed_to_open_the_process_token_n
xor r8d, r8d
lea rdx, [0x1401f8fb8]
mov rcx, rax
mov rax, qword [rsp + 0x58]
call qword [rax]
mov eax, reloc.WS2_32.dll_inet_ntoa
imul rax, rax, 0
lea rax, [rsp + rax + 0x64]
mov r8, rax
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov dword [rsp + 0x60], 1
mov eax, reloc.WS2_32.dll_inet_ntoa
imul rax, rax, 0
mov dword [rsp + rax + 0x6c], 2
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, 0x80010002
mov ecx, 2
call qword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x1400723d1
mov rax, qword [rsp + 0x90]
add rax, 8
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x38], rcx
lea r9, str.Reboot_Request_ACCEPTED_successfully_by_Operating_System_n
xor r8d, r8d
lea rdx, [0x1401f9118]
mov rcx, rax
mov rax, qword [rsp + 0x38]
call qword [rax]
jmp 0x140072474
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x90]
add rax, 8
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x40], rcx
lea r9, str.Reboot_Request_DENIED_by_Operating_System__n
xor r8d, r8d
lea rdx, [0x1401f91a8]
mov rcx, rax
mov rax, qword [rsp + 0x40]
call qword [rax]
mov rax, qword [rsp + 0x90]
add rax, 8
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x50], rcx
mov edx, dword [rsp + 0x30]
mov dword [rsp + 0x20], edx
lea r9, str.The_OS_return_value_for_reboot_request_is__d_n
xor r8d, r8d
lea rdx, [0x1401f91d8]
mov rcx, rax
mov rax, qword [rsp + 0x50]
call qword [rax]
call fcn.14006b0f0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2b2
mov rcx, rax
call fcn.14006f3d0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400f3d50
add rsp, 0x88
ret
Function at 0x140078fb0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1403542a0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov dword [rsp + 0x20], 0
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], reloc.mfc110u.dll_Ordinal_520
jae 0x140078fff
jmp 0x140079004
call fcn.1400f3e98
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rsp + rcx + 0x70], ax
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x140079075
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
mov r9d, dword [rsp + 0x24]
lea r8, str.Failed_to_get_Windows_directory__last_error__0x_x_n
mov edx, 1
lea rcx, [0x1401f9218]
call fcn.1400e3ba0
lea rdx, [0x1401f07ac]
mov rcx, qword [rsp + 0x2a8]
call fcn.140003390
nop
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x2a8]
jmp 0x1400790b4
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x38]
call fcn.1400cbd50
nop
mov rdx, qword [rsp + 0x2a8]
lea rcx, [rsp + 0x38]
call fcn.1400cc2d0
mov eax, dword [rsp + 0x20]
or eax, 1
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x38]
call fcn.1400cbd90
mov rax, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400f3d50
add rsp, 0x298
ret

Function at 0x1400790e0
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1403542a0]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rcx, qword [rsp + 0xb8]
call fcn.140004a60
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400cbd50
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.1400cc2d0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x48]
call fcn.140004a60
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rax, qword [rsp + 0x28]
cqo
and rdx, 0xfffff
add rax, rdx
sar rax, 0x14
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x48]
call fcn.140003870
nop
lea rcx, [rsp + 0x68]
call fcn.1400cbd90
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1400f3d50
add rsp, 0xa8
ret
Function at 0x14007b080
Capabilities:
Check internet connectivity via wininet

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov byte [rsp + 0x20], 0
xor r8d, r8d
mov edx, 1
lea rcx, [0x1401fb030]
call qword [sym.imp.WININET.dll_InternetCheckConnectionW]
test eax, eax
je 0x14007b0b7
mov byte [rsp + 0x21], 1
jmp 0x14007b0bc
mov byte [rsp + 0x21], 0
movzx eax, byte [rsp + 0x21]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14007b0e8
lea r8, str.InternetConnection_is_not_available
mov edx, 3
lea rcx, [0x1401fb110]
call fcn.1400e3ba0
jmp 0x14007b105
lea r8, str.InternetConnection_is_available
mov edx, 3
lea rcx, [0x1401fb1c0]
call fcn.1400e3ba0
mov byte [rsp + 0x20], 1
jmp 0x14007b10e
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x14007cdd0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x518
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov rax, qword [0x1403542a0]
xor rax, rsp
mov qword [rsp + 0x500], rax
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x80], 0xffffffff80000002
lea rdx, str.SOFTWAREATI_TechnologiesInstallPackages_
lea rcx, [rsp + 0xc8]
call fcn.140003390
mov qword [rsp + 0x98], rax
lea rcx, [rsp + 0xc8]
call fcn.140004a60
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007cf97
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x14007cf97
mov dword [rsp + 0x64], 0
jmp 0x14007ced9
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x7c]
cmp dword [rsp + 0x64], eax
jae 0x14007cf8b
mov eax, dword [rsp + 0x78]
inc eax
mov dword [rsp + 0x70], eax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
lea r8, [rsp + 0xf0]
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x88], eax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xa8]
call fcn.140003390
mov qword [rsp + 0x90], rax
lea rdx, str.W_06_1U03_000_006_023_001_00_25
lea rcx, [rsp + 0xa8]
call fcn.14003fd40
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x74], 0
jne 0x14007cf79
mov byte [rsp + 0x60], 1
lea rcx, [rsp + 0xa8]
call fcn.140003870
jmp 0x14007cecf
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0xc8]
call fcn.140003870
nop
jmp 0x14007cfa7
movzx eax, byte [rsp + 0x60]
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.1400f3d50
add rsp, 0x518
ret
Function at 0x14007dd10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x48]
call fcn.140004a60
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x14007dd52
mov byte [rsp + 0x20], 0
mov rcx, qword [rsp + 0x48]
call fcn.140003870
movzx eax, byte [rsp + 0x20]
jmp 0x14007dd87
mov eax, dword [rsp + 0x24]
and eax, 0x10
test eax, eax
je 0x14007dd73
mov byte [rsp + 0x21], 1
mov rcx, qword [rsp + 0x48]
call fcn.140003870
movzx eax, byte [rsp + 0x21]
jmp 0x14007dd87
mov byte [rsp + 0x22], 0
mov rcx, qword [rsp + 0x48]
call fcn.140003870
movzx eax, byte [rsp + 0x22]
add rsp, 0x38
ret
Function at 0x14007dda0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x318
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x1403542a0]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov byte [rsp + 0x30], 0
mov qword [rsp + 0x78], 0xffffffff80000002
lea rdx, [0x1401f6d38]
lea rcx, [rsp + 0xc8]
call fcn.140003390
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0xa8]
call fcn.140003440
mov qword [rsp + 0x70], rax
lea r8, str.Before_Open_Key_SOFTWARERAPTR
mov edx, 3
lea rcx, [0x1401f6f00]
call fcn.1400e3ba0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SOFTWARERaptr_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14007dff7
lea r8, str.Opened_Key_SOFTWARERAPTR
mov edx, 3
lea rcx, str.CInstallerFacade::LaunchRaptr
call fcn.1400e3ba0
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], reloc.mfc110u.dll_Ordinal_520
jae 0x14007de7d
jmp 0x14007de82
call fcn.1400f3e98
xor eax, eax
mov rcx, qword [rsp + 0x48]
mov word [rsp + rcx + 0xf0], ax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x38], reloc.mfc110u.dll_Ordinal_520
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.Install_Dir
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14007dfeb
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xa8]
call fcn.14000bbe0
lea rcx, [rsp + 0xa8]
call fcn.140004a60
mov r9, rax
lea r8, str.Raptr_Installed_path_is__s
mov edx, 3
lea rcx, [0x1401f7520]
call fcn.1400e3ba0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0xa8]
call fcn.140004a60
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.140003390
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x320]
call fcn.14007dd10
mov byte [rsp + 0x31], al
movzx eax, byte [rsp + 0x31]
test eax, eax
je 0x14007dfe9
lea rdx, str._raptrstub.exe
lea rcx, [rsp + 0xa8]
call fcn.140041f20
lea rcx, [rsp + 0xa8]
call fcn.140004a60
mov r9, rax
lea r8, str.Raptr_Executable_path_is__s
mov edx, 3
lea rcx, str.CInstallerFacade::LaunchURL
call fcn.1400e3ba0
lea rcx, [rsp + 0xa8]
call fcn.140004a60
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
lea r9, str.__newver
mov r8, rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [rsp + 0x30], 1
jmp 0x14007dff7
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0xa8]
call fcn.140003870
nop
lea rcx, [rsp + 0xc8]
call fcn.140003870
nop
jmp 0x14007e015
movzx eax, byte [rsp + 0x30]
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.1400f3d50
add rsp, 0x318
ret
Function at 0x140083b50
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 8], 0
je 0x140083bbb
mov rax, qword [rsp + 0x40]
add rax, 0x20
mov rcx, rax
call fcn.140004a60
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x48]
xor r8d, r8d
mov rdx, rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140083bbb
mov al, 1
jmp 0x140083c10
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x10], 0
je 0x140083c0e
mov rax, qword [rsp + 0x40]
add rax, 0x20
mov rcx, rax
call fcn.140004a60
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9, qword [rsp + 0x48]
xor r8d, r8d
mov rdx, rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140083c0e
mov al, 1
jmp 0x140083c10
xor al, al
add rsp, 0x38
ret

Function at 0x140083d60
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov byte [rsp + 0x30], 0
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x10], 0
je 0x140083dd5
mov rax, qword [rsp + 0x50]
add rax, 0x20
mov rcx, rax
call fcn.140004a60
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x58]
xor r8d, r8d
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140083dd5
movzx eax, byte [rsp + 0x30]
or eax, 1
mov byte [rsp + 0x30], al
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], 0
je 0x140083e2e
mov rax, qword [rsp + 0x50]
add rax, 0x20
mov rcx, rax
call fcn.140004a60
mov ecx, dword [rsp + 0x60]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x58]
xor r8d, r8d
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x140083e2e
movzx eax, byte [rsp + 0x30]
or eax, 1
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x140088af0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x8a8
mov rax, qword [0x1403542a0]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov dword [rsp + 0x70], 0
lea rax, [0x140086c00]
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x84], 0
mov rax, qword [rsp + 0x8b0]
mov rax, qword [rax + 0x188]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov rax, qword [0x140327ee8]
mov qword [rsp + 0xb0], rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_RegisterClassW]
movzx eax, ax
test eax, eax
jne 0x140088ba7
xor eax, eax
jmp 0x140088c9b
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x8b0]
mov rax, qword [rax + 0x188]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], gethostbyaddr
mov dword [rsp + 0x30], gethostbyaddr
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x80000000
xor r8d, r8d
mov rdx, qword [0x140327ee8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, qword [rsp + 0x8b0]
mov qword [rcx + 0x190], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x8b0]
cmp qword [rax + 0x190], 0
jne 0x140088c73
mov r9d, 0x3e8
lea r8, [rsp + 0xc0]
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x8b0]
call fcn.140086b60
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x140205654]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, qword [rsp + 0x8b0]
cmp qword [rax + 0x190], 0
je 0x140088c8f
mov dword [rsp + 0x60], 1
jmp 0x140088c97
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.1400f3d50
add rsp, 0x8a8
ret
Function at 0x14008be50
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov byte [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 6
ja case.default.0x14008be92
mov eax, dword [rsp + 0x24]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x8bf60]
add rax, rcx
jmp rax
lea r8, str.Setup_launched_from_unlnown_or_cant_determine__n
mov edx, 2
lea rcx, [0x14020dc78]
call fcn.1400e3ba0
jmp case.default.0x14008be92
lea r8, str.Setup_launched_from_invalid_root_path__n
mov edx, 2
lea rcx, [0x14020dce0]
call fcn.1400e3ba0
jmp case.default.0x14008be92
lea r8, str.Setup_launched_from_removable_media__n
mov edx, 2
lea rcx, [0x14020dcf8]
call fcn.1400e3ba0
jmp case.default.0x14008be92
lea r8, str.Setup_launched_from_local_disk__n
mov edx, 2
lea rcx, [0x14020dda8]
call fcn.1400e3ba0
jmp case.default.0x14008be92
mov byte [rsp + 0x20], 1
lea r8, str.Setup_launched_from_remote_or_network_location__n
mov edx, 2
lea rcx, [0x14020de28]
call fcn.1400e3ba0
jmp case.default.0x14008be92
lea r8, str.Setup_launched_from_CD_ROM__n
mov edx, 2
lea rcx, [0x14020de80]
call fcn.1400e3ba0
jmp case.default.0x14008be92
lea r8, str.Setup_launched_from_RAM_disk__n
mov edx, 2
lea rcx, [0x14020ded8]
call fcn.1400e3ba0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret