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

Disassembly:
push 0xffffffffffffffff
push 0x414948
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
jne 0x4043ea
push esi
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_3
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0x41c110
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::operator
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4043d1
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
test eax, eax
je 0x4043d1
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x70], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x404400
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x210
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x404462
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [esp + 0x220]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x210
ret 0xc
Function at 0x404690
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
push eax
mov ecx, dword [ebp + 8]
push 0
push 0
push ecx
push 0x41c070
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, eax
cmp esi, 0x20
ja 0x4047f1
lea edx, [ebp - 0x410]
mov ecx, edi
push edx
push 0x41c48c
push SysReAllocString
call fcn.00404400
test eax, eax
jne 0x4047f1
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x410]
push 0x41c464
push eax
call ebx
lea ecx, [ebp - 0x410]
lea edx, [ebp - 0x410]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.00404400
test eax, eax
jne 0x4047f1
mov edi, dword [sym.imp.MSVCRT.dll_wcsstr]
lea eax, [ebp - 0x410]
push 0x41c458
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x404762
lea ecx, [ebp - 0x410]
push 0x41c450
push ecx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x404762
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [ebp + eax*2 - 0x412]
jmp 0x404767
mov word [esi], 0
push 0x41c088
push esi
call ebx
mov eax, dword [ebp + 8]
push eax
push esi
call ebx
lea ecx, [ebp - 0x410]
test ecx, ecx
jne 0x40479c
mov ecx, dword [ebp + 0xc]
xor esi, esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
lea esp, [ebp - 0x41c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00413610
mov esi, esp
push 0
push 0
push edi
push esi
lea eax, [ebp - 0x410]
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WinExec]
lea esp, [ebp - 0x41c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea esp, [ebp - 0x41c]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x405930
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414a18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push ebp
push esi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
xor eax, eax
mov ecx, dword [ebx + 0x20]
mov dword [esp + 0x10], eax
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push eax
push eax
push 0x18b
push ecx
mov dword [esp + 0x30], eax
call esi
mov ebp, dword [esp + 0x34]
cmp ebp, eax
jb 0x4059b7
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
lea edx, [esp + 0xc]
push edi
push edx
push ebp
mov ecx, ebx
call sub.MFC42u.DLL_CListBox::GetText
mov eax, dword [ebx + 0x20]
xor edi, edi
push edi
push ebp
push 0x199
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call esi
cmp eax, 0xffffffff
je 0x405a04
mov ecx, 5
mov esi, eax
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x24]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push ebp
mov ecx, ebx
call fcn.00405810
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push ecx
push edx
mov ecx, ebx
call fcn.004057c0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [esp + 0x1c]
push 0xff
push edi
push eax
push ecx
push edx
push ebp
mov ecx, ebx
call fcn.00405670
mov eax, dword [esp + 0x40]
pop edi
test eax, eax
je 0x405a5f
cmp ebp, 0xffffffff
je 0x405a5f
cmp ebp, 0xfffffffe
je 0x405a5f
mov eax, dword [ebx + 0x20]
push 0
push ebp
push 0x186
push eax
call esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x406990
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
xor ebx, ebx
push SysReAllocString
mov esi, 1
push ebx
push ebx
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
je 0x406a4e
push edi
push SysReAllocString
push 0x41c740
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
je 0x406a3d
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0x14]
push eax
push edi
call esi
lea ecx, [esp + 0x14]
push ecx
push edi
call esi
test eax, eax
je 0x406a32
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x18], 4
je 0x406a2a
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
jbe 0x406a0e
add ebx, 0x3e8
cmp ebx, esi
ja 0x406a20
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x4069ee
jmp 0x406a32
mov dword [esp + 0x10], 2
jmp 0x406a32
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [esp + 0x10]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x407750
Capabilities:
Get common file path

