joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003adf0
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x288
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rbp, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
mov rsi, r9
call fcn.180113150
mov r9, rbx
mov qword [rsp + 0x20], rdi
lea r8, [0x180154c70]
mov edx, 0x103
lea rcx, [rsp + 0x60]
call fcn.18000f870
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x18003ae51
xor edi, edi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18003aed4
mov rcx, qword [rsp + 0x50]
lea r9d, [rdi + 1]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x288
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x18003afe0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
sub rsp, 0x48
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, r8
mov ebx, 1
test rdx, rdx
je 0x18003b060
test r8, r8
je 0x18003b060
lea rax, [rsp + 0x30]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18003b060
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x40], rsi
xor r8d, r8d
xor esi, esi
mov rdx, rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
cmovne ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
jmp 0x18003b062
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x48
pop rdi
pop rbx
ret

Function at 0x18003b080
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, r9
mov rdi, r8
mov ebx, 1
test rdx, rdx
je 0x18003b102
test r8, r8
je 0x18003b102
lea rax, [rsp + 0x30]
mov r9d, ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18003b102
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x18003b104
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x18003b120
Capabilities:
Delete registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x20]
call fcn.180113150
test rdi, rdi
jne 0x18003b164
xor eax, eax
jmp 0x18003b1ed
mov r8, rdi
mov qword [rsp + 0x278], rbp
mov edx, 0x103
lea rcx, [rsp + 0x20]
call fcn.1801259f0
test rbx, rbx
je 0x18003b1ab
lea r8, [0x180155ad4]
mov edx, 0x103
lea rcx, [rsp + 0x20]
call fcn.180125a58
mov r8, rbx
lea rcx, [rsp + 0x20]
mov edx, 0x103
call fcn.180125a58
xor ebp, ebp
mov ebx, ebp
nop
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edi, eax
cmp eax, 5
jne 0x18003b1d2
lea rdx, [rsp + 0x20]
mov rcx, rsi
call sym.SafeBase64.dll_SetRegItemPrivilege
inc ebx
test edi, edi
je 0x18003b1df
cmp ebx, 3
jb 0x18003b1b0
test edi, edi
sete bpl
mov eax, ebp
mov rbp, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x240
pop rdi
pop rsi
pop rbx
ret

Function at 0x18003b210
Capabilities:
Delete registry value

Disassembly:
push rbp
push rsi
push r15
sub rsp, 0x20
mov r15, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x18003b28e
test r8, r8
je 0x18003b28e
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r14
xor r14d, r14d
mov ebx, r14d
mov r8, r15
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov edi, eax
cmp eax, 5
jne 0x18003b262
mov rdx, rsi
mov rcx, rbp
call sym.SafeBase64.dll_SetRegItemPrivilege
inc ebx
test edi, edi
je 0x18003b26f
cmp ebx, 3
jb 0x18003b241
test edi, edi
mov rdi, qword [rsp + 0x48]
sete r14b
mov rbx, qword [rsp + 0x40]
mov eax, r14d
mov r14, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
xor eax, eax
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret

Function at 0x18003b2a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, qword [rsp + 0x2c0]
xor edi, edi
mov dword [rsp + 0x30], 0x104
mov r12d, 1
mov dword [rsp + 0x34], r12d
mov rsi, r9
mov rbp, r8
mov r14, rdx
mov r15, rcx
test rdx, rdx
je 0x18003b370
test r8, r8
je 0x18003b370
test r9, r9
je 0x18003b370
test rbx, rbx
je 0x18003b370
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x18003b36c
mov rdx, rsi
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
je 0x18003b36c
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rbx + rax*2], di
jne 0x18003b340
add eax, eax
mov r9d, r12d
mov dword [rsp + 0x28], eax
mov r8, rbp
mov rdx, r14
mov qword [rsp + 0x20], rbx
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
cmove edi, r12d
mov eax, edi
jmp 0x18003b372
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x260
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18003b3a0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
test rdx, rdx
je 0x18003b3f0
test r8, r8
je 0x18003b3f0
test r9, r9
je 0x18003b3f0
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [r9 + rax*2], 0
jne 0x18003b3c0
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, 1
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x38
ret
xor eax, eax
add rsp, 0x38
ret

Function at 0x18003b400
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r9d
lea rax, [rsp + 0x30]
mov r9d, 4
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHLWAPI.dll_SHSetValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x48
ret

Function at 0x18003b460
Capabilities:
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdi, r9
mov rbx, r8
test rdx, rdx
je 0x18003b554
test rbx, rbx
je 0x18003b554
test r9, r9
je 0x18003b554
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18003b554
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
xor esi, esi
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov rdx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x18003b554
mov rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], si
jne 0x18003b513
add ecx, ecx
mov r9d, 1
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, qword [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete sil
mov eax, esi
jmp 0x18003b556
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x18003b570
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x4a0
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x1fe
lea rcx, [rsp + 0x80]
mov rbp, r9
call fcn.180113150
xor edx, edx
lea rcx, [rsp + 0x280]
mov r8d, 0x208
call fcn.180113150
lea rax, [rsp + 0x60]
mov dword [rsp + 0x6c], 0x104
xor r14d, r14d
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov dword [rsp + 0x68], r14d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18003b6b3
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], r14
lea r8, [rsp + 0x6c]
mov qword [rsp + 0x50], r14
lea rdx, [rsp + 0x280]
mov qword [rsp + 0x48], r14
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, r14d
cmp dword [rsp + 0x68], ebx
jbe 0x18003b6a8
nop
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x70]
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r14
mov edx, ebx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x70], 0xff
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18003b6a0
mov rdx, rsi
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x18003b6d3
inc ebx
cmp ebx, dword [rsp + 0x68]
jb 0x18003b650
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x4a0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov edx, dword [rsp + 0x4f0]
lea r8, [rsp + 0x80]
dec edx
mov rcx, rbp
call fcn.180125a58
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x18003b6b5
Function at 0x18003b700
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x82a8
call fcn.180110950
sub rsp, rax
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x8290], rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x80]
mov rbp, r9
call fcn.180113150
xor edx, edx
mov dword [rsp + 0x70], 0x104
mov r8d, 0x7ffe
lea rcx, [rsp + 0x290]
call fcn.180113150
lea rax, [rsp + 0x60]
mov dword [rsp + 0x68], 0x3fff
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18003b85b
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x6c]
xor edi, edi
lea r8, [rsp + 0x70]
mov qword [rsp + 0x58], rdi
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x50], rdi
xor r9d, r9d
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, edi
cmp dword [rsp + 0x6c], ebx
jbe 0x18003b850
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x290]
mov qword [rsp + 0x30], rdi
mov edx, ebx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x68], 0x3fff
mov word [rsp + 0x290], di
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x18003b848
mov rdx, rsi
lea rcx, [rsp + 0x290]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x18003b879
inc ebx
cmp ebx, dword [rsp + 0x6c]
jb 0x18003b7f0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x8290]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x82a8
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov edx, dword [rsp + 0x82f0]
lea r8, [rsp + 0x290]
dec edx
mov rcx, rbp
call fcn.180125a58
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x18003b85d
Function at 0x18003bd30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 4
mov edi, 1
mov qword [rsp + 0x20], rax
xor esi, esi
lea rdx, str.SYSTEMCurrentControlSetControlTerminal_ServerWinStationsRDP_Tcp_
mov r9d, edi
mov dword [rsp + 0x38], esi
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18003bdd0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.PortNumber
lea rax, [rsp + 0x38]
mov qword [rsp + 0x60], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, edi
test eax, eax
cmovne ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x60]
jne 0x18003be40
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], 4
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlTerminal_ServerWds_rdpwdTds_tcp_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18003be46
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.PortNumber
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
cmovne edi, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x18003be46
mov eax, dword [rsp + 0x38]
jmp 0x18003be48
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18010faf0
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x18003be60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rcx
mov dword [rsp + 0x40], 4
lea rax, [rsp + 0x30]
mov edi, 1
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov r9d, edi
mov dword [rsp + 0x38], ebx
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlTerminal_Server_
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18003bec0
mov eax, ebx
jmp 0x18003bf0b
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.fDenyTSConnections
lea rax, [rsp + 0x38]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
test eax, eax
cmovne edi, ebx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
test edi, edi
je 0x18003bf0b
cmp dword [rsp + 0x38], ebx
sete bl
mov dword [rsi], ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x18003bf30
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor edi, edi
mov edx, 1
test ecx, ecx
mov qword [rsp + 0x50], rdi
mov eax, edi
mov rcx, 0xffffffff80000002
cmove eax, edx
xor r9d, r9d
mov dword [rsp + 0x58], eax
lea rdx, str.SYSTEMCurrentControlSetControlTerminal_Server_
lea rax, [rsp + 0x5c]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18003bfed
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x28], 4
lea r9d, [rdi + 4]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.fDenyTSConnections
mov qword [rsp + 0x80], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x80]
sete dil
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x70
pop rdi
ret

Function at 0x18003c010
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rcx
mov dword [rsp + 0x38], edx
lea rax, [rsp + 0x30]
mov ebx, 1
mov r9d, ebx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemSetup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18003c063
xor ecx, ecx
mov eax, ecx
jmp 0x18003c09e
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, str.SystemPartition
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
test eax, eax
cmovne ebx, ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x18003c1d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edi, edi
mov dword [rsp + 0x38], 0x208
mov rsi, rcx
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x18003c22a
mov eax, edi
jmp 0x18003c320
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [0x180154cbc]
lea rax, [rsp + 0x250]
mov qword [rsp + 0x490], rbx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov eax, edi
sete al
test ebx, ebx
jne 0x18003c318
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.180113150
lea r9, [rsp + 0x250]
mov edx, 0x103
lea r8, str._sShellOpenCommand
lea rcx, [rsp + 0x40]
call fcn.18000f870
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 0x208
lea r9d, [rbx + 1]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18003c316
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dil
mov eax, edi
mov rbx, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18010faf0
mov rsi, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
ret

Function at 0x18003c350
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rdx
mov dword [rsp + 0x38], 0x208
mov rdx, rcx
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000000
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x18003c3de
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1801153c8
test eax, eax
mov ecx, 1
cmove ebx, ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18010faf0
mov rbx, qword [rsp + 0x280]
add rsp, 0x260
pop rdi
ret
Function at 0x18003c410
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, qword [rbp + 0x1c0]
mov r15, rdx
mov rdx, rcx
mov rdi, r8
mov rcx, 0xffffffff80000000
lea r8, [rsp + 0x30]
mov r14, r9
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax + rax]
cmp word [rdi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18003c470
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 1]
mov r9, rdi
mov dword [rsp + 0x20], eax
mov r8d, 1
lea rdx, [0x180154cbc]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rax, rbx
nop word [rax + rax]
cmp word [rsi + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x18003c4d0
mov rcx, qword [rsp + 0x30]
lea eax, [rax*2 + 1]
mov r9, rsi
mov dword [rsp + 0x20], eax
mov r8d, 1
lea rdx, [0x180154cbc]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, rdi
lea r8, str._sDefaultIcon
mov edx, 0x103
lea rcx, [rsp + 0x40]
call fcn.18000f870
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000000
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rax, rbx
inc rax
cmp word [r14 + rax*2], 0
jne 0x18003c540
mov rcx, qword [rsp + 0x30]
lea rdx, [0x180154cbc]
inc eax
mov r9, r14
mov r8d, 1
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, rdi
lea r8, str._sShell
mov edx, 0x103
lea rcx, [rsp + 0x40]
call fcn.18000f870
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000000
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov rcx, qword [rsp + 0x30]
lea r9, [0x18015a058]
mov r8d, 1
mov dword [rsp + 0x20], 5
lea rdx, [0x180154cbc]
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, rdi
lea r8, str._sShellOpenCommand
mov edx, 0x103
lea rcx, [rsp + 0x40]
call fcn.18000f870
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000000
lea rdx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov r9, r15
lea r8, str._s____1_
mov edx, 0x103
lea rcx, [rsp + 0x40]
call fcn.18000f870
lea rax, [rsp + 0x40]
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18003c630
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
inc ebx
lea rdx, [0x180154cbc]
mov r8d, 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x8000000
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x268
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret