joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1364058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.013641a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x136407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x136406a
add dl, dl
jne 0x1364089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x13640dc
xor eax, eax
add dl, dl
jne 0x1364096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x136417d
add dl, dl
jne 0x13640a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13640b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13640bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13640c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x13640d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1364075
mov eax, 1
add dl, dl
jne 0x13640ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13640f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x13640e1
sub eax, ebx
mov ebx, 1
jne 0x1364128
mov ecx, 1
add dl, dl
jne 0x136410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1364119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1364105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1364075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x136413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x136414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1364136
cmp eax, 0x7d00
jae 0x136416d
cmp eax, 0x500
jb 0x1364168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1364075
cmp eax, 0x7f
ja 0x1364170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1364075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x136419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1364075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4881fc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push eax
call fcn.00486501
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.00486462
add esp, 0xc
jmp 0x488469
Function at 0x40a280
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x43d2c0
push 0x414bd0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x440008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
xorps xmm0, xmm0
movups xmmword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
push dword [ebp - 0x40]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x48], esi
test esi, esi
je 0x40a360
mov byte [esi], 0xc3
lea eax, [ebp - 0x20]
push eax
push 0x140
push dword [ebp - 0x40]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40a360
mov dword [ebp - 4], 0
call esi
mov dword [ebp - 4], 0xfffffffe
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
jmp 0x40a362
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
Function at 0x40a6e0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x440]
lea eax, [ebp - 0x448]
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x408], 0
push fcn.0040a6e0
push 4
movups xmmword [ebp - 0x420], xmm0
movq qword [ebp - 0x410], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x40a890
push 0xc
lea eax, [ebp - 0x454]
push eax
push dword [ebp - 0x448]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov edx, dword [sym.imp.USER32.dll_wsprintfW]
test eax, eax
je 0x40a80a
xor edi, edi
cmp dword [ebp - 0x450], edi
jbe 0x40a80a
mov esi, dword [ebp - 0x454]
nop
mov ecx, 0x200
lea eax, [ebp - 0x404]
nop dword [eax + eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x40a790
push esi
lea eax, [ebp - 0x404]
push str.Scanning__p...
push eax
call edx
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jb 0x40a7f4
mov al, byte [ebp - 0x40c]
test al, 0xf0
je 0x40a7ec
test dword [ebp - 0x40c], 0x100
jne 0x40a87a
test dword [ebp - 0x418], 0x100
jne 0x40a87a
test al, 1
jne 0x40a87a
mov edx, dword [sym.imp.USER32.dll_wsprintfW]
add edi, ebx
add esi, ebx
cmp edi, dword [ebp - 0x450]
jb 0x40a780
mov esi, dword [0x459d54]
mov ebx, dword [0x459d58]
cmp esi, ebx
je 0x40a890
nop
mov edi, dword [esi]
lea eax, [ebp - 0x404]
mov ecx, 0x200
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x40a830
push edi
lea eax, [ebp - 0x404]
push str.Scanning_delta_for__p...
push eax
call edx
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jb 0x40a86b
test byte [ebp - 0x40c], 0xf0
je 0x40a87a
add esi, 4
cmp esi, ebx
je 0x40a890
mov edx, dword [sym.imp.USER32.dll_wsprintfW]
jmp 0x40a820
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041396d
mov esp, ebp
pop ebp
ret
Function at 0x40d290
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x5c
lea eax, [esi + 2]
push eax
call edi
test eax, eax
je 0x40d36f
push 0x5c
add eax, 2
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x40d36f
movzx eax, word [ebx]
mov dword [ebp - 0x418], eax
xor eax, eax
mov word [ebx], ax
mov ecx, dword [0x436fa4]
push 0x202
push eax
mov dword [ebp - 0x20c], ecx
lea eax, [ebp - 0x206]
mov cx, word [0x436fa8]
push eax
mov word [ebp - 0x208], cx
call fcn.00415ba0
add esp, 0xc
mov edi, 0x41
nop dword [eax]
nop word [eax + eax]
xor eax, eax
mov word [ebp - 0x20c], di
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x414]
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40d35f
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x40d385
inc edi
cmp di, 0x5a
jb 0x40d320
mov eax, dword [ebp - 0x418]
mov word [ebx], ax
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
push 0x436fac
lea ecx, [ebp - 0x20c]
call fcn.0040ea90
lea eax, [ebx + 2]
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040ea90
lea edx, [ebp - 0x20c]
mov ecx, 0x82
sub edx, esi
lea eax, [ecx + 0x7fffff7c]
test eax, eax
je 0x40d3cf
movzx eax, word [edx + esi]
test ax, ax
je 0x40d3cf
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x40d3b1
test ecx, ecx
lea eax, [esi - 2]
pop edi
cmovne eax, esi
xor ecx, ecx
pop esi
pop ebx
mov word [eax], cx
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
Function at 0x40ebe0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x459d48], 0
jne 0x40ec19
push 0
push 0
push 0
push 0
mov byte [0x459d48], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov dword [0x459d60], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x459d64], eax
mov eax, dword [ebp + 0xc]
cmp eax, 2
jne 0x40ec46
push str.TLS_callback:_thread_attach
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x459d68], 0xdeadbeef
mov eax, dword [0x459d60]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop ebp
ret 0xc
cmp eax, 1
jne 0x40ec6c
push str.TLS_callback:_process_attach
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x459d6c], 0xdeadbeef
mov eax, dword [0x459d64]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop ebp
ret 0xc

Function at 0x40ecc0
Capabilities:
Check for unexpected memory writes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push 0x4000
push 0
call edi
mov esi, eax
test esi, esi
je 0x40ed11
push 4
push 0x203000
push 0x1000000
push 0
call edi
mov edi, eax
test edi, edi
jne 0x40ed37
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VirtualAlloc_failed._Last_error:__u_n
call fcn.00409df0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0xc]
mov dword [edi], 0x4d2
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x1000
push eax
push esi
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetWriteWatch]
test eax, eax
je 0x40ed78
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetWriteWatch_failed._Last_error:__u_n
call fcn.00409df0
add esp, 8
xor ebx, ebx
jmp 0x40ed81
xor ebx, ebx
cmp dword [ebp - 8], 1
setne bl
push 0x8000
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call esi
push 0x8000
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0041396d
mov esp, ebp
pop ebp
ret
Function at 0x40efc0
Capabilities:
Check for unexpected memory writes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push 0x4000
push 0
call edi
mov esi, eax
test esi, esi
je 0x40f011
push 4
push 0x203000
push 0x1000000
push 0
call edi
mov edi, eax
test edi, edi
jne 0x40f037
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VirtualAlloc_failed._Last_error:__u_n
call fcn.00409df0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x1000
push eax
push esi
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetWriteWatch]
test eax, eax
je 0x40f07a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetWriteWatch_failed._Last_error:__u_n
call fcn.00409df0
add esp, 8
xor ebx, ebx
jmp 0x40f08d
xor ebx, ebx
cmp dword [edi], 1
sete bl
xor eax, eax
cmp dword [ebp - 8], 1
setne al
or ebx, eax
push 0x8000
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call esi
push 0x8000
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0041396d
mov esp, ebp
pop ebp
ret
Function at 0x40f0c0
Capabilities:
Allocate or change rwx memory
Check for unexpected memory writes
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x3000
push 0x4000
push 0
call edi
mov esi, eax
test esi, esi
je 0x40f111
push 0x40
push 0x203000
push 0x1000000
push 0
call edi
mov edi, eax
test edi, edi
jne 0x40f137
push 0x8000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.VirtualAlloc_failed._Last_error:__u_n
call fcn.00409df0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
movzx eax, byte [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov word [edi], 0xb951
mov byte [edi + 2], al
mov eax, dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
shr eax, 8
mov byte [edi + 3], al
movzx eax, byte [0x42d1fa]
push ebx
mov byte [edi + 4], al
movzx eax, byte [0x42d1fb]
push 0x1000000
mov byte [edi + 5], al
push edi
mov dword [edi + 6], 0xc359d1ff
call dword [sym.imp.KERNEL32.dll_ResetWriteWatch]
call edi
cmp eax, 1
jne 0x40f184
mov ebx, eax
jmp 0x40f1c6
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0x1000
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetWriteWatch]
test eax, eax
je 0x40f1be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetWriteWatch_failed._Last_error:__u_n
call fcn.00409df0
add esp, 8
xor ebx, ebx
jmp 0x40f1c6
xor ebx, ebx
cmp dword [ebp - 8], ebx
setne bl
push 0x8000
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
call esi
push 0x8000
push 0
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0041396d
mov esp, ebp
pop ebp
ret

Function at 0x40f4e0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
mov eax, dword [ebp - 8]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041a9c3
mov esi, eax
add esp, 4
test esi, esi
je 0x40f543
lea eax, [ebp - 8]
push eax
push esi
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x40f554
push esi
call fcn.0041a9ce
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041396d
mov esp, ebp
pop ebp
ret
Function at 0x40fc60
Capabilities:
Enumerate services

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 5
push str.ServicesActive
push 0
mov dword [ebp - 0x50], str.VBoxWddm
mov dword [ebp - 0x4c], str.VBoxSF
mov dword [ebp - 0x48], str.VBoxMouse
mov dword [ebp - 0x44], str.VBoxGuest
mov dword [ebp - 0x40], str.vmci
mov dword [ebp - 0x3c], str.vmhgfs
mov dword [ebp - 0x38], str.vmmouse
mov dword [ebp - 0x34], str.vmmemctl
mov dword [ebp - 0x30], str.vmusb
mov dword [ebp - 0x2c], str.vmusbmouse
mov dword [ebp - 0x28], str.vmx_svga
mov dword [ebp - 0x24], str.vmxnet
mov dword [ebp - 0x20], str.vmx86
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x40fe43
push 0xb000
call fcn.0041a9c3
mov edi, eax
mov dword [ebp - 8], 0
add esp, 4
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x40fe2b
mov edx, 0xb000
mov ecx, edi
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x40fd12
push edx
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edx
push eax
lea eax, [ebp - 0xc]
push eax
push 0xb000
push edi
push 3
push 0xb
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
jne 0x40fdaf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40fe14
mov ebx, dword [ebp - 0xc]
add ebx, 0xb000
push ebx
push edi
call fcn.0041a9f6
mov esi, eax
add esp, 8
test esi, esi
je 0x40fe22
mov edi, esi
mov edx, ebx
mov ecx, esi
test ebx, ebx
je 0x40fd8b
nop
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x40fd80
push 0
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 3
push 0xb
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
test eax, eax
je 0x40fe22
mov dword [ebp - 0x1c], esi
xor ebx, ebx
mov byte [ebp - 0x11], 1
cmp dword [ebp - 8], ebx
jbe 0x40fde7
nop word [eax + eax]
xor esi, esi
push dword [ebp + esi*4 - 0x50]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x40fdda
inc esi
cmp esi, 0xd
jl 0x40fdc2
jmp 0x40fdde
mov byte [ebp - 0x11], 0
inc ebx
add edi, 0x2c
cmp ebx, dword [ebp - 8]
jb 0x40fdc0
push dword [ebp - 0x1c]
call fcn.0041a9ce
add esp, 4
cmp byte [ebp - 0x11], 0
je 0x40fe38
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
push eax
push str.ERROR:__u_n
call fcn.00409df0
add esp, 8
push edi
call fcn.0041a9ce
add esp, 4
push str.Failed_to_get_services_list._n
call fcn.00409df0
add esp, 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40fe50
push str.Failed_to_get_SCM_handle._n
call fcn.00409df0
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041396d
mov esp, ebp
pop ebp
ret
Function at 0x40fe70
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x65c
mov eax, dword [0x440008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x614]
mov dword [ebp - 0x65c], str.System32driversVBoxMouse.sys
push 0
push eax
mov dword [ebp - 0x658], str.System32driversVBoxGuest.sys
mov dword [ebp - 0x654], str.System32driversVBoxSF.sys
mov dword [ebp - 0x650], str.System32driversVBoxVideo.sys
mov dword [ebp - 0x64c], str.System32_vboxdisp.dll
mov dword [ebp - 0x648], str.System32_vboxhook.dll
mov dword [ebp - 0x644], str.System32_vboxmrxnp.dll
mov dword [ebp - 0x640], str.System32_vboxogl.dll
mov dword [ebp - 0x63c], str.System32_vboxoglarrayspu.dll
mov dword [ebp - 0x638], str.System32_vboxoglcrutil.dll
mov dword [ebp - 0x634], str.System32_vboxoglerrorspu.dll
mov dword [ebp - 0x630], str.System32_vboxoglfeedbackspu.dll
mov dword [ebp - 0x62c], str.System32_vboxoglpackspu.dll
mov dword [ebp - 0x628], str.System32_vboxoglpassthroughspu.dll
mov dword [ebp - 0x624], str.System32_vboxservice.exe
mov dword [ebp - 0x620], str.System32_vboxtray.exe
mov dword [ebp - 0x61c], str.System32VBoxControl.exe
call fcn.00415ba0
push 0x208
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.00415ba0
add esp, 0x18
mov dword [ebp - 0x618], 0
lea eax, [ebp - 0x614]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
call fcn.00411ce0
test eax, eax
je 0x40ff88
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
push edi
xor edi, edi
nop dword [eax]
nop word [eax + eax]
push dword [ebp + edi*4 - 0x65c]
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x40c]
push eax
call ebx
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.00415ba0
lea eax, [ebp - 0x40c]
push eax
push str.Checking_file__s
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.0040a0a0
add esp, 0x1c
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410007
test al, 0x10
jne 0x410007
mov esi, 1
jmp 0x410009
xor esi, esi
lea eax, [ebp - 0x204]
push eax
push str.____s
call fcn.00409e40
lea eax, [ebp - 0x204]
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410026
sub eax, edx
sar eax, 1
test esi, esi
mov esi, 0x5f
je 0x41005b
sub esi, eax
je 0x410054
push 0x43bb44
call fcn.00409e40
add esp, 4
sub esi, 1
jne 0x410042
mov ecx, 1
jmp 0x410074
sub esi, eax
je 0x410072
nop
push 0x43bb44
call fcn.00409e40
add esp, 4
sub esi, 1
jne 0x410060
xor ecx, ecx
lea edx, [ebp - 0x204]
call fcn.004117e0
inc edi
cmp edi, 0x11
jl 0x40ffa0
call fcn.00411ce0
pop edi
pop esi
pop ebx
test eax, eax
je 0x4100a2
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041396d
mov esp, ebp
pop ebp
ret
Function at 0x4102e0
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x440008]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
push 0x4386b0
lea edx, [esp + 0x20]
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
xor esi, esi
call fcn.004126d0
add esp, 4
test eax, eax
je 0x410476
lea eax, [esp + 0x14]
push str.SELECT__FROM_Win32_BaseBoard
push eax
lea edx, [esp + 0x24]
lea ecx, [esp + 0x20]
call fcn.004127f0
add esp, 8
test eax, eax
je 0x410476
mov ecx, dword [esp + 0x14]
xorps xmm0, xmm0
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], esi
movaps xmmword [esp + 0x20], xmm0
test ecx, ecx
je 0x410456
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ecx]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x14]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [esp + 0x38], 0
je 0x410452
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.Product
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4103df
mov ax, word [esp + 0x20]
cmp ax, 1
je 0x4103df
test al, 8
je 0x4103d8
push 0x43898c
push dword [esp + 0x2c]
call fcn.00414da9
add esp, 8
test eax, eax
mov eax, 1
cmovne esi, eax
lea eax, [esp + 0x20]
push eax
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0
push 0
push edx
xorps xmm0, xmm0
push 0
movaps xmmword [esp + 0x30], xmm0
mov ecx, dword [eax]
push str.Manufacturer
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x410436
mov ax, word [esp + 0x20]
cmp ax, 1
je 0x410436
test al, 8
je 0x41042f
push str.Oracle_Corporation
push dword [esp + 0x2c]
call fcn.00414da9
add esp, 8
test eax, eax
mov eax, 1
cmovne esi, eax
lea eax, [esp + 0x20]
push eax
call edi
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
jne 0x410452
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x410371
jmp 0x410456
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x18]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esp + 0x1c]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.0041396d
mov esp, ebp
pop ebp
ret