joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457130
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 4], eax
push esi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [eax]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, esi
pop esi
sete al
add esp, 0x14
ret

Function at 0x4582d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword [esp], eax
mov edx, dword [esp + 0x20]
mov dword [esp + 4], eax
push esi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [eax]
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, esi
pop esi
sete al
add esp, 0x14
ret

Function at 0x45bc70
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov dword [esi + 0xe8], 0
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x45b5f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0xcc], eax
jne 0x45bcb6
mov ecx, dword [0x50cb5c]
push eax
push eax
mov edx, dword [ecx*4 + 0x4dc0b8]
mov ecx, esi
push edx
call sub.MFC42u.DLL_CWnd::MessageBoxW
pop esi
pop ecx
ret
Function at 0x462159
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x483940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
lea ebx, [esi + 0x60]
mov ecx, ebx
call fcn.0040bfc0
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xd0]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call fcn.0041e580
add esp, 0xc
cmp al, 1
jne 0x4622a4
push ebp
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0x28], esi
mov ebp, dword [eax]
lea edi, [eax + 4]
cmp ebp, esi
jbe 0x462283
push 0
push 0
push 0
push 0
push edi
push esi
push 1
mov ecx, ebx
call sub.MFC42u.DLL_CListCtrl::InsertItem
lea eax, [edi + 0x28]
mov ecx, ebx
push eax
push 1
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x234]
lea edx, [esp + 0x10]
push ecx
push str.0x_04X
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 2
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x238]
lea edx, [esp + 0x10]
push ecx
push str.0x_08X
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 3
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x230]
lea edx, [esp + 0x10]
push ecx
push 0x49c3f0
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 4
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov ecx, dword [edi + 0x23c]
lea edx, [esp + 0x10]
push ecx
push 0x49c3f0
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, ebx
push eax
push 5
push esi
call sub.MFC42u.DLL_CListCtrl::SetItemText
inc esi
add edi, 0x240
cmp esi, ebp
jb 0x4621af
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov esi, dword [esp + 0x1c]
pop edi
pop ebp
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
mov ecx, dword [esi + 0x80]
push 0
push 0
push 0x1004
push ecx
mov dword [esp + 0x30], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x50cb5c]
mov ecx, dword [esi + 0xcc]
push eax
mov eax, dword [edx*4 + 0x4dcd60]
lea edx, [esp + 0x10]
push eax
push ecx
push str.__s__s__d_
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0x14
mov ecx, esi
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
push 0
mov ecx, ebx
call fcn.0040c3b0
lea ecx, [esp + 0xc]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4643d0
Capabilities:
Check if file exists

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x483b8c
push eax
mov dword fs:[0], esp
sub esp, 0x354
push ebx
push ebp
mov ebp, dword [esp + 0x370]
xor bl, bl
push edi
mov edi, ecx
test ebp, ebp
jbe 0x464590
push 0
push str.All_Files__._.
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x38]
call sub.MFC42u.DLL_CFileDialog::CFileDialog
lea ecx, [esp + 0x20]
mov dword [esp + 0x368], 0
call sub.MFC42u.DLL_CFileDialog::DoModal
cmp eax, 1
jne 0x464565
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CFileDialog::GetPathName
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x36c], 1
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x464484
mov eax, dword [0x50cb5c]
push 0x34
mov ecx, edi
mov edx, dword [eax*4 + 0x4dd788]
mov eax, dword [eax*4 + 0x4dd77c]
push edx
push eax
call sub.MFC42u.DLL_CWnd::MessageBoxW
cmp eax, 6
jne 0x464553
push ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x464535
mov ecx, dword [esp + 0x374]
mov edx, dword [edi + 0x214]
mov eax, dword [edi + 0x210]
push esi
push ebp
push ecx
push edx
push eax
call fcn.0041f3f0
add esp, 0x14
cmp al, 1
jne 0x46450d
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CFile::CFile
mov ecx, dword [esp + 0x10]
push 0
push 0x1001
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x378], 2
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x4644fc
push ebp
push esi
lea ecx, [esp + 0x1c]
call sub.MFC42u.DLL_CFile::Write
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CFile::Close
mov bl, 1
lea ecx, [esp + 0x14]
mov byte [esp + 0x36c], 1
call fcn.0047bbe4
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
cmp bl, 1
jne 0x464535
mov eax, dword [0x50cb5c]
push 0
mov edx, dword [eax*4 + 0x4dd788]
mov eax, dword [eax*4 + 0x4dd794]
push edx
push eax
jmp 0x46454c
mov eax, dword [0x50cb5c]
push 0
mov ecx, dword [eax*4 + 0x4dd788]
mov edx, dword [eax*4 + 0x4dd7a0]
push ecx
push edx
mov ecx, edi
call sub.MFC42u.DLL_CWnd::MessageBoxW
lea ecx, [esp + 0x10]
mov byte [esp + 0x36c], 0
call sub.MFC42u.DLL_CString::CString
pop esi
lea ecx, [esp + 0xd0]
mov dword [esp + 0x368], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov dword [esp + 0x368], 0xffffffff
call fcn.0047bb18
mov ecx, dword [esp + 0x360]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x360
ret 8
Function at 0x468806
Capabilities:
Enumerate gui resources

Disassembly:
push 0xffffffffffffffff
push 0x484118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x60]
mov ecx, edi
call fcn.0040bfc0
mov ecx, esi
call fcn.00468590
test eax, eax
jne 0x46882b
push esi
push 0x4683b0
call dword [sym.imp.USER32.dll_EnumWindows]
push 3
mov ecx, edi
call fcn.0040c3b0
lea ecx, [esp + 8]
call sub.MFC42u.DLL_CString::CString_4
mov eax, dword [esi + 0xd0]
push 0
test eax, eax
push 0
mov dword [esp + 0x1c], 0
push 0x1004
jne 0x46888f
mov eax, dword [esi + 0x80]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [0x50cb5c]
push eax
mov eax, dword [esi + 0xcc]
mov edx, dword [ecx*4 + 0x4de318]
lea ecx, [esp + 0xc]
push edx
push eax
push str.__s__s__d_
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x14
jmp 0x4688bc
mov edx, dword [esi + 0x80]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [0x50cb5c]
lea edx, [esp + 0xc]
mov ecx, dword [eax*4 + 0x4de318]
push ecx
push str._s__d_
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
mov eax, dword [esp + 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CWnd::SetWindowTextW
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x469cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x54cd28]
push ebx
cmp eax, 1
push ebp
jne 0x469d37
mov ebx, dword [esp + 0xc]
push 1
lea eax, [ebx + 0xf]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x469d37
mov ebp, dword [esp + 0x10]
push esi
push edi
mov ecx, 0x10
mov edi, ebp
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
pop esi
je 0x469d0c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x469d37
lea ecx, [esp + 0xc]
push ecx
push 0x40
push 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp]
mov dword [ebx], edx
mov eax, dword [ebp + 4]
mov dword [ebx + 4], eax
mov ecx, dword [ebp + 8]
mov dword [ebx + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 0xc], edx
pop ebp
pop ebx
ret

Function at 0x469d40
Capabilities:
Continue service
Query service status
Start service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x469dc1
push ebx
push esi
push 0x54
push str.CryptSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x469dbc
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x469db9
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x469da6
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
cmp eax, 7
jne 0x469db9
lea ecx, [esp + 0xc]
push ecx
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret
Function at 0x46a0f0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48e718
push 0x47c06c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, 0xffffffff
je 0x46a1f7
call fcn.00469d40
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46a1e4
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x28]
push eax
push ebx
lea ecx, [ebp - 0x20]
push ecx
push 0x46a0c0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x46a1f0
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46a199
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], 0x20100607
jne 0x46a1c3
mov ebx, 1
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
jmp 0x46a1f0
push edi
push esi
call fcn.00469dd0
add esp, 8
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b3b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484410
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
xor edi, edi
mov ebx, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], edi
mov word [esp + 0x14], di
mov dword [esp + 0x16], ebx
mov word [esp + 0x1a], ax
call sub.MFC42u.DLL_CString::CString_4
push 0x4de6cc
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 1
call fcn.0047bbb4
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx - 8]
cmp eax, edi
mov dword [esp + 0x10], eax
jle 0x46b45c
push ebp
lea ebp, [esp + 0x18]
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x10]
mov si, word [edx + edi*2]
push esi
call sub.MFC42u.DLL_CString::operator_2
cmp si, 0x2e
jne 0x46b452
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
lea ecx, [esp + 0x10]
mov word [ebp], ax
push 0x50ca78
call sub.MFC42u.DLL_CString::operator
mov ebx, dword [esp + 0x1a]
add ebp, 2
mov eax, dword [esp + 0x14]
inc edi
cmp edi, eax
jl 0x46b413
pop ebp
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
and esi, 0xffff
mov edx, dword [esp + 0x1a]
shl esi, 8
and ebx, 0xffff
and ecx, 0xffff
add esi, ebx
and edx, 0xffff
shl esi, 8
add esi, ecx
lea ecx, [esp + 0xc]
shl esi, 8
add esi, edx
mov byte [esp + 0x28], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x46b690
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x484453
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
push 0xcb
mov dword [esp + 0x18], ebp
call sub.MFC42u.DLL_CDialog::CDialog
mov dword [ebp], 0x486cdc
xor edi, edi
lea ecx, [ebp + 0x60]
mov dword [esp + 0x24], edi
call fcn.0040b5d0
mov ebx, 1
mov dword [ebp], 0x48e7f0
mov byte [esp + 0x24], bl
mov dword [ebp + 0xcc], edi
mov dword [ebp + 0xd0], edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jb 0x46b702
mov dword [ebp + 0xd0], ebx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
cmp esi, edi
je 0x46b7b5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlFormatCurrentUserKeyPath
push esi
call edi
push str.RtlFreeUnicodeString
push esi
mov ebx, eax
call edi
mov esi, eax
test ebx, ebx
mov dword [esp + 0x2c], esi
je 0x46b7b5
test esi, esi
je 0x46b7b5
lea ecx, [esp + 0x14]
push ecx
call ebx
test eax, eax
jne 0x46b7b5
mov edx, dword [esp + 0x14]
and edx, 0xffff
add edx, 2
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebp + 0xcc], edi
je 0x46b7ae
mov ecx, dword [esp + 0x14]
xor eax, eax
and ecx, 0xffff
add ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [ebp + 0xcc]
and ecx, 0xffff
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
push ecx
call esi
push ebp
push 0x600
mov ecx, ebp
call fcn.00403a90
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x46cb10
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x214]
push edi
mov edi, ecx
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x46cbc0
push 0x25
mov ecx, esi
call sub.MFC42u.DLL_CString::Find
test eax, eax
jl 0x46cb85
mov edx, dword [edi]
push esi
mov ecx, edi
call dword [edx + 0xf4]
test al, al
jne 0x46cb85
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jbe 0x46cb85
cmp eax, 0x103
jae 0x46cb85
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x49b1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
mov eax, dword [esi]
lea ecx, [esp + 8]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jbe 0x46cbc0
cmp eax, 0x103
jae 0x46cbc0
lea edx, [esp + 8]
mov word [esp + 0x210], 0
push edx
push 0x49b1d8
push esi
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
pop edi
pop esi
add esp, 0x20c
ret 4
Function at 0x46d0b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484610
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
push ebp
push esi
lea ecx, [esp + 0xc]
call sub.MFC42u.DLL_CString::CString_4
xor ebp, ebp
push 0x100000
mov dword [esp + 0x34], ebp
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x46d267
push edi
lea ecx, [esp + 0x18]
call fcn.0042e3d0
mov edi, dword [esp + 0x3c]
mov byte [esp + 0x34], 1
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
lea ecx, [esp + 0x18]
push eax
push edi
call fcn.0042e610
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push 0x20019
call fcn.0042e4b0
push eax
lea ecx, [esp + 0x24]
call fcn.0042e4c0
push eax
call fcn.0041e830
add esp, 0x10
cmp al, 1
jne 0x46d24e
mov dword [esp + 0x3c], ebp
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
push 0
push 0
push 1
push 0
push 0x100000
push esi
push 1
push ecx
push edx
push 0x21
call fcn.0041e8b0
add esp, 0x28
cmp al, 1
jne 0x46d243
mov eax, dword [esi + 0x10]
cmp eax, 2
jb 0x46d23a
cmp dword [esi + 8], 0xffffffff
je 0x46d23a
shr eax, 1
lea ecx, [esp + 0x10]
mov di, word [esi + eax*2 + 0x14]
lea eax, [esi + eax*2 + 0x14]
mov word [eax], 0
lea eax, [esi + 0x14]
push eax
push 0x49b1d8
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esi + 0x10]
add esp, 0xc
shr edx, 1
push 0
push 0
mov word [esi + edx*2 + 0x14], di
mov eax, dword [ebx + 0xc0]
push 0x1004
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
mov edi, eax
push 0
lea ebp, [ebx + 0xa0]
push ecx
push edi
push 1
mov ecx, ebp
call sub.MFC42u.DLL_CListCtrl::InsertItem
mov edx, dword [esp + 0x40]
mov ecx, ebp
push edx
push 1
push edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
mov eax, dword [esi + 8]
cmp dword [eax + esi], 0
je 0x46d219
lea ecx, [esp + 0x10]
push str.Enabled
push ecx
jmp 0x46d223
lea edx, [esp + 0x10]
push str.Disable
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, ebp
push eax
push 2
push edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
inc dword [esp + 0x3c]
jmp 0x46d14e
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 0
call fcn.0042e480
pop edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret 8
Function at 0x470a10
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem]
push esi
test eax, eax
mov esi, 0x4f1490
je 0x470a77
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esi]
lea eax, [esp + 0x10]
push eax
push 0x2001b
push 0
push ecx
push 0x80000001
call edi
test eax, eax
jne 0x470a6a
mov ecx, dword [esp + 0x10]
lea edx, [esi + 8]
push 4
push edx
push 4
push eax
mov eax, dword [esi + 4]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x10]
push edx
call ebp
mov eax, dword [esi + 0xc]
add esi, 0xc
test eax, eax
jne 0x470a35
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret

Function at 0x4762f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f2e0
push 0x47c06c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], edi
cmp dword [0x54cdac], edi
jne 0x476456
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, edi
je 0x476456
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, 0xff
xor edx, edx
mov dl, ah
and edx, 0xff
mov eax, edx
cmp ecx, 5
jne 0x4763ad
cmp eax, edi
jne 0x476375
mov dword [ebp - 0x20], 0x50b8b0
mov dword [ebp - 0x1c], 0x10
jmp 0x4763d9
cmp eax, 1
jne 0x47638a
mov dword [ebp - 0x20], 0x50b8a4
mov dword [ebp - 0x1c], 0xb
jmp 0x4763d9
cmp eax, 2
jne 0x4763d9
mov dword [ebp - 0x20], 0x50b8a4
mov dword [ebp - 0x1c], 0xb
mov dword [ebp - 0x2c], 0x50b894
mov dword [ebp - 0x38], 0xe
jmp 0x4763d9
cmp ecx, 6
jne 0x4763d9
cmp eax, edi
jne 0x4763c6
mov dword [ebp - 0x20], 0x50b888
mov dword [ebp - 0x1c], 0xa
jmp 0x4763d9
cmp eax, 1
jne 0x4763d9
mov dword [ebp - 0x20], 0x50b87c
mov dword [ebp - 0x1c], 8
cmp dword [ebp - 0x20], edi
je 0x476456
mov dword [ebp - 4], edi
xor ebx, ebx
mov dword [ebp - 0x40], ebx
cmp ebx, 0x70000
jae 0x47644f
lea edx, [ebx + esi]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x476404
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x476423
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x47643d
mov ecx, dword [ebp - 0x38]
mov esi, edx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x47641f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x47643d
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebx + ecx - 4]
mov dword [ebp - 0x34], eax
cmp eax, ecx
jbe 0x47643d
cmp eax, 0x80000000
jae 0x47643d
mov dword [0x54cdac], eax
inc ebx
mov dword [ebp - 0x40], ebx
mov esi, dword [ebp - 0x24]
jmp 0x4763e6
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret