joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015800
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140009110
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001588a
cmp byte [rbp - 0x21], r15b
je 0x140015885
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400158c0
call fcn.14000be1c
test eax, eax
jne 0x1400158ac
cmp byte [rbp - 0x21], r15b
je 0x1400158a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400158c0
cmp byte [rbp - 0x21], r15b
je 0x1400158bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000e0f8
test eax, eax
jne 0x140015960
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140009110
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400158ff
cmp byte [rbp - 0x21], r15b
je 0x140015934
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140015934
call fcn.14000be1c
test eax, eax
jne 0x140015920
cmp byte [rbp - 0x21], r15b
je 0x140015919
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140015934
cmp byte [rbp - 0x21], r15b
je 0x140015931
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000e0f8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140015960
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140015963
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140015971
mov rcx, rdi
call fcn.14000af80
cmp byte [rbp + 0x3f], r15b
je 0x140015980
mov rcx, qword [rbp + 0x27]
call fcn.14000af80
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002943c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001cb04
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001cb04
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002958c
cmp rax, 0xffffffffffffffff
je 0x14002958c
xor edi, edi
test rbp, rbp
jle 0x140029537
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001f430
mov rbx, rax
test rax, rax
jne 0x1400294c4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002952d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001a438
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001d7e0
cmp eax, 0xffffffff
je 0x14002950d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400294d4
mov edx, r15d
mov ecx, r14d
call fcn.14001a438
jmp 0x14002952d
cmp byte [rsi + 0x38], dil
je 0x140029524
cmp dword [rsi + 0x34], 5
jne 0x140029524
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002952d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b1cc
jmp 0x1400295a0
jns 0x1400295a0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001cb04
cmp rax, 0xffffffffffffffff
jne 0x140029558
cmp byte [rsi + 0x30], dil
je 0x1400295a0
mov edi, dword [rsi + 0x2c]
jmp 0x1400295a0
mov ecx, r14d
call fcn.1400188f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400295a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400295a0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029599
mov eax, dword [rsi + 0x2c]
jmp 0x14002959e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001cb04
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140006c74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140008078]
test rax, rax
je 0x140006cbe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140006cbe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140006cbe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140006cbe
cmp dword [rcx + 0x84], 0xe
jbe 0x140006cbe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140006cc0
xor al, al
add rsp, 0x28
ret
Function at 0x1400048d0
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x140015228]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea r8, [0x140015228]
lea rdx, str.CONOUT_
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
cmp qword [rbx + 0x18], 0x10
jb 0x140004956
mov rcx, qword [rbx]
jmp 0x140004959
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, rbx
call fcn.1400058a0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400115c0
add rsp, 0x30
pop rbx
ret
Function at 0x140005050
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
lea rdx, str.Service::start
mov ecx, 0x1000
call fcn.1400067d0
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 0x140005095
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 0x1400050df
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 0x1400050f9
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 0x140005120
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 [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdx, str.Service::uninstall
mov ecx, 0x1000
call fcn.1400067d0
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 0x140005178
mov eax, 0x427
jmp 0x140005247
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 0x1400051b8
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
cmove eax, r14d
jmp 0x140005242
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 0x1400051ff
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 0x140005265
dec ebx
test ebx, ebx
jg 0x1400051d5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140005229
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x430
jne 0x140005229
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.1400115c0
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000523d
Function at 0x1400054e0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, str._tWinMainSvc
mov ecx, 0x1000
call fcn.1400067d0
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 0x1400056b6
mov rcx, qword [rax + 8]
lea rdx, str._service
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005557
lea rcx, str.FvSvc
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov eax, ebx
jmp 0x1400056bb
mov rcx, qword [rdi + 8]
lea rdx, str._install
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005578
call fcn.140004c90
mov ebx, eax
jmp 0x1400056bb
mov rcx, qword [rdi + 8]
lea rdx, str._uninstall
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400056ab
mov rcx, qword [rdi + 8]
lea rdx, str._start
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400055b2
call fcn.140005050
mov ebx, eax
jmp 0x1400056bb
mov rcx, qword [rdi + 8]
lea rdx, str._testservice
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400056b6
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.140005a10
lea rcx, [rsp + 0x20]
call fcn.1400048d0
lea rcx, str.Installing_FvSvc_n
call fcn.140004870
call fcn.140004c90
test eax, eax
jne 0x1400056b2
lea rcx, str.Starting_FvSvc_n
call fcn.140004870
call fcn.140005050
test eax, eax
jne 0x14000569f
lea edx, [rax + 1]
lea rcx, [0x140004980]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, str.Press_ESC_to_stop_and_uninstall_service_n
call fcn.140004870
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__kbhit]
test eax, eax
je 0x14000565a
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
cmp al, 0x1b
je 0x14000567b
cmp byte [0x14001efca], bl
jne 0x14000567b
lea rcx, [0x1400160cc]
call fcn.140004870
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140005646
lea rcx, [0x140016054]
call fcn.140004870
lea rcx, str.Exiting__please_wait_for_service_to_be_stopped_and_uninstalled_n
call fcn.140004870
lea rcx, str.Console_will_close_automatically_on_exit_n
call fcn.140004870
lea rcx, str.Uninstalling_FvSvc_n
call fcn.140004870
call fcn.140005120
mov ebx, eax
mov eax, ebx
jmp 0x1400056bb
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400115c0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x1400065b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x98
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140023cb0], eax
jle 0x14000661d
lea rcx, [0x140023cb0]
call fcn.140011c28
cmp dword [0x140023cb0], 0xffffffff
jne 0x14000661d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140023cb0]
mov dword [0x140023cac], eax
call fcn.140011bc8
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
test eax, eax
jne 0x14000668f
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 [0x140023cac]
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, [0x14001f380]
call fcn.140006550
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400115c0
add rsp, 0x98
ret

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

Disassembly:
test cl, 0x11
je 0x1400067c9
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, r8
mov qword [rsp + 0x98], rbx
mov rsi, rdx
mov edi, ecx
call fcn.1400065b0
mov ecx, 0x800
call fcn.140011d84
mov rbx, rax
test rax, rax
je 0x1400067ad
mov r9, rbp
mov r8, rsi
mov edx, 0x3fe
mov rcx, rax
call fcn.1400064e0
lea r8, [0x1400161c4]
mov edx, 0x400
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [0x1400161c8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x1400067a5
mov qword [rsp + 0x50], rbx
mov ecx, 4
lea r8d, [rcx - 3]
test dil, 0xee
je 0x14000675c
movzx ecx, r8w
jmp 0x140006769
test edi, 0xefe
je 0x140006769
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.140011760
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400115c0
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400066b9
Capabilities:
Access the windows event log
Print debug messages

Disassembly:
test cl, 0x11
je 0x1400067c9
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, r8
mov qword [rsp + 0x98], rbx
mov rsi, rdx
mov edi, ecx
call fcn.1400065b0
mov ecx, 0x800
call fcn.140011d84
mov rbx, rax
test rax, rax
je 0x1400067ad
mov r9, rbp
mov r8, rsi
mov edx, 0x3fe
mov rcx, rax
call fcn.1400064e0
lea r8, [0x1400161c4]
mov edx, 0x400
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [0x1400161c8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x1400067a5
mov qword [rsp + 0x50], rbx
mov ecx, 4
lea r8d, [rcx - 3]
test dil, 0xee
je 0x14000675c
movzx ecx, r8w
jmp 0x140006769
test edi, 0xefe
je 0x140006769
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.140011760
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400115c0
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

Function at 0x140006b30
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edi, edi
mov dword [rcx + 0xfdac], 0x64
mov qword [rcx], rdi
mov rbx, rcx
mov qword [rcx + 8], rdi
xor edx, edx
mov qword [rcx + 0x10], rdi
mov r8d, 0xfd80
mov qword [rcx + 0x18], rdi
mov dword [rcx + 0xfda8], edi
mov qword [rcx + 0xfda0], rdi
mov qword [rcx + 0xfdc8], rdi
mov dword [rcx + 0xfdb0], 0x2710
mov qword [rcx + 0xfdb4], 0x64
mov dword [rcx + 0xfdbc], 0x3483
mov qword [rcx + 0xfdc0], 0x70000
add rcx, 0x20
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbx + 0xfde4]
mov dword [rbx + 0xfdd0], edi
mov ecx, 0x208
mov dword [rbx + 0xfdd4], 1
mov qword [rbx + 0xfdd8], 1
mov dword [rbx + 0xffec], edi
mov dword [rbx + 0xfde0], edi
mov dword [rbx + 0xfff0], 0x91
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rax, dword [rbx + 0xffec]
imul rcx, rax, 0x104
add rcx, 0xfde4
add rcx, rbx
je 0x140006c21
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov rdi, rax
mov ecx, dword [0x140016550]
lea r8, [rsp + 0x20]
movsd xmm0, qword [0x140016548]
mov r9d, 0xf
mov dword [rsp + 0x28], ecx
mov edx, 0x104
movzx ecx, word [0x140016554]
mov word [rsp + 0x2c], cx
movzx ecx, byte [0x140016556]
mov byte [rsp + 0x2e], cl
movsxd rcx, dword [rbx + 0xffec]
add rbx, 0xfde4
imul rcx, rcx, 0x104
movsd qword [rsp + 0x20], xmm0
add rcx, rbx
add rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400115c0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000aa00
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x148
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x130], rax
cmp byte [0x140023aa0], 0
jne 0x14000aa4d
mov edx, 0x104
lea rcx, [0x140023aa0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r8, str.VRFCAT_Plugins_
mov edx, 0x104
lea rcx, [0x140023aa0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x140023aa0]
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str.PresentMon_x64.dll
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14001f670], rax
mov rcx, rax
test rax, rax
je 0x14000aac0
lea rdx, str.InitLibrary
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x140023600]
mov qword [0x1400234d0], rcx
lea rcx, [0x1400234c8]
call rax
mov rcx, qword [0x14001f670]
test rcx, rcx
setne al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400115c0
add rsp, 0x148
ret

Function at 0x14000b1a0
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, [0x1400233f0]
mov rsi, rcx
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x64
lea r8, [0x14001f5a0]
xor ecx, ecx
lea edx, [r9 + 5]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, rbx
call fcn.14000b0e0
xor ebp, ebp
mov qword [0x14001f590], rbx
mov qword [rsp + 0x58], rbp
lea r8, [0x1400233f0]
mov qword [rsp + 0x50], rbx
lea rdx, [0x14001f5a0]
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 [0x1400233d0], rax
test rax, rax
je 0x14000b2e6
mov edx, edi
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400233d0]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x1400233d0]
mov r8, rsi
mov edx, 0xffffffeb
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
cmp byte [0x14001f6ed], bpl
jne 0x14000b2df
cmp dword [0x14001f6f0], ebp
jne 0x14000b2df
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, [0x14000a8d0]
mov qword [0x1400233b8], rax
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14001f688], rax
mov rax, qword [0x1400233d0]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14000be30
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edi, r9d
mov rbx, rcx
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 0x14000be77
mov r9d, edi
mov rcx, rbx
call fcn.14000b440
jmp 0x14000be7c
call fcn.1400054e0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400115c0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000e7a0
Capabilities:
Acquire debug privileges

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14001e008]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov r14, rcx
xor dil, dil
lea rcx, str.advapi32
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000e8f3
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, str.AdjustTokenPrivileges
mov rcx, rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rbp, rbp
je 0x14000e8dd
test rax, rax
je 0x14000e8dd
lea r8, [rsp + 0x30]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call rbp
test eax, eax
je 0x14000e8b8
mov rax, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x3c], rax
xor edx, edx
xor eax, eax
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], rax
mov rcx, r14
mov dword [rsp + 0x44], 2
mov qword [rsp + 0x20], rax
lea r9d, [rax + 0x10]
call rbx
test eax, eax
je 0x14000e89c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x14000e880
mov dil, 1
jmp 0x14000e8dd
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.error:_token_does_not_have_the_specified_privilege._n
call fcn.14000e710
jmp 0x14000e8dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.error:_failed_to_adjust_token_privileges___u_._n
jmp 0x14000e8d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.error:_failed_to_lookup_privilege_value___u_._n
mov r8d, ebx
mov rcx, rax
call fcn.14000e710
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.1400115c0
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret