joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180006d60
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x180006d9b
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x180006da2
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
xor esi, esi
jmp 0x180006e99
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180006df5
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x180006df5
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x180006e06
jmp 0x180006e96
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x180006e96
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x180006e32
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
nop dword [rax]
cmp r14, 0x1000
jb 0x180006e71
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call r15
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x180006e40
jmp 0x180006e96
test r14, r14
je 0x180006e93
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub r14, rax
jmp 0x180006e96
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x180006eb0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x180006ee6
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x180006f33
test rsi, rsi
jle 0x180006f33
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jle 0x180006f33
cmp r15, rsi
cmovae r15, rsi
mov rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jg 0x180006f3b
jmp 0x180006f5b
mov r14, rsi
test r14, r14
jle 0x180006f5b
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x180006f5b
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r14, rax
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x180007370
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rax, qword [0x1800124d8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov dil, 1
cmp qword [rcx + 0x68], 0
je 0x18000741a
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x18000741a
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x180007418
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [rax + 0x40]
cmp eax, 3
je 0x180007431
cmp eax, 1
je 0x1800073e7
test eax, eax
jne 0x180007418
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x18000740e
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x180007418
cmp byte [rsi + 0x71], 0
sete dil
jmp 0x18000741a
xor edi, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18000a710
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov dil, 1
jmp 0x18000741a
Function at 0x18000b9a0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18000ba24
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18000da30]
cmp byte [rcx + rax], 0
je 0x18000ba24
dec r8
sub rdx, 1
jne 0x18000ba0a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140002d9c
Capabilities:
Parse pe header

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

Function at 0x14000726c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007068
Function at 0x14000a32c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000a35c
xor eax, eax
jmp 0x14000a41f
mov rbp, rbx
cmp word [rax], si
je 0x14000a381
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000a368
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000a364
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000a24c
movsxd r14, eax
test eax, eax
jne 0x14000a3bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000a355
mov rcx, r14
call fcn.14000b208
mov rdi, rax
test rax, rax
jne 0x14000a3d8
xor ecx, ecx
call fcn.1400088ac
jmp 0x14000a3b4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000a24c
test eax, eax
jne 0x14000a409
mov rcx, rdi
call fcn.1400088ac
jmp 0x14000a413
xor ecx, ecx
call fcn.1400088ac
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14000d910
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000931c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000d99a
cmp byte [rbp - 0x21], r15b
je 0x14000d995
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000d9d0
call fcn.14000ba18
test eax, eax
jne 0x14000d9bc
cmp byte [rbp - 0x21], r15b
je 0x14000d9b4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000d9d0
cmp byte [rbp - 0x21], r15b
je 0x14000d9cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400088fc
test eax, eax
jne 0x14000da70
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000931c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000da0f
cmp byte [rbp - 0x21], r15b
je 0x14000da44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000da44
call fcn.14000ba18
test eax, eax
jne 0x14000da30
cmp byte [rbp - 0x21], r15b
je 0x14000da29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000da44
cmp byte [rbp - 0x21], r15b
je 0x14000da41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400088fc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000da70
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000da73
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000da81
mov rcx, rdi
call fcn.1400088ac
cmp byte [rbp + 0x3f], r15b
je 0x14000da90
mov rcx, qword [rbp + 0x27]
call fcn.1400088ac
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140010970
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140010998
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140010998
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400019b4
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x2f]
and al, 0xd1
sub rsp, 0x98
mov qword [rbp - 0x19], 0xfffffffffffffffe
mov byte [0x14000d699], 1
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r9, [0x140009300]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400092f0]
or eax, 0x78fb
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
js 0x140001bec
mov rbx, qword [rbp + 0x6f]
mov qword [rbp + 0x7f], rbx
lea rcx, str.rootCIMv2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r14, rax
test rax, rax
je 0x140001bd6
mov qword [rbp - 0x11], rax
mov r10, qword [rbp + 0x6f]
mov rcx, qword [r10]
mov rax, qword [rcx + 0x18]
lea rcx, [rbp + 0x77]
mov qword [rsp + 0x40], rcx
Function at 0x140003b74
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rsi
push rdi
push r15
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rdi, rdx
mov r15d, 0x80041001
mov ebx, r15d
lea rdx, [0x14000d778]
lea rcx, [rax + 0x18]
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CInCritSec::constructor_struct__RTL_CRITICAL_SECTION____ptr64____ptr64]
nop
mov edx, dword [0x14000d720]
lea rcx, [0x14000d720]
test edx, edx
je 0x140003c5b
mov rax, qword [rdi + 8]
mov qword [rsp + 0x60], rax
dec edx
call qword [sym.imp.wbemcomn.dll_public:_void____ptr64____ptr64___cdecl_CFlexArray::operator___int____ptr64]
mov rcx, qword [rax]
add rcx, 8
lea rdx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
test eax, eax
jns 0x140003bf8
mov edx, dword [0x14000d720]
lea rcx, [0x14000d720]
jmp 0x140003c5d
xor esi, esi
cmp dword [0x14000d720], esi
jle 0x140003c70
mov rax, qword [rdi + 8]
mov qword [rsp + 0x60], rax
mov edx, esi
lea rcx, [0x14000d720]
call qword [sym.imp.wbemcomn.dll_public:_void____ptr64____ptr64___cdecl_CFlexArray::operator___int____ptr64]
mov rcx, qword [rax]
add rcx, 8
lea rdx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CompareFileTime]
test eax, eax
js 0x140003c4b
mov r8, rdi
mov edx, esi
lea rcx, [0x14000d720]
call qword [sym.imp.wbemcomn.dll_public:_int___cdecl_CFlexArray::InsertAt_int__void____ptr64____ptr64]
test eax, eax
je 0x140003c57
mov ebx, 0x80041006
inc esi
cmp esi, dword [0x14000d720]
jge 0x140003c70
jmp 0x140003c02
xor ebx, ebx
jmp 0x140003c70
xor edx, edx
mov r8, rdi
call qword [sym.imp.wbemcomn.dll_public:_int___cdecl_CFlexArray::InsertAt_int__void____ptr64____ptr64]
neg eax
sbb ebx, ebx
and ebx, 0x80041006
lea rcx, [rsp + 0x70]
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CInCritSec::destructor_void____ptr64]
test ebx, ebx
js 0x140003cf1
lea rdx, [0x14000d7a0]
lea rcx, [rsp + 0x70]
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CInCritSec::constructor_struct__RTL_CRITICAL_SECTION____ptr64____ptr64]
xor ebx, ebx
cmp qword [0x14000d7e0], rbx
jne 0x140003cd0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], ebx
lea r9, [0x14000d720]
lea r8, [0x140003720]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [0x14000d7e0], rax
test rax, rax
cmove ebx, r15d
lea rcx, [rsp + 0x70]
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CInCritSec::destructor_void____ptr64]
mov rcx, qword [0x14000d7d0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
test eax, eax
jne 0x140003d0a
mov ebx, r15d
jmp 0x140003d0a
test rdi, rdi
je 0x140003d0a
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov edx, 1
mov rcx, rdi
call qword [0x1400089e0]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop rdi
pop rsi
ret
Function at 0x140003d20
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
sub rsp, 0x50
and qword [r11 + 0x10], 0
lea rax, [r11 + 8]
and qword [r11 + 8], 0
lea r9, [0x140009300]
xor edx, edx
mov qword [r11 - 0x38], rax
lea rcx, [0x1400092f0]
lea r8d, [rdx + 1]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
test eax, eax
js 0x140003dc8
lea rcx, str.root
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
test rax, rax
je 0x140003db6
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x18]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x40], rdx
mov rdx, rbx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [0x1400089e0]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400089e0]
mov rax, qword [rsp + 0x68]
add rsp, 0x50
pop rbx
ret

Function at 0x140005780
Capabilities:
Create service

Disassembly:
push rbx
sub rsp, 0x880
mov rax, qword [0x14000d0a8]
xor rax, rsp
mov qword [rsp + 0x870], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140005802
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
lea rdx, section..data
cmp rcx, rdx
je 0x1400058d1
test byte [rcx + 0x1c], 1
je 0x1400058d1
cmp byte [rcx + 0x19], 2
jb 0x1400058d1
mov edx, SafeArrayGetLBound
jmp 0x1400058be
mov r8d, 0x3ff
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [0x14000d838]
mov r9d, 0xf01ff
mov r8, qword [0x14000d830]
neg eax
mov rdx, qword [0x14000d828]
lea rax, [rsp + 0x70]
sbb ecx, ecx
and qword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
add ecx, 3
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov dword [rsp + 0x20], SafeArrayGetLBound
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
test rax, rax
jne 0x1400058d5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
lea rdx, section..data
cmp rcx, rdx
je 0x1400058d1
test byte [rcx + 0x1c], 1
je 0x1400058d1
cmp byte [rcx + 0x19], 2
jb 0x1400058d1
mov edx, SafeArrayGetLBound
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400092d0]
mov r9d, ebx
call fcn.140001d38
xor eax, eax
jmp 0x1400058da
mov eax, 1
mov rcx, qword [rsp + 0x870]
xor rcx, rsp
call fcn.140006c10
add rsp, 0x880
pop rbx
ret
Function at 0x1400058fc
Capabilities:
Delete service

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
test rax, rax
jne 0x140005966
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
lea rdx, section..data
cmp rcx, rdx
je 0x140005a1f
test byte [rcx + 0x1c], 1
je 0x140005a1f
cmp byte [rcx + 0x19], 2
jb 0x140005a1f
mov edx, SafeArrayGetLBound
jmp 0x140005a0c
mov rdx, qword [0x14000d828]
mov r8d, 0xf01ff
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
test rax, rax
jne 0x1400059c1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
lea rdx, section..data
cmp rcx, rdx
je 0x140005a1f
test byte [rcx + 0x1c], 1
je 0x140005a1f
cmp byte [rcx + 0x19], 2
jb 0x140005a1f
mov edx, reloc.OLEAUT32.dll_SafeArrayGetLBound
jmp 0x140005a0c
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
jne 0x140005a23
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.wbemcomn.dll_GetMemLogObject]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.wbemcomn.dll_public:_void___cdecl_CMemoryLog::Write_long_int____ptr64]
mov rcx, qword [section..data]
lea rdx, section..data
cmp rcx, rdx
je 0x140005a1f
test byte [rcx + 0x1c], 1
je 0x140005a1f
cmp byte [rcx + 0x19], 2
jb 0x140005a1f
mov edx, SafeArrayGetElement
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400092d0]
mov r9d, ebx
call fcn.140001d38
xor eax, eax
jmp 0x140005a28
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400069b8
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140006f64
add rsp, 0x28
jmp 0x1400069b8
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
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]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14000d8c8], rbx
je 0x140006a02
cmp rax, rbx
jne 0x140006a17
mov edi, 1
mov eax, dword [0x14000d8d0]
cmp eax, 1
jne 0x140006a24
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140006a91
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400069eb
mov eax, dword [0x14000d8d0]
test eax, eax
jne 0x140006a87
mov dword [0x14000d8d0], 1
lea r14, [0x140008a38]
lea rbx, [0x140008a20]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140006a79
test eax, eax
jne 0x140006a7d
cmp qword [rbx], 0
je 0x140006a6e
mov rax, qword [rbx]
mov rcx, qword [0x1400089e0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140006a4f
test eax, eax
je 0x140006a91
mov eax, 0xff
jmp 0x140006be6
mov dword [0x14000d0d4], 1
mov eax, dword [0x14000d8d0]
cmp eax, 1
jne 0x140006ab9
lea rdx, [0x140008a18]
lea rcx, [0x1400089e8]
call sub.msvcrt.dll__initterm
mov dword [0x14000d8d0], 2
test edi, edi
jne 0x140006ac6
xor eax, eax
xchg qword [0x14000d8c8], rax
cmp qword [0x14000d8e8], 0
je 0x140006afa
lea rcx, [0x14000d8e8]
call fcn.140006ed0
test eax, eax
je 0x140006afa
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14000d8e8]
mov r9, qword [0x1400089e0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
mov cl, byte [rbx]
cmp cl, 0x20
ja 0x140006b85
test cl, cl
je 0x140006b1c
test edi, edi
jne 0x140006b85
dec cl
cmp cl, 0x1f
ja 0x140006b2f
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x140006b1c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400063dc
mov dword [0x14000d0d0], eax
cmp dword [0x14000d0f0], 0
jne 0x140006b6e
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14000d0d4], 0
jne 0x140006b83
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14000d0d0]
jmp 0x140006be6
cmp cl, 0x22
jne 0x140006b97
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x140006bac
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140006b0d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x140006dcc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140006e18
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006e10
cmp dword [rcx + 0x3c], edx
jl 0x140006e10
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140006e10
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 0x140006e18
mov rax, rdx
add rsp, 0x18
ret