joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016c394
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x14016c3bd
mov rdi, qword [rdx + 0x10]
jmp 0x14016c40e
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rbx + 8]
mov r8d, 5
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
jne 0x14016c3de
call fcn.140008a8c
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x14016c3f8
call fcn.140008a8c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x14016c40e
call fcn.140008a8c
call fcn.140012fe0
cmp qword [rax + 0x68], 0
je 0x14016c428
mov rdx, rdi
mov rcx, rbp
call fcn.14016b9f4
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.14016c68c
mov rcx, qword [rbp + 0xe8]
mov rsi, rax
test rcx, rcx
je 0x14016c44f
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xe8], 0
test rsi, rsi
je 0x14016c45e
mov rdi, rsi
mov qword [rbp + 0xe8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14016c7fc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rax - 0x18], rbx
mov r14, qword [0x1403f11d8]
and qword [rax + 8], rbx
xor esi, esi
mov eax, dword [0x1403e87c0]
test eax, eax
je 0x14016c848
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1403e87c0]
test eax, eax
jne 0x14016c851
call fcn.14000dfc8
test eax, eax
je 0x14016c86d
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1403dfd98]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016c878
xor eax, eax
jmp 0x14016c8fc
test r14, r14
jne 0x14016c895
lea rcx, str.CreatePropertySheetPageW
call fcn.14016caf8
test rax, rax
je 0x14016c8c7
mov qword [0x1403f11d8], rax
mov eax, dword [rdi + 4]
mov ecx, 0x4000
test ecx, eax
jne 0x14016c8b6
cmp dword [rdi], 0x60
jb 0x14016c8b6
or eax, ecx
mov dword [rdi + 4], eax
mov rax, qword [0x1403dfd98]
mov qword [rdi + 0x58], rax
mov rcx, rdi
call qword [0x1403f11d8]
mov rbx, rax
mov qword [rsp + 0x20], rax
xor edi, edi
test rbx, rbx
sete dil
test edi, edi
je 0x14016c8de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14016c8e0
xor esi, esi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14016c8f9
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14016c914
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1403f11e0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1403e87c0]
test eax, eax
je 0x14016c95f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1403e87c0]
test eax, eax
jne 0x14016c968
call fcn.14000dfc8
test eax, eax
je 0x14016c984
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1403dfd98]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016c98c
xor eax, eax
jmp 0x14016c9e9
test rbx, rbx
jne 0x14016c9ac
lea rcx, str.DestroyPropertySheetPage
call fcn.14016caf8
mov rbx, rax
test rax, rax
je 0x14016c9b7
mov qword [0x1403f11e0], rax
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14016c9cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14016c9ce
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14016c9e7
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14016ca00
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
or rdi, 0xffffffffffffffff
mov qword [rax - 0x18], rdi
mov rbx, qword [0x1403f11e8]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x1403e87c0]
test eax, eax
je 0x14016ca4f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1403e87c0]
test eax, eax
jne 0x14016ca58
call fcn.14000dfc8
test eax, eax
je 0x14016ca74
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1403dfd98]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016ca7e
or rax, 0xffffffffffffffff
jmp 0x14016cae0
test rbx, rbx
jne 0x14016ca9e
lea rcx, str.PropertySheetW
call fcn.14016caf8
mov rbx, rax
test rax, rax
je 0x14016caab
mov qword [0x1403f11e8], rax
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x14016cac2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14016cac4
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14016cadd
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140192430
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140192298
Function at 0x140018a94
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400258e0], eax
call fcn.140019344
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x1400258e0], 0
jne case.default.0x140018aea
mov ecx, 1
call fcn.140019344
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
sahf
in eax, 0x65
pushfq
outsd dx, dword [rsi]
push rdx
pushfq
insb byte [rdi], dx
fdivr qword [rcx + rax*4 - 0x7d30bfc0]
div dword [0xcd063b68]
xchg ebx, eax
invalid
Function at 0x1400086c0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400086fa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400086ff
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140008748
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000b430]
cmp byte [rcx + rax], 0
je 0x140008748
dec r8
sub rdx, 1
jne 0x14000872e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140009a34
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140009a7e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140009a7e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140009a7e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140009a7e
cmp dword [rcx + 0x84], 0xe
jbe 0x140009a7e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009a80
xor al, al
add rsp, 0x28
ret
Function at 0x140001c00
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 0x140001cc3
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 0x140001c34
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 0x140001cc6
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 0x140001c7f
mov eax, 0x5c
mov word [rsi + r8*2], ax
inc r8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbx + rax*2], di
jne 0x140001c83
test rax, rax
je 0x140001cc3
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 0x140001cb4
cmp rdx, rax
jb 0x140001ca0
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 0x140004b00
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, [0x140029558]
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, [0x140029558]
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 0x140004b86
mov rcx, qword [rbx]
jmp 0x140004b89
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, rbx
call fcn.140005ad0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140024b60
add rsp, 0x30
pop rbx
ret
Function at 0x140005280
Capabilities:
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
lea rdx, str.Service::start
mov ecx, 0x1000
call fcn.140006b30
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 0x1400052c5
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 0x14000530f
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 0x140005329
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 0x140005350
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.140006b30
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 0x1400053a8
mov eax, 0x427
jmp 0x140005477
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 0x1400053e8
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
cmove eax, r14d
jmp 0x140005472
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 0x14000542f
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 0x140005495
dec ebx
test ebx, ebx
jg 0x140005405
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140005459
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x430
jne 0x140005459
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.140024b60
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000546d
Function at 0x140005700
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.140006b30
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 0x1400058d6
mov rcx, qword [rax + 8]
lea rdx, str._service
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005777
lea rcx, str.FvSvc
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov eax, ebx
jmp 0x1400058db
mov rcx, qword [rdi + 8]
lea rdx, str._install
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140005798
call fcn.140004ec0
mov ebx, eax
jmp 0x1400058db
mov rcx, qword [rdi + 8]
lea rdx, str._uninstall
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400058cb
mov rcx, qword [rdi + 8]
lea rdx, str._start
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400057d2
call fcn.140005280
mov ebx, eax
jmp 0x1400058db
mov rcx, qword [rdi + 8]
lea rdx, str._testservice
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400058d6
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.140005d30
lea rcx, [rsp + 0x20]
call fcn.140004b00
lea rcx, str.Installing_FvSvc_n
call fcn.140004aa0
call fcn.140004ec0
test eax, eax
jne 0x1400058d2
lea rcx, str.Starting_FvSvc_n
call fcn.140004aa0
call fcn.140005280
test eax, eax
jne 0x1400058bf
lea edx, [rax + 1]
lea rcx, [0x140004bb0]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
lea rcx, str.Press_ESC_to_stop_and_uninstall_service_n
call fcn.140004aa0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__kbhit]
test eax, eax
je 0x14000587a
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
cmp al, 0x1b
je 0x14000589b
cmp byte [0x14003b95a], bl
jne 0x14000589b
lea rcx, [0x14002a3fc]
call fcn.140004aa0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140005866
lea rcx, [0x14002a384]
call fcn.140004aa0
lea rcx, str.Exiting__please_wait_for_service_to_be_stopped_and_uninstalled_n
call fcn.140004aa0
lea rcx, str.Console_will_close_automatically_on_exit_n
call fcn.140004aa0
lea rcx, str.Uninstalling_FvSvc_n
call fcn.140004aa0
call fcn.140005350
mov ebx, eax
mov eax, ebx
jmp 0x1400058db
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140024b60
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140006910
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 [0x14004042c], eax
jle 0x14000697d
lea rcx, [0x14004042c]
call fcn.1400251d8
cmp dword [0x14004042c], 0xffffffff
jne 0x14000697d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x14004042c]
mov dword [0x140040428], eax
call fcn.140025178
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 0x1400069ef
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 [0x140040428]
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, [0x14003bd10]
call fcn.1400068b0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140024b60
add rsp, 0x98
ret

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

Disassembly:
test cl, 0x11
je 0x140006b29
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.140006910
mov ecx, 0x800
call fcn.140025334
mov rbx, rax
test rax, rax
je 0x140006b0d
mov r9, rbp
mov r8, rsi
mov edx, 0x3fe
mov rcx, rax
call fcn.140006840
lea r8, [0x14002a4f4]
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, [0x14002a4f8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x140006b05
mov qword [rsp + 0x50], rbx
mov ecx, 4
lea r8d, [rcx - 3]
test dil, 0xee
je 0x140006abc
movzx ecx, r8w
jmp 0x140006ac9
test edi, 0xefe
je 0x140006ac9
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.140024d08
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140024b60
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006a19
Capabilities:
Access the windows event log
Print debug messages

Disassembly:
test cl, 0x11
je 0x140006b29
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.140006910
mov ecx, 0x800
call fcn.140025334
mov rbx, rax
test rax, rax
je 0x140006b0d
mov r9, rbp
mov r8, rsi
mov edx, 0x3fe
mov rcx, rax
call fcn.140006840
lea r8, [0x14002a4f4]
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, [0x14002a4f8]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
je 0x140006b05
mov qword [rsp + 0x50], rbx
mov ecx, 4
lea r8d, [rcx - 3]
test dil, 0xee
je 0x140006abc
movzx ecx, r8w
jmp 0x140006ac9
test edi, 0xefe
je 0x140006ac9
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.140024d08
mov rbx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140024b60
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140006e90
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 + 0x14284], 0x64
mov qword [rcx], rdi
mov rbx, rcx
mov qword [rcx + 8], rdi
xor edx, edx
mov qword [rcx + 0x10], rdi
mov r8d, 0x11c80
mov qword [rcx + 0x18], rdi
mov dword [rcx + 0x14280], edi
mov dword [rcx + 0x14270], edi
mov qword [rcx + 0x14278], rdi
mov qword [rcx + 0x142a8], rdi
mov dword [rcx + 0x14288], 0x2710
mov qword [rcx + 0x1428c], 0x64
mov dword [rcx + 0x14294], 0x3483
mov qword [rcx + 0x14298], 0x70000
mov qword [rcx + 0x142a0], 0x60
add rcx, 0x20
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbx + 0x11ca0]
mov dword [rbx + 0x142b0], edi
xor edx, edx
mov dword [rbx + 0x142b4], 1
mov r8d, 0x25d0
mov dword [rbx + 0x142b8], 1
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbx + 0x142c4]
mov dword [rbx + 0x144cc], edi
mov ecx, 0x208
mov qword [rbx + 0x142bc], rdi
mov dword [rbx + 0x144d0], 0x91
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
movsxd rax, dword [rbx + 0x144cc]
imul rcx, rax, 0x104
add rcx, 0x142c4
add rcx, rbx
je 0x140006fa6
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov rdi, rax
mov ecx, dword [0x14002a880]
lea r8, [rsp + 0x20]
movsd xmm0, qword [0x14002a878]
mov r9d, 0xf
mov dword [rsp + 0x28], ecx
mov edx, 0x104
movzx ecx, word [0x14002a884]
mov word [rsp + 0x2c], cx
movzx ecx, byte [0x14002a886]
mov byte [rsp + 0x2e], cl
movsxd rcx, dword [rbx + 0x144cc]
add rbx, 0x142c4
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.140024b60
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000b430
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, [0x14003fd70]
mov rsi, rcx
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x64
lea r8, [0x14003bf30]
xor ecx, ecx
lea edx, [r9 + 5]
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, rbx
call fcn.14000b370
xor ebp, ebp
mov qword [0x14003bf20], rbx
mov qword [rsp + 0x58], rbp
lea r8, [0x14003fd70]
mov qword [rsp + 0x50], rbx
lea rdx, [0x14003bf30]
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 [0x14003fd58], rax
test rax, rax
je 0x14000b576
mov edx, edi
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14003fd58]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x14003fd58]
mov r8, rsi
mov edx, 0xffffffeb
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
cmp byte [0x14003c06d], bpl
jne 0x14000b56f
cmp dword [0x14003c070], ebp
jne 0x14000b56f
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, [0x14000abd0]
mov qword [0x14003fd40], rax
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x14003fd38], rax
mov rax, qword [0x14003fd58]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret