joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bba0
Capabilities:
Create pipe
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbp, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0x88]
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov r13, rcx
mov dword [rbp], 0
mov ebx, 1
test rsi, rsi
je 0x14000bc26
cmp qword [rsi], 0
jne 0x14000bc26
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x14000bc26
cmp qword [rdi], 0
jne 0x14000bc26
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14000bc6d
mov rcx, qword [rdi]
mov r8d, ebx
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14000bc99
lea r9, str.create_logging_thread__
lea r8, str.logger
mov edx, 0xc00003eb
movzx ecx, bx
mov qword [rsp + 0x20], rax
call fcn.140007160
xor eax, eax
jmp 0x14000bd60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov r9, r12
mov r8, r13
mov edx, 0xc0000431
movzx ecx, bx
mov qword [rsp + 0x20], rax
call fcn.140007160
xor eax, eax
jmp 0x14000bd60
mov eax, dword [rsp + 0xa0]
mov qword [rdi], r13
mov qword [rdi + 8], r12
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0xa8]
mov dword [rdi + 0x10], r15d
mov dword [rsp + 0xb4], eax
mov eax, dword [rsp + 0x80]
mov dword [rdi + 0x14], r14d
mov dword [rdi + 0x18], eax
mov rax, qword [rsi]
lea r8, [0x14000b6c0]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x98]
mov r9, rdi
mov rcx, qword [rax]
mov rax, qword [rsp + 0xb0]
xor edx, edx
mov qword [rdi + 0x30], rax
mov rax, qword [rsp + 0xb8]
mov qword [rdi + 0x28], rcx
xor ecx, ecx
mov qword [rsp + 0x28], rbp
mov qword [rdi + 0x38], rbp
mov qword [rdi + 0x40], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14000bd5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
xor r9d, r9d
mov edx, 0xc0000424
mov r8, rax
movzx ecx, bx
call fcn.140007160
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000c600
Capabilities:
Get token membership

