joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406411
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
xor edx, edx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
mov ebx, ecx
test edi, edi
je 0x406426
mov dword [edi], edx
mov eax, dword [esp + 0x30]
mov dword [eax], edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40658a
cmp dword [ebx + 8], 0xffffffff
je 0x40658a
push dword [esp + 0x38]
mov dword [esp + 0x18], edx
mov ebp, edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.004065e5
mov esi, dword [esp + 0x2c]
jmp 0x406547
cmp byte [ebx + 0x435], 0
jne 0x4065bb
mov ecx, ebx
call fcn.00406360
mov ecx, eax
test ecx, ecx
jne 0x406496
mov ecx, ebx
call fcn.004063db
test al, al
jne 0x406575
push 1
jmp 0x406541
mov edx, 0x400000
mov eax, esi
cmp esi, edx
cmova eax, edx
cmp eax, ecx
cmova eax, ecx
mov dword [esp + 0x18], eax
xor eax, eax
push eax
push eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x40]
push eax
push 1
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x40651f
cmp dword [esp + 0x34], eax
je 0x40651f
push dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov ecx, ebx
call fcn.004065e5
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
sub esi, eax
add dword [esp + 0x1c], eax
add dword [ecx], eax
cmp byte [esp + 0x3c], 0
je 0x406547
mov ecx, dword [ebx + 0x428]
test ecx, ecx
je 0x406547
push eax
push dword [ebx + 0x430]
push dword [ebx + 0x42c]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x406547
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x406596
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, 0x7d0
je 0x4065b7
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x406466
mov esi, dword [ebx + 0x448]
mov edi, dword [ebx + 0x44c]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
add eax, esi
mov dword [ebx + 0x450], eax
mov al, 1
adc edx, edi
mov dword [ebx + 0x454], edx
jmp 0x40658c
push str.raw___read_timeout
lea ecx, [ebx + 0x228]
mov edx, 0xff
call fcn.00403ead
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x18
mov eax, dword [ebx + 8]
push dword [esp + 0x18]
lea eax, [ebx + 0x228]
push ebp
push str.raw___receive_failed___u_error___u_bytes_requested
push 0xff
push eax
call fcn.00403ccb
add esp, 0x14
test esi, esi
je 0x40654f
push esi
push ebp
push str.raw___read_failed___u_error___zu_bytes_needed
lea eax, [ebx + 0x228]
push 0xff
push eax
call fcn.00403ccb
add esp, 0x14
test edi, edi
je 0x4065dc
mov dword [edi], ebp
mov ecx, ebx
call fcn.00403b48
jmp 0x40658a
Function at 0x40661e
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ebx, ecx
push edi
xor edi, edi
test esi, esi
je 0x406633
mov dword [esi], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40676a
cmp dword [ebx + 8], 0xffffffff
je 0x40676a
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
test ebp, ebp
je 0x406715
cmp byte [ebx + 0x435], 0
jne 0x40673b
mov esi, dword [ebx + 0x448]
mov dword [esp + 0x28], edi
mov edi, dword [ebx + 0x44c]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
add eax, esi
mov esi, 0x200000
mov dword [ebx + 0x450], eax
mov eax, ebp
adc edx, edi
cmp ebp, esi
mov dword [ebx + 0x454], edx
cmova eax, esi
xor edi, edi
push edi
push edi
push edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x34]
push eax
push 1
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x4066f7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [esp + 0x24], edi
cmp edi, 0x2733
jne 0x406711
mov esi, dword [esp + 0x14]
inc esi
mov dword [esp + 0x14], esi
cmp esi, 0x7d0
je 0x40670d
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
jmp 0x406705
mov eax, dword [esp + 0x28]
sub ebp, eax
add dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
test ebp, ebp
jne 0x406665
mov edi, dword [esp + 0x24]
test ebp, ebp
jne 0x40673f
mov esi, dword [ebx + 0x448]
mov edi, dword [ebx + 0x44c]
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
add eax, esi
mov dword [ebx + 0x450], eax
mov al, 1
adc edx, edi
mov dword [ebx + 0x454], edx
jmp 0x40676c
mov edi, dword [esp + 0x24]
push ebp
push str.raw___send_failed___zu_bytes_needed
lea eax, [ebx + 0x228]
push 0xff
push eax
call fcn.00403ccb
mov esi, dword [esp + 0x3c]
add esp, 0x10
test esi, esi
je 0x406763
mov dword [esi], edi
mov ecx, ebx
call fcn.00403b48
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x407548
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x444c
call fcn.0041ccc0
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x240]
mov esi, edx
call fcn.00403624
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x20]
push 0x4000
rep stosd dword es:[edi], eax
xor ebx, ebx
lea eax, [esp + 0x45c]
push ebx
push eax
call fcn.0041db90
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [esp + 0x10], ebx
mov dword [esi + 8], ebx
test eax, eax
je 0x40759a
xor ecx, ecx
mov word [eax], cx
push 0x43
lea eax, [esp + 0x244]
push 0x46fe88
push eax
call fcn.004011fb
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [esp + 0x25c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
cmp edi, 0xffffffff
je 0x407600
push ebx
lea eax, [esp + 0x14]
push eax
push 0x20
lea eax, [esp + 0x2c]
push eax
push ebx
push ebx
push 0x560000
push edi
call ebp
push edi
test eax, eax
jne 0x4075fa
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407767
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x28]
lea eax, [esp + 0x244]
push str..PHYSICALDRIVE_u
push eax
call fcn.004011fb
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push dword [esp + 0x25c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40774f
push ebx
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ebx
push eax
push 0x4000
lea eax, [esp + 0x464]
mov dword [esp + 0x20], ebx
push eax
push 0xc
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], ebx
push eax
push 0x2d1400
push edi
call ebp
test eax, eax
je 0x407748
cmp dword [esp + 0x10], 0x28
jb 0x407748
mov ebp, 0x100
lea eax, [esp + 0x140]
push ebp
push ebx
push eax
call fcn.0041db90
push ebp
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.0041db90
mov eax, dword [esp + 0x47c]
add esp, 0x18
test eax, eax
je 0x4076c8
lea ecx, [esp + 0x458]
push 0xff
add eax, ecx
push eax
lea eax, [esp + 0x148]
push ebp
push eax
call fcn.00429ca4
add esp, 0x10
mov eax, dword [esp + 0x468]
test eax, eax
je 0x4076f0
lea ecx, [esp + 0x458]
push 0xff
add eax, ecx
push eax
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.00429ca4
add esp, 0x10
mov ebp, 0x46fd84
cmp byte [esp + 0x140], bl
je 0x407733
cmp byte [esp + 0x40], bl
je 0x407721
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x144]
push eax
push str._S__S
push esi
call fcn.004011fb
add esp, 0x10
jmp 0x407748
lea eax, [esp + 0x140]
push eax
push ebp
push esi
call fcn.004011fb
add esp, 0xc
cmp byte [esp + 0x40], bl
je 0x407748
lea eax, [esp + 0x40]
push eax
push ebp
push esi
call fcn.004011fb
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
cmp dword [esi + 8], eax
jb 0x407763
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x407763
cmp word [ecx], bx
jne 0x407765
mov al, bl
mov bl, al
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x444c
ret
Function at 0x408004
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00403624
push dword [esp + 0x14]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x408032
xor al, al
jmp 0x40805c
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x408050
push dword [esp + 0x14]
push ecx
call fcn.0041f99c
pop ecx
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
jmp 0x408055
and dword [esp + 0x10], 0
mov edx, esi
call fcn.00407c46
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x408262
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x4014
call fcn.0041ccc0
push ebx
push ebp
push esi
push edi
mov edi, edx
xor ebp, ebp
mov eax, dword [edi + 4]
mov dword [edi + 8], ebp
test eax, eax
je 0x408283
xor edx, edx
mov word [eax], dx
push ebp
push ebp
push 3
push ebp
push 3
push ebp
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408307
mov ebx, 0x4000
mov dword [esp + 0x10], ebp
push ebx
lea eax, [esp + 0x24]
mov dword [esp + 0x20], ebp
push ebp
push eax
call fcn.0041db90
add esp, 0xc
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ebp
push ebp
push eax
push ebx
lea eax, [esp + 0x2c]
push eax
push 0xc
lea eax, [esp + 0x28]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x408300
mov eax, dword [esp + 0x10]
cmp eax, 0x28
jb 0x408300
lea edx, [esp + 0x20]
lea ecx, [esp + 0x20]
add edx, eax
add ecx, dword [esp + 0x38]
push edi
call fcn.00408433
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4014
ret

Function at 0x408a80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
push esi
mov esi, ecx
lea ecx, [esp + 8]
call fcn.00403624
push dword [esp + 0x14]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x408aae
xor al, al
jmp 0x408ad8
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x408acc
push dword [esp + 0x14]
push ecx
call fcn.0041f99c
pop ecx
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
jmp 0x408ad1
and dword [esp + 0x10], 0
mov edx, esi
call fcn.004086c2
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408add
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, ecx
mov ebp, edx
test esi, esi
je 0x408bb6
push ebx
push edi
push 0
call fcn.0042b6c8
pop ecx
push 2
mov edi, eax
mov ebx, edx
push 8
lea eax, [esp + 0x18]
add edi, 0xab5b7200
push eax
push 0
adc ebx, 0xffffffff
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
je 0x408b2b
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jmp 0x408b2f
mov ecx, dword [esp + 0x10]
and ecx, 0x1ffffff
xor eax, eax
or ecx, ebx
or eax, edi
or ecx, 0x44000000
push ecx
push eax
push 0x46d834
push 0xffffffffffffffff
push ebp
push esi
call fcn.00401ea4
add esp, 0x18
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebx
call fcn.00403e01
mov edi, str.SOFTWAREMetaQuotes_Software
test al, al
jne 0x408b74
push ecx
mov edx, edi
mov ecx, ebx
call fcn.00403da9
pop ecx
push ecx
push esi
push ecx
mov ebp, 0x46d038
mov edx, edi
push ebp
mov ecx, ebx
call fcn.00403d74
add esp, 0x10
mov ebx, SysReAllocStringLen
mov ecx, ebx
call fcn.00403e01
test al, al
jne 0x408ba4
push ecx
mov edx, edi
mov ecx, ebx
call fcn.00403da9
pop ecx
push ecx
push esi
push ecx
push ebp
mov edx, edi
mov ecx, ebx
call fcn.00403d74
add esp, 0x10
pop edi
pop ebx
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x408c0a
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
xor eax, eax
push esi
mov dword [ebp - 4], eax
mov esi, 0x100
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x214]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x408c7c
push 3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0042a2ba
add esp, 0x10
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x214]
push esi
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [ebp - 4]
pop esi
leave
ret
Function at 0x4095c6
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4095f0
xor edi, edi
cmp word [esi], di
je 0x4095f0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4095f7
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409609
or eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
test bl, 0x10
jne 0x40960e
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4095f0
jmp 0x4095e4
push 0x10
pop eax
jmp 0x4095f3
test bl, 1
je 0x40961e
xor ebx, 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebx
jmp 0x4095f3

Function at 0x4097f4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], ebx
call fcn.00408c7f
cmp eax, 0x258
jl 0x409859
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409859
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push str.EnableLUA
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
je 0x40985e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ebx
leave
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 4
jne 0x409871
cmp dword [ebp - 8], ebx
je 0x409871
mov bl, 1
mov al, bl
jmp 0x40985b
Function at 0x40e5f5
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x20
or dword [esp + 0x1c], 0xffffffff
mov eax, ecx
push ebx
push ebp
push esi
push edi
push ecx
push 3
push 3
push SysReAllocStringLen
push dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x3c]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [esp + 0x3c], 0x4679a8
call fcn.00401442
mov esi, dword [esp + 0x2c]
test al, al
je 0x40e784
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
cmp esi, 0xffffffff
je 0x40e662
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40e662
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
jmp 0x40e673
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ecx, edi
mov dword [esp + 0x14], ebp
add ecx, 2
mov eax, ebp
adc eax, ebx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00403a3c
test al, al
je 0x40e775
cmp esi, 0xffffffff
je 0x40e734
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
test eax, eax
je 0x40e734
cmp ebp, ebx
ja 0x40e6b7
cmp edi, 1
jb 0x40e734
mov eax, dword [esp + 0x14]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x34], ecx
mov edx, edi
mov dword [esp + 0x18], ebx
sub edx, ebp
sbb eax, ecx
cmp eax, ebx
jb 0x40e6f1
ja 0x40e6e8
cmp edx, 0xfffffff
jbe 0x40e6f1
mov eax, 0xfffffff
mov ecx, ebp
jmp 0x40e6f7
mov ecx, ebp
mov eax, edi
sub eax, ecx
push ebx
lea edx, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x34]
add eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x34]
test eax, eax
je 0x40e745
cmp dword [esp + 0x18], ebx
je 0x40e745
add ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
adc ecx, ebx
mov dword [esp + 0x34], ecx
cmp ecx, eax
jb 0x40e6d0
ja 0x40e745
cmp ebp, edi
jb 0x40e6d0
jmp 0x40e745
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp ebp, edi
jne 0x40e775
mov ebp, dword [esp + 0x14]
cmp ecx, ebp
jne 0x40e775
cmp esi, 0xffffffff
je 0x40e760
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov eax, dword [esp + 0x24]
mov ecx, eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebp
call fcn.004039f0
mov bl, al
jmp 0x40e784
cmp esi, 0xffffffff
je 0x40e790
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x40e790
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x20
ret 0xc
Function at 0x40eaa0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x660
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x24], 0x10
jbe 0x40eb74
push 0x250
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0041db90
add esp, 0xc
lea ecx, [esp + 0x258]
call fcn.0040491d
push dword [esi + 0x20]
mov eax, ecx
push str._s.
push eax
call fcn.004011fb
add esp, 0xc
lea eax, [esp + 8]
push eax
push dword [esp + 0x260]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40eb69
test byte [esp + 8], 0x10
jne 0x40eb49
lea eax, [esp + 0x34]
push eax
push dword [esi + 0x20]
lea eax, [esp + 0x260]
push 0x470ff8
push eax
call fcn.004011fb
add esp, 0x10
mov ecx, esi
push dword [esp + 0x25c]
call fcn.0040e79c
test al, al
je 0x40eb49
push dword [esp + 0x25c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esi + 0xce81], 0
jne 0x40eb62
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40eb06
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esi + 0x95d8]
mov eax, dword [ecx]
call dword [eax + 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ecf4
Capabilities:
Reference wmi statements

Disassembly:
sub esp, 0x130
push ebx
push ebp
push esi
mov esi, dword [esp + 0x140]
mov ebp, ecx
push edi
test esi, esi
je 0x40eebf
lea eax, [esp + 0x40]
mov dword [esp + 0x3c], 0x80
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x30], 0x46fce0
mov word [esp + 0x40], ax
xor ebx, ebx
mov eax, dword [esi]
push str.SELECT__FROM_Win32_VideoController
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebx
mov eax, dword [eax + 0x50]
mov dword [esp + 0x1c], eax
call fcn.0040eba6
mov edi, dword [eax]
test edi, edi
je 0x40ed59
mov edi, dword [edi]
jmp 0x40ed5b
mov edi, ebx
push 0x471c70
lea ecx, [esp + 0x14]
call fcn.0040eba6
mov eax, dword [eax]
test eax, eax
je 0x40ed73
mov eax, dword [eax]
jmp 0x40ed75
mov eax, ebx
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0x30
push edi
push eax
push esi
call dword [esp + 0x30]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0040ec18
lea ecx, [esp + 0x1c]
call fcn.0040ec18
test esi, esi
js 0x40eebb
jmp 0x40ee97
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov eax, dword [ecx]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
test eax, eax
jne 0x40eeab
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40eeab
cmp dword [esp + 0x18], ebx
je 0x40eea5
lea edi, [esp + 0x20]
mov esi, str.Caption
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ecx]
lea edx, [esp + 0x20]
push ebx
push ebx
push edx
push ebx
push esi
push ecx
call dword [eax + 0x10]
test eax, eax
jns 0x40ee06
push str.n_a
jmp 0x40ee53
movzx eax, word [esp + 0x20]
cmp eax, 3
je 0x40ee39
mov ecx, ebp
cmp eax, 8
je 0x40ee1e
push str.n_a
jmp 0x40ee55
cmp dword [esp + 0x28], ebx
mov eax, 0x471c78
cmovne eax, dword [esp + 0x28]
push eax
call fcn.0040ec46
push 0x471d00
jmp 0x40ee53
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push 0x471c80
push eax
call fcn.004011fb
add esp, 0xc
push dword [esp + 0x34]
mov ecx, ebp
call fcn.0040ec46
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40ee6a
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp word [esi], bx
je 0x40ee8d
mov ecx, dword [esp + 0x10]
jmp 0x40edec
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x40eda5
jmp 0x40eeb9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40eeb9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov bl, 1
mov al, bl
jmp 0x40eec1
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0xc
Function at 0x40eece
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
sub esp, 0x10
xor eax, eax
mov edx, str.SOFTWAREMetaQuotes_Software
push ebx
push ebp
push esi
push edi
push 0x100
mov edi, ecx
mov ebp, 0x471d04
push 0x3fe
push edi
push ebp
mov ecx, SysReAllocStringLen
mov word [edi], ax
call fcn.00403e35
add esp, 0x10
xor ebx, ebx
test al, al
je 0x40ef0e
cmp word [edi], bx
jne 0x40f057
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x40ef2e
cmp eax, 0x80010119
jne 0x40efe1
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push 0x45f8ac
push 1
push ebx
push 0x45f8bc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40efe1
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40efe1
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x1c]
mov eax, dword [eax]
push str.ROOTCIMV2
mov esi, dword [eax + 0xc]
call fcn.0040eba6
mov eax, dword [eax]
test eax, eax
je 0x40ef7f
mov eax, dword [eax]
jmp 0x40ef81
mov eax, ebx
lea ecx, [esp + 0x14]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [esp + 0x38]
call esi
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.0040ec18
test esi, esi
js 0x40efd7
cmp dword [esp + 0x14], ebx
je 0x40efd7
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [esp + 0x30]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x40efcd
push ecx
push ecx
push dword [esp + 0x1c]
mov ecx, edi
call fcn.0040ecf4
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40efe6
sub ecx, edx
sar ecx, 1
je 0x40f00b
cmp word [edi + ecx*2 - 2], 0x7c
jne 0x40f00b
sub ecx, 1
push 0
pop eax
mov word [edi + ecx*2], ax
jne 0x40eff7
mov esi, 0x471d00
jmp 0x40f018
push 0x2c
pop ecx
mov word [eax], cx
push esi
push edi
call fcn.0041ce8e
pop ecx
pop ecx
test eax, eax
jne 0x40f012
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x40f02a
sub esi, ecx
mov edx, str.SOFTWAREMetaQuotes_Software
sar esi, 1
push ecx
lea eax, [esi*2 + 2]
push eax
push edi
push ecx
push ebp
mov ecx, SysReAllocStringLen
call fcn.00403d07
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4