joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000311b0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xd00
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0xcf0], rax
mov ebx, 0x36
lea rcx, [rsp + 0x30]
lea rdx, [0x10001daa8]
mov r8, rbx
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x68]
lea rdx, [0x10001dae0]
lea r8d, [rbx - 0xc]
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x6d0]
lea rdx, [0x10001db10]
mov r8, rbx
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x706]
xor edx, edx
mov r8d, 0x1d2
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x8d8]
lea rdx, [0x10001db50]
lea r8d, [rbx + 0x10]
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x91e]
xor edx, edx
mov r8d, 0x1c2
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0xae0]
lea rdx, [0x10001dba0]
lea r8d, [rbx + 0x14]
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0xb2a]
xor edx, edx
mov r8d, 0x1be
call sub.msvcrt.dll_memset
mov esi, 0x105
lea rcx, [rsp + 0xa0]
mov edx, esi
call fcn.100030c88
test eax, eax
je 0x1000313d8
lea rax, [rsp + 0xa0]
test rax, rax
je 0x1000312bf
lea rcx, [rsp + 0xa0]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, [0x10001d750]
lea rcx, [rsp + 0xa0]
mov rdx, rsi
call fcn.10002e3d4
test eax, eax
js 0x1000313d8
lea rax, [rsp + 0x30]
lea r9, [rsp + 0xa0]
lea r8, [0x10001dbf0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea rcx, [rsp + 0x4c0]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call fcn.10002e570
test eax, eax
js 0x1000313d8
lea rax, [rsp + 0x4c0]
test rax, rax
je 0x100031335
lea rcx, [rsp + 0x4c0]
call fcn.1000400f0
jmp 0x100031337
xor eax, eax
test eax, eax
je 0x1000313d8
lea rbx, [rsp + 0x6d0]
mov edi, 3
lea rax, [rsp + 0x30]
lea r9, [rsp + 0xa0]
lea r8, [0x10001dbf0]
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x2b0]
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call fcn.10002e570
test eax, eax
js 0x1000313c7
lea rax, [rsp + 0x2b0]
test rax, rax
je 0x10003139a
lea rcx, [rsp + 0x2b0]
call fcn.1000400f0
jmp 0x10003139c
xor eax, eax
test eax, eax
je 0x1000313ae
lea rcx, [rsp + 0x2b0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x4c0]
lea rcx, [rsp + 0x2b0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateHardLinkW]
add rbx, 0x208
sub rdi, 1
jne 0x10003134c
mov rcx, qword [rsp + 0xcf0]
xor rcx, rsp
call fcn.1000475f0
lea r11, [rsp + 0xd00]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x100031404
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbp
push rdi
sub rsp, 0x410
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x400], rax
xor ebp, ebp
lea rax, [rsp + 0x50]
lea rdx, [0x10001dc00]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x2001b
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebp
jne 0x100031616
lea rcx, [rsp + 0x170]
lea rdx, [0x10001dca0]
lea r8d, [rbp + 0x7e]
call sub.msvcrt.dll_memcpy
mov edi, 0x82
lea rcx, [rsp + 0xe0]
lea rdx, [0x10001dd20]
mov r8, rdi
call sub.msvcrt.dll_memcpy
lea rcx, [rsp + 0x60]
lea rdx, [0x10001ddb0]
lea r8d, [rbp + 0x74]
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x50]
lea r9d, [rbp + 4]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], r9d
lea rdx, [0x10001de28]
xor r8d, r8d
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0xe0]
lea r9d, [rbp + 2]
lea rdx, [0x10001de40]
xor r8d, r8d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x170]
lea r9d, [rbp + 2]
lea rdx, [0x10001de60]
xor r8d, r8d
mov dword [rsp + 0x28], 0x7e
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
lea r9d, [rbp + 2]
lea rdx, [0x10001de70]
xor r8d, r8d
mov dword [rsp + 0x28], 0x74
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea r8, [0x10001de90]
lea rax, [rsp + 0x1f0]
sub r8, rax
mov edx, 0x105
lea rcx, [rsp + 0x1f0]
mov edi, ebp
lea rax, [rdx + 0x7ffffef9]
cmp rax, rbp
je 0x1000315ac
movzx eax, word [r8 + rcx]
cmp ax, bp
je 0x1000315ac
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x100031589
cmp rdx, rbp
jne 0x1000315ba
sub rcx, 2
mov edi, 0x8007007a
cmp edi, ebp
mov word [rcx], bp
jl 0x1000315c9
mov word [rsp + 0x23e], bp
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1f0]
repne scasw ax, word [rdi]
lea r9d, [rax + 7]
xor r8d, r8d
not rcx
lea edx, [rcx + rcx + 2]
lea rcx, [rsp + 0x1f0]
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x50]
lea rdx, [0x10001dee0]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.1000475f0
mov rbp, qword [rsp + 0x420]
add rsp, 0x410
pop rdi
ret
Function at 0x100031644
Capabilities:
Set registry value

Disassembly:
sub rsp, 0xe8
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0xd0], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rdx, [0x10001df00]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100031720
lea rcx, [rsp + 0x60]
lea rdx, [0x10001e000]
lea r8d, [rax + 0x66]
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0x50]
and dword [rsp + 0x58], 0
lea rax, [rsp + 0x58]
mov r9d, 4
lea rdx, [0x10001e068]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
lea rdx, [0x10001e080]
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x28], 0x66
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1000475f0
add rsp, 0xe8
ret
Function at 0x100031744
Capabilities:
Create process on windows
Delete registry key
Delete registry value
Modify service
Persist via run registry key
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x22b0
call fcn.100047c10
sub rsp, rax
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x22a0], rax
lea rdx, [0x10001df00]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
xor ebp, ebp
mov ebx, 1
cmp eax, ebp
lea rax, [rsp + 0x68]
lea rdx, [0x10001e090]
cmovne ebx, ebp
lea r9d, [rbp + 3]
mov rcx, 0xffffffff80000001
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x68], rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x1000317de
mov rcx, qword [rsp + 0x68]
lea rdx, [0x10001e0f0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x90]
cmp rax, rbp
je 0x100031861
lea rcx, [rsp + 0x90]
mov edx, 1
mov r8d, 0x104
call fcn.100040758
cmp eax, ebp
je 0x100031861
lea r8, [0x10001e108]
lea rcx, [rsp + 0x90]
mov edx, 0x208
call fcn.10002e4a0
cmp eax, ebp
jl 0x100031861
lea rcx, [rsp + 0x90]
call fcn.1000400f0
cmp eax, ebp
je 0x100031861
lea r9, [0x10001e128]
lea r8, [rsp + 0x90]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0xa
mov qword [rsp + 0x20], rbp
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, rbp
cmovne ebx, ebp
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
cmp rax, rbp
je 0x10003196f
lea rdx, [0x10001e138]
mov r8d, 0x27
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
cmp rax, rbp
je 0x100031966
lea r9, [rsp + 0x60]
lea rdx, [rsp + 0x2a0]
mov r8d, 0x2000
mov rcx, rax
mov dword [rsp + 0x60], ebp
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
cmp eax, ebp
je 0x1000318cd
cmp dword [rsp + 0x2a4], 2
jne 0x10003190a
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rbp
or edx, 0xffffffff
mov qword [rsp + 0x30], rbp
mov r8d, 3
mov rcx, rdi
mov r9d, edx
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
cmp eax, ebp
cmove ebx, ebp
xor edx, edx
lea rcx, [rsp + 0x74]
mov dword [rsp + 0x70], ebp
lea r8d, [rdx + 0x18]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp eax, ebp
je 0x100031945
test byte [rsp + 0x78], 1
je 0x10003195d
cmp dword [rsp + 0x74], 3
je 0x10003195d
cmp dword [rsp + 0x74], 1
je 0x10003195d
lea r8, [rsp + 0x70]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
cmp eax, ebp
cmove ebx, ebp
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x22a0]
xor rcx, rsp
call fcn.1000475f0
lea r11, [rsp + 0x22b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x100031a78
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0xa90
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0xa80], rax
lea rax, [rsp + 0x660]
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x801c
xor ecx, ecx
mov qword [rsp + 0x20], rax
xor ebx, ebx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x100031cbb
mov rcx, qword [0x10004ce70]
mov ebp, 0x104
lea r8, [rsp + 0x450]
lea edx, [rbp - 0x5f]
mov r9d, ebp
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x100031cbb
lea rax, [rsp + 0x450]
lea r9, [rsp + 0x660]
lea r8, [0x10001e1f0]
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov qword [rsp + 0x20], rax
call fcn.10002e570
test eax, eax
js 0x100031cbb
lea rax, [rsp + 0x30]
test rax, rax
je 0x100031b38
lea rcx, [rsp + 0x30]
call fcn.10003fff0
jmp 0x100031b3a
xor eax, eax
test eax, eax
jne 0x100031b7b
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100031b7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100031b7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x30]
lea rdx, [0x10001e200]
mov r9d, eax
mov ecx, 2
call fcn.10004575c
lea rax, [rsp + 0x30]
test rax, rax
je 0x100031b91
lea rcx, [rsp + 0x30]
call fcn.10003fff0
jmp 0x100031b93
xor eax, eax
test eax, eax
je 0x100031cbb
lea r9, [rsp + 0x30]
lea r8, [0x10001e238]
lea rcx, [rsp + 0x240]
mov rdx, rbp
call fcn.10002e570
test eax, eax
js 0x100031cbb
lea rcx, [rsp + 0x240]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100031c07
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100031c07
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r8, [rsp + 0x240]
lea rdx, [0x10001e2c0]
mov r9d, eax
mov ecx, 4
call fcn.10004575c
jmp 0x100031cbb
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
lea rdx, [rsp + 0x870]
xor r9d, r9d
mov ecx, eax
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
je 0x100031c5d
lea rcx, [rsp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, [rsp + 0x870]
lea rcx, [rsp + 0x240]
mov rdx, rbp
call fcn.10002e3d4
lea rcx, [rsp + 0x240]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r9, [rsp + 0x240]
lea r8, [0x10001e260]
mov rdx, rbp
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.10002e570
test eax, eax
js 0x100031cbb
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test eax, eax
jne 0x100031cbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100031cbb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x10001e270]
lea ecx, [rbx + 4]
mov r8d, eax
call fcn.10004575c
mov eax, ebx
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.1000475f0
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1000327c8
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x460], rax
and qword [rsp + 0x30], 0
mov rbp, r8
mov rsi, rdx
mov rbx, rcx
call fcn.100037238
mov edi, eax
cmp eax, 0x40
je 0x10003280d
cmp eax, 0x20
jne 0x100032932
lea rax, [rsp + 0x30]
mov r9d, 3
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movsxd rbx, eax
test eax, eax
jne 0x10003291b
cmp edi, 0x40
mov edi, 0x208
lea rcx, [rsp + 0x40]
mov rdx, rdi
lea r8, [0x10001e9a0]
je 0x100032857
lea r8, [0x10001ea10]
call fcn.10002e35c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x250]
lea r9, [rsp + 0x3c]
xor r8d, r8d
mov rdx, rbp
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000328cf
lea rdx, [0x10001ea80]
lea rcx, [rsp + 0x250]
call qword [sym.imp.msvcrt.dll_wcsstr]
test rax, rax
je 0x1000328cf
add rax, 8
mov ecx, 0x22
jmp 0x1000328ba
add rax, 2
cmp cx, word [rax]
je 0x1000328b6
lea rcx, [rsp + 0x40]
mov r8, rax
mov rdx, rdi
call fcn.10002e4a0
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasw ax, word [rdi]
mov r9d, 2
xor r8d, r8d
not rcx
mov rdx, rbp
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
movsxd rbx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x100032932
lea rdx, [0x10001ea90]
mov r9, rbx
mov r8, rsi
mov ecx, 2
call fcn.10004575c
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1000475f0
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x100032c78
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rsi
push rdi
sub rsp, 0x6a0
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x690], rax
and qword [rsp + 0x40], 0
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rdx, [0x10001ef58]
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100032e6b
mov rcx, qword [rsp + 0x50]
and qword [rsp + 0x58], 0
lea rax, [0x10001ef88]
lea rdx, [0x10001efb0]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x24
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [0x10004ce70]
mov esi, 0x104
lea r8, [rsp + 0x270]
lea edx, [rsi - 0x5d]
mov r9d, esi
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x100032d79
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x270]
repne scasw ax, word [rdi]
mov r9d, 1
xor r8d, r8d
not rcx
xor edx, edx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
and qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
lea rdx, [0x10001efc0]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100032e60
lea rax, [rsp + 0x60]
test rax, rax
je 0x100032e55
lea rcx, [rsp + 0x60]
mov r8, rsi
mov edx, esi
call fcn.100040758
test eax, eax
je 0x100032e55
lea r8, [0x100001d70]
lea rcx, [rsp + 0x60]
mov rdx, rsi
call fcn.10002e3d4
test eax, eax
js 0x100032e55
lea r9, [rsp + 0x60]
lea r8, [0x10001efd0]
lea rcx, [rsp + 0x480]
mov edx, 0x103
call fcn.10002e570
test eax, eax
js 0x100032e55
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x480]
repne scasw ax, word [rdi]
mov r9d, 1
xor r8d, r8d
not rcx
xor edx, edx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x480]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.1000475f0
mov rsi, qword [rsp + 0x6b0]
add rsp, 0x6a0
pop rdi
ret
Function at 0x100033e68
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
xor edi, edi
mov rbx, rcx
mov qword [r11 + 8], rdi
cmp rcx, rdi
je 0x100033f24
mov qword [r11 - 0x18], rdi
lea rax, [r11 + 8]
lea rdx, [0x10001f4a0]
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x100033f24
mov rcx, qword [rsp + 0x60]
lea rdx, [0x10001f4f8]
mov r8, rbx
call fcn.100042378
mov rsi, rax
cmp rax, rdi
je 0x100033f19
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
lea r9d, [rax + 1]
xor r8d, r8d
not rcx
lea edx, [rcx + rcx]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x28], edx
mov rdx, rsi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1000344c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x260], rax
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
lea rdx, [0x10001f6d0]
mov ebx, 1
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10003452b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x100034655
lea rax, [rsp + 0x38]
lea rdx, [0x10001f730]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000345c6
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000345b1
cmp dword [rsp + 0x30], ebx
jne 0x1000345b1
lea rax, [rsp + 0x50]
test rax, rax
je 0x1000345a7
lea rcx, [rsp + 0x50]
call fcn.1000400f0
jmp 0x1000345a9
xor eax, eax
test eax, eax
je 0x1000345b1
mov edi, ebx
jmp 0x1000345b3
xor edi, edi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x100034524
lea rax, [rsp + 0x38]
lea rdx, [0x10001f7c0]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100034653
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x40], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10003464c
cmp dword [rsp + 0x30], ebx
jne 0x10003464c
lea rax, [rsp + 0x50]
test rax, rax
je 0x100034642
lea rcx, [rsp + 0x50]
call fcn.1000400f0
jmp 0x100034644
xor eax, eax
test eax, eax
jne 0x100034519
xor ebx, ebx
jmp 0x100034519
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1000475f0
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret
Function at 0x1000347b8
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xab0
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0xaa0], rax
xor edi, edi
lea rax, [rsp + 0x50]
mov ebx, edi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
cmp rax, rdi
je 0x100034a17
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x104
call fcn.100040758
cmp eax, edi
je 0x100034a17
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea r8, [0x10001f840]
lea rax, [rsp + 0x260]
sub r8, rax
mov edx, 0x105
lea rcx, [rsp + 0x260]
mov r9d, edi
lea rax, [rdx + 0x7ffffef9]
cmp rax, rdi
je 0x100034862
movzx eax, word [r8 + rcx]
cmp ax, di
je 0x100034862
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x10003483f
cmp rdx, rdi
jne 0x100034871
sub rcx, 2
mov r9d, 0x8007007a
cmp r9d, edi
mov word [rcx], di
jl 0x100034a13
lea rax, [rsp + 0x38]
mov esi, 0x20019
lea rdx, [rsp + 0x260]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x100034a13
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x680]
lea rdx, [0x10001f898]
xor r8d, r8d
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x100034a08
cmp dword [rsp + 0x30], 1
jne 0x100034a08
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x680]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x100034a08
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x470]
lea rdx, [0x10001f8b8]
xor r8d, r8d
mov dword [rsp + 0x34], 0x20a
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x1000349fd
cmp dword [rsp + 0x30], 1
jne 0x1000349fd
lea r8, [0x10001f8d0]
lea rcx, [rsp + 0x470]
mov edx, 0x105
call fcn.10002e3d4
cmp eax, edi
jl 0x1000349fd
lea r8, [0x10001c190]
lea rdx, [rsp + 0x470]
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x20], edi
call fcn.100041c98
mov esi, 0xd2af9
lea rcx, [rsp + 0x890]
cmp eax, esi
mov edx, 0x105
cmove ebx, esi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
je 0x1000349fd
lea r8, [0x10001f548]
lea rdx, [rsp + 0x890]
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x20], edi
call fcn.100041c98
cmp eax, esi
cmove ebx, esi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x100034a1c
mov eax, 0x80004005
mov rcx, qword [rsp + 0xaa0]
xor rcx, rsp
call fcn.1000475f0
lea r11, [rsp + 0xab0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x100034a48
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea r9, [rsp + 0x50]
lea r8, [0x10001fcd0]
xor edx, edx
mov rdi, rcx
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
mov edx, 0x80
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test ebx, ebx
js 0x100034ad4
xor edx, edx
lea rax, [rsp + 0x48]
lea r9, [0x10001fce0]
lea r8d, [rdx + 1]
lea rcx, [0x100001640]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x100034ac9
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x48]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret