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

Disassembly:
mov eax, 0x102f798
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::CString_2
mov esi, 0x104
lea ecx, [ebp - 0x10]
push esi
push esi
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push 0xc404
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::LoadStringW
lea eax, [ebp - 0x10]
push 0x1001f4c
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42u.DLL_operator_1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString_2
push 0xc406
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::LoadStringW
push 0x753b
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::LoadStringW
mov ebx, 0x80000001
push ebx
push dword [ebp - 0x14]
push 0
push dword [ebp - 0x18]
call fcn.01029182
mov edi, 0x1002804
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::CString_2
push dword [edi - 4]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::LoadStringW
push dword [edi]
lea ecx, [ebp - 0x20]
call sub.MFC42u.DLL_CString::LoadStringW
push dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 0xc405
push eax
call sub.MFC42u.DLL_AfxFormatString1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call sub.MFC42u.DLL_operator_1
mov ecx, dword [ebp - 0x18]
push ebx
push dword [eax]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 8
push esi
push esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0x1001f48
push dword [ebp - 0x28]
call fcn.0102900c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::CString
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call sub.MFC42u.DLL_CString::CString
add edi, 8
cmp edi, 0x100280c
jl 0x100fb95
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x101353d
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x1013559
xor eax, eax
jmp 0x101361d
push edi
xor eax, eax
push ebx
push eax
push eax
push eax
push 0x1003258
call dword [sym.imp.GDI32.dll_CreateDCW]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, dword [esi + 8]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
push 8
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
push dword [ebp + 8]
mov esi, dword [esi + 0xc]
mov dword [ebp - 4], eax
call ebx
push 0xa
mov dword [ebp - 0xc], eax
push dword [ebp + 8]
call ebx
xor ecx, ecx
cmp dword [ebp - 8], ecx
jge 0x10135aa
mov dword [ebp - 8], ecx
cmp dword [ebp - 4], ecx
jge 0x10135b2
mov dword [ebp - 4], ecx
cmp edi, dword [ebp - 0xc]
jle 0x10135ba
mov edi, dword [ebp - 0xc]
cmp esi, eax
jle 0x10135c0
mov esi, eax
sub edi, dword [ebp - 8]
sub esi, dword [ebp - 4]
mov ebx, edi
push esi
push ebx
mov dword [ebp - 0xc], esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov edi, dword [ebp - 0x10]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 0xcc0020
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
push dword [ebp - 0xc]
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x10]
push edi
call esi
push dword [ebp + 8]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
mov ebx, eax
call esi
push edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x10138f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
jne 0x1013909
mov ax, 0x14
jmp 0x1013a0e
push ebx
push 0x8000080
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp + 0xc], edi
jne 0x1013934
mov ax, 4
jmp 0x1013a0e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebx
jne 0x1013953
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ax, 3
jmp 0x1013a0e
cmp dword [esi], 0x28
je 0x1013970
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ax, ax
jmp 0x1013a0e
push esi
mov word [ebp - 0x14], 0x4d42
call fcn.010133ff
movzx edi, ax
mov eax, dword [esi + 0x10]
add edi, dword [esi]
cmp eax, 1
je 0x10139aa
cmp eax, 2
je 0x10139aa
movzx eax, word [esi + 0xe]
imul eax, dword [esi + 4]
add eax, 0x1f
shr eax, 5
imul eax, dword [esi + 8]
shl eax, 2
add edi, eax
mov dword [esi + 0x14], eax
jmp 0x10139ad
add edi, dword [esi + 0x14]
lea eax, [edi + 0xe]
push esi
mov dword [ebp - 0x12], eax
mov word [ebp - 0xe], bx
mov word [ebp - 0xc], bx
call fcn.010133ff
mov ecx, dword [esi]
push ebx
movzx eax, ax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [eax + ecx + 0xe]
mov dword [ebp - 0xa], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push 0xe
push eax
push dword [ebp + 0xc]
call ebx
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [ebp + 0xc]
call ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and al, 0xfc
add eax, 4
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10162ff
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x1030080
call sub.MSVCRT.dll__EH_prolog
push ecx
push ebx
mov ebx, ecx
cmp dword [ebx + 4], 0
je 0x101631a
xor eax, eax
jmp 0x10164f6
cmp dword [ebx + 8], 0
push edi
lea edi, [ebx + 8]
push esi
jne 0x10164f1
push 0x1003a44
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [edi], eax
je 0x10164eb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1003a3c
push eax
call esi
test eax, eax
mov dword [ebx + 0xc], eax
je 0x101646a
push 0x1003a34
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x10], eax
je 0x101646a
push 0x1003a2c
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x14], eax
je 0x101646a
push 0x1003a20
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x18], eax
je 0x101646a
push 0x1003a18
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x1c], eax
je 0x101646a
push 0x1003a0c
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x20], eax
je 0x101646a
push 0x1003a04
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x24], eax
je 0x101646a
push 0x10039f4
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x28], eax
je 0x101646a
push 0x10039e4
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x2c], eax
je 0x101646a
push 0x10039cc
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x30], eax
je 0x101646a
push 0x10039b8
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x34], eax
je 0x101646a
push 0x10039a4
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x38], eax
je 0x101646a
push 0x100398c
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x3c], eax
je 0x101646a
push 0x1003978
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x40], eax
je 0x101646a
push 0x1003964
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x44], eax
je 0x101646a
push 0x1003950
push dword [edi]
call esi
test eax, eax
mov dword [ebx + 0x48], eax
je 0x101646a
mov dword [ebx + 4], 1
cmp dword [ebx + 4], 0
je 0x1016493
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push 0
push eax
push 0x108
call dword [ebx + 0xc]
test eax, eax
mov dword [ebx + 0x4c], eax
jne 0x101648d
and dword [ebx + 4], eax
cmp dword [ebx + 4], 0
jne 0x10164f1
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x11
xor eax, eax
cmp dword [ebp + 8], eax
pop ecx
rep stosd dword es:[edi], eax
je 0x10164f1
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_2
and dword [ebp - 4], 0
push 0x7a74
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
push 4
push 0x80004005
push 0x1001f48
push dword [ebp - 0x10]
call fcn.0100d7ce
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
jmp 0x10164f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx + 4]
pop esi
pop edi
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x101a9ca
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
call fcn.0101b05c
mov ebx, eax
neg ebx
sbb ebx, ebx
xor eax, eax
inc ebx
cmp bl, al
je 0x101a9f8
lea ecx, [esp + 8]
push ecx
push eax
push esi
push 0x101ad25
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x64], eax
mov byte [esi + 0x1c], bl
mov al, bl
pop esi
pop ebx
pop ecx
ret

Function at 0x101aa01
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x64], edi
mov byte [esi + 0x60], 1
je 0x101aa64
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3a98
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x101aa58
push edi
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x68]
cmp eax, edi
je 0x101aa58
mov ecx, dword [eax + 0x24]
cmp ecx, edi
je 0x101aa4a
push dword [eax + 0x1c]
call ecx
mov ecx, dword [esi + 0x68]
cmp ecx, edi
je 0x101aa58
mov eax, dword [ecx]
push 1
call dword [eax + 4]
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x64], edi
lea ebx, [esi + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x48], edi
je 0x101aa9e
lea ebp, [esi + 0x44]
mov ecx, ebp
call sub.MFC42u.DLL_CPtrList::RemoveHead
mov edi, eax
mov eax, dword [edi + 0x24]
test eax, eax
je 0x101aa8b
push dword [edi + 0x1c]
call eax
test edi, edi
je 0x101aa98
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax + 4]
cmp dword [esi + 0x48], 0
jne 0x101aa76
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x101aaba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x101aac8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esi + 0x20]
test esi, esi
je 0x101aad6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x101b06e
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x218]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 5
push eax
push 0x20019
push esi
push 0x1004e7c
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101b119
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1001f48
mov esi, 0x104
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push esi
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x101b119
lea eax, [ebp - 0x420]
push esi
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
test eax, eax
pop ecx
jbe 0x101b134
lea eax, [ebp - 0x218]
push eax
jmp 0x101b139
push 0x1004e68
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
cmp eax, esi
je 0x101b168
push 0x1004e60
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x101b168
push esi
lea ecx, [ebx + 0x10]
push esi
add ebx, 0xc
push ecx
push ebx
call eax
cmp eax, esi
jne 0x101b168
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1020ff9
Capabilities:
Create thread

Disassembly:
mov eax, 0x103100e
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push esi
push edi
push 8
call sub.MFC42u.DLL_operatornew
mov esi, eax
pop ecx
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
test esi, esi
je 0x1021031
mov ecx, esi
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esi + 4]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_2
jmp 0x1021033
xor esi, esi
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1021095
push dword [ebp + 8]
mov ecx, esi
call sub.MFC42u.DLL_CString::operator_1
push dword [ebp + 0xc]
lea edi, [esi + 4]
mov ecx, edi
call sub.MFC42u.DLL_CString::operator_1
lea eax, [ebp - 0x14]
push eax
push 0
push esi
push 0x10210a5
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1021075
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1021095
mov ecx, edi
mov dword [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call sub.MFC42u.DLL_CString::CString
push esi
call sub.MFC42u.DLL_operatordelete
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 8
Function at 0x10259f2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x60], ebx
je 0x1025a0c
push 1
pop eax
jmp 0x1025b66
mov edi, 0xf1
mov dword [ebp - 0xc], ebx
push edi
push 0xcd
call fcn.0102b6c2
push edi
push 0xcd
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x1025a4e
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x1025a4e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
jne 0x1025a55
xor eax, eax
jmp 0x1025b66
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 2
push eax
call sub.MFC42u.DLL_operatornew
pop ecx
mov dword [ebp - 8], eax
xor ecx, ecx
cmp word [edi + 6], bx
jbe 0x1025aa2
lea edx, [edi + 8]
add eax, 8
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
mov dword [eax - 8], ecx
add dword [ebp - 4], 2
inc ecx
movzx edx, word [edx]
mov dword [eax - 4], edx
mov byte [eax], 4
mov byte [eax + 1], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
add eax, 0x14
movzx edx, word [edi + 6]
cmp ecx, edx
jl 0x1025a7a
call sub.MFC42u.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
cmp esi, ebx
jne 0x1025ab2
xor edx, edx
jmp 0x1025ab5
mov edx, dword [esi + 0x20]
movzx ecx, word [edi + 6]
push 0x14
push ebx
push ebx
push 0xf
push 0x10
push ecx
push dword [ebp - 8]
push 0xcd
push eax
push ecx
push 1
push 0x50800b48
push edx
call dword [sym.imp.COMCTL32.dll_CreateToolbarEx]
push dword [ebp - 8]
mov dword [esi + 0x60], eax
call sub.MFC42u.DLL_operatordelete
cmp dword [esi + 0x60], ebx
pop ecx
je 0x1025b63
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x20]
call edi
push 5
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x1c]
push eax
push dword [esi + 0x20]
call edi
mov eax, dword [ebp - 0x10]
push 4
sub eax, dword [ebp - 0x18]
pop ecx
push 3
cdq
idiv ecx
pop edi
movzx ecx, ax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
shl ecx, 0x10
cdq
idiv edi
movzx eax, ax
or ecx, eax
push ecx
push ebx
push 0x41f
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x20]
push 0x14
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
push 1
pop edi
push edi
push edi
push ebx
push dword [esi + 0x60]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10271a2
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x10316e8
call sub.MSVCRT.dll__EH_prolog
sub esp, 0xc
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
push dword [0x103a2e0]
xor ebx, ebx
xor edi, edi
call sub.MFC42u.DLL_CString::CString_3
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
jne 0x10271d4
push dword [0x103a2e4]
jmp 0x10271d7
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0102b548
mov esi, 0x1001f4c
lea ecx, [ebp - 0x10]
push esi
call fcn.0102b548
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0102b548
push esi
lea ecx, [ebp - 0x10]
call fcn.0102b548
push dword [0x103a2e8]
lea ecx, [ebp - 0x10]
call fcn.0102b548
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x10]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x102728d
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [ebp + 8]
mov eax, 0x104
push ecx
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
mov dword [ebp + 8], eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1027279
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::ReleaseBuffer
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.WINMM.dll_sndPlaySoundW]
push 1
pop edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
Function at 0x1028907
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x10318ac
call sub.MSVCRT.dll__EH_prolog
push ecx
push ebx
push esi
mov esi, 0xf1
push edi
push esi
push dword [ebp + 0xc]
call fcn.0102b6c2
push esi
mov edi, eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebx, ebx
cmp eax, ebx
je 0x10289d1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x10289d1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x10289d1
cmp word [esi + 6], bx
jbe 0x10289d1
lea edi, [esi + 8]
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString_2
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_2
movzx eax, word [edi]
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::LoadStringW
lea eax, [ebp - 0x10]
push 0xa
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.01028c50
lea eax, [ebp - 0x10]
push 0xa
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.01028c50
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
call sub.MFC42u.DLL_CToolBar::SetButtonText
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42u.DLL_CString::CString
movzx eax, word [esi + 6]
inc ebx
inc edi
inc edi
cmp ebx, eax
jl 0x1028960
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x1028e60
Capabilities:
Create directory
Get common file path
Get session user name

Disassembly:
mov eax, 0x1031950
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x10
push ebx
push esi
push edi
call fcn.0100c33c
test eax, eax
je 0x1028e87
call fcn.0100c33c
test eax, eax
je 0x1028e87
mov ebx, dword [eax + 0x20]
jmp 0x1028e89
xor ebx, ebx
mov edi, dword [ebp + 8]
push 0
mov esi, 0x104
push 0x1c
push esi
mov ecx, edi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_2
and dword [ebp - 4], 0
push 0xc44b
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
mov ebx, 0x1001f4c
lea eax, [ebp - 0x18]
push ebx
push edi
push eax
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp + 8]
push eax
call sub.MFC42u.DLL_operator_1
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::operator_1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call sub.MFC42u.DLL_CString::CString
push ebx
mov ecx, edi
call fcn.0102b548
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x1c], esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_2
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push dword [ebp + 0xc]
push eax
call sub.MFC42u.DLL_AfxFormatString1
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call sub.MFC42u.DLL_CString::operator_2
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8