joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001df0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
mov esi, edi
test rcx, rcx
je 0x140001eb3
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, eax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rbx + rdx*2], si
jne 0x140001e24
lea ecx, [rax + 1]
add rdx, rcx
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x140001eb6
mov edx, ebp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r8d, eax
lea ecx, [r8 - 1]
cmp word [rsi + rcx*2], 0x5c
je 0x140001e6f
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140001e73
test rax, rax
je 0x140001eb3
mov rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, word [rbx + rdx*2]
lea ecx, [rdi + r8]
inc edi
mov word [rsi + rcx*2], ax
mov edx, edi
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], 0
jne 0x140001ea4
cmp rdx, rax
jb 0x140001e90
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004940
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14003a008]
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, [0x1400292b8]
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, [0x1400292b8]
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 0x1400049c6
mov rcx, qword [rbx]
jmp 0x1400049c9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, rbx
call fcn.140005910
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140024970
add rsp, 0x30
pop rbx
ret
Function at 0x1400050c0
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
lea rdx, str.Service::start
mov ecx, 0x1000
call fcn.140006970
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 0x140005105
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 0x14000514f
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 0x140005169
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 0x140005190
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 [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rdx, str.Service::uninstall
mov ecx, 0x1000
call fcn.140006970
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 0x1400051e8
mov eax, 0x427
jmp 0x1400052b7
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 0x140005228
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
cmove eax, r14d
jmp 0x1400052b2
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 0x14000526f
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 0x1400052d5
dec ebx
test ebx, ebx
jg 0x140005245
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140005299
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x430
jne 0x140005299
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.140024970
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400052ad
Function at 0x140005540
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rdx, str._tWinMainSvc
mov ecx, 0x1000
call fcn.140006970
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 0x140005716
mov rcx, qword [rax + 8]
lea rdx, str._service
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400055b7
lea rcx, str.FvSvc
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov eax, ebx
jmp 0x14000571b
mov rcx, qword [rdi + 8]
lea rdx, str._install
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400055d8
call fcn.140004d00
mov ebx, eax
jmp 0x14000571b
mov rcx, qword [rdi + 8]
lea rdx, str._uninstall
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000570b
mov rcx, qword [rdi + 8]
lea rdx, str._start
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005612
call fcn.1400050c0
mov ebx, eax
jmp 0x14000571b
mov rcx, qword [rdi + 8]
lea rdx, str._testservice
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005716
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.140005b70
lea rcx, [rsp + 0x20]
call fcn.140004940
lea rcx, str.Installing_FvSvc_n
call fcn.1400048e0
call fcn.140004d00
test eax, eax
jne 0x140005712
lea rcx, str.Starting_FvSvc_n
call fcn.1400048e0
call fcn.1400050c0
test eax, eax
jne 0x1400056ff
lea edx, [rax + 1]
lea rcx, [0x1400049f0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, str.Press_ESC_to_stop_and_uninstall_service_n
call fcn.1400048e0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__kbhit]
test eax, eax
je 0x1400056ba
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
cmp al, 0x1b
je 0x1400056db
cmp byte [0x14003b8fc], bl
jne 0x1400056db
lea rcx, [0x14002a15c]
call fcn.1400048e0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400056a6
lea rcx, [0x14002a0e4]
call fcn.1400048e0
lea rcx, str.Exiting__please_wait_for_service_to_be_stopped_and_uninstalled_n
call fcn.1400048e0
lea rcx, str.Console_will_close_automatically_on_exit_n
call fcn.1400048e0
lea rcx, str.Uninstalling_FvSvc_n
call fcn.1400048e0
call fcn.140005190
mov ebx, eax
mov eax, ebx
jmp 0x14000571b
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140024970
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140006750
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub rsp, 0x98
mov rax, qword [0x14003a008]
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 [0x140040044], eax
jle 0x1400067bd
lea rcx, [0x140040044]
call fcn.140024fe8
cmp dword [0x140040044], 0xffffffff
jne 0x1400067bd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140040044]
mov dword [0x140040040], eax
call fcn.140024f88
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 0x14000682f
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 [0x140040040]
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, [0x14003b910]
call fcn.1400066f0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024970
add rsp, 0x98
ret

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

Disassembly:
test cl, 0x11
je 0x140006969
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, r8
mov qword [rsp + 0x98], rbx
mov rsi, rdx
mov edi, ecx
call fcn.140006750
mov ecx, 0x800
call fcn.140025144
mov rbx, rax
test rax, rax
je 0x14000694d
mov r9, rbp
mov r8, rsi
mov edx, 0x3fe
mov rcx, rax
call fcn.140006680
lea r8, [0x14002a254]
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, [0x14002a258]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x140006945
mov qword [rsp + 0x50], rbx
mov ecx, 4
lea r8d, [rcx - 3]
test dil, 0xee
je 0x1400068fc
movzx ecx, r8w
jmp 0x140006909
test edi, 0xefe
je 0x140006909
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.140024e38
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140024970
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006859
Capabilities:
Access the windows event log
Print debug messages

Disassembly:
test cl, 0x11
je 0x140006969
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, r8
mov qword [rsp + 0x98], rbx
mov rsi, rdx
mov edi, ecx
call fcn.140006750
mov ecx, 0x800
call fcn.140025144
mov rbx, rax
test rax, rax
je 0x14000694d
mov r9, rbp
mov r8, rsi
mov edx, 0x3fe
mov rcx, rax
call fcn.140006680
lea r8, [0x14002a254]
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, [0x14002a258]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x140006945
mov qword [rsp + 0x50], rbx
mov ecx, 4
lea r8d, [rcx - 3]
test dil, 0xee
je 0x1400068fc
movzx ecx, r8w
jmp 0x140006909
test edi, 0xefe
je 0x140006909
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.140024e38
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140024970
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006cd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edi, edi
mov dword [rcx + 0x14384], 0x64
mov qword [rcx], rdi
mov rbx, rcx
mov qword [rcx + 8], rdi
xor edx, edx
mov qword [rcx + 0x10], rdi
mov r8d, 0x11d80
mov qword [rcx + 0x18], rdi
mov dword [rcx + 0x14380], edi
mov dword [rcx + 0x14370], edi
mov qword [rcx + 0x14378], rdi
mov qword [rcx + 0x143a8], rdi
mov dword [rcx + 0x14388], 0x2710
mov qword [rcx + 0x1438c], 0x64
mov dword [rcx + 0x14394], 0x3483
mov qword [rcx + 0x14398], 0x70000
mov qword [rcx + 0x143a0], 0x60
add rcx, 0x20
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbx + 0x11da0]
mov dword [rbx + 0x143b0], edi
xor edx, edx
mov dword [rbx + 0x143b4], 1
mov r8d, 0x25d0
mov dword [rbx + 0x143b8], 1
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbx + 0x143c4]
mov dword [rbx + 0x145cc], edi
mov ecx, 0x208
mov qword [rbx + 0x143bc], rdi
mov dword [rbx + 0x145d0], 0x91
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rax, dword [rbx + 0x145cc]
imul rcx, rax, 0x104
add rcx, 0x143c4
add rcx, rbx
je 0x140006de6
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov rdi, rax
mov ecx, dword [0x14002a5e0]
lea r8, [rsp + 0x20]
movsd xmm0, qword [0x14002a5d8]
mov r9d, 0xf
mov dword [rsp + 0x28], ecx
mov edx, 0x104
movzx ecx, word [0x14002a5e4]
mov word [rsp + 0x2c], cx
movzx ecx, byte [0x14002a5e6]
mov byte [rsp + 0x2e], cl
movsxd rcx, dword [rbx + 0x145cc]
add rbx, 0x143c4
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.140024970
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000b270
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, [0x14003f980]
mov rsi, rcx
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x64
lea r8, [0x14003bb30]
xor ecx, ecx
lea edx, [r9 + 5]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, rbx
call fcn.14000b1b0
xor ebp, ebp
mov qword [0x14003bb28], rbx
mov qword [rsp + 0x58], rbp
lea r8, [0x14003f980]
mov qword [rsp + 0x50], rbx
lea rdx, [0x14003bb30]
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 [0x14003f960], rax
test rax, rax
je 0x14000b3b6
mov edx, edi
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14003f960]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x14003f960]
mov r8, rsi
mov edx, 0xffffffeb
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
cmp byte [0x14003bc7d], bpl
jne 0x14000b3af
cmp dword [0x14003bc80], ebp
jne 0x14000b3af
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, [0x14000aa10]
mov qword [0x14003f948], rax
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14003bc18], rax
mov rax, qword [0x14003f960]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14000bac0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x14003a008]
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 0x14000bb12
mov r9d, edi
mov rcx, rbx
call fcn.14000b510
jmp 0x14000bb17
call fcn.140005540
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140024970
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14000e4a0
Capabilities:
Acquire debug privileges

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14003a008]
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 0x14000e60d
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, [0x14002acc8]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rbx, rbx
je 0x14000e5f7
test rax, rax
je 0x14000e5f7
mov rcx, rbx
call qword [fcn.140006a50]
lea r8, [rsp + 0x30]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call rbx
test eax, eax
je 0x14000e5d2
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.140006a50]
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 0x14000e5b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x514
je 0x14000e59a
mov dil, 1
jmp 0x14000e5f7
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.14000e2c0
jmp 0x14000e5f7
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 0x14000e5ec
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.14000e2c0
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.140024970
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14000e730
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x150
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
test rcx, rcx
jne 0x14000e76d
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 0x14000e788
xor eax, eax
jmp 0x14000e813
mov qword [rsp + 0x168], rbx
mov rcx, rbp
mov qword [rsp + 0x170], rsi
xor ebx, ebx
call fcn.140025144
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 0x14000e7f3
lea r9, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x20]
mov dword [rsp + 0x28], ebx
lea rdx, [0x140028fac]
mov rcx, rsi
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14000e7f3
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 0x14000e800
mov rcx, rsi
call fcn.140024e38
mov rsi, qword [rsp + 0x170]
mov rax, rbx
mov rbx, qword [rsp + 0x168]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140024970
mov rbp, qword [rsp + 0x178]
add rsp, 0x150
pop rdi
ret

Function at 0x14000ec40
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, rcx
lea r9, [rsp + 0x28]
xor ebx, ebx
lea rcx, [0x140028c30]
xor r8d, r8d
mov dword [rsp + 0x20], ebx
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x14000ecae
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, [0x140028e9c]
mov qword [rdi + 0x10], rbx
xor r8d, r8d
mov word [rdi], bx
jmp 0x14000ecdd
mov rdx, qword [rsp + 0x28]
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rdx], bx
je 0x14000ecda
or rbx, 0xffffffffffffffff
nop dword [rax + rax]
inc rbx
cmp word [rdx + rbx*2], 0
jne 0x14000ecd0
mov r8, rbx
mov rcx, rdi
call fcn.14000c700
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140024970
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000edc0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14003a008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
lea r9, [rsp + 0x28]
xor edi, edi
lea rcx, [0x140028c20]
xor r8d, r8d
mov dword [rsp + 0x20], edi
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x14000ee39
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, [0x140028e9c]
mov qword [rbx + 0x10], rdi
xor r8d, r8d
mov rcx, rbx
mov word [rbx], di
call fcn.14000c700
jmp 0x14000ef07
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 0x14000ee5b
mov r8, rdi
jmp 0x14000ee6a
or r8, 0xffffffffffffffff
nop
inc r8
cmp word [rdx + r8*2], di
jne 0x14000ee60
lea rcx, [rsp + 0x30]
call fcn.14000c700
mov qword [rbx + 0x18], 7
lea rdx, [rsp + 0x30]
mov qword [rbx + 0x10], rdi
mov rcx, rbx
mov word [rbx], di
call fcn.14000c980
mov rax, qword [rsp + 0x48]
cmp rax, 8
jb 0x14000ef07
mov rcx, qword [rsp + 0x30]
inc rax
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x14000eeb9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x14000ef02
test byte [rsp + 0x30], 0x1f
je 0x14000eed2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x14000eee2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rcx, rax
cmp rcx, 8
jae 0x14000eef2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rcx, 0x27
jbe 0x14000eeff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rax
call fcn.140024e30
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140024970
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret