joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001610
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140018ca0], rbx
je 0x140001677
cmp rax, rbx
jne 0x14000166a
mov ebx, 1
mov esi, ebx
jmp 0x14000167c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000164f
mov ebx, 1
mov eax, dword [0x140018ca8]
cmp eax, ebx
jne 0x140001694
mov edi, 0x1f
mov ecx, edi
call fcn.1400c1000
jmp 0x14000170a
mov eax, dword [0x140018ca8]
test eax, eax
jne 0x1400016ff
mov dword [0x140018ca8], ebx
lea r15, [0x14000fb60]
lea rdi, [0x14000fb48]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x1400016f1
test eax, eax
jne 0x1400016f5
cmp qword [rdi], r14
je 0x1400016e6
movabs r10, 0xd30527475e523070
mov rax, qword [rdi]
mov rcx, qword [0x14000fa88]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400016be
test eax, eax
je 0x140001705
mov eax, 0xff
jmp 0x14000186a
mov dword [0x140016444], ebx
mov edi, 0x1f
mov eax, dword [0x140018ca8]
cmp eax, ebx
jne 0x140001731
lea rdx, [0x14000fb40]
lea rcx, [0x14000fa98]
call sub.msvcrt.dll__initterm
mov dword [0x140018ca8], 2
test esi, esi
jne 0x14000173f
mov rax, r14
xchg qword [0x140018ca0], rax
cmp qword [0x140018cb0], r14
je 0x14000177c
lea rcx, [0x140018cb0]
call fcn.140001aa0
test eax, eax
je 0x14000177c
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140018cb0]
mov r9, qword [0x14000fa88]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x140001795
mov eax, 0xff
jmp 0x14000186a
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000181b
test ax, ax
je 0x1400017b0
test edx, edx
jne 0x14000181b
sub ax, bx
cmp ax, di
ja 0x1400017c6
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400017b0
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140002214
mov dword [0x140016440], eax
cmp dword [0x140016460], r14d
jne 0x140001804
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140016444], r14d
jne 0x140001819
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140016440]
jmp 0x14000186a
cmp ax, 0x22
jne 0x14000182f
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000179e
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140001b34
add rsp, 0x28
jmp 0x140001610
Function at 0x14000198c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400019d8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400019d0
cmp dword [rcx + 0x3c], edx
jl 0x1400019d0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400019d0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400019d8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140002214
Capabilities:
Accept command line arguments

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
xor ebx, ebx
mov r15d, ebx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
je 0x1400023ce
lea r12d, [rbx + 2]
movzx ecx, word [rax]
cmp cx, 0x20
je 0x140002261
cmp cx, 9
jne 0x140002266
add rax, r12
jmp 0x140002252
test cx, cx
je 0x1400023ce
test cx, cx
je 0x140002293
inc r15d
mov rcx, rax
call fcn.14000213c
movzx ecx, word [rax]
cmp cx, 0x20
je 0x14000228e
cmp cx, 9
jne 0x14000226f
add rax, r12
jmp 0x14000227f
movsxd rcx, r15d
mov eax, 8
mul rcx
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call fcn.140001490
mov rsi, rax
test rax, rax
je 0x1400023be
mov rdi, r14
inc rdi
cmp word [rbp + rdi*2], bx
jne 0x1400022c0
inc rdi
mov rax, r12
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.140001490
mov r14, rax
test rax, rax
je 0x1400023b6
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.1400021a0
test eax, eax
js 0x1400023f0
mov r8d, ebx
mov rax, r14
mov r9, rsi
cmp word [rax], bx
je 0x140002342
mov qword [r9], rax
mov rcx, rax
add r9, 8
inc r8d
call fcn.14000213c
test rax, rax
je 0x140002342
cmp word [rax], bx
je 0x14000233d
mov word [rax], bx
add rax, r12
cmp word [rax], 0x20
je 0x14000232e
cmp word [rax], 9
je 0x14000232e
test rax, rax
jne 0x14000230a
movsxd rbp, r8d
test r8d, r8d
jle 0x140002384
mov rdi, rbx
mov r12d, 0x22
mov rcx, qword [rsi + rdi*8]
cmp word [rcx], r12w
jne 0x14000237c
add rcx, 2
mov edx, r12d
mov qword [rsi + rdi*8], rcx
call qword [sym.imp.msvcrt.dll_wcschr]
nop dword [rax + rax]
test rax, rax
je 0x14000237c
mov word [rax], bx
inc rdi
cmp rdi, rbp
jl 0x140002353
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoInitializeEx]
nop dword [rax + rax]
mov r8d, 3
mov rdx, rsi
mov ecx, r15d
call qword [sym.imp.MSDTCTM.dll_Ordinal_4]
nop dword [rax + rax]
mov ebx, eax
mov rcx, r14
call fcn.1400014d0
mov rcx, rsi
call fcn.1400014d0
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoUninitialize]
nop dword [rax + rax]
mov eax, ebx
jmp 0x1400023d0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov ecx, eax
call fcn.14000255c
lea rcx, str.failed_in_TracedStringCchCopyW
call fcn.140002754
int3
Function at 0x140002850
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x4a0]
sub rsp, 0x5a0
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x98
call sub.msvcrt.dll_memset
test rbx, rbx
jne 0x1400028cc
lea rax, [rbp - 0x30]
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rax
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
nop dword [rax + rax]
and qword [rsp + 0x38], rbx
lea rax, [rsp + 0x30]
and dword [rsp + 0x48], ebx
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, [fcn.140002850]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0xc00000e5
mov dword [rsp + 0x34], 1
lea rcx, str.GenerateErrorDumps
call fcn.1400029a0
test eax, eax
je 0x14000294f
mov rcx, qword [0x1400188f0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
nop dword [rax + rax]
test eax, eax
jne 0x140002903
lea r8d, [rax + 0x7f]
lea rcx, str.ResetEvent_fails_in_CEventSem::Reset__
call fcn.140009a28
xor r8d, r8d
lea rcx, [0x140002c80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
nop dword [rax + rax]
test eax, eax
je 0x14000294f
mov rcx, qword [0x1400188f0]
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObjectEx]
nop dword [rax + rax]
cmp eax, 0xffffffff
jne 0x14000294f
mov r8d, 0x74
lea rcx, str.WaitForSingleObjectEx_fails_in_CEventSem::Wait__
call fcn.140009a28
mov rdx, qword [rbx + 8]
mov r8d, 1
mov rcx, qword [rbx]
call qword [sym.imp.ntdll.dll_RtlReportException]
nop dword [rax + rax]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x5b8]
add rsp, 0x5a0
pop rbp
ret

Function at 0x1400029a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
and dword [rbp + 0x20], 0
lea rdx, str.SoftwareMicrosoftMSDTC
and dword [rbp + 0x18], 0
mov rbx, rcx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
mov dword [rbp + 0x28], 4
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140002a32
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x20]
lea rax, [rbp + 0x18]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x140002a2e
cmp dword [rbp + 0x20], 4
je 0x140002a32
and dword [rbp + 0x18], 0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140002a47
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, dword [rbp + 0x18]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x14000889c
Capabilities:
Check if file exists

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 - 0x178]
sub rsp, 0x260
mov rax, qword [0x1400163a8]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r14, r8
xor r15d, r15d
mov qword [r8], r15
mov esi, 0x104
mov r9d, esi
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000890f
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000890f
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x1400088ed
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r15w
lea r8, [0x140010910]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140002ad8
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140008a5d
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r15d
lea rdx, [rsp + 0x24]
mov rcx, rax
call fcn.140005e88
mov edi, eax
test eax, eax
jns 0x14000899d
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xcf
call fcn.140007a64
nop
mov rcx, rbx
call fcn.140004e78
nop
mov eax, edi
jmp 0x140008a84
lea r8, [0x140010918]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140002ad8
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140008a3c
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140005e88
mov esi, eax
test eax, eax
jns 0x140008a14
mov rcx, qword [rbp + 0x178]
mov r9d, eax
mov edx, 0xd7
call fcn.140007a64
nop
mov rcx, rdi
call fcn.140004e78
nop
mov rcx, rbx
call fcn.140004e78
nop
mov eax, esi
jmp 0x140008a84
mov rcx, rdi
call fcn.140004e78
nop
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r14], rax
mov rcx, rbx
call fcn.140004e78
nop
jmp 0x140008a6e
mov rcx, qword [rbp + 0x178]
mov edx, 0xd5
call fcn.140007a44
mov edi, eax
mov rcx, rbx
call fcn.140004e78
nop
jmp 0x140008996
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x140008a72
xor eax, eax
jmp 0x140008a84
mov rcx, qword [rbp + 0x178]
mov edx, 0xc9
call fcn.140007a44
nop
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400018c0
lea r11, [rsp + 0x260]
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 0x14000a6ec
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x7c0]
sub rsp, 0x8c0
mov rax, qword [0x1400163a8]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov esi, r8d
mov r14, rdx
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x5a0]
call sub.msvcrt.dll_memset
mov edi, 0x20a
lea rcx, [rbp + 0x390]
mov r8d, edi
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, edi
lea rcx, [rbp + 0x180]
xor edx, edx
call sub.msvcrt.dll_memset
xor r15d, r15d
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x250
mov edi, r15d
call sub.msvcrt.dll_memset
mov r9, r14
mov qword [rsp + 0x20], rbx
lea r8, str._s_s.dmp
mov edx, 0x104
lea rcx, [rbp + 0x5a0]
call fcn.140002b9c
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x5a0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileW]
nop dword [rax + rax]
mov rbx, rax
mov r12d, 0x105
cmp rax, 0xffffffffffffffff
je 0x14000a854
inc edi
cmp word [rbp + 0x390], r15w
je 0x14000a7ed
lea rdx, [rsp + 0x5c]
lea rcx, [rbp + 0x390]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jle 0x14000a838
lea r8, [rsp + 0x5c]
mov rdx, r12
lea rax, [rbp + 0x390]
sub r8, rax
lea rcx, [rbp + 0x390]
lea rax, [rdx + 0x7ffffef9]
test rax, rax
je 0x14000a829
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14000a829
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14000a806
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14000a7c5
cmp edi, esi
jb 0x14000a90b
lea rax, [rbp + 0x390]
mov r9, r14
lea r8, str._s_s
mov qword [rsp + 0x20], rax
mov rdx, r12
lea rcx, [rbp + 0x180]
call fcn.140002b9c
mov edi, 0x80
lea rcx, [rbp + 0x180]
mov edx, edi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
lea edx, [rdi - 0x52]
lea rcx, [rbp + 0x180]
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x14000a90b
lea r8, str..txt
mov word [rax], r15w
mov rdx, r12
lea rcx, [rbp + 0x180]
call fcn.140002ad8
mov edx, edi
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
nop dword [rax + rax]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
cmp rbx, 0xffffffffffffffff
je 0x14000a920
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.1400018c0
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14000a954
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbp
push rbx
push rdi
lea rbp, [rax - 0x418]
sub rsp, 0x500
mov rax, qword [0x1400163a8]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor edi, edi
lea r9, [rbp + 0x428]
mov r8, rcx
mov word [rbp - 0x20], di
mov ebx, 0x207
mov word [rbp + 0x3ee], di
mov edx, ebx
lea rcx, [rbp - 0x20]
call qword [sym.imp.msvcrt.dll__vsnwprintf]
nop dword [rax + rax]
test eax, eax
js 0x14000aaaf
cdqe
cmp rax, rbx
ja 0x14000aaaf
jne 0x14000a9d3
mov word [rbp + 0x3ee], di
mov ebx, 0x68
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call sub.msvcrt.dll_memset
lea eax, [rbx - 0x62]
mov dword [rsp + 0x70], ebx
mov word [rbp - 0x50], ax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x58]
mov dword [rbp - 0x54], 0x81
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x20], edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
nop dword [rax + rax]
test eax, eax
je 0x14000aa95
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetExitCodeProcess]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, dword [rsp + 0x50]
jmp 0x14000aaa1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jle 0x14000aab4
movzx eax, ax
or eax, 0x80070000
jmp 0x14000aab4
mov eax, 0x8007007a
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.1400018c0
add rsp, 0x500
pop rdi
pop rbx
pop rbp
ret
Function at 0x14000abe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
sub rsp, 0x60
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x48], r14
mov rax, qword [0x1400163a8]
xor rax, rbp
mov qword [rbp + 0x18], rax
mov rcx, qword [rbp + 0x50]
xor r14d, r14d
mov rdi, r8
mov word [r8], r14w
lea r8, str.not_loaded
lea edx, [r14 + 0x32]
call fcn.1400021a0
mov rsi, qword [rbp + 0x60]
lea rcx, str.comsvcs.dll
mov word [rsi], r14w
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000add1
xor r9d, r9d
lea edx, [r14 + 0x10]
lea r8d, [r14 + 1]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
nop dword [rax + rax]
test rax, rax
je 0x14000add1
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
nop dword [rax + rax]
test rax, rax
je 0x14000add1
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
nop dword [rax + rax]
mov r9, rax
test rax, rax
je 0x14000add1
movzx r8d, word [rax]
mov ecx, r8d
shr ecx, 1
add ecx, r8d
mov edx, ecx
lea rax, [rcx + 0xf]
cmp rax, rdx
ja 0x14000acc8
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000df60
sub rsp, rax
mov rdx, r9
lea rbx, [rsp + 0x40]
mov rcx, rbx
call sub.msvcrt.dll_memcpy
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 0x10]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x14000ad44
mov rax, qword [rbp + 0x10]
lea r9, [0x14000f0e0]
mov ecx, r14d
movzx edx, word [rax]
mov rax, r9
cmp dx, word [rax]
je 0x14000ad2c
inc ecx
add rax, 0x10
cmp ecx, 0x27
jb 0x14000ad1a
jmp 0x14000ad44
mov r8d, ecx
mov edx, 5
add r8, r8
mov rcx, rdi
mov r8, qword [r9 + r8*8 + 8]
call fcn.1400021a0
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 8]
lea rdx, [0x14000ff0c]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
nop dword [rax + rax]
test eax, eax
je 0x14000add1
mov r10, qword [rbp + 8]
mov r9d, dword [r10 + 8]
cmp r9d, 0xffffffff
je 0x14000adad
movzx r8d, word [r10 + 0xe]
mov edx, 0x32
movzx eax, word [r10 + 0xc]
mov rcx, qword [rbp + 0x50]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r8d
lea r8, str._u._u._u._u
movzx r10d, r9w
shr r9d, 0x10
mov dword [rsp + 0x20], r10d
call fcn.140002b9c
mov r10, qword [rbp + 8]
test byte [r10 + 0x1c], 1
lea rax, [0x140011048]
lea r8, [0x140011040]
mov edx, 5
cmove r8, rax
mov rcx, rsi
call fcn.1400021a0
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400018c0
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
mov r14, qword [rbp + 0x48]
lea rsp, [rbp + 0x20]
pop rbp
ret
Function at 0x14000ae98
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
push rsi
push rdi
push r15
sub rsp, 0x50
mov eax, edx
movzx ebp, cx
shr eax, 0x1e
mov r15d, 1
mov esi, edx
cmp eax, r15d
jbe 0x14000aedc
lea ebx, [r15 + 1]
cmp eax, ebx
je 0x14000aee1
cmp eax, 3
jne 0x14000aed7
movzx ebx, r15w
jmp 0x14000aee1
mov ebx, r15d
jmp 0x14000aee1
mov ebx, 4
mov rax, qword [0x1400185c0]
test rax, rax
je 0x14000af85
and qword [rsp + 0x88], 0
movabs r10, 0x945d9f4218525370
lea rcx, [rsp + 0x88]
call qword [0x14000fa88]
test eax, eax
js 0x14000af85
mov rdi, qword [rsp + 0x88]
test rdi, rdi
je 0x14000af85
mov rax, qword [rdi]
mov r8d, ebp
movzx edx, bx
movabs r10, 0xbc0d8ee95ede7170
and qword [rsp + 0x40], 0
mov rcx, rdi
mov r9, qword [rsp + 0x98]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], r9
mov r9d, esi
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], r15d
and qword [rsp + 0x20], 0
call qword [0x14000fa88]
mov rax, qword [rdi]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
mov rcx, rdi
call qword [0x14000fa88]
jmp 0x14000afee
lea rdx, str.COM
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000afee
and qword [rsp + 0x40], 0
mov r9d, esi
mov rcx, qword [rsp + 0x98]
movzx r8d, bp
mov qword [rsp + 0x38], rcx
movzx edx, bx
and dword [rsp + 0x30], 0
mov rcx, rax
mov word [rsp + 0x28], r15w
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop rdi
pop rsi
ret

Function at 0x14000b178
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
nop dword [rax + rax]
mov rcx, rax
mov edx, 0x7f0ea553
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]