joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007aab0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x1013b024]
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 0x1007ab1d
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.1010dc50
add esp, 0x108
ret

Function at 0x1007b0b0
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 0x1007b0fc
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 0x1007b18d
lea ebx, [ebx]
mov al, byte [edi + ebp]
cmp al, 0x5b
lea ecx, [edi + ebp]
jne 0x1007b186
mov dword [esp + 0x18], ecx
mov byte [esp + 0x14], 0
mov esi, edi
cmp edi, ebx
jae 0x1007b18d
cmp al, 0x3b
jne 0x1007b15e
lea eax, [edi + ebp + 2]
push eax
push str.MaxGPOScriptWait
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x1007b15e
mov byte [esp + 0x14], 1
mov byte [esp + 0x13], 1
mov al, byte [edi + ebp + 1]
add edi, 1
cmp al, 0x5d
jne 0x1007b135
cmp edi, ebx
jae 0x1007b18d
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.1007b360
add edi, 1
cmp edi, ebx
jb 0x1007b120
movzx eax, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
Function at 0x1007b1a0
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 0x1007b1cd
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov esi, ebx
nop
cmp ebx, edi
jbe 0x1007b1da
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x1007b244
jb 0x1007b1e6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp byte [esi], 0
je 0x1007b211
cmp esi, edi
jb 0x1007b1f5
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
mov ebx, dword [esi + 4]
jb 0x1007b202
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 0x1007b221
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 0x1007b23f
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
add esi, 0xc
jmp 0x1007b1d0
test ebx, ebx
je 0x1007b251
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 0x1007ba00
Capabilities:
Access peb ldr_data
Get common file path
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x1011207e
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push edi
mov eax, dword [0x1013b024]
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 0x1007bb2d
movzx edx, word [esp + 0x14]
push edx
push str._c:WINDOWS_system32GroupPolicy
mov edx, ebx
call fcn.10003ef0
movzx eax, word [esp + 0x1c]
push eax
push str._c:WINDOWS_system32GroupPolicyMachineScripts_
mov edx, ebp
call fcn.10003ef0
movzx ecx, word [esp + 0x24]
push ecx
push str._c:WINDOWS_system32GroupPolicyMachineScripts_scripts.ini
lea edx, [esi + 0x440]
call fcn.10003ef0
movzx edx, word [esp + 0x2c]
push edx
push str._c:WINDOWSSystem32GroupPolicyMachine
lea edx, [esi + 0x648]
call fcn.10003ef0
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.1010dc50
add esp, 0x21c
ret
Function at 0x1007bf40
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.10002510
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
lea ebx, [esi + 0x440]
push ebx
call ebp
push 0x10125050
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.MSVCR80.dll__wfopen_s]
add esp, 0xc
test eax, eax
jne 0x1007c000
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x1c]
push ecx
push edx
xor ecx, ecx
call fcn.1007c640
mov eax, dword [esp + 0x10]
lea edi, [esi + 4]
push edi
push eax
mov ecx, 1
call fcn.1007c640
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.1007ca70
test eax, eax
je 0x1007c000
push edi
mov edx, str.SOFTWAREPoliciesMicrosoftWindowsSystemScriptsShutdown0
mov ecx, esi
call fcn.1007ca70
test eax, eax
je 0x1007c000
mov edx, dword [esp + 0x14]
push edx
call fcn.10002610
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 0x1007c330
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 0x1007c361
push 0
push esi
call ebp
test eax, eax
jne 0x1007c358
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 0x1007c376
push eax
push esi
call ebp
test eax, eax
je 0x1007c352
lea esi, [edi + 0x238]
push esi
call ebx
test eax, eax
jne 0x1007c38b
push eax
push esi
call ebp
test eax, eax
je 0x1007c352
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x1007c860
Capabilities:
Set registry value

Disassembly:
sub esp, 0x244
mov eax, dword [0x1013b024]
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 0x1007c91a
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 0x1007c933
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.1010dc50
add esp, 0x244
ret
cmp dword [esp + 0x14], 0
ja 0x1007ca3b
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 0x1007c983
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.1010dc50
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 0x1007c9c2
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.1010dc50
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 0x1007c90f
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 0x1007c9f0
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 0x1007c90f
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 0x1007c95f
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.1010dc50
add esp, 0x244
ret
Function at 0x1007d240
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x1007e210
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 0x1007e267
cmp byte [ebp + 0x2c], al
jne 0x1007e25e
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 0x1007e240
sub eax, edx
lea edi, [ebp + 0x34]
mov esi, eax
call fcn.1007f070
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.1007d550
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 0x1007e2c2
cmp byte [ebp + 0x2c], 0
jne 0x1007e25e
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 0x1007e2b7
jmp 0x1007e249
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 0x1007e31e
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp byte [ebp + 0x2c], 0
jne 0x1007e25e
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 0x1007e310
jmp 0x1007e249
mov byte [esi + edi], 0
cmp byte [esi], 0
mov eax, esi
mov ecx, esi
je 0x1007e354
jmp 0x1007e330
mov dl, byte [eax]
cmp dl, 0xd
jne 0x1007e347
mov byte [ecx], 0xa
add eax, 1
add ecx, 1
cmp byte [eax], 0xa
jne 0x1007e34f
jmp 0x1007e34c
mov byte [ecx], dl
add ecx, 1
add eax, 1
cmp byte [eax], 0
jne 0x1007e330
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 0x10082020
Capabilities:
Schedule task via itaskscheduler

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x1013b024]
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 0x100821b7
lea eax, [esp + 0x18]
push eax
push 0x1012586c
push 1
push ebx
push 0x1012588c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x100820eb
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 0x1012585c
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 0x1008210d
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.1010dc50
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.1008ce90
xor edi, edi
cmp word [esp + 0x14], bx
jbe 0x1008218f
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.1005c190
movzx eax, word [esp + 0x14]
add edi, 1
cmp edi, eax
jl 0x10082132
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.1010dc50
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10082a10
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x1013b024]
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.1010dc50
add esp, 0x118
ret
Function at 0x1008eea0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x1010f3d9
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x1013b024]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x1013b024]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34]
add eax, 0x38
push eax
lea ecx, [esp + 8]
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
push str.WindowsAB_Function.dat
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
cmp dword [esp + 0x1c], 8
mov eax, dword [esp + 8]
jae 0x1008ef06
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [esp + 4]
jne 0x1008ef27
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 0x1008ef2f
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 + 0x24]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.1010dc50
add esp, 0x2c
ret 4
Function at 0x1008f620
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x1011ed18
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1008f661
mov ax, word [esp]
cmp ax, 9
je 0x1008f658
cmp ax, 6
jne 0x1008f661
mov eax, 1
add esp, 0x24
ret
xor eax, eax
add esp, 0x24
ret

Function at 0x1008f830
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push esi
push edi
push 0x40
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x24], 0
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [esp + 0x44], 0x101
mov word [esp + 0x48], 0
call fcn.1008fa80
mov ecx, dword [ebp + 8]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
mov esi, eax
call edi
mov eax, dword [esp + 0xc]
push eax
call edi
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100906f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
mov esi, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1009073a
test edi, edi
je 0x1009073a
cmp byte [ebp + 0x18], 0
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 4]
jne 0x10090745
push 0
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10090756
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push 2
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1009073a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x10]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x10090780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
mov esi, ecx
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100907c4
test edi, edi
je 0x100907c4
cmp byte [ebp + 0x10], al
je 0x100907cf
push 2
xor ecx, ecx
push ecx
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x100907f7
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp byte [ebp + 0x1c], 0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
mov eax, dword [esi + 4]
jne 0x100907e6
push 0
push 0
push ecx
push edx
jmp 0x100907b9
push 2
push 0
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100907c4
mov edx, dword [esi + 4]
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100924f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10092514
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
test al, 0x10
mov esi, dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
je 0x10092552
lea eax, [esp + 8]
push eax
push str.S_1_1_0
mov dword [esp + 0x10], 0
call sub.ADVAPI32.dll_ConvertStringSidToSidW
mov ecx, dword [esp + 8]
push 0
push 0
push 0
push ecx
push 1
push 1
push edi
call esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
push 3
push 1
push 0x10000000
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
push str.Everyone
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
lea ecx, [esp + 0xc]
push ecx
push 0
lea edx, [esp + 0x18]
push edx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x1009250a
push eax
mov eax, dword [esp + 0x10]
push eax
push 0
push 0
push 4
push 1
push edi
call esi
test eax, eax
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret 4