joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001374
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_2_0.dll_GetCommandLineW]
mov rbp, rax
test rax, rax
jne 0x1400013ab
xor eax, eax
jmp 0x140001508
mov r12d, 2
cmp word [rax], 0x20
je 0x1400013bd
cmp word [rax], 9
jne 0x1400013c2
add rax, r12
jmp 0x1400013b1
cmp word [rax], bx
jne 0x1400013ce
jmp 0x1400013a4
cmp word [rax], bx
je 0x1400013ea
inc r15d
mov rcx, rax
call fcn.140001544
cmp word [rax], 0x20
je 0x1400013e5
cmp word [rax], 9
jne 0x1400013c9
add rax, r12
jmp 0x1400013d9
movsxd rcx, r15d
mov eax, 8
mul rcx
mov r14, 0xffffffffffffffff
cmovo rax, r14
mov rcx, rax
call fcn.1400062ac
mov rsi, rax
test rax, rax
je 0x140001500
mov rdi, r14
inc rdi
cmp word [rbp + rdi*2], bx
jne 0x140001417
inc rdi
mov rax, r12
mul rdi
cmovo rax, r14
mov rcx, rax
call fcn.1400062ac
mov r14, rax
test rax, rax
je 0x1400014f8
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.1400012f8
test eax, eax
js 0x140001527
mov edx, ebx
mov rax, r14
mov r8, rsi
cmp word [rax], bx
je 0x140001497
mov qword [r8], rax
mov rcx, rax
add r8, 8
inc edx
call fcn.140001544
test rax, rax
je 0x140001497
cmp word [rax], bx
je 0x140001492
mov word [rax], bx
add rax, r12
cmp word [rax], 0x20
je 0x140001483
cmp word [rax], 9
je 0x140001483
test rax, rax
jne 0x140001460
movsxd rbp, edx
mov rdi, rbx
test edx, edx
jle 0x1400014d2
mov r12d, 0x22
mov rcx, qword [rsi + rdi*8]
cmp word [rcx], r12w
jne 0x1400014ca
add rcx, 2
mov edx, r12d
mov qword [rsi + rdi*8], rcx
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
je 0x1400014ca
mov word [rax], bx
inc rdi
cmp rdi, rbp
jl 0x1400014a7
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoInitializeEx]
mov r8d, 3
mov rdx, rsi
mov ecx, r15d
call qword [sym.imp.MSDTCTM.dll_Ordinal_4]
mov ebx, eax
mov rcx, r14
call fcn.1400062ec
mov rcx, rsi
call fcn.1400062ec
call qword [sym.imp.api_ms_win_core_com_l1_1_1.dll_CoUninitialize]
mov eax, ebx
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.1400016b4
lea rcx, str.failed_in_TracedStringCchCopyW
call fcn.140001c40
int3
Function at 0x140001a70
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 0x140001ae6
lea rax, [rbp - 0x30]
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x28], rax
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
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.140001a70]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 0xc00000e5
mov dword [rsp + 0x34], 1
lea rcx, str.GenerateErrorDumps
call fcn.140001b94
test eax, eax
je 0x140001b57
mov rcx, qword [0x14000f700]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_ResetEvent]
test eax, eax
jne 0x140001b17
lea r8d, [rax + 0x7f]
lea rcx, str.ResetEvent_fails_in_CEventSem::Reset__
call fcn.140002354
xor r8d, r8d
lea rcx, [0x140001d40]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x140001b57
mov rcx, qword [0x14000f700]
xor r8d, r8d
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObjectEx]
cmp eax, 0xffffffff
jne 0x140001b57
mov r8d, 0x74
lea rcx, str.WaitForSingleObjectEx_fails_in_CEventSem::Wait__
call fcn.140002354
mov rdx, qword [rbx + 8]
mov r8d, 1
mov rcx, qword [rbx]
call qword [sym.imp.ntdll.dll_RtlReportException]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b8]
add rsp, 0x5a0
pop rbp
ret

Function at 0x140001b94
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
xor edi, edi
mov dword [rbp + 0x38], 4
mov rbx, rcx
mov qword [rbp - 0x10], rdi
lea rax, [rbp - 0x10]
mov dword [rbp + 0x30], edi
mov rcx, 0xffffffff80000002
mov dword [rbp + 0x28], edi
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMSDTC
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
je 0x140001be6
mov eax, edi
jmp 0x140001c1a
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x30]
lea rax, [rbp + 0x28]
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]
test eax, eax
jne 0x140001be2
cmp dword [rbp + 0x30], 4
mov eax, dword [rbp + 0x28]
cmovne eax, edi
mov dword [rbp + 0x28], eax
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x140001c2f
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rbp + 0x28]
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x1400029fc
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 [0x14000d3b8]
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.1400012f8
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]
mov rbx, rax
test rax, rax
je 0x140002bca
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]
test rax, rax
je 0x140002bca
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test rax, rax
je 0x140002bca
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov r9, rax
test rax, rax
je 0x140002bca
movzx r8d, word [rax]
mov ecx, r8d
shr ecx, 1
add ecx, r8d
movsxd rdx, ecx
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x140002acd
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.140007160
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]
test eax, eax
je 0x140002b43
mov rax, qword [rbp + 0x10]
lea r9, [0x140008080]
mov ecx, r14d
movzx edx, word [rax]
mov rax, r9
cmp dx, word [rax]
je 0x140002b2b
inc ecx
add rax, 0x10
cmp ecx, 0x27
jb 0x140002b19
jmp 0x140002b43
mov r8d, ecx
mov edx, 5
add r8, r8
mov rcx, rdi
mov r8, qword [r9 + r8*8 + 8]
call fcn.1400012f8
lea r9, [rbp]
mov rcx, rbx
lea r8, [rbp + 8]
lea rdx, [0x140008bcc]
call qword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x140002bca
mov r10, qword [rbp + 8]
mov r9d, dword [r10 + 8]
cmp r9d, 0xffffffff
je 0x140002ba6
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.140001910
mov r10, qword [rbp + 8]
test byte [r10 + 0x1c], 1
lea rax, [0x140009900]
lea r8, [0x140009908]
mov edx, 5
cmovne r8, rax
mov rcx, rsi
call fcn.1400012f8
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400066d0
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 0x140002cb8
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
mov r15d, 1
shr eax, 0x1e
mov esi, edx
movzx ebp, cx
cmp eax, r15d
jbe 0x140002cfc
lea ebx, [r15 + 1]
cmp eax, ebx
je 0x140002d01
cmp eax, 3
jne 0x140002cf7
movzx ebx, r15w
jmp 0x140002d01
mov ebx, r15d
jmp 0x140002d01
mov ebx, 4
mov rax, qword [0x14000f3d0]
test rax, rax
je 0x140002d84
and qword [rsp + 0x88], 0
lea rcx, [rsp + 0x88]
call qword [0x1400088e8]
test eax, eax
js 0x140002d84
mov rdi, qword [rsp + 0x88]
test rdi, rdi
je 0x140002d84
and qword [rsp + 0x40], 0
mov rcx, rdi
mov r9, qword [rsp + 0x98]
mov rax, qword [rdi]
mov qword [rsp + 0x38], r9
mov r9d, esi
and dword [rsp + 0x30], 0
movzx r8d, bp
mov rax, qword [rax + 0x18]
movzx edx, bx
mov dword [rsp + 0x28], r15d
and qword [rsp + 0x20], 0
call qword [0x1400088e8]
mov rax, qword [rdi]
mov rcx, rdi
mov rax, qword [rax + 0x10]
call qword [0x1400088e8]
jmp 0x140002ddb
lea rdx, str.COM
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rax, rax
je 0x140002ddb
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]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r15
pop rdi
pop rsi
ret
Function at 0x140002e70
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 [0x14000d3b8]
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.140001910
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x5a0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindFirstFileW]
mov rbx, rax
mov r12d, 0x105
cmp rax, 0xffffffffffffffff
je 0x140002f87
inc edi
cmp word [rbp + 0x390], r15w
je 0x140002f61
lea rdx, [rsp + 0x5c]
lea rcx, [rbp + 0x390]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jle 0x140002f75
lea r8, [rsp + 0x5c]
mov rdx, r12
lea rcx, [rbp + 0x390]
call fcn.1400012f8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindNextFileW]
test eax, eax
jne 0x140002f3f
cmp edi, esi
jb 0x140003020
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.140001910
mov edi, 0x80
lea rcx, [rbp + 0x180]
mov edx, edi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFileAttributesW]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
lea edx, [rdi - 0x52]
lea rcx, [rbp + 0x180]
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
je 0x140003020
lea r8, str..txt
mov word [rax], r15w
mov rdx, r12
lea rcx, [rbp + 0x180]
call fcn.140001848
mov edx, edi
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFileAttributesW]
lea rcx, [rbp + 0x180]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
cmp rbx, 0xffffffffffffffff
je 0x14000302f
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_FindClose]
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.1400066d0
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 0x140003060
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
lea rbp, [rax - 0x418]
sub rsp, 0x508
mov rax, qword [0x14000d3b8]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor ebx, ebx
lea r9, [rbp + 0x428]
mov r8, rcx
mov word [rbp - 0x20], bx
lea rcx, [rbp - 0x20]
mov word [rbp + 0x3ee], bx
mov edx, 0x208
call fcn.1400025e0
test eax, eax
js 0x14000317b
xor edx, edx
lea r8d, [rbx + 0x60]
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
lea eax, [rbx + 6]
mov dword [rsp + 0x70], 0x68
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], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x20], ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_CreateProcessW]
test eax, eax
je 0x140003165
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
jmp 0x14000316b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.1400066d0
add rsp, 0x508
pop rbx
pop rbp
ret
Function at 0x140003b68
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x7f0ea553
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
Function at 0x140003f60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x14000d3b8]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0xf0
mov qword [rsp + 0x28], rax
mov rbx, r8
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x140003fdc
cmp dword [rsp + 0x30], 2
jb 0x140004020
mov eax, dword [rsp + 0x40]
lea ecx, [rdx + 0x4e]
and eax, 0xffdf
cmp eax, ecx
je 0x140003fd8
cmp eax, 0x59
jne 0x140004020
mov dword [rbx], 1
jmp 0x140004020
mov dword [rbx], edx
jmp 0x140004020
mov eax, dword [rbx]
mov r9d, 1
neg eax
mov word [rsp + 0x42], dx
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
sbb r8w, r8w
mov qword [rsp + 0x20], rax
and r8w, 0xb
mov rdx, rsi
add r8w, 0x4e
mov rcx, rdi
mov word [rsp + 0x40], r8w
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400066d0
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret

Function at 0x140004044
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x20], rbp
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
push rdi
sub rsp, 0x30
mov ebx, dword [0x14000d3d0]
lea rax, [r11 + 0x10]
mov qword [r11 - 0x10], rax
lea rbp, [0x14000d3d0]
lea r9, [r11 + 0x18]
mov qword [r11 - 0x18], rbp
xor r8d, r8d
mov dword [rsp + 0x48], 4
lea rdx, str.EventDispatchTtime
mov dword [rsp + 0x50], 4
mov rdi, rcx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400040af
cmp dword [rsp + 0x50], 4
je 0x1400040db
mov dword [0x14000d3d0], ebx
jmp 0x1400040db
mov dword [rsp + 0x28], 4
lea rdx, str.EventDispatchTtime
mov r9d, 4
mov qword [rsp + 0x20], rbp
xor r8d, r8d
mov dword [0x14000d3d0], ebx
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000557c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], rsp
lea rcx, [0x14000d2c0]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_EnterCriticalSection]
nop
cmp byte [0x14000f6d0], 0
jne 0x14000561b
lea rax, [0x14000f6d8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftMSDTCTracing
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x14000560f
and qword [0x14000f6d8], 0
lea rcx, str.Unable_to_open_MSDTCTracing_settings_key_n
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_OutputDebugStringW]
movzx ecx, bx
or ecx, 0x80070000
test ebx, ebx
cmovle ecx, ebx
mov dword [rsp + 0x50], ecx
lea rdx, [0x140005609]
mov rcx, rsp
call sub.msvcrt.dll__local_unwind
nop
nop
mov eax, dword [rsp + 0x50]
jmp 0x14000562a
call fcn.140005638
mov byte [0x14000f6d0], 1
lea rcx, [0x14000d2c0]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x140005da8
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x500]
sub rsp, 0x600
mov rax, qword [0x14000d3b8]
xor rax, rsp
mov qword [rbp + 0x4f0], rax
xor ebx, ebx
mov edi, 0x105
mov qword [rsp + 0x38], rbx
mov rsi, rdx
mov dword [rsp + 0x30], edi
mov r14, rcx
test rdx, rdx
jne 0x140005dfb
mov eax, 0x80070057
jmp 0x140005f91
mov qword [rcx], rbx
mov qword [rdx], rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
lea r9, [rsp + 0x30]
xor edx, edx
mov rcx, rax
lea r8, [rbp + 0xd0]
call qword [sym.imp.api_ms_win_core_psapi_l1_1_0.dll_QueryFullProcessImageNameW]
test eax, eax
jne 0x140005e3b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140005f8f
lea r9, [rsp + 0x38]
mov edx, edi
lea r8, [rbp + 0x2e0]
lea rcx, [rbp + 0xd0]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetFullPathNameW]
test eax, eax
je 0x140005e22
mov rdx, qword [rsp + 0x38]
lea rcx, str.dllhost.exe
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x140005f80
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCommandLineA]
mov rcx, rax
mov edx, 0x20
call qword [sym.imp.msvcrt.dll_strchr]
test rax, rax
je 0x140005f80
add rax, 1
je 0x140005f80
movzx ecx, word [0x14000ae68]
lea rdx, [rsp + 0x40]
movsd xmm0, qword [str._ProcessID]
mov word [rsp + 0x50], cx
mov cl, byte [0x14000ae6a]
mov byte [rsp + 0x52], cl
lea rcx, [rbp - 0x40]
mov qword [rsp + 0x40], rcx
mov rcx, rax
movsd qword [rsp + 0x48], xmm0
call fcn.140005cc4
cmp eax, 1
jl 0x140005f80
lea rdi, [rbp - 0x40]
cmp byte [rbp - 0x40], bl
je 0x140005efa
cmp byte [rdi], 0x3a
je 0x140005ef5
inc rdi
cmp byte [rdi], bl
jne 0x140005ee7
jmp 0x140005efa
mov byte [rdi], bl
inc rdi
cmp byte [rdi], bl
je 0x140005f11
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x40]
call qword [sym.imp.msvcrt.dll__stricmp]
test eax, eax
je 0x140005f15
lea rdi, [rbp - 0x40]
mov rcx, rbx
test rdi, rdi
je 0x140005f3f
mov ecx, 0x28
mov r8, rdi
mov edx, ecx
mov eax, ebx
cmp byte [r8], bl
je 0x140005f37
inc r8
sub rdx, 1
jne 0x140005f29
test rdx, rdx
jne 0x140005fb8
mov rcx, rbx
mov eax, 0x80070057
test eax, eax
js 0x140005f80
lea r9d, [rcx + 1]
mov dword [rsp + 0x28], 0x29
lea rax, [rsp + 0x60]
xor ecx, ecx
mov r8, rdi
mov qword [rsp + 0x20], rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
test eax, eax
je 0x140005f80
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140002228
test eax, eax
js 0x140005f8f
mov rcx, qword [rsp + 0x38]
mov rdx, r14
call fcn.140002228
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x4f0]
xor rcx, rsp
call fcn.1400066d0
lea r11, [rsp + 0x600]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
sub rcx, rdx
jmp 0x140005f44
Function at 0x140006430
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_2.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14000f960], rbx
je 0x140006497
cmp rax, rbx
jne 0x14000648a
mov ebx, 1
mov esi, ebx
jmp 0x14000649c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000646f
mov ebx, 1
mov eax, dword [0x14000f968]
cmp eax, ebx
jne 0x1400064b4
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140006520
mov eax, dword [0x14000f968]
test eax, eax
jne 0x140006515
mov dword [0x14000f968], ebx
lea r15, [0x140008970]
lea rdi, [0x140008958]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140006507
test eax, eax
jne 0x14000650b
cmp qword [rdi], r14
je 0x1400064fc
mov rax, qword [rdi]
mov rcx, qword [0x1400088e8]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400064de
test eax, eax
je 0x14000651b
mov eax, 0xff
jmp 0x140006674
mov dword [0x14000d3e4], ebx
mov edi, 0x1f
mov eax, dword [0x14000f968]
cmp eax, ebx
jne 0x140006547
lea rdx, [0x140008950]
lea rcx, [0x1400088f0]
call sub.msvcrt.dll__initterm
mov dword [0x14000f968], 2
test esi, esi
jne 0x140006555
mov rax, r14
xchg qword [0x14000f960], rax
cmp qword [0x14000f970], r14
je 0x140006588
lea rcx, [0x14000f970]
call fcn.140006890
test eax, eax
je 0x140006588
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000f970]
mov r9, qword [0x1400088e8]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400065a1
mov eax, 0xff
jmp 0x140006674
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x140006625
cmp word [rcx], r14w
je 0x1400065ba
test edx, edx
jne 0x140006625
movzx eax, word [rcx]
sub ax, bx
cmp ax, di
ja 0x1400065d0
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400065ba
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.140001374
mov dword [0x14000d3e0], eax
cmp dword [0x14000d400], r14d
jne 0x14000660e
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000d3e4], r14d
jne 0x140006623
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000d3e0]
jmp 0x140006674
cmp word [rcx], 0x22
jne 0x140006639
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 0x1400065aa
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.1400b7000
add rsp, 0x28
jmp 0x140006430
Function at 0x14000678c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400067d8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400067d0
cmp dword [rcx + 0x3c], edx
jl 0x1400067d0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400067d0
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 0x1400067d8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x1400020a0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400020ea
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400020ea
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400020ea
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400020ea
cmp dword [rcx + 0x84], 0xe
jbe 0x1400020ea
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400020ec
xor al, al
add rsp, 0x28
ret