joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002c064
Capabilities:
Timestomp file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x40
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [rsp + 0x20], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov rdi, rcx
mov rcx, qword [0x14009b028]
lea rbp, [0x14009b028]
cmp rcx, rbp
je 0x14002c0c7
test byte [rcx + 0x1c], 4
je 0x14002c0c7
cmp byte [rcx + 0x19], 5
jb 0x14002c0c7
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088d60]
mov edx, 0x79
call fcn.140001024
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14002c11d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14002c177
test byte [rcx + 0x1c], 4
je 0x14002c177
cmp byte [rcx + 0x19], 2
jb 0x14002c177
lea edx, [rbx + 0x7a]
jmp 0x14002c164
xor r9d, r9d
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileTime]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14002c177
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14002c177
test byte [rcx + 0x1c], 4
je 0x14002c177
cmp byte [rcx + 0x19], 2
jb 0x14002c177
lea edx, [rbx + 0x7b]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088d60]
mov r9d, eax
call fcn.140001050
mov eax, ebx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14007ec30
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14002f520
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rcx
mov rcx, qword [0x14009b028]
lea rbp, [0x14009b028]
cmp rcx, rbp
je 0x14002f57b
test byte [rcx + 0x1c], 4
je 0x14002f57b
cmp byte [rcx + 0x19], 5
jb 0x14002f57b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088e40]
mov edx, 0x38
call fcn.140001024
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x30]
mov rcx, rdi
lea rdx, [0x140088dd8]
call fcn.14002f060
test eax, eax
jne 0x14002f5ef
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x14002f5e8
test byte [rax + 0x1c], 4
je 0x14002f5e8
cmp byte [rax + 0x19], 2
jb 0x14002f5e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140088e40]
mov r9d, eax
mov edx, 0x39
mov rcx, qword [rcx + 0x10]
call fcn.140001050
xor eax, eax
jmp 0x14002f6c3
lea rcx, [rsp + 0x30]
call fcn.140067e3c
mov qword [rdi + 0x48], rax
test rax, rax
jne 0x14002f6be
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14002f644
test byte [rcx + 0x1c], 4
je 0x14002f644
cmp byte [rcx + 0x19], 2
jb 0x14002f644
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088e40]
mov edx, 0x3a
mov r9d, eax
call fcn.140001050
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002f6ab
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x14002f6ab
test byte [rax + 0x1c], 4
je 0x14002f6ab
cmp byte [rax + 0x19], 2
jb 0x14002f6ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140088e40]
mov r9d, dword [rdi + 0x20]
mov edx, 0x3b
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.14002d7ec
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14002f5e8
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007ec30
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002f6f0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov rcx, qword [0x14009b028]
lea rbp, [0x14009b028]
cmp rcx, rbp
je 0x14002f74b
test byte [rcx + 0x1c], 4
je 0x14002f74b
cmp byte [rcx + 0x19], 5
jb 0x14002f74b
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088e40]
mov edx, 0x3c
call fcn.140001024
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call sub.msvcrt.dll_memset
cmp qword [rbx + 0x258], 0
jne 0x14002f89f
lea r8, [rsp + 0x30]
mov rcx, rbx
lea rdx, [0x140088de0]
call fcn.14002f060
test eax, eax
jne 0x14002f7cd
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x14002f7c6
test byte [rax + 0x1c], 4
je 0x14002f7c6
cmp byte [rax + 0x19], 2
jb 0x14002f7c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140088e40]
mov r9d, eax
mov edx, 0x3d
mov rcx, qword [rcx + 0x10]
call fcn.140001050
xor eax, eax
jmp 0x14002f8a4
lea rcx, [rsp + 0x30]
call fcn.140067e3c
mov qword [rbx + 0x258], rax
test rax, rax
jne 0x14002f89f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14002f825
test byte [rcx + 0x1c], 4
je 0x14002f825
cmp byte [rcx + 0x19], 2
jb 0x14002f825
mov rcx, qword [rcx + 0x10]
lea r8, [0x140088e40]
mov edx, 0x3e
mov r9d, eax
call fcn.140001050
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002f88c
mov rax, qword [0x14009b028]
cmp rax, rbp
je 0x14002f88c
test byte [rax + 0x1c], 4
je 0x14002f88c
cmp byte [rax + 0x19], 2
jb 0x14002f88c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x140088e40]
mov r9d, dword [rbx + 0x20]
mov edx, 0x3f
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
call fcn.14002d7ec
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14002f7c6
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007ec30
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140067d48
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rcx, qword [0x14009b028]
lea rdi, [0x14009b028]
cmp rcx, rdi
je 0x140067d97
test byte [rcx + 0x1c], 2
je 0x140067d97
cmp byte [rcx + 0x19], 5
jb 0x140067d97
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008ae88]
mov edx, 0xf
call fcn.140001024
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x110
call sub.msvcrt.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
jne 0x140067e0f
mov rax, qword [0x14009b028]
cmp rax, rdi
je 0x140067e0b
test byte [rax + 0x1c], 2
je 0x140067e0b
cmp byte [rax + 0x19], 2
jb 0x140067e0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [0x14009b028]
lea r8, [0x14008ae88]
mov r9d, eax
mov edx, 0x10
mov rcx, qword [rcx + 0x10]
call fcn.140001050
xor eax, eax
jmp 0x140067e19
cmp dword [rsp + 0x24], 6
setae cl
mov eax, ecx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14007ec30
add rsp, 0x150
pop rdi
ret
Function at 0x140068618
Capabilities:
Query environment variable

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, rdx
mov rbp, r8
mov rbx, rcx
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
lea esi, [rax - 1]
cmp esi, 0x103
ja 0x14006876a
mov dword [rsp + 0x28], esi
lea r8, [rsp + 0x30]
mov r9d, esi
mov qword [rsp + 0x20], rbx
mov edx, 1
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_CompareStringW]
nop dword [rax + rax]
cmp eax, 2
jne 0x14006876a
xor r14d, r14d
mov r11d, 0x7fffffff
mov r10d, r14d
mov ecx, r14d
test rbx, rbx
je 0x1400686e4
mov r8d, r11d
mov rax, rbx
cmp word [rax], r14w
je 0x1400686c4
add rax, 2
sub r8, 1
jne 0x1400686b4
mov rax, r8
mov r9d, 0x80070057
neg rax
sbb edx, edx
not edx
and edx, r9d
test r8, r8
je 0x1400686ed
mov r10, r11
sub r10, r8
jmp 0x1400686ed
mov r9d, 0x80070057
mov edx, r9d
test edx, edx
js 0x14006876a
test rdi, rdi
je 0x140068726
mov r8, r11
mov rax, rdi
cmp word [rax], r14w
je 0x14006870c
add rax, 2
sub r8, 1
jne 0x1400686fc
mov rax, r8
neg rax
sbb edx, edx
not edx
and edx, r9d
test r8, r8
je 0x140068729
mov rcx, r11
sub rcx, r8
jmp 0x140068729
mov edx, r9d
test edx, edx
js 0x14006876a
mov r8d, esi
sub rcx, r8
add rcx, r10
cmp rcx, 0x104
jae 0x14006876a
lea r8, [rbx + rsi*2]
mov r9, rdi
mov qword [rsp + 0x20], r8
mov edx, 0x104
lea r8, str._s_s
mov rcx, rbp
call fcn.140002ac0
test eax, eax
js 0x14006876a
mov eax, 1
jmp 0x14006876c
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007ec30
add rsp, 0x250
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006bb08
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 [0x14009b940]
xor rax, rsp
mov qword [rbp + 0x160], rax
and qword [rsp + 0x48], 0
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [0x14009b028]
lea r12, [0x14009b028]
cmp rcx, r12
je 0x14006bb76
test byte [rcx + 0x1c], 2
je 0x14006bb76
cmp byte [rcx + 0x19], 5
jb 0x14006bb76
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b578]
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14006bbf9
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14006bcd6
test byte [rcx + 0x1c], 2
je 0x14006bcd6
cmp byte [rcx + 0x19], 2
jb 0x14006bcd6
mov edx, VariantTimeToDosDateTime
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b578]
mov r9d, ebx
call fcn.140001050
jmp 0x14006bcd6
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
call fcn.14006bb08
test eax, eax
je 0x14006bce4
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]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14006bbe2
cmp eax, 0x103
jne 0x14006bc95
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14006bc8e
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14006bcd6
test byte [rcx + 0x1c], 2
je 0x14006bcd6
cmp byte [rcx + 0x19], 2
jb 0x14006bcd6
mov edx, 0xd
jmp 0x14006bbca
mov eax, 1
jmp 0x14006bce6
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14006bcc5
test byte [rcx + 0x1c], 2
je 0x14006bcc5
cmp byte [rcx + 0x19], 2
jb 0x14006bcc5
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b578]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov r9d, ebx
call fcn.140001050
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14007ec30
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 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.14007ec30
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.14007ec30
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.14007ec30
add rsp, 0x860
pop rdi
pop rbx
pop rbp
ret
call fcn.14007eec8
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.14007ec30
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 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.14007ec30
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret