joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4867f6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4cb154], 0
push esi
push edi
jne 0x48676c
call fcn.004866d8
test eax, eax
je 0x4867b1
mov eax, dword [0x4cb154]
cmp eax, 1
jne 0x48678d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4867b1
jmp 0x4867f3
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4867f3
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4867b5
xor eax, eax
jmp 0x4867f3
mov eax, dword [esi]
push dword [0x4cb154]
call edi
mov edi, eax
test edi, edi
je 0x4867d7
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4867f3
lea edi, [esi + 0xff0]
push esi
push dword [0x4cb154]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4867dd
mov eax, esi
pop edi
pop esi
ret
jmp 0x486758

Function at 0x486a8b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6184]
jne 0x486a95
repz ret
jmp fcn.0048c6ca
Function at 0x495fba
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c6184]
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.0048db06
and dword [ebp - 0x14], 0
cmp dword [0x4cc170], 0
mov dword [ebp - 0x18], eax
jne 0x49606d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x496115
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4a8b80
push ebx
call edi
test eax, eax
je 0x496115
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4a8b70
push ebx
mov dword [0x4cc170], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4cc174], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4cc178], eax
call edi
push eax
call esi
mov dword [0x4cc180], eax
test eax, eax
je 0x49606d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4cc17c], eax
mov eax, dword [0x4cc17c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4960c6
cmp dword [0x4cc180], ecx
je 0x4960c6
push eax
call esi
push dword [0x4cc180]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4960c6
test ebx, ebx
je 0x4960c6
call edi
test eax, eax
je 0x4960bd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4960bd
test byte [ebp - 8], 1
jne 0x4960c6
or dword [ebp + 0x10], 0x200000
jmp 0x4960f9
mov eax, dword [0x4cc174]
cmp eax, dword [ebp - 0x18]
je 0x4960f9
push eax
call esi
test eax, eax
je 0x4960f9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4960f9
mov eax, dword [0x4cc178]
cmp eax, dword [ebp - 0x18]
je 0x4960f9
push eax
call esi
test eax, eax
je 0x4960f9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4cc170]
call esi
test eax, eax
je 0x496115
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x496117
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00486a8b
leave
ret
Function at 0x401ea4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
call fcn.00401f08
mov edi, eax
cmp byte [edi], 0x22
jne 0x401ed8
push 0x22
mov eax, edi
inc eax
push eax
call fcn.004020c4
add esp, 8
mov dword [ebp - 4], eax
or eax, eax
je 0x401ef3
mov edi, eax
inc edi
jmp 0x401ed0
inc edi
cmp byte [edi], 0x20
je 0x401ecf
jmp 0x401ef3
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x401ee4
cmp eax, 0x20
jne 0x401ed7
jmp 0x401ee7
inc edi
movsx eax, byte [edi]
or eax, eax
je 0x401ef3
cmp eax, 0x20
je 0x401ee6
push 0
call fcn.00401f14
push 1
push edi
push 0
push eax
call fcn.004018e4
pop edi
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x407140
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 8
mov dword [esp + 4], edx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
mov edx, ebx
sub esp, 8
cmp word [ebx], 0
je 0x407179
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x407170
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.scrrun_]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x407180
xor eax, eax
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x407198
cmp word [ebx], 0
je 0x4071b9
nop
add ebx, 2
cmp word [ebx], 0
jne 0x4071b0
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [esi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x4071c0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x407b30
Capabilities:
Create directory
Delete directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x214]
push ebx
lea ebx, [ebp - 0x41c]
sub esp, 0x420
mov dword [esp + 4], edi
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
sub esp, 8
mov dword [esp + 0xc], ebx
mov dword [esp], edi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
sub esp, 0x10
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
sub esp, 4
mov dword [esp], ebx
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
sub esp, 8
mov esi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0xfc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], esi
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.Unexpected_retval__d__error__ld._n
call fcn.004077c0
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [ebp - 0x214], 0xdeabeef
mov esi, eax
mov eax, dword [0x448004]
sub esp, 4
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [edx + 0x74]
sub esp, 0xc
mov edi, eax
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x102
xor eax, eax
cmp edi, 0x800a003a
sete al
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], str.Unexpected_hr__lx._n
call fcn.004077c0
call fcn.00416600
mov dword [eax], 0x41b595
mov dword [eax + 4], 0x103
mov eax, dword [ebp - 0x214]
mov dword [esp + 4], str.got__p_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004077c0
mov dword [esp], esi
call dword [sym.imp.oleaut32.dll_SysFreeString]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x416550
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [esp], 1
call dword [0x4190f4]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fflush]
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x4179f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 8], eax
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [ebp - 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00417ab0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
push ebp
mov ebp, esp
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
pop ebp
shl edx, 5
add eax, edx
ret
Function at 0x402710
Capabilities:
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4418a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
fild dword [edi + 0x21d1c]
mov dword [esp + 0x30], 0
fmul qword [0x4470d8]
call sub.MSVCRT.dll__ftol
mov ebp, dword [edi + 0x21d24]
mov ebx, dword [edi + 0x21d14]
mov esi, eax
mov eax, dword [edi + 0x21d28]
add eax, ebp
mov dword [esp + 0x1c], esi
add eax, ebx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x4470d8]
call sub.MSVCRT.dll__ftol
mov ebx, eax
lea ecx, [esp + 0x14]
mov ebp, ebx
neg ebp
push ebp
push esi
mov esi, dword [esp + 0x40]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x40]
push ebp
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x4470c4
push 0x4501fc
push 0x30
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xffffff38
mov byte [esp + 0x68], 1
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov edx, dword [esp + 0x3c]
mov ebp, eax
mov eax, dword [edi + 0x21d34]
push edx
push eax
lea ecx, [esp + 0x18]
push 0x4501e8
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
add esp, 0x10
add ebx, 0x11b
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x24]
mov ecx, esi
neg ebx
push ebx
push eax
call dword [edx + 0x64]
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x30]
mov dword [esp + 0x20], 0x4470b0
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0x44709c
mov dword [esp + 0x30], 0xffffffff
call fcn.00440654
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x404940
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x441c0e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push str.softwareLocal_SPCS_3000_DCS_
lea ecx, [esp + 0x18]
mov dword [esp + 0x134], ebx
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x138]
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x134], 1
call fcn.0044064e
push str.Initialization_
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push edx
push SysReAllocString
mov byte [esp + 0x144], 2
mov byte [esp + 0x23], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x404b3d
mov al, byte [0x453828]
mov ecx, 0x40
mov byte [esp + 0x24], al
xor eax, eax
lea edi, [esp + 0x25]
push ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x20]
lea edx, [esp + 0x28]
stosb byte es:[edi], al
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
push str.ClassName
push ecx
mov dword [esp + 0x38], 0x104
call edi
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
push edx
call fcn.00440690
mov eax, dword [esp + 0x13c]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.SPCS_3000_DCS_
push eax
call ebp
add esp, 8
test eax, eax
jne 0x404ab0
lea ecx, [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
push str.IsOnline
push ecx
call edi
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
test eax, eax
jne 0x404a7e
mov dword [esi + 0xd8], ebx
jmp 0x404a88
mov dword [esi + 0xd8], 1
lea eax, [esp + 0x20]
lea ecx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x28]
push ecx
push edx
push ebx
push str.bStartUpRun
push eax
call edi
cmp byte [esp + 0x28], 0x59
jne 0x404ab0
mov byte [esp + 0x13], 1
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x13c]
push str.SPCS_3000_DCS_
push ecx
call ebp
mov esi, dword [esp + 0x148]
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
add esp, 8
test eax, eax
pop ebp
jne 0x404af3
cmp byte [esp + 0xf], bl
je 0x404af3
mov edx, dword [esp + 0x10]
push ebx
push edx
call edi
cmp eax, ebx
mov dword [esi], eax
jne 0x404b01
mov eax, dword [esp + 0x10]
push ebx
push eax
call edi
cmp eax, ebx
mov dword [esi], eax
je 0x404b3d
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 1
call fcn.00440654
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], bl
call fcn.00440654
lea ecx, [esp + 0x138]
mov dword [esp + 0x130], 0xffffffff
call fcn.00440654
mov al, 1
jmp 0x404b77
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 1
call fcn.00440654
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], bl
call fcn.00440654
lea ecx, [esp + 0x138]
mov dword [esp + 0x130], 0xffffffff
call fcn.00440654
xor al, al
mov ecx, dword [esp + 0x128]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret 8
Function at 0x404ef0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x441ce0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push str.NoUser
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x14]
mov ebx, 1
push eax
push 0x20019
push 0
push str.SoftwareLocal_SPCS_3000_DCS
push SysReAllocString
mov dword [esp + 0x13c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404f84
push 0xffff
call dword [sym.imp.USER32.dll_MessageBeep]
push 0
push 0
push 0x45074c
call sub.MFC42.DLL_AfxMessageBox
mov esi, dword [esp + 0x130]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], ebx
jmp 0x405053
mov dx, word [0x453a60]
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push ecx
push edx
push 0
push str.UserName
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
je 0x404ff2
push 0xffff
call dword [sym.imp.USER32.dll_MessageBeep]
push 0
push 0
push 0x45074c
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 8]
push ecx
jmp 0x405041
call sub.MFC42.DLL_AfxGetEmptyString
mov edx, dword [eax]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edx
call fcn.00440690
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 2
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], bl
call fcn.00440654
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 8]
push eax
mov esi, dword [esp + 0x134]
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x10], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x128], 0
call fcn.00440654
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4
Function at 0x409190
Capabilities:
Delete file
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4420e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
push edi
mov edi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 8]
add eax, 0xc4
push eax
call sub.MFC42.DLL_CString::CString_1
push str.ProjectSysData
lea ecx, [esp + 0xc]
mov dword [esp + 0x48], 0
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
push str.SoftwareLocal_SPCS_3000_DCSSPCS_3000_DCS_
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409368
push 1
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push esi
push edx
push 0
push str.IsOnline
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409368
cmp byte [esi], 0x30
jne 0x409361
push 0
push 0
push 0x4508bc
call sub.MFC42.DLL_AfxMessageBox
mov ecx, edi
call fcn.00407ec0
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.MSVCRT.dll__chdir]
push ecx
call edi
add esp, 4
test eax, eax
je 0x409283
push 0
push 0
push 0x45081c
call sub.MFC42.DLL_AfxMessageBox
jmp 0x409368
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFileFind::CFileFind
push 0
push 0x450838
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40933d
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_remove]
mov bl, 2
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea edx, [esp + 0x24]
lea ecx, [esp + 0x28]
push edx
mov esi, eax
call sub.MFC42.DLL_CFileFind::GetFileName
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], bl
call fcn.00440654
push str.Compdb
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jg 0x40931b
push str.Compgp
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jle 0x409325
mov eax, dword [esp + 0x14]
push eax
call ebp
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 1
call fcn.00440654
test esi, esi
jne 0x4092b3
pop ebp
pop ebx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc4]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x44], 0
call fcn.004409a8
jmp 0x409368
mov ecx, edi
call fcn.00407ec0
lea ecx, [esp + 8]
mov dword [esp + 0x44], 0xffffffff
call fcn.00440654
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x409fa0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4422d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, ecx
lea ecx, [esp + 0x30]
inc esi
call sub.MFC42.DLL_CString::CString
push esi
lea eax, [esp + 0x34]
push 0x4500d4
push eax
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [edi + 0x25c]
add esp, 0xc
add ecx, 0xc4
lea edx, [esp + 0xc]
push str.ProjectRun_
push ecx
push edx
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x30]
lea edx, [esp + 8]
push ecx
push eax
push edx
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call fcn.00440654
cmp esi, 0x64
jle 0x40a02c
add esi, 0xffffff9c
push esi
lea eax, [esp + 0x34]
push str.Sysdb__d.d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0xc]
call fcn.0044064e
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::CFile
mov edx, dword [esp + 8]
push 0
push 0
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CFile::Open
pop edi
pop esi
test eax, eax
mov byte [esp + 0x20], 3
lea ecx, [esp + 8]
jne 0x40a0b3
call fcn.0044087c
lea ecx, [esp]
mov byte [esp + 0x20], 0
call fcn.00440654
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.00440654
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4
call fcn.0044087c
lea ecx, [esp]
mov byte [esp + 0x20], 0
call fcn.00440654
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], 0xffffffff
call fcn.00440654
mov ecx, dword [esp + 0x18]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x40fb30
Capabilities:
Create process on windows

Disassembly:
push 7
push 0
push 0
push str.strategy.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x4231f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4445b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx + 0x40]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
fild dword [edi + 0x27c]
mov dword [esp + 0x34], 0
fmul qword [0x4470d8]
call sub.MSVCRT.dll__ftol
mov ebp, dword [edi + 0x284]
mov ebx, dword [edi + 0x274]
mov esi, eax
mov eax, dword [edi + 0x288]
add eax, ebp
mov dword [esp + 0x20], esi
add eax, ebx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x4470d8]
call sub.MSVCRT.dll__ftol
mov ebx, eax
lea ecx, [esp + 0x14]
mov ebp, ebx
neg ebp
push ebp
push esi
mov esi, dword [esp + 0x44]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
mov edx, dword [esp + 0x44]
push ebp
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0x4470c4
push 0x4501fc
push 0x30
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xffffff74
mov byte [esp + 0x6c], 1
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CGdiObject::Attach
mov eax, dword [esi]
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call dword [eax + 0x30]
lea edx, [esp + 0x3c]
mov ebp, eax
push edx
call sub.MFC42.DLL_CTime::GetTickCount
mov eax, dword [eax]
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CTime::GetLocalTm
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
inc edx
push ecx
push edx
sub eax, 0x64
mov ecx, dword [esp + 0x48]
mov edx, dword [edi + 0x294]
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push 0x451c0c
push eax
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x2c]
mov edx, dword [esi]
add esp, 0x1c
add ebx, 0x11b
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x28]
mov ecx, esi
neg ebx
push ebx
push eax
call dword [edx + 0x64]
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x30]
mov dword [esp + 0x24], 0x4470b0
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0x44709c
mov dword [esp + 0x34], 0xffffffff
call fcn.00440654
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc