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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x20]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x10], rax
mov rsi, r8
mov qword [r11 - 0x18], r8
xor r9d, r9d
xor r8d, r8d
mov rdi, rdx
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14004a9cd
cmp dword [rsi], ebx
je 0x14004a988
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14004aa44
test byte [rcx + 0x1c], 1
je 0x14004aa44
cmp byte [rcx + 0x19], 4
jb 0x14004aa44
mov edx, 0x213
jmp 0x14004a9b8
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14004aa44
test byte [rcx + 0x1c], 1
je 0x14004aa44
cmp byte [rcx + 0x19], 4
jb 0x14004aa44
mov edx, 0x214
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov r9, rdi
call fcn.140014f10
jmp 0x14004aa44
cmp eax, 2
jne 0x14004a9f8
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14004aa44
test byte [rcx + 0x1c], 1
je 0x14004aa44
cmp byte [rcx + 0x19], 3
jb 0x14004aa44
mov edx, 0x215
jmp 0x14004a9b8
test eax, eax
jg 0x14004aa00
mov ebx, eax
jmp 0x14004aa09
movzx ebx, ax
or ebx, 0x80070000
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14004aa44
test byte [rcx + 0x1c], 1
je 0x14004aa44
cmp byte [rcx + 0x19], 2
jb 0x14004aa44
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0x216
mov dword [rsp + 0x20], ebx
mov r9, rdi
call fcn.140014f78
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14004b4f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [0x14016a048]
lea rsi, [0x14016a048]
cmp rcx, rsi
je 0x14004b543
test dword [rcx + 0x1c], 0x200
je 0x14004b543
cmp byte [rcx + 0x19], 4
jb 0x14004b543
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0x2f
call fcn.14000c0e8
mov rcx, qword [0x14016a048]
test rdi, rdi
jne 0x14004b54f
mov ebx, 0x80004003
jmp 0x14004b5a8
mov rcx, rbx
call fcn.14004c0d4
mov ebx, eax
test eax, eax
js 0x14004b5a1
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14004b58a
test byte [rcx + 0x1c], 1
je 0x14004b58a
cmp byte [rcx + 0x19], 4
jb 0x14004b58a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e9e8]
mov edx, 0x8e
call fcn.14000c0e8
mov ecx, 0xe
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
nop dword [rax + rax]
mov dword [rdi], eax
xor ebx, ebx
jmp 0x14004b5d1
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14004b601
test byte [rcx + 0x1c], 1
je 0x14004b5d8
cmp byte [rcx + 0x19], 2
jb 0x14004b5d8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0x30
mov r9d, ebx
call fcn.14000c114
mov rcx, qword [0x14016a048]
cmp rcx, rsi
je 0x14004b601
test dword [rcx + 0x1c], 0x200
je 0x14004b601
cmp byte [rcx + 0x19], 4
jb 0x14004b601
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014b118]
mov edx, 0x31
call fcn.14000c0e8
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140065e10
Capabilities:
Create service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xa90
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0xa80], rax
call fcn.140066010
xor edi, edi
test eax, eax
je 0x140065e44
mov eax, 1
jmp 0x140065f1d
mov ebx, 0x104
lea rdx, [rsp + 0x72]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x140065f1b
cmp eax, ebx
je 0x140065f1b
lea ecx, [rax + 1]
mov r8d, 0x22
mov word [rsp + 0x70], r8w
mov word [rsp + rcx*2 + 0x70], r8w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x140066001
mov word [rsp + rcx + 0x70], di
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140065f3f
lea rdx, [rsp + 0x280]
mov ecx, 0xd80a
call fcn.1400642b4
test eax, eax
jne 0x140065efb
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x280]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov ecx, eax
call fcn.140008a0c
xor r9d, r9d
lea r8, [0x14016b388]
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0xaa0]
add rsp, 0xa90
pop rdi
ret
mov qword [rsp + 0x60], rdi
lea rax, str.RPCSS
mov qword [rsp + 0x58], rdi
lea r8, [0x14016b388]
mov qword [rsp + 0x50], rax
lea rdx, [0x14016b388]
mov qword [rsp + 0x48], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rdi
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
nop dword [rax + rax]
test rax, rax
jne 0x140065fde
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
lea rdx, [rsp + 0x280]
mov ecx, 0xd80b
call fcn.1400642b4
test eax, eax
jne 0x140065efb
lea r8, str.Could_not_start_service
jmp 0x140065edb
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
jmp 0x140065e3a
call fcn.1400073b8
int3
Function at 0x1400660e0
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r14, rdx
mov rbx, rcx
call fcn.140064e20
xor r15d, r15d
test r14, r14
jne 0x140066136
lea r8, str.pszAccountName
mov edx, 0x9c
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlsecurity.inl
call fcn.140088f60
jmp 0x1400662e2
mov edx, 2
mov qword [rsp + 0x50], r15
lea ecx, [rdx + 0x7e]
call fcn.140007da4
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140064080
mov rsi, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea rdi, [rbx + 0x50]
mov dword [rsp + 0x44], 0x44
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x20]
mov rdx, r14
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov dword [rsp + 0x40], 0x80
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14006621d
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x7a
jne 0x1400662d0
cmp dword [rsp + 0x44], 0x44
jbe 0x1400661c7
mov ecx, 0x80004005
call fcn.140008c24
int3
cmp dword [rsp + 0x40], 0x80
jbe 0x1400661e7
mov edx, dword [rsp + 0x40]
lea rcx, [rsp + 0x50]
add rdx, rdx
call fcn.140067180
mov rsi, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea r8, [rbp - 0x20]
mov qword [rsp + 0x20], rsi
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
nop dword [rax + rax]
test eax, eax
je 0x1400662d0
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
nop dword [rax + rax]
cmp eax, 0x44
jb 0x14006624a
lea r8, str.::GetLengthSid_pSid_____sizeof_SID____sizeof_ULONG_____15___sizeof_ULONG___
mov edx, 0xc4
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlsecurity.inl
call fcn.140088f60
mov rcx, rbx
mov byte [rbx + 0x4c], 1
call fcn.140068bb4
mov ecx, dword [rsp + 0x44]
lea r8, [rbp - 0x20]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_CopySid]
nop dword [rax + rax]
test eax, eax
je 0x1400662d0
or rdi, 0xffffffffffffffff
lea rcx, [rbx + 0x60]
test rsi, rsi
jne 0x140066283
mov eax, r15d
jmp 0x140066290
mov rax, rdi
inc rax
cmp word [rsi + rax*2], r15w
jne 0x140066286
mov r8d, eax
mov rdx, rsi
call fcn.14006838c
lea rcx, [rbx + 0x58]
inc rdi
cmp word [r14 + rdi*2], r15w
jne 0x14006629f
mov r8d, edi
mov rdx, r14
call fcn.14006838c
lea rcx, [rbx + 0x70]
xor r8d, r8d
xor edx, edx
call fcn.14006838c
lea rcx, [rsp + 0x50]
call fcn.140007ee0
mov al, 1
jmp 0x1400662e4
mov rcx, rbx
call fcn.140064e20
lea rcx, [rsp + 0x50]
call fcn.140007ee0
xor al, al
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140066c24
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov rsi, rcx
mov ebx, 1
mov rdi, qword [0x14016a0d0]
mov rax, qword [0x14016a0d8]
jmp 0x140066c77
test ebx, ebx
js 0x140066df8
mov rcx, qword [rdi]
test rcx, rcx
je 0x140066c73
mov r8d, 5
call fcn.140067358
mov ebx, eax
mov rax, qword [0x14016a0d8]
add rdi, 8
cmp rdi, rax
jb 0x140066c4f
test ebx, ebx
js 0x140066df8
jne 0x140066df4
cmp byte [rsi + 0x60], 0
je 0x140066d6e
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rsi + 0x50], rax
test rax, rax
jne 0x140066cba
and qword [rsp + 0x40], rax
jmp 0x140066d05
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rsi
lea r8, [0x140066620]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x140066cfb
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov qword [rsp + 0x40], rdi
test rdi, rdi
jne 0x140066d0c
mov ebx, 0x80004005
jmp 0x140066d5a
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140066d5a
lea r8, [0x14014bb00]
mov edx, 0xe4a
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140088f60
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov edx, dword [rsi + 0x58]
add edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call fcn.140063574
test ebx, ebx
jns 0x140066df8
jmp 0x140066d98
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x140066df8
lea r8, [0x14014bb00]
mov edx, 0xe55
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140088f60
xor eax, eax
mov rdi, qword [0x14016a0d0]
mov rcx, qword [0x14016a0d8]
jmp 0x140066dd5
test eax, eax
jne 0x140066dda
mov rdx, qword [rdi]
test rdx, rdx
je 0x140066dd1
cmp dword [rdx + 0x28], eax
je 0x140066dd1
mov ecx, dword [rdx + 0x28]
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
nop dword [rax + rax]
mov rcx, qword [0x14016a0d8]
add rdi, 8
cmp rdi, rcx
jb 0x140066daa
lea r8, [0x14014bb00]
mov edx, 0xe75
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140088f60
jmp 0x140066df8
mov byte [rsi + 0x60], 0
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140066fd8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rdi, r9
mov rbx, r8
mov rsi, rcx
cmp qword [rcx], rbp
jne 0x140067011
lea r8, str.m_hKey___0
mov edx, 0x1625
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140088f60
test rdi, rdi
jne 0x14006702e
lea r8, str.pnChars___0
mov edx, 0x1626
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140088f60
mov eax, dword [rdi]
lea r9, [rsp + 0x50]
mov rcx, qword [rsi]
lea rdx, str.LocalService
add eax, eax
mov dword [rdi], ebp
mov dword [rsp + 0x58], eax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140067097
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
ja 0x140067092
mov ecx, dword [rsp + 0x58]
test rbx, rbx
je 0x1400670a8
test ecx, ecx
je 0x1400670a5
test cl, 1
jne 0x140067092
mov eax, ecx
shr rax, 1
cmp word [rbx + rax*2 - 2], bp
je 0x1400670a8
mov eax, 0xd
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov word [rbx], bp
shr ecx, 1
mov dword [rdi], ecx
xor eax, eax
jmp 0x140067097
Function at 0x140068634
Capabilities:
Delete service
Stop service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r15
push rbp
lea rbp, [rax - 0xf58]
mov eax, 0x1050
call fcn.140141b50
sub rsp, rax
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rbp + 0xf40], rax
call fcn.140066010
test eax, eax
je 0x14006884d
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x1400686ef
lea rdx, [rsp + 0x40]
mov ecx, 0xd80a
call fcn.1400642b4
test eax, eax
jne 0x1400686cb
lea r8, str.Could_not_open_Service_Manager
mov edx, 0x400
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov ecx, eax
call fcn.140008a0c
lea rdx, [rsp + 0x40]
lea r8, [0x14016b388]
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop dword [rax + rax]
xor eax, eax
jmp 0x140068852
mov r8d, 0x10020
lea rdx, [0x14016b388]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x140068741
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
lea rdx, [rsp + 0x40]
mov ecx, 0xd80c
call fcn.1400642b4
test eax, eax
jne 0x1400686cb
lea r8, str.Could_not_open_service
jmp 0x1400686ae
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_ControlService]
nop dword [rax + rax]
test eax, eax
jne 0x1400687d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0x426
je 0x1400687d3
cmp eax, 0x425
jne 0x14006877f
cmp dword [rsp + 0x24], 3
je 0x1400687d3
lea rdx, [rsp + 0x40]
mov ecx, 0xd80e
call fcn.1400642b4
test eax, eax
jne 0x1400687b6
lea r8, str.Could_not_stop_service
mov edx, 0x400
lea rcx, [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov ecx, eax
call fcn.140008a0c
xor r9d, r9d
lea r8, [0x14016b388]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_DeleteService]
nop dword [rax + rax]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
test ebx, ebx
jne 0x14006884d
lea rdx, [rbp + 0x740]
mov ecx, 0xd80d
call fcn.1400642b4
test eax, eax
jne 0x140068841
lea r8, str.Could_not_delete_service
mov edx, 0x400
lea rcx, [rbp + 0x740]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov ecx, eax
call fcn.140008a0c
lea rdx, [rbp + 0x740]
jmp 0x1400686d0
mov eax, 1
mov rcx, qword [rbp + 0xf40]
xor rcx, rsp
call fcn.1400071e0
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x10]
mov r14, qword [r11 + 0x18]
mov r15, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140068e70
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rbp + 0x190], rax
and qword [rsp + 0x28], 0
lea r8, str.AppID
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
and qword [rsp + 0x38], 0
mov r9d, 0x20019
mov rdx, 0xffffffff80000000
call fcn.140009b6c
mov ebx, eax
test eax, eax
je 0x1400684db
mov dword [0x14016b59c], eax
jmp 0x1400685b7
mov rdx, qword [rsp + 0x28]
lea r8, [0x14014b610]
and qword [rsp + 0x40], 0
lea rcx, [rsp + 0x40]
and qword [rsp + 0x48], 0
mov r9d, 0x20019
and qword [rsp + 0x50], 0
call fcn.140009b6c
mov ebx, eax
test eax, eax
jne 0x1400685a7
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea r8, [rbp - 0x80]
lea rcx, [rsp + 0x40]
call fcn.140066fd8
and dword [0x14016b5ac], ebx
test eax, eax
jne 0x140068599
and qword [rsp + 0x68], 0
lea rax, [0x14016b388]
and qword [rsp + 0x70], 0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x58], rax
lea rax, [0x140068c50]
mov qword [rsp + 0x60], rax
mov dword [0x14016b5ac], 1
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
nop dword [rax + rax]
test eax, eax
jne 0x14006858f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [0x14016b59c], eax
jmp 0x140068595
mov eax, dword [0x14016b59c]
mov ebx, eax
jmp 0x1400685ad
lea rcx, [0x14016b320]
call fcn.1400675f4
mov ebx, eax
mov dword [0x14016b59c], eax
lea rcx, [rsp + 0x40]
call fcn.140008ef8
lea rcx, [rsp + 0x28]
call fcn.140008ef8
mov eax, ebx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400071e0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x2a0
pop rbp
ret
sub rsp, 0x28
cmp byte [0x14016b1c1], 0
mov qword [0x14016b1c8], rcx
je 0x140068ea1
lea r8, [0x140147e2c]
mov edx, 0xecf
lea rcx, str.onecoreexternal_sdkinc_atlmfc_atlbase.h
call fcn.140088f60
or eax, 0xffffffff
jmp 0x140068ed0
and dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
nop dword [rax + rax]
mov rdx, rax
lea r8, [rsp + 0x30]
call fcn.140066b80
cmp al, 1
jne 0x140068ecc
add rsp, 0x28
jmp 0x140068474
mov eax, dword [rsp + 0x30]
add rsp, 0x28
ret
Function at 0x140089400
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
test rcx, rcx
jne 0x14008942d
lea edx, [rcx + 0x3b]
lea rcx, str.base_stor_blbutil_networkutils.cpp
lea r8, str.wszNetworkShare
call fcn.140088f60
and qword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
xor edi, edi
mov rcx, rbx
mov qword [rsp + 0x58], rdi
or rsi, 0xffffffffffffffff
call fcn.14008a7d0
mov ebx, eax
test eax, eax
js 0x140089524
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14008949c
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x140089486
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x80070005
jne 0x140089524
mov ebx, 0x80780047
jmp 0x140089524
mov rcx, qword [rsp + 0x50]
lea r8, [rsp + 0x58]
lea rdx, str.TempFile.tmp
call fcn.14008a090
mov ebx, eax
test eax, eax
js 0x14008951f
and qword [rsp + 0x30], rdi
xor r9d, r9d
mov rdi, qword [rsp + 0x58]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x4000080
mov rcx, rdi
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140089524
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14008950e
movzx eax, ax
or eax, 0x80070000
mov ebx, 0x80780047
cmp eax, 0x80070005
cmove eax, ebx
mov ebx, eax
jmp 0x140089524
mov rdi, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
cmp rsi, 0xffffffffffffffff
je 0x140089559
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14008cbac
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x50
mov rax, qword [0x14016a508]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rcx
mov rcx, qword [0x14016a048]
lea r14, [0x14016a048]
lea r12, [0x14014e400]
mov ebp, 1
cmp rcx, r14
je 0x14008cc10
test byte [rcx + 0x1c], bpl
je 0x14008cc10
cmp byte [rcx + 0x19], 4
jb 0x14008cc10
mov rcx, qword [rcx + 0x10]
lea edx, [rbp + 0x17]
mov r8, r12
call fcn.14000c0e8
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
xor ebx, ebx
xor r9d, r9d
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
lea r8d, [rbx + 0x20]
lea ecx, [rbx + 0x5a]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
nop dword [rax + rax]
test eax, eax
jns 0x14008cc81
mov ecx, eax
call fcn.14002a600
mov ebx, eax
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14008cd24
test byte [rcx + 0x1c], 8
je 0x14008cd02
cmp byte [rcx + 0x19], 2
jb 0x14008cd02
mov rcx, qword [rcx + 0x10]
mov edx, 0x19
mov r9d, eax
mov r8, r12
call fcn.14000c114
jmp 0x14008ccfb
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14008ccb6
test byte [rcx + 0x1c], bpl
je 0x14008ccb6
cmp byte [rcx + 0x19], 4
jb 0x14008ccb6
mov r9d, dword [rsp + 0x30]
mov edx, 0x1a
mov rcx, qword [rcx + 0x10]
mov r8, r12
call fcn.14001539c
mov rcx, qword [0x14016a048]
cmp dword [rsp + 0x30], 2
movzx edi, bl
cmove edi, ebp
cmp rcx, r14
je 0x14008ccf8
test byte [rcx + 0x1c], bpl
je 0x14008ccf8
cmp byte [rcx + 0x19], 4
jb 0x14008ccf8
mov rcx, qword [rcx + 0x10]
lea rax, [0x140149238]
test dil, dil
lea r9, [0x140149230]
mov edx, 0x1b
mov r8, r12
cmove r9, rax
call fcn.140014f10
mov byte [rsi], dil
mov rcx, qword [0x14016a048]
cmp rcx, r14
je 0x14008cd24
test byte [rcx + 0x1c], bpl
je 0x14008cd24
cmp byte [rcx + 0x19], 4
jb 0x14008cd24
mov rcx, qword [rcx + 0x10]
mov edx, 0x1c
mov r8, r12
call fcn.14000c0e8
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400071e0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
Function at 0x14008d528
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
lea r9, [rsp + 0x68]
mov qword [rdx], r15
mov r14, rdx
xor edx, edx
mov dword [rsp + 0x70], r15d
xor r8d, r8d
mov rbp, rcx
mov ebx, r15d
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14008d592
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 0xea
je 0x14008d592
test eax, eax
jg 0x14008d584
mov ebx, eax
jmp 0x14008d669
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14008d669
mov ecx, dword [rsp + 0x68]
add rcx, rcx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x14008d5b7
mov ebx, 0x8007000e
jmp 0x14008d66d
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x70]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14008d5f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14008d65a
movzx ebx, ax
or ebx, 0x80070000
jmp 0x14008d65a
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], r15w
jne 0x14008d5f8
test edi, edi
je 0x14008d65a
lea eax, [rdi + 1]
lea rcx, [rax + rax]
mov ebx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov r11, rax
test rax, rax
jne 0x14008d62a
mov ebx, 0x8007000e
jmp 0x14008d65a
mov r8, rsi
mov rdx, rbx
mov rcx, r11
call fcn.140006300
mov ebx, eax
test eax, eax
js 0x14008d64b
lea ecx, [rdi - 1]
mov word [r11 + rcx*2], r15w
mov qword [r14], r11
jmp 0x14008d65a
mov rcx, r11
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
jns 0x14008d6a8
mov rcx, qword [0x14016a048]
lea rax, [0x14016a048]
cmp rcx, rax
je 0x14008d6a8
test byte [rcx + 0x1c], 1
je 0x14008d6a8
cmp byte [rcx + 0x19], 3
jb 0x14008d6a8
mov rcx, qword [rcx + 0x10]
lea r8, [0x14014e400]
mov edx, 0xa
mov dword [rsp + 0x20], ebx
mov r9, rbp
call fcn.140014f78
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret