joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400657c8
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov r12, rdx
mov rsi, r8
xor edx, edx
mov r14, rcx
mov ebx, edx
mov dword [rbp + 0x48], edx
mov edi, edx
mov dword [rbp + 0x30], edx
mov r15d, edx
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x14006582e
test byte [rcx + 0x1c], 2
je 0x14006582e
cmp byte [rcx + 0x19], 5
jb 0x14006582e
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x19]
lea r8, [0x140084e20]
call fcn.140001010
xor edx, edx
cmp dx, word [r14]
jne 0x14006583e
mov eax, 0x57
jmp 0x1400659de
lea rax, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rdx, r14
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400658d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
mov ebx, eax
mov rax, rdi
cmove ebx, eax
test ebx, ebx
je 0x1400658d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x1400659c8
test byte [rcx + 0x1c], 2
je 0x1400659c8
cmp byte [rcx + 0x19], 2
jb 0x1400659c8
mov edx, 0x1a
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
lea r8, [0x140084e20]
call fcn.140001030
jmp 0x1400659c8
mov ecx, dword [rbp + 0x48]
call fcn.1400625b0
mov rdi, rax
test rax, rax
jne 0x140065917
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x1400659c8
test byte [rcx + 0x1c], 2
je 0x1400659c8
cmp byte [rcx + 0x19], 2
jb 0x1400659c8
mov r9d, dword [rbp + 0x48]
lea edx, [rdi + 0x1b]
jmp 0x1400658bb
mov ecx, dword [rbp + 0x30]
add rcx, rcx
call fcn.1400625b0
mov r15, rax
test rax, rax
jne 0x14006595c
lea ebx, [rax + 8]
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x1400659c8
test byte [rcx + 0x1c], 2
je 0x1400659c8
cmp byte [rcx + 0x19], 2
jb 0x1400659c8
mov r9d, dword [rbp + 0x30]
lea edx, [rbx + 0x14]
jmp 0x1400658bb
lea rax, [rbp - 0x10]
mov r8, rdi
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x30]
mov rdx, r14
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400659ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x1400659c8
test byte [rcx + 0x1c], 2
je 0x1400659c8
cmp byte [rcx + 0x19], 2
jb 0x1400659c8
mov edx, 0x1d
jmp 0x1400658b8
mov qword [r12], rdi
test rsi, rsi
je 0x1400659c8
mov eax, dword [rbp - 0x10]
mov dword [rsi], eax
mov rcx, r15
call fcn.14006264c
test ebx, ebx
je 0x1400659dc
mov rcx, rdi
call fcn.14006264c
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140066028
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 0x1400660ae
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 0x1400660a7
lea rcx, str.RegSetValueEx___failed__s___ec_d
jmp 0x1400660c0
mov eax, 1
jmp 0x1400660d5
test ebx, ebx
jne 0x1400660b9
cmp dword [rsp + 0x34], 4
je 0x1400660a7
lea rcx, str.RegQueryValueEx___failed__s___ec_d
mov r8d, ebx
mov rdx, rdi
call fcn.140068278
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 0x1400660f0
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 0x140066171
cmp eax, 2
jne 0x140066146
lea ecx, [rbx + 1]
mov dword [rbp + 0x38], ecx
jmp 0x140066189
mov edx, eax
lea rcx, str.RegQueryValueEx___failed__ec_d
call fcn.140068278
mov rcx, rbx
call fcn.14006264c
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 0x14006615c
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.1400625b0
mov rbx, rax
test rax, rax
je 0x140066154
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 0x140066209
cmp eax, 2
jne 0x140066146
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 0x140066209
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rdi
call fcn.140068278
jmp 0x140066154
test rsi, rsi
je 0x140066213
mov eax, dword [rbp + 0x38]
mov dword [rsi], eax
mov rax, rbx
jmp 0x14006615e
Function at 0x14006621c
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 0x14006626e
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rdi
call fcn.140068278
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140066273
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140066280
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 0x1400662cb
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rbx
call fcn.140068278
xor eax, eax
jmp 0x1400662d0
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x1400662d8
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 0x140066304
or rax, 0xffffffffffffffff
inc rax
cmp word [r9 + rax*2], di
jne 0x1400662f0
lea rax, [rax*2 + 2]
jmp 0x140066307
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 0x140066339
mov r8d, eax
lea rcx, str.RegSetValueEx___failed__s___ec_d
mov rdx, rbx
call fcn.140068278
xor eax, eax
jmp 0x14006633e
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14006634c
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.140065ce8
mov rdi, rax
test rax, rax
je 0x1400664cf
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 0x1400663ef
lea rcx, str.RegQueryInfoKey___failed__ec_d
jmp 0x1400664bf
mov r9, qword [rsp + 0xc0]
xor edx, edx
mov r8d, dword [rsp + 0x64]
mov rcx, rdi
mov rax, r12
call qword [0x140081868]
test eax, eax
je 0x1400664c6
mov eax, dword [rsp + 0xb0]
add eax, 4
mov dword [rsp + 0xb0], eax
cmp eax, 0x7ffffffe
ja 0x1400664c6
lea ecx, [rax + 1]
add rcx, rcx
call fcn.1400625b0
mov rbx, rax
test rax, rax
je 0x1400664c6
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 0x1400664b1
lea r9d, [r14 + 0x20019]
mov r8d, r15d
mov rdx, rbx
mov rcx, rdi
call fcn.140065ce8
mov rsi, rax
test rax, rax
je 0x1400664a5
mov r9, qword [rsp + 0xc0]
mov rcx, rax
mov rax, r12
mov r8d, ebp
mov rdx, rbx
call qword [0x140081868]
mov rcx, rsi
test eax, eax
je 0x1400664a9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebp
mov edx, ebp
jmp 0x140066447
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400664c6
cmp eax, 0x103
je 0x1400664c6
lea rcx, str.RegEnumKey___failed__ec_d
mov edx, eax
call fcn.140068278
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.14006264c
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 0x1400664f4
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 [0x140096940]
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 0x14006655c
test byte [rcx + 0x1c], 2
je 0x14006655c
cmp byte [rcx + 0x19], 5
jb 0x14006655c
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085358]
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 0x1400665cb
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x1400666c9
test byte [rcx + 0x1c], 2
je 0x1400666c9
cmp byte [rcx + 0x19], 2
jb 0x1400666c9
mov edx, VariantTimeToDosDateTime
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085358]
mov r9d, ebx
call fcn.140001030
jmp 0x1400666c9
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
jmp 0x14006660e
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x50]
call fcn.1400664f4
xor ecx, ecx
test eax, eax
je 0x1400666d1
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 0x1400665e1
cmp eax, 0x103
jne 0x140066687
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 0x140066680
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x1400666c9
test byte [rcx + 0x1c], 2
je 0x1400666c9
cmp byte [rcx + 0x19], 2
jb 0x1400666c9
mov edx, 0xd
jmp 0x1400665b3
mov eax, 1
jmp 0x1400666d3
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x1400666be
test byte [rcx + 0x1c], 2
je 0x1400666be
cmp byte [rcx + 0x19], 2
jb 0x1400666be
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085358]
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
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.1400786e0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400666f8
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 0x140066753
test byte [rcx + 0x1c], 2
je 0x140066753
cmp byte [rcx + 0x19], 5
jb 0x140066753
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085358]
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 0x1400667ab
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14006683f
test byte [rcx + 0x1c], 2
je 0x14006683f
cmp byte [rcx + 0x19], 2
jb 0x14006683f
mov edx, 0xf
jmp 0x14006682c
cmp dword [rsp + 0x78], 4
je 0x1400667e6
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x1400667df
test byte [rcx + 0x1c], 2
je 0x1400667df
cmp byte [rcx + 0x19], 2
jb 0x1400667df
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085358]
mov edx, 0x10
call fcn.140001010
mov ebx, 0x3f1
jmp 0x14006683f
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 0x14006683f
mov rcx, qword [str.___t_]
cmp rcx, r15
je 0x14006683f
test byte [rcx + 0x1c], 2
je 0x14006683f
cmp byte [rcx + 0x19], 2
jb 0x14006683f
mov edx, 0x11
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085358]
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 0x140066eec
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x150
mov rax, qword [0x140096940]
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 0x140066f4d
test byte [rcx + 0x1c], 2
je 0x140066f4d
cmp byte [rcx + 0x19], 5
jb 0x140066f4d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085498]
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 0x140066faa
mov rax, qword [str.___t_]
cmp rax, rdi
je 0x140066fa3
test byte [rax + 0x1c], 2
je 0x140066fa3
cmp byte [rax + 0x19], 2
jb 0x140066fa3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [str.___t_]
lea r8, [0x140085498]
mov r9d, eax
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov rcx, qword [rcx + 0x10]
call fcn.140001030
xor eax, eax
jmp 0x140067088
cmp dword [rsp + 0x30], 2
je 0x140066fe0
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x140066fa3
test byte [rcx + 0x1c], 2
je 0x140066fa3
cmp byte [rcx + 0x19], 3
jb 0x140066fa3
mov edx, 0xd
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085498]
call fcn.140001010
jmp 0x140066fa3
cmp dword [rsp + 0x24], 5
jae 0x140067006
mov rcx, qword [str.___t_]
cmp rcx, rdi
je 0x140066fa3
test byte [rcx + 0x1c], 2
je 0x140066fa3
cmp byte [rcx + 0x19], 3
jb 0x140066fa3
mov edx, 0xe
jmp 0x140066fce
mov cl, byte [rsp + 0x138]
mov eax, 0x40
test al, cl
je 0x140067026
cmp byte [rsp + 0x13a], 1
lea ecx, [rax - 0x20]
cmove eax, ecx
jmp 0x140067088
mov eax, 0x200
test word [rsp + 0x138], ax
je 0x14006703c
mov eax, 1
jmp 0x140067088
test cl, 2
je 0x140067048
mov eax, 8
jmp 0x140067088
mov eax, 0x80
test al, cl
je 0x140067058
mov eax, 0x10
jmp 0x140067088
mov ecx, 0x400
test word [rsp + 0x138], cx
jne 0x140067088
mov cl, byte [rsp + 0x13a]
cmp cl, 1
jne 0x14006707a
mov eax, 2
jmp 0x140067088
sub cl, 2
mov eax, 4
cmp cl, 1
cmova eax, edx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400786e0
add rsp, 0x150
pop rdi
ret
Function at 0x140068100
Capabilities:
Get common file path
Query environment variable

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x140096940]
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 [0x140096d40], 0xffffffffffffffff
je 0x140068159
lock inc dword [0x14009a524]
mov eax, 1
jmp 0x1400681d2
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 0x1400681d0
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x1400681eb
lea rdx, [rsp + 0x250]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400681d0
lea rax, [rsp + 0x40]
mov edx, ebx
lea r9, [rsp + 0x250]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [0x14009a530]
call fcn.14000292c
test eax, eax
jns 0x140068201
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400786e0
add rsp, 0x470
pop rbx
ret
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [0x14009a530]
call fcn.1400029a4
jmp 0x1400681cc
mov dword [rsp + 0x28], 0x80
lea rcx, [0x14009a530]
mov edx, 0x40000000
mov dword [rsp + 0x20], 4
mov r8d, 3
call fcn.140064e14
mov qword [0x140096d40], rax
cmp rax, 0xffffffffffffffff
je 0x1400681d0
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140068268
mov rcx, qword [0x140096d40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [0x140096d40], 0xffffffffffffffff
jmp 0x1400681d0
mov eax, 1
xchg dword [0x14009a524], eax
jmp 0x140068152
Function at 0x140068278
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 [0x140096940]
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 [0x14009a528], edi
jne 0x14006836c
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 0x1400682ff
mov eax, edi
jmp 0x140068353
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 0x140068340
cmp dword [rsp + 0x38], 4
je 0x140068344
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 [0x140096d48], eax
mov dword [0x14009a528], 1
jmp 0x140068372
mov eax, dword [0x140096d48]
test eax, eax
jle 0x140068409
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 0x140068409
cdqe
cmp rax, rbx
ja 0x140068409
jne 0x1400683aa
mov word [rbp + 0x74e], di
lea rcx, [rsp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x1400683b3
mov edx, 0x3fd
mov r8d, 0xa
cmp rax, rdx
cmovb edx, eax
lea eax, [rdx - 1]
cmp word [rsp + rax*2 + 0x50], r8w
je 0x1400683fe
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 0x140068423
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.1400786e0
add rsp, 0x860
pop rdi
pop rbx
pop rbp
ret
call fcn.140078934
int3
Function at 0x1400687f0
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 [0x140096940]
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 0x140068862
test byte [rcx + 0x1c], 2
je 0x140068862
cmp byte [rcx + 0x19], 5
jb 0x140068862
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0xa]
lea r8, [0x140085590]
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 0x1400688c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140068960
test byte [rcx + 0x1c], 2
je 0x140068960
cmp byte [rcx + 0x19], 2
jb 0x140068960
lea edx, [rsi + 0xb]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140085590]
mov r9d, ebx
call fcn.140001030
jmp 0x140068960
mov r8d, r13d
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14006890a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140068960
test byte [rcx + 0x1c], 2
je 0x140068960
cmp byte [rcx + 0x19], 2
jb 0x140068960
lea edx, [rdi + 0xc]
jmp 0x1400688af
test r14, r14
je 0x140068959
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140068952
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [str.___t_]
lea rax, str.___t_
cmp rcx, rax
je 0x140068960
test byte [rcx + 0x1c], 2
je 0x140068960
cmp byte [rcx + 0x19], 2
jb 0x140068960
mov edx, 0xd
jmp 0x1400688af
mov eax, dword [rsp + 0x24]
mov dword [r14], eax
mov qword [r15], rsi
mov qword [rbp], rdi
test ebx, ebx
je 0x14006896f
mov rdx, rdi
mov rcx, rsi
call fcn.140068990
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400786e0
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret