joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400018b0
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4e8
mov rax, qword [0x140050688]
xor rax, rsp
mov qword [rsp + 0x4d8], rax
mov edx, 0x104
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1400018ee
xor eax, eax
jmp 0x140001b1e
lea r8, [0x140037e50]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140001fe0
lea r9, [rsp + 0x50]
lea r8, [0x140037e58]
mov edx, 0x104
lea rcx, [rsp + 0x170]
call fcn.140002030
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x168], rax
cmp qword [rsp + 0x168], 0xffffffffffffffff
je 0x140001958
mov dword [rsp + 0x4d0], 1
jmp 0x140001963
mov dword [rsp + 0x4d0], 0
mov eax, dword [rsp + 0x4d0]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140001b0b
xor r9d, r9d
mov r8d, 2
mov rdx, qword [rsp + 0x4f0]
lea rcx, [rsp + 0x2ac]
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov qword [rsp + 0x160], rax
cmp qword [rsp + 0x160], 0xffffffffffffffff
je 0x140001aec
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x3c0]
mov qword [rsp + 0x20], rax
lea r9, [0x140037e68]
lea r8, [0x140037e78]
mov rdx, qword [rsp + 0x160]
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupGetLineTextA]
test eax, eax
je 0x140001ade
mov rdx, qword [rsp + 0x4f8]
lea rcx, [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140001ade
lea rcx, [0x140037e98]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x140037e80]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140052308], rax
cmp qword [0x140052308], 0
je 0x140001a5a
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0x2ac]
call qword [0x140052308]
jmp 0x140001ade
lea rax, [rsp + 0x2ac]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [0x140037ea4]
mov edx, 0x104
lea rcx, [rsp + 0x3c0]
call fcn.140002030
lea rcx, [rsp + 0x3c0]
call fcn.140001f60
lea rcx, [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
lea rcx, [rsp + 0x3c0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
lea rdx, [0x140037eac]
lea rcx, [rsp + 0x3c0]
call qword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
lea rcx, [rsp + 0x3c0]
call fcn.140001f60
lea rcx, [rsp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, qword [rsp + 0x160]
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
lea rdx, [rsp + 0x280]
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [rsp + 0x40], eax
jmp 0x14000196e
mov rcx, qword [rsp + 0x168]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov rcx, qword [rsp + 0x4d8]
xor rcx, rsp
call fcn.14001f810
add rsp, 0x4e8
ret
Function at 0x140001e20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x188
mov rax, qword [0x140050688]
xor rax, rsp
mov qword [rsp + 0x170], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x140001e7c
jmp 0x140001f41
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140001f36
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call fcn.140001e20
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [rsp + 0x40], eax
jmp 0x140001ec3
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14001f810
add rsp, 0x188
ret

Function at 0x140001f60
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x140001fa4
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x140001fa4
mov eax, dword [rsp + 0x20]
and eax, 0xfffffffe
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add rsp, 0x38
ret

Function at 0x1400025a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x168
mov rax, qword [0x140050688]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x140], 0
movzx eax, word [0x140037ee4]
mov word [rsp + 0x148], ax
mov eax, dword [rsp + 0x170]
mov dword [rsp + 0x14c], eax
cmp dword [rsp + 0x14c], 0
je 0x140002606
cmp dword [rsp + 0x14c], 1
je 0x140002618
jmp 0x14000262f
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x14000262f
mov r8, qword [rsp + 0x178]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.1400209c0
lea rax, [rsp + 0x30]
test rax, rax
je 0x14000267a
lea r8, [rsp + 0x148]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140020900
mov r8, qword [rsp + 0x180]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140020900
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14001f810
add rsp, 0x168
ret
Function at 0x140002e50
Capabilities:
Create thread
Hide graphical window

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x140050688]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov r9d, 0x104
lea r8, [rsp + 0x40]
mov edx, VariantTimeToDosDateTime
mov rcx, qword [0x1400522e8]
call qword [sym.imp.USER32.dll_LoadStringA]
lea r8, [rsp + 0x40]
mov edx, 0x3ea
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov edx, 0x3e8
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 5
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov qword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 0xf4
mov edx, 1
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edx, 1
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
mov edx, 2
mov rcx, qword [rsp + 0x170]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
lea rax, [rsp + 0x150]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x170]
lea r8, [fcn.140002f80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14001f810
add rsp, 0x168
ret
Function at 0x140002f80
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x168
mov rax, qword [0x140050688]
xor rax, rsp
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x150], rax
call fcn.140003df0
xor edx, edx
mov rcx, qword [rsp + 0x150]
call fcn.140004a10
mov edx, 0x3e8
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov r9d, 0x104
lea r8, [rsp + 0x40]
mov edx, 0xd
mov rcx, qword [0x1400522e8]
call qword [sym.imp.USER32.dll_LoadStringA]
lea r8, [rsp + 0x40]
mov edx, 0x3ea
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
lea r8, [0x14003810a]
mov edx, 0x3e9
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov edx, 2
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov edx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_EnableWindow]
mov r9d, 0x104
lea r8, [rsp + 0x40]
mov edx, 5
mov rcx, qword [0x1400522e8]
call qword [sym.imp.USER32.dll_LoadStringA]
mov edx, 2
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.USER32.dll_GetDlgItem]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetWindowTextA]
mov qword [rsp + 0x20], 1
xor r9d, r9d
mov r8d, 0xf4
mov edx, 1
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor r9d, r9d
mov r8d, 2
mov edx, 0x401
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.USER32.dll_SendMessageA]
mov qword [rsp + 0x20], 1
mov r9d, 1
mov r8d, 0xf4
mov edx, 2
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov edx, 2
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
mov edx, 1
mov rcx, qword [rsp + 0x150]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.140003450
xor eax, eax
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14001f810
add rsp, 0x168
ret
Function at 0x140003160
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xf8
mov rax, qword [0x140050688]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0x30], 0x94
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 1
je 0x1400031b5
cmp dword [rsp + 0xd0], 2
je 0x1400031c8
jmp 0x14000326e
mov rax, qword [rsp + 0x100]
mov dword [rax], 1
jmp 0x14000327c
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0xd4], eax
cmp dword [rsp + 0xd4], 4
je 0x1400031f3
cmp dword [rsp + 0xd4], 5
je 0x140003203
cmp dword [rsp + 0xd4], 6
je 0x14000324e
jmp 0x14000325e
mov rax, qword [rsp + 0x100]
mov dword [rax], 2
jmp 0x14000326c
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0xd8], eax
cmp dword [rsp + 0xd8], 0
je 0x14000322e
cmp dword [rsp + 0xd8], 0
jbe 0x14000324c
cmp dword [rsp + 0xd8], 2
jbe 0x14000323e
jmp 0x14000324c
mov rax, qword [rsp + 0x100]
mov dword [rax], 3
jmp 0x14000324c
mov rax, qword [rsp + 0x100]
mov dword [rax], 4
jmp 0x14000326c
mov rax, qword [rsp + 0x100]
mov dword [rax], 5
jmp 0x14000326c
mov rax, qword [rsp + 0x100]
mov dword [rax], 0
jmp 0x14000327c
mov rax, qword [rsp + 0x100]
mov dword [rax], 0
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.14001f810
add rsp, 0xf8
ret
Function at 0x1400032a0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x3a8
mov rax, qword [0x140050688]
xor rax, rsp
mov qword [rsp + 0x390], rax
mov qword [rsp + 0x268], 0
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x278], 0
mov qword [rsp + 0x270], 0
lea r8, str.NetApi32.Dll
xor edx, edx
xor ecx, ecx
call fcn.1400025a0
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140003318
cmp qword [rsp + 0x30], 0xffffffffffffffff
jne 0x14000331f
xor eax, eax
jmp 0x14000342f
lea rdx, str.NetUserGetInfo
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x278], rax
lea rdx, str.NetApiBufferFree
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x270], rax
cmp qword [rsp + 0x278], 0
jne 0x140003370
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x14000342f
mov dword [rsp + 0x38], 0x104
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x280]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov dword [rsp + 0x28], 0x104
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
lea r8, [rsp + 0x280]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r9, [rsp + 0x268]
mov r8d, 1
lea rdx, [rsp + 0x50]
xor ecx, ecx
call qword [rsp + 0x278]
mov dword [rsp + 0x260], eax
cmp dword [rsp + 0x260], 0
jne 0x140003401
mov rax, qword [rsp + 0x3b0]
mov rcx, qword [rsp + 0x268]
mov ecx, dword [rcx + 0x14]
mov dword [rax], ecx
mov dword [rsp + 0x3c], 1
jmp 0x140003409
mov dword [rsp + 0x3c], 0
mov rcx, qword [rsp + 0x268]
call qword [rsp + 0x270]
cmp qword [rsp + 0x30], 0
je 0x14000342b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.14001f810
add rsp, 0x3a8
ret
Function at 0x140003d20
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rsp + 0x28], eax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rsp + 0x24], eax
mov r8d, 1
mov edx, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.USER32.dll_AttachThreadInput]
xor r9d, r9d
lea r8, [rsp + 0x20]
xor edx, edx
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetActiveWindow]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [0x1400522f0], eax
mov ecx, dword [rsp + 0x20]
call fcn.140003fd0
xor r9d, r9d
mov r8, rax
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
xor r8d, r8d
mov edx, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [0x1400522f0]
add rsp, 0x38
ret
Function at 0x140003df0
Capabilities:
Check for time delay via gettickcount
Delete service
Query service status
Stop service

Disassembly:
sub rsp, 0xa8
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x38], 0
mov r8d, 1
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov qword [rsp + 0x90], rax
cmp qword [rsp + 0x90], 0
je 0x140003e4f
mov r8d, 0x10024
lea rdx, str.ApRunSvc
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140003f3a
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140003e8b
jmp 0x140003f3a
cmp dword [rsp + 0x6c], 1
jne 0x140003ea7
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
jmp 0x140003f3a
lea r8, [rsp + 0x48]
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140003f3a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x98], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x98]
cmp eax, 0x7d0
jae 0x140003f2b
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x140003f29
cmp dword [rsp + 0x6c], 1
jne 0x140003f29
jmp 0x140003f2b
jmp 0x140003ed4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rsp + 0x34], eax
cmp qword [rsp + 0x38], 0
je 0x140003f56
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0x90], 0
je 0x140003f7b
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x90], 0
add rsp, 0xa8
ret

Function at 0x140004410
Capabilities:
Set registry value

Disassembly:
mov word [rsp + 0x20], r9w
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov word [rsp + 0x30], 2
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000445b
xor eax, eax
jmp 0x1400044aa
movzx eax, word [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x14000449a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1400044aa
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x48
ret
Function at 0x1400044c0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov word [rsp + 0x30], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000450a
xor eax, eax
jmp 0x140004559
movzx eax, word [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x140004549
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140004559
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x48
ret

Function at 0x140004570
Capabilities:
Set registry value

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov word [rsp + 0x38], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400045ba
xor eax, eax
jmp 0x140004609
movzx eax, word [rsp + 0x38]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x1400045f9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140004609
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x48
ret

Function at 0x1400047b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140004833
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.1400044c0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x140004872
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x68]
jmp 0x140004881
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x34]
add rsp, 0x48
ret
Function at 0x140004970
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, 0x48
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x34], eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1400049bb
xor eax, eax
jmp 0x140004a0a
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1400049fa
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140004a0a
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add rsp, 0x48
ret
Function at 0x140009ca0
Capabilities:
Delete 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, 0x48
cmp dword [rsp + 0x70], 2
jne 0x140009cc6
mov eax, 1
jmp 0x140009d41
lea r8, [0x14003e590]
mov edx, 0x3e9
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0x3e8
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x405
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
add rsp, 0x48
ret

Function at 0x140009d50
Capabilities:
Delete registry key

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x58], 2
jne 0x140009d76
mov eax, 1
jmp 0x140009dc7
lea r8, [0x14003e5a8]
mov edx, 0x3e9
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetDlgItemTextA]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov dword [rsp + 0x20], eax
mov edx, 0x3e8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetDlgItem]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x405
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
add rsp, 0x38
ret