joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x10026368
xor eax, eax
jmp 0x100263b9
mov ecx, 0x1004cb58
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov ecx, 0x1004cb58
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
je 0x100263b6
xor eax, eax
jmp 0x100263b9
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x10026630
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7f0
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x7f0], ecx
mov ecx, 0x1c
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionProfileList
lea edi, [ebp - 0x80]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x88]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x80]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10026684
xor eax, eax
jmp 0x1002684b
mov word [ebp - 0x2b0], 0
push 0x206
push 0
lea edx, [ebp - 0x2ae]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
mov word [ebp - 0x4c8], 0
push 0x206
push 0
lea eax, [ebp - 0x4c6]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x2bc], 0x104
mov dword [ebp - 0x90], 0
lea ecx, [ebp - 0xa4]
push ecx
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x2b8]
push eax
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x84]
push edx
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x98]
push ecx
lea edx, [ebp - 0x90]
push edx
push 0
lea eax, [ebp - 0x2bc]
push eax
lea ecx, [ebp - 0x4c8]
push ecx
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x2b4], eax
cmp dword [ebp - 0x90], 0
je 0x10026846
mov byte [ebp - 0x7e0], 0
push 0x103
push 0
lea eax, [ebp - 0x7df]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x7e8], 0x104
mov word [ebp - 0x6d8], 0
push 0x206
push 0
lea ecx, [ebp - 0x6d6]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x4cc], 0x104
mov dword [ebp - 0x7e4], 0
mov dword [ebp - 0x7ec], 0
jmp 0x100267b3
mov edx, dword [ebp - 0x7ec]
add edx, 1
mov dword [ebp - 0x7ec], edx
mov eax, dword [ebp - 0x7ec]
cmp eax, dword [ebp - 0x90]
jae 0x10026846
mov word [ebp - 0x6d8], 0
mov dword [ebp - 0x4cc], 0x104
mov dword [ebp - 0x7e8], 0x104
mov ecx, dword [ebp - 0x4cc]
push ecx
lea edx, [ebp - 0x6d8]
push edx
mov eax, dword [ebp - 0x7ec]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x7e4], eax
cmp dword [ebp - 0x7e4], 0
je 0x10026815
jmp 0x100267a4
push str..bak
lea edx, [ebp - 0x6d8]
push edx
call fcn.10002de0
add esp, 8
test eax, eax
je 0x10026841
lea eax, [ebp - 0x6d8]
push eax
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x100267a4
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret
Function at 0x100268a0
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x30], ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x30]
call fcn.10025b30
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x100268d1
jmp 0x10026942
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 1
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10026900
jmp 0x10026942
push 0xf01ff
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x1002691e
jmp 0x10026942
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esp, ebp
pop ebp
ret 4
Function at 0x10026c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], ecx
mov ecx, dword [ebp - 0x41c]
call fcn.100265c0
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov word [ebp - 0x418], 0
push 0x206
push 0
lea edx, [ebp - 0x416]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str._s_net.exe
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x418]
push edx
mov ecx, dword [ebp - 0x41c]
call fcn.10025e10
test eax, eax
jne 0x10026d25
mov ecx, dword [ebp - 0x41c]
call fcn.10026550
xor eax, eax
jmp 0x10026d8c
push 0x104
push 0
lea eax, [ebp - 0x418]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push str._sVssvc.exe
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp - 0x41c]
call fcn.10025e10
test eax, eax
jne 0x10026d7c
mov ecx, dword [ebp - 0x41c]
call fcn.10026550
xor eax, eax
jmp 0x10026d8c
mov ecx, dword [ebp - 0x41c]
call fcn.10026550
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret
Function at 0x100273b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x64]
call fcn.100265c0
mov dword [ebp - 0x60], 0x44
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x34], 1
mov word [ebp - 0x30], 0
mov dword [ebp - 4], 0x8000000
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x60]
push edx
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10027424
mov ecx, dword [ebp - 0x64]
call fcn.10026550
mov eax, dword [ebp - 0x18]
jmp 0x1002746b
cmp dword [ebp + 0xc], 0
je 0x1002744c
push 0xffffffffffffffff
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10027460
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x64]
call fcn.10026550
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 8
Function at 0x100276f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], ecx
mov word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov word [ebp - 0x418], 0
push 0x206
push 0
lea edx, [ebp - 0x416]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push str._s_net.exe_start_dhcp
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea edx, [ebp - 0x418]
push edx
mov ecx, dword [ebp - 0x41c]
call fcn.100273b0
test eax, eax
jne 0x10027791
xor eax, eax
jmp 0x10027796
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret
Function at 0x10027d70
Capabilities:
Check if file exists
Get disk information
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
mov byte [ebp - 0x230], 0
push 0x103
push 0
lea eax, [ebp - 0x22f]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov byte [ebp - 0x120], 0
push 0x103
push 0
lea ecx, [ebp - 0x11f]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x124], 0
push 0x400
push 0
lea edx, [ebp - 0x638]
push edx
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea ecx, [ebp - 0x120]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x10027e57
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x230]
push edx
call sub.ntdll.dll_strcpy
add esp, 8
push str.SYSTAG.BIN
lea eax, [ebp - 0x230]
push eax
call sub.ntdll.dll_strcat
add esp, 8
lea ecx, [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10027e3f
jmp 0x10027e57
mov edx, dword [ebp - 4]
push edx
call sub.ntdll.dll_strlen
add esp, 4
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 1]
mov dword [ebp - 4], edx
jmp 0x10027dfa
push 0
push 2
push 3
push 0
push 3
push SysReAllocString
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0xffffffff
jne 0x10027e8d
mov eax, dword [ebp - 0x124]
jmp 0x10027f4f
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp dword [ebp - 0x10], 0x400
jne 0x10027ead
cmp dword [ebp - 0xc], 0
je 0x10027ec5
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x124]
jmp 0x10027f4f
mov dword [ebp - 0x234], 0
push 0
lea ecx, [ebp - 0x234]
push ecx
push 0x400
lea edx, [ebp - 0x638]
push edx
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x124], 0
je 0x10027f49
cmp dword [ebp + 8], 0
je 0x10027f21
lea edx, [ebp - 0x438]
mov dword [ebp - 0x640], edx
jmp 0x10027f2d
lea eax, [ebp - 0x638]
mov dword [ebp - 0x640], eax
mov ecx, dword [ebp - 0x640]
mov dword [ebp - 0x63c], ecx
mov esi, dword [ebp - 0x63c]
mov ecx, 0x80
mov edi, dword [ebp + 0xc]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x124]
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret

Function at 0x10027f60
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x10027f9a
mov eax, 1
jmp 0x10027f9c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret
Function at 0x10027fb0
Capabilities:
Create service
Get common file path
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x1003ff58
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], 0
cmp dword [ebp - 0x214], 0
je 0x10027fff
push 0x1003ff74
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
je 0x10028010
push 0
call dword [ebp - 0x218]
mov word [ebp - 0x210], 0
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x21c], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1002815e
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
movzx ecx, word [ebp + eax*2 - 0x212]
cmp ecx, 0x5c
je 0x100280b6
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
movzx eax, word [ebp + eax*2 - 0x212]
cmp eax, 0x2f
je 0x100280b6
push 0x1003ff94
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.ntdll.dll_wcscat]
add esp, 8
push 0x1003ff98
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.ntdll.dll_wcscat]
add esp, 8
push 0xf01ff
push 0x1003ffc4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jne 0x1002813e
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
push 0
push 2
push 1
push 0xf01ff
push 0x1003ffd8
push 0x1003ffec
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x1002813e
push 0
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
cmp dword [ebp - 0x21c], 0
je 0x10028154
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x218], 0
je 0x1002816f
push 1
call dword [ebp - 0x218]
cmp dword [ebp - 0x214], 0
je 0x10028185
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret
Function at 0x10028520
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x154], ecx
mov word [ebp - 0x150], 0
push 0xfe
push 0
lea eax, [ebp - 0x14e]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov word [ebp - 0x48], 0
push 0x3e
push 0
lea ecx, [ebp - 0x46]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
movzx edx, word [ebp + 0x10]
push edx
push str._c:_
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR80.dll__swprintf]
add esp, 0xc
push 0x80
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
mov dword [ebp - 0x4c], eax
push 0x10040690
lea eax, [ebp - 0x150]
push eax
call fcn.10002de0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100285d2
push 0x26
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR80.dll_wcsncpy_s]
add esp, 0x10
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100286f0
Capabilities:
Manipulate boot configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov word [ebp - 0x308], 0
push 0xfe
push 0
lea eax, [ebp - 0x306]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x80
lea edx, [ebp - 0x308]
push edx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
mov word [ebp - 0x208], 0
push 0x1fe
push 0
lea eax, [ebp - 0x206]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov word [ebp - 0x508], 0
push 0x1fe
push 0
lea ecx, [ebp - 0x506]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
lea edx, [ebp - 0x308]
push edx
push str._s_boot.ini
lea eax, [ebp - 0x208]
push eax
call fcn.10004e10
add esp, 0xc
lea ecx, [ebp - 0x308]
push ecx
push str._s_bootmgr
lea edx, [ebp - 0x508]
push edx
call fcn.10004e10
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call fcn.10027cd0
add esp, 4
test eax, eax
jne 0x100287d5
lea ecx, [ebp - 0x508]
push ecx
call fcn.10027cd0
add esp, 4
test eax, eax
je 0x100287dc
mov eax, 1
jmp 0x100287de
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret
Function at 0x1002bc00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.10010670
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
call fcn.1002ac70
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1002bcec
mov byte [ebp - 0x102c], 0
xor ecx, ecx
mov dword [ebp - 0x102b], ecx
mov dword [ebp - 0x1027], ecx
mov dword [ebp - 0x1023], ecx
mov dword [ebp - 0x101f], ecx
mov dword [ebp - 0x101b], ecx
mov dword [ebp - 0x1017], ecx
mov dword [ebp - 0x1013], ecx
mov word [ebp - 0x100f], cx
mov byte [ebp - 0x100d], cl
mov edx, dword [ebp + 8]
push edx
push 0x100401e4
lea eax, [ebp - 0x102c]
push eax
call dword [sym.imp.ntdll.dll_sprintf]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
lea ecx, [ebp - 0x102c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x1002bcec
call sym.Comn.dll_GetObjectLog
mov dword [ebp - 0x1030], eax
push 0x77
push 0x10040238
call fcn.100287f0
add esp, 8
push eax
push str._s:_Failed_to_get_disk_signature
mov edx, dword [ebp - 0x1030]
push edx
mov eax, dword [ebp - 0x1030]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
call edx
add esp, 0xc
xor eax, eax
jmp 0x1002bd5e
mov byte [ebp - 0x1008], 0
push 0xfff
push 0
lea eax, [ebp - 0x1007]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x100c], 0
push 0
lea ecx, [ebp - 0x100c]
push ecx
push 0x1000
lea edx, [ebp - 0x1008]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002bd44
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1002bd5e
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xe50]
mov dword [eax], ecx
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret
Function at 0x1002c240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x1002c253
xor eax, eax
jmp 0x1002c2d9
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x1002c2d0
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002c2a1
cmp dword [ebp - 0xc], 0
jne 0x1002c2af
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
mov byte [ecx], 0
mov eax, dword [ebp - 8]
jmp 0x1002c2d9
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp ecx, 0xa
jne 0x1002c2ce
jmp 0x1002c2d0
jmp 0x1002c272
mov eax, dword [ebp - 4]
mov byte [eax], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x1002c2e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x1002c2f3
xor eax, eax
jmp 0x1002c380
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
shr eax, 1
cmp dword [ebp - 8], eax
jae 0x1002c375
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0xc]
push ecx
push 2
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1002c343
cmp dword [ebp - 0xc], 0
jne 0x1002c354
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov word [edx + ecx*2], 0
mov eax, dword [ebp - 8]
jmp 0x1002c380
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
movzx edx, word [ecx]
mov eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
cmp edx, 0xa
jne 0x1002c373
jmp 0x1002c375
jmp 0x1002c312
mov ecx, dword [ebp - 4]
mov word [ecx], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1002dd00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x1004c024]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push str.SystemCurrentControlSetControl
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1002dd3e
xor eax, eax
jmp 0x1002ddfb
mov word [ebp - 0x810], 0
push 0x7fe
push 0
lea ecx, [ebp - 0x80e]
push ecx
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0x400
mov dword [ebp - 0x814], 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
push ecx
push 0
push str.SystemStartOptions
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1002dda8
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1002ddfb
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x810]
push edx
call dword [sym.imp.ntdll.dll__wcslwr]
add esp, 4
push str.winpe
lea eax, [ebp - 0x810]
push eax
call fcn.10002de0
add esp, 8
test eax, eax
jne 0x1002ddf2
push str..wim
lea ecx, [ebp - 0x810]
push ecx
call fcn.10002de0
add esp, 8
test eax, eax
je 0x1002ddf9
mov eax, 1
jmp 0x1002ddfb
xor eax, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000f6c2
mov esp, ebp
pop ebp
ret