joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c8c8
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r15
sub rsp, 0x260
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rsp + 0x250], rax
xor ebp, ebp
mov rbx, rcx
mov qword [rsp + 0x30], rbp
mov rcx, qword [0x14016f048]
lea r15, [0x14016f048]
lea r12, [0x140148140]
cmp rcx, r15
je 0x14002c931
test byte [rcx + 0x1c], 1
je 0x14002c931
cmp byte [rcx + 0x19], 4
jb 0x14002c931
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c5
mov r8, r12
call fcn.1400049d8
mov edx, dword [rbx + 0x150]
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x158]
call fcn.14010572c
mov edi, eax
test eax, eax
jns 0x14002c993
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x14002ca84
test byte [rcx + 0x1c], 1
je 0x14002ca84
cmp byte [rcx + 0x19], 2
jb 0x14002ca84
mov r9, qword [rbx + 0x158]
mov edx, 0x2c6
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x20], eax
call fcn.140005938
jmp 0x14002ca7d
mov edi, 0x101
lea rcx, [rsp + 0x40]
mov r8d, edi
mov dword [rsp + 0x38], edi
xor edx, edx
call sub.msvcrt.dll_memset
mov r8, qword [rbx + 0x260]
lea rcx, [rsp + 0x40]
test r8, r8
jne 0x14002ca12
lea rdx, [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x14002ca1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x14002ca0b
test byte [rcx + 0x1c], 1
je 0x14002ca0b
cmp byte [rcx + 0x19], 2
jb 0x14002ca0b
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c7
movzx r9d, ax
mov r8, r12
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
call fcn.1400049f8
mov word [rsp + 0x40], bp
jmp 0x14002ca1a
mov rdx, rdi
call fcn.140039dd4
mov r8, qword [rbx + 0x188]
lea r9, [rsp + 0x40]
mov rdx, qword [rbx + 0x158]
mov rcx, qword [rsp + 0x30]
call fcn.1400d707c
mov edi, eax
test eax, eax
jns 0x14002ca7d
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x14002ca84
test byte [rcx + 0x1c], 1
je 0x14002ca84
cmp byte [rcx + 0x19], 2
jb 0x14002ca84
mov r9, qword [rbx + 0x158]
mov edx, 0x2c8
mov rcx, qword [rcx + 0x10]
mov r8, r12
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x160]
mov qword [rsp + 0x20], rax
call fcn.140005a64
mov rcx, qword [0x14016f048]
cmp qword [rsp + 0x30], rbp
je 0x14002ca9d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [0x14016f048]
cmp rcx, r15
je 0x14002cabf
test byte [rcx + 0x1c], 1
je 0x14002cabf
cmp byte [rcx + 0x19], 4
jb 0x14002cabf
mov rcx, qword [rcx + 0x10]
mov edx, 0x2c9
mov r8, r12
call fcn.1400049d8
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14013e290
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r12
pop rdi
ret
Function at 0x14004a83c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x20]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x10], rax
mov rsi, r8
mov qword [r11 - 0x18], r8
xor r9d, r9d
xor r8d, r8d
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004a8f3
cmp dword [rsi], ebx
je 0x14004a8ae
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14004a967
test byte [rcx + 0x1c], 1
je 0x14004a967
cmp byte [rcx + 0x19], 4
jb 0x14004a967
mov edx, 0x213
jmp 0x14004a8de
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14004a967
test byte [rcx + 0x1c], 1
je 0x14004a967
cmp byte [rcx + 0x19], 4
jb 0x14004a967
mov edx, 0x214
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148ac8]
mov r9, rdi
call fcn.1400058d8
jmp 0x14004a967
cmp eax, 2
jne 0x14004a91e
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14004a967
test byte [rcx + 0x1c], 1
je 0x14004a967
cmp byte [rcx + 0x19], 3
jb 0x14004a967
mov edx, 0x215
jmp 0x14004a8de
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, qword [0x14016f048]
lea rax, [0x14016f048]
cmp rcx, rax
je 0x14004a967
test byte [rcx + 0x1c], 1
je 0x14004a967
cmp byte [rcx + 0x19], 2
jb 0x14004a967
mov rcx, qword [rcx + 0x10]
lea r8, [0x140148ac8]
mov edx, 0x216
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140005938
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14005dc10
Capabilities:
Accept command line arguments
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
cmp byte [0x140170271], 0
mov qword [0x140170278], rcx
je 0x14005dc41
lea r8, [0x140145894]
mov edx, 0xe41
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
or eax, 0xffffffff
jmp 0x14005dc6a
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.14005e018
cmp al, 1
jne 0x14005dc66
add rsp, 0x28
jmp 0x14005e2b4
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r14
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r14d, r14d
lea r8, str.AppID
mov r9d, 0x20019
mov qword [rsp + 0x50], r14
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x60], r14
call fcn.140001d48
mov ebx, eax
test eax, eax
je 0x14005e320
mov dword [0x1401705bc], eax
jmp 0x14005e3e5
mov rdx, qword [rsp + 0x50]
lea r8, [0x140148fc0]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001d48
mov ebx, eax
test eax, eax
jne 0x14005e3cd
cmp qword [rsp + 0x38], r14
jne 0x14005e370
lea r8, str.m_hKey___0
mov edx, 0x15ed
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e43e
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x14005e41d
mov dword [0x1401705cc], r14d
lea rcx, [0x140170340]
call fcn.14005d718
mov ebx, eax
mov dword [0x1401705bc], eax
cmp qword [rsp + 0x38], r14
je 0x14005e3e5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r14
je 0x14005e3f7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14013e290
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005e436
test al, 1
jne 0x14005e3b8
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x14005e43b
jmp 0x14005e3b8
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x1401705cc], r14d
test eax, eax
jne 0x14005e3bf
lea rax, [0x1401703a8]
mov dword [0x1401705cc], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x14005e570]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14005e492
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005e3cb
mov ebx, dword [0x1401705bc]
jmp 0x14005e3d3
Function at 0x14005de10
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rdi, qword [0x1401706a0]
mov rsi, rcx
mov rax, qword [0x1401706a8]
mov ebx, 1
jmp 0x14005dec2
test ebx, ebx
js 0x14005e005
mov r14, qword [rdi]
test r14, r14
je 0x14005debe
and qword [rsp + 0x50], 0
cmp qword [r14 + 0x10], 0
jne 0x14005de5d
xor ebx, ebx
jmp 0x14005debe
mov rcx, qword [r14 + 0x18]
lea r8, [rsp + 0x50]
mov rax, qword [r14 + 0x10]
lea rdx, [0x140149308]
call qword [case.0x1400057f3.0]
mov ebx, eax
test eax, eax
js 0x14005dea0
mov rdx, qword [rsp + 0x50]
lea rax, [r14 + 0x28]
mov rcx, qword [r14]
mov r9d, 5
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 1]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14005deb7
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1400057f3.0]
mov rax, qword [0x1401706a8]
add rdi, 8
cmp rdi, rax
jb 0x14005de3c
test ebx, ebx
js 0x14005e005
lea r14, str.___HRESULT__hr_____0_
jne 0x14005dfe9
cmp byte [rsi + 0x60], 0
je 0x14005df87
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x50], rax
test rax, rax
je 0x14005df80
lea rax, [rsp + 0x58]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14005e730]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x14005df38
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x14005df80
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x14005df75
mov r8, r14
lea rcx, str.sdkinc_atlmfc_atlbase.h
mov edx, 0xdbc
call fcn.140082070
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [rsi + 0x58]
mov rcx, rdi
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005dfa7
mov ebx, 0x80004005
jmp 0x14005dfab
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x14005e005
mov r8, r14
lea rcx, str.sdkinc_atlmfc_atlbase.h
mov edx, 0xdc7
call fcn.140082070
test ebx, ebx
jns 0x14005e005
mov rdi, qword [0x1401706a0]
xor eax, eax
mov rcx, qword [0x1401706a8]
jmp 0x14005dfe2
test eax, eax
jne 0x14005dfed
mov rdx, qword [rdi]
test rdx, rdx
je 0x14005dfde
cmp dword [rdx + 0x28], eax
je 0x14005dfde
mov ecx, dword [rdx + 0x28]
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rcx, qword [0x1401706a8]
add rdi, 8
cmp rdi, rcx
jb 0x14005dfbd
jmp 0x14005dfed
mov byte [rsi + 0x60], 0
test ebx, ebx
jns 0x14005e005
mov r8, r14
lea rcx, str.sdkinc_atlmfc_atlbase.h
mov edx, 0xde7
call fcn.140082070
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14005e2b4
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x28
cmp byte [0x140170271], 0
mov qword [0x140170278], rcx
je 0x14005dc41
lea r8, [0x140145894]
mov edx, 0xe41
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
or eax, 0xffffffff
jmp 0x14005dc6a
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.14005e018
cmp al, 1
jne 0x14005dc66
add rsp, 0x28
jmp 0x14005e2b4
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], r14
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xor r14d, r14d
lea r8, str.AppID
mov r9d, 0x20019
mov qword [rsp + 0x50], r14
mov rdx, 0xffffffff80000000
mov qword [rsp + 0x58], r14
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x60], r14
call fcn.140001d48
mov ebx, eax
test eax, eax
je 0x14005e320
mov dword [0x1401705bc], eax
jmp 0x14005e3e5
mov rdx, qword [rsp + 0x50]
lea r8, [0x140148fc0]
mov r9d, 0x20019
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
call fcn.140001d48
mov ebx, eax
test eax, eax
jne 0x14005e3cd
cmp qword [rsp + 0x38], r14
jne 0x14005e370
lea r8, str.m_hKey___0
mov edx, 0x15ed
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e43e
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x14005e41d
mov dword [0x1401705cc], r14d
lea rcx, [0x140170340]
call fcn.14005d718
mov ebx, eax
mov dword [0x1401705bc], eax
cmp qword [rsp + 0x38], r14
je 0x14005e3e5
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x50], r14
je 0x14005e3f7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14013e290
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14005e436
test al, 1
jne 0x14005e3b8
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x14005e43b
jmp 0x14005e3b8
mov word [rbp - 0x70], r14w
mov eax, r14d
mov dword [0x1401705cc], r14d
test eax, eax
jne 0x14005e3bf
lea rax, [0x1401703a8]
mov dword [0x1401705cc], 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
lea rax, [0x14005e570]
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], r14
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14005e492
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005e3cb
mov ebx, dword [0x1401705bc]
jmp 0x14005e3d3
Function at 0x14005e578
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
push rbp
mov rbp, rsp
sub rsp, 0x80
mov r14b, dl
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x14005e5ed
lea r8d, [rdi + 1]
mov rcx, rax
lea rdx, [0x1401703a8]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x14005e5d6
mov rcx, rax
mov edi, 1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x14005e5ed
mov eax, 0x80004005
jmp 0x14005e711
mov edx, 0x67
lea rax, str.APPID
xorps xmm0, xmm0
mov qword [rbp - 0x28], rax
lea rbx, [0x140148fc0]
lea r9, [rbp - 0x28]
mov qword [rbp - 0x20], rbx
lea r8d, [rdx - 0x66]
movdqu xmmword [rbp - 0x18], xmm0
call fcn.140003d18
test eax, eax
js 0x14005e711
and qword [rbp - 0x40], 0
lea r8, str.AppID
and qword [rbp - 0x38], 0
lea rcx, [rbp - 0x40]
and qword [rbp - 0x30], 0
mov r9d, 0x20006
mov rdx, 0xffffffff80000000
call fcn.140001d48
test eax, eax
je 0x14005e663
mov ecx, eax
call fcn.140001b84
mov ebx, eax
jmp 0x14005e6fe
mov rdx, qword [rbp - 0x40]
lea rcx, [rbp - 0x28]
and qword [rbp - 0x28], 0
mov r8, rbx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
call fcn.140001c98
mov rdi, qword [rbp - 0x28]
test eax, eax
je 0x14005e695
mov ecx, eax
call fcn.140001b84
mov ebx, eax
jmp 0x14005e6f0
test rdi, rdi
jne 0x14005e6b2
lea r8, str.m_hKey___0
mov edx, 0x150c
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
lea rdx, str.LocalService
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test r14b, r14b
je 0x14005e6ee
lea r8, [0x1401703a8]
lea rdx, str.LocalService
lea rcx, [rbp - 0x28]
call fcn.140001dfc
call fcn.14005e798
test eax, eax
jne 0x14005e6ee
mov ebx, 0x80004005
jmp 0x14005e6f0
xor ebx, ebx
test rdi, rdi
je 0x14005e6fe
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp - 0x40], 0
je 0x14005e70f
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14005eab4
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 8], rdi
push rbp
mov rbp, rsp
sub rsp, 0x70
call fcn.14005ebd8
test eax, eax
jne 0x14005ead4
mov eax, 0x80004005
jmp 0x14005ebc8
and qword [rbp - 0x38], 0
lea r8, str.AppID
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x38]
and qword [rbp - 0x28], 0
mov r9d, 0x20006
mov rdx, 0xffffffff80000000
call fcn.140001d48
test eax, eax
je 0x14005eb12
mov ecx, eax
call fcn.140001b84
mov edi, eax
jmp 0x14005ebb5
mov rdx, qword [rbp - 0x38]
lea rdi, [0x140148fc0]
and qword [rbp - 0x50], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x48], 0
mov r8, rdi
and qword [rbp - 0x40], 0
mov r9d, 0x20006
call fcn.140001d48
test eax, eax
je 0x14005eb4b
mov ecx, eax
call fcn.140001b84
jmp 0x14005eba2
cmp qword [rbp - 0x50], 0
jne 0x14005eb6a
lea r8, str.m_hKey___0
mov edx, 0x150c
lea rcx, str.sdkinc_atlmfc_atlbase.h
call fcn.140082070
mov rcx, qword [rbp - 0x50]
lea rdx, str.LocalService
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor r8d, r8d
mov qword [rbp - 0x18], rdi
lea rax, str.APPID
xorps xmm0, xmm0
lea r9, [rbp - 0x20]
mov qword [rbp - 0x20], rax
movdqu xmmword [rbp - 0x10], xmm0
lea edx, [r8 + 0x67]
call fcn.140003d18
cmp qword [rbp - 0x50], 0
mov edi, eax
je 0x14005ebb5
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp - 0x38], 0
je 0x14005ebc6
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rdi, qword [rsp + 0x80]
add rsp, 0x70
pop rbp
ret
Function at 0x140060258
Capabilities:
Get user security identifier

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x140
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14016f608]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rsi, rdx
mov rbx, rcx
lea r14, [rcx + 0x50]
mov dword [r14], 7
lea r15, [rcx + 0x58]
mov rcx, r15
call fcn.140060184
lea r12, [rbx + 0x60]
mov rcx, r12
call fcn.140060184
lea rax, [rbx + 0x68]
mov rcx, rax
call fcn.140060184
lea r13, [rbx + 0x70]
mov rcx, r13
call fcn.140060184
mov byte [rbx + 0x4c], 0
test rsi, rsi
jne 0x1400602f3
lea r8, str.pszAccountName
mov edx, 0x9c
lea rcx, str.sdkinc_atlmfc_atlsecurity.inl
call fcn.140082070
jmp 0x14006046d
and qword [rsp + 0x50], 0
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.140004908
mov rdi, qword [rsp + 0x50]
mov dword [rsp + 0x44], 0x44
mov dword [rsp + 0x40], 0x80
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x20]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400603af
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14006042b
cmp dword [rsp + 0x44], 0x44
ja 0x140060496
cmp dword [rsp + 0x40], 0x80
jbe 0x140060383
mov edx, dword [rsp + 0x40]
add rdx, rdx
lea rcx, [rsp + 0x50]
call fcn.14005fda0
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x30], r14
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x20]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x14006042b
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
cmp eax, 0x44
jb 0x1400603d6
lea r8, str.::GetLengthSid_pSid_____sizeof_SID____sizeof_ULONG_____15___sizeof_ULONG___
mov edx, 0xc4
lea rcx, str.sdkinc_atlmfc_atlsecurity.inl
call fcn.140082070
mov byte [rbx + 0x4c], 1
lea rdx, [rbx + 8]
lea r8, [rbp - 0x20]
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x14006042b
mov rdx, rdi
mov rcx, r12
call fcn.140060054
mov rdx, rsi
mov rcx, r15
call fcn.140060054
xor edx, edx
mov rcx, r13
call fcn.140060054
nop
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x50], rcx
je 0x140060427
lea rcx, [rsp + 0x50]
call fcn.140004808
mov al, 1
jmp 0x14006046f
mov dword [r14], 7
mov rcx, r15
call fcn.140060184
mov rcx, r12
call fcn.140060184
lea rcx, [rbx + 0x68]
call fcn.140060184
mov rcx, r13
call fcn.140060184
mov byte [rbx + 0x4c], 0
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x50], rax
je 0x14006046d
lea rcx, [rsp + 0x50]
call fcn.140004808
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14013e290
mov rbx, qword [rsp + 0x190]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001b04
int3
Function at 0x14007e1d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r14, rdx
mov rdi, rcx
mov rcx, qword [0x14016f048]
lea rsi, [0x14016f048]
lea r13, [0x14014b288]
cmp rcx, rsi
je 0x14007e22f
test byte [rcx + 0x1c], 1
je 0x14007e22f
cmp byte [rcx + 0x19], 4
jb 0x14007e22f
mov rcx, qword [rcx + 0x10]
mov edx, 0x25
mov r8, r13
call fcn.1400049d8
mov rcx, qword [0x14016f048]
xor ebx, ebx
mov dword [rsp + 0x70], ebx
test rdi, rdi
jne 0x14007e259
lea r8, str.wszfilePath___NULL
mov edx, 0x20e
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.140082070
mov rcx, qword [0x14016f048]
test ebp, ebp
jne 0x14007e27c
lea r8, str.cToSave___0
mov edx, 0x20f
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.140082070
mov rcx, qword [0x14016f048]
test r14, r14
jne 0x14007e2a0
lea r8, str.pbToSave___NULL
mov edx, 0x210
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.140082070
mov rcx, qword [0x14016f048]
cmp rcx, rsi
je 0x14007e2c5
test byte [rcx + 0x1c], 1
je 0x14007e2c5
cmp byte [rcx + 0x19], 4
jb 0x14007e2c5
mov rcx, qword [rcx + 0x10]
mov edx, 0x26
mov r9, rdi
mov r8, r13
call fcn.1400058d8
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2000080
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14007e355
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x14016f048]
lea rbp, [0x14016f048]
cmp rcx, rbp
je 0x14007e415
test byte [rcx + 0x1c], 1
je 0x14007e3f3
cmp byte [rcx + 0x19], 2
jb 0x14007e3f3
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x28]
mov r9, rdi
mov dword [rsp + 0x20], eax
mov r8, r13
call fcn.140005938
jmp 0x14007e3ec
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rbx
mov r8d, ebp
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14007e3be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
mov ebx, eax
mov rcx, qword [0x14016f048]
lea rbp, [0x14016f048]
cmp rcx, rbp
je 0x14007e3e3
test byte [rcx + 0x1c], 1
je 0x14007e3e3
cmp byte [rcx + 0x19], 2
jb 0x14007e3e3
mov rcx, qword [rcx + 0x10]
mov edx, 0x28
mov r9d, eax
mov r8, r13
call fcn.1400049f8
jmp 0x14007e3e3
cmp ebp, dword [rsp + 0x70]
je 0x14007e3dc
lea r8, str.cToSave__dwBytesWritten
mov edx, 0x233
lea rcx, str.base_stor_blbengine_service_sppmetadatamanager.cpp
call fcn.140082070
lea rbp, [0x14016f048]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14016f048]
cmp rcx, rbp
je 0x14007e415
test byte [rcx + 0x1c], 1
je 0x14007e415
cmp byte [rcx + 0x19], 4
jb 0x14007e415
mov rcx, qword [rcx + 0x10]
mov edx, 0x29
mov r8, r13
call fcn.1400049d8
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop rdi
ret