joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406378
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 0x40638d
mov dword [edi], edx
mov eax, dword [esp + 0x30]
mov dword [eax], edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4064f1
cmp dword [ebx + 8], 0xffffffff
je 0x4064f1
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.0040654c
mov esi, dword [esp + 0x2c]
jmp 0x4064ae
cmp byte [ebx + 0x435], 0
jne 0x406522
mov ecx, ebx
call fcn.004062c7
mov ecx, eax
test ecx, ecx
jne 0x4063fd
mov ecx, ebx
call fcn.00406342
test al, al
jne 0x4064dc
push 1
jmp 0x4064a8
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 0x406486
cmp dword [esp + 0x34], eax
je 0x406486
push dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov ecx, ebx
call fcn.0040654c
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 0x4064ae
mov ecx, dword [ebx + 0x428]
test ecx, ecx
je 0x4064ae
push eax
push dword [ebx + 0x430]
push dword [ebx + 0x42c]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4064ae
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x4064fd
mov eax, dword [esp + 0x28]
inc eax
mov dword [esp + 0x28], eax
cmp eax, 0x7d0
je 0x40651e
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jne 0x4063cd
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 0x4064f3
push str.raw___read_timeout
lea ecx, [ebx + 0x228]
mov edx, 0xff
call fcn.00403e49
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.00403c67
add esp, 0x14
test esi, esi
je 0x4064b6
push esi
push ebp
push str.raw___read_failed___u_error___zu_bytes_needed
lea eax, [ebx + 0x228]
push 0xff
push eax
call fcn.00403c67
add esp, 0x14
test edi, edi
je 0x406543
mov dword [edi], ebp
mov ecx, ebx
call fcn.00403b0b
jmp 0x4064f1
Function at 0x406585
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 0x40659a
mov dword [esi], edi
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4066d1
cmp dword [ebx + 8], 0xffffffff
je 0x4066d1
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 0x40667c
cmp byte [ebx + 0x435], 0
jne 0x4066a2
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 0x40665e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [esp + 0x24], edi
cmp edi, 0x2733
jne 0x406678
mov esi, dword [esp + 0x14]
inc esi
mov dword [esp + 0x14], esi
cmp esi, 0x7d0
je 0x406674
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
jmp 0x40666c
mov eax, dword [esp + 0x28]
sub ebp, eax
add dword [esp + 0x1c], eax
mov dword [esp + 0x14], edi
test ebp, ebp
jne 0x4065cc
mov edi, dword [esp + 0x24]
test ebp, ebp
jne 0x4066a6
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 0x4066d3
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.00403c67
mov esi, dword [esp + 0x3c]
add esp, 0x10
test esi, esi
je 0x4066ca
mov dword [esi], edi
mov ecx, ebx
call fcn.00403b0b
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4074b0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x444c
call fcn.0041be10
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x240]
mov esi, edx
call fcn.00403638
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.0041cce0
mov eax, dword [esi + 4]
add esp, 0xc
mov dword [esp + 0x10], ebx
mov dword [esi + 8], ebx
test eax, eax
je 0x407502
xor ecx, ecx
mov word [eax], cx
push 0x43
lea eax, [esp + 0x244]
push str.._c:
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 0x407568
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 0x407562
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4076cf
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 0x4076b7
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 0x4076b0
cmp dword [esp + 0x10], 0x28
jb 0x4076b0
mov ebp, 0x100
lea eax, [esp + 0x140]
push ebp
push ebx
push eax
call fcn.0041cce0
push ebp
lea eax, [esp + 0x50]
push ebx
push eax
call fcn.0041cce0
mov eax, dword [esp + 0x47c]
add esp, 0x18
test eax, eax
je 0x407630
lea ecx, [esp + 0x458]
push 0xff
add eax, ecx
push eax
lea eax, [esp + 0x148]
push ebp
push eax
call fcn.00428df3
add esp, 0x10
mov eax, dword [esp + 0x468]
test eax, eax
je 0x407658
lea ecx, [esp + 0x458]
push 0xff
add eax, ecx
push eax
lea eax, [esp + 0x48]
push ebp
push eax
call fcn.00428df3
add esp, 0x10
mov ebp, 0x46fcec
cmp byte [esp + 0x140], bl
je 0x40769b
cmp byte [esp + 0x40], bl
je 0x407689
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 0x4076b0
lea eax, [esp + 0x140]
push eax
push ebp
push esi
call fcn.004011fb
add esp, 0xc
cmp byte [esp + 0x40], bl
je 0x4076b0
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 0x4076cb
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4076cb
cmp word [ecx], bx
jne 0x4076cd
mov al, bl
mov bl, al
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x444c
ret
Function at 0x407f6c
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.00403638
push dword [esp + 0x14]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x407f9a
xor al, al
jmp 0x407fc4
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x407fb8
push dword [esp + 0x14]
push ecx
call fcn.0041eaec
pop ecx
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
jmp 0x407fbd
and dword [esp + 0x10], 0
mov edx, esi
call fcn.00407bae
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4081ca
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x4014
call fcn.0041be10
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 0x4081eb
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 0x40826f
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.0041cce0
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 0x408268
mov eax, dword [esp + 0x10]
cmp eax, 0x28
jb 0x408268
lea edx, [esp + 0x20]
lea ecx, [esp + 0x20]
add edx, eax
add ecx, dword [esp + 0x38]
push edi
call fcn.0040839b
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 0x4089e8
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.00403638
push dword [esp + 0x14]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x408a16
xor al, al
jmp 0x408a40
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x408a34
push dword [esp + 0x14]
push ecx
call fcn.0041eaec
pop ecx
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
jmp 0x408a39
and dword [esp + 0x10], 0
mov edx, esi
call fcn.0040862a
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408a45
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 0x408b1e
push ebx
push edi
push 0
call fcn.0042a818
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 0x408a93
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov ecx, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
jmp 0x408a97
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 str._I64u
push 0xffffffffffffffff
push ebp
push esi
call fcn.00401ea4
add esp, 0x18
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
mov ecx, ebx
call fcn.00403d9d
mov edi, str.SOFTWAREMetaQuotes_Software
test al, al
jne 0x408adc
push ecx
mov edx, edi
mov ecx, ebx
call fcn.00403d45
pop ecx
push ecx
push esi
push ecx
mov ebp, 0x46d090
mov edx, edi
push ebp
mov ecx, ebx
call fcn.00403d10
add esp, 0x10
mov ebx, closesocket
mov ecx, ebx
call fcn.00403d9d
test al, al
jne 0x408b0c
push ecx
mov edx, edi
mov ecx, ebx
call fcn.00403d45
pop ecx
push ecx
push esi
push ecx
push ebp
mov edx, edi
mov ecx, ebx
call fcn.00403d10
add esp, 0x10
pop edi
pop ebx
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x408b72
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 0x408be4
push 3
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x14]
push 4
push eax
call fcn.0042940a
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 0x40952e
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 0x409558
xor edi, edi
cmp word [esi], di
je 0x409558
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40955f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409571
or eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
test bl, 0x10
jne 0x409576
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x409558
jmp 0x40954c
push 0x10
pop eax
jmp 0x40955b
test bl, 1
je 0x409586
xor ebx, 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, ebx
jmp 0x40955b