Disassembly:
sub esp, 0x400
lea eax, [esp]
push esi
push edi
push 0x100
mov esi, ecx
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 8]
push 0x41cd9c
push ecx
lea edx, [esp + 0x210]
push 0x41cd90
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea eax, [esp + 0x208]
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x4077d7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x30
push 0x41cd5c
push 0x41cbf4
mov ecx, esi
call sub.MFC42u.DLL_CWnd::MessageBoxW
pop edi
mov eax, 1
pop esi
add esp, 0x400
ret
mov eax, edi
pop edi
pop esi
add esp, 0x400
ret
Function at 0x408700
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x414e71
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x818
test eax, eax
push esi
push edi
mov esi, ecx
je 0x408890
mov eax, dword [esi + 0x340]
test eax, eax
je 0x408890
push 0x41d2b8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0xc], edi
mov eax, dword [esi + 0x398]
lea ecx, [esp + 0x14]
push ecx
push edi
push 0
push 4
push 0
push eax
mov dword [esp + 0x840], 0
call fcn.00405e50
push edi
mov dword [esp + 0x82c], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408890
mov eax, dword [esi + 0x340]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x834]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x18]
mov eax, dword [esi + 0x340]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x60]
test eax, eax
jl 0x408890
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x408890
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 8]
mov dword [esp + 0x828], 1
call sub.MFC42u.DLL_CString::CString_3
lea edx, [esp + 0x20]
push 0x400
push edx
mov byte [esp + 0x830], 2
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x20]
lea ecx, [esp + 8]
push eax
push 0x41d2b0
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x14]
add esp, 0xc
lea ecx, [esp + 8]
mov eax, dword [edx - 8]
add eax, 0xfffffffe
push eax
push 2
call sub.MFC42u.DLL_CString::Delete
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x41d250
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0xc]
push 1
push 0x800
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00413138
mov ecx, esi
call fcn.00409dd0
lea ecx, [esp + 8]
mov byte [esp + 0x828], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x828], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x820]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x824
ret 8
Function at 0x4088b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x414e96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
push esi
mov esi, ecx
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 4]
mov dword [esp + 0x818], 0
call sub.MFC42u.DLL_CString::CString_3
lea eax, [esp + 0x10]
push 0x400
push eax
mov byte [esp + 0x820], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x10]
lea edx, [esp + 4]
push ecx
push 0x41d2b0
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x10]
add esp, 0xc
lea ecx, [esp + 4]
mov eax, dword [eax - 8]
add eax, 0xfffffffe
push eax
push 2
call sub.MFC42u.DLL_CString::Delete
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push ecx
push 0x41d2d8
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 8]
push 1
push 0x800
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00413138
mov ecx, esi
call fcn.00409dd0
lea ecx, [esp + 4]
mov byte [esp + 0x818], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x818], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x810]
pop esi
mov dword fs:[0], ecx
add esp, 0x818
ret

Function at 0x4088cb
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x414e96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
push esi
mov esi, ecx
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 4]
mov dword [esp + 0x818], 0
call sub.MFC42u.DLL_CString::CString_3
lea eax, [esp + 0x10]
push 0x400
push eax
mov byte [esp + 0x820], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x10]
lea edx, [esp + 4]
push ecx
push 0x41d2b0
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x10]
add esp, 0xc
lea ecx, [esp + 4]
mov eax, dword [eax - 8]
add eax, 0xfffffffe
push eax
push 2
call sub.MFC42u.DLL_CString::Delete
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
push ecx
push 0x41d2d8
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 8]
push 1
push 0x800
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.00413138
mov ecx, esi
call fcn.00409dd0
lea ecx, [esp + 4]
mov byte [esp + 0x818], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x818], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x810]
pop esi
mov dword fs:[0], ecx
add esp, 0x818
ret

Function at 0x408b60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414ec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
push 0x41d330
mov dword [esp + 0xc], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0xc], esi
mov ecx, dword [edi + 0x398]
lea eax, [esp + 8]
push eax
push esi
push 0
push 7
push 8
push ecx
mov dword [esp + 0x30], 0
call fcn.00405e50
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x408cd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414f08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
push 0x41d2b8
mov dword [esp + 0xc], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0xc], esi
mov ecx, dword [edi + 0x398]
lea eax, [esp + 8]
push eax
push esi
push 0
push 4
push 0
push ecx
mov dword [esp + 0x30], 0
call fcn.00405e50
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 8]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x10]
pop edi
setne al
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x409950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x415028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov esi, ecx
push 0x41d4a8
mov dword [esp + 0xc], 0xfa
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0xc], edi
mov ecx, dword [esi + 0x398]
lea eax, [esp + 8]
push eax
push edi
push 0
push 4
push 8
push ecx
mov dword [esp + 0x30], 0
call fcn.00405e50
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edx, dword [esp + 8]
mov eax, dword [esi + 0x20]
push 0
push edx
push 1
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xc8], eax
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x409a00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x415048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
push 0x41d4c4
mov dword [esp + 0xc], 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [esp + 0xc], esi
mov ecx, dword [edi + 0x398]
lea eax, [esp + 8]
push eax
push esi
push 0
push 8
push 8
push ecx
mov dword [esp + 0x30], 0
call fcn.00405e50
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
shr eax, 1
pop edi
and eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x409a80
Capabilities:
Log keystrokes

Disassembly:
push 0xffffffffffffffff
push 0x415094
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x230], ebx
call fcn.00409f30
mov edi, eax
push 1
cmp edi, ebx
je 0x409b16
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call esi
mov ebp, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
push ebx
push edi
call ebp
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
call ebx
push 0
push 0
push 0x178d
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xf120
push 0x112
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
push 0
call esi
push eax
push 0
push edi
call ebp
push eax
call ebx
jmp 0x409c77
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call ebp
push eax
push ebx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, esi
call sub.MFC42u.DLL_CWnd::SetFocus
push 0x41d538
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_1
mov dword [esp + 0x14], ebx
push 0x41d51c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [esp + 0x1c], edi
mov eax, dword [esi + 0x398]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push 7
push 8
push eax
mov byte [esp + 0x248], 3
call fcn.00405e80
test eax, eax
push edi
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
setge bl
mov byte [esp + 0x234], 2
call edi
test bl, bl
je 0x409bbf
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push 0x104
push edx
push eax
call fcn.0040e5d0
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
jmp 0x409bdb
mov eax, dword [esi + 0x36c]
cmp eax, 2
jb 0x409bd6
cmp eax, 3
ja 0x409bd6
push 0x41d538
jmp 0x409bdb
push 0x41d504
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_3
mov edx, dword [esp + 0x238]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0x20]
push 0x41d4dc
push ecx
mov byte [esp + 0x240], 4
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x18]
push 1
push 0x800
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00413138
mov ecx, esi
call fcn.00409dd0
push 0
call ebp
push eax
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
lea ecx, [esp + 0x18]
mov byte [esp + 0x230], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x14]
push eax
call edi
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x238]
mov dword [esp + 0x230], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x224
ret 4
Function at 0x409dd0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4150a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
push edi
lea eax, [esp + 0x1c]
mov dword [esp + 0x68], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x70]
mov edi, 1
or edx, edi
mov word [esp + 0x4c], di
mov dword [esp + 0x48], edx
mov eax, dword [ecx - 8]
lea edx, [esp + 0xc]
lea ecx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x78]
push ecx
push 0
push 0
push edx
push 0
push 0
push 0
push eax
lea ecx, [esp + 0x94]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov eax, dword [esp + 0x70]
lea ecx, [esp + 0x70]
mov eax, dword [eax - 8]
push eax
call sub.MFC42u.DLL_CString::ReleaseBuffer
cmp esi, edi
jne 0x409e8d
cmp dword [esp + 0x78], edi
jne 0x409e8d
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x409e8d
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea ecx, [esp + 0x70]
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x64
ret 0xc

Function at 0x40a7b0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4151af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [esp + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0x41e3d0
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x40a814
mov esi, dword [esp + 0x24]
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_3
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_3
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call sub.MFC42u.DLL_CString::GetBuffer
push esi
push eax
push edi
call ebp
lea eax, [esp + 0xc]
test eax, eax
je 0x40a847
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00413138
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 1
mov byte [esp + 0x1c], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40c280
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4155b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esi]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0
mov edi, dword [eax - 8]
push edi
call sub.MFC42u.DLL_CString::GetBuffer
mov ecx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ebp, [edi + 1]
push ebp
push eax
push ecx
call ebx
lea ecx, [esp + 0x10]
mov edi, eax
test ecx, ecx
je 0x40c2e3
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::ReleaseBuffer
cmp edi, ebp
jbe 0x40c30c
push edi
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::GetBuffer
mov ecx, dword [esi]
inc edi
push edi
push eax
push ecx
call ebx
lea edx, [esp + 0x10]
test edx, edx
je 0x40c30c
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x1c]
call fcn.0040b420
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x24], 1
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x40fba0
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0xea
xor eax, eax
lea edi, [esi + 0x40]
mov dword [esp + 0xc], 0x114
rep stosd dword es:[edi], eax
mov ecx, 0x44
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
mov dword [esi + 0x3e8], ebx
mov dword [esi + 0x3ec], 1
mov dword [esi + 0x3f0], 1
mov dword [esi + 0x430], ebx
mov dword [esi + 0x434], 1
mov dword [esi + 0x3f4], ebx
mov dword [esi + 0x414], ebx
mov dword [esi + 0x42c], ebx
mov dword [esi + 0x3fc], ebx
mov dword [esi + 0x438], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x1c], 2
jne 0x40fc42
cmp dword [esp + 0x10], 5
jb 0x40fc42
mov eax, 1
pop edi
mov dword [esi + 0x3f8], eax
pop esi
pop ebx
add esp, 0x114
ret
mov dword [esi + 0x3f8], ebx
pop edi
pop esi
pop ebx
add esp, 0x114
ret