joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445b00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af0b1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4e006c]
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 ebx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
call fcn.00403b50
mov ecx, eax
test ecx, ecx
je 0x445ca1
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
push 0
push 0
push 0x4b452c
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
or edi, 0xffffffff
test eax, eax
jne 0x445c5b
mov edx, dword [ebp - 0x18]
test edx, edx
jne 0x445b8c
xor ecx, ecx
jmp 0x445ba0
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445b91
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.00415a50
push dword [ebp - 0x18]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov eax, dword [esi - 0xc]
lea ecx, [eax - 1]
test ecx, ecx
js 0x445c97
cmp ecx, eax
jg 0x445c97
cmp word [esi + ecx*2], 0x5c
jne 0x445be8
push 1
push ecx
lea ecx, [ebp - 0x14]
call fcn.0044af50
mov esi, dword [ebp - 0x14]
mov eax, dword [ebx]
mov edx, dword [esi - 0xc]
cmp dword [eax - 0xc], edx
jl 0x445c26
push edx
push 0
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.0043a6f0
mov byte [ebp - 4], 3
mov dword [ebp - 0x1c], 1
test esi, esi
je 0x445cab
push esi
push dword [eax]
call fcn.0048e3fb
add esp, 8
test eax, eax
jne 0x445c26
mov bl, 1
jmp 0x445c28
xor bl, bl
mov dword [ebp - 4], 1
test byte [ebp - 0x1c], 1
je 0x445c53
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x445c53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x445c5b
mov bl, 1
jmp 0x445c5d
xor bl, bl
add esi, 0xfffffff0
mov dword [ebp - 4], 6
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x445c79
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0046a0e8
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00403cc0
push 0x80004005
call fcn.00403cc0
push 0x80004005
call fcn.00403cc0
int3
Function at 0x44b7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af577
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4e006c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push 0x48
call fcn.0046a617
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
lea esi, [edi + 0xc]
mov dword [edi + 4], 1
lea ecx, [esi + 4]
mov dword [edi + 8], 1
xor eax, eax
mov dword [edi], vtable.std::_Ref_count_obj_class_MBAMService_.0
mov dword [esi], vtable.MBAMService.0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov dword [ebp - 0x14], esi
mov word [ecx], ax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x38], eax
push 0xb
mov byte [ebp - 4], 8
push str.MBAMService
mov byte [esi + 0x34], 1
call fcn.00407d50
xorps xmm0, xmm0
mov eax, ebx
movq qword [ebx], xmm0
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e790
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x116c
call fcn.0046b3f0
mov eax, dword [0x4e006c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, ecx
push esi
mov ecx, dword [eax + 8]
cmp ecx, 0xfffffffe
je 0x44e7be
cmp ecx, 0xfffffffc
jne 0x44e9ca
mov ecx, dword [eax]
cmp ecx, dword [edx + 0x24]
jne 0x44e979
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xorps xmm0, xmm0
movq qword [ebp - 0xa8], xmm0
mov dword [ebp - 0xa0], 0
movq qword [ebp - 0x84], xmm0
mov dword [ebp - 0x7c], 0
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0xb0], 0x4cbe14
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x8c], vtable.CMBImageCtrl.0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x58], vtable.CMBImageCtrl.0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov eax, dword [ebp - 0x9c]
test eax, eax
jne 0x44e8f4
call fcn.00469f48
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x44e8f4
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0xb0]
call fcn.0044e9e0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046a0e8
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push eax
call fcn.0046a04a
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xa8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x4e140c
mov dword [ebp - 0xa4], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4e1424]
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa8]
push 0x4e140c
mov dword [0x4e1424], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x417200
push esi
push 0x82
push dword [0x4e4b60]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0xb0]
call fcn.0044e9e0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046a0e8
mov esp, ebp
pop ebp
ret 0x10
cmp ecx, dword [edx + 0x130]
jne 0x44e9ca
add eax, 0xc
push 0x10b8
push eax
lea eax, [ebp - 0x1168]
push eax
call fcn.00481c10
mov eax, dword [ebp - 0x1164]
add esp, 0xc
test eax, eax
jne 0x44e9ae
push 1
push eax
push eax
push str.https:__www.malwarebytes.com_eula_
jmp 0x44e9bd
cmp eax, 1
jne 0x44e9ca
push eax
push 0
push 0
push str.https:__www.malwarebytes.com_legal_privacy_policy
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0046a0e8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x44ff90
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4e006c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x450048
push 0x228
lea eax, [ebp - 0x234]
push ebx
push eax
call fcn.00482710
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45002f
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp - 0x230], edi
je 0x450027
lea eax, [ebp - 0x238]
push eax
push esi
call ebx
test eax, eax
jne 0x44fff5
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046a0e8
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x220]
jmp 0x45000d
push str.Process32First___failed
mov edx, 0x75
mov ecx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetup_setuputils.cpp
call fcn.004433b0
add esp, 4
jmp 0x45000d
push str.CreateToolhelp32Snapshot___failed
mov edx, 0x7c
mov ecx, str.d:jenkinsworkspace_a_mb4_mbsetup_srcmbsetup_setuputils.cpp
call fcn.004433b0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0046a0e8
mov esp, ebp
pop ebp
ret
Function at 0x46d237
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x498b58
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004987ff

Function at 0x498b63
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00498989
Function at 0x40358c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403624
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403604
xor eax, eax
push ebp
push 0x4035fd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403640
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403604
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x409014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403ef0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x403f51
cmp word [0x40a218], 0xd7b2
jne 0x403f19
cmp dword [0x40a220], 0
jbe 0x403f19
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x409060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f78
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x409020], 0
jne 0x403f6d
push 0
push 0x409058
push 0x409060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404cc4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404d2a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004042bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f84
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404d14
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404d31
lea eax, [ebp - 0x10]
call fcn.00404074
ret

Function at 0x406b0c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406b45
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404164
jmp 0x406b4e
mov eax, ebx
mov edx, esi
call fcn.004040c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406b58
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406b79
mov al, byte [esp]
jmp 0x406b7b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x407210
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x407078
mov eax, dword [0x4093b0]
cmp byte [eax], 0
je 0x40728c
mov eax, dword [0x409304]
call fcn.00402d48
call fcn.004029a8
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405fe0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4072d4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4072c2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.00404694
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x407cb0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407d14
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004042bc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405ea8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d1b
lea eax, [ebp - 0xc]
call fcn.00404074
ret
Function at 0x404e1e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xffff
and eax, 0xffff
and eax, 0xff
mov byte [ebp - 0xc], al
mov ecx, dword [ebp - 8]
and ecx, 0xffff
and ecx, 0xffff
shr ecx, 8
mov byte [ebp - 4], cl
mov edx, dword [ebp - 8]
and edx, 0x80000000
test edx, edx
je 0x404f3e
mov eax, dword [ebp - 0xc]
and eax, 0xff
cmp eax, 4
jne 0x404f3c
mov ecx, dword [ebp - 4]
and ecx, 0xff
test ecx, ecx
je 0x404e94
mov edx, dword [ebp - 4]
and edx, 0xff
cmp edx, 0xa
jne 0x404e9e
mov eax, 1
jmp 0x404f63
mov eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0x5a
jne 0x404f3c
cmp dword [0x48652c], 0
je 0x404ec1
cmp dword [0x486528], 0
jne 0x404f35
push 0x47112c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x475dac], eax
cmp dword [0x475dac], 0
jne 0x404ee2
or eax, 0xffffffff
jmp 0x404f63
push 0x471138
mov ecx, dword [0x475dac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48652c], eax
push 0x471150
mov edx, dword [0x475dac]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x486528], eax
cmp dword [0x48652c], 0
je 0x404f22
cmp dword [0x486528], 0
jne 0x404f35
mov eax, dword [0x475dac]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xfffffffe
jmp 0x404f63
mov eax, 2
jmp 0x404f63
jmp 0x404f61
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
cmp ecx, 5
je 0x404f5a
mov edx, dword [ebp - 0xc]
and edx, 0xff
cmp edx, 6
jne 0x404f61
mov eax, 3
jmp 0x404f63
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40515c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 0x10], 0x30
mov byte [ebp - 0xf], 0x31
mov byte [ebp - 0xe], 0x32
mov byte [ebp - 0xd], 0x33
mov byte [ebp - 0xc], 0x34
mov byte [ebp - 0xb], 0x35
mov byte [ebp - 0xa], 0x36
mov byte [ebp - 9], 0x37
mov byte [ebp - 8], 0x38
mov byte [ebp - 7], 0x39
mov byte [ebp - 6], 0x41
mov byte [ebp - 5], 0x42
mov byte [ebp - 4], 0x43
mov byte [ebp - 3], 0x44
mov byte [ebp - 2], 0x45
mov byte [ebp - 1], 0x46
mov eax, dword [ebp + 8]
and eax, 0xff
sar eax, 4
mov cl, byte [ebp + eax - 0x10]
mov byte [0x486300], cl
mov edx, dword [ebp + 8]
and edx, 0xff
and edx, 0xf
mov al, byte [ebp + edx - 0x10]
mov byte [0x486301], al
mov byte [0x486302], 0
mov esp, ebp
pop ebp
ret
Function at 0x407ce0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov dword [ebp - 4], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x13c], 0x128
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x407db5
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
lea eax, [ebp - 0x118]
push eax
push 0x471164
lea ecx, [ebp - 0x33c]
push ecx
call fcn.00419571
add esp, 0xc
push str.Rundll32.exe
lea edx, [ebp - 0x33c]
push edx
call fcn.00421440
add esp, 8
test eax, eax
jne 0x407d9d
mov eax, dword [ebp - 0x134]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x340], eax
push 0
mov edx, dword [ebp - 0x340]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x13c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x14], eax
jmp 0x407d20
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x4125ce
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x434fc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
cmp dword [0x47179c], 0xffffffff
je 0x41260a
mov eax, dword [0x47179c]
jmp 0x412711
movsx eax, byte [ebp + 8]
push eax
push str._1C:_
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00419571
add esp, 0xc
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 2
je 0x41263b
or eax, 0xffffffff
jmp 0x412711
movsx eax, byte [ebp + 8]
push eax
push str.._1C:
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00419571
add esp, 0xc
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x14], 0xc0000000
mov dword [ebp - 0x24], 0xffffffff
push 0
push 0x20000000
push 3
push 0
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x18]
call fcn.0040e570
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [0x47179c]
push eax
push str.open_handle:_mHandle:__p__hDev:__p_r_n
lea ecx, [ebp - 0x18]
push ecx
call fcn.0042bed2
add esp, 0x10
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x24], 0xffffffff
jne 0x4126f9
cmp dword [ebp - 0x1c], 0xc8
jge 0x4126f9
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x20000000
push 3
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x24], eax
jmp 0x4126b7
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0042c617
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x415aa0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
and eax, 0xffff
and eax, 0xffff
and eax, 0xff
mov byte [ebp - 0xc], al
mov ecx, dword [ebp - 8]
and ecx, 0xffff
and ecx, 0xffff
shr ecx, 8
mov byte [ebp - 4], cl
mov edx, dword [ebp - 8]
and edx, 0x80000000
test edx, edx
je 0x415ba8
mov eax, dword [ebp - 0xc]
and eax, 0xff
cmp eax, 4
jne 0x415ba6
mov ecx, dword [ebp - 4]
and ecx, 0xff
test ecx, ecx
je 0x415b16
mov edx, dword [ebp - 4]
and edx, 0xff
cmp edx, 0xa
jne 0x415b20
mov eax, 1
jmp 0x415bcd
mov eax, dword [ebp - 4]
and eax, 0xff
cmp eax, 0x5a
jne 0x415ba6
cmp dword [0x4966f0], 0
je 0x415b3f
cmp dword [0x4966ec], 0
jne 0x415b9f
push str.WNASPI32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x415b57
xor eax, eax
jmp 0x415bcd
push str.GetASPI32SupportInfo
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4966f0], eax
push str.SendASPI32Command
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4966ec], eax
cmp dword [0x4966f0], 0
je 0x415b91
cmp dword [0x4966ec], 0
jne 0x415b9f
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x415bcd
mov eax, 2
jmp 0x415bcd
jmp 0x415bcb
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
cmp ecx, 5
je 0x415bc4
mov edx, dword [ebp - 0xc]
and edx, 0xff
cmp edx, 6
jne 0x415bcb
mov eax, 3
jmp 0x415bcd
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x428ec0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x154
push ebx
push esi
push edi
push ebp
mov edi, dword [esp + 0x168]
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
push edi
and eax, 0x20
and ebx, 0x1f
mov ebp, dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x24], eax
call ebp
mov esi, dword [esp + 0x16c]
push 2
mov dword [esp + 0x20], eax
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [esp + 0x44]
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
push eax
push edi
call ebp
mov ebp, dword [esp + 0x48]
lea edx, [esp + 0x44]
lea ecx, [esp + 0x34]
mov eax, dword [edx]
push 0
push 0
push 0x31
mov dword [ecx], eax
mov eax, dword [edx + 8]
push edi
mov edx, dword [edx + 0xc]
mov dword [ecx + 4], ebp
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x428f51
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x10], eax
push 0xf
mov ebp, dword [sym.imp.USER32.dll_GetSysColor]
call ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0x12
call ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [esp + 0x1c]
push edi
push esi
push 0x135
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
push eax
mov ebp, dword [sym.imp.GDI32.dll_IntersectClipRect]
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
push esi
call ebp
mov ebp, dword [esp + 0x170]
test ebp, 0x10
je 0x428fe6
cmp ebx, 7
je 0x428fe6
mov eax, dword [esp + 0x40]
push 0xf00021
sub eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
push eax
push ecx
push edx
push esi
Function at 0x429e60
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00419a10
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x429f2b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x429f2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x429ede
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x429ee9
or bh, 8
and edi, 0x8000000
je 0x429f04
mov eax, dword [0x49a53c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x429f2b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret