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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
lea rax, [r11 - 0x18]
mov dword [rsp + 0x30], 4
mov qword [r11 - 0x20], rax
mov r14d, r9d
mov qword [r11 - 0x28], r8
lea r9, [r11 - 0x14]
mov rsi, r8
mov rdi, rdx
xor r8d, r8d
mov rbp, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, 2
jne 0x14006626e
mov dword [rsp + 0x28], 4
lea r9d, [rax + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rdx, rdi
mov dword [rsi], r14d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140066267
lea rcx, str.RegSetValueEx___failed__s___ec_d
jmp 0x140066280
mov eax, 1
jmp 0x140066295
test ebx, ebx
jne 0x140066279
cmp dword [rsp + 0x34], 4
je 0x140066267
lea rcx, str.RegQueryValueEx___failed__s___ec_d
mov r8d, ebx
mov rdx, rdi
call fcn.140068430
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400662b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x40
and dword [rbp + 0x38], 0
lea rax, [rbp + 0x38]
mov rsi, r8
mov qword [r11 - 0x30], rax
xor ebx, ebx
mov dword [rbp - 0x10], 3
and qword [r11 - 0x38], rbx
lea r9, [rbp - 0x10]
xor r8d, r8d
mov rdi, rdx
mov r14, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140066331
cmp eax, 2
jne 0x140066306
lea ecx, [rbx + 1]
mov dword [rbp + 0x38], ecx
jmp 0x140066349
mov edx, eax
lea rcx, str.RegQueryValueEx___failed__ec_d
call fcn.140068430
mov rcx, rbx
call fcn.140062654
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rbp
ret
cmp dword [rbp - 0x10], 3
jne 0x14006631c
mov eax, dword [rbp + 0x38]
mov ecx, 1
test eax, eax
cmove eax, ecx
mov ecx, eax
mov dword [rbp + 0x38], eax
inc ecx
call fcn.1400625b8
mov rbx, rax
test rax, rax
je 0x140066314
lea rax, [rbp + 0x38]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x10]
mov rdx, rdi
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp + 0x38]
mov byte [rcx + rbx], 0
test eax, eax
je 0x1400663c9
cmp eax, 2
jne 0x140066306
mov eax, dword [rbp + 0x38]
mov r9d, 3
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, rdi
mov qword [rsp + 0x20], rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400663c9
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rdi
call fcn.140068430
jmp 0x140066314
test rsi, rsi
je 0x1400663d3
mov eax, dword [rbp + 0x38]
mov dword [rsi], eax
mov rax, rbx
jmp 0x14006631e
Function at 0x1400663dc
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov dword [r11 + 0x18], r8d
push rdi
sub rsp, 0x30
mov r9d, 4
lea rax, [r11 + 0x18]
mov dword [r11 - 0x10], r9d
xor r8d, r8d
mov qword [r11 - 0x18], rax
mov rdi, rdx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x14006642e
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rdi
call fcn.140068430
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140066433
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140066440
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
push rbx
sub rsp, 0x30
test r9d, r9d
mov dword [r11 - 0x10], r9d
lea rax, [r11 + 0x20]
mov r9d, 3
cmovne rax, r8
mov rbx, rdx
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14006648b
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rbx
call fcn.140068430
xor eax, eax
jmp 0x140066490
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140066498
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, r8
test r9, r9
je 0x1400664c4
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], di
jne 0x1400664b0
lea rax, [rax*2 + 2]
jmp 0x1400664c7
mov rax, rdi
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov qword [rsp + 0x20], r9
mov r9d, edx
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400664f9
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rbx
call fcn.140068430
xor eax, eax
jmp 0x1400664fe
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14006650c
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.140065ea8
mov rdi, rax
test rax, rax
je 0x14006668f
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 0x1400665af
lea rcx, str.RegQueryInfoKey___failed__ec_d
jmp 0x14006667f
mov r9, qword [rsp + 0xc0]
xor edx, edx
mov r8d, dword [rsp + 0x64]
mov rcx, rdi
mov rax, r12
call qword [0x140080850]
test eax, eax
je 0x140066686
mov eax, dword [rsp + 0xb0]
add eax, 4
mov dword [rsp + 0xb0], eax
cmp eax, 0x7ffffffe
ja 0x140066686
lea ecx, [rax + 1]
add rcx, rcx
call fcn.1400625b8
mov rbx, rax
test rax, rax
je 0x140066686
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 0x140066671
lea r9d, [r14 + 0x20019]
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call fcn.140065ea8
mov rsi, rax
test rax, rax
je 0x140066665
mov r9, qword [rsp + 0xc0]
mov rcx, rax
mov rax, r12
mov r8d, ebp
mov rdx, rbx
call qword [0x140080850]
mov rcx, rsi
test eax, eax
je 0x140066669
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
mov edx, ebp
jmp 0x140066607
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140066686
cmp eax, 0x103
je 0x140066686
lea rcx, str.RegEnumKey___failed__ec_d
mov edx, eax
call fcn.140068430
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.140062654
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 0x1400666b4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
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 rax, str.___t_
cmp rcx, rax
je 0x14006671c
test byte [rcx + 0x1c], 2
je 0x14006671c
cmp byte [rcx + 0x19], 5
jb 0x14006671c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084348]
mov edx, 0xa
call fcn.140001010
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
xor eax, eax
test ebx, ebx
je 0x14006678b
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140066889
test byte [rcx + 0x1c], 2
je 0x140066889
cmp byte [rcx + 0x19], 2
jb 0x140066889
mov edx, 0xb
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084348]
mov r9d, ebx
call fcn.140001030
jmp 0x140066889
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
jmp 0x1400667ce
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
call fcn.1400666b4
xor ecx, ecx
test eax, eax
je 0x140066891
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x40], 0x104
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
je 0x1400667a1
cmp eax, 0x103
jne 0x140066847
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 0x140066840
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140066889
test byte [rcx + 0x1c], 2
je 0x140066889
cmp byte [rcx + 0x19], 2
jb 0x140066889
mov edx, 0xd
jmp 0x140066773
mov eax, 1
jmp 0x140066893
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x14006687e
test byte [rcx + 0x1c], 2
je 0x14006687e
cmp byte [rcx + 0x19], 2
jb 0x14006687e
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084348]
mov edx, 0xc
mov r9d, ebx
call fcn.140001030
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.140077900
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400668b8
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 0x140066913
test byte [rcx + 0x1c], 2
je 0x140066913
cmp byte [rcx + 0x19], 5
jb 0x140066913
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084348]
mov edx, 0xe
call fcn.140001010
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 0x14006696b
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400669ff
test byte [rcx + 0x1c], 2
je 0x1400669ff
cmp byte [rcx + 0x19], 2
jb 0x1400669ff
mov edx, 0xf
jmp 0x1400669ec
cmp dword [rsp + 0x78], 4
je 0x1400669a6
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14006699f
test byte [rcx + 0x1c], 2
je 0x14006699f
cmp byte [rcx + 0x19], 2
jb 0x14006699f
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084348]
mov edx, 0x10
call fcn.140001010
mov ebx, 0x3f1
jmp 0x1400669ff
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 0x1400669ff
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400669ff
test byte [rcx + 0x1c], 2
je 0x1400669ff
cmp byte [rcx + 0x19], 2
jb 0x1400669ff
mov edx, 0x11
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084348]
mov r9d, eax
call fcn.140001030
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 0x1400670ac
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 + 0x20]
mov r8d, 0x11c
call sub.msvcrt.dll_memset
mov rcx, qword [str.___t_]
lea rdi, str.___t_
cmp rcx, rdi
je 0x14006710d
test byte [rcx + 0x1c], 2
je 0x14006710d
cmp byte [rcx + 0x19], 5
jb 0x14006710d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084488]
mov edx, 0xa
call fcn.140001010
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edx, edx
test eax, eax
jne 0x14006716a
mov rax, qword [str.___t_]
cmp rax, rdi
je 0x140067163
test byte [rax + 0x1c], 2
je 0x140067163
cmp byte [rax + 0x19], 2
jb 0x140067163
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140084488]
mov r9d, eax
mov edx, 0xc
mov rcx, qword [rcx + 0x10]
call fcn.140001030
xor eax, eax
jmp 0x140067248
cmp dword [rsp + 0x30], 2
je 0x1400671a0
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x140067163
test byte [rcx + 0x1c], 2
je 0x140067163
cmp byte [rcx + 0x19], 3
jb 0x140067163
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084488]
call fcn.140001010
jmp 0x140067163
cmp dword [rsp + 0x24], 5
jae 0x1400671c6
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x140067163
test byte [rcx + 0x1c], 2
je 0x140067163
cmp byte [rcx + 0x19], 3
jb 0x140067163
mov edx, 0xe
jmp 0x14006718e
mov cl, byte [rsp + 0x138]
mov eax, 0x40
test al, cl
je 0x1400671e6
cmp byte [rsp + 0x13a], 1
lea ecx, [rax - 0x20]
cmove eax, ecx
jmp 0x140067248
mov eax, 0x200
test word [rsp + 0x138], ax
je 0x1400671fc
mov eax, 1
jmp 0x140067248
test cl, 2
je 0x140067208
mov eax, 8
jmp 0x140067248
mov eax, 0x80
test al, cl
je 0x140067218
mov eax, 0x10
jmp 0x140067248
mov ecx, 0x400
test word [rsp + 0x138], cx
jne 0x140067248
mov cl, byte [rsp + 0x13a]
cmp cl, 1
jne 0x14006723a
mov eax, 2
jmp 0x140067248
sub cl, 2
mov eax, 4
cmp cl, 1
cmova eax, edx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140077900
add rsp, 0x150
pop rdi
ret
Function at 0x1400682b8
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 0x140068311
lock inc dword [0x140098544]
mov eax, 1
jmp 0x14006838a
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 0x140068388
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x1400683a3
lea rdx, [rsp + 0x250]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140068388
lea rax, [rsp + 0x40]
mov edx, ebx
lea r9, [rsp + 0x250]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [0x140098550]
call fcn.1400028c0
test eax, eax
jns 0x1400683b9
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140077900
add rsp, 0x470
pop rbx
ret
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [0x140098550]
call fcn.140002938
jmp 0x140068384
mov dword [rsp + 0x28], 0x80
lea rcx, [0x140098550]
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
mov r8d, 3
call fcn.140064fd4
mov qword [0x140094d40], rax
cmp rax, 0xffffffffffffffff
je 0x140068388
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140068420
mov rcx, qword [0x140094d40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [0x140094d40], 0xffffffffffffffff
jmp 0x140068388
mov eax, 1
xchg dword [0x140098544], eax
jmp 0x14006830a
Function at 0x140068430
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 [0x140098548], edi
jne 0x140068524
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 0x1400684b7
mov eax, edi
jmp 0x14006850b
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, [0x1400844a8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400684f8
cmp dword [rsp + 0x38], 4
je 0x1400684fc
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 [0x140098548], 1
jmp 0x14006852a
mov eax, dword [0x140094d48]
test eax, eax
jle 0x1400685c1
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 0x1400685c1
cdqe
cmp rax, rbx
ja 0x1400685c1
jne 0x140068562
mov word [rbp + 0x74e], di
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x14006856b
mov edx, 0x3fd
mov r8d, 0xa
cmp rax, rdx
cmovb edx, eax
lea eax, [rdx - 1]
cmp word [rsp + rax*2 + 0x50], r8w
je 0x1400685b6
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 0x1400685db
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.140077900
add rsp, 0x860
pop rdi
pop rbx
pop rbp
ret
call fcn.140077b44
int3
Function at 0x14006899c
Capabilities:
Query service status

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x140094940]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r13d, dword [rsp + 0xc8]
xor edi, edi
mov r14, qword [rsp + 0xd0]
xor ebx, ebx
mov rbp, r9
mov r15, r8
mov r12, rdx
mov rsi, rcx
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140068a0e
test byte [rcx + 0x1c], 2
je 0x140068a0e
cmp byte [rcx + 0x19], 5
jb 0x140068a0e
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xa]
lea r8, [0x140084580]
call fcn.140001010
xor edx, edx
mov rcx, rsi
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x140068a73
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140068b0c
test byte [rcx + 0x1c], 2
je 0x140068b0c
cmp byte [rcx + 0x19], 2
jb 0x140068b0c
lea edx, [rsi + 0xb]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084580]
mov r9d, ebx
call fcn.140001030
jmp 0x140068b0c
mov r8d, r13d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140068ab6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140068b0c
test byte [rcx + 0x1c], 2
je 0x140068b0c
cmp byte [rcx + 0x19], 2
jb 0x140068b0c
lea edx, [rdi + 0xc]
jmp 0x140068a5b
test r14, r14
je 0x140068b05
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140068afe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140068b0c
test byte [rcx + 0x1c], 2
je 0x140068b0c
cmp byte [rcx + 0x19], 2
jb 0x140068b0c
mov edx, 0xd
jmp 0x140068a5b
mov eax, dword [rsp + 0x24]
mov dword [r14], eax
mov qword [r15], rsi
mov qword [rbp], rdi
test ebx, ebx
je 0x140068b1b
mov rdx, rdi
mov rcx, rsi
call fcn.140068b3c
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140077900
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140068c38
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 0x140068c81
test byte [rcx + 0x1c], 2
je 0x140068c81
cmp byte [rcx + 0x19], 5
jb 0x140068c81
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084580]
mov edx, 0x11
call fcn.140001010
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 0x140068d8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140068ced
mov rax, qword [str.___t_]
cmp rax, r14
je 0x140068ce6
test byte [rax + 0x1c], 2
je 0x140068ce6
cmp byte [rax + 0x19], 2
jb 0x140068ce6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x12
mov rcx, qword [str.___t_]
lea r8, [0x140084580]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.140001030
xor eax, eax
jmp 0x140068d8c
call fcn.140069a30
mov rbx, rax
test rax, rax
jne 0x140068d1d
mov rax, qword [str.___t_]
cmp rax, r14
je 0x140068ce6
test byte [rax + 0x1c], 2
je 0x140068ce6
cmp byte [rax + 0x19], 2
jb 0x140068ce6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [rbx + 0x13]
jmp 0x140068ccc
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 0x140068d74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x140068d74
test byte [rcx + 0x1c], 2
je 0x140068d74
cmp byte [rcx + 0x19], 2
jb 0x140068d74
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x14]
mov r9d, eax
lea r8, [0x140084580]
call fcn.140001030
mov rcx, rbx
call fcn.140069f10
test rdi, rdi
jne 0x140068d89
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 0x14006a034
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, [0x140084580]
cmp rcx, r14
je 0x14006a093
test byte [rcx + 0x1c], 2
je 0x14006a093
cmp byte [rcx + 0x19], 5
jb 0x14006a093
mov rcx, qword [rcx + 0x10]
mov edx, 0x4c
mov r8, r15
call fcn.140001010
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14006a0db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14006a174
test byte [rcx + 0x1c], 2
je 0x14006a174
cmp byte [rcx + 0x19], 2
jb 0x14006a174
mov edx, 0x4d
jmp 0x14006a165
cmp dword [rsp + 0x24], 1
jne 0x14006a0e9
xor eax, eax
jmp 0x14006a176
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
jmp 0x14006a12e
mov r9d, dword [rsp + 0x24]
cmp r9d, 1
je 0x14006a0e2
cmp r9d, 3
jne 0x14006a1c9
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, esi
ja 0x14006a199
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 0x14006a0f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14006a174
test byte [rcx + 0x1c], 2
je 0x14006a174
cmp byte [rcx + 0x19], 2
jb 0x14006a174
mov edx, 0x4e
mov rcx, qword [rcx + 0x10]
mov r9d, ebx
mov r8, r15
call fcn.140001030
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140077900
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14006a1c2
test byte [rcx + 0x1c], 2
je 0x14006a1c2
cmp byte [rcx + 0x19], 2
jb 0x14006a1c2
mov rcx, qword [rcx + 0x10]
mov edx, 0x50
mov r8, r15
call fcn.140001010
mov eax, 0x5b4
jmp 0x14006a176
mov rcx, qword [str.___t_]
cmp rcx, r14
je 0x14006a1f2
test byte [rcx + 0x1c], 2
je 0x14006a1f2
cmp byte [rcx + 0x19], 2
jb 0x14006a1f2
mov rcx, qword [rcx + 0x10]
mov edx, 0x4f
mov r8, r15
call fcn.140001030
mov eax, 0x426
jmp 0x14006a176