joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fe10
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x10
xor eax, eax
push eax
push 0x80
push 3
push eax
push 3
push bind
push str..C:
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42fe54
or eax, 0xffffffff
add esp, 0x10
ret
push 0
lea ecx, [esp + 4]
push ecx
push 0xc
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42fe4d
mov eax, dword [esp + 8]
add esp, 0x10
ret
Function at 0x4322b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebx
xor edi, edi
push ebp
mov dword [esp + 0x1c], edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x4322fc
push eax
push eax
push edi
push esi
mov esi, dword [esp + 0x20]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4322fc
mov edx, dword [esi]
push edi
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
pop edi
pop esi
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebp
ret 8

Function at 0x432380
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1010
call fcn.004646d0
mov eax, dword [0x48602c]
xor eax, esp
mov dword [esp + 0x100c], eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x101c]
mov ebx, eax
lea eax, [esp + 0x1020]
push eax
push ecx
call dword [sym.imp.MSVCR80.dll__vscprintf]
add eax, 1
add esp, 8
cmp eax, 0x1000
jg 0x432430
mov eax, dword [esp + 0x101c]
lea edx, [esp + 0x1020]
push edx
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.MSVCR80.dll_vsprintf]
mov edi, eax
add esp, 0xc
test edi, edi
jl 0x432430
cmp byte [esi + 5], 0
je 0x4323fa
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [esi + 7], 0
je 0x43240c
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00432730
cmp byte [esi + 4], 0
je 0x432430
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x1014]
pop edi
pop ebx
xor ecx, esp
call fcn.0043ad38
add esp, 0x1010
ret

Function at 0x432450
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x2010
call fcn.004646d0
mov eax, dword [0x48602c]
xor eax, esp
mov dword [esp + 0x200c], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x2024]
mov ebp, eax
lea eax, [esp + 0x2028]
push eax
push ecx
call dword [sym.imp.MSVCR80.dll__vscwprintf]
add eax, 1
add esp, 8
cmp eax, 0x1000
jg 0x432501
mov eax, dword [esp + 0x2024]
lea edx, [esp + 0x2028]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.MSVCR80.dll__vswprintf]
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x432501
cmp byte [ebx + 5], 0
je 0x4324ce
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp byte [ebx + 7], 0
je 0x4324dd
lea edi, [esp + 0x18]
call fcn.00432990
cmp byte [ebx + 4], 0
je 0x432501
mov edx, dword [ebx]
push 0
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
push edx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x201c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043ad38
add esp, 0x2010
ret
Function at 0x432990
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x465f79
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x48602c]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov eax, dword [0x48602c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, edi
mov dword [esp + 0x30], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4329d6
sub eax, edx
sar eax, 1
add eax, eax
add eax, eax
push eax
push 1
call dword [sym.imp.MSVCR80.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
jne 0x432a11
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
jmp 0x432a7e
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x432a16
push 0
push 0
sub eax, edx
sar eax, 1
lea ecx, [eax*4]
push ecx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
lea ecx, [esp + 8]
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 ecx, ebx
call fcn.00432730
test al, al
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 8]
je 0x432a07
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0043ad38
add esp, 0x2c
ret
Function at 0x432aa0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x2c8
mov eax, dword [0x48602c]
xor eax, esp
mov dword [esp + 0x2c4], eax
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push edi
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x98
lea ecx, [esp + 0x34]
push 0
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push str.IsWow64Process
push str.kernel32
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x432b44
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
push 0x1ff
lea ecx, [esp + 0xcd]
push 0
push ecx
mov byte [esp + 0xd4], 0
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
push str.Version___d._d._d_r_n
mov ecx, 0x200
lea edi, [esp + 0xe4]
call fcn.004124c0
add esp, 0x1c
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
push str._SystemInfo__r_n
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov edx, edi
push edx
mov ecx, esi
call dword [0x4682c8]
cmp dword [esp + 4], 0
mov ecx, esi
je 0x432bb8
push str.SystemType__64Bit_r_n
jmp 0x432bbd
push str.SystemType__32Bit_r_n
call dword [0x4682c8]
push 0x200
lea eax, [esp + 0xcc]
push 0
push eax
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x28]
push ecx
push str.NumberOfProcessors:___d_r_n
mov ecx, 0x200
lea edi, [esp + 0xdc]
call fcn.004124c0
add esp, 0x14
mov edx, edi
push edx
mov ecx, esi
call dword [0x4682c8]
push str._r_n_r_n
mov ecx, esi
call dword [0x4682c8]
mov ecx, dword [esp + 0x2c8]
pop edi
xor ecx, esp
call fcn.0043ad38
add esp, 0x2c8
ret
Function at 0x432cd0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4659ec
mov eax, dword fs:[0]
push eax
mov eax, 0x202c
call fcn.004646d0
mov eax, dword [0x48602c]
xor eax, esp
mov dword [esp + 0x2028], eax
push esi
push edi
mov eax, dword [0x48602c]
xor eax, esp
push eax
lea eax, [esp + 0x2038]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
push str.SYSTEMCurrentControlSetControlhivelist
xor edi, edi
push reloc.WS2_32.dll_bind
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, edi
je 0x432d3a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x432dfa
push 0x1ffe
lea ecx, [esp + 0x3a]
push edi
push ecx
mov dword [esp + 0x1c], edi
mov word [esp + 0x40], di
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
push str._registryuser_s_1_5_19
push edx
mov dword [esp + 0x2c], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
je 0x432d98
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x432dfa
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10], 1
jne 0x432d33
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x1c]
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__]
lea esi, [esp + 0x18]
mov dword [esp + 0x2040], edi
call fcn.00431730
push edi
push str.device_ramdisk
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
test eax, eax
mov dword [esp + 0x2040], 0xffffffff
mov ecx, esi
je 0x432df2
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__::destructor_void_]
xor al, al
jmp 0x432dfa
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__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 0x2038]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2028]
xor ecx, esp
call fcn.0043ad38
add esp, 0x2038
ret
Function at 0x4341b0
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret
Function at 0x435380
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4659b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x48602c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
push 0x10
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x43550b
xor ebx, ebx
push ebx
lea edi, [esp + 0x18]
mov ecx, esi
mov dword [esp + 0x18], ebx
call fcn.004355e0
mov dword [esp + 0x20], vtable.MemoryControl.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x24]
call fcn.00436500
mov ebx, eax
push ebx
mov ecx, esi
mov dword [esp + 0x20], ebx
call fcn.004355e0
test al, al
je 0x4354f9
mov eax, 0x4ec4ec4f
mul dword [esp + 0x14]
shr edx, 5
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
je 0x4354f9
lea esi, [ebx + 7]
mov edi, dword [ebp + 8]
mov eax, 0x10
lea ecx, [esi - 3]
mov edx, dword [edi]
cmp edx, dword [ecx]
jne 0x43544c
sub eax, 4
add ecx, 4
add edi, 4
cmp eax, 4
jae 0x435434
test eax, eax
je 0x4354a9
movzx edx, byte [edi]
movzx ebx, byte [ecx]
sub edx, ebx
jne 0x43549b
sub eax, 1
add ecx, 1
add edi, 1
test eax, eax
je 0x4354a9
movzx edx, byte [edi]
movzx ebx, byte [ecx]
sub edx, ebx
jne 0x43549b
sub eax, 1
add ecx, 1
add edi, 1
test eax, eax
je 0x4354a9
movzx edx, byte [edi]
movzx ebx, byte [ecx]
sub edx, ebx
jne 0x43549b
sub eax, 1
add ecx, 1
add edi, 1
test eax, eax
je 0x4354a9
movzx edx, byte [edi]
movzx eax, byte [ecx]
sub edx, eax
je 0x4354a9
test edx, edx
mov eax, 1
jg 0x4354ab
or eax, 0xffffffff
jmp 0x4354ab
xor eax, eax
test eax, eax
jne 0x4354e1
xor ecx, ecx
movzx edi, byte [esi + eax - 1]
movzx edx, byte [esi + eax - 2]
add edx, edi
movzx edi, byte [esi + eax - 3]
add edx, edi
movzx edi, byte [esi + eax + 1]
add edx, edi
movzx edi, byte [esi + eax]
add edi, ecx
add eax, 5
cmp eax, 0x64
lea ecx, [edi + edx]
jl 0x4354b1
cmp ecx, dword [esi - 7]
je 0x435522
mov eax, dword [esp + 0x18]
add eax, 1
add esi, 0x68
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
jb 0x435429
mov eax, dword [esp + 0x24]
test eax, eax
je 0x43550b
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
xor al, al
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
push 0x68
push 0
push edi
call sub.MSVCR80.dll_memset
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
imul esi, esi, 0x68
add esi, dword [esp + 0x28]
add esp, 0xc
test eax, eax
mov ecx, 0x1a
rep movsd dword es:[edi], dword [esi]
je 0x435556
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x436b50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x47bc84
push ebx
call dword [sym.imp.MSVCR80.dll_strstr]
add esp, 8
test eax, eax
jne 0x436b76
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x436b76
xor eax, eax
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov edi, dword [sym.imp.MSVCR80.dll__fsopen]
xor esi, esi
mov ecx, dword [esp + 0x10]
push 0x10
push ebx
push ecx
call edi
add esp, 0xc
test eax, eax
jne 0x436ba9
push 0x64
call ebp
add esi, 1
cmp esi, 0x3e8
jl 0x436b87
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x437920
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x437977
cmp byte [ebp + 0x2c], 0
jne 0x43796e
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 2
mov ebx, dword [str.Failed_to_open_file]
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x437950
sub eax, edx
lea esi, [ebp + 0x34]
mov edi, eax
call fcn.00438b10
or eax, 0xffffffff
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x3c], eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 8
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x437991
mov edi, edi
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x437980
mov esi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
or eax, 0xffffffff
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x1c], edi
push edi
push ebx
mov dword [ebp + 8], eax
mov dword [ebp + 4], eax
call esi
push ebx
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
push 0
push ebx
mov edi, eax
call esi
add esp, 0x1c
test edi, edi
jg 0x4379ee
cmp byte [ebp + 0x2c], 0
jne 0x43796e
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 0xc
mov ebx, dword [str.Error_document_empty.]
mov eax, ebx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4379e0
jmp 0x437959
lea eax, [edi + 1]
push eax
call fcn.0043ae6c
push ebx
push 1
mov esi, eax
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x14
cmp eax, 1
je 0x437a46
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [ebp + 0x2c], 0
jne 0x43796e
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 2
mov ebx, dword [str.Failed_to_open_file]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x437a38
jmp 0x437959
mov byte [esi + edi], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x437a77
mov dl, byte [eax]
cmp dl, 0xd
jne 0x437a6a
mov byte [ecx], 0xa
add eax, 1
add ecx, 1
cmp byte [eax], 0xa
jne 0x437a72
jmp 0x437a6f
mov byte [ecx], dl
add ecx, 1
add eax, 1
cmp byte [eax], 0
jne 0x437a53
mov eax, dword [esp + 0x18]
push eax
mov byte [ecx], 0
mov edx, dword [ebp]
mov edx, dword [edx + 8]
push 0
push esi
mov ecx, ebp
call edx
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
xor eax, eax
cmp byte [ebp + 0x2c], al
pop esi
pop ebp
sete al
pop ebx
ret 8
Function at 0x43c0b0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x48602c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov word [ebp - 0x420], 0
push 0x206
push 0
lea eax, [ebp - 0x41e]
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
mov word [ebp - 0x218], 0
push 0x206
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
push 0x104
lea edx, [ebp - 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.C:WindowsSystem32Recoverywinre.wim
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
mov cx, word [ebp - 0x420]
mov word [ebp - 0x218], cx
mov dword [ebp - 8], 0
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43c17c
lea eax, [ebp - 0x218]
push eax
push 0x104
push 0xc9b030
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0043ad38
mov esp, ebp
pop ebp
ret
Function at 0x43c240
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x48602c]
xor eax, ebp
mov dword [ebp - 0x3c], eax
cmp dword [0x14a2458], 0
je 0x43c266
mov eax, dword [0x14a2458]
jmp 0x43c4a1
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc], eax
push str.RtlGetNtVersionNumbers
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
call dword [ebp - 0x14]
cmp dword [ebp - 4], 0xa
jne 0x43c2ab
cmp dword [ebp - 8], 0
jne 0x43c2ab
mov eax, 0x11
jmp 0x43c4a1
cmp dword [ebp - 4], 6
jne 0x43c2c1
cmp dword [ebp - 8], 3
jne 0x43c2c1
mov eax, 0x10
jmp 0x43c4a1
lea ecx, [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0x160], 0x11c
lea edx, [ebp - 0x160]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43c49c
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x164], 4
je 0x43c31e
cmp dword [ebp - 0x164], 5
je 0x43c38c
cmp dword [ebp - 0x164], 6
je 0x43c412
jmp 0x43c49c
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x168], ecx
cmp dword [ebp - 0x168], 0
je 0x43c347
cmp dword [ebp - 0x168], 0xa
je 0x43c371
cmp dword [ebp - 0x168], 0x5a
je 0x43c37d
jmp 0x43c387
cmp dword [ebp - 0x150], 2
jne 0x43c35c
mov dword [0x14a2458], 1
jmp 0x43c36f
cmp dword [ebp - 0x150], 1
jne 0x43c36f
mov dword [0x14a2458], 2
jmp 0x43c387
mov dword [0x14a2458], 3
jmp 0x43c387
mov dword [0x14a2458], 4
jmp 0x43c49c
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x16c], edx
cmp dword [ebp - 0x16c], 0
je 0x43c3b5
cmp dword [ebp - 0x16c], 1
je 0x43c3c1
cmp dword [ebp - 0x16c], 2
je 0x43c3cd
jmp 0x43c40d
mov dword [0x14a2458], 5
jmp 0x43c40d
mov dword [0x14a2458], 6
jmp 0x43c40d
movzx eax, byte [ebp - 0x46]
cmp eax, 1
jne 0x43c3eb
movzx ecx, word [ebp - 0x38]
cmp ecx, 9
jne 0x43c3eb
mov dword [0x14a2458], 7
jmp 0x43c40d
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x43c403
mov dword [0x14a2458], 8
jmp 0x43c40d
mov dword [0x14a2458], 9
jmp 0x43c49c
mov edx, dword [ebp - 0x158]
mov dword [ebp - 0x170], edx
cmp dword [ebp - 0x170], 0
je 0x43c43b
cmp dword [ebp - 0x170], 1
je 0x43c45c
cmp dword [ebp - 0x170], 2
je 0x43c47d
jmp 0x43c49c
movzx eax, byte [ebp - 0x46]
cmp eax, 1
jne 0x43c450
mov dword [0x14a2458], 0xa
jmp 0x43c45a
mov dword [0x14a2458], 0xb
jmp 0x43c49c
movzx ecx, byte [ebp - 0x46]
cmp ecx, 1
jne 0x43c471
mov dword [0x14a2458], 0xc
jmp 0x43c47b
mov dword [0x14a2458], 0xd
jmp 0x43c49c
movzx edx, byte [ebp - 0x46]
cmp edx, 1
jne 0x43c492
mov dword [0x14a2458], 0xe
jmp 0x43c49c
mov dword [0x14a2458], 0xf
mov eax, dword [0x14a2458]
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.0043ad38
mov esp, ebp
pop ebp
ret
Function at 0x43cd20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x48602c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], 0x20
mov word [ebp - 0x448], 0
push 0x206
push 0
lea ecx, [ebp - 0x446]
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov word [ebp - 0x210], 0
push 0x206
push 0
lea edx, [ebp - 0x20e]
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [ebp - 0x210]
push ecx
push 0x46cac4
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0x20000080
push 3
push 0
push 3
push bind
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
cmp dword [ebp - 0x214], 0xffffffff
jne 0x43ce0a
jmp 0x43ce60
push 0
lea ecx, [ebp - 0x23c]
push ecx
mov edx, dword [ebp - 0x218]
push edx
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push 0x560000
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43ce53
mov edx, dword [ebp - 0x230]
push edx
push 0x104
mov eax, dword [ebp + 8]
push eax
call fcn.0043c640
add esp, 0xc
mov ecx, dword [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043ad38
mov esp, ebp
pop ebp
ret