joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005210
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
lea rdx, str.Service::start
mov ecx, 0x1000
call fcn.140006e40
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
xor edi, edi
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140005255
mov eax, 0x427
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8d, 0xf01ff
mov qword [rsp + 0x30], rsi
lea rdx, str.FvSvc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
jne 0x14000529f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [rsp + 0x30]
cmp eax, 0x424
cmove eax, edi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400052b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x30]
mov eax, edi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400052e0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x50
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdx, str.Service::uninstall
mov ecx, 0x1000
call fcn.140006e40
xor r14d, r14d
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov esi, r14d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140005338
mov eax, 0x427
jmp 0x140005407
mov r8d, 0xf01ff
mov qword [rsp + 0x68], rdi
lea rdx, str.FvSvc
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x140005378
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
cmove eax, r14d
jmp 0x140005402
lea r8, [rsp + 0x20]
mov qword [rsp + 0x60], rbx
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, 0x64
cmp dword [rsp + 0x24], 1
je 0x1400053bf
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140005425
dec ebx
test ebx, ebx
jg 0x140005395
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x1400053e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x430
jne 0x1400053e9
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov esi, r14d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14002d9f0
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400053fd
Function at 0x140005850
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, str._tWinMainSvc
mov ecx, 0x1000
call fcn.140006e40
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [rsp + 0x48], 1
mov rdi, rax
jle 0x140005a24
mov rcx, qword [rax + 8]
lea rdx, str._service
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400058c7
lea rcx, str.FvSvc
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov eax, ebx
jmp 0x140005a29
mov rcx, qword [rdi + 8]
lea rdx, str._install
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400058e8
call fcn.140004eb0
mov ebx, eax
jmp 0x140005a29
mov rcx, qword [rdi + 8]
lea rdx, str._uninstall
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140005a19
mov rcx, qword [rdi + 8]
lea rdx, str._start
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005922
call fcn.140005210
mov ebx, eax
jmp 0x140005a29
mov rcx, qword [rdi + 8]
lea rdx, str._testservice
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005a24
lea r8d, [rax + 0x12]
mov qword [rsp + 0x38], 0xf
lea rdx, str.FvSvc_Test_Console
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x20]
mov byte [rsp + 0x20], bl
call fcn.140006080
lea rcx, [rsp + 0x20]
call fcn.140004b10
lea rcx, str.Installing_FvSvc_n
call fcn.1400049c0
call fcn.140004eb0
test eax, eax
jne 0x140005a20
lea rcx, str.Starting_FvSvc_n
call fcn.1400049c0
call fcn.140005210
test eax, eax
jne 0x140005a0d
lea edx, [rax + 1]
lea rcx, [0x140004bc0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, str.Press_ESC_to_stop_and_uninstall_service_n
call fcn.1400049c0
call fcn.1400533f0
test eax, eax
je 0x1400059c8
call fcn.140053184
cmp al, 0x1b
je 0x1400059e9
cmp byte [0x1400d91cc], bl
jne 0x1400059e9
lea rcx, [0x1400b406c]
call fcn.1400049c0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400059b6
lea rcx, [0x1400b3ff4]
call fcn.1400049c0
lea rcx, str.Exiting__please_wait_for_service_to_be_stopped_and_uninstalled_n
call fcn.1400049c0
lea rcx, str.Console_will_close_automatically_on_exit_n
call fcn.1400049c0
lea rcx, str.Uninstalling_FvSvc_n
call fcn.1400049c0
call fcn.1400052e0
mov ebx, eax
mov eax, ebx
jmp 0x140005a29
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002d9f0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140005ca0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, rcx
lea rdx, str.Service::terminateProvider
mov ecx, 0x1000
call fcn.140006e40
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbx, qword [rdi + 0x68]
xor esi, esi
mov qword [rdi + 0x68], rsi
test rbx, rbx
je 0x140005d04
mov rcx, rbx
call fcn.14001afe0
lea edx, [rsi + 0x60]
mov rcx, rbx
call fcn.14002dfd8
xchg dword [rdi + 0x50], esi
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rax, qword [rsp + 0x20]
xorps xmm1, xmm1
sub rax, qword [rsp + 0x28]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x30]
cvtsi2ss xmm1, rax
mulss xmm1, dword [0x1400b7960]
divss xmm1, xmm0
cvtps2pd xmm6, xmm1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp byte [0x1400d91cd], 0
lea rdx, str.__d__Service::terminateProvider__lf__n
mov r8d, eax
movaps xmm3, xmm6
lea rax, str.Service::terminateProvider___line_630_:___d__Service::terminateProvider__lf__n
movq r9, xmm3
cmovne rdx, rax
mov ecx, 1
call fcn.140006e40
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14002d9f0
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rdi
ret

Function at 0x140006c20
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x98
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x50]
call fcn.1400576fc
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400dd94c], eax
jle 0x140006c8c
lea rcx, [0x1400dd94c]
call fcn.14002e188
cmp dword [0x1400dd94c], 0xffffffff
jne 0x140006c8c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x1400dd94c]
mov dword [0x1400dd948], eax
call fcn.14002e128
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400574f4
test eax, eax
jne 0x140006cfd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [rsp + 0x68]
lea r8, str._d__02d__02d___02d:_02d:_02d._08d
sub eax, dword [0x1400dd948]
mov edx, 0x104
mov r9d, dword [rsp + 0x6c]
inc ecx
mov dword [rsp + 0x48], eax
add r9d, 0x76c
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [0x1400d91e0]
call fcn.140006bc0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14002d9f0
add rsp, 0x98
ret
Function at 0x140006d20
Capabilities:
Access the windows event log
Print debug messages

Disassembly:
test cl, 0x11
je 0x140006e38
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, r8
mov qword [rsp + 0x98], rbx
mov rsi, rdx
mov edi, ecx
call fcn.140006c20
mov ecx, 0x800
call fcn.14002e2e4
mov rbx, rax
test rax, rax
je 0x140006e1c
mov r9, rbp
mov r8, rsi
mov edx, 0x3fe
mov rcx, rax
call fcn.140006b50
lea r8, [0x1400b48e4]
mov edx, 0x400
mov rcx, rbx
call fcn.1400575e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [0x1400b48e8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x140006e14
mov qword [rsp + 0x50], rbx
mov ecx, 4
lea r8d, [rcx - 3]
test dil, 0xee
je 0x140006dcb
movzx ecx, r8w
jmp 0x140006dd8
test edi, 0xefe
je 0x140006dd8
mov ecx, 2
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], r8w
movzx r8d, di
mov qword [rsp + 0x20], rdx
movzx edx, cx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rbx
call fcn.14002dfd8
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002d9f0
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140006d29
Capabilities:
Access the windows event log
Print debug messages

Disassembly:
test cl, 0x11
je 0x140006e38
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, r8
mov qword [rsp + 0x98], rbx
mov rsi, rdx
mov edi, ecx
call fcn.140006c20
mov ecx, 0x800
call fcn.14002e2e4
mov rbx, rax
test rax, rax
je 0x140006e1c
mov r9, rbp
mov r8, rsi
mov edx, 0x3fe
mov rcx, rax
call fcn.140006b50
lea r8, [0x1400b48e4]
mov edx, 0x400
mov rcx, rbx
call fcn.1400575e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [0x1400b48e8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x140006e14
mov qword [rsp + 0x50], rbx
mov ecx, 4
lea r8d, [rcx - 3]
test dil, 0xee
je 0x140006dcb
movzx ecx, r8w
jmp 0x140006dd8
test edi, 0xefe
je 0x140006dd8
mov ecx, 2
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rdx
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], r8w
movzx r8d, di
mov qword [rsp + 0x20], rdx
movzx edx, cx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, rbx
call fcn.14002dfd8
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14002d9f0
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400086e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edi, edi
mov dword [rcx + 0x14584], 0x64
mov qword [rcx], rdi
mov rbx, rcx
mov qword [rcx + 8], rdi
xor edx, edx
mov qword [rcx + 0x10], rdi
mov r8d, 0x160
mov qword [rcx + 0x18], rdi
mov dword [rcx + 0x14580], edi
mov dword [rcx + 0x14570], edi
mov qword [rcx + 0x14578], rdi
mov qword [rcx + 0x145a8], rdi
mov dword [rcx + 0x14588], 0x2710
mov qword [rcx + 0x1458c], 0x64
mov dword [rcx + 0x14594], 0x481
mov qword [rcx + 0x14598], 0x70000
mov qword [rcx + 0x145a0], 0x60
add rcx, 0x20
call fcn.140051840
lea rcx, [rbx + 0x180]
xor edx, edx
mov r8d, 0x120
call fcn.140051840
lea rcx, [rbx + 0x2a0]
xor edx, edx
mov r8d, 0x11d00
call fcn.140051840
lea rcx, [rbx + 0x11fa0]
mov dword [rbx + 0x145b0], edi
xor edx, edx
mov dword [rbx + 0x145b4], 1
mov r8d, 0x25d0
mov dword [rbx + 0x145b8], 1
mov qword [rbx + 0x147d8], rdi
call fcn.140051840
mov eax, edi
mov qword [rbx + 0x148e0], rdi
nop dword [rax]
xor ecx, ecx
mov qword [rax + rbx + 0x147e0], rcx
mov qword [rax + rbx + 0x147e8], rcx
add rax, 0x10
cmp rax, 0x100
jb 0x1400087e0
lea rdx, [rbx + 0x145c4]
mov dword [rbx + 0x147cc], edi
mov ecx, 0x208
mov qword [rbx + 0x145bc], rdi
mov dword [rbx + 0x147d0], 0x91
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rax, dword [rbx + 0x147cc]
imul rcx, rax, 0x104
add rcx, 0x145c4
add rcx, rbx
je 0x14000884e
mov edx, 0x104
call fcn.14005d2b8
mov rdi, rax
mov ecx, dword [0x1400b4e70]
lea r8, [rsp + 0x20]
movsd xmm0, qword [0x1400b4e68]
mov r9d, 0xf
mov dword [rsp + 0x28], ecx
mov edx, 0x104
movzx ecx, word [0x1400b4e74]
mov word [rsp + 0x2c], cx
movzx ecx, byte [0x1400b4e76]
mov byte [rsp + 0x2e], cl
movsxd rcx, dword [rbx + 0x147cc]
add rbx, 0x145c4
imul rcx, rcx, 0x104
movsd qword [rsp + 0x20], xmm0
add rcx, rbx
add rcx, rdi
call fcn.14005b454
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14002d9f0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000c9f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov r9d, 0x64
mov edi, r8d
mov rbx, rdx
lea r8, [0x1400dd250]
mov rsi, rcx
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x64
lea r8, [0x1400d9400]
xor ecx, ecx
lea edx, [r9 + 5]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, rbx
call fcn.14000c930
xor ebp, ebp
mov qword [0x1400d93f8], rbx
mov qword [rsp + 0x58], rbp
lea r8, [0x1400dd250]
mov qword [rsp + 0x50], rbx
lea rdx, [0x1400d9400]
mov qword [rsp + 0x48], rbp
mov r9d, 0x20000
mov qword [rsp + 0x40], rbp
xor ecx, ecx
mov dword [rsp + 0x38], 0x190
mov dword [rsp + 0x30], 0x190
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x1400dd230], rax
test rax, rax
je 0x14000cb36
mov edx, edi
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400dd230]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x1400dd230]
mov r8, rsi
mov edx, 0xffffffeb
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
cmp byte [0x1400d954d], bpl
jne 0x14000cb2f
cmp dword [0x1400d9550], ebp
jne 0x14000cb2f
xor r8d, r8d
lea r9, str.QuitEvent
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
mov qword [rsp + 0x28], rbp
lea r8, [0x14000c190]
mov qword [0x1400dd218], rax
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400d94e8], rax
mov rax, qword [0x1400dd230]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14000d330
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov edi, r9d
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_SetDefaultDllDirectories]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [rsp + 0x20], 1
jne 0x14000d382
mov r9d, edi
mov rcx, rbx
call fcn.14000cc90
jmp 0x14000d387
call fcn.140005850
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14002d9f0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140017520
Capabilities:
Acquire debug privileges

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
xor edx, edx
lea rcx, str.advapi32
mov r8d, 0x800
xor dil, dil
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rsi, rax
test rax, rax
je 0x14001768a
mov qword [rsp + 0x78], rbx
lea rdx, str.LookupPrivilegeValueA
mov rcx, rax
mov qword [rsp + 0x80], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400b5580]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rbx, rbx
je 0x140017674
test rax, rax
je 0x140017674
mov rcx, rbx
call qword [fcn.140006f80]
lea r8, [rsp + 0x30]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call rbx
test eax, eax
je 0x140017650
mov rax, qword [rsp + 0x30]
mov rcx, rbp
mov qword [rsp + 0x3c], rax
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [fcn.140006f80]
xor eax, eax
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], rax
xor edx, edx
mov rcx, r14
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x10]
call rbp
test eax, eax
je 0x140017635
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x14001761a
mov dil, 1
jmp 0x140017674
mov ecx, 2
call fcn.140052f50
mov rcx, rax
lea rdx, str.error:_token_does_not_have_the_specified_privilege._n
call fcn.140016e50
jmp 0x140017674
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140052f50
lea rdx, str.error:_failed_to_adjust_token_privileges___u_._n
jmp 0x140017669
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call fcn.140052f50
lea rdx, str.error:_failed_to_lookup_privilege_value___u_._n
mov r8d, ebx
mov rcx, rax
call fcn.140016e50
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
movzx eax, dil
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14002d9f0
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x1400177b0
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x150
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
test rcx, rcx
jne 0x1400177ed
mov r8d, 0x104
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x2c]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebp, eax
test eax, eax
jne 0x140017808
xor eax, eax
jmp 0x140017893
mov qword [rsp + 0x168], rbx
mov rcx, rbp
mov qword [rsp + 0x170], rsi
xor ebx, ebx
call fcn.14002e2e4
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x140017873
lea r9, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x20]
mov dword [rsp + 0x28], ebx
lea rdx, [0x1400b2db4]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140017873
mov rcx, qword [rsp + 0x20]
mov ebx, dword [rcx + 8]
mov ecx, dword [rcx + 0xc]
shl rbx, 0x20
or rbx, rcx
test rsi, rsi
je 0x140017880
mov rcx, rsi
call fcn.14002dfd8
mov rsi, qword [rsp + 0x170]
mov rax, rbx
mov rbx, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14002d9f0
mov rbp, qword [rsp + 0x178]
add rsp, 0x150
pop rdi
ret

Function at 0x140017b70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rcx
lea r9, [rsp + 0x28]
xor ebx, ebx
lea rcx, [0x14009d450]
xor r8d, r8d
mov dword [rsp + 0x20], ebx
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x140017bde
lea r9d, [rbx + 0x10]
xor r8d, r8d
lea rdx, str.SHGetKnownFolderPath_FOLDERID_ProgramData__failed.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov qword [rdi + 0x18], 7
lea rdx, [0x1400b2ca0]
mov qword [rdi + 0x10], rbx
xor r8d, r8d
mov word [rdi], bx
jmp 0x140017c0d
mov rdx, qword [rsp + 0x28]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rdx], bx
je 0x140017c0a
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x140017c00
mov r8, rbx
mov rcx, rdi
call fcn.1400108b0
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14002d9f0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140017c90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
lea r9, [rsp + 0x28]
xor edi, edi
lea rcx, [0x14009d440]
xor r8d, r8d
mov dword [rsp + 0x20], edi
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x140017d06
lea r9d, [rdi + 0x10]
xor r8d, r8d
lea rdx, str.SHGetKnownFolderPath_FOLDERID_Documents__failed.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov qword [rbx + 0x18], 7
lea rdx, [0x1400b2ca0]
mov qword [rbx + 0x10], rdi
xor r8d, r8d
mov rcx, rbx
mov word [rbx], di
call fcn.1400108b0
jmp 0x140017d7d
mov rdx, qword [rsp + 0x28]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
cmp word [rdx], di
jne 0x140017d28
mov r8, rdi
jmp 0x140017d3a
or r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], di
jne 0x140017d30
lea rcx, [rsp + 0x30]
call fcn.1400108b0
mov qword [rbx + 0x18], 7
lea rdx, [rsp + 0x30]
mov qword [rbx + 0x10], rdi
mov rcx, rbx
mov word [rbx], di
call fcn.140010b30
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140017d7d
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
inc r8
call fcn.1400062d0
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002d9f0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140017e00
Capabilities:
Create directory

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x1400d3008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
lea rcx, [r11 - 0x38]
call fcn.140017da0
nop
lea rdi, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.140017ae0
test al, al
jne 0x140017e73
xor r8d, r8d
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x140017e73
mov rcx, rbx
call fcn.140017c90
jmp 0x140017e9f
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], rsi
cmp qword [rbx + 0x18], 8
jb 0x140017e8b
mov rax, qword [rbx]
jmp 0x140017e8e
mov rax, rbx
mov word [rax], si
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140010b30
nop
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140017ebc
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.1400062d0
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14002d9f0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret