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

Disassembly:
push rdi
sub rsp, 0x890
mov qword [rsp + 0x880], 0xfffffffffffffffe
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x888], rax
xor eax, eax
mov word [rsp + 0x50], ax
lea rdi, [rsp + 0x52]
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
lea rax, str.Update
mov qword [rsp + 0x20], rax
lea r9, [0x1400371d8]
lea r8, [0x1400371e8]
lea rdx, str.software_s_s_s
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x850]
call fcn.1400313e0
nop
lea rcx, [rsp + 0x850]
call fcn.1400313a0
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x14001d4a2
mov dword [rsp + 0x878], 1
lea rcx, [rsp + 0x850]
call fcn.1400313c0
mov eax, dword [rsp + 0x878]
jmp 0x14001d568
mov dword [rsp + 0x858], 0
lea rdi, [rsp + 0x85c]
xor eax, eax
mov ecx, 4
rep stosb byte [rdi], al
mov dword [rsp + 0x874], 8
lea rcx, [rsp + 0x850]
call fcn.140031380
mov rcx, rax
lea rax, [rsp + 0x874]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x858]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, [0x140037220]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x44], eax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x858]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea rcx, [rsp + 0x860]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rdx, [rsp + 0x860]
lea rcx, [rsp + 0x30]
call fcn.14001d360
mov dword [rsp + 0x870], eax
mov eax, dword [rsp + 0x870]
mov dword [rsp + 0x87c], eax
lea rcx, [rsp + 0x850]
call fcn.1400313c0
mov eax, dword [rsp + 0x87c]
mov rcx, qword [rsp + 0x888]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x890
pop rdi
ret

Function at 0x14001d590
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [0x140037230]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x5a
jmp 0x14001d5c9
mov eax, dword [rsp + 0x30]
sub eax, 1
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x41
jle 0x14001d609
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x28], ax
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x14001d607
lea rcx, [rsp + 0x28]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r11, rax
mov rax, qword [rsp + 0x50]
mov qword [rax], r11
mov eax, 1
jmp 0x14001d60b
jmp 0x14001d5be
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x48
ret
Function at 0x14001d8f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
lea r9, [0x140037258]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.14001dd50
nop
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 4
lea rcx, [rsp + 0x38]
call fcn.14000a6a0
mov rcx, rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x140037268]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x38]
call fcn.14001de70
mov eax, dword [rsp + 0x48]
add rsp, 0x68
ret

Function at 0x14001dad0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x2c], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rdx, [rsp + 0x2c]
mov rcx, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
cmp dword [rsp + 0x2c], 3
jne 0x14001db35
mov dword [rsp + 0x28], 1
lea rdx, [0x14003721c]
mov rcx, qword [rsp + 0x40]
call fcn.14001dfc0
mov rdx, qword [rsp + 0x20]
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rsp + 0x40]
call fcn.14001dfc0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x14001db50
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x2e0
mov qword [rsp + 0x2c8], 0xfffffffffffffffe
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
call fcn.14001d3d0
test eax, eax
jne 0x14001db8a
mov eax, 1
jmp 0x14001dc96
call fcn.14001d990
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x240], 0x70
lea rdi, [rsp + 0x244]
xor eax, eax
mov ecx, 0x6c
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rsp + 0x2b8], rax
lea rdx, str...X86Update.exe
mov rcx, qword [rsp + 0x2b8]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x258], rdx
lea rcx, [rsp + 0x2b0]
call fcn.140002ff0
nop
mov r9d, dword [rsp + 0x20]
lea r8, [0x1400372b8]
lea rdx, [0x1400372c0]
lea rcx, [rsp + 0x2b0]
call fcn.140003010
lea rcx, [rsp + 0x2b0]
call fcn.14000a6a0
mov qword [rsp + 0x260], rax
lea rcx, [rsp + 0x2b0]
call fcn.14001dad0
mov dword [rsp + 0x270], 0
mov dword [rsp + 0x244], 0x400
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x14001dc77
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x2c0], eax
lea rcx, [rsp + 0x2b0]
call fcn.1400040d0
mov eax, dword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x2e0
pop rdi
ret
Function at 0x14001e1c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x60
mov qword [rsp + 0x58], 0xfffffffffffffffe
lea r9, [0x140037400]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.14001dd50
nop
mov dword [rsp + 0x48], 4
mov rbx, qword [rsp + 0x70]
add rbx, 0xa8
lea rcx, [rsp + 0x38]
call fcn.14000a6a0
mov rcx, rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x140037410]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea r9, [0x140037428]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.14001dd50
nop
mov dword [rsp + 0x48], 4
mov rbx, qword [rsp + 0x70]
add rbx, 0xac
lea rcx, [rsp + 0x40]
call fcn.14000a6a0
mov rcx, rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x140037448]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x48], 4
mov rbx, qword [rsp + 0x70]
add rbx, 0xa4
lea rcx, [rsp + 0x40]
call fcn.14000a6a0
mov rcx, rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x140037460]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, 0xffffffff
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.14001e5e0
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.14001de70
nop
lea rcx, [rsp + 0x38]
call fcn.14001de70
mov rax, qword [rsp + 0x50]
add rsp, 0x60
pop rbx
ret

Function at 0x14001e330
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x50
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov r8d, 0xffffffff
mov edx, 1
mov rcx, qword [rsp + 0x60]
call fcn.14001e5e0
lea r9, str.Mount
mov r8d, 3
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14001dd50
nop
mov rbx, qword [rsp + 0x60]
add rbx, 0xa8
lea rcx, [rsp + 0x30]
call fcn.14000a6a0
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbx
mov r9d, 4
xor r8d, r8d
lea rdx, str.OpenDrive
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea r9, str.MountMenuItems
mov r8d, 3
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14001dd50
nop
mov rbx, qword [rsp + 0x60]
add rbx, 0xac
lea rcx, [rsp + 0x38]
call fcn.14000a6a0
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbx
mov r9d, 4
xor r8d, r8d
lea rdx, str.Casscade
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x60]
add rbx, 0xa4
lea rcx, [rsp + 0x38]
call fcn.14000a6a0
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rbx
mov r9d, 4
xor r8d, r8d
lea rdx, str.IntegrateExplorer
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x40], 0
lea rcx, [rsp + 0x38]
call fcn.14001de70
nop
lea rcx, [rsp + 0x30]
call fcn.14001de70
mov eax, dword [rsp + 0x40]
add rsp, 0x50
pop rbx
ret
Function at 0x14001ee80
Capabilities:
Create process on windows
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x300
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
lea rax, str.D7B7CDDF_EF6B_4070_9478_2B37F70BE7AA
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
xor r9d, r9d
mov r8d, 4
xor edx, edx
mov rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14001eedf
xor eax, eax
jmp 0x14001f0fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001eefe
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001f0fb
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14001ef3c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001f0fb
mov r8d, 0x400
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.140023670
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x30], rdx
mov rax, qword [rsp + 0x310]
add rax, 0xa4
mov qword [rsp + 0x2e0], rax
mov rax, qword [rsp + 0x310]
add rax, 0xd4
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x2e8], 0
jmp 0x14001ef9f
mov eax, dword [rsp + 0x2e8]
add eax, 1
mov dword [rsp + 0x2e8], eax
cmp dword [rsp + 0x2e8], 0xc
jge 0x14001f01e
movsxd rdi, dword [rsp + 0x2e8]
movsxd rcx, dword [rsp + 0x2e8]
mov rdx, qword [rsp + 0x2e0]
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax + rcx*4]
mov eax, dword [rdx + rdi*4]
xor eax, ecx
test eax, eax
je 0x14001f019
movsxd rax, dword [rsp + 0x2e8]
lea rdx, str..iso
mov rdx, qword [rdx + rax*8]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
movsxd rdx, dword [rsp + 0x2e8]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x2e0]
mov eax, dword [rax + rdx*4]
mov dword [rcx + 0x10], eax
mov rax, qword [rsp + 0x30]
add rax, 0x14
mov qword [rsp + 0x30], rax
jmp 0x14001ef8e
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor edx, edx
mov word [rsp + 0x60], dx
lea rdi, [rsp + 0x62]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r8d, 0x70
xor edx, edx
lea rcx, [rsp + 0x270]
call fcn.140023670
mov dword [rsp + 0x270], 0x70
mov dword [rsp + 0x274], 0x40
mov qword [rsp + 0x278], 0
lea rax, str.runas
mov qword [rsp + 0x280], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x288], rax
lea rax, str._SetFileAssoc
mov qword [rsp + 0x290], rax
mov qword [rsp + 0x298], 0
mov dword [rsp + 0x2a0], 5
lea rcx, [rsp + 0x270]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, 0x1388
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x300
pop rdi
ret
Function at 0x140020a20
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x1088
call fcn.140031410
sub rsp, rax
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rax, qword [rsp + 0x1090]
cmp qword [rax], 0
jne 0x140020a5e
xor eax, eax
jmp 0x140020c36
mov dword [rsp + 0x1060], 0x800
lea r9, [rsp + 0x1060]
lea r8, [rsp + 0x860]
mov rdx, qword [rsp + 0x1098]
mov rcx, qword [rsp + 0x1090]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov dword [rsp + 0x850], eax
cmp dword [rsp + 0x850], 0
jne 0x140020ac6
lea rdx, [0x140037900]
lea rcx, [rsp + 0x860]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140020ac6
mov eax, 1
jmp 0x140020c36
lea r8, [rsp + 0x848]
mov rdx, qword [rsp + 0x1098]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x850], eax
cmp dword [rsp + 0x850], 0
je 0x140020b68
lea rcx, [0x140037938]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x20], eax
lea r9, [0x140037970]
mov r8d, 1
mov rdx, qword [rsp + 0x1098]
mov rcx, qword [rsp + 0x1090]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov dword [rsp + 0x850], eax
cmp dword [rsp + 0x850], 0
jne 0x140020b51
mov dword [rsp + 0x1064], 1
jmp 0x140020b5c
mov dword [rsp + 0x1064], 0
mov eax, dword [rsp + 0x1064]
jmp 0x140020c36
mov dword [rsp + 0x1060], 0x800
lea r9, [rsp + 0x1060]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, qword [rsp + 0x848]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov rcx, qword [rsp + 0x848]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [0x1400379a8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
mov qword [rsp + 0x840], rax
lea rax, [rsp + 0x40]
cmp qword [rsp + 0x840], rax
jne 0x140020bcb
xor eax, eax
jmp 0x140020c36
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x40]
mov r8d, 1
mov rdx, qword [rsp + 0x1098]
mov rcx, qword [rsp + 0x1090]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov dword [rsp + 0x850], eax
cmp dword [rsp + 0x850], 0
jne 0x140020c24
mov dword [rsp + 0x1068], 1
jmp 0x140020c2f
mov dword [rsp + 0x1068], 0
mov eax, dword [rsp + 0x1068]
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x1088
ret
Function at 0x140020e00
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
mov eax, 0x1298
call fcn.140031410
sub rsp, rax
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x1280], rax
mov r9, qword [rsp + 0x12a8]
lea r8, [0x140037a88]
lea rdx, [0x140037aa8]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x848]
mov rdx, qword [rsp + 0x12a8]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x850], eax
cmp dword [rsp + 0x850], 0
je 0x140020ea5
lea r8, [rsp + 0x848]
mov rdx, qword [rsp + 0x12a8]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x140020ea5
xor eax, eax
jmp 0x140021064
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x40]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x848]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x848]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x840]
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rsp + 0x850], eax
cmp dword [rsp + 0x850], 0
je 0x140020f17
xor eax, eax
jmp 0x140021064
mov rdx, qword [rsp + 0x12a8]
mov rcx, qword [rsp + 0x840]
call fcn.140020c60
mov rcx, qword [rsp + 0x840]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x12a8]
call fcn.140020990
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x14002104a
lea r9, str.DefaultIcon
lea r8, [rsp + 0x40]
lea rdx, [0x140037ad8]
lea rcx, [rsp + 0x860]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x1060]
lea rdx, [rsp + 0x860]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rsp + 0x850], eax
cmp dword [rsp + 0x850], 0
jne 0x14002104a
cmp qword [rsp + 0x12b0], 0
je 0x140020fcc
mov rdx, qword [rsp + 0x12b0]
lea rcx, [rsp + 0x1070]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x140020fe2
mov r8d, 0x104
lea rdx, [rsp + 0x1070]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov r9d, dword [rsp + 0x30]
lea r8, [rsp + 0x1070]
lea rdx, str._s__d
lea rcx, [rsp + 0x1070]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x1070]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x1070]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x1060]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x1060]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, qword [rsp + 0x12b0]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x12a0]
call fcn.1400210f0
mov rcx, qword [rsp + 0x1280]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x1298
ret
Function at 0x1400210f0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa78
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0xa68], rax
lea r9, [0x140037af8]
mov r8, qword [rsp + 0xa88]
lea rdx, [0x140037b20]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x1400211f1
cmp qword [rsp + 0xa90], 0
je 0x140021182
mov rdx, qword [rsp + 0xa90]
lea rcx, [rsp + 0x850]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x140021198
mov r8d, 0x104
lea rdx, [rsp + 0x850]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, str.__NewDriver___1_
lea rcx, [rsp + 0x850]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rcx, [rsp + 0x850]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x850]
mov r8d, 1
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov dword [rsp + 0x38], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x38], 0
jne 0x140021205
mov dword [rsp + 0xa60], 1
jmp 0x140021210
mov dword [rsp + 0xa60], 0
mov eax, dword [rsp + 0xa60]
mov rcx, qword [rsp + 0xa68]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0xa78
ret

Function at 0x140021280
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x78], 0xfffffffffffffffe
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x64], eax
mov dword [rsp + 0x50], 0
cmp dword [rsp + 0x64], 0
je 0x140021397
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x68]
call fcn.14000c070
nop
lea r8, str.HKEY_CURRENT_USER_
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140021dc0
lea r11, [rsp + 0x60]
mov qword [rsp + 0x40], r11
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0xa0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x64], 0
je 0x140021385
mov dword [rsp + 0x70], 0
lea rcx, [rsp + 0x68]
call fcn.1400040d0
mov eax, dword [rsp + 0x70]
jmp 0x1400213de
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x68]
call fcn.1400040d0
lea rdx, [0x140037c08]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [rsp + 0x64], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x64], 0
jne 0x1400213cc
mov dword [rsp + 0x80], 1
jmp 0x1400213d7
mov dword [rsp + 0x80], 0
mov eax, dword [rsp + 0x80]
add rsp, 0x98
ret
Function at 0x140021490
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x4b0
mov qword [rsp + 0x490], 0xfffffffffffffffe
mov rax, qword [0x140042dd0]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rcx, [rsp + 0x260]
call fcn.140002ff0
nop
mov rdx, qword [rsp + 0x4c0]
lea rcx, [rsp + 0x260]
call fcn.140021240
lea rcx, [rsp + 0x260]
call fcn.14000a6a0
mov rdx, rax
lea rax, [rsp + 0x258]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x268], eax
cmp dword [rsp + 0x268], 0
je 0x140021546
mov dword [rsp + 0x484], 0
lea rcx, [rsp + 0x260]
call fcn.1400040d0
mov eax, dword [rsp + 0x484]
jmp 0x140021651
xor eax, eax
mov word [rsp + 0x40], ax
lea rdi, [rsp + 0x42]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov dword [rsp + 0x480], 0x208
lea rax, [rsp + 0x480]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x250]
xor r8d, r8d
lea rdx, [0x140037c30]
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, [0x140037c40]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, qword [rsp + 0x4c0]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [rsp + 0x268], 0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400215ff
lea rdx, str.Progid
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x258]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x268], 0
jne 0x140021624
mov dword [rsp + 0x498], 1
jmp 0x14002162f
mov dword [rsp + 0x498], 0
mov eax, dword [rsp + 0x498]
mov dword [rsp + 0x488], eax
lea rcx, [rsp + 0x260]
call fcn.1400040d0
mov eax, dword [rsp + 0x488]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1400226f0
add rsp, 0x4b0
pop rdi
ret