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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff1c4
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, 0x644
push esi
push edi
mov dword [ebp - 0xe24], eax
lea eax, [ebp - 0xe20]
xor esi, esi
push esi
push eax
call fcn.004087d0
lea eax, [ebp - 0x7dc]
mov ebx, 0x3f0
push ebx
push esi
push eax
call fcn.004087d0
lea eax, [ebp - 0xe34]
push 0x10
push esi
push eax
call fcn.004087d0
sub esp, 0xffffffdc
lea eax, [ebp - 0xe38]
push esi
push eax
push edi
lea eax, [ebp - 0xe20]
push eax
push dword [ebp - 0xe24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
je 0x4039d9
push 0x41bc34
push 0x20000
push esi
push esi
push 0xa
call dword [sym.imp.CRYPT32.dll_CertOpenStore]
cmp eax, esi
je 0x403943
lea ecx, [ebp - 0xa10]
lea edi, [ebp - 0xc18]
push ecx
push edi
lea ecx, [ebp - 0xe20]
push ecx
push eax
call fcn.004035c5
mov dword [ebp - 0xe34], eax
sub esp, 0xfffffff0
lea edi, [ebp - 0xe28]
push edi
lea edi, [ebp - 0xe2c]
push edi
lea eax, [ebp - 0xe30]
push eax
push esi
push 4
push dword [ebp - 0xe34]
call dword [sym.imp.CRYPT32.dll_CryptAcquireCertificatePrivateKey]
test eax, eax
je 0x4039b8
lea eax, [ebp - 0xe34]
xor edi, edi
inc edi
push edi
push eax
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x804]
push eax
push dword [ebp - 0x7e0]
call fcn.0040378f
sub esp, 0xffffffec
cmp eax, esi
je 0x4039b8
push eax
mov dword [ebp - 0x3f0], eax
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x7d8]
push eax
mov dword [ebp - 0x7dc], edi
call fcn.00408d60
jmp 0x4039d6
lea eax, [ebp - 0x7d8]
push 0x3e8
push esi
push eax
mov dword [ebp - 0x7dc], esi
mov dword [ebp - 0x3f0], esi
call fcn.004087d0
sub esp, 0xfffffff4
lea edi, [ebp - 0xe3c]
lea eax, [ebp - 0x7dc]
push esi
push edi
push ebx
push eax
push dword [ebp - 0xe24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.0040884a
leave
ret
Function at 0x403a04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x608
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3e8
push eax
mov word [ebp - 0x5fc], ax
lea eax, [ebp - 0x5fa]
push eax
call fcn.004087d0
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004087d0
lea eax, [ebp - 0x5fc]
push str.SoftwareMicrosoftWindowsCurrentVersion
push eax
call fcn.0040888a
add esp, 0x20
lea eax, [ebp - 0x600]
push eax
lea eax, [ebp - 0x5fc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
or eax, eax
je 0x403a83
xor eax, eax
inc eax
jmp 0x403af4
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x608]
push eax
push 0
push str.ProgramFilesDir
push dword [ebp - 0x600]
mov dword [ebp - 0x604], 0x209
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x600]
test eax, eax
je 0x403ac7
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403a7e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x210]
push str.VMwareSSL_VPN_Plus_Client
push eax
call fcn.00408859
lea eax, [ebp - 0x210]
push eax
push 0x423828
call fcn.0040888a
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040884a
leave
ret

Function at 0x403b00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x494
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ebx
push edi
xor eax, eax
push 0x208
mov word [ebp - 0x440], ax
xor edi, edi
lea eax, [ebp - 0x43e]
push edi
push eax
call fcn.004087d0
xor eax, eax
push 0x22e
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x232]
push edi
push eax
call fcn.004087d0
push 0x44
pop esi
push esi
lea eax, [ebp - 0x494]
push edi
push eax
call fcn.004087d0
push 0x10
lea eax, [ebp - 0x450]
push edi
push eax
call fcn.004087d0
mov dword [ebp - 0x494], esi
mov dword [ebp - 0x468], edi
call fcn.00403a04
mov esi, 0x423828
lea eax, [ebp - 0x440]
push esi
push eax
call fcn.0040888a
lea eax, [ebp - 0x440]
push 0x41bd08
push eax
call fcn.00408859
sub esp, 0xffffffc0
mov ebx, 0x41bd04
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.0040888a
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00408859
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.00408859
lea eax, [ebp - 0x234]
push str._disconnect
push eax
call fcn.00408859
add esp, 0x20
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x494]
push eax
push esi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403c38
push dword [ebp - 0x44c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x4e20
push dword [ebp - 0x450]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x450]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0040884a
leave
ret
Function at 0x403cd2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb68
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push esi
mov dword [ebp - 0x444], eax
xor ebx, ebx
push 0x208
mov word [ebp - 0x440], bx
xor ebx, ebx
lea eax, [ebp - 0x43e]
push ebx
push eax
call fcn.004087d0
xor eax, eax
push 0x22e
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x232]
push ebx
push eax
call fcn.004087d0
push 0x44
pop esi
push esi
lea eax, [ebp - 0x498]
push ebx
push eax
call fcn.004087d0
push 0x10
lea eax, [ebp - 0x454]
push ebx
push eax
call fcn.004087d0
mov dword [ebp - 0x498], esi
mov dword [ebp - 0x46c], ebx
call fcn.00403a04
push 0x423828
mov edi, 0x104
lea eax, [ebp - 0x440]
push edi
push eax
call fcn.004089fe
push 0x41bd08
lea eax, [ebp - 0x440]
push edi
push eax
call fcn.0040a2b5
sub esp, 0xffffffb8
mov esi, 0x41bd04
push esi
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.004089fe
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.0040a2b5
push esi
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.0040a2b5
push str._connect
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.0040a2b5
push str.__c
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.0040a2b5
push esi
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.0040a2b5
add esp, 0x48
push dword [ebp - 0x444]
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.0040a2b5
push esi
lea eax, [ebp - 0x234]
push edi
push eax
call fcn.0040a2b5
add esp, 0x18
lea esi, [ebp - 0x454]
push esi
lea esi, [ebp - 0x498]
push esi
push 0x423828
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x234]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0040884a
leave
ret

Function at 0x403e49
Capabilities:
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ebx
mov ebx, dword [ebp + 8]
mov edi, 0x61c
xor esi, esi
push edi
lea eax, [ebp - 0x620]
push esi
push eax
mov dword [ebp - 0x624], esi
call fcn.004087d0
add esp, 0xc
push esi
lea eax, [ebp - 0x628]
push eax
push edi
lea eax, [ebp - 0x620]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403ef5
lea eax, [ebp - 0x624]
push eax
push 0xf003f
push esi
push str.SoftwareVMware__Inc.SSL_VPN_Plus_Client
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or eax, eax
jne 0x403ef5
lea eax, [ebp - 0x620]
push eax
call fcn.00409447
lea eax, [eax + eax + 2]
pop ecx
push eax
lea eax, [ebp - 0x620]
push eax
push 1
push esi
push str.StartWithProfile
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x624]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
pop esi
call fcn.0040884a
leave
ret
Function at 0x403f04
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
push esi
xor edi, edi
mov esi, dword [ebp + 8]
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
mov dword [ebp - 0x210], edi
call fcn.004087d0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push GetStdHandle
push edi
push str.SoftwareVMware__Inc.SSL_VPN_Plus_Client
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x208
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x403fb9
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push str.StartWithProfile
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x403fb9
lea eax, [ebp - 0x20c]
push eax
call fcn.00409447
test eax, eax
pop ecx
je 0x403fb9
cmp esi, edi
je 0x403fb6
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0040888a
pop ecx
pop ecx
xor edi, edi
inc edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop edi
call fcn.0040884a
leave
ret

Function at 0x404006
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
xor ebx, ebx
push ebx
lea esi, [ebp - 8]
push esi
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
jne 0x404099
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xea
jne 0x40409f
cmp dword [ebp - 4], ebx
je 0x40409f
lea eax, [ebp - 8]
push ebx
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x40409f
call esi
cmp eax, 0xea
jne 0x40409f
mov esi, dword [ebp - 4]
imul esi, esi, 0x24
push esi
call fcn.0040987c
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
je 0x40409f
push ebx
lea ecx, [ebp - 8]
push ecx
push esi
push eax
push dword [ebp + 8]
call edi
test eax, eax
je 0x40409f
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00401f91
sub esp, 0xfffffff4
jmp 0x40409f
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4040fe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
lea ecx, [ebp - 0x40]
push ecx
push 0x38
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404145
cmp dword [ebp - 0x40], 0x38
jne 0x404145
sub esp, 0x38
lea esi, [ebp - 0x3c]
push 0xe
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.004026ce
add esp, 0x38
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
call fcn.0040884a
leave
ret
Function at 0x404153
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0
lea ecx, [ebp - 0x40]
push ecx
push 0x38
lea ecx, [ebp - 0x3c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40419a
cmp dword [ebp - 0x40], 0x38
jne 0x40419a
lea esi, [ebp - 0x3c]
sub esp, 0x38
push 0xe
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00402707
add esp, 0x38
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
call fcn.0040884a
leave
ret

Function at 0x404419
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push eax
push 0x4043c5
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret

Function at 0x404893
Capabilities:
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
mov eax, dword [0x421130]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ebx
push 0x2000
call fcn.0040987c
mov ebx, eax
xor esi, esi
pop ecx
cmp ebx, esi
je 0x404923
push edi
mov edi, 0xf003f
push edi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, esi
mov dword [ebp - 0x24], eax
jne 0x4048d7
push ebx
call fcn.00409842
pop esi
jmp 0x404922
push 0x1000
push ebx
push 0xffffffffffffffff
push str.Dnscache
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
or eax, eax
je 0x404922
push edi
push ebx
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
push ebx
call fcn.00409842
cmp edi, esi
pop ecx
je 0x404922
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
or eax, eax
je 0x404922
push esi
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
pop edi
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
pop esi
call fcn.0040884a
leave
ret
Function at 0x406089
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 4
mov eax, 0x41a42f
call fcn.00409dce
mov edi, dword [ebp + 8]
push edi
push 0x41e540
push 1
xor esi, esi
push esi
push 0x41e610
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x40611f
cmp dword [edi], esi
je 0x40612b
push str.ROOTCIMV2
lea ecx, [ebp - 0x10]
call fcn.00404c0a
mov eax, dword [eax]
cmp eax, esi
mov dword [ebp - 4], esi
je 0x4060d0
mov ecx, dword [eax]
jmp 0x4060d2
xor ecx, ecx
push dword [ebp + 0xc]
mov eax, dword [edi]
mov edx, dword [eax]
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
mov ebx, eax
cmp ecx, esi
je 0x4060f9
call fcn.00404c57
mov dword [ebp - 0x10], esi
cmp ebx, esi
jl 0x40611f
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, esi
je 0x40611f
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
or eax, eax
js 0x40611f
xor eax, eax
jmp 0x40613d
mov edi, dword [edi]
cmp edi, esi
je 0x40612b
mov eax, dword [edi]
push edi
call dword [eax + 8]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
cmp eax, esi
je 0x40613a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
call fcn.00409e6d
ret
Function at 0x406143
Capabilities:
Reference wmi statements

Disassembly:
push 0x30
mov eax, 0x41a45a
call fcn.00409dce
lea eax, [ebp - 0x18]
push eax
xor esi, esi
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
call fcn.00406089
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
cmp eax, 1
jne 0x40617f
xor eax, eax
inc eax
jmp 0x4062e0
push str.SELECT__FROM_Win32_NetworkAdapterConfiguration
lea ecx, [ebp - 0x2c]
call fcn.00404bbd
mov edi, eax
push 0x41be84
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.00404bbd
mov ecx, dword [edi]
mov byte [ebp - 4], 1
cmp ecx, esi
je 0x4061ac
mov ecx, dword [ecx]
jmp 0x4061ae
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x4061b8
mov edx, dword [eax]
jmp 0x4061ba
xor edx, edx
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
lea ebx, [ebp - 0x10]
push ebx
push esi
push 0x30
push ecx
push edx
push eax
call dword [edi + 0x50]
mov edi, eax
mov ecx, dword [ebp - 0x28]
cmp ecx, esi
je 0x4061dd
call fcn.00404c57
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 0x2c]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x4061f0
call fcn.00404c57
mov dword [ebp - 0x2c], esi
cmp edi, esi
jge 0x40620d
push dword [ebp - 0x10]
push esi
push esi
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call fcn.00404931
add esp, 0x18
jmp 0x406177
cmp dword [ebp - 0x10], esi
je 0x4062c7
xor edi, edi
inc edi
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push edi
push 0xffffffffffffffff
push dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov eax, dword [eax]
call dword [eax + 0x10]
cmp dword [ebp - 0x20], esi
je 0x4062c7
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x3c]
push esi
push esi
push edx
push esi
push str.Caption
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x406271
push 0x41bdc8
push dword [ebp - 0x34]
call fcn.00409791
pop ecx
test eax, eax
pop ecx
jne 0x406282
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x10], esi
jne 0x406219
jmp 0x4062c7
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push esi
push esi
push edx
push esi
push str.DNSDomainSuffixSearchOrder
push eax
call dword [ecx + 0x10]
or eax, eax
js 0x4062c4
cmp word [ebp - 0x3c], di
je 0x4062c7
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
cmp dword [ebp + 0x10], edi
jne 0x4062b7
call fcn.00404a2e
jmp 0x4062bc
call fcn.00404afc
sub esp, 0xfffffff4
mov dword [ebp - 0x1c], eax
jmp 0x4062c7
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x10]
push esi
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call fcn.00404931
add esp, 0x18
mov eax, dword [ebp - 0x1c]
call fcn.00409e6d
ret
Function at 0x4062e6
Capabilities:
Reference absolute stream path on windows

Disassembly:
push 0x240
mov eax, 0x41a480
call fcn.00409e37
mov eax, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], esi
call fcn.00406089
pop ecx
pop ecx
cmp eax, 1
jne 0x406346
push esi
push esi
push esi
push esi
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
call fcn.00404931
xor eax, eax
add esp, 0x18
inc eax
jmp 0x406504
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call fcn.004087d0
push str.._rootCIMV2:Win32_NetworkAdapterConfiguration
lea eax, [ebp - 0x218]
push 0x41b76c
push eax
call fcn.00404804
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call edi
push str.SetDNSSuffixSearchOrder
mov dword [ebp - 0x238], eax
call edi
push str.Win32_NetworkAdapterConfiguration
mov ebx, eax
call edi
mov ecx, dword [ebp - 0x21c]
push esi
lea edi, [ebp - 0x224]
push edi
push esi
push esi
push eax
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x230], esi
mov edx, dword [ecx]
push ecx
call dword [edx + 0x18]
push esi
or eax, eax
jns 0x4063e0
push esi
push esi
push dword [ebp - 0x224]
jmp 0x40632a
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x228]
mov ecx, dword [eax]
push edx
push esi
push ebx
push eax
call dword [ecx + 0x4c]
test eax, eax
jns 0x406403
push esi
push esi
push dword [ebp - 0x228]
jmp 0x4063d5
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x22c]
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x3c]
push esi
test eax, eax
jns 0x406424
push dword [ebp - 0x22c]
jmp 0x4063fb
push dword [ebp - 0x23c]
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
push esi
push str.DNSDomainSuffixSearchOrder
push eax
call dword [ecx + 0x14]
test eax, eax
push esi
js 0x40641c
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax]
push edx
push dword [ebp - 0x22c]
push esi
push esi
push ebx
push dword [ebp - 0x238]
push eax
call dword [ecx + 0x60]
cmp eax, esi
jge 0x40646a
push esi
jmp 0x40641c
push str.ReturnValue
lea ecx, [ebp - 0x234]
call fcn.00404c0a
mov eax, dword [eax]
cmp eax, esi
mov dword [ebp - 4], esi
je 0x406487
mov ecx, dword [eax]
jmp 0x406489
xor ecx, ecx
lea edi, [ebp - 0x24c]
mov eax, dword [ebp - 0x230]
mov edx, dword [eax]
push esi
push esi
push edi
push esi
push ecx
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0x234]
mov edi, eax
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x4064bb
call fcn.00404c57
mov dword [ebp - 0x234], esi
push esi
push dword [ebp - 0x22c]
cmp edi, esi
push dword [ebp - 0x228]
push dword [ebp - 0x224]
push dword [ebp - 0x21c]
push dword [ebp - 0x220]
jl 0x406336
mov edi, dword [ebp - 0x244]
call fcn.00404931
add esp, 0x18
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
cmp edi, esi
setne al
call fcn.00409e81
ret
Function at 0x406543
Capabilities:
Reference wmi statements

Disassembly:
push 0x2c
mov eax, 0x41a4b8
call fcn.00409dce
lea eax, [ebp - 0x18]
xor esi, esi
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
call fcn.00406089
pop ecx
pop ecx
cmp eax, 1
jne 0x40657c
xor eax, eax
inc eax
jmp 0x4066d9
push str.SELECT__FROM_Win32_NetworkAdapterConfiguration
lea ecx, [ebp - 0x28]
call fcn.00404bbd
mov edi, eax
push 0x41be84
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], esi
call fcn.00404bbd
mov ecx, dword [edi]
mov byte [ebp - 4], 1
cmp ecx, esi
je 0x4065a9
mov ecx, dword [ecx]
jmp 0x4065ab
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x4065b5
mov edx, dword [eax]
jmp 0x4065b7
xor edx, edx
lea ebx, [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
push ebx
push esi
push 0x30
push ecx
push edx
push eax
call dword [edi + 0x50]
mov ecx, dword [ebp - 0x24]
cmp ecx, esi
mov edi, eax
je 0x4065da
call fcn.00404c57
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x4065ed
call fcn.00404c57
mov dword [ebp - 0x28], esi
cmp edi, esi
jge 0x406691
push dword [ebp - 0x10]
push esi
push esi
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.00404931
sub esp, 0xffffffe8
jmp 0x406574
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 1
push 0xffffffffffffffff
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
mov eax, dword [eax]
call dword [eax + 0x10]
cmp dword [ebp - 0x1c], esi
je 0x4066c1
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
push esi
push esi
push edx
push esi
push str.Caption
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x406687
push 0x41bdc8
push dword [ebp - 0x30]
call fcn.00409791
pop ecx
pop ecx
or eax, eax
je 0x406687
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push esi
push esi
push edx
push esi
push str.DNSDomain
push eax
call dword [ecx + 0x10]
or eax, eax
js 0x406687
cmp word [ebp - 0x38], 1
jne 0x40669c
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [ebp - 0x10], esi
jne 0x40660e
jmp 0x4066c1
push 0x200
call fcn.0040987c
cmp eax, esi
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
je 0x4066c1
push dword [ebp - 0x30]
push 0x100
push eax
call fcn.004089fe
add esp, 0xc
push dword [ebp - 0x10]
push esi
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x20]
call fcn.00404931
sub esp, 0xffffffe8
xor eax, eax
call fcn.00409e6d
ret