joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006bd14
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r15
sub rsp, 0x40
and dword [rax - 0x28], 0
mov rbp, r8
mov rdi, rdx
mov dword [rax + 0x20], 4
mov rsi, rcx
mov rcx, qword [0x14009b028]
lea r15, [0x14009b028]
cmp rcx, r15
je 0x14006bd6f
test byte [rcx + 0x1c], 2
je 0x14006bd6f
cmp byte [rcx + 0x19], 5
jb 0x14006bd6f
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b578]
mov edx, 0xe
call fcn.140001024
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
and qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14006bdcd
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14006be67
test byte [rcx + 0x1c], 2
je 0x14006be67
cmp byte [rcx + 0x19], 2
jb 0x14006be67
mov edx, 0xf
jmp 0x14006be54
cmp dword [rsp + 0x78], 4
je 0x14006be08
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14006be01
test byte [rcx + 0x1c], 2
je 0x14006be01
cmp byte [rcx + 0x19], 2
jb 0x14006be01
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b578]
mov edx, 0x10
call fcn.140001024
mov ebx, 0x3f1
jmp 0x14006be67
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
mov rdx, rdi
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14006be67
mov rcx, qword [0x14009b028]
cmp rcx, r15
je 0x14006be67
test byte [rcx + 0x1c], 2
je 0x14006be67
cmp byte [rcx + 0x19], 2
jb 0x14006be67
mov edx, 0x11
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b578]
mov r9d, eax
call fcn.140001050
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop rdi
pop rsi
ret
Function at 0x14006c578
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call sub.msvcrt.dll_memset
mov rcx, qword [0x14009b028]
lea rdi, [0x14009b028]
cmp rcx, rdi
je 0x14006c5d9
test byte [rcx + 0x1c], 2
je 0x14006c5d9
cmp byte [rcx + 0x19], 5
jb 0x14006c5d9
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b6b8]
mov edx, 0xa
call fcn.140001024
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
xor edx, edx
test eax, eax
jne 0x14006c649
mov rax, qword [0x14009b028]
cmp rax, rdi
je 0x14006c6a3
test byte [rax + 0x1c], 2
je 0x14006c6a3
cmp byte [rax + 0x19], 2
jb 0x14006c6a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x14008b6b8]
mov r9d, eax
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, qword [rcx + 0x10]
call fcn.140001050
jmp 0x14006c6a3
cmp dword [rsp + 0x30], 2
je 0x14006c66f
mov rcx, qword [0x14009b028]
cmp rcx, rdi
je 0x14006c6a3
test byte [rcx + 0x1c], 2
je 0x14006c6a3
cmp byte [rcx + 0x19], 3
jb 0x14006c6a3
mov edx, 0xd
jmp 0x14006c693
cmp dword [rsp + 0x24], 5
jae 0x14006c6aa
mov rcx, qword [0x14009b028]
cmp rcx, rdi
je 0x14006c6a3
test byte [rcx + 0x1c], 2
je 0x14006c6a3
cmp byte [rcx + 0x19], 3
jb 0x14006c6a3
mov edx, 0xe
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b6b8]
call fcn.140001024
xor eax, eax
jmp 0x14006c72c
mov cl, byte [rsp + 0x138]
mov eax, 0x40
test al, cl
je 0x14006c6ca
cmp byte [rsp + 0x13a], 1
lea ecx, [rax - 0x20]
cmove eax, ecx
jmp 0x14006c72c
mov eax, 0x200
test word [rsp + 0x138], ax
je 0x14006c6e0
mov eax, 1
jmp 0x14006c72c
test cl, 2
je 0x14006c6ec
mov eax, 8
jmp 0x14006c72c
mov eax, 0x80
test al, cl
je 0x14006c6fc
mov eax, 0x10
jmp 0x14006c72c
mov ecx, 0x400
test word [rsp + 0x138], cx
jne 0x14006c72c
mov cl, byte [rsp + 0x13a]
cmp cl, 1
jne 0x14006c71e
mov eax, 2
jmp 0x14006c72c
sub cl, 2
mov eax, 4
cmp cl, 1
cmova eax, edx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14007ec50
add rsp, 0x150
pop rdi
ret
Function at 0x14006d90c
Capabilities:
Get common file path
Query environment variable

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebx, 0x208
lea rcx, [rsp + 0x40]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, ebx
lea rcx, [rsp + 0x250]
xor edx, edx
call sub.msvcrt.dll_memset
cmp qword [0x14009bd40], 0xffffffffffffffff
je 0x14006d968
lock inc dword [0x14009f524]
mov eax, 1
jmp 0x14006d9f3
mov ebx, 0x104
lea rdx, [rsp + 0x40]
mov r8d, ebx
lea rcx, str.FXSSVCDebugLogFile.txt
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
ja 0x14006d9f1
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
jne 0x14006da0d
lea rdx, [rsp + 0x250]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
test eax, eax
je 0x14006d9f1
lea rax, [rsp + 0x40]
mov edx, ebx
lea r9, [rsp + 0x250]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [0x14009f530]
call fcn.140002ac0
test eax, eax
jns 0x14006da23
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14007ec50
add rsp, 0x470
pop rbx
ret
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [0x14009f530]
call fcn.140002b44
jmp 0x14006d9ed
mov dword [rsp + 0x28], 0x80
lea rcx, [0x14009f530]
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
mov r8d, 3
call fcn.140069cbc
mov qword [0x14009bd40], rax
cmp rax, 0xffffffffffffffff
je 0x14006d9f1
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14006da96
mov rcx, qword [0x14009bd40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
or qword [0x14009bd40], 0xffffffffffffffff
jmp 0x14006d9f1
mov eax, 1
xchg dword [0x14009f524], eax
jmp 0x14006d95e
Function at 0x14006daac
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rbx
push rdi
lea rbp, [rax - 0x778]
sub rsp, 0x860
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rbp + 0x750], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x800
call sub.msvcrt.dll_memset
xor edi, edi
cmp dword [0x14009f528], edi
jne 0x14006dbb2
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftFaxClient
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14006db39
mov eax, edi
jmp 0x14006db99
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DebugLevel
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14006db80
cmp dword [rsp + 0x38], 4
je 0x14006db84
mov dword [rsp + 0x30], edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [rsp + 0x30]
mov rbx, qword [rbp + 0x780]
mov dword [0x14009bd48], eax
mov dword [0x14009f528], 1
jmp 0x14006dbb8
mov eax, dword [0x14009bd48]
test eax, eax
jle 0x14006dc5b
mov r8, rbx
lea r9, [rbp + 0x788]
mov ebx, 0x3ff
lea rcx, [rsp + 0x50]
mov edx, ebx
call qword [sym.imp.msvcrt.dll__vsnwprintf]
nop dword [rax + rax]
test eax, eax
js 0x14006dc5b
cdqe
cmp rax, rbx
ja 0x14006dc5b
jne 0x14006dbf6
mov word [rbp + 0x74e], di
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x14006dbff
mov edx, 0x3fd
mov r8d, 0xa
cmp rax, rdx
cmovb edx, eax
lea eax, [rdx - 1]
cmp word [rsp + rax*2 + 0x50], r8w
je 0x14006dc4a
lea ecx, [r8 + 3]
mov word [rsp + rdx*2 + 0x50], cx
lea eax, [rdx + 1]
lea ecx, [rdx + 2]
mov word [rsp + rax*2 + 0x50], r8w
add rcx, rcx
cmp rcx, 0x800
jae 0x14006dc76
mov word [rsp + rcx + 0x50], di
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.14007ec50
add rsp, 0x860
pop rdi
pop rbx
pop rbp
ret
call fcn.14007eee8
int3
Function at 0x14006e06c
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r13d, dword [rsp + 0xb8]
xor edi, edi
mov r14, qword [rsp + 0xc0]
xor ebx, ebx
mov rbp, r9
mov r15, r8
mov r12, rdx
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14006e0de
test byte [rcx + 0x1c], 2
je 0x14006e0de
cmp byte [rcx + 0x19], 5
jb 0x14006e0de
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xa]
lea r8, [0x14008b7b0]
call fcn.140001024
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14006e14e
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14006e1ff
test byte [rcx + 0x1c], 2
je 0x14006e1ff
cmp byte [rcx + 0x19], 2
jb 0x14006e1ff
lea edx, [rsi + 0xb]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b7b0]
mov r9d, ebx
call fcn.140001050
jmp 0x14006e1ff
mov r8d, r13d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14006e19d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14006e1ff
test byte [rcx + 0x1c], 2
je 0x14006e1ff
cmp byte [rcx + 0x19], 2
jb 0x14006e1ff
lea edx, [rdi + 0xc]
jmp 0x14006e136
test r14, r14
je 0x14006e1f8
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x14006e1f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14006e1ff
test byte [rcx + 0x1c], 2
je 0x14006e1ff
cmp byte [rcx + 0x19], 2
jb 0x14006e1ff
mov edx, 0xd
jmp 0x14006e136
mov eax, dword [rsp + 0x24]
mov dword [r14], eax
mov qword [r15], rsi
mov qword [rbp], rdi
test ebx, ebx
je 0x14006e20e
mov rdx, rdi
mov rcx, rsi
call fcn.14006e23c
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007ec50
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006e358
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
cmp rcx, r14
je 0x14006e3a1
test byte [rcx + 0x1c], 2
je 0x14006e3a1
cmp byte [rcx + 0x19], 5
jb 0x14006e3a1
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b7b0]
mov edx, 0x11
call fcn.140001024
mov ebx, 0x100000
lea r8, str.GlobalFaxSvcRPCStarted_1ed23866_f90b_4ec5_b77e_36e8709422b6
mov ecx, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenEventW]
nop dword [rax + rax]
test rax, rax
jne 0x14006e4e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x14006e402
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x14006e45a
test byte [rax + 0x1c], 2
je 0x14006e45a
cmp byte [rax + 0x19], 2
jb 0x14006e45a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, 0x12
jmp 0x14006e440
mov r8d, 0x1f0003
mov edx, ebx
mov ecx, ebx
call fcn.14006f294
mov rsi, rax
test rax, rax
jne 0x14006e461
mov rax, qword [0x14009b028]
cmp rax, r14
je 0x14006e45a
test byte [rax + 0x1c], 2
je 0x14006e45a
cmp byte [rax + 0x19], 2
jb 0x14006e45a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea edx, [rsi + 0x13]
mov rcx, qword [0x14009b028]
lea r8, [0x14008b7b0]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140001050
xor eax, eax
jmp 0x14006e4e2
xor r8d, r8d
lea r9, str.GlobalFaxSvcRPCStarted_1ed23866_f90b_4ec5_b77e_36e8709422b6
mov rcx, rsi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
xor edi, edi
mov rbx, rax
test rax, rax
jne 0x14006e4c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14006e4c4
test byte [rcx + 0x1c], 2
je 0x14006e4c4
cmp byte [rcx + 0x19], 2
jb 0x14006e4c4
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x14]
mov r9d, eax
lea r8, [0x14008b7b0]
call fcn.140001050
mov rcx, rsi
call fcn.14006f7f4
test rbx, rbx
jne 0x14006e4df
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14006f93c
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, r8d
mov rbx, rcx
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
lea r15, [0x14008b7b0]
cmp rcx, r14
je 0x14006f99b
test byte [rcx + 0x1c], 2
je 0x14006f99b
cmp byte [rcx + 0x19], 5
jb 0x14006f99b
mov rcx, qword [rcx + 0x10]
mov edx, 0x4c
mov r8, r15
call fcn.140001024
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x14006f9f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14006f9ed
test byte [rcx + 0x1c], 2
je 0x14006f9ed
cmp byte [rcx + 0x19], 2
jb 0x14006f9ed
mov edx, 0x4d
mov rcx, qword [rcx + 0x10]
mov r9d, ebx
mov r8, r15
call fcn.140001050
mov eax, ebx
jmp 0x14006fb0c
cmp dword [rsp + 0x24], 1
je 0x14006fb0a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov edi, eax
jmp 0x14006fa56
mov r9d, dword [rsp + 0x24]
cmp r9d, 1
je 0x14006fb0a
cmp r9d, 3
jne 0x14006fada
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, edi
cmp eax, esi
ja 0x14006faaa
mov eax, dword [rsp + 0x38]
mov ecx, 0x1388
shr eax, 1
cmp eax, ecx
cmovb ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x14006fa0f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14006f9ed
test byte [rcx + 0x1c], 2
je 0x14006f9ed
cmp byte [rcx + 0x19], 2
jb 0x14006f9ed
mov edx, 0x4e
jmp 0x14006f9de
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14006fad3
test byte [rcx + 0x1c], 2
je 0x14006fad3
cmp byte [rcx + 0x19], 2
jb 0x14006fad3
mov rcx, qword [rcx + 0x10]
mov edx, 0x50
mov r8, r15
call fcn.140001024
mov eax, 0x5b4
jmp 0x14006fb0c
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14006fb03
test byte [rcx + 0x1c], 2
je 0x14006fb03
cmp byte [rcx + 0x19], 2
jb 0x14006fb03
mov rcx, qword [rcx + 0x10]
mov edx, 0x4f
mov r8, r15
call fcn.140001050
mov eax, 0x426
jmp 0x14006fb0c
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007ec50
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14006fb38
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebp, r8d
mov rsi, rdx
mov edi, ecx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
xor ebx, ebx
call sub.msvcrt.dll_memset
mov rcx, qword [0x14009b028]
lea r12, [0x14009b028]
cmp rcx, r12
je 0x14006fba6
test byte [rcx + 0x1c], 2
je 0x14006fba6
cmp byte [rcx + 0x19], 5
jb 0x14006fba6
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x14008b968]
call fcn.140001024
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x14006fc0d
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14006fbfc
test byte [rcx + 0x1c], 2
je 0x14006fbfc
cmp byte [rcx + 0x19], 2
jb 0x14006fbfc
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b968]
mov edx, VariantTimeToDosDateTime
mov r9d, eax
call fcn.140001050
movzx ecx, di
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14006fc5b
mov rdx, rbp
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.140002b44
mov edi, eax
test eax, eax
jns 0x14006fc56
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14006fbfc
test byte [rcx + 0x1c], 2
je 0x14006fbfc
cmp byte [rcx + 0x19], 2
jb 0x14006fbfc
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b968]
movzx r9d, di
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.140001050
jmp 0x14006fbfc
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007ec50
add rsp, 0x250
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007b5f4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edi, edx
mov ebx, ecx
mov rcx, qword [0x14009b028]
lea rbp, [0x14009b028]
cmp rcx, rbp
je 0x14007b650
test byte [rcx + 0x1c], 2
je 0x14007b650
cmp byte [rcx + 0x19], 5
jb 0x14007b650
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c6c8]
mov edx, 0x65
call fcn.140001024
mov r9d, ebx
mov dword [rsp + 0x20], edi
lea r8, str._ld:_ld
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140002ac0
mov ebx, eax
test eax, eax
jns 0x14007b6bc
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14007b6a3
test byte [rcx + 0x1c], 2
je 0x14007b6a3
cmp byte [rcx + 0x19], 2
jb 0x14007b6a3
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c6c8]
mov edx, 0x66
mov r9d, eax
call fcn.140001050
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
jmp 0x14007b781
mov r9d, 0x10000
lea rdx, str.SoftwareMicrosoftFaxOutbound_RoutingRules
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.14006b230
mov rdi, rax
test rax, rax
jne 0x14007b722
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14007b781
test byte [rcx + 0x1c], 2
je 0x14007b781
cmp byte [rcx + 0x19], 2
jb 0x14007b781
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x67]
mov r9d, eax
lea r8, [0x14008c6c8]
call fcn.140001050
jmp 0x14007b781
xor r9d, r9d
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14007b772
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14007b772
test byte [rcx + 0x1c], 2
je 0x14007b772
cmp byte [rcx + 0x19], 2
jb 0x14007b772
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c6c8]
mov edx, 0x68
mov r9d, eax
call fcn.140001050
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007ec50
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14007bc38
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
and qword [rsp + 0x48], 0
mov rdi, rcx
mov rcx, qword [0x14009b028]
lea rbp, [0x14009b028]
cmp rcx, rbp
je 0x14007bc84
test byte [rcx + 0x1c], 2
je 0x14007bc84
cmp byte [rcx + 0x19], 5
jb 0x14007bc84
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c6c8]
mov edx, 0x75
call fcn.140001024
lea rax, [rsp + 0x48]
mov r9d, 0x10000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftFaxDevice_Providers
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14007bce8
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14007bd81
test byte [rcx + 0x1c], 2
je 0x14007bd81
cmp byte [rcx + 0x19], 2
jb 0x14007bd81
mov edx, 0x76
mov r9d, eax
jmp 0x14007bd71
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14007bd3c
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14007bd3c
test byte [rcx + 0x1c], 2
je 0x14007bd3c
cmp byte [rcx + 0x19], 2
jb 0x14007bd3c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c6c8]
mov edx, 0x77
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140001328
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test eax, eax
je 0x14007bd81
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14007bd81
test byte [rcx + 0x1c], 2
je 0x14007bd81
cmp byte [rcx + 0x19], 2
jb 0x14007bd81
mov edx, 0x78
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c6c8]
call fcn.140001050
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14007e094
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
lea rdx, [rbp + 0x27]
mov bl, dil
call qword [sym.imp.RPCRT4.dll_I_RpcBindingIsClientLocal]
nop dword [rax + rax]
test eax, eax
jne 0x14007e198
cmp dword [rbp + 0x27], edi
je 0x14007e198
lea ebx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
lea r9, [rbp + 0x37]
mov r8d, ebx
mov rcx, rax
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x14007e198
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x3f], edi
mov qword [rsp + 0x50], rax
lea r8d, [rdi + 2]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
mov dl, bl
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rbp + 0x43], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14007e188
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x2b]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x14007e178
cmp dword [rbp + 0x2b], edi
cmovne ebx, edi
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14007ec50
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret