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

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r8
test rdx, rdx
je 0x1401a7f35
test r8, r8
je 0x1401a7f35
test byte [rcx + 8], 1
jne 0x1401a7ec8
mov eax, 0xffffffea
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401a7f02
mov eax, dword [rsp + 0x48]
cmp rax, rdi
je 0x1401a7f28
lea eax, [rbx - 1]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401a7f1e
mov ebx, 0xffffffff
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, 0xfffffffe
add rsp, 0x30
pop rdi
ret

Function at 0x1401a7f40
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
lea rsi, [0x140000000]
mov dword [rsp + 0x50], edi
mov rbx, rcx
nop
test byte [rbx + 8], 1
je 0x1401a8013
mov rcx, qword [rbx + 0x10]
lea r9, [rsp + 0x48]
mov r8d, 4
mov dword [rsp + 0x48], edi
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401a7fad
cmp dword [rsp + 0x48], 4
je 0x1401a7fc3
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je case.0x1401a7fdf.101
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
test eax, eax
js 0x1401a8018
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x1401a8001
lea eax, [rdx - 0x64]
cmp eax, 6
ja case.0x1401a7fdf.101
cdqe
mov ecx, dword [rsi + rax*4 + 0x1a8028]
add rcx, rsi
jmp rcx
mov rcx, rbx
call fcn.1401aea40
test eax, eax
jns 0x1401a7f60
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov eax, 0xffffffea
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1401a8160
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
test byte [rcx + 8], 1
mov rdi, rdx
mov rbx, rcx
jne 0x1401a8186
mov eax, 0xffffffea
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.BstkRT.dll_public:_bool___cdecl_RTCString::isEmpty_void_const___ptr64]
mov rcx, rbx
test al, al
je 0x1401a81ac
mov rdx, 0xffffffffffffffff
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1401a7650
mov qword [rsp + 0x30], rsi
mov rsi, qword [rdi + 0x10]
mov rdx, rsi
call fcn.1401a7650
test eax, eax
js 0x1401a81d8
mov rcx, rdi
call qword [sym.imp.BstkRT.dll_public:_char_const____ptr64___cdecl_RTCString::c_str_void_const___ptr64]
mov r8, rsi
mov rcx, rbx
mov rdx, rax
call fcn.1401a81f0
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1401a81f0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r8
test rdx, rdx
je 0x1401a8285
test r8, r8
je 0x1401a8285
test byte [rcx + 8], 1
jne 0x1401a8218
mov eax, 0xffffffea
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 0x18]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401a8252
mov eax, dword [rsp + 0x48]
cmp rax, rdi
je 0x1401a8278
lea eax, [rbx - 1]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1401a826e
mov ebx, 0xffffffff
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov ecx, eax
call qword [sym.imp.BstkRT.dll_RTErrConvertFromWin32]
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov eax, 0xfffffffe
add rsp, 0x30
pop rdi
ret

Function at 0x1401a9080
Capabilities:
Get local ipv4 addresses
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 0x40]
mov rsi, rdx
mov rdi, rcx
test rax, rax
je 0x1401a918f
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1401a90f1
mov ecx, 0x200010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
test rax, rax
je 0x1401a918f
mov dword [rsp + 0x20], ebx
lea r9, str.HostDnsServiceWin:_failed_to_open_key_TcpipParameters__error__d__n
mov rcx, rax
jmp 0x1401a917f
xor ebx, ebx
xor ecx, ecx
cmp rbx, 2
jne 0x1401a9108
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
jmp 0x1401a9118
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, rax
test rax, rax
je 0x1401a9158
mov rax, qword [rdi + 0x40]
mov qword [rax + rbx*8 + 0x10], rcx
inc rbx
cmp rbx, 3
jb 0x1401a90f3
mov rdx, rsi
mov rcx, rdi
call fcn.140084930
test eax, eax
js 0x1401a9194
mov rcx, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.1401a9880
mov ecx, 0x200010
call qword [sym.imp.BstkRT.dll_RTLogRelGetDefaultInstanceEx]
mov rbx, rax
test rax, rax
je 0x1401a918f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.HostDnsServiceWin:_failed_to_create_event__error__d__n
mov rcx, rbx
mov r8d, 0x20
lea edx, [r8 - 0x10]
call qword [sym.imp.BstkRT.dll_RTLogLoggerEx]
mov eax, 0x80004005
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1401ab660
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub rsp, 0x178
mov rax, qword [0x1403a1d18]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, 0x118
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1401ab745
cmp dword [rsp + 0x44], 6
jb 0x1401ab745
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], 1
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1401ab723
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, str.EnableLUA
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [rsp + 0x30], 1
sete al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401af5e0
add rsp, 0x178
ret
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1401af5e0
add rsp, 0x178
ret
Function at 0x1401ad4c0
Capabilities:
Get routing table

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
lea rdx, str.C:_virtualbox_srcVBoxMain_src_serverwinNetIf_win.cpp
mov dword [rsp + 0x30], 0x4b0
mov ecx, 0x4b0
mov edi, 0xffffffff
call qword [sym.imp.BstkRT.dll_RTMemAllocTag]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
cmp eax, 0x7a
jne 0x1401ad524
mov rcx, rbx
call qword [sym.imp.BstkRT.dll_RTMemFree]
mov ecx, dword [rsp + 0x30]
lea rdx, str.C:_virtualbox_srcVBoxMain_src_serverwinNetIf_win.cpp
call qword [sym.imp.BstkRT.dll_RTMemAllocTag]
mov rbx, rax
test rax, rax
je 0x1401ad567
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
test eax, eax
jne 0x1401ad55e
mov edx, dword [rbx]
test edx, edx
je 0x1401ad55e
lea rcx, [rbx + 4]
cmp dword [rcx], 0
je 0x1401ad554
inc eax
add rcx, 0x38
cmp eax, edx
jb 0x1401ad543
jmp 0x1401ad55e
mov ecx, eax
imul rax, rcx, 0x38
mov edi, dword [rax + rbx + 0x14]
mov rcx, rbx
call qword [sym.imp.BstkRT.dll_RTMemFree]
mov rbx, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret

Function at 0x1401b14d0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1403a1d18]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.BstkRT.dll_RTUtf16Len]
lea ecx, [rdi + 1]
mov edx, ecx
lea r8, [rax + 1]
add rcx, r8
cmp rcx, 0x104
jbe 0x1401b1526
xor eax, eax
jmp 0x1401b154f
mov ecx, 0x5c
add r8, r8
mov word [rsp + rdi*2 + 0x20], cx
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rdx*2]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401af5e0
mov rbx, qword [rsp + 0x258]
add rsp, 0x240
pop rdi
ret
Function at 0x1401b1830
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x78], rsi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x1402e3920]
xor edx, edx
lea r8d, [rsi + 1]
lea rcx, [0x1402e3930]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test eax, eax
js 0x1401b1989
mov qword [rsp + 0x80], rsi
mov rax, qword [rsp + 0x78]
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x18]
lea rdx, str.ROOTCIMV2
lea rcx, [rsp + 0x88]
call fcn.1401b0b20
nop
mov rdx, qword [0x1402e1e70]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
cmovne rdx, rcx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x78]
mov rax, rbx
call qword [case.0x14000fd18.0]
mov ebx, eax
lea rcx, [rsp + 0x88]
call fcn.1401b06b0
nop
test ebx, ebx
js 0x1401b195f
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0xa]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test eax, eax
js 0x1401b193a
mov rax, qword [rsp + 0x80]
mov qword [rdi], rax
jmp 0x1401b196d
mov edx, ebx
lea rcx, str.CoSetProxyBlanket_failed:__Rhrc_n
call fcn.1401b1440
mov rcx, qword [rsp + 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000fd18.0]
jmp 0x1401b196d
mov edx, ebx
lea rcx, str.ConnectServer_failed:__Rhrc_n
call fcn.1401b1440
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000fd18.0]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
mov edx, eax
lea rcx, str.CoCreateInstance_failed:__Rhrc_n
call fcn.1401b1440
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401b20f0
Capabilities:
Reference sql statements
Reference wmi statements

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x1403a1d18]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rsi, r8
mov rax, rdx
mov r14, rcx
mov r8d, 0x32
lea rdx, [rsp + 0x60]
mov rcx, rax
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x1401b22c2
lea r8, [rsp + 0x60]
lea rdx, str.SELECT__FROM_Win32_NetworkAdapterConfiguration_WHERE_SettingID____ls_
lea rcx, [rsp + 0x58]
call fcn.14002b910
nop
xor ebp, ebp
mov qword [rsp + 0x50], rbp
mov rax, qword [r14]
mov rdi, qword [rax + 0xa0]
mov rbx, qword [0x1402e1e70]
mov rax, qword [rsp + 0x58]
test rax, rax
cmovne rbx, rax
lea r8, [rbp - 1]
lea rdx, [0x1402e21d8]
lea rcx, [rsp + 0x48]
call fcn.1401b0d90
nop
mov r10, qword [0x1402e1e70]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
cmovne r10, rdx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9d, [rbp + 0x30]
mov r8, rbx
mov rdx, r10
mov rcx, r14
mov rax, rdi
call qword [case.0x14000fd18.0]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1401b06b0
nop
test ebx, ebx
js 0x1401b22a6
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1401b2293
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x40], ebp
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x48]
lea edx, [rbp - 1]
lea r8d, [rbp + 1]
mov rax, qword [rax + 0x20]
call qword [case.0x14000fd18.0]
mov ebx, eax
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayCreateVectorEx
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
mov edx, eax
lea rcx, str.netIfWinFindAdapterClassById:_IEnumWbemClassObject::Next____hr0x_x_pclsObj_p_uReturn_u_42_u_n
call fcn.1401b1440
test ebx, ebx
js 0x1401b227f
cmp dword [rsp + 0x40], ebp
je 0x1401b227a
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1401b227a
mov qword [rsi], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000fd18.0]
mov rdx, qword [rsi]
lea rcx, str.netIfWinFindAdapterClassById:_S_OK_and__p_n
call fcn.1401b1440
nop
lea rcx, [rsp + 0x58]
call fcn.1401b06b0
nop
xor eax, eax
jmp 0x1401b2309
mov ebx, 0x80004005
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000fd18.0]
jmp 0x1401b22b5
lea rcx, str.ExecQuery_returned_no_enumerator_n
call fcn.1401b1440
mov ebx, 0x80004005
jmp 0x1401b22b5
mov edx, ebx
lea rcx, str.ExecQuery_failed__0x_x__n
call fcn.1401b1440
nop
lea rcx, [rsp + 0x58]
call fcn.1401b06b0
nop
jmp 0x1401b22f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jg 0x1401b22d0
mov ecx, eax
jmp 0x1401b22d9
movzx ecx, ax
or ecx, 0x80070000
mov ebx, 0x80004005
test ecx, ecx
cmovns ecx, ebx
mov ebx, ecx
mov r8d, ecx
mov edx, eax
lea rcx, str.StringFromGUID2_failed_winEr_u__hr0x_x_n
call fcn.1401b1440
mov r8, qword [rsi]
mov edx, ebx
lea rcx, str.netIfWinFindAdapterClassById:_0x_x_and__p_n
call fcn.1401b1440
mov eax, ebx
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1401af5e0
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1401b3ba0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x1401b3bc5
mov eax, 0x80070057
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
lea rax, [rsp + 0x58]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x58], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.NetLuidIndex
mov dword [rsp + 0x60], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401b3c86
mov dword [rsp + 0x68], eax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
lea rdx, str.IfType
lea rax, [rsp + 0x68]
mov dword [rsp + 0x60], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401b3c86
xor eax, eax
mov qword [rbx], rax
movzx eax, word [rsp + 0x68]
mov word [rbx + 6], ax
movabs rax, 0xffff000000ffffff
and qword [rbx], rax
mov eax, dword [rsp + 0x30]
and eax, 0xffffff
shl rax, 0x18
or qword [rbx], rax
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor ecx, ecx
mov qword [rbx], rcx
test eax, eax
jle 0x1401b3c97
movzx eax, ax
or eax, 0x80070000
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1401b4a40
Capabilities:
Get local ipv4 addresses

Disassembly:
push rbx
push rsi
push r13
push r14
push r15
sub rsp, 0x40
xor esi, esi
mov dword [rsp + 0x70], 0x3c00
mov dword [rcx], esi
mov r13, rdx
mov dword [rdx], esi
mov r15, rcx
lea rdx, str.C:_virtualbox_srcVBoxHostDriversVBoxNetFltwincfgVBoxNetCfg.cpp
mov ecx, 0x3c00
call qword [sym.imp.BstkRT.dll_RTMemAllocZTag]
mov r14, rax
test rax, rax
je 0x1401b4bf5
lea rax, [rsp + 0x70]
mov r9, r14
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rsi + 0x10]
xor ecx, ecx
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov ebx, eax
cmp eax, 0x6f
jne 0x1401b4ae2
mov rcx, r14
call qword [sym.imp.BstkRT.dll_RTMemFree]
mov ecx, dword [rsp + 0x70]
lea rdx, str.C:_virtualbox_srcVBoxHostDriversVBoxNetFltwincfgVBoxNetCfg.cpp
call qword [sym.imp.BstkRT.dll_RTMemAllocZTag]
mov r14, rax
test rax, rax
je 0x1401b4bf5
lea rax, [rsp + 0x70]
mov r9, r14
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rsi + 0x10]
xor ecx, ecx
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
mov ebx, eax
test ebx, ebx
jne 0x1401b4bb1
mov qword [rsp + 0x80], rbp
lea rcx, str.192.168.0.0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
call qword [sym.imp.WS2_32.dll_inet_addr]
mov r12d, eax
mov edi, esi
nop
mov edx, 0xff
xor ecx, ecx
call qword [sym.imp.BstkRT.dll_RTRandU32Ex]
mov ebp, eax
lea rcx, str.probing__RTnaipv4_n
shl ebp, 0x10
or ebp, r12d
mov edx, ebp
call fcn.1401b1440
lea r8, [rsp + 0x78]
mov byte [rsp + 0x7c], sil
lea rdx, [0x1401b3cb0]
mov dword [rsp + 0x78], ebp
mov rcx, r14
call fcn.1401b3790
cmp byte [rsp + 0x7c], sil
je 0x1401b4b63
inc edi
cmp edi, 0x180
jl 0x1401b4b10
jmp 0x1401b4b85
mov edx, ebp
lea rcx, str.found_unused_net__RTnaipv4_n
call fcn.1401b1440
lea rcx, str.255.255.255.0
mov dword [r15], ebp
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [r13], eax
cmp dword [r15], esi
mov eax, 0x1004
mov rcx, r14
cmove ebx, eax
call qword [sym.imp.BstkRT.dll_RTMemFree]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x80]
test ebx, ebx
je 0x1401b4be6
jmp 0x1401b4bc8
mov edx, ebx
lea rcx, str.GetAdaptersAddresses_err___u__n
call fcn.1401b1440
mov rcx, r14
call qword [sym.imp.BstkRT.dll_RTMemFree]
test ebx, ebx
jg 0x1401b4bdd
mov esi, ebx
mov eax, ebx
add rsp, 0x40
pop r15
pop r14
pop r13
pop rsi
pop rbx
ret
movzx esi, bx
or esi, 0x80070000
mov eax, esi
add rsp, 0x40
pop r15
pop r14
pop r13
pop rsi
pop rbx
ret
mov eax, 0x8007000e
add rsp, 0x40
pop r15
pop r14
pop r13
pop rsi
pop rbx
ret
Function at 0x1402589f0
Capabilities:
Query or enumerate registry value

Disassembly:
cmp rdx, 0x1000
jb 0x140258b31
push rbx
sub rsp, 0x40
movabs rax, 0xffff800000000000
mov rbx, rdx
test rax, rdx
jne 0x140258b2c
mov qword [rsp + 0x50], rdi
xor edi, edi
mov qword [rdx], rdi
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.ole32.dll_StringFromIID]
test eax, eax
jne 0x140258b27
lea rax, [rsp + 0x38]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.Interface
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140258b1c
mov rdx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
lea r9d, [rdi + 1]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140258b11
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140258b06
cmp dword [rsp + 0x60], 1
jne 0x140258b06
mov edx, dword [rsp + 0x58]
xor ecx, ecx
inc edx
shr edx, 1
inc edx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
lea rcx, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rbx], rax
mov qword [rsp + 0x28], rcx
xor edx, edx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140258b06
mov rcx, qword [rbx]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
Function at 0x1517680b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x151768237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1517680e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1517680c7
add dl, dl
jne 0x1517680ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x15176814e
xor eax, eax
add dl, dl
jne 0x1517680fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x151768205
add dl, dl
jne 0x15176810e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15176811b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x151768128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x151768135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x151768142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1517680d6
mov eax, 1
add dl, dl
jne 0x15176815e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15176816b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x151768153
sub eax, ebx
mov ebx, 1
jne 0x1517681a4
mov ecx, 1
add dl, dl
jne 0x151768186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x151768193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x15176817b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1517680d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1517681c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1517681cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1517681b5
cmp eax, 0x7d00
jae 0x1517681f3
cmp eax, 0x500
jb 0x1517681ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1517680d6
cmp eax, 0x7f
ja 0x1517681f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1517680d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x15176822a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1517680d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002130
Capabilities:
Parse pe header

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