joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140006360
Capabilities:
Delete service

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x58], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x1400a2238]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, rcx
lea r8, str.CVdsServiceModule::Uninstall__
mov edx, 0x5e
lea rcx, [r11 - 0x50]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
mov rcx, rsi
call fcn.1400057f4
mov edi, 1
cmp eax, edi
je 0x140006491
test eax, eax
js 0x14000648f
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x1400063ed
lea edx, [rdi + 0x67]
jmp 0x140006481
mov r8d, 0x10020
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x140006422
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
lea edx, [r14 + 0x6a]
jmp 0x140006481
lea r8, [rsp + 0x38]
mov edx, edi
mov rcx, r14
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
nop dword [rax + rax]
mov ebx, eax
mov rcx, r14
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
nop dword [rax + rax]
lea rcx, [0x14005bb48]
call qword [sym.imp.vdsutil.dll_RemoveEventSource]
nop dword [rax + rax]
test ebx, ebx
jne 0x140006491
lea edx, [rbx + 0x6b]
mov r8d, reloc.ATL.DLL_AtlModuleInit
mov rcx, rsi
call fcn.1400058e4
xor edi, edi
lea rcx, [rsp + 0x28]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140054200
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140006de0
Capabilities:
Block operations on executable memory pages using arbitrary code guard

Disassembly:
push rsi
sub rsp, 0x30
mov esi, 4
mov dword [rsp + 0x40], 1
mov r8d, esi
lea rdx, [rsp + 0x40]
lea ecx, [rsi - 2]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov r8d, esi
mov dword [rsp + 0x48], 1
lea rdx, [rsp + 0x48]
lea ecx, [rsi + 5]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov r8d, esi
mov dword [rsp + 0x50], 3
lea rdx, [rsp + 0x50]
lea ecx, [rsi + 6]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
lea ecx, [rsi + 4]
mov r8d, esi
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x58], ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
mov r8d, esi
mov dword [rsp + 0x20], 2
lea rdx, [rsp + 0x20]
lea ecx, [rsi + 9]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_SetProcessMitigationPolicy]
nop dword [rax + rax]
add rsp, 0x30
pop rsi
ret
Function at 0x140011330
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
lea r8, str.CVdsService::AddNetworkShare__
mov edx, 0x5e
lea rcx, [rsp + 0x28]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::constructor_unsigned_long_int__char_const____ptr64____ptr64]
nop dword [rax + rax]
nop
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
mov edx, 3
cmp eax, edx
je 0x1400113b0
mov r9d, eax
lea r8, str.CVdsService::AddNetworkShare:_Skipping_NetShareAdd__:_GetDriveType_____u
lea ecx, [rdx + 0x5b]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
mov ebx, 1
lea rcx, [rsp + 0x28]
call qword [sym.imp.vdsutil.dll_public:_void___cdecl_CVdsCallTracer::destructor_void____ptr64]
nop dword [rax + rax]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
movzx ecx, word [rbx]
mov rax, qword [0x1400a2ec0]
mov word [rax], cx
movzx ecx, word [rbx]
mov rax, qword [0x1400a2ee8]
mov word [rax], cx
xor r9d, r9d
lea r8, [0x1400a2ec0]
mov edx, 0x1f6
xor ecx, ecx
call qword [sym.imp.srvcli.dll_NetShareAdd]
nop dword [rax + rax]
test eax, eax
je 0x140011391
mov r9d, 0x846
lea r8, str.CVdsService::AddNetworkShare:_NetShareAdd___failed:__ld
mov ecx, 0x5e
cmp eax, r9d
jne 0x140011413
lea edx, [rcx - 0x5d]
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
jmp 0x140011424
mov r9d, eax
xor edx, edx
call qword [sym.imp.vdsutil.dll_VdsTraceEx]
nop dword [rax + rax]
xor ebx, ebx
jmp 0x140011396
Function at 0x140052f9c
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400a2238]
xor rax, rsp
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
lea rdx, [r11 - 0x48]
xor eax, eax
xor edi, edi
movups xmmword [rsp + 0x50], xmm0
mov qword [r11 - 0x28], rax
mov rbp, rcx
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], edi
call fcn.1400536f0
test eax, eax
je 0x140052ff5
cmp dword [rsp + 0x40], edi
sete dil
mov ebx, edi
jmp 0x1400531a7
mov qword [rsp + 0x30], rdi
mov r8d, 3
mov dword [rsp + 0x28], 0x20000000
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], r8d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14005304c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400531a7
mov rcx, rsi
call fcn.140052e74
mov ebx, eax
test eax, eax
je 0x140053198
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], AtlComPtrAssign
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, 0x70000
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
jne 0x1400530bc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140053198
mov ebx, dword [rsp + 0x64]
xor ecx, ecx
add ebx, 0x1ff
mov r8d, 0x3000
and ebx, 0xfffffe00
mov edx, ebx
lea r9d, [rcx + 4]
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14005309d
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rdi
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
jne 0x14005313c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x80310000
jne 0x140053181
mov ebx, edi
mov edx, 1
jmp 0x140053179
mov edx, dword [rsp + 0x44]
xor r8d, r8d
mov rcx, r14
call fcn.140053bc8
lea ecx, [rax - 2]
cmp ecx, 1
jbe 0x14005316b
cmp eax, 1
jne 0x140053164
mov rcx, rsi
call fcn.140052acc
mov ebx, eax
jmp 0x14005316d
mov ebx, 1
jmp 0x140053171
mov ebx, edi
test ebx, ebx
js 0x140053181
test ebx, ebx
sete dil
mov edx, edi
mov rcx, rbp
call fcn.1400537fc
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140054200
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400531d4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
cmp dword [0x1400a3400], ebx
mov dword [rsp + 0x50], ebx
jne 0x140053258
lea rax, [r11 + 0x10]
mov r9d, 0x20000010
mov qword [r11 - 0x18], rax
lea r8, str.CacheDisable
lea rax, [r11 + 8]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
mov qword [r11 - 0x28], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, 0xfffffffc
jne 0x140053258
cmp eax, 1
je 0x140053258
mov eax, dword [0x1400a271c]
cmp dword [rsp + 0x50], ebx
mov dword [0x1400a3400], 1
cmovne eax, ebx
mov dword [0x1400a271c], eax
jmp 0x14005325e
mov eax, dword [0x1400a271c]
add rsp, 0x40
pop rbx
ret

Function at 0x1400536f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov dword [rax + 0x18], 4
mov qword [rax + 0x20], rbx
mov r14, rdx
mov dword [rax + 8], ebx
mov rdi, rcx
mov esi, ebx
test rcx, rcx
je 0x1400537b3
test rdx, rdx
je 0x1400537b3
mov dword [rdx], ebx
call fcn.1400531d4
test eax, eax
jne 0x14005373c
lea edi, [rbx + 1]
jmp 0x1400537dd
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.14005326c
mov rsi, qword [rsp + 0x78]
mov edi, eax
test eax, eax
js 0x1400537b8
lea rax, [rsp + 0x70]
mov r9d, reloc.ATL.DLL_AtlModuleInit
mov qword [rsp + 0x30], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetectCache
lea rax, [rsp + 0x60]
mov r8, rsi
mov qword [rsp + 0x28], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
je 0x1400537a4
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400537b8
cmp dword [rsp + 0x60], ebx
je 0x1400537b8
mov dword [r14], 1
jmp 0x1400537b8
mov edi, 0x80070057
test rsi, rsi
je 0x1400537dd
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
test edi, edi
sete bl
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400537fc
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
and qword [rbp + 0x28], 0
xor eax, eax
and qword [rbp + 0x18], 0
mov rbx, rcx
and qword [rbp + 0x30], 0
test edx, edx
setne al
mov dword [rbp + 0x20], eax
test rcx, rcx
je 0x140053958
call fcn.1400531d4
test eax, eax
je 0x140053929
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.14005326c
mov rbx, qword [rbp + 0x30]
test eax, eax
js 0x140053904
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFveDetect
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140053904
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x18]
mov rcx, qword [rbp + 0x28]
lea rdx, str.Cache
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140053904
mov rcx, qword [rbp + 0x18]
lea r9d, [rax + 4]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
test rbx, rbx
je 0x140053929
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x140053943
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
and qword [rbp + 0x18], 0
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x140053958
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
add rsp, 0x58
pop rbx
pop rbp
ret
Function at 0x140053f60
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 [0x1400a3408], rbx
je 0x140053fc7
cmp rax, rbx
jne 0x140053fba
mov ebx, 1
mov esi, ebx
jmp 0x140053fcc
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140053f9f
mov ebx, 1
mov eax, dword [0x1400a3410]
cmp eax, ebx
jne 0x140053fe4
mov edi, AtlInternalQueryInterface
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x140054050
mov eax, dword [0x1400a3410]
test eax, eax
jne 0x140054045
mov dword [0x1400a3410], ebx
lea r15, [0x140059d80]
lea rdi, [0x140059d68]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140054037
test eax, eax
jne 0x14005403b
cmp qword [rdi], r14
je 0x14005402c
mov rax, qword [rdi]
mov rcx, qword [0x140059ce0]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14005400e
test eax, eax
je 0x14005404b
mov eax, 0xff
jmp 0x1400541a6
mov dword [0x1400a2724], ebx
mov edi, AtlInternalQueryInterface
mov eax, dword [0x1400a3410]
cmp eax, ebx
jne 0x140054077
lea rdx, [0x140059d60]
lea rcx, [0x140059ce8]
call sub.msvcrt.dll__initterm
mov dword [0x1400a3410], 2
test esi, esi
jne 0x140054085
mov rax, r14
xchg qword [0x1400a3408], rax
cmp qword [0x1400a3428], r14
je 0x1400540b8
lea rcx, [0x1400a3428]
call fcn.1400547a0
test eax, eax
je 0x1400540b8
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400a3428]
mov r9, qword [0x140059ce0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400540d1
mov eax, 0xff
jmp 0x1400541a6
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140054157
test ax, ax
je 0x1400540ec
test edx, edx
jne 0x140054157
sub ax, bx
cmp ax, di
ja 0x140054102
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400540ec
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.140006e90
mov dword [0x1400a2720], eax
cmp dword [0x1400a2740], r14d
jne 0x140054140
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400a2724], r14d
jne 0x140054155
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400a2720]
jmp 0x1400541a6
cmp ax, 0x22
jne 0x14005416b
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 0x1400540da
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.140136000
add rsp, 0x28
jmp 0x140053f60
Function at 0x14005468c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400546d8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400546d0
cmp dword [rcx + 0x3c], edx
jl 0x1400546d0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400546d0
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 0x1400546d8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001000
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rbx
sub rsp, 0x440
mov rax, qword [0x14000b0f8]
xor rax, rsp
mov qword [rsp + 0x430], rax
lea rax, [r11 + 0x10]
mov r9, rcx
mov ebx, 0x200
lea rcx, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR90.dll__vsnwprintf_s]
test eax, eax
cmovs eax, ebx
xor ecx, ecx
cdqe
mov word [rsp + rax*2 + 0x30], cx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x430]
xor rcx, rsp
call fcn.1400047a0
add rsp, 0x440
pop rbx
ret
Function at 0x140004420
Capabilities:
Query environment variable

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbp
push rsi
push r12
push r13
sub rsp, 0x40
lea rax, [r11 - 0x28]
movzx esi, r9b
mov qword [r11 + 0x10], rdi
mov qword [r11 - 0x30], rax
lea rax, [r11 - 0x24]
lea r9, [r11 - 0x20]
mov qword [r11 - 0x20], 0
xor ebp, ebp
mov edi, 0x800
mov qword [r11 - 0x38], rax
call fcn.1400040e0
mov r13d, dword [rsp + 0x30]
mov r12d, eax
test eax, eax
je 0x140004481
mov rax, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x38]
mov qword [rax], rbp
jmp 0x140004565
mov qword [rsp + 0x60], rbx
mov ebx, dword [rsp + 0x34]
test sil, sil
je 0x140004539
test ebx, ebx
je 0x140004539
cmp r13d, 2
jne 0x140004539
lea r9, str.d:_build_ob_bora_621624_bora_lib_winregistry_winregistry.c
xor edx, edx
mov r8d, 0x1000
or ecx, 0xffffffff
mov dword [rsp + 0x20], 0x379
call sub.vmtools.dll_Util_SafeInternalRealloc
mov rsi, qword [rsp + 0x38]
mov r8d, edi
mov rcx, rsi
mov rdx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
je 0x14000451f
cmp ebx, edi
jbe 0x140004542
mov r8d, ebx
lea r9, str.d:_build_ob_bora_621624_bora_lib_winregistry_winregistry.c
mov rdx, rbp
or ecx, 0xffffffff
add r8, r8
mov edi, ebx
mov dword [rsp + 0x20], 0x379
call sub.vmtools.dll_Util_SafeInternalRealloc
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test eax, eax
jne 0x1400044e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12d, eax
mov rax, qword [rsp + 0x80]
mov qword [rax], 0
jmp 0x140004560
mov rbp, qword [rsp + 0x38]
shr ebx, 1
xor esi, esi
mov edx, ebx
mov r8d, 1
mov rcx, rbp
add rdx, rdx
call sub.vmtools.dll_Unicode_AllocWithLength
mov rdx, qword [rsp + 0x80]
mov qword [rdx], rax
mov rbx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x68]
test rax, rax
je 0x14000457a
mov dword [rax], r13d
mov rcx, rsi
call qword [sym.imp.MSVCR90.dll_free]
mov rcx, rbp
call qword [sym.imp.MSVCR90.dll_free]
mov rbp, qword [rsp + 0x70]
mov eax, r12d
add rsp, 0x40
pop r13
pop r12
pop rsi
ret
Function at 0x1400045a0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x60
mov r14, rdx
mov rbx, rcx
mov edx, 1
mov rcx, r14
mov rdi, r9
mov r13, r8
call sub.vmtools.dll_Unicode_GetAllocBytes
mov edx, 1
mov rcx, r13
mov r12, rax
call sub.vmtools.dll_Unicode_GetAllocBytes
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov rbp, rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test eax, eax
jne 0x14000467a
lea edx, [rax + 1]
mov rcx, rdi
call sub.vmtools.dll_Unicode_GetAllocBytes
mov rcx, rax
mov rbx, rax
call sub.vmtools.dll_Unicode_UTF16Strlen
mov r9d, dword [rsp + 0xa0]
xor r8d, r8d
lea ecx, [rax + rax + 2]
mov rdx, rbp
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call qword [sym.imp.MSVCR90.dll_free]
test esi, esi
je 0x1400046bb
mov rcx, rdi
call sub.vmtools.dll_Unicode_GetUTF8
mov rcx, r13
mov rdi, rax
call sub.vmtools.dll_Unicode_GetUTF8
mov rcx, r14
mov rbx, rax
call sub.vmtools.dll_Unicode_GetUTF8
lea rdx, str.WinReg_SetSZEx
lea rcx, str._s:_A_Windows_registry_operation_failed:__d._key_path:__s__value_name:__s__value:__s_n
mov r8d, esi
mov r9, rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rbx
call sub.vmtools.dll_Log
mov rcx, r12
call qword [sym.imp.MSVCR90.dll_free]
mov rcx, rbp
call qword [sym.imp.MSVCR90.dll_free]
lea r11, [rsp + 0x60]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x140004d07
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000b0f8]
jne 0x1400047ba
rol rcx, 0x10
test cx, 0xffff
jne 0x1400047b6
repz ret
ror rcx, 0x10
jmp 0x140004c60
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000b210]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14000b308]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140004ce5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000b210]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140004d07
mov rax, qword [rsp + 0x88]
mov qword [0x14000b308], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000b2a8], rax
mov rax, qword [0x14000b308]
mov qword [0x14000b180], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000b290], rax
mov dword [0x14000b170], 0xc0000409
mov dword [0x14000b174], 1
mov rax, qword [0x14000b0f8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000b100]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000b208], eax
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140007e78]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000b208], 0
jne 0x140004d8e
mov ecx, 1
call sub.MSVCR90.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001490
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0xc0], 0
jne 0x1400014b8
lea rcx, str.__no_code_to_execute._n
call fcn.140002590
jmp 0x140001590
lea rcx, str.__executing_code...
call fcn.140002590
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc0]
mov r9d, 0x40
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001590
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0xc0]
mov r8d, eax
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0xc8]
mov rcx, qword [rsp + 0x28]
call fcn.14001d760
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x34], 0
je 0x140001557
mov dword [rsp + 0x20], 0
jmp 0x140001539
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x34]
cmp dword [rsp + 0x20], eax
jge 0x140001557
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x34], 0x800
jge 0x140001557
jmp 0x14000152f
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0x40], 0
je 0x140001568
call qword [sym.imp.KERNEL32.dll_DebugBreak]
call qword [rsp + 0x28]
lea rcx, str.OK__n
call fcn.140002590
mov rax, qword [rsp + 0x40]
mov r8d, 0xc000
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
add rsp, 0x38
ret