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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
xor ebx, ebx
mov eax, r8d
and dword [rsp + 0x60], ebx
mov r12, r9
xor ebp, ebp
mov r15d, r8d
neg eax
sbb r14d, r14d
and r14d, 6
lea r9d, [r14 + 0x20019]
call fcn.140066b60
mov rdi, rax
test rax, rax
je 0x140067363
and qword [rsp + 0x58], rbx
lea rax, [rsp + 0x60]
and qword [rsp + 0x50], rbx
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
and qword [rsp + 0x40], rbx
lea rax, [rsp + 0xb0]
and qword [rsp + 0x38], rbx
xor edx, edx
and qword [rsp + 0x30], rbx
mov rcx, rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140067283
lea rcx, str.RegQueryInfoKey___failed__ec_d
jmp 0x140067353
mov r9, qword [rsp + 0xc0]
xor edx, edx
mov r8d, dword [rsp + 0x64]
mov rcx, rdi
mov rax, r12
call qword [0x140081860]
test eax, eax
je 0x14006735a
mov eax, dword [rsp + 0xb0]
add eax, 4
mov dword [rsp + 0xb0], eax
cmp eax, 0x7ffffffe
ja 0x14006735a
lea ecx, [rax + 1]
add rcx, rcx
call fcn.140063430
mov rbx, rax
test rax, rax
je 0x14006735a
xor edx, edx
mov r9d, dword [rsp + 0xb0]
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x140067345
lea r9d, [r14 + 0x20019]
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call fcn.140066b60
mov rsi, rax
test rax, rax
je 0x140067339
mov r9, qword [rsp + 0xc0]
mov rcx, rax
mov rax, r12
mov r8d, ebp
mov rdx, rbx
call qword [0x140081860]
mov rcx, rsi
test eax, eax
je 0x14006733d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
mov edx, ebp
jmp 0x1400672db
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006735a
cmp eax, 0x103
je 0x14006735a
lea rcx, str.RegEnumKey___failed__ec_d
mov edx, eax
call fcn.140069168
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.1400634d4
lea r11, [rsp + 0x70]
mov eax, ebp
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14006738c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x48], 0
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x1400673fa
test byte [rcx + 0x1c], 2
je 0x1400673fa
cmp byte [rcx + 0x19], 5
jb 0x1400673fa
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085358]
mov edx, 0xa
call fcn.140001024
lea rax, [rsp + 0x48]
mov r9d, 0x3001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x140067477
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14006753c
test byte [rcx + 0x1c], 2
je 0x14006753c
cmp byte [rcx + 0x19], 2
jb 0x14006753c
mov edx, 0xb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085358]
mov r9d, ebx
call fcn.140001048
jmp 0x14006753c
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
call fcn.14006738c
test eax, eax
je 0x140067544
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x50]
and qword [rsp + 0x28], 0
xor edx, edx
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
je 0x140067460
cmp eax, 0x103
jne 0x140067501
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
je 0x1400674fa
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14006753c
test byte [rcx + 0x1c], 2
je 0x14006753c
cmp byte [rcx + 0x19], 2
jb 0x14006753c
mov edx, 0xd
jmp 0x140067448
mov eax, 1
jmp 0x140067546
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x140067531
test byte [rcx + 0x1c], 2
je 0x140067531
cmp byte [rcx + 0x19], 2
jb 0x140067531
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085358]
mov edx, 0xc
mov r9d, ebx
call fcn.140001048
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140078ba0
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x140067574
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 [str.___t_]
lea r15, str.___t_
cmp rcx, r15
je 0x1400675cf
test byte [rcx + 0x1c], 2
je 0x1400675cf
cmp byte [rcx + 0x19], 5
jb 0x1400675cf
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085358]
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]
mov ebx, eax
test eax, eax
je 0x140067627
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400676bb
test byte [rcx + 0x1c], 2
je 0x1400676bb
cmp byte [rcx + 0x19], 2
jb 0x1400676bb
mov edx, 0xf
jmp 0x1400676a8
cmp dword [rsp + 0x78], 4
je 0x140067662
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14006765b
test byte [rcx + 0x1c], 2
je 0x14006765b
cmp byte [rcx + 0x19], 2
jb 0x14006765b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085358]
mov edx, 0x10
call fcn.140001024
mov ebx, 0x3f1
jmp 0x1400676bb
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]
mov ebx, eax
test eax, eax
je 0x1400676bb
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400676bb
test byte [rcx + 0x1c], 2
je 0x1400676bb
cmp byte [rcx + 0x19], 2
jb 0x1400676bb
mov edx, 0x11
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085358]
mov r9d, eax
call fcn.140001048
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 0x140067d80
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x140094940]
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 [str.___t_]
lea rdi, str.___t_
cmp rcx, rdi
je 0x140067de1
test byte [rcx + 0x1c], 2
je 0x140067de1
cmp byte [rcx + 0x19], 5
jb 0x140067de1
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085498]
mov edx, 0xa
call fcn.140001024
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edx, edx
test eax, eax
jne 0x140067e45
mov rax, qword [str.___t_]
cmp rax, rdi
je 0x140067e9f
test byte [rax + 0x1c], 2
je 0x140067e9f
cmp byte [rax + 0x19], 2
jb 0x140067e9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140085498]
mov r9d, eax
mov edx, 0xc
mov rcx, qword [rcx + 0x10]
call fcn.140001048
jmp 0x140067e9f
cmp dword [rsp + 0x30], 2
je 0x140067e6b
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x140067e9f
test byte [rcx + 0x1c], 2
je 0x140067e9f
cmp byte [rcx + 0x19], 3
jb 0x140067e9f
mov edx, 0xd
jmp 0x140067e8f
cmp dword [rsp + 0x24], 5
jae 0x140067ea6
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x140067e9f
test byte [rcx + 0x1c], 2
je 0x140067e9f
cmp byte [rcx + 0x19], 3
jb 0x140067e9f
mov edx, 0xe
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085498]
call fcn.140001024
xor eax, eax
jmp 0x140067f28
mov cl, byte [rsp + 0x138]
mov eax, 0x40
test al, cl
je 0x140067ec6
cmp byte [rsp + 0x13a], 1
lea ecx, [rax - 0x20]
cmove eax, ecx
jmp 0x140067f28
mov eax, 0x200
test word [rsp + 0x138], ax
je 0x140067edc
mov eax, 1
jmp 0x140067f28
test cl, 2
je 0x140067ee8
mov eax, 8
jmp 0x140067f28
mov eax, 0x80
test al, cl
je 0x140067ef8
mov eax, 0x10
jmp 0x140067f28
mov ecx, 0x400
test word [rsp + 0x138], cx
jne 0x140067f28
mov cl, byte [rsp + 0x13a]
cmp cl, 1
jne 0x140067f1a
mov eax, 2
jmp 0x140067f28
sub cl, 2
mov eax, 4
cmp cl, 1
cmova eax, edx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140078ba0
add rsp, 0x150
pop rdi
ret
Function at 0x140068fe8
Capabilities:
Get common file path
Query environment variable

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x140094940]
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 [0x140094d40], 0xffffffffffffffff
je 0x140069041
lock inc dword [0x140098524]
mov eax, 1
jmp 0x1400690ba
mov ebx, 0x104
lea rdx, [rsp + 0x40]
mov r8d, ebx
lea rcx, str.FXSSVCDebugLogFile.txt
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x1400690b8
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x1400690d3
lea rdx, [rsp + 0x250]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400690b8
lea rax, [rsp + 0x40]
mov edx, ebx
lea r9, [rsp + 0x250]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [0x140098530]
call fcn.1400029e8
test eax, eax
jns 0x1400690e9
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140078ba0
add rsp, 0x470
pop rbx
ret
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [0x140098530]
call fcn.140002a68
jmp 0x1400690b4
mov dword [rsp + 0x28], 0x80
lea rcx, [0x140098530]
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
mov r8d, 3
call fcn.140065c60
mov qword [0x140094d40], rax
cmp rax, 0xffffffffffffffff
je 0x1400690b8
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140069150
mov rcx, qword [0x140094d40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [0x140094d40], 0xffffffffffffffff
jmp 0x1400690b8
mov eax, 1
xchg dword [0x140098524], eax
jmp 0x14006903a
Function at 0x140069168
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 [0x140094940]
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 [0x140098528], edi
jne 0x14006925c
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]
test eax, eax
je 0x1400691ef
mov eax, edi
jmp 0x140069243
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]
test eax, eax
jne 0x140069230
cmp dword [rsp + 0x38], 4
je 0x140069234
mov dword [rsp + 0x30], edi
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x30]
mov rbx, qword [rbp + 0x780]
mov dword [0x140094d48], eax
mov dword [0x140098528], 1
jmp 0x140069262
mov eax, dword [0x140094d48]
test eax, eax
jle 0x1400692f9
mov r8, rbx
lea r9, [rbp + 0x788]
mov ebx, 0x3ff
lea rcx, [rsp + 0x50]
mov edx, ebx
call qword [sym.imp.msvcrt.dll__vsnwprintf]
test eax, eax
js 0x1400692f9
cdqe
cmp rax, rbx
ja 0x1400692f9
jne 0x14006929a
mov word [rbp + 0x74e], di
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1400692a3
mov edx, 0x3fd
mov r8d, 0xa
cmp rax, rdx
cmovb edx, eax
lea eax, [rdx - 1]
cmp word [rsp + rax*2 + 0x50], r8w
je 0x1400692ee
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 0x140069313
mov word [rsp + rcx + 0x50], di
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x750]
xor rcx, rsp
call fcn.140078ba0
add rsp, 0x860
pop rdi
pop rbx
pop rbp
ret
call fcn.140078e38
int3
Function at 0x1400696f4
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 [0x140094940]
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 [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140069766
test byte [rcx + 0x1c], 2
je 0x140069766
cmp byte [rcx + 0x19], 5
jb 0x140069766
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xa]
lea r8, [0x140085590]
call fcn.140001024
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x1400697ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140069863
test byte [rcx + 0x1c], 2
je 0x140069863
cmp byte [rcx + 0x19], 2
jb 0x140069863
lea edx, [rsi + 0xb]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085590]
mov r9d, ebx
call fcn.140001048
jmp 0x140069863
mov r8d, r13d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14006980d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140069863
test byte [rcx + 0x1c], 2
je 0x140069863
cmp byte [rcx + 0x19], 2
jb 0x140069863
lea edx, [rdi + 0xc]
jmp 0x1400697b2
test r14, r14
je 0x14006985c
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140069855
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140069863
test byte [rcx + 0x1c], 2
je 0x140069863
cmp byte [rcx + 0x19], 2
jb 0x140069863
mov edx, 0xd
jmp 0x1400697b2
mov eax, dword [rsp + 0x24]
mov dword [r14], eax
mov qword [r15], rsi
mov qword [rbp], rdi
test ebx, ebx
je 0x140069872
mov rdx, rdi
mov rcx, rsi
call fcn.1400698a0
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140078ba0
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 0x1400699a4
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 [str.___t_]
lea r14, str.___t_
cmp rcx, r14
je 0x1400699ed
test byte [rcx + 0x1c], 2
je 0x1400699ed
cmp byte [rcx + 0x19], 5
jb 0x1400699ed
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085590]
mov edx, 0x11
call fcn.140001024
lea r8, str.GlobalFaxSvcRPCStarted_1ed23866_f90b_4ec5_b77e_36e8709422b6
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenEventW]
test rax, rax
jne 0x140069af5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140069a3a
mov rax, qword [str.___t_]
cmp rax, r14
je 0x140069a82
test byte [rax + 0x1c], 2
je 0x140069a82
cmp byte [rax + 0x19], 2
jb 0x140069a82
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x12
jmp 0x140069a68
call fcn.14006a7a0
mov rbx, rax
test rax, rax
jne 0x140069a86
mov rax, qword [str.___t_]
cmp rax, r14
je 0x140069a82
test byte [rax + 0x1c], 2
je 0x140069a82
cmp byte [rax + 0x19], 2
jb 0x140069a82
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [rbx + 0x13]
mov rcx, qword [str.___t_]
lea r8, [0x140085590]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140001048
xor eax, eax
jmp 0x140069af5
xor r8d, r8d
lea r9, str.GlobalFaxSvcRPCStarted_1ed23866_f90b_4ec5_b77e_36e8709422b6
mov rcx, rbx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor esi, esi
mov rdi, rax
test rax, rax
jne 0x140069add
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140069add
test byte [rcx + 0x1c], 2
je 0x140069add
cmp byte [rcx + 0x19], 2
jb 0x140069add
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x14]
mov r9d, eax
lea r8, [0x140085590]
call fcn.140001048
mov rcx, rbx
call fcn.14006ac84
test rdi, rdi
jne 0x140069af2
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14006adac
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 [0x140094940]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, r8d
mov rbx, rcx
mov rcx, qword [str.___t_]
lea r14, str.___t_
lea r15, [0x140085590]
cmp rcx, r14
je 0x14006ae0b
test byte [rcx + 0x1c], 2
je 0x14006ae0b
cmp byte [rcx + 0x19], 5
jb 0x14006ae0b
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]
test eax, eax
jne 0x14006ae58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14006ae51
test byte [rcx + 0x1c], 2
je 0x14006ae51
cmp byte [rcx + 0x19], 2
jb 0x14006ae51
mov edx, 0x4d
mov rcx, qword [rcx + 0x10]
mov r9d, ebx
mov r8, r15
call fcn.140001048
mov eax, ebx
jmp 0x14006af4e
cmp dword [rsp + 0x24], 1
je 0x14006af4c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
jmp 0x14006aea8
mov r9d, dword [rsp + 0x24]
cmp r9d, 1
je 0x14006af4c
cmp r9d, 3
jne 0x14006af1c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, esi
ja 0x14006aeec
mov eax, dword [rsp + 0x38]
mov ecx, 0x1388
shr eax, 1
cmp eax, ecx
cmovb ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14006ae6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14006ae51
test byte [rcx + 0x1c], 2
je 0x14006ae51
cmp byte [rcx + 0x19], 2
jb 0x14006ae51
mov edx, 0x4e
jmp 0x14006ae42
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14006af15
test byte [rcx + 0x1c], 2
je 0x14006af15
cmp byte [rcx + 0x19], 2
jb 0x14006af15
mov rcx, qword [rcx + 0x10]
mov edx, 0x50
mov r8, r15
call fcn.140001024
mov eax, 0x5b4
jmp 0x14006af4e
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14006af45
test byte [rcx + 0x1c], 2
je 0x14006af45
cmp byte [rcx + 0x19], 2
jb 0x14006af45
mov rcx, qword [rcx + 0x10]
mov edx, 0x4f
mov r8, r15
call fcn.140001048
mov eax, 0x426
jmp 0x14006af4e
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140078ba0
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 0x14006af78
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x140094940]
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 [str.___t_]
lea r12, str.___t_
cmp rcx, r12
je 0x14006afe6
test byte [rcx + 0x1c], 2
je 0x14006afe6
cmp byte [rcx + 0x19], 5
jb 0x14006afe6
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x140085748]
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]
mov edi, eax
test eax, eax
jns 0x14006b041
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14006b036
test byte [rcx + 0x1c], 2
je 0x14006b036
cmp byte [rcx + 0x19], 2
jb 0x14006b036
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085748]
mov edx, 0xb
mov r9d, eax
call fcn.140001048
movzx ecx, di
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14006b08f
mov rdx, rbp
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.140002a68
mov edi, eax
test eax, eax
jns 0x14006b08a
mov rcx, qword [str.___t_]
cmp rcx, r12
je 0x14006b036
test byte [rcx + 0x1c], 2
je 0x14006b036
cmp byte [rcx + 0x19], 2
jb 0x14006b036
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085748]
movzx r9d, di
mov edx, 0xc
call fcn.140001048
jmp 0x14006b036
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140078ba0
add rsp, 0x250
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006b0b8
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x598]
sub rsp, 0x680
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rbp + 0x570], rax
mov rbx, rcx
mov edi, 0x20a
mov r8d, edi
lea rcx, [rbp + 0x360]
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, edi
lea rcx, [rsp + 0x40]
xor edx, edx
call sub.msvcrt.dll_memset
xor edx, edx
lea r8d, [rdi - 2]
lea rcx, [rbp + 0x150]
call sub.msvcrt.dll_memset
xor r14d, r14d
mov dword [rsp + 0x30], edi
test rbx, rbx
je 0x14006b305
lea r9d, [r14 + 1]
mov word [rbx], r14w
mov r8d, r9d
lea rdx, str.SoftwareMicrosoftFaxSetup
mov rcx, 0xffffffff80000001
call fcn.140066b60
mov rdi, rax
test rax, rax
je 0x14006b305
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov rcx, rdi
lea rdx, str.CoverPageDir
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12d, 0x105
test esi, esi
je 0x14006b1b2
cmp esi, 2
jne 0x14006b305
lea rdi, str.FaxPersonal_Coverpages_
jmp 0x14006b224
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
ja 0x14006b305
mov rcx, r12
lea rax, [rsp + 0x40]
cmp word [rax], r14w
je 0x14006b1d9
add rax, 2
sub rcx, 1
jne 0x14006b1c9
test rcx, rcx
je 0x14006b1e6
mov rdx, r12
sub rdx, rcx
jmp 0x14006b1e9
mov rdx, r14
mov rax, rcx
lea rdi, [rsp + 0x40]
neg rax
sbb r8, r8
and r8, rdx
test rcx, rcx
je 0x14006b224
cmp word [rsp + r8*2 + 0x3e], 0x5c
je 0x14006b224
lea r8, [0x140084bb8]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.14000a1e4
test eax, eax
js 0x14006b2fc
mov r8d, r12d
lea rdx, [rbp + 0x360]
mov ecx, 5
call fcn.14006af78
test eax, eax
jne 0x14006b255
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetSpecialPath_failed_err_ld
call fcn.140069168
jmp 0x14006b305
mov esi, 0x104
lea r8, [rbp + 0x360]
mov edx, esi
mov rcx, rbx
call fcn.140002a68
test eax, eax
js 0x14006b2fc
cmp word [rdi], 0x5c
je 0x14006b28e
lea r8, [0x140084bb8]
mov edx, esi
mov rcx, rbx
call fcn.14000a1e4
test eax, eax
js 0x14006b2fc
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call fcn.14000a1e4
test eax, eax
js 0x14006b2fc
lea rax, [rbp + 0x150]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, str.FaxPersonal_CoverPages
mov edx, 0x8005
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
test eax, eax
js 0x14006b2fc
mov r8d, 0x93d
lea rdx, str._SystemRoot__system32_fxsresm.dll
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHELL32.dll_SHSetLocalizedName]
test eax, eax
js 0x14006b2fc
mov rcx, rbx
call fcn.14006422c
mov eax, 1
jmp 0x14006b307
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.140078ba0
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret