joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cc00
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0x1e0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
mov r12, r9
mov rdi, r8
mov rbx, rdx
mov qword [r11 - 0x50], rdx
mov qword [r11 - 0x58], r8
xor esi, esi
mov dword [rsp + 0x34], esi
mov dword [rsp + 0x30], 0x78
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x34]
lea rdx, str._InitDllsMonitor::setRegValue_
lea rcx, [r11 - 0x168]
call fcn.140001d10
nop
mov qword [rsp + 0x38], rsi
cmp qword [rbx + 0x20], 8
jb 0x14000cc7c
mov rdx, qword [rbx + 8]
jmp 0x14000cc80
lea rdx, [rbx + 8]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000ccd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, str.Registry::Helper::RegOpenKeyExA
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x60]
call sub.MSVCR90.dll__CxxThrowException
cmp qword [rdi + 0x20], 8
jb 0x14000cce3
mov rdx, qword [rdi + 8]
jmp 0x14000cce7
lea rdx, [rdi + 8]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r12
mov r9d, 4
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000cd44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, str.Registry::Helper::setRegValue
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x80], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll__CxxThrowException
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x30], esi
mov esi, 1
mov dword [rsp + 0x34], esi
jmp 0x14000cd72
lea rcx, [rsp + 0x90]
call fcn.140001e50
nop
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov rcx, rbx
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
nop
mov rcx, rdi
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov eax, esi
mov rcx, qword [rsp + 0x1d8]
xor rcx, rsp
call fcn.140155650
mov rbx, qword [rsp + 0x200]
add rsp, 0x1e0
pop r12
pop rdi
pop rsi
ret
Function at 0x14000cf30
Capabilities:
Resume thread

Disassembly:
mov r11, rsp
push r12
sub rsp, 0x1e0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
mov r12, rdx
mov rdi, rcx
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0x78
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x24]
lea rdx, str._Monitor::InjectorMonitor::Start_
lea rcx, [r11 - 0x148]
call fcn.140001d10
nop
lea rbx, [rdi + 0x78]
mov qword [rsp + 0x40], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
test r12, r12
jne 0x14000cfdb
mov dword [rsp + 0x30], 0x57
lea rax, str.Checking_Parameters_
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x50]
call sub.MSVCR90.dll__CxxThrowException
cmp qword [rdi + 0x10], 0
je 0x14000d018
mov dword [rsp + 0x30], 0x420
lea rax, str.Checking_ThreadIsStopped_
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x90], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x90]
call sub.MSVCR90.dll__CxxThrowException
mov rdx, r12
mov rcx, rdi
call fcn.14000d260
test eax, eax
jne 0x14000d05f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.InjectorMonitor::CreateMonitorThread
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x80], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll__CxxThrowException
mov rcx, rdi
call fcn.14000d680
test eax, eax
jne 0x14000d09d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.InjectorMonitor::CreateMonitoringEvents
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x60]
call sub.MSVCR90.dll__CxxThrowException
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov ebx, dword [rsp + 0x24]
lea rcx, [rsp + 0xa0]
call fcn.140001e50
nop
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1d8]
xor rcx, rsp
call fcn.140155650
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
Function at 0x14000d260
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
sub rsp, 0x1e0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
mov r13, rdx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x34], edi
mov dword [rsp + 0x30], 0x78
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x34]
lea rdx, str._Monitor::InjectorMonitor::CreateMonitorThread_
lea rcx, [r11 - 0x158]
call fcn.140001d10
nop
xor r9d, r9d
xor r8d, r8d
mov r12d, 1
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rbx, rax
mov qword [rsp + 0x98], rax
test rax, rax
jne 0x14000d320
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rax, str.CreateEvent:InterruptionEvent
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x70], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x70]
call sub.MSVCR90.dll__CxxThrowException
mov dword [rsp + 0x38], edi
mov qword [rsi + 8], r13
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rsi
lea r8, [0x14000e370]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14000d394
mov qword [rsi + 8], rdi
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
lea rax, [0x1401b9108]
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x80], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll__CxxThrowException
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x10], rax
mov eax, dword [rsp + 0x38]
mov dword [rsi + 0x18], eax
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x34], r12d
jmp 0x14000d3b3
lea rcx, [rsp + 0xa0]
call fcn.140001e50
nop
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r12d
mov rcx, qword [rsp + 0x1d8]
xor rcx, rsp
call fcn.140155650
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140010aa0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
mov rbx, rcx
xor sil, sil
lea ecx, [rdx + 2]
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rdi, rax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x140010b37
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x140010b37
cmp qword [rbx + 0x20], 8
jb 0x140010b0e
mov rdx, qword [rbx + 8]
jmp 0x140010b12
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
je 0x140010b34
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140010b01
jmp 0x140010b37
mov sil, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.MSVCP90.dll_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64]
mov al, sil
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140155650
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140012860
Capabilities:
Resume thread

Disassembly:
push rdi
push r12
push r13
sub rsp, 0x1e0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x210], rbx
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
mov r13, rdx
mov r12, rcx
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0x78
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x24]
lea rdx, str._ProcessMonitor::Start_
lea rcx, [rsp + 0xa0]
call fcn.140001d10
nop
lea rbx, [r12 + 0x50]
mov qword [rsp + 0x40], rbx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [r12 + 0x48], 0
je 0x140012913
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.Checking_AlreadyRunning_
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x50]
call sub.MSVCR90.dll__CxxThrowException
call fcn.140042740
test eax, eax
jne 0x140012954
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.WatchmanDriver::Start
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x90], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x90]
call sub.MSVCR90.dll__CxxThrowException
lea r8, [r12 + 0x48]
mov rdx, r13
mov rcx, r12
call fcn.140012f70
mov dword [rsp + 0x20], eax
test eax, eax
je 0x14001299e
mov dword [rsp + 0x30], eax
lea rax, str.ProcessMonitor::Initialize
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x80], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll__CxxThrowException
mov rax, qword [r12 + 0x48]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400129b0
lea eax, [rcx + 0x57]
jmp 0x1400129c5
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1400129bf
xor eax, eax
jmp 0x1400129c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x140012a0a
lea rdx, [r12 + 0x48]
mov rcx, r12
call fcn.140013190
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x30], eax
lea rax, str.ProcessMonitor::ExecutionContext::Resume
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x60]
call sub.MSVCR90.dll__CxxThrowException
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [r12 + 0x48]
or edx, 0xffffffff
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov ebx, dword [rsp + 0x24]
lea rcx, [rsp + 0xa0]
call fcn.140001e50
nop
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1d8]
xor rcx, rsp
call fcn.140155650
mov rbx, qword [rsp + 0x210]
add rsp, 0x1e0
pop r13
pop r12
pop rdi
ret
Function at 0x14002a160
Capabilities:
Resume thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rbx, rcx
mov dword [rsp + 0x50], 0x78
lea rdi, [rcx + 0x50]
mov qword [rsp + 0x58], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
cmp qword [rbx + 8], 0
je 0x14002a1b7
mov dword [rsp + 0x20], 0x420
lea rdx, [0x140252440]
lea rcx, [rsp + 0x20]
call sub.MSVCR90.dll__CxxThrowException
mov rcx, rbx
call fcn.14002a4c0
test eax, eax
jne 0x14002a1de
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
lea rdx, [0x140252440]
lea rcx, [rsp + 0x24]
call sub.MSVCR90.dll__CxxThrowException
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ebx, ebx
lea esi, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
jmp 0x14002a201
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x14002a4c0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov r12, rcx
mov dword [rsp + 0x80], 0x78
xor r9d, r9d
xor r8d, r8d
mov esi, 1
mov edx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov qword [rsp + 0x88], rax
test rax, rax
jne 0x14002a525
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140252440]
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll__CxxThrowException
xor ebx, ebx
mov dword [rsp + 0x78], ebx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, r12
lea r8, [0x14002afb0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14002a576
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
lea rdx, [0x140252440]
lea rcx, [rsp + 0x34]
call sub.MSVCR90.dll__CxxThrowException
mov qword [r12 + 0x18], rdi
mov qword [r12 + 8], rax
mov eax, dword [rsp + 0x78]
mov dword [r12 + 0x10], eax
jmp 0x14002a596
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret

Function at 0x14002a5b0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, r8
mov dword [rsp + 0x78], 0x78
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
mov r9, rdx
lea r8, [0x14002b000]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x14002a620
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
lea rdx, [0x140252440]
lea rcx, [rsp + 0x34]
call sub.MSVCR90.dll__CxxThrowException
mov qword [rdi], rax
mov edi, 1
jmp 0x14002a632
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x14002aac0
Capabilities:
Resume thread

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov r13, rcx
lea rdx, [rax - 0x60]
call fcn.14002a650
nop
mov rax, qword [rsp + 0x40]
mov rsi, rax
mov rbp, qword [rsp + 0x48]
cmp rax, rbp
jbe 0x14002ab0f
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov rbp, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov r12, qword [rsp + 0x28]
mov rdi, r12
cmp rax, rbp
jbe 0x14002ab27
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov r12, qword [rsp + 0x28]
xor r14d, r14d
nop word [rax + rax]
test rdi, rdi
je 0x14002ab3a
cmp rdi, r12
je 0x14002ab40
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp rsi, rbp
je 0x14002abd5
mov qword [rsp + 0x98], r14
test rdi, rdi
jne 0x14002ab61
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov r11, r14
jmp 0x14002ab64
mov r11, qword [rdi]
cmp rsi, qword [r11 + 0x20]
jb 0x14002ab70
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea r8, [rsp + 0x98]
mov rdx, qword [rsi]
mov rcx, r13
call fcn.14002a5b0
mov rbx, qword [rsp + 0x98]
test eax, eax
je 0x14002ab99
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
test rbx, rbx
je 0x14002abad
cmp rbx, 0xffffffffffffffff
je 0x14002abad
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
jne 0x14002abbd
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov r11, r14
jmp 0x14002abc0
mov r11, qword [rdi]
cmp rsi, qword [r11 + 0x20]
jb 0x14002abcc
call qword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add rsi, 8
jmp 0x14002ab30
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
sub rbx, rcx
sar rbx, 3
test rcx, rcx
je 0x14002abf0
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r14
mov rcx, qword [rsp + 0x28]
call sub.MSVCR90.dll_void___cdecl_operator_delete_void____ptr64_
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140043360
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
push r12
sub rsp, 0x1e0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x1d8], rax
mov r12, rcx
xor ebx, ebx
mov dword [rsp + 0x24], ebx
mov dword [rsp + 0x20], 0x78
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x24]
lea rdx, [0x1401c99a0]
lea rcx, [r11 - 0x148]
call fcn.140001d10
nop
mov rcx, r12
call fcn.140044a10
xor r9d, r9d
mov edx, 0x13d
xor ecx, ecx
lea r8d, [rbx + 0x65]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rdi, rax
test rax, rax
jne 0x140043418
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.FindResourceEx
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x50]
call sub.MSVCR90.dll__CxxThrowException
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x140043463
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x1401c9a18]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x90], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x90]
call sub.MSVCR90.dll__CxxThrowException
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test eax, eax
jne 0x1400434ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x1401c9a38]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x80], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x80]
call sub.MSVCR90.dll__CxxThrowException
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
jne 0x1400434ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, [0x1401c9a58]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x60], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x60]
call sub.MSVCR90.dll__CxxThrowException
lea r8, [rax + rdi]
movzx r9d, byte [rsp + 0x28]
mov rdx, rax
mov rcx, r12
call fcn.140044b20
mov dword [rsp + 0x20], ebx
mov ebx, 1
mov dword [rsp + 0x24], ebx
jmp 0x140043514
lea rcx, [rsp + 0xa0]
call fcn.140001e50
nop
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1d8]
xor rcx, rsp
call fcn.140155650
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x1400559d0
Capabilities:
Query service status

Disassembly:
mov r11, rsp
push r12
push r13
push r14
sub rsp, 0x1c0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
mov rax, qword [0x14025a030]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov r14, rcx
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0x78
lea r9, [rsp + 0x24]
lea r8, [rsp + 0x20]
lea rdx, str._WatchmanService::IsRunning_
lea rcx, [r11 - 0x158]
call fcn.140001d10
nop
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140055a83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.ServiceManager::Open
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x50]
call sub.MSVCR90.dll__CxxThrowException
mov r8d, 0xf01ff
lea rdx, str.SMUpd
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
test rax, rax
je 0x140055afa
lea rdx, [rsp + 0x190]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, eax
mov r13d, 1
test eax, eax
cmovne r13d, dword [rsp + 0x194]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x140055afa
xor eax, eax
cmp r13d, 1
setne al
mov dword [r14], eax
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
jmp 0x140055b2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.ServiceManger::GetStatus
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x70], xmm0
lea rdx, [0x140252200]
lea rcx, [rsp + 0x70]
call sub.MSVCR90.dll__CxxThrowException
nop
mov ebx, dword [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.140001e50
nop
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140155650
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x140061ea0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov r9, rdx
xor r11d, r11d
movabs rax, 0xaaaaaaaaaaaaaaab
mov r10, r8
mov rbx, rcx
lea rdi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_A
mul rdx
shr rdx, 1
mov r8, r11
lea rax, [rdx + rdx*2]
sub r9, rax
test rdx, rdx
je 0x140061f5b
nop dword [rax]
movzx eax, byte [rbx + r11]
add r8, 4
add r11, 3
shr rax, 2
movzx eax, byte [rax + rdi]
mov byte [r10 + r8 - 4], al
movzx eax, byte [rbx + r11 - 3]
and eax, 3
shl eax, 4
movsxd rcx, eax
movzx eax, byte [rbx + r11 - 2]
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + rdi]
mov byte [r10 + r8 - 3], al
movzx eax, byte [rbx + r11 - 2]
and eax, 0xf
shl eax, 2
movsxd rcx, eax
movzx eax, byte [rbx + r11 - 1]
shr eax, 6
or rcx, rax
movzx eax, byte [rcx + rdi]
mov byte [r10 + r8 - 2], al
movzx eax, byte [rbx + r11 - 1]
and eax, 0x3f
sub rdx, 1
movzx eax, byte [rax + rdi]
mov byte [r10 + r8 - 1], al
jne 0x140061ee0
sub r9, 1
je 0x140061fb8
cmp r9, 1
jne 0x140061feb
movzx eax, byte [r11 + rbx]
shr rax, 2
movzx eax, byte [rax + rdi]
mov byte [r8 + r10], al
movzx eax, byte [r11 + rbx]
and eax, 3
shl eax, 4
movsxd rcx, eax
movzx eax, byte [r11 + rbx + 1]
shr eax, 4
or rcx, rax
movzx eax, byte [rcx + rdi]
mov byte [r8 + r10 + 1], al
movzx eax, byte [r11 + rbx + 1]
and eax, 0xf
shl eax, 2
cdqe
movzx eax, byte [rax + rdi]
mov byte [r8 + r10 + 2], al
jmp 0x140061fe5
movzx eax, byte [r11 + rbx]
shr rax, 2
movzx eax, byte [rax + rdi]
mov byte [r8 + r10], al
movzx eax, byte [r11 + rbx]
and eax, 3
shl eax, 4
cdqe
movzx eax, byte [rax + rdi]
mov byte [r8 + r10 + 2], 0x3d
mov byte [r8 + r10 + 1], al
mov byte [r8 + r10 + 3], 0x3d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret