joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd3ce6a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0xd88f3c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00d2e85c
and dword [ebp - 0x14], 0
cmp dword [0xda5270], 0
mov dword [ebp - 0x18], eax
jne 0xd3cf1d
push 0xd90328
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0xd3cfc5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0xd8c778
push ebx
call edi
test eax, eax
je 0xd3cfc5
mov esi, dword [0xd8a390]
push eax
call esi
push 0xd90318
push ebx
mov dword [0xda5270], eax
call edi
push eax
call esi
push 0xd90304
push ebx
mov dword [0xda5274], eax
call edi
push eax
call esi
push 0xd902e8
push ebx
mov dword [0xda5278], eax
call edi
push eax
call esi
mov dword [0xda5280], eax
test eax, eax
je 0xd3cf1d
push 0xd902d0
push ebx
call edi
push eax
call esi
mov dword [0xda527c], eax
mov eax, dword [0xda527c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0xd8a394]
cmp eax, ecx
je 0xd3cf76
cmp dword [0xda5280], ecx
je 0xd3cf76
push eax
call esi
push dword [0xda5280]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0xd3cf76
test ebx, ebx
je 0xd3cf76
call edi
test eax, eax
je 0xd3cf6d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0xd3cf6d
test byte [ebp - 8], 1
jne 0xd3cf76
or dword [ebp + 0x10], 0x200000
jmp 0xd3cfa9
mov eax, dword [0xda5274]
cmp eax, dword [ebp - 0x18]
je 0xd3cfa9
push eax
call esi
test eax, eax
je 0xd3cfa9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0xd3cfa9
mov eax, dword [0xda5278]
cmp eax, dword [ebp - 0x18]
je 0xd3cfa9
push eax
call esi
test eax, eax
je 0xd3cfa9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0xda5270]
call esi
test eax, eax
je 0xd3cfc5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0xd3cfc7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00d24bce
leave
ret
Function at 0xd4a3b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0xd4a43d
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00d24fe0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0xd4a400
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0xd4a422
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0xd4a498
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.00d4a108
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0xd4a484
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0xd4a498
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0xd4a3c1
pop esi
pop ebx
leave
ret
Function at 0x412a30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4280a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x68]
test eax, eax
jne 0x412ada
push esi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x412ac1
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x412ac1
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x68], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.00424b18
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x412af0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x412b52
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_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x412d60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x412e54
lea ecx, [esp + 0x10]
push ecx
push str..htm
push 0x80000000
mov ecx, edi
call fcn.00412af0
test eax, eax
jne 0x412e54
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x80000000
mov ecx, edi
call fcn.00412af0
test eax, eax
jne 0x412e54
lea edx, [esp + 0x10]
push str.__1_
push edx
call dword [sym.imp.MSVCRT.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x412e25
lea eax, [esp + 0x10]
push 0x43a06c
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x412e25
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x412e28
mov byte [esi], 0
push 0x43a068
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x421d30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x429ceb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x34c]
mov dword [esp + 0x10], 0x25
call fcn.00424b18
lea ecx, [esi + 0x348]
mov byte [esp + 0x10], 0x24
call fcn.00424b18
lea ecx, [esi + 0x344]
mov byte [esp + 0x10], 0x23
call fcn.00424b18
lea ecx, [esi + 0x340]
mov byte [esp + 0x10], 0x22
call fcn.00424b18
lea ecx, [esi + 0x33c]
mov byte [esp + 0x10], 0x21
call fcn.00424b18
lea ecx, [esi + 0x338]
mov byte [esp + 0x10], 0x20
call fcn.00424b18
lea ecx, [esi + 0x334]
mov byte [esp + 0x10], 0x1f
call fcn.00424b18
lea ecx, [esi + 0x330]
mov byte [esp + 0x10], 0x1e
call fcn.00424b18
lea ecx, [esi + 0x32c]
mov byte [esp + 0x10], 0x1d
call fcn.00424b18
lea ecx, [esi + 0x328]
mov byte [esp + 0x10], 0x1c
call fcn.00424b18
lea ecx, [esi + 0x324]
mov byte [esp + 0x10], 0x1b
call fcn.00424b18
lea ecx, [esi + 0x320]
mov byte [esp + 0x10], 0x1a
call fcn.00424b18
lea ecx, [esi + 0x31c]
mov byte [esp + 0x10], 0x19
call fcn.00424b18
mov byte [esp + 0x10], 0x18
lea ecx, [esi + 0x318]
call fcn.00424b18
lea ecx, [esi + 0x314]
mov byte [esp + 0x10], 0x17
call fcn.00424b18
lea ecx, [esi + 0x310]
mov byte [esp + 0x10], 0x16
call fcn.00424b18
lea ecx, [esi + 0x30c]
mov byte [esp + 0x10], 0x15
call fcn.00424b18
lea ecx, [esi + 0x308]
mov byte [esp + 0x10], 0x14
call fcn.00424b18
lea ecx, [esi + 0x304]
mov byte [esp + 0x10], 0x13
call fcn.00424b18
lea ecx, [esi + 0x300]
mov byte [esp + 0x10], 0x12
call fcn.00424b18
lea ecx, [esi + 0x2fc]
mov byte [esp + 0x10], 0x11
call fcn.00424b18
lea ecx, [esi + 0x2f8]
mov byte [esp + 0x10], 0x10
call fcn.00424b18
lea ecx, [esi + 0x2f4]
mov byte [esp + 0x10], 0xf
call fcn.00424b18
lea ecx, [esi + 0x2f0]
mov byte [esp + 0x10], 0xe
call fcn.00424b18
lea ecx, [esi + 0x2ec]
mov byte [esp + 0x10], 0xd
call fcn.00424b18
lea ecx, [esi + 0x2e8]
mov byte [esp + 0x10], 0xc
call fcn.00424b18
lea ecx, [esi + 0x2e4]
mov byte [esp + 0x10], 0xb
call fcn.00424b18
lea ecx, [esi + 0x2e0]
mov byte [esp + 0x10], 0xa
call fcn.00424b18
lea ecx, [esi + 0x2a0]
mov byte [esp + 0x10], 9
call sub.MFC42.DLL_CComboBox::CComboBox
lea ecx, [esi + 0x260]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CComboBox::CComboBox
lea ecx, [esi + 0x220]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CComboBox::CComboBox
lea ecx, [esi + 0x1e0]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CComboBox::CComboBox
lea ecx, [esi + 0x1a0]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CComboBox::CComboBox
lea ecx, [esi + 0x160]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CComboBox::CComboBox
lea ecx, [esi + 0x120]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CComboBox::CComboBox
lea ecx, [esi + 0xe0]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CComboBox::CComboBox
lea ecx, [esi + 0xa0]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CComboBox::CComboBox
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CComboBox::CComboBox
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.00424ae8
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4019f6
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
xor ebx, ebx
push esi
push ebx
push 2
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x401a2d
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x401a31
mov al, 1
jmp 0x401a71
push edi
xor edi, edi
lea eax, [ebp - 0x128]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x401a65
lea eax, [ebp - 0x104]
push str.vdgame.exe
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x401a34
inc edi
cmp edi, 2
jle 0x401a34
jmp 0x401a67
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401aef
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push pe_nt_image_headers32
call sub.MFC42.DLL_operatornew
test eax, eax
pop ecx
je 0x401b09
mov dword [eax], 0x407564
jmp 0x401b0b
xor eax, eax
mov ecx, dword [esp + 8]
push eax
push 0
push 0x401b7f
mov dword [eax + 0x108], ecx
mov dword [eax + 0x10c], esi
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
pop esi
ret 4
Function at 0x4026b1
Capabilities:
Delete file

Disassembly:
mov eax, 0x405d18
call fcn.004057f0
sub esp, 0x418
cmp byte [ebp + 0xc], 0
push ebx
mov dword [ebp - 0x20], ecx
jne 0x4026d5
call fcn.0040269f
jmp 0x40287d
push 0x40a40c
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
mov dword [ebp - 0x18], ebx
je 0x40287d
and dword [0x40a3b8], 0
test byte [ebx + 0xc], 0x10
jne 0x40283f
push esi
mov esi, dword [sym.imp.MSVCRT.dll_strtok]
push edi
mov edi, 0x40a408
push ebx
lea eax, [ebp - 0x424]
push 0x400
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
lea eax, [ebp - 0x424]
push edi
push eax
call esi
push edi
push 0
mov dword [ebp + 0x10], eax
call esi
push edi
push 0
mov dword [ebp - 0x1c], eax
call esi
add esp, 0x24
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], eax
je 0x402833
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x40a7cc
push eax
call sub.MFC42.DLL_operator
xor eax, eax
cmp dword [ebp - 0x24], eax
mov dword [ebp - 4], eax
mov dword [ebp + 0xc], eax
je 0x402778
push dword [ebp - 0x24]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov dword [ebp + 0xc], eax
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCRT.dll_atoi]
cmp dword [ebp + 0xc], 0
pop ecx
mov ebx, eax
jge 0x402797
push dword [ebp - 0x10]
call fcn.00405172
test al, al
pop ecx
je 0x4027ac
cmp ebx, dword [0x40a784]
jle 0x402824
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [0x40a3bc], ebx
jge 0x4027ba
mov dword [0x40a3bc], ebx
cmp dword [ebp + 0xc], 0
jge 0x4027e1
inc dword [0x40a3b8]
push str.login
push dword [ebp + 0x10]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x4027e1
mov dword [ebp + 0xc], 0xfffe7961
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov ecx, 0x40a868
push eax
call fcn.004036c3
mov ecx, eax
call sub.MFC42.DLL_CString::operator_1
push dword [ebp + 0x10]
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x14]
mov ecx, 0x40a850
push eax
mov byte [ebp - 4], 1
call fcn.00401cb3
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
mov dword [eax], ebx
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ebx, dword [ebp - 0x18]
test byte [ebx + 0xc], 0x10
je 0x402710
pop edi
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [0x40a3bc]
pop ecx
cmp eax, 0xffffffff
je 0x40285c
push eax
mov ecx, 0x40a6b8
call fcn.004018a1
mov ecx, dword [ebp - 0x20]
push 0x40a3f4
call fcn.00402654
mov eax, dword [0x40a86c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [0x40a860], eax
call fcn.00402a05
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40288c
Capabilities:
Copy file
Create process on windows
Move file

Disassembly:
mov eax, 0x405d2c
call fcn.004057f0
push ecx
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push esi
push edi
mov edi, ecx
jne 0x4028d0
inc dword [0x40a884]
cmp dword [0x40a884], 0xa
jge 0x4028be
call fcn.00402a05
cmp dword [0x40a884], 0xa
jne 0x4029f4
mov ecx, edi
call fcn.0040269f
jmp 0x4029f4
push str.login
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
test eax, eax
pop ecx
je 0x402961
push str..old
lea eax, [ebp + 0xc]
push 0x40a7d0
push eax
call sub.MFC42.DLL_operator
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 4], ebx
push dword [0x40a7d0]
call esi
push dword [0x40a7d0]
push dword [ebp + 0x10]
call esi
test eax, eax
je 0x40294a
push 5
push ebx
push dword [ebp + 0xc]
push dword [0x40a7d0]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, edi
call fcn.0040367f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
jmp 0x4029f4
push dword [0x40a7d0]
push dword [ebp + 0xc]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x40a7cc
push eax
call sub.MFC42.DLL_operator
push ebx
push dword [eax]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
inc dword [0x40a880]
mov esi, str.vdgame.exe
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
jne 0x4029ad
push esi
call fcn.00401a75
pop ecx
mov dword [0x40a7e8], eax
mov eax, dword [0x40a860]
mov ecx, dword [0x40a88c]
mov edx, dword [eax + 8]
cmp edx, ecx
je 0x4029ce
mov eax, edx
mov edx, dword [eax]
cmp edx, ecx
jne 0x4029bf
mov dword [0x40a860], eax
jmp 0x4029ed
mov ecx, dword [eax + 4]
cmp eax, dword [ecx + 8]
jne 0x4029e2
mov eax, ecx
mov dword [0x40a860], eax
mov ecx, dword [ecx + 4]
jmp 0x4029d1
cmp dword [eax + 8], ecx
je 0x4029ed
mov dword [0x40a860], ecx
mov ecx, edi
call fcn.00402a05
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x402a89
Capabilities:
Create process on windows
Delete file

Disassembly:
mov eax, 0x405d40
call fcn.004057f0
mov eax, 0x13f0
call fcn.00405820
push ebx
push esi
push edi
mov esi, str.vdgame.exe
mov edi, 0x40a7cc
push esi
lea eax, [ebp - 0x10]
push edi
mov dword [ebp - 0x14], ecx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [0x40a3b8]
xor ebx, ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], ebx
je 0x402c51
cmp dword [0x40a880], eax
jl 0x402c51
push esi
call fcn.00401a75
cmp eax, dword [0x40a7e8]
pop ecx
je 0x402b09
push esi
lea eax, [ebp - 0x20]
push edi
push eax
call sub.MFC42.DLL_operator
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x14]
call fcn.004035f1
push 0x44
lea eax, [ebp - 0x74]
pop esi
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebp - 0x74], esi
push ebx
push ebx
push 0x147
push dword [eax + 0x84]
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
call fcn.00405036
mov ecx, esi
mov dword [ebp - 0x18], ebx
shl ecx, 3
mov dword [ebp - 0x1c], ebx
mov esi, dword [ecx + 0x40a800]
mov edi, dword [ecx + 0x40a804]
sub esi, eax
sub edi, edx
call fcn.0040486d
cmp eax, ebx
je 0x402b85
movzx edx, byte [eax + 2]
xor ecx, ecx
mov ch, byte [eax]
mov cl, byte [eax + 1]
shl ecx, 8
or ecx, edx
mov dword [ebp - 0x18], ecx
xor ecx, ecx
mov ch, byte [eax + 3]
mov cl, byte [eax + 4]
movzx eax, byte [eax + 5]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x1c], ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x13fc]
push dword [ebp - 0x18]
push edi
push esi
push dword [0x40a878]
push str._s_width_d_height_d_m1_d_m2_d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x13fc]
push dword [0x40a7cc]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402c79
mov esi, dword [ebp - 0x14]
push 2
mov byte [0x40a888], 1
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [0x40a780]
push ebx
call sub.MFC42.DLL_CWnd::ShowWindow
push ebx
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x30]
call edi
mov ecx, dword [0x40a780]
push 5
mov byte [0x40a888], bl
call sub.MFC42.DLL_CWnd::ShowWindow
push 5
mov ecx, esi
call sub.MFC42.DLL_CWnd::ShowWindow
push ebx
push ebx
push ebx
push ebx
push dword [0x40a7dc]
lea ecx, [esi + 0xa4]
call fcn.004052a9
mov ecx, esi
call fcn.00402a05
jmp 0x402c79
cmp byte [0x40a889], bl
je 0x402c79
push dword [ebp - 0x10]
call fcn.00405172
test al, al
pop ecx
jne 0x402c79
mov ecx, dword [ebp - 0x14]
push ebx
push 0x40a444
push 0x40a424
call sub.MFC42.DLL_CWnd::MessageBoxA
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404cc3
Capabilities:
Get common file path
Get disk information

Disassembly:
mov eax, 0x40600b
call fcn.004057f0
sub esp, 0x514
and dword [ebp - 0x1c], 0
push ebx
push esi
mov esi, 0x104
push edi
lea eax, [ebp - 0x138]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov al, byte [ebp - 0x138]
and byte [ebp - 0x520], 0
mov byte [ebp - 0x30], al
mov ecx, 0xf9
xor eax, eax
lea edi, [ebp - 0x51f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 1
stosb byte es:[edi], al
pop ebx
lea eax, [ebp - 0x520]
push eax
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0x14
lea esi, [ebp - 0x520]
pop edi
mov al, byte [esi]
test al, al
je 0x404d63
cmp al, byte [ebp - 0x138]
je 0x404d63
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x404d63
push esi
call fcn.00404ed2
pop ecx
mov cl, byte [esi]
movsx edx, cl
mov dword [edx*4 + 0x40cfa8], eax
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x18]
mov byte [ebp + eax - 0x30], cl
add esi, 4
dec edi
jne 0x404d2c
push 0x404eb3
push ebx
push dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVCRT.dll_qsort]
add esp, 0x10
mov edi, 0x40a7d4
mov esi, 0x40a614
lea eax, [ebp - 0x24]
push edi
push esi
push eax
call sub.MFC42.DLL_operator_2
push 0x40a608
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
cmp byte [0x40a7d8], 0
je 0x404dfe
push edi
lea eax, [ebp - 0x20]
push esi
push eax
call sub.MFC42.DLL_operator_2
push 0x40a5f8
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 4
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
mov edi, dword [ebp - 0x18]
xor esi, esi
test edi, edi
jle 0x404e4e
mov al, byte [ebp + esi - 0x30]
lea ecx, [ebp - 0x10]
push eax
push 0
call sub.MFC42.DLL_CString::SetAt
lea eax, [ebp - 0x10]
push str.gamever.txt
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MFC42.DLL_operator
push dword [eax]
mov byte [ebp - 4], 6
call fcn.00405172
pop ecx
mov byte [ebp - 0x11], al
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
cmp byte [ebp - 0x11], 0
jne 0x404ea2
inc esi
cmp esi, edi
jl 0x404e07
xor esi, esi
test edi, edi
jle 0x404e75
mov al, byte [ebp + esi - 0x30]
lea ecx, [ebp - 0x10]
push eax
push 0
call sub.MFC42.DLL_CString::SetAt
push dword [ebp - 0x10]
call fcn.0040510c
test al, al
pop ecx
jne 0x404e75
inc esi
cmp esi, edi
jl 0x404e54
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040542e
mov dword [ebp - 0x1c], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0040542e
mov dword [ebp - 0x1c], ebx
jmp 0x404e84