joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007af0
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x460
mov rax, qword [0x140057130]
xor rax, rsp
mov qword [rsp + 0x450], rax
lea rcx, [rsp + 0x32]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call fcn.1400150f0
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.NVIDIA_TwinView_Window
lea rcx, str.NVIDIA_TwinView_Window
xor dil, dil
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140007c0c
lea rcx, [rsp + 0x242]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], bx
call fcn.1400150f0
lea rax, str.nViewUnload
lea r9, str.nView64.dll
lea r8, str._s__s
lea rcx, [rsp + 0x240]
mov edx, 0x208
mov qword [rsp + 0x20], rax
call fcn.140003b20
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x240]
lea r8, str.rundll32.exe
lea rdx, str.open
xor ecx, ecx
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rdx, str.NVIDIA_TwinView_Window
lea rcx, str.NVIDIA_TwinView_Window
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x140007bfe
mov ecx, 0x64
inc ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 0x64
jb 0x140007bd1
jmp 0x140007c01
mov dil, 1
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, dil
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400150c0
mov rbx, qword [rsp + 0x470]
add rsp, 0x460
pop rdi
ret

Function at 0x140007c40
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rdi, rdx
mov rbx, rcx
call fcn.140007d80
test al, al
jne 0x140007c90
xor eax, eax
lea rcx, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov r9d, 0x3cfe
mov r8d, 0x7f9
mov dword [rsp + 0x20], eax
call fcn.14000adc0
xor al, al
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
cmp qword [0x140059158], 0
jne 0x140007cd5
xor eax, eax
lea rcx, [rsp + 0x80]
xor edx, edx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov r9d, 0x3cfe
mov r8d, 0x4779
mov dword [rsp + 0x20], 0x40010
call fcn.14000adc0
xor al, al
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
lea r8, str.nwiz.exe
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
test rax, rax
je 0x140007c83
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140007d70
cmp dword [rdi + 0x10], 2
jne 0x140007d55
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov edx, 0xa72
call fcn.14000b140
lea rcx, str.32770
mov rdx, qword [rax + 8]
call qword [sym.imp.USER32.dll_FindWindowW]
lea rcx, [rsp + 0x40]
mov rdi, rax
call fcn.14000b700
test rdi, rdi
je 0x140007c83
mov rdx, rdi
mov rcx, rbx
call fcn.140008890
xor al, al
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [rbx]
mov edx, 0xbb8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor al, al
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140008890
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
mov ecx, eax
mov edx, edi
mov ebx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rsi
call qword [sym.imp.USER32.dll_BringWindowToTop]
xor r8d, r8d
mov edx, edi
mov ecx, ebx
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400104d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140057130]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x60]
mov ecx, 0x104
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rbx, [rdi + 0x4010]
cmp word [rbx], 0
jne 0x14001052d
mov r8d, 0x104
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], esi
lea r9, str._snw__s__d.log
lea rcx, [rsp + 0x60]
or r8, 0xffffffffffffffff
mov edx, 0x104
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.14001639c
lea r8, [0x140045928]
lea rdx, [rsp + 0x60]
lea rcx, [rdi + 0x4218]
call fcn.140016934
mov ebx, eax
test eax, eax
jne 0x1400105d3
call fcn.140010320
lea r9, str.Logger.cpp
lea r8, str.Logger::openLogFile
mov rcx, rax
lea rax, str.05:27:28
lea edx, [rbx + 3]
mov qword [rsp + 0x40], rax
lea rax, str.Jul__4_2018
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, str.logging_to_file__s__logger_build__s__s_
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x160
call fcn.140010a60
mov al, 1
jmp 0x140010692
xor eax, eax
mov r9d, 0x400
mov r8d, ebx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov qword [rdi + 0x4218], rax
lea rax, [rsp + 0x50]
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
call fcn.140010320
mov rcx, rax
mov rax, qword [rsp + 0x50]
lea r9, str.Logger.cpp
mov qword [rsp + 0x38], rax
lea rax, str.API_function_failed_with__d:__s
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea r8, str.Logger::openLogFile
mov edx, 1
mov dword [rsp + 0x20], 0x166
call fcn.140010a60
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call fcn.140010320
lea r9, str.Logger.cpp
mov rcx, rax
lea rax, [rsp + 0x60]
lea r8, str.Logger::openLogFile
mov qword [rsp + 0x30], rax
lea rax, str.failed_to_open_log_file__s_
mov edx, 2
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x167
call fcn.140010a60
xor al, al
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400150c0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140010f70
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x50
xor r14d, r14d
mov rsi, r8
lea ebp, [r14 + 1]
movzx ebx, r14w
dec edx
je 0x140010fb0
dec edx
je 0x140010fa9
dec edx
jne 0x140010fb3
lea ebx, [rbp + 3]
jmp 0x140010fb3
mov ebx, 2
jmp 0x140010fb3
movzx ebx, bp
lea rdx, str.nview
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x140010ffe
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], r14d
xor r8d, r8d
mov r9d, ebp
movzx edx, bx
mov rcx, rax
mov word [rsp + 0x28], bp
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140012740
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
xor r9d, r9d
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x140012860
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
sub rsp, 0x38
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x1400128a0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
add rsp, 0x38
ret

Function at 0x1400129c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov r9d, dword [0x140059778]
xor eax, eax
xor bl, bl
mov rdi, rdx
mov rsi, rcx
mov dword [rsp + 0x58], edx
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], eax
test r9d, r9d
jne 0x140012a30
mov dword [0x140059778], 0x20019
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140012a29
cmp dword [rsp + 0x50], 0
je 0x140012a29
mov r9d, dword [0x140059778]
bts r9d, 8
mov dword [0x140059778], r9d
jmp 0x140012a30
mov r9d, dword [0x140059778]
test rsi, rsi
je 0x140012b05
test rdi, rdi
je 0x140012b05
lea rax, [rsp + 0x60]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallNVIDIA_nView_Desktop_Manager
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012aa2
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea rdx, str.InstallLocation
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
jne 0x140012b05
mov r9d, dword [0x140059778]
lea rax, [rsp + 0x60]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallB2FE1952_0186_46C3_BAEC_A80AA35AC5B8_Display.NView
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140012b05
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea rdx, str.InstallLocation
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x60]
test eax, eax
sete bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400130d0
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x140057130]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor ebx, ebx
mov rdi, rcx
mov dword [rcx], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
lea edx, [rbx + 8]
mov rcx, rax
mov qword [rsp + 0x38], rbx
mov rsi, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140013133
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x140013246
mov ebx, eax
jmp 0x1400131f1
xor edx, edx
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x50]
lea ecx, [rdx + 0x1a]
mov dword [rsp + 0x34], 0x44
call qword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
je 0x14001311e
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
xor ecx, ecx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14001311e
cmp dword [rsp + 0x30], ebx
jne 0x1400131eb
mov rcx, qword [rsp + 0x38]
mov r9d, 8
lea rax, [rsp + 0x34]
lea r8, [rsp + 0x40]
lea edx, [r9 + 0xb]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400131c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add eax, 0xfffffae0
test eax, 0xfffffffd
je 0x1400131f1
test ecx, ecx
jg 0x1400131bd
mov ebx, ecx
jmp 0x1400131f1
movzx ebx, cx
or ebx, 0x80070000
jmp 0x1400131f1
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x14001311e
cmp dword [rsp + 0x30], ebx
je 0x1400131f1
mov dword [rdi], 1
test rsi, rsi
je 0x1400131ff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14001320f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001321f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400150c0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400131f1
Function at 0x140013260
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140057130]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor ebx, ebx
mov rsi, rcx
mov rbp, r8
mov dword [rsp + 0x50], edx
lea rcx, [rsp + 0x62]
mov r8d, 0x206
xor edx, edx
mov edi, ebx
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x60], bx
call fcn.1400150f0
lea edx, [rbx + 4]
mov r8, rbp
mov rcx, rsi
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x14001338a
nop word [rax + rax]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
je 0x14001330b
cmp eax, 0xea
jne 0x140013359
lea rax, [rsp + 0x48]
lea rdx, [rsp + 0x60]
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013359
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
mov r8, rbp
call fcn.140013260
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x140013384
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x208
inc edi
mov dword [rsp + 0x40], 0x104
call fcn.1400150f0
cmp ebx, 0xea
jne 0x14001338e
xor ebx, ebx
jmp 0x1400132d0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140013393
mov eax, 1
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400150c0
mov rbx, qword [rsp + 0x2b8]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14003e8fc
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov rax, qword [0x140057130]
xor rax, rsp
mov qword [rbp + 0x50], rax
lea rax, [rsp + 0x38]
mov rdi, rcx
lea rdx, str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14003ea03
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov esi, 0x104
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14003e9f4
cmp dword [rsp + 0x30], 2
mov byte [rbp + 0x43], bl
lea rcx, [rsp + 0x40]
jne 0x14003e9be
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
cmp eax, 0x103
setbe bl
jmp 0x14003e9f4
mov edx, ebx
sub rcx, rdi
lea rax, [rsi + 0x7ffffefa]
test rax, rax
je 0x14003e9e0
mov al, byte [rcx + rdi]
test al, al
je 0x14003e9e0
mov byte [rdi], al
inc rdi
dec rsi
jne 0x14003e9c3
test rsi, rsi
jne 0x14003e9ed
dec rdi
mov edx, 0x8007007a
test edx, edx
mov byte [rdi], bl
setns bl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14003ea05
xor eax, eax
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400150c0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14003f250
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x14003f313
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or rdx, 0xffffffffffffffff
mov ebp, eax
inc rdx
cmp word [rbx + rdx*2], si
jne 0x14003f284
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14003f316
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x14003f2cf
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x14003f2d3
test rax, rax
je 0x14003f313
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
or rax, 0xffffffffffffffff
mov edx, edi
inc rax
cmp word [rbx + rax*2], 0
jne 0x14003f304
cmp rdx, rax
jb 0x14003f2f0
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003f700
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
sub rsp, 0x40
mov rax, qword [0x140057130]
xor rax, rsp
mov qword [rsp + 0x38], rax
movdqa xmm0, xmmword [str.__p]
xor r12d, r12d
mov rsi, rcx
mov ebx, r12d
mov r14d, r12d
mov ebp, r12d
cmp dword [0x14005ab00], ebx
movdqu xmmword [rsp + 0x20], xmm0
jne 0x14003f7bd
lea edx, [r12 + 2]
mov r8b, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 1]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 0x20]
mov r8b, 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edx, [r12 + 0x23]
lea rcx, [0x14005ab00]
mov r8, rax
mov dword [0x14005ab00], 0x11c
mov dword [0x14005ab04], 6
mov dword [0x14005ab08], 1
mov word [0x14005ac14], r12w
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, r12d
test eax, eax
sete cl
mov dword [0x140058a08], ecx
jmp 0x14003f7c3
mov ecx, dword [0x140058a08]
test ecx, ecx
je 0x14003f7d1
mov eax, 1
jmp 0x14003f952
test rsi, rsi
je 0x14003f93e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x78], rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
test eax, eax
je 0x14003f939
mov edx, edi
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r14, rax
test rax, rax
je 0x14003f939
xor r9d, r9d
mov r8, rax
mov edx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp edi, eax
jbe 0x14003f939
mov rsi, r12
or rdi, 0xffffffffffffffff
nop word [rax + rax]
mov ecx, dword [rsp + rsi*4 + 0x20]
lea rdx, [0x14004b3b8]
call fcn.14003f100
mov rbx, rax
test rax, rax
je 0x14003f939
mov r8, rdi
nop
inc r8
cmp word [rax + r8*2], r12w
jne 0x14003f860
mov rdx, rax
mov rcx, r14
call fcn.140036224
mov ebp, r12d
test eax, eax
sete bpl
test ebp, ebp
jne 0x14003f939
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc rsi
mov rbx, r12
cmp rsi, 4
jl 0x14003f840
movups xmm0, xmmword [str.WinSxS_]
movzx eax, word [0x14004f178]
lea rcx, str._SystemRoot_
xor r8d, r8d
xor edx, edx
mov word [rsp + 0x30], ax
movups xmmword [rsp + 0x20], xmm0
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test eax, eax
je 0x14003f939
lea rdx, [rsi + 0x12]
lea ecx, [rbp + 0x40]
mov qword [rsp + 0x80], r15
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14003f931
lea rcx, str._SystemRoot_
mov r8d, esi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp esi, eax
jne 0x14003f931
lea r8, [rsp + 0x20]
lea rdx, [rsi + 0x12]
mov rcx, rbx
call fcn.14000f9b0
inc rdi
cmp word [rbx + rdi*2], r12w
jne 0x14003f910
mov r8, rdi
mov rdx, rbx
mov rcx, r14
call fcn.140036224
mov ebp, r12d
test eax, eax
sete bpl
mov r15, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400150c0
add rsp, 0x40
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004950
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp - 0x28], rcx
mov r14, qword [rdx]
add r9, r8
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x18], r9
mov word [rbp - 0x10], 0
mov dword [rbp - 8], 1
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x20]
call fcn.140006130
mov dword [rbp + 0x1c], 0x800
mov dword [rbp + 0x18], 0
movzx eax, byte [0x140038171]
mov ecx, 0x800
mov edx, 1
call fcn.140006530
test rax, rax
je 0x140004b30
mov rbx, rax
mov qword [rbp], 0x800
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rdi, qword [rbp - 0x40]
lea r12, [rbp + 0x1c]
lea r15, [rbp + 0x18]
mov rsi, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov r13, qword [rbp]
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x30], rax
sub r13, rax
nop word cs:[rax + rax]
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r15
call rsi
cmp eax, 0xea
jne 0x140004a4a
mov r8d, dword [rbp + 0x1c]
cmp r13, r8
jae 0x140004a10
mov rcx, rbp
mov rdx, qword [rbp - 0x30]
call fcn.140026a10
mov rbx, qword [rbp + 8]
jmp 0x1400049f6
movabs r14, 0x8000000000000000
test eax, eax
jne 0x140004a7b
mov eax, dword [rbp + 0x1c]
mov qword [rbp + 0x10], rax
mov eax, dword [rbp + 0x18]
cmp eax, 0xb
mov rsi, qword [rbp - 0x28]
jbe 0x140004b12
movabs rax, 0xde00000002
jmp 0x140004a87
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp - 0x28]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], r14
mov rdx, qword [rbp]
test rdx, rdx
je 0x140004aa6
mov r8d, 1
mov rcx, rbx
call fcn.140006540
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x140004ac0
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.140006540
cmp qword [rbp - 0x20], r14
jne 0x140004ad3
mov rax, qword [rbp - 0x18]
mov qword [rsi + 8], rax
mov qword [rsi], r14
jmp 0x140004afb
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.140009920
mov rcx, qword [rbp - 0x20]
movabs rax, 0x8000000000000000
cmp rcx, rax
je 0x140004afb
mov rdx, qword [rbp - 0x18]
call fcn.140004730
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x10], rcx
movups xmm0, xmmword [rbp]
movaps xmmword [rbp - 0x20], xmm0
mov byte [rbp - 8], al
mov rdx, qword [rbp - 0x48]
test rdx, rdx
jne 0x140004aaf
jmp 0x140004ac0
mov ecx, 1
mov edx, 0x800
call fcn.140027580
ud2
Function at 0x14000a260
Capabilities:
Parse pe header

Disassembly:
push rsi
push rdi
mov r8d, 0x100
mov eax, 1
cmp rdx, 0x40
jb 0x14000a362
test cl, 3
je 0x14000a287
mov r8d, 0x400
jmp 0x14000a362
movzx r9d, word [rcx]
cmp r9d, 0x5a4d
jne 0x14000a35c
mov r9d, dword [rcx + 0x3c]
test r9b, 3
jne 0x14000a27c
cmp r9d, 0x1000000
jbe 0x14000a2b6
mov r8d, 0x700
jmp 0x14000a362
lea r11, [r9 + 0x88]
cmp r11, rdx
ja 0x14000a362
cmp dword [rcx + r9], 0x4550
jne 0x14000a35c
movzx esi, word [rcx + r9 + 0x18]
cmp esi, 0x20b
je 0x14000a2ea
cmp esi, 0x10b
jne 0x14000a35c
mov edi, dword [rcx + r9 + 0x54]
cmp rdi, rdx
ja 0x14000a362
mov r10d, dword [rcx + r9 + 0x50]
cmp edi, r10d
ja 0x14000a2ab
movzx esi, si
cmp esi, 0x20b
jne 0x14000a368
mov esi, dword [rcx + r9 + 0x84]
cmp esi, 0x10
mov edi, 0x10
cmovb edi, esi
shl edi, 3
add r11, rdi
cmp r11, rdx
ja 0x14000a362
movzx r11d, word [rcx + r9 + 6]
cmp r11, 0x60
ja 0x14000a2ab
lea r11, [r11 + r11*4]
lea r11, [r9 + r11*8]
movzx ecx, word [rcx + r9 + 0x14]
add rcx, r11
add rcx, 0x18
cmp rcx, rdx
ja 0x14000a362
shl r10, 0x20
xor eax, eax
mov r8, r10
jmp 0x14000a362
mov r8d, 0x500
or rax, r8
pop rdi
pop rsi
ret
mov r8d, 0x600
jmp 0x14000a362