Function at 0x40975c
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.00408be7
cmp eax, 0x258
jl 0x4097c1
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 0x4097c1
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 0x4097c6
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 0x4097d9
cmp dword [ebp - 8], ebx
je 0x4097d9
mov bl, 1
mov al, bl
jmp 0x4097c3
Function at 0x40e55f
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 closesocket
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 0x40e6ee
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
cmp esi, 0xffffffff
je 0x40e5cc
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40e5cc
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
jmp 0x40e5dd
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.00403a50
test al, al
je 0x40e6df
cmp esi, 0xffffffff
je 0x40e69e
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
test eax, eax
je 0x40e69e
cmp ebp, ebx
ja 0x40e621
cmp edi, 1
jb 0x40e69e
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 0x40e65b
ja 0x40e652
cmp edx, 0xfffffff
jbe 0x40e65b
mov eax, 0xfffffff
mov ecx, ebp
jmp 0x40e661
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 0x40e6af
cmp dword [esp + 0x18], ebx
je 0x40e6af
add ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
adc ecx, ebx
mov dword [esp + 0x34], ecx
cmp ecx, eax
jb 0x40e63a
ja 0x40e6af
cmp ebp, edi
jb 0x40e63a
jmp 0x40e6af
xorps xmm0, xmm0
movlpd qword [esp + 0x28], xmm0
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp ebp, edi
jne 0x40e6df
mov ebp, dword [esp + 0x14]
cmp ecx, ebp
jne 0x40e6df
cmp esi, 0xffffffff
je 0x40e6ca
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.00403a04
mov bl, al
jmp 0x40e6ee
cmp esi, 0xffffffff
je 0x40e6fa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x40e6fa
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 0x40ea0a
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 0x40eade
push 0x250
lea eax, [esp + 0xc]
push 0
push eax
call fcn.0041cce0
add esp, 0xc
lea ecx, [esp + 0x258]
call fcn.004049dc
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 0x40ead3
test byte [esp + 8], 0x10
jne 0x40eab3
lea eax, [esp + 0x34]
push eax
push dword [esi + 0x20]
lea eax, [esp + 0x260]
push 0x470fa8
push eax
call fcn.004011fb
add esp, 0x10
mov ecx, esi
push dword [esp + 0x25c]
call fcn.0040e706
test al, al
je 0x40eab3
push dword [esp + 0x25c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [esi + 0xce79], 0
jne 0x40eacc
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ea70
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 0x40ec5e
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 0x40ee29
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], 0x46fc48
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.0040eb10
mov edi, dword [eax]
test edi, edi
je 0x40ecc3
mov edi, dword [edi]
jmp 0x40ecc5
mov edi, ebx
push 0x471c20
lea ecx, [esp + 0x14]
call fcn.0040eb10
mov eax, dword [eax]
test eax, eax
je 0x40ecdd
mov eax, dword [eax]
jmp 0x40ecdf
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.0040eb82
lea ecx, [esp + 0x1c]
call fcn.0040eb82
test esi, esi
js 0x40ee25
jmp 0x40ee01
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 0x40ee15
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40ee15
cmp dword [esp + 0x18], ebx
je 0x40ee0f
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 0x40ed70
push str.n_a
jmp 0x40edbd
movzx eax, word [esp + 0x20]
cmp eax, 3
je 0x40eda3
mov ecx, ebp
cmp eax, 8
je 0x40ed88
push str.n_a
jmp 0x40edbf
cmp dword [esp + 0x28], ebx
mov eax, 0x471c28
cmovne eax, dword [esp + 0x28]
push eax
call fcn.0040ebb0
push 0x471cb0
jmp 0x40edbd
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push 0x471c30
push eax
call fcn.004011fb
add esp, 0xc
push dword [esp + 0x34]
mov ecx, ebp
call fcn.0040ebb0
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 0x40edd4
sub ecx, edx
sar ecx, 1
lea esi, [esi + ecx*2]
add esi, 2
cmp word [esi], bx
je 0x40edf7
mov ecx, dword [esp + 0x10]
jmp 0x40ed56
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x40ed0f
jmp 0x40ee23
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40ee23
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov bl, 1
mov al, bl
jmp 0x40ee2b
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 0xc
Function at 0x40ee38
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, 0x471cb4
push 0x3fe
push edi
push ebp
mov ecx, closesocket
mov word [edi], ax
call fcn.00403dd1
add esp, 0x10
xor ebx, ebx
test al, al
je 0x40ee78
cmp word [edi], bx
jne 0x40efc1
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 0x40ee98
cmp eax, 0x80010119
jne 0x40ef4b
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 0x40ef4b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40ef4b
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x1c]
mov eax, dword [eax]
push str.ROOTCIMV2
mov esi, dword [eax + 0xc]
call fcn.0040eb10
mov eax, dword [eax]
test eax, eax
je 0x40eee9
mov eax, dword [eax]
jmp 0x40eeeb
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.0040eb82
test esi, esi
js 0x40ef41
cmp dword [esp + 0x14], ebx
je 0x40ef41
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 0x40ef37
push ecx
push ecx
push dword [esp + 0x1c]
mov ecx, edi
call fcn.0040ec5e
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 0x40ef50
sub ecx, edx
sar ecx, 1
je 0x40ef75
cmp word [edi + ecx*2 - 2], 0x7c
jne 0x40ef75
sub ecx, 1
push 0
pop eax
mov word [edi + ecx*2], ax
jne 0x40ef61
mov esi, 0x471cb0
jmp 0x40ef82
push 0x2c
pop ecx
mov word [eax], cx
push esi
push edi
call fcn.0041bfde
pop ecx
pop ecx
test eax, eax
jne 0x40ef7c
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x40ef94
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, closesocket
call fcn.00403ca3
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4