Disassembly:
sub rsp, 0x88
mov rax, qword [0x140029c30]
xor rax, rsp
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov r9d, 0x220
mov qword [rsp + 0x50], rax
xor eax, eax
mov dl, 2
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], eax
lea r8d, [rax + 0x20]
mov dword [rsp + 0x20], eax
mov byte [0x14002ad29], 0
mov byte [rsp + 0x68], 0
mov byte [rsp + 0x69], 0
mov byte [rsp + 0x6a], 0
mov byte [rsp + 0x6b], 0
mov byte [rsp + 0x6c], 0
mov byte [rsp + 0x6d], 5
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000c699
mov rdx, qword [rsp + 0x60]
lea r8, [0x14002ad29]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140017480
add rsp, 0x88
ret
Function at 0x14000c6b0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xa0
mov edi, r8d
mov rsi, rdx
call fcn.140016bd0
lea rcx, [rax + 0x60]
mov edx, edi
call fcn.140007220
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x70]
call fcn.1400174b0
lea rax, str.runas
mov dword [rsp + 0x30], 0x70
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov rcx, rax
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14000c74f
call fcn.140016bd0
lea r9, str.elevate__
lea r8, str.GetModuleFileName__
lea rcx, [rax + 0x60]
mov edx, 0xc00001fa
call fcn.140007220
mov eax, 0x6f
mov rsi, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov r8d, 0x7fff
mov rdx, rax
xor ecx, ecx
mov qword [rsp + 0xb0], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov edx, 8
mov r8d, 0xfffe
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14000c7c9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.140016bd0
lea r9, str.elevate__
lea r8, str.GetCommandLine__
lea rcx, [rax + 0x60]
mov edx, 0xc00001fa
call fcn.140007220
lea eax, [rbx + 0x6f]
jmp 0x14000c885
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r9, [0x140022870]
or r8, 0xffffffffffffffff
mov edx, 0x7fff
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.140016e78
mov rdi, qword [rsi]
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
cmp word [rbx], 0x22
not rcx
mov rdi, rcx
jne 0x14000c808
add rdi, 2
movzx ecx, word [rbx + rdi*2]
call fcn.140017fbc
test eax, eax
je 0x14000c831
nop word [rax + rax]
movzx ecx, word [rbx + rdi*2 + 2]
inc rdi
call fcn.140017fbc
test eax, eax
jne 0x14000c820
lea rax, [rbx + rdi*2]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x60], 5
mov qword [rsp + 0x50], rax
xor edi, edi
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
mov ecx, 0x64
cmove edi, ecx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x48]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
mov rbx, qword [rsp + 0xb0]
mov rsi, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
Function at 0x14000cfc0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rbp, rcx
mov rbx, rdx
xor esi, esi
lea ecx, [rsi + 4]
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
test rax, rax
jne 0x14000d01f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov r8, rbp
mov edx, 0xc0000408
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], rsi
movzx ecx, ax
call fcn.140007160
xor eax, eax
jmp 0x14000d134
xor eax, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x30], 0x1c
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x14000d090
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov r8, rbp
mov edx, 0xc0000409
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], rsi
movzx ecx, ax
call fcn.140007160
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000d134
mov eax, dword [rbx]
cmp dword [rsp + 0x3c], eax
jne 0x14000d0af
mov r8d, dword [rbx + 4]
mov ecx, dword [rsp + 0x38]
xor r9d, r9d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov esi, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x14000d0f0
mov ecx, dword [rbx]
cmp dword [rsp + 0x3c], ecx
jne 0x14000d0df
mov r8d, dword [rbx + 4]
mov ecx, dword [rsp + 0x38]
xor r9d, r9d
lea edx, [r9 + 0x12]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
or esi, eax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x14000d0c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x14000d129
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov r8, rbp
mov edx, 0xc0000409
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], 0
movzx ecx, ax
call fcn.140007160
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14000d300
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov ebp, r9d
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
jne 0x14000d32f
mov eax, 1
jmp 0x14000d410
test r8d, r8d
je 0x14000d325
test rdx, rdx
je 0x14000d325
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14000d355
cmp dword [rsp + 0x40], 0x103
jne 0x14000d325
test byte [rbx + 0x704b8], 1
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x24], ebp
mov dword [rsp + 0x28], 0
je 0x14000d37f
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000d150
test eax, eax
je 0x14000d325
test byte [rbx + 0x704b8], 2
je 0x14000d3bf
lea rdx, [rsp + 0x20]
lea rcx, [0x14000cf50]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp dword [rsp + 0x28], 0
je 0x14000d3bf
mov r8d, dword [rbx + 0x704c0]
lea rdx, str.kill_process
mov rcx, rbx
call fcn.140012460
test eax, eax
je 0x14000d325
test byte [rbx + 0x704b8], 4
je 0x14000d3f8
lea rcx, [rbx + 2]
lea rdx, [rsp + 0x20]
call fcn.14000cfc0
test eax, eax
je 0x14000d3f8
mov r8d, dword [rbx + 0x704c4]
lea rdx, str.kill_process
mov rcx, rbx
call fcn.140012460
test eax, eax
je 0x14000d325
test byte [rbx + 0x704b8], 8
je 0x14000d40e
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x14000d410
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000d7c0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x10270
call fcn.140020f60
sub rsp, rax
mov rax, qword [0x140029c30]
xor rax, rsp
mov qword [rsp + 0x10260], rax
lea rax, str.NSSM
lea r9, str.SYSTEMCurrentControlSetServicesEventLogApplication_s
lea rcx, [rsp + 0x60]
or r8, 0xffffffffffffffff
mov edx, 0xff
mov qword [rsp + 0x20], rax
call fcn.140016e78
xor edi, edi
test eax, eax
jns 0x14000d83b
lea ebx, [rdi + 1]
lea r9, str.create_messages__
lea r8, str.eventlog_registry
mov edx, 0xc00003eb
movzx ecx, bx
mov qword [rsp + 0x20], rdi
call fcn.140007160
mov eax, ebx
jmp 0x14000d93b
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000d8ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov ebx, 1
lea r8, [rsp + 0x60]
mov edx, 0xc00003f9
movzx ecx, bx
mov r9, rax
mov qword [rsp + 0x20], rdi
call fcn.140007160
lea eax, [rbx + 1]
jmp 0x14000d93b
lea rdx, [rsp + 0x260]
mov r8d, 0x7fff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x260]
lea rdx, str.EventMessageFile
mov r9d, 1
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x260]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea rdx, str.TypesSupported
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x50], 7
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor eax, eax
mov rcx, qword [rsp + 0x10260]
xor rcx, rsp
call fcn.140017480
mov rbx, qword [rsp + 0x10280]
add rsp, 0x10270
pop rdi
ret
Function at 0x14000d960
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140029c30]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx edi, r8b
mov rsi, rdx
lea rbp, str.AppExit
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rcx
lea r9, str.SYSTEMCurrentControlSetServices_sParameters_s
lea rcx, [rsp + 0x60]
or r8, 0xffffffffffffffff
mov edx, 0xff
call fcn.140016e78
xor ebx, ebx
test eax, eax
jns 0x14000d9e3
lea edi, [rbx + 1]
lea r9, str.create_exit_action__
lea r8, str.NSSM_REG_EXIT
mov edx, 0xc00003eb
movzx ecx, di
mov qword [rsp + 0x20], rbx
call fcn.140007160
mov eax, edi
jmp 0x14000dadd
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14000da58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov edi, 1
lea r8, [rsp + 0x60]
mov edx, 0xc00003f9
movzx ecx, di
mov r9, rax
mov qword [rsp + 0x20], rbx
call fcn.140007160
lea eax, [rdi + 1]
jmp 0x14000dadd
cmp dword [rsp + 0x58], 2
jne 0x14000da64
test dil, dil
je 0x14000dad0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov edi, 1
xor r8d, r8d
not rcx
mov r9d, edi
xor edx, edx
lea eax, [rcx + rcx]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000dad0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov r8, rbp
mov edx, 0xc00003fb
movzx ecx, di
mov r9, rax
mov qword [rsp + 0x20], rbx
call fcn.140007160
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [rdi + 2]
jmp 0x14000dadd
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140017480
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000db00
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov rdi, qword [rsp + 0x80]
mov rbp, r8
mov r12, rdx
mov rsi, r9
mov rbx, rcx
mov qword [rax - 0x30], rdi
lea r9, [rax - 0x28]
xor r13d, r13d
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
mov dword [rax - 0x28], 7
mov qword [rax - 0x38], r13
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000db95
mov qword [rsi], r13
mov dword [rdi], r13d
cmp eax, 2
je 0x14000dc9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov ebx, 1
mov r8, rbp
mov edx, 0xc00003fa
mov r9, rax
movzx ecx, bx
mov qword [rsp + 0x20], r13
call fcn.140007160
mov eax, ebx
jmp 0x14000dc9d
cmp dword [rsp + 0x30], 7
je 0x14000dbc6
mov qword [rsi], r13
mov dword [rdi], r13d
mov edi, 2
mov r9, rbx
mov r8, rbp
mov edx, 0x8000040f
movzx ecx, di
mov qword [rsp + 0x20], r13
call fcn.140007160
mov eax, edi
jmp 0x14000dc9d
cmp dword [rdi], r13d
je 0x14000dc9b
mov rbx, qword [rsi]
test rbx, rbx
je 0x14000dbeb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsi], rax
test rax, rax
jne 0x14000dc30
lea ebx, [rax + 1]
lea r9, str.get_environment__
mov r8, rbp
mov edx, 0xc00003eb
movzx ecx, bx
mov dword [rdi], r13d
mov qword [rsp + 0x20], r13
call fcn.140007160
lea eax, [rbx + 2]
jmp 0x14000dc9d
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000dc9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov ebx, 1
mov r8, rbp
mov edx, 0xc00003fa
mov r9, rax
movzx ecx, bx
mov qword [rsp + 0x20], r13
call fcn.140007160
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsi]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rsi], r13
mov dword [rdi], r13d
lea eax, [rbx + 3]
jmp 0x14000dc9d
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x14000dcc0
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov ebx, r9d
mov rsi, r8
mov rbp, rdx
mov r13, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14000dd26
lea ebx, [rax + 1]
lea r9, str.get_string__
mov r8, rbp
mov edx, 0xc00003eb
movzx ecx, bx
mov qword [rsp + 0x20], rax
call fcn.140007160
mov eax, ebx
jmp 0x14000de83
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.1400174b0
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x78]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbp
mov rcx, r13
mov dword [rsp + 0x78], 2
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r12d, eax
test eax, eax
je 0x14000ddc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r12d, 2
jne 0x14000dd99
cmp byte [rsp + 0x90], 0
je 0x14000de23
mov ecx, ebx
call fcn.140006fa0
mov ebx, 1
mov r8, rbp
mov edx, 0xc00003fa
mov r9, rax
movzx ecx, bx
mov qword [rsp + 0x20], 0
call fcn.140007160
lea eax, [rbx + 1]
jmp 0x14000de83
cmp byte [rsp + 0x88], 0
je 0x14000dddc
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
cmp byte [rsp + 0x80], 0
jne 0x14000ddf8
cmp dword [rsp + 0x78], 2
jne 0x14000ddff
mov ebx, 1
mov dword [rsp + 0x78], ebx
jmp 0x14000ddff
cmp dword [rsp + 0x78], 2
je 0x14000de27
mov r8d, dword [rsp + 0x30]
mov rdx, rdi
mov rcx, rsi
call fcn.140016eb0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x14000de83
mov r8d, ebx
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14000de3e
cmp eax, ebx
jbe 0x14000de0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov ebx, 1
mov r8, rdi
mov edx, 0xc00003fe
mov r9, rax
movzx ecx, bx
mov qword [rsp + 0x20], 0
call fcn.140007160
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [rbx + 2]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x14000ded0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r11, rcx
or rcx, 0xffffffffffffffff
movzx r10d, r9b
xor eax, eax
xor r9d, r9d
mov rdi, r8
repne scasw ax, word [rdi]
test r10b, r10b
mov rbx, rdx
not rcx
setne r9b
lea eax, [rcx + rcx]
inc r9d
mov rcx, r11
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000df27
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov edi, 1
mov r8, rbx
mov edx, 0xc00003fb
mov r9, rax
movzx ecx, di
mov qword [rsp + 0x20], 0
call fcn.140007160
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret
mov r9b, 1
jmp 0x14000ded0

Function at 0x14000df70
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r11, rcx
or rcx, 0xffffffffffffffff
movzx r10d, r9b
xor eax, eax
xor r9d, r9d
mov rdi, r8
repne scasw ax, word [rdi]
test r10b, r10b
mov rbx, rdx
not rcx
setne r9b
lea eax, [rcx + rcx]
inc r9d
mov rcx, r11
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000df27
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov edi, 1
mov r8, rbx
mov edx, 0xc00003fb
mov r9, rax
movzx ecx, di
mov qword [rsp + 0x20], 0
call fcn.140007160
mov rbx, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x30
pop rdi
ret
mov r9b, 1
jmp 0x14000ded0

Function at 0x14000df80
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov rbx, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000dfb8
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x40], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov edi, 1
mov r8, rbx
mov edx, 0xc00003fb
mov r9, rax
movzx ecx, di
mov qword [rsp + 0x20], 0
call fcn.140007160
mov eax, edi
mov rdi, qword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
Function at 0x14000e000
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x30]
movzx ebx, r9b
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov rsi, rdx
mov dword [rsp + 0x34], 4
mov dword [rsp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14000e05c
lea eax, [rdi + 1]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp eax, 2
jne 0x14000e077
test bl, bl
jne 0x14000e077
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
xor ebx, ebx
mov r8, rsi
mov r9, rax
mov eax, 1
mov edx, 0xc00003fa
movzx ecx, ax
mov qword [rsp + 0x20], rbx
call fcn.140007160
mov rsi, qword [rsp + 0x58]
cmp edi, 2
sete bl
lea eax, [rbx - 2]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14000e390
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140029c30]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, rcx
mov rsi, r8
mov rax, rdx
lea rcx, [rsp + 0x34]
mov rdi, r9
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x30]
mov rdx, rsi
mov rcx, rax
mov dword [rsp + 0x30], 4
mov dword [rsp + 0x34], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000e48d
mov qword [rsp + 0x68], rbx
mov ebx, dword [rsp + 0xb0]
cmp eax, 2
je 0x14000e486
cmp dword [rsp + 0x30], 4
je 0x14000e458
or r8, 0xffffffffffffffff
lea r9, [0x1400230e0]
lea rcx, [rsp + 0x38]
lea edx, [r8 + 0x11]
mov dword [rsp + 0x20], ebx
call fcn.140016e78
mov edx, dword [rsp + 0xb8]
mov r11d, 2
lea rax, [rsp + 0x38]
movzx ecx, r11w
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
call fcn.140007160
jmp 0x14000e486
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140006fa0
mov r8, rsi
mov edx, 0xc00003fa
mov r9, rax
mov eax, 1
mov qword [rsp + 0x20], 0
movzx ecx, ax
call fcn.140007160
mov dword [rdi], ebx
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140017480
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret