joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004d2f0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x21c
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [0x101572dc]
mov ecx, dword [0x101572e0]
mov edx, dword [0x101572e4]
mov dword [esp + 8], eax
mov eax, dword [0x101572e8]
push esi
mov dword [esp + 4], edx
movsx dx, byte [esp + 0x228]
mov dword [esp + 0x10], ecx
movsx cx, byte [esp + 0x224]
mov dword [esp + 8], eax
push edi
lea eax, [esp + 8]
push eax
mov word [esp + 0x14], cx
mov word [esp + 0xc], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
je 0x1004d3a9
push 0x2496
mov edi, str..UiRecord.cpp
call fcn.1002f930
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.GetDriveType_newMountPoint___DRIVE_NO_ROOT_DIR
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10130e50
add esp, 0x21c
ret
push 0x1fe
lea eax, [esp + 0x1e]
push 0
push eax
mov word [esp + 0x24], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x100
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x1004d42e
push 0x2499
mov edi, str..UiRecord.cpp
call fcn.1002f930
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.GetVolumeNameForVolumeMountPoint__oldMountPoint__guid__ARRAYSIZE_guid__
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10130e50
add esp, 0x21c
ret
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
jne 0x1004d48e
push 0x249a
mov edi, str..UiRecord.cpp
call fcn.1002f930
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push esi
push edi
push str.DeleteVolumeMountPoint_oldMountPoint_
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10130e50
add esp, 0x21c
ret
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
jne 0x1004d4e3
push 0x249b
mov edi, str..UiRecord.cpp
call fcn.1002f930
add esp, 4
push eax
push str.SetVolumeMountPoint_newMountPoint__guid_
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.100016d0
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.10130e50
add esp, 0x21c
ret
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.10130e50
add esp, 0x21c
ret
Function at 0x10054650
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x1014151c
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x228], eax
push ebp
push esi
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov esi, ecx
push 0x207
lea eax, [esp + 0x35]
push 0
push eax
mov byte [esp + 0x3c], 0
call sub.MSVCR80.dll_memset
lea edx, [esp + 0x3c]
add esp, 0xc
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x100546b0
mov ebp, dword [sym.imp.MSVCR80.dll_strtok_s]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push 0x101520cc
push edx
mov dword [esp + 0x1c], 0
call ebp
add esp, 0xc
lea ecx, [esp + 0x14]
mov esi, eax
xor edi, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
test esi, esi
mov dword [esp + 0x244], edi
je 0x10054740
jmp 0x10054700
add edi, 1
cmp dword [esp + 0x28], 0
je 0x10054719
push 0x101520cc
lea ecx, [esp + 0x18]
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
lea ecx, [esp + 0x18]
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__]
lea eax, [esp + 0x10]
push eax
push 0x101520cc
push 0
call ebp
add esp, 0xc
cmp edi, 2
mov esi, eax
jge 0x10054759
test esi, esi
jne 0x10054700
mov dword [esp + 0x244], 0xffffffff
lea ecx, [esp + 0x14]
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 0x10054789
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x10054768
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or ecx, 0xffffffff
mov dword [esp + 0x244], ecx
cmp eax, ecx
lea ecx, [esp + 0x14]
je 0x1005474f
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 + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x228]
xor ecx, esp
call fcn.10130e50
add esp, 0x238
ret
Function at 0x10063db0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10146999
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov dword [edi + 4], vtable.IConvert.0
xor ebx, ebx
mov dword [edi], vtable.CUiSync.0
mov dword [edi + 4], vtable.CUiSync.1.0
mov dword [esp + 0x18], edi
mov dword [edi + 0x42c], ebx
mov dword [edi + 0x430], ebx
mov dword [edi + 0x434], ebx
push 0x208
mov dword [esp + 0x4c], ebx
lea ebp, [edi + 0x14]
push ebx
push ebp
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x10], ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea eax, [edi + 0x21c]
push ebx
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3818
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov byte [esp + 0x48], 1
je 0x10063e64
mov esi, eax
call fcn.1002c1c0
jmp 0x10063e66
xor eax, eax
mov byte [esp + 0x48], bl
mov dword [edi + 0x424], eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x10]
call eax
mov ecx, dword [str.My_Sync]
mov edx, dword [0x10157ce0]
mov eax, dword [0x10157ce4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x10157ce8]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov ebx, 0x104
lea edx, [esp + 0x2c]
mov eax, ebp
mov dword [esp + 0x38], ecx
call fcn.10001650
mov ecx, dword [edi + 0x424]
mov edx, dword [ecx]
mov eax, dword [edx + 0x33c]
push ebp
call eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.RPCRT4.dll_UuidCreate]
mov esi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x424]
mov edx, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], esi
mov esi, dword [esp + 0x30]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x34]
mov dword [eax + 8], esi
mov esi, dword [esp + 0x38]
mov dword [eax + 0xc], esi
mov eax, dword [edx + 0x338]
call eax
mov eax, edi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10130e50
add esp, 0x3c
ret
Function at 0x100641d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x158c
call fcn.10132000
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x1588], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0xc], ecx
mov ecx, 0x3ca
lea edi, [esp + 0x260]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor edi, edi
push 0x3fe
lea eax, [esp + 0x1196]
push edi
push eax
mov word [esp + 0x119c], di
call sub.MSVCR80.dll_memset
push 0x24c
lea ecx, [esp + 0x24]
push edi
push ecx
mov dword [esp + 0x28], edi
call sub.MSVCR80.dll_memset
add esp, 0x18
lea ecx, [esp + 0x272]
lea esi, [esp + 0x1190]
call fcn.10004070
cmp eax, 0x1ff
mov edx, 0x1ff
jg 0x1006425d
mov edx, eax
xor ecx, ecx
cmp word [esp + 0x272], di
je 0x10064297
lea eax, [esp + 0x272]
lea ebx, [esp + 0x1190]
sub eax, ebx
lea esp, [esp]
cmp ecx, edx
jge 0x10064297
mov bx, word [eax + esi]
mov word [esi], bx
add esi, 2
add ecx, 1
cmp word [eax + esi], di
jne 0x10064280
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1194]
push eax
mov word [esi], di
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x100642cb
lea ecx, [esp + 0x1190]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100642e1
mov dword [esp + 0x10], eax
jmp 0x100642d6
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
and eax, 0x10
mov word [esp + 0x260], ax
mov esi, dword [esp + 0xc]
lea edx, [esp + 0x260]
push edx
add esi, 0x428
call fcn.1002a6a0
mov ecx, dword [esp + 0x1594]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10130e50
mov esp, ebp
pop ebp
ret 4
Function at 0x1007a8b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
mov ebp, dword [esp + 0x424]
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x222]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov word [esp + 0x228], bx
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x26]
push ebx
push ecx
mov word [esp + 0x2c], bx
call sub.MSVCR80.dll_memset
lea edx, [esp + 0x234]
push edx
call fcn.100017b0
mov esi, eax
add esp, 0x1c
cmp esi, ebx
jne 0x1007a954
push 0x120
call fcn.10079e70
add esp, 4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push ebx
push str.HELP::GetModuleDir_NULL__szPath__MAX_PATH_
push str._s_return_code:_0x_08X___s.
push eax
call edx
mov edi, dword [esp + 0x24]
jmp 0x1007aa30
lea eax, [esp + 0x21c]
push eax
lea ecx, [esp + 0x18]
push 0x104
push ecx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x101520e4
lea edx, [esp + 0x24]
push 0x104
push edx
call esi
push str.UD.dat
lea eax, [esp + 0x30]
push 0x104
push eax
call esi
add esp, 0x24
push ebx
push 0x80
push 2
push ebx
push 1
push 0xc0000000
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
mov edi, eax
cmp edi, 0xffffffff
setne dl
mov esi, edx
cmp esi, ebx
jne 0x1007a9e7
push 0x12c
call fcn.10079e70
add esp, 4
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call sub.Comn.dll_GetObjectLog
push ebx
push ebp
push str.hSrc___INVALID_HANDLE_VALUE
jmp 0x1007aa23
push ebx
lea eax, [esp + 0x14]
push eax
push 0x204
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
cmp esi, ebx
jne 0x1007aa33
push 0x12d
call fcn.10079e70
add esp, 4
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call sub.Comn.dll_GetObjectLog
push ebx
push ebp
push str.WriteFile_hSrc__buffer___DWORD_lenth__dwWriteSize__NULL_
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x14
cmp edi, 0xffffffff
je 0x1007aa3f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x424]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10130e50
add esp, 0x418
ret 4

Function at 0x1007acc0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov dword [esi], vtable.CShutdownConfigurer.0
mov byte [esp + 0x10], 0
call sub.MSVCR80.dll_memset
push 0x104
lea edi, [esi + 4]
push 0
push edi
call sub.MSVCR80.dll_memset
add esp, 0x18
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1007ad2d
movsx edx, byte [esp + 4]
push edx
push str._c:WINDOWSSystem32GroupPolicyMachineRegistry.pol
push edi
call dword [sym.imp.MSVCR80.dll_sprintf]
add esp, 0xc
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
mov eax, esi
call fcn.10130e50
add esp, 0x108
ret
Function at 0x1007b2c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCR80.dll_fseek]
push esi
push edi
push 2
xor edi, edi
mov esi, eax
push edi
push esi
mov byte [esp + 0x1f], 0
call ebp
add esp, 0xc
push esi
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 4
push edi
push edi
push esi
mov ebx, eax
call ebp
add esp, 0xc
push ebx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1007b30c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push ebx
push 0
push ebp
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push ebx
push 1
push ebp
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
test ebx, ebx
jbe 0x1007b39d
lea ebx, [ebx]
mov al, byte [edi + ebp]
cmp al, 0x5b
lea ecx, [edi + ebp]
jne 0x1007b396
mov dword [esp + 0x18], ecx
mov byte [esp + 0x14], 0
mov esi, edi
cmp edi, ebx
jae 0x1007b39d
cmp al, 0x3b
jne 0x1007b36e
lea eax, [edi + ebp + 2]
push eax
push str.MaxGPOScriptWait
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1007b36e
mov byte [esp + 0x14], 1
mov byte [esp + 0x13], 1
mov al, byte [edi + ebp + 1]
add edi, 1
cmp al, 0x5d
jne 0x1007b345
cmp edi, ebx
jae 0x1007b39d
mov ecx, edi
sub ecx, esi
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x14]
add ecx, 2
push edx
mov dword [esp + 0x20], ecx
call fcn.1007b570
add edi, 1
cmp edi, ebx
jb 0x1007b330
movzx eax, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x1007b3b0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push ebp
push 1
push 8
push str.PReg
call dword [sym.imp.MSVCR80.dll_fwrite]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
add esp, 0x10
cmp ebx, edi
jbe 0x1007b3dd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, ebx
nop
cmp ebx, edi
jbe 0x1007b3ea
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x1007b454
jb 0x1007b3f6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp byte [esi], 0
je 0x1007b421
cmp esi, edi
jb 0x1007b405
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
mov ebx, dword [esi + 4]
jb 0x1007b412
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x18]
mov dword [eax + ebx - 6], ecx
mov ebx, dword [esp + 0x20]
cmp esi, edi
jb 0x1007b431
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push ebp
push 1
push edx
push eax
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp esi, edi
jb 0x1007b44f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add esi, 0xc
jmp 0x1007b3e0
test ebx, ebx
je 0x1007b461
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 0x18
Function at 0x1007bc10
Capabilities:
Access peb ldr_data
Get common file path
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x101449be
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push edi
mov eax, dword [0x10177024]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
xor edi, edi
mov dword [esi], vtable.CShutdownManager.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
push 0x206
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
lea eax, [esp + 0x1a]
push edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
push eax
mov dword [esi + 0x2c], edi
mov word [esp + 0x20], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea ebx, [esi + 0x30]
push edi
push ebx
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea ebp, [esi + 0x238]
push edi
push ebp
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea eax, [esi + 0x440]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x208
lea eax, [esi + 0x648]
push edi
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1007bd3d
movzx edx, word [esp + 0x14]
push edx
push str._c:WINDOWS_system32GroupPolicy
mov edx, ebx
call fcn.10003f90
movzx eax, word [esp + 0x1c]
push eax
push str._c:WINDOWS_system32GroupPolicyMachineScripts_
mov edx, ebp
call fcn.10003f90
movzx ecx, word [esp + 0x24]
push ecx
push str._c:WINDOWS_system32GroupPolicyMachineScripts_scripts.ini
lea edx, [esi + 0x440]
call fcn.10003f90
movzx edx, word [esp + 0x2c]
push edx
push str._c:WINDOWSSystem32GroupPolicyMachine
lea edx, [esi + 0x648]
call fcn.10003f90
add esp, 0x20
mov eax, esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.10130e50
add esp, 0x21c
ret
Function at 0x1007c150
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
xor eax, eax
push ebp
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x14]
mov esi, ecx
call fcn.10002620
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
lea ebx, [esi + 0x440]
push ebx
call ebp
push 0x101596b8
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x1007c210
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x1c]
push ecx
push edx
xor ecx, ecx
call fcn.1007c850
mov eax, dword [esp + 0x10]
lea edi, [esi + 4]
push edi
push eax
mov ecx, 1
call fcn.1007c850
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
push 2
push ebx
call ebp
push edi
mov edx, str.SOFTWAREMicrosoftWindowsCurrentVersionGroup_PolicyStateMachineScriptsShutdown0
mov ecx, esi
call fcn.1007cc80
test eax, eax
je 0x1007c210
push edi
mov edx, str.SOFTWAREPoliciesMicrosoftWindowsSystemScriptsShutdown0
mov ecx, esi
call fcn.1007cc80
test eax, eax
je 0x1007c210
mov edx, dword [esp + 0x14]
push edx
call fcn.10002720
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1007c540
Capabilities:
Check if file exists
Create directory
Set file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebp
push esi
lea esi, [edi + 0x30]
push esi
call ebx
test eax, eax
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jne 0x1007c571
push 0
push esi
call ebp
test eax, eax
jne 0x1007c568
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea esi, [edi + 0x648]
push esi
call ebx
test eax, eax
jne 0x1007c586
push eax
push esi
call ebp
test eax, eax
je 0x1007c562
lea esi, [edi + 0x238]
push esi
call ebx
test eax, eax
jne 0x1007c59b
push eax
push esi
call ebp
test eax, eax
je 0x1007c562
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x1007ca70
Capabilities:
Set registry value

Disassembly:
sub esp, 0x244
mov eax, dword [0x10177024]
xor eax, esp
mov dword [esp + 0x23c], eax
push esi
push edi
push 0x206
lea eax, [esp + 0x3e]
push 0
push eax
mov edi, ecx
mov esi, edx
mov dword [esp + 0x18], 0
mov word [esp + 0x44], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1007cb2a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push 0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x60]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1007cb43
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.10130e50
add esp, 0x244
ret
cmp dword [esp + 0x14], 0
ja 0x1007cc4b
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0xc
push str.Local
push 1
push 0
push str.SOM_ID
push eax
call esi
test eax, eax
je 0x1007cb93
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.10130e50
add esp, 0x244
ret
mov edx, dword [esp + 8]
push 0x26
push str.Local_Group_Policy
push 1
push 0
push str.GPOName
push edx
call esi
test eax, eax
je 0x1007cbd2
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.10130e50
add esp, 0x244
ret
mov ecx, dword [esp + 8]
push 0x12
push str.LocalGPO
push 1
push 0
push str.GPO_ID
push ecx
call esi
test eax, eax
jne 0x1007cb1f
lea edx, [edi + 0x648]
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1007cc00
mov ecx, dword [esp + 8]
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
push 1
push 0
push str.FileSysPath
push ecx
call esi
test eax, eax
jne 0x1007cb1f
push 0x26
push str.Local_Group_Policy
push 1
push eax
mov eax, dword [esp + 0x18]
push str.DisplayName
push eax
call esi
test eax, eax
jne 0x1007cb6f
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x244]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.10130e50
add esp, 0x244
ret