joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400db1a0
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x290
mov rbx, rcx
xor r15d, r15d
xor ecx, ecx
mov r14, r9
mov ebp, r8d
mov rsi, rdx
mov edi, r15d
call qword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x1400db3bc
lea rax, [rsp + 0x30]
lea r9, [0x140140508]
lea r8d, [r15 + 1]
lea rcx, [0x140140578]
xor edx, edx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400db3b6
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x38], r15
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
lea rdx, [0x140140568]
call qword [rax]
test eax, eax
js 0x1400db3ab
mov rcx, qword [rsp + 0x38]
xor r8d, r8d
mov rdx, rbx
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x1400db3a0
mov rax, qword [rsp + 0x30]
mov rbx, qword [rax]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, qword [rsp + 0x30]
mov rdx, rax
cmp dword [rsp + 0x2f0], r15d
je 0x1400db321
lea r8d, [r15 + 4]
call qword [rbx + 0x98]
test eax, eax
jne 0x1400db3a0
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rax, qword [rcx]
mov rdx, rsi
mov dword [rsp + 0x20], r15d
call qword [rax + 0x18]
test eax, eax
jne 0x1400db2ab
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [rax + 1]
mov rcx, qword [rsp + 0x30]
mov ebx, dword [rsp + 0x2d0]
mov rdx, r14
mov rax, qword [rcx]
mov r8d, ebx
call qword [rax + 0x40]
test eax, eax
je 0x1400db2cf
test ebx, ebx
jle 0x1400db2cf
mov word [r14], r15w
mov rcx, qword [rsp + 0x30]
mov ebx, dword [rsp + 0x2e0]
mov rsi, qword [rsp + 0x2d8]
mov rax, qword [rcx]
mov r8d, ebx
mov rdx, rsi
call qword [rax + 0x50]
test eax, eax
je 0x1400db2fb
test ebx, ebx
jle 0x1400db2fb
mov word [rsi], r15w
mov rcx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x2e8]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x70]
test eax, eax
je 0x1400db3a0
mov dword [rbx], 5
jmp 0x1400db3a0
mov r8d, 0x39
call qword [rbx + 0x98]
test eax, eax
js 0x1400db3a0
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rax, qword [rcx]
mov rdx, rsi
mov dword [rsp + 0x20], r15d
call qword [rax + 0x18]
test eax, eax
jne 0x1400db35c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [rax + 1]
mov rcx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x2d0]
mov rdx, r14
mov rax, qword [rcx]
call qword [rax + 0x40]
mov rcx, qword [rsp + 0x30]
mov r8d, dword [rsp + 0x2e0]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x2d8]
call qword [rax + 0x50]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x2e8]
mov rax, qword [rcx]
call qword [rax + 0x70]
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
lea r11, [rsp + 0x290]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400db960
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
jne 0x1400db9d7
cmp qword [rcx + 0x18], 8
jb 0x1400db9b0
mov rcx, qword [rcx]
call fcn.1400e4058
mov qword [rbx + 0x18], 7
xor edi, edi
mov qword [rbx + 0x10], rdi
mov word [rbx], di
cmp qword [rsi + 0x18], 8
jb 0x1400db9d0
mov rcx, qword [rsi]
call fcn.1400e4058
xor eax, eax
jmp 0x1400dbb9b
mov edx, 0x2f
xor r8d, r8d
call fcn.140007f80
mov r15d, 1
or r8, 0xffffffffffffffff
mov rcx, rbx
cmp rax, r8
je 0x1400dba11
lea edx, [r15 + 0x2e]
call fcn.14007a5e0
lea rcx, [rdi - 1]
cmp rax, rcx
je 0x1400dba36
lea rdx, [0x1401302d0]
jmp 0x1400dba2b
mov edx, 0x5c
call fcn.14007a5e0
lea rcx, [rdi - 1]
cmp rax, rcx
je 0x1400dba36
lea rdx, [0x140122f58]
mov r8, r15
mov rcx, rbx
call fcn.14000c900
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400da7f0
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov r12, rax
xor edi, edi
cmp rax, 0xffffffffffffffff
je 0x1400dbb46
lea r8, [rbp - 0x64]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.14002db30
mov r14, rax
lea rax, [rsp + 0x20]
cmp rax, r14
je 0x1400dbac2
cmp qword [rsp + 0x38], 8
jb 0x1400dbaa2
mov rcx, qword [rsp + 0x20]
call fcn.1400e4058
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
mov rdx, r14
lea rcx, [rsp + 0x20]
call fcn.14000c4d0
cmp qword [rsp + 0x60], 8
jb 0x1400dbad4
mov rcx, qword [rsp + 0x48]
call fcn.1400e4058
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x1400dbb26
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
mov edx, 0x80
call fcn.1400ef114
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call fcn.1400ed8f4
test eax, eax
cmovne r15d, edi
lea rdx, [rsp + 0x70]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1400dba72
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
cmp qword [rsp + 0x38], 8
jb 0x1400dbb58
mov rcx, qword [rsp + 0x20]
call fcn.1400e4058
mov qword [rsp + 0x38], 7
mov qword [rsp + 0x30], rdi
mov word [rsp + 0x20], di
cmp qword [rbx + 0x18], 8
jb 0x1400dbb7a
mov rcx, qword [rbx]
call fcn.1400e4058
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
cmp qword [rsi + 0x18], 8
jb 0x1400dbb98
mov rcx, qword [rsi]
call fcn.1400e4058
mov eax, r15d
mov qword [rsi + 0x18], 7
mov qword [rsi + 0x10], rdi
mov word [rsi], di
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400dbbd0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rcx, rax
xor edx, edx
mov rsi, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r8d, 1
mov edx, eax
mov ecx, ebp
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetForegroundWindow]
test rdi, rdi
je 0x1400dbc2d
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetFocus]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r8d, r8d
mov ecx, ebp
mov edx, eax
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rax, rsi
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400dbc60
Capabilities:
Get common file path

Disassembly:
push rdi
sub rsp, 0x240
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x250], rbx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov eax, dword [0x14026fbb8]
test al, 1
jne 0x1400dbcd2
or eax, 1
mov dword [0x14026fbb8], eax
mov qword [0x14026fbb0], 7
mov qword [0x14026fba8], rdi
mov word [0x14026fb98], di
xor r8d, r8d
lea rdx, [0x1401226e8]
lea rcx, [0x14026fb98]
call fcn.1400076c0
lea rcx, [0x1401204e0]
call fcn.1400e52b0
nop
cmp dword [0x14026fb94], 0
jne 0x1400dbd36
mov r9d, 1
lea r8d, [r9 + 0x22]
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp word [rsp + 0x30], 0
jne 0x1400dbcff
mov r8, rdi
jmp 0x1400dbd1b
lea rax, [rsp + 0x30]
or r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400dbd10
lea rdx, [rsp + 0x30]
lea rcx, [0x14026fb98]
call fcn.1400076c0
mov dword [0x14026fb94], 1
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rdi
mov word [rbx], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [0x14026fb98]
mov rcx, rbx
call fcn.140007570
mov rax, rbx
mov rbx, qword [rsp + 0x250]
add rsp, 0x240
pop rdi
ret
Function at 0x1400dbd70
Capabilities:
Get session user name

Disassembly:
push rbx
push rsi
sub rsp, 0x258
mov rsi, rcx
mov dword [rcx], 1
lea rcx, [rsp + 0x42]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], bx
call fcn.1400e4220
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x270], 0x104
mov qword [rsp + 0x278], rbx
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x1400dbea3
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x250], rdi
call fcn.140051fa0
cmp qword [rax + 0x18], 8
jb 0x1400dbdeb
mov rax, qword [rax]
lea r9, [rsp + 0x278]
mov r8d, 1
mov rdx, rax
xor ecx, ecx
call sub.NETAPI32.dll_NetUserGetInfo
cmp qword [rsp + 0x38], 8
mov edi, eax
jb 0x1400dbe17
mov rcx, qword [rsp + 0x20]
call fcn.1400e4058
test edi, edi
je 0x1400dbe7f
lea r8, [rsp + 0x280]
mov edx, 1
xor ecx, ecx
mov qword [rsp + 0x280], rbx
call sub.NETAPI32.dll_NetWkstaUserGetInfo
mov edi, eax
test eax, eax
jne 0x1400dbe5f
mov rcx, qword [rsp + 0x280]
lea r9, [rsp + 0x278]
lea r8d, [rax + 1]
mov rdx, qword [rcx]
mov rcx, qword [rcx + 0x18]
call sub.NETAPI32.dll_NetUserGetInfo
mov edi, eax
mov rcx, qword [rsp + 0x280]
test rcx, rcx
je 0x1400dbe71
call sub.NETAPI32.dll_NetApiBufferFree
test edi, edi
je 0x1400dbe7f
mov rcx, qword [rsp + 0x278]
jmp 0x1400dbe91
mov rcx, qword [rsp + 0x278]
mov ebx, 1
mov eax, dword [rcx + 0x14]
mov dword [rsi], eax
mov rdi, qword [rsp + 0x250]
test rcx, rcx
je 0x1400dbea3
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, ebx
add rsp, 0x258
pop rsi
pop rbx
ret

Function at 0x1400dbef0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x260
mov edi, ecx
mov r14, rdx
xor esi, esi
lea ecx, [rsi + 2]
xor edx, edx
mov ebp, r8d
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [rsp + 0x20], 0x238
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400dbf7a
lea rdx, [rsp + 0x20]
mov rcx, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1400dbf71
cmp dword [rsp + 0x28], edi
je 0x1400dbf5c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1400dbf43
jmp 0x1400dbf71
lea r8, [rsp + 0x4c]
mov rdx, rbp
mov rcx, r14
call fcn.1400e59b4
mov esi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x260]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400ddbc0
Capabilities:
Compare security identifiers

Disassembly:
mov rax, rsp
sub rsp, 0x468
cmp dword [0x14026fb8c], 0
jne 0x1400ddcee
mov qword [rax - 8], rbx
xor ebx, ebx
mov word [rax + 0x14], 0x500
mov qword [rax + 0x20], rbx
mov qword [rax + 0x18], rbx
mov dword [rax + 0x10], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x488]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400ddce6
mov rcx, qword [rsp + 0x488]
lea rax, [rsp + 0x470]
lea r8, [rsp + 0x60]
lea edx, [rbx + 2]
mov r9d, 0x400
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400ddcd8
lea rax, [rsp + 0x480]
lea r8d, [rbx + 0x20]
lea rcx, [rsp + 0x478]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov r9d, 0x220
mov dl, 2
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400ddcd8
cmp dword [rsp + 0x60], ebx
jbe 0x1400ddcc0
nop word [rax + rax]
mov rcx, qword [rsp + 0x480]
mov edx, ebx
add rdx, rdx
mov rdx, qword [rsp + rdx*8 + 0x68]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400ddcb6
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1400ddc90
jmp 0x1400ddcc0
mov dword [0x14026fb90], 1
mov rcx, qword [rsp + 0x480]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [0x14026fb8c], 1
mov rcx, qword [rsp + 0x488]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x460]
mov eax, dword [0x14026fb90]
add rsp, 0x468
ret

Function at 0x1400ddf70
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov edi, edx
mov rbx, rcx
test rcx, rcx
je 0x1400ddff8
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x30], 0
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
mov rcx, rbx
call qword [sym.imp.USER32.dll_PostMessageW]
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov ecx, 0x100001
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x1400ddff8
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400ddff8
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x1400ddff8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400df370
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x360
lea r9, [rsp + 0x150]
mov rdi, r8
mov ebx, edx
sub r9, rcx
nop dword [rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [r9 + rcx - 2], ax
test ax, ax
jne 0x1400df390
xor edx, edx
lea rcx, [rsp + 0xe0]
lea r8d, [rdx + 0x68]
call fcn.1400e4220
test rdi, rdi
lea rax, [rsp + 0xc0]
cmovne rax, rdi
xor edi, edi
lea rdx, [rsp + 0x150]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xe0]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0xe0], 0x68
mov word [rsp + 0x120], bx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400df49e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2e4
jne 0x1400df48b
lea r8d, [rdi + 0x70]
lea rcx, [rsp + 0x50]
xor edx, edx
call fcn.1400e4220
lea rax, str.runas
lea rcx, [rsp + 0x50]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x150]
mov qword [rsp + 0x50], 0x70
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x80], ebx
mov qword [rsp + 0x68], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov rbx, qword [rsp + 0x370]
add rsp, 0x360
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x370]
add rsp, 0x360
pop rdi
ret
mov eax, 1
mov rbx, qword [rsp + 0x370]
add rsp, 0x360
pop rdi
ret

Function at 0x1400df890
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x440
xor edi, edi
mov rsi, r8
mov r10, rdx
mov rbp, rcx
mov dword [rsp + 0x470], edi
test r8, r8
je 0x1400df9ba
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [r8 + rax*2], di
jne 0x1400df8c0
test rax, rax
je 0x1400df9ba
lea rax, [rsp + 0x478]
mov r9d, 0x10008
xor r8d, r8d
mov rdx, rsi
mov rcx, r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400df9ba
mov qword [rsp + 0x460], rbx
nop word [rax + rax]
mov rcx, qword [rsp + 0x478]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x470]
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x470], 0x200
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
cmp eax, 0x103
je 0x1400df97e
test eax, eax
jne 0x1400df991
mov rdx, qword [rsp + 0x478]
lea r8, [rsp + 0x40]
mov rcx, rbp
call fcn.1400df890
mov ebx, 0x3f2
test eax, eax
cmovne ebx, edi
test ebx, ebx
je 0x1400df910
jmp 0x1400df991
mov rcx, qword [rsp + 0x468]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x478]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x460]
sete dil
mov eax, edi
add rsp, 0x440
pop rdi
pop rsi
pop rbp
ret
xor eax, eax
add rsp, 0x440
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400dfa30
Capabilities:
Delete registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x50
mov rcx, qword [rcx + 0x10]
mov rdi, r8
mov rsi, rdx
test rcx, rcx
je 0x1400dfae3
test rdx, rdx
je 0x1400dfae3
mov qword [r11 + 0x10], rbx
xor ebx, ebx
mov qword [r11 + 0x20], rcx
test r8, r8
je 0x1400dfab1
lea rax, [r11 + 8]
xor r9d, r9d
xor r8d, r8d
mov qword [r11 - 0x18], rax
lea rax, [r11 + 0x20]
mov rdx, rdi
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x28], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1400dfaac
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rcx, qword [rsp + 0x78]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test rdi, rdi
je 0x1400dfacc
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
xor eax, eax
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400dfaf0
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x28
mov r10, rdx
mov edx, dword [rcx + 0x20]
mov r9d, r8d
lea eax, [rdx + 1]
mov r8, r10
mov dword [rcx + 0x20], eax
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x1400dfb20
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x40
mov eax, dword [rsp + 0x80]
mov dword [r9], r8d
mov r8, qword [rsp + 0x88]
mov dword [r8], eax
mov qword [rsp + 0x38], r8
mov r10, rdx
mov edx, dword [rcx + 0x20]
xor ebx, ebx
mov r8, r10
lea eax, [rdx + 1]
mov dword [rcx + 0x20], eax
mov rax, qword [rsp + 0x78]
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x1400dfb90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov r14d, ebx
test rdx, rdx
je 0x1400dfc72
test r8, r8
je 0x1400dfc72
test r9, r9
je 0x1400dfc72
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400dfc53
mov r14d, dword [r9]
mov qword [rsp + 0x30], rcx
cmp qword [rsp + 0x88], rbx
je 0x1400dfc11
mov rdx, qword [rsp + 0x88]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400dfc53
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp qword [rsp + 0x88], rbx
je 0x1400dfc43
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1400dfc53
cmp dword [rsp + 0x68], 3
sete bl
mov eax, ebx
jmp 0x1400dfc74
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1400dfc72
mov r8d, r14d
mov rcx, rsi
call fcn.1400e44c0
mov eax, 1
jmp 0x1400dfc74
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x1400dfc90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebx, ebx
mov rdi, r9
mov rsi, r8
mov r15, rdx
mov r14d, ebx
test r9, r9
je 0x1400dfcb9
mov r14d, dword [r9]
test rdx, rdx
je 0x1400dfd83
test r8, r8
je 0x1400dfd83
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x1400dfd74
mov qword [rsp + 0x30], rcx
cmp qword [rsp + 0x80], rbx
je 0x1400dfd11
mov rdx, qword [rsp + 0x80]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400dfd74
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r15
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
cmp qword [rsp + 0x80], rbx
je 0x1400dfd51
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r15d, r15d
jne 0x1400dfd74
mov eax, dword [rsp + 0x78]
cmp eax, 4
je 0x1400dfd6b
cmp eax, 3
jne 0x1400dfd70
cmp dword [rsp + 0x68], 4
jne 0x1400dfd70
mov ebx, 1
mov eax, ebx
jmp 0x1400dfd85
test rdi, rdi
je 0x1400dfd83
mov dword [rsi], r14d
mov eax, 1
jmp 0x1400dfd85
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1400dfda0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor esi, esi
mov r14, r9
mov rdi, r8
mov r15, rdx
mov r12d, esi
test rdx, rdx
je 0x1400dff4f
test r8, r8
je 0x1400dff4f
test r9, r9
je 0x1400dff4f
mov rcx, qword [rcx + 0x10]
mov qword [r11 + 8], rbx
or rbx, 0xffffffffffffffff
mov qword [r11 + 0x18], rbp
test rcx, rcx
je 0x1400dfeff
mov rbp, qword [rsp + 0x98]
mov r12d, dword [r9]
mov qword [r11 - 0x38], rcx
test rbp, rbp
je 0x1400dfe2c
lea rax, [r11 - 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbp
mov qword [r11 - 0x48], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400dfeff
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r15d, eax
test rbp, rbp
je 0x1400dfe5a
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [rsp + 0x78]
cmp ecx, 2
jne 0x1400dfecc
mov eax, 2
mul r12
cmovo rax, rbx
mov rcx, rax
call fcn.1400e3178
mov rbp, rax
test rax, rax
je 0x1400dfec8
mov r8d, r12d
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov rdx, rdi
mov rcx, rbp
sub rdx, rbp
nop word [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdx + rcx - 2], ax
test ax, ax
jne 0x1400dfea0
mov rax, rbx
inc rax
cmp word [rdi + rax*2], si
jne 0x1400dfeb4
mov rcx, rbp
mov dword [r14], eax
call fcn.1400e4058
mov ecx, dword [rsp + 0x78]
test r15d, r15d
jne 0x1400dfeff
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x1400dfede
cmp ecx, 7
jne 0x1400dfee3
mov esi, 1
mov eax, esi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400dff4b
nop dword [rax]
cmp word [rcx + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x1400dff10
lea edx, [rbx*2 + 2]
cmp edx, r12d
ja 0x1400dff4b
sub rdi, rcx
nop word [rax + rax]
movzx eax, word [rcx]
lea rcx, [rcx + 2]
mov word [rdi + rcx - 2], ax
test ax, ax
jne 0x1400dff30
mov dword [r14], edx
mov eax, 1
jmp 0x1400dfee5
xor eax, eax
jmp 0x1400dfee5
xor eax, eax
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret