joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b560
Capabilities:
Create directory
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x680
mov qword [rsp + 0x668], 0xfffffffffffffffe
mov rax, qword [0x140042d30]
xor rax, rsp
mov qword [rsp + 0x670], rax
xor eax, eax
mov word [rsp + 0x450], ax
lea rdi, [rsp + 0x452]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x690]
add rcx, 8
mov r9d, 0x104
lea r8, [rsp + 0x450]
mov edx, 0x3f3
call fcn.14001c100
lea rdx, [rsp + 0x450]
lea rcx, str.KZMOUNT_INDEXPATH
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor edx, edx
mov word [rsp + 0x30], dx
lea rdi, [rsp + 0x32]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [0x140036c18]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor edx, edx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor edx, edx
mov word [rsp + 0x240], dx
lea rdi, [rsp + 0x242]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea r8, [rsp + 0x30]
mov edx, 0x104
lea rcx, [rsp + 0x240]
call fcn.140022aa8
lea rdx, str.KZMount.ini
lea rcx, [rsp + 0x240]
call fcn.140004740
lea r9, [rsp + 0x240]
lea r8, [rsp + 0x450]
lea rdx, str.IndexPath
lea rcx, [0x140036c78]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea rcx, [rsp + 0x660]
call fcn.140004c70
nop
mov rcx, qword [rsp + 0x690]
add rcx, 8
mov edx, 0x3fb
call fcn.140004ad0
mov r8d, eax
lea rdx, [0x140036c88]
lea rcx, [rsp + 0x660]
call fcn.140004c90
lea rcx, [rsp + 0x660]
call fcn.140002d50
lea r9, [rsp + 0x240]
mov r8, rax
lea rdx, str.AutoOpen
lea rcx, [0x140036ca8]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rcx, qword [rsp + 0x690]
add rcx, 8
mov edx, 0x414
call fcn.140004ad0
mov r8d, eax
lea rdx, [0x140036cb8]
lea rcx, [rsp + 0x660]
call fcn.140004c90
lea rcx, [rsp + 0x660]
call fcn.140002d50
lea r9, [rsp + 0x240]
mov r8, rax
lea rdx, str.DisableExitWarning
lea rcx, str.KZMount
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edx, dword [rsp + 0x6a0]
mov rcx, qword [rsp + 0x690]
call fcn.140002d20
nop
lea rcx, [rsp + 0x660]
call fcn.140005d50
mov rcx, qword [rsp + 0x670]
xor rcx, rsp
call fcn.140022b40
add rsp, 0x680
pop rdi
ret

Function at 0x14001b940
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x250
mov rax, qword [0x140042d30]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor eax, eax
mov word [rsp + 0x30], ax
lea rdi, [rsp + 0x32]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, str._APPDATA_KZMount
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rcx, qword [rsp + 0x260]
add rcx, 8
lea r8, [rsp + 0x30]
mov edx, 0x3f3
call fcn.14001ace0
mov rcx, qword [rsp + 0x260]
add rcx, 8
xor r8d, r8d
mov edx, 0x3fb
call fcn.140004aa0
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140022b40
add rsp, 0x250
pop rdi
ret
Function at 0x14001ba00
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov qword [rsp + 0x268], 0xfffffffffffffffe
mov rax, qword [0x140042d30]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rcx, [rsp + 0x30]
call fcn.1400181d0
nop
lea rcx, [rsp + 0x38]
call fcn.1400181d0
nop
mov edx, 0x27f8
lea rcx, [rsp + 0x30]
call fcn.140004770
mov edx, 0x27f9
lea rcx, [rsp + 0x38]
call fcn.140004770
lea rcx, [rsp + 0x30]
call fcn.140002d50
mov rdi, rax
lea rcx, [rsp + 0x38]
call fcn.140002d50
mov rcx, qword [rsp + 0x290]
add rcx, 8
mov r9d, 4
mov r8, rdi
mov rdx, rax
call fcn.140004b40
cmp eax, 6
jne 0x14001bb3b
xor eax, eax
mov word [rsp + 0x50], ax
lea rdi, [rsp + 0x52]
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x40], 0
call fcn.140006650
test eax, eax
jne 0x14001baf2
lea rax, [0x140036d20]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
lea r9, str._uninstalldrive
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rcx, qword [rsp + 0x290]
add rcx, 8
xor r9d, r9d
mov r8d, 2
mov edx, VarUI4FromDisp
call fcn.14000d960
mov qword [rsp + 0x260], 0
lea rcx, [rsp + 0x38]
call fcn.140004a00
nop
lea rcx, [rsp + 0x30]
call fcn.140004a00
mov rax, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140022b40
add rsp, 0x280
pop rdi
ret
Function at 0x14001d860
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x890
mov qword [rsp + 0x880], 0xfffffffffffffffe
mov rax, qword [0x140042d30]
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, [0x1400370a8]
lea r8, [0x1400370b8]
lea rdx, str.software_s_s_s
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x850]
call fcn.140031820
nop
lea rcx, [rsp + 0x850]
call fcn.1400317e0
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 0x14001d932
mov dword [rsp + 0x878], 1
lea rcx, [rsp + 0x850]
call fcn.140031800
mov eax, dword [rsp + 0x878]
jmp 0x14001d9f8
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.1400317c0
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, [0x1400370f0]
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.14001d7f0
mov dword [rsp + 0x870], eax
mov eax, dword [rsp + 0x870]
mov dword [rsp + 0x87c], eax
lea rcx, [rsp + 0x850]
call fcn.140031800
mov eax, dword [rsp + 0x87c]
mov rcx, qword [rsp + 0x888]
xor rcx, rsp
call fcn.140022b40
add rsp, 0x890
pop rdi
ret

Function at 0x14001da20
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140042d30]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [0x140037100]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0x5a
jmp 0x14001da59
mov eax, dword [rsp + 0x30]
sub eax, 1
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x41
jle 0x14001da99
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 0x14001da97
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 0x14001da9b
jmp 0x14001da4e
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140022b40
add rsp, 0x48
ret
Function at 0x14001dd80
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
lea r9, [0x140037128]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.14001e1e0
nop
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x44], 4
lea rcx, [rsp + 0x38]
call fcn.140002d50
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, [0x140037138]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x48], eax
lea rcx, [rsp + 0x38]
call fcn.14001e300
mov eax, dword [rsp + 0x48]
add rsp, 0x68
ret

Function at 0x14001df60
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 0x14001dfc5
mov dword [rsp + 0x28], 1
lea rdx, [0x1400370ec]
mov rcx, qword [rsp + 0x40]
call fcn.14001e450
mov rdx, qword [rsp + 0x20]
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rsp + 0x40]
call fcn.14001e450
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [rsp + 0x28]
add rsp, 0x38
ret

Function at 0x14001dfe0
Capabilities:
Create process on windows

Disassembly:
push rdi
sub rsp, 0x2e0
mov qword [rsp + 0x2c8], 0xfffffffffffffffe
mov rax, qword [0x140042d30]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
call fcn.14001d860
test eax, eax
jne 0x14001e01a
mov eax, 1
jmp 0x14001e126
call fcn.14001de20
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.140004c70
nop
mov r9d, dword [rsp + 0x20]
lea r8, [0x140037188]
lea rdx, [0x140037190]
lea rcx, [rsp + 0x2b0]
call fcn.140004c90
lea rcx, [rsp + 0x2b0]
call fcn.140002d50
mov qword [rsp + 0x260], rax
lea rcx, [rsp + 0x2b0]
call fcn.14001df60
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 0x14001e107
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x2c0], eax
lea rcx, [rsp + 0x2b0]
call fcn.140005d50
mov eax, dword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140022b40
add rsp, 0x2e0
pop rdi
ret
Function at 0x14001e650
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, [0x1400372d0]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.14001e1e0
nop
mov dword [rsp + 0x48], 4
mov rbx, qword [rsp + 0x70]
add rbx, 0xa8
lea rcx, [rsp + 0x38]
call fcn.140002d50
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, [0x1400372e0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea r9, [0x1400372f8]
mov r8d, 1
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.14001e1e0
nop
mov dword [rsp + 0x48], 4
mov rbx, qword [rsp + 0x70]
add rbx, 0xac
lea rcx, [rsp + 0x40]
call fcn.140002d50
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, [0x140037318]
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.140002d50
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, [0x140037330]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r8d, 0xffffffff
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.14001ea90
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x40]
call fcn.14001e300
nop
lea rcx, [rsp + 0x38]
call fcn.14001e300
mov rax, qword [rsp + 0x50]
add rsp, 0x60
pop rbx
ret

Function at 0x14001e7c0
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.14001ea90
lea r9, str.Mount
mov r8d, 3
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.14001e1e0
nop
mov rbx, qword [rsp + 0x60]
add rbx, 0xa8
lea rcx, [rsp + 0x30]
call fcn.140002d50
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.14001e1e0
nop
mov rbx, qword [rsp + 0x60]
add rbx, 0xac
lea rcx, [rsp + 0x38]
call fcn.140002d50
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.140002d50
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.14001e300
nop
lea rcx, [rsp + 0x30]
call fcn.14001e300
mov eax, dword [rsp + 0x40]
add rsp, 0x50
pop rbx
ret
Function at 0x14001f2c0
Capabilities:
Create process on windows
Read file via mapping

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x300
mov rax, qword [0x140042d30]
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 0x14001f31f
xor eax, eax
jmp 0x14001f53b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14001f33e
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001f53b
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 0x14001f37c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001f53b
mov r8d, 0x400
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.140023ac0
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 0x14001f3df
mov eax, dword [rsp + 0x2e8]
add eax, 1
mov dword [rsp + 0x2e8], eax
cmp dword [rsp + 0x2e8], 0xc
jge 0x14001f45e
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 0x14001f459
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 0x14001f3ce
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.140023ac0
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.140022b40
add rsp, 0x300
pop rdi
ret
Function at 0x140020e70
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.1400319e0
sub rsp, rax
mov rax, qword [0x140042d30]
xor rax, rsp
mov qword [rsp + 0x1070], rax
mov rax, qword [rsp + 0x1090]
cmp qword [rax], 0
jne 0x140020eae
xor eax, eax
jmp 0x140021086
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 0x140020f16
lea rdx, [0x1400377d0]
lea rcx, [rsp + 0x860]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140020f16
mov eax, 1
jmp 0x140021086
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 0x140020fb8
lea rcx, [0x140037808]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cdqe
shl rax, 1
mov dword [rsp + 0x20], eax
lea r9, [0x140037840]
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 0x140020fa1
mov dword [rsp + 0x1064], 1
jmp 0x140020fac
mov dword [rsp + 0x1064], 0
mov eax, dword [rsp + 0x1064]
jmp 0x140021086
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, [0x140037878]
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 0x14002101b
xor eax, eax
jmp 0x140021086
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 0x140021074
mov dword [rsp + 0x1068], 1
jmp 0x14002107f
mov dword [rsp + 0x1068], 0
mov eax, dword [rsp + 0x1068]
mov rcx, qword [rsp + 0x1070]
xor rcx, rsp
call fcn.140022b40
add rsp, 0x1088
ret
Function at 0x140021250
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.1400319e0
sub rsp, rax
mov rax, qword [0x140042d30]
xor rax, rsp
mov qword [rsp + 0x1280], rax
mov r9, qword [rsp + 0x12a8]
lea r8, [0x140037958]
lea rdx, [0x140037978]
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 0x1400212f5
lea r8, [rsp + 0x848]
mov rdx, qword [rsp + 0x12a8]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x1400212f5
xor eax, eax
jmp 0x1400214b4
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 0x140021367
xor eax, eax
jmp 0x1400214b4
mov rdx, qword [rsp + 0x12a8]
mov rcx, qword [rsp + 0x840]
call fcn.1400210b0
mov rcx, qword [rsp + 0x840]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x12a8]
call fcn.140020de0
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
je 0x14002149a
lea r9, str.DefaultIcon
lea r8, [rsp + 0x40]
lea rdx, [0x1400379a8]
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 0x14002149a
cmp qword [rsp + 0x12b0], 0
je 0x14002141c
mov rdx, qword [rsp + 0x12b0]
lea rcx, [rsp + 0x1070]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x140021432
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.140021540
mov rcx, qword [rsp + 0x1280]
xor rcx, rsp
call fcn.140022b40
add rsp, 0x1298
ret