joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10063a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10140959
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
push esi
mov eax, dword [0x10170024]
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 0x10063ac4
mov esi, eax
call fcn.1002c070
jmp 0x10063ac6
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 [0x101519b0]
mov eax, dword [0x101519b4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x101519b8]
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.1012d370
add esp, 0x3c
ret
Function at 0x10063e30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x158c
call fcn.1012e520
mov eax, dword [0x10170024]
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.1002f880
cmp eax, 0x1ff
mov edx, 0x1ff
jg 0x10063ebd
mov edx, eax
xor ecx, ecx
cmp word [esp + 0x272], di
je 0x10063ef7
lea eax, [esp + 0x272]
lea ebx, [esp + 0x1190]
sub eax, ebx
lea esp, [esp]
cmp ecx, edx
jge 0x10063ef7
mov bx, word [eax + esi]
mov word [esi], bx
add esi, 2
add ecx, 1
cmp word [eax + esi], di
jne 0x10063ee0
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 0x10063f2b
lea ecx, [esp + 0x1190]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10063f41
mov dword [esp + 0x10], eax
jmp 0x10063f36
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.1002a1d0
mov ecx, dword [esp + 0x1594]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1012d370
mov esp, ebp
pop ebp
ret 4
Function at 0x1007a470
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
mov eax, dword [0x10170024]
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 0x1007a514
push 0x120
call fcn.10079a30
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 0x1007a5f0
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 0x1014bdb4
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 0x1007a5a7
push 0x12c
call fcn.10079a30
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 0x1007a5e3
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 0x1007a5f3
push 0x12d
call fcn.10079a30
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 0x1007a5ff
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.1012d370
add esp, 0x418
ret 4
Function at 0x1007a6c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetControlLsa
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007a798
mov eax, dword [esp + 4]
test eax, eax
je 0x1007a798
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x14]
push ecx
push 0
push str.limitblankpassworduse
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1007a798
cmp dword [esp], eax
push edi
je 0x1007a784
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [esp + 0xc]
push edx
push 4
push eax
lea edi, [eax + 1]
mov eax, dword [esp + 0x1c]
push str.bklimitblankpassworduse
push eax
call esi
mov edx, dword [esp + 0xc]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0
push str.limitblankpassworduse
push edx
mov dword [esp + 0x20], 0
call esi
mov eax, dword [esp + 0xc]
pop esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 0x10
ret
mov eax, dword [esp + 8]
push eax
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 0x10
ret
xor eax, eax
add esp, 0x10
ret

Function at 0x1007a970
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x10170024]
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 0x1007a9dd
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.1012d370
add esp, 0x108
ret
Function at 0x1007af70
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 0x1007afbc
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 0x1007b04d
lea ebx, [ebx]
mov al, byte [edi + ebp]
cmp al, 0x5b
lea ecx, [edi + ebp]
jne 0x1007b046
mov dword [esp + 0x18], ecx
mov byte [esp + 0x14], 0
mov esi, edi
cmp edi, ebx
jae 0x1007b04d
cmp al, 0x3b
jne 0x1007b01e
lea eax, [edi + ebp + 2]
push eax
push str.MaxGPOScriptWait
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1007b01e
mov byte [esp + 0x14], 1
mov byte [esp + 0x13], 1
mov al, byte [edi + ebp + 1]
add edi, 1
cmp al, 0x5d
jne 0x1007aff5
cmp edi, ebx
jae 0x1007b04d
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.1007b220
add edi, 1
cmp edi, ebx
jb 0x1007afe0
movzx eax, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4

Function at 0x1007b060
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 0x1007b08d
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, ebx
nop
cmp ebx, edi
jbe 0x1007b09a
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x1007b104
jb 0x1007b0a6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp byte [esi], 0
je 0x1007b0d1
cmp esi, edi
jb 0x1007b0b5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
mov ebx, dword [esi + 4]
jb 0x1007b0c2
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 0x1007b0e1
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 0x1007b0ff
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add esi, 0xc
jmp 0x1007b090
test ebx, ebx
je 0x1007b111
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 0x1007b8c0
Capabilities:
Access peb ldr_data
Get common file path
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1013e91e
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push edi
mov eax, dword [0x10170024]
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 0x1007b9ed
movzx edx, word [esp + 0x14]
push edx
push str._c:WINDOWS_system32GroupPolicy
mov edx, ebx
call fcn.10003fc0
movzx eax, word [esp + 0x1c]
push eax
push str._c:WINDOWS_system32GroupPolicyMachineScripts_
mov edx, ebp
call fcn.10003fc0
movzx ecx, word [esp + 0x24]
push ecx
push str._c:WINDOWS_system32GroupPolicyMachineScripts_scripts.ini
lea edx, [esi + 0x440]
call fcn.10003fc0
movzx edx, word [esp + 0x2c]
push edx
push str._c:WINDOWSSystem32GroupPolicyMachine
lea edx, [esi + 0x648]
call fcn.10003fc0
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.1012d370
add esp, 0x21c
ret
Function at 0x1007be00
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 0x10153388
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x1007bec0
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x1c]
push ecx
push edx
xor ecx, ecx
call fcn.1007c500
mov eax, dword [esp + 0x10]
lea edi, [esi + 4]
push edi
push eax
mov ecx, 1
call fcn.1007c500
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.1007c930
test eax, eax
je 0x1007bec0
push edi
mov edx, str.SOFTWAREPoliciesMicrosoftWindowsSystemScriptsShutdown0
mov ecx, esi
call fcn.1007c930
test eax, eax
je 0x1007bec0
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 0x1007c1f0
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 0x1007c221
push 0
push esi
call ebp
test eax, eax
jne 0x1007c218
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 0x1007c236
push eax
push esi
call ebp
test eax, eax
je 0x1007c212
lea esi, [edi + 0x238]
push esi
call ebx
test eax, eax
jne 0x1007c24b
push eax
push esi
call ebp
test eax, eax
je 0x1007c212
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x1007c720
Capabilities:
Set registry value

Disassembly:
sub esp, 0x244
mov eax, dword [0x10170024]
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 0x1007c7da
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 0x1007c7f3
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.1012d370
add esp, 0x244
ret
cmp dword [esp + 0x14], 0
ja 0x1007c8fb
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 0x1007c843
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.1012d370
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 0x1007c882
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.1012d370
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 0x1007c7cf
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 0x1007c8b0
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 0x1007c7cf
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 0x1007c81f
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.1012d370
add esp, 0x244
ret
Function at 0x1007d100
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x101536b4
push ebx
call dword [sym.imp.MSVCR80.dll_strstr]
add esp, 8
test eax, eax
jne 0x1007d126
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1007d126
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 0x1007d159
push 0x64
call ebp
add esi, 1
cmp esi, 0x3e8
jl 0x1007d137
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x1007e090
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
mov ebx, eax
test ebx, ebx
push esi
push edi
jne 0x1007e0e7
cmp byte [ebp + 0x2c], al
jne 0x1007e0de
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 0x1007e0c0
sub eax, edx
lea edi, [ebp + 0x34]
mov esi, eax
call fcn.10080f80
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 4
mov edi, ebp
call fcn.1007d410
mov esi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
or eax, 0xffffffff
push 0
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 0x1007e142
cmp byte [ebp + 0x2c], 0
jne 0x1007e0de
mov byte [ebp + 0x2c], 1
mov dword [ebp + 0x30], 0xc
mov ebx, dword [str.Error_document_empty.]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1007e137
jmp 0x1007e0c9
lea eax, [edi + 1]
push eax
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
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 0x1007e19e
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [ebp + 0x2c], 0
jne 0x1007e0de
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 0x1007e190
jmp 0x1007e0c9
mov byte [esi + edi], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x1007e1d4
jmp 0x1007e1b0
mov dl, byte [eax]
cmp dl, 0xd
jne 0x1007e1c7
mov byte [ecx], 0xa
add eax, 1
add ecx, 1
cmp byte [eax], 0xa
jne 0x1007e1cf
jmp 0x1007e1cc
mov byte [ecx], dl
add ecx, 1
add eax, 1
cmp byte [eax], 0
jne 0x1007e1b0
push 1
mov byte [ecx], 0
mov edx, dword [ebp]
mov eax, dword [edx + 8]
push 0
push esi
mov ecx, ebp
call eax
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 4
Function at 0x10081ea0
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x250], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x56]
push ebx
push ecx
mov dword [esp + 0x28], eax
mov word [esp + 0x5c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
lea edx, [esp + 0x54]
push 0x104
push edx
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
jl 0x10082037
lea eax, [esp + 0x18]
push eax
push 0x10153ba4
push 1
push ebx
push 0x10153bc4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10081f6b
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x10153b94
lea edx, [esp + 0x58]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov edi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, ebx
jge 0x10081f8d
mov esi, dword [sym.imp.MSVCR80.dll_wprintf]
push str.Failed_calling_ITaskScheduler::Activate:
call esi
add esp, 4
push edi
push str.error__0x_x_n
call esi
add esp, 8
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.1012d370
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, esi
call fcn.1008cd10
xor edi, edi
cmp word [esp + 0x14], bx
jbe 0x1008200f
push 0x2e
lea ecx, [esp + 0x26]
push ebx
push ecx
mov word [esp + 0x2c], bx
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], ebx
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push edi
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x20]
call fcn.1005be50
movzx eax, word [esp + 0x14]
add edi, 1
cmp edi, eax
jl 0x10081fb2
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x8c]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x25c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1012d370
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10082890
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x10170024]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
sbb eax, eax
xor ecx, esp
add eax, 1
call fcn.1012d370
add esp, 0x118
ret