joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002f8dc
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14005be78]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
mov rdx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14002f90c
mov rdx, qword [rcx]
lea rcx, str.sfxcmd
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor edi, edi
mov qword [rbp - 0x28], rdi
movdqa xmm0, xmmword [0x1400489c0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], di
mov qword [rbp - 0x30], rdi
lea r8, [rbp - 0x28]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14001cd2c
test al, al
je 0x14002f993
mov rax, qword [rbp - 0x30]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14002f959
mov rcx, qword [rbx]
movzx ecx, word [rcx + rax*2]
call fcn.14001d10c
test al, al
je 0x14002f973
mov rax, qword [rbp - 0x30]
inc rax
mov qword [rbp - 0x30], rax
jmp 0x14002f94c
cmp qword [rbx + 0x18], 8
jb 0x14002f97d
mov rbx, qword [rbx]
mov rax, qword [rbp - 0x30]
lea rdx, [rbx + rax*2]
lea rcx, str.sfxpar
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x14002f9cf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002f9ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002f9eb
call fcn.140031ddc
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140031ef0
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop rbp
ret
call fcn.1400374d4
int3
Function at 0x14003130c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140031384
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140031384
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140031384
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140031378
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140031396
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140031366
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140031386

Function at 0x140032ed0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140032f1a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140032f1a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140032f1a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140032f1a
cmp dword [rcx + 0x84], 0xe
jbe 0x140032f1a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140032f1c
xor al, al
add rsp, 0x28
ret

Function at 0x14003bc64
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003b9c8

Function at 0x140045b80
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140045ba8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140045ba8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001000
Capabilities:
Query environment variable
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rdx, rcx
lea rcx, [0x140000000]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rdi, 0xffffffffffffffff
mov rsi, rdi
inc rsi
cmp word [rbx + rsi*2], 0
jne 0x140001046
mov edx, 0x5c
mov rcx, rbx
call fcn.140002100
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], 0
jne 0x140001060
sub esi, ecx
lea rdx, str.TOTALCMD64.EXE
movsxd rax, esi
mov r8d, 0xe
inc rax
lea rcx, [rbx + rax*2]
call fcn.140003948
lea eax, [rsi + 0xf]
xor ebp, ebp
movsxd rcx, eax
xor edx, edx
mov word [rbx + rcx*2], bp
mov rcx, rbx
call fcn.1400035a4
test eax, eax
je 0x1400011bc
mov r8d, 0x104
lea rcx, [0x140000000]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rsi, rdi
nop
inc rsi
cmp word [rbx + rsi*2], bp
jne 0x1400010c0
mov edx, 0x5c
mov rcx, rbx
call fcn.140002100
inc rdi
cmp word [rax + rdi*2], bp
jne 0x1400010d6
sub esi, edi
lea rdx, str.tcrun64.cfg
movsxd rax, esi
mov r8d, 0xb
inc rax
lea rcx, [rbx + rax*2]
call fcn.140003948
lea eax, [rsi + 0xc]
movsxd rcx, eax
lea rdx, [0x140016820]
mov word [rbx + rcx*2], bp
mov rcx, rbx
call fcn.140003a5c
mov rdi, rax
test rax, rax
je 0x1400011e8
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rax
lea r8d, [rdx + 1]
call fcn.140003cf8
cmp rax, 2
jne 0x1400011e0
cmp byte [rsp + 0x20], 0xff
jne 0x1400011e0
cmp byte [rsp + 0x21], 0xfe
jne 0x1400011e0
xor edx, edx
mov r8d, eax
mov rcx, rdi
call fcn.140003940
mov rcx, rdi
call fcn.14000359c
cdq
mov rcx, rdi
sub eax, edx
sar eax, 1
lea esi, [rax - 1]
cmp esi, 0x103
jg 0x1400011e3
xor r8d, r8d
cdqe
lea edx, [r8 + 2]
mov word [rbx + rax*2 - 2], bp
call fcn.140003940
movsxd r8, esi
mov r9, rdi
mov edx, 2
mov rcx, rbx
call fcn.140003cf8
mov rcx, rdi
call fcn.1400036d4
xor edx, edx
mov rcx, rbx
call fcn.1400035a4
test eax, eax
jne 0x1400011e8
mov al, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140001500
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, rdi
call fcn.1400036d4
mov r8d, 0x104
lea rcx, str.TOTALCMD64
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140001210
xor edx, edx
mov rcx, rbx
call fcn.1400035a4
test eax, eax
je 0x1400011bc
xor al, al
jmp 0x1400011be
Function at 0x140004968
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140004794
Function at 0x1400061c0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
mov rsi, r9
mov r14, r8
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r15d, r15d
mov qword [rbp - 0x10], rax
mov edi, r15d
mov qword [rbp + 0x30], r15
mov dword [rbp + 0x38], r15d
cmp word [rax], r15w
je 0x1400062be
lea r9, [rbp - 0x10]
mov rcx, rax
lea r8, [rbp + 0x38]
lea rdx, [rbp + 0x30]
call fcn.140014278
mov ebx, eax
test eax, eax
js 0x1400062ed
mov rdi, qword [rbp + 0x30]
mov rax, qword [rbp - 0x10]
cmp word [rax], r15w
je 0x1400062be
lea r9, [rbp - 0x10]
mov rcx, rax
lea r8, [rbp + 0x38]
lea rdx, [rbp + 0x30]
call fcn.140014278
mov ebx, eax
test eax, eax
jne 0x1400062b8
mov rdi, qword [rbp + 0x30]
mov ecx, 0xfffd
movzx eax, word [rdi]
sub ax, 0x2d
test cx, ax
jne 0x1400062b1
lea rbx, [rdi + 2]
mov rdx, rbx
lea rcx, str.standalone
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x140006285
mov dword [r14], 1
jmp 0x140006227
mov rdx, rbx
lea rcx, str.standalone:temp
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1400062a1
mov dword [rsi], 1
jmp 0x140006227
mov rdx, rbx
lea rcx, str.standalone:delete
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, 0x80070057
jmp 0x1400062c1
js 0x1400062ed
mov rdi, qword [rbp + 0x30]
mov ebx, r15d
test rdi, rdi
je 0x1400062da
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rdi, qword [rbp + 0x30]
jmp 0x1400062c1
Function at 0x140007e80
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
cmp qword [0x14003bc80], rbx
jne 0x14000803b
xor edx, edx
lea rcx, str.CABINET
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
jne 0x140007f07
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140007f07
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.AddDllDirectory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140007f07
xor r8d, r8d
lea rcx, str.CABINET
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [0x14003bc80], rdi
test rdi, rdi
jne 0x140007f34
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140008021
jmp 0x14000801c
lea rdx, str.FDICreate
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003bca0], rax
test rax, rax
je 0x140007f13
mov rcx, qword [0x14003bc80]
lea rdx, str.FDICopy
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003bc90], rax
test rax, rax
je 0x140007f13
mov rcx, qword [0x14003bc80]
lea rdx, str.FDIIsCabinet
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003bc88], rax
test rax, rax
je 0x140007f13
mov rcx, qword [0x14003bc80]
lea rdx, str.FDIDestroy
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003bca8], rax
test rax, rax
je 0x140007f13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea r9, [0x140007950]
or dword [rsp + 0x38], 0xffffffff
lea rax, [0x140007a10]
mov qword [rsp + 0x30], rax
lea r8, [0x1400078e0]
lea rax, [0x1400079e0]
mov qword [rsp + 0x28], rax
lea rdx, [0x1400078b0]
lea rax, [0x1400079a0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140007880]
mov rax, qword [0x14003bca0]
call qword [0x14002b548]
mov qword [0x14003bc98], rax
test rax, rax
jne 0x14000803b
mov ebx, 0x80004005
mov rcx, qword [0x14003bc80]
test rcx, rcx
je 0x14000803b
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [0x14003bc80], 0
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140015ba0
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14000c900
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
xor sil, sil
mov rax, rdx
mov rdi, rcx
mov r14d, 0x80070000
test rdx, rdx
jne 0x14000c98f
mov rcx, qword [rcx + 0x18]
lea rdx, [rbp - 0x10]
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [0x14002b548]
mov ebx, eax
test eax, eax
js 0x14000cab1
mov rdx, qword [rdi + 0x28]
lea rax, [rbp + 0x38]
mov rcx, qword [rbp - 0x10]
mov esi, 1
mov r9d, esi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
lea eax, [rbx + 0x7ff8fffe]
cmp eax, esi
jbe 0x14000cabe
test ebx, ebx
js 0x14000cab1
mov rax, qword [rbp + 0x38]
lea rcx, [rbp + 0x40]
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x28], rcx
lea rdx, str.Size
lea rcx, [rbp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000caa2
mov eax, dword [rbp + 0x48]
lea rdx, str.Progress
mov rcx, qword [rbp + 0x38]
xor r9d, r9d
mov qword [rdi + 0x68], rax
xor r8d, r8d
lea rax, [rbp + 0x40]
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000caa2
mov eax, dword [rbp + 0x48]
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
lea rdx, str.LastAttemptHigh
mov rcx, qword [rbp + 0x38]
xor r9d, r9d
mov qword [rdi + 0x70], rax
xor r8d, r8d
lea rax, [rdi + 0x94]
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000caa2
lea rcx, [rbp + 0x40]
mov dword [rbp + 0x40], 4
mov qword [rsp + 0x28], rcx
lea rax, [rdi + 0x90]
mov rcx, qword [rbp + 0x38]
lea rdx, str.LastAttemptLow
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, r14d
test eax, eax
cmovle ebx, eax
test sil, sil
je 0x14000cab1
mov rcx, qword [rbp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x40
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
and qword [rdi + 0x68], 0
mov ebx, esi
and qword [rdi + 0x70], 0
xor eax, eax
mov qword [rdi + 0x90], rax
jmp 0x14000cab1
Function at 0x14000f4d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov rbp, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], r15
jne 0x14000f501
mov eax, 0x80004001
jmp 0x14000f643
test byte [rdx + 4], 2
je 0x14000f623
lea r14, [rcx + 0x1170]
or r9, 0xffffffffffffffff
lea r8, [rdx + 0x108]
mov rcx, r14
mov edx, 0x824
call fcn.1400196e0
cmp eax, 0x50
jne 0x14000f539
mov edi, 0x8007007a
jmp 0x14000f641
lea rsi, [rbx + 0x128]
mov r8d, 0x824
mov rdx, rsi
mov rcx, r14
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x14000f575
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14000f641
mov eax, 0x68
lea ecx, [rax + 0xc]
lea edx, [rax + 8]
lea r8d, [rax - 0x2e]
cmp ax, word [rsi]
jne 0x14000f5e4
movzx eax, word [rbx + 0x12a]
cmp cx, ax
jne 0x14000f5e4
cmp cx, word [rbx + 0x12c]
jne 0x14000f5b5
cmp dx, word [rbx + 0x12e]
jne 0x14000f5b5
cmp r8w, word [rbx + 0x130]
je 0x14000f660
cmp cx, ax
jne 0x14000f5e4
cmp cx, word [rbx + 0x12c]
jne 0x14000f5e4
cmp dx, word [rbx + 0x12e]
jne 0x14000f5e4
mov eax, 0x73
cmp ax, word [rbx + 0x130]
jne 0x14000f5e4
cmp r8w, word [rbx + 0x132]
je 0x14000f660
mov eax, 0x66
cmp ax, word [rsi]
jne 0x14000f60a
cmp cx, word [rbx + 0x12a]
jne 0x14000f60a
cmp dx, word [rbx + 0x12c]
jne 0x14000f60a
cmp r8w, word [rbx + 0x12e]
je 0x14000f660
mov rcx, rsi
call fcn.1400122ec
mov edi, eax
test eax, eax
js 0x14000f641
mov dword [rbx + 0x21b8], r15d
test edi, edi
js 0x14000f635
test byte [rbp + 4], 4
je 0x14000f635
mov eax, dword [rbp + 0x1150]
mov dword [rbx + 0x21bc], eax
xor edx, edx
mov rcx, rbx
call fcn.14000f680
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
add rsi, 2
cmp word [rsi], r15w
jne 0x14000f65c
mov eax, 0x2f
cmp ax, word [rsi - 2]
je 0x14000f618
mov dword [rsi], eax
jmp 0x14000f618
Function at 0x14000f680
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
and qword [r11 + 0x20], 0
lea rdx, [r11 + 0x20]
and qword [r11 + 0x18], 0
mov rsi, rcx
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0xc0]
call qword [0x14002b548]
mov ebx, eax
test eax, eax
js 0x14000f7dc
mov rcx, qword [rsp + 0x98]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
lea rdx, [rsi + 0x28]
lea rax, [rsp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000f7dc
lea rbp, [rsi + 0x1170]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdi, [rsi + 0x128]
mov ebx, eax
mov rcx, rdi
lea r14d, [rax*2 + 2]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x28], ebx
mov r8, rdi
mov ebx, 1
mov qword [rsp + 0x20], rbp
mov r9d, eax
mov edx, ebx
lea ecx, [rbx + 0x7e]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
mov rcx, qword [rsp + 0x90]
lea rdx, str.Path
xor r8d, r8d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbp
lea r9d, [rbx + 1]
test eax, eax
jne 0x14000f787
mov r9d, ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000f7dc
mov rcx, qword [rsp + 0x90]
lea rax, [rsi + 0x21bc]
mov r9d, 4
lea rdx, str.Priority
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14000f7ef
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000f9a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10c0]
mov eax, 0x11c0
call fcn.140029ac0
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x1208], rbx
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rbp + 0x10b0], rax
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rbx, rcx
mov rdi, qword [rbp + 0x1110]
and qword [rsp + 0x38], 0
and qword [rdi], 0
xor edx, edx
mov r8d, 0x1154
lea rcx, [rsp + 0x50]
call fcn.140017700
mov dword [rsp + 0x50], 0x1154
mov dword [rsp + 0x54], 7
or r9, 0xffffffffffffffff
mov r8, rbx
mov edx, 0x80
lea rcx, [rsp + 0x58]
call fcn.1400196e0
mov dword [rsp + 0x30], 0x1048
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Path
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000fb11
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x10a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Priority
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x14000fb11
lea r9, [rsp + 0x38]
mov r8, rsi
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.14000f840
mov ebx, eax
test eax, eax
js 0x14000faea
mov rax, qword [rsp + 0x38]
mov qword [rdi], rax
xor edx, edx
xor ebx, ebx
jmp 0x14000faef
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x14000fb11
mov rax, qword [rdx + 8]
movsxd rcx, dword [rax + 4]
add rdx, 8
add rcx, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14002b548]
nop
mov eax, ebx
mov rcx, qword [rbp + 0x10b0]
xor rcx, rsp
call fcn.140015ba0
mov rbx, qword [rsp + 0x1208]
add rsp, 0x11c0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140010c78
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rcx
xor ebx, ebx
mov rcx, qword [rcx + 0x258]
mov esi, edx
cmp rcx, 0xffffffffffffffff
jne 0x140010ca3
lea ebx, [rcx + 2]
jmp 0x140010d83
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
test esi, esi
je 0x140010d83
cmp dword [rdi + 0x18], ebx
jne 0x140010d83
and qword [rsp + 0x30], rbx
lea rcx, [rdi + 0x34]
and dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x258], rax
mov esi, 0x80070000
cmp rax, 0xffffffffffffffff
jne 0x140010d0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010d83
mov rdx, qword [rdi + 0x248]
xor r9d, r9d
mov rcx, qword [rdi + 0x258]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140010d40
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010d83
mov rcx, qword [rdi + 0x258]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140010d65
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, esi
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140010d83
mov rcx, qword [rdi + 0x28]
mov rdx, qword [rdi + 0x248]
mov r8, rdx
mov rax, qword [rcx]
mov rax, qword [rax + 0xa0]
call qword [0x14002b548]
mov rcx, qword [rdi + 0x258]
cmp rcx, 0xffffffffffffffff
je 0x140010d9e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rdi + 0x258], 0xffffffffffffffff
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140011618
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
and qword [r11 + 0x18], 0
mov rdi, rcx
and dword [rsp + 0x78], 0
mov rax, qword [rdx + 8]
test rax, rax
je 0x14001164c
lea r8, [r11 + 0x18]
mov rdx, rax
call fcn.140011790
mov ebx, eax
test eax, eax
jmp 0x1400116b2
mov r9d, dword [rdx + 0x1c]
lea rax, [rsp + 0x80]
mov r8d, dword [rdx + 0x18]
lea rcx, [rdx + 0x10]
mov qword [rsp + 0x50], rax
mov eax, dword [rdx + 0x34]
mov dword [rsp + 0x48], eax
mov eax, dword [rdx + 0x30]
mov dword [rsp + 0x40], eax
mov eax, dword [rdx + 0x2c]
mov dword [rsp + 0x38], eax
mov eax, dword [rdx + 0x28]
mov dword [rsp + 0x30], eax
mov eax, dword [rdx + 0x24]
mov dword [rsp + 0x28], eax
mov eax, dword [rdx + 0x20]
mov dl, byte [rdx + 0x16]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1400116b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400116ef
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400116e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400116ef
xor ebx, ebx
cmp dword [rsp + 0x78], ebx
sete bl
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140011702
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140011790
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r13
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
mov r15d, 0x44
mov dword [rbp + 0x48], r15d
mov r13, r8
mov r12, rdx
mov dword [rbp + 0x30], 0xff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, r15d
lea edx, [r15 - 0x3c]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x1400117f2
mov ebx, 0x8007000e
jmp 0x140011928
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 8]
call fcn.140011bc8
mov ebx, eax
test eax, eax
js 0x1400118f2
mov rsi, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x30]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, r12
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400118e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400118d6
cmp dword [rbp + 0x48], r15d
jbe 0x140011884
mov edx, dword [rbp + 0x48]
lea r8d, [rax - 0x79]
mov rcx, rdi
call fcn.140015524
mov r15, rax
test rax, rax
jne 0x140011881
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400118f6
mov rdi, r15
cmp dword [rbp + 0x30], 0xff
jbe 0x1400118a3
mov edx, dword [rbp + 0x30]
lea rcx, [rbp - 8]
call fcn.140011bc8
mov ebx, eax
test eax, eax
js 0x1400118f2
mov rsi, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x30]
mov rdx, r12
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400118e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400118f6
mov qword [r13], rdi
xor edi, edi
xor ebx, ebx
jmp 0x1400118f6
mov rsi, qword [rbp - 8]
test rsi, rsi
je 0x14001190f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
je 0x140011928
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret