joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002630
Capabilities:
Check if file exists
Get file attributes
Get hostname
Read .ini file

Disassembly:
sub esp, 0x230
mov eax, dword [0x10056024]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
push edi
push 0x206
lea eax, [esp + 0x32]
push 0
push eax
mov edi, ecx
mov word [esp + 0x38], 0
call sub.MSVCR80.dll_memset
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0x2c]
mov word [esp + 0xc], 0
mov dword [esp + 0xe], eax
mov dword [esp + 0x12], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x26], eax
mov word [esp + 0x2a], ax
mov dword [esp + 8], 0xf
call fcn.10001f40
mov esi, eax
test esi, esi
jne 0x100026d1
push 0x24f
call fcn.100010d0
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push esi
push str.GetAppDataPath_tszAomeiBR__MAX_PATH_
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x18
jmp 0x1000275c
push str.AomeiBRcomn.ini
lea eax, [esp + 0x30]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
mov esi, edx
test esi, esi
jne 0x1000272c
push 0x253
call fcn.100010d0
mov edi, eax
call sub.Comn.dll_GetObjectLog
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
push edi
push esi
push str.GetFileAttributes_tszAomeiBR__INVALID_FILE_ATTRIBUTES
push str._s_return_code:_0x_08X___s.
push eax
call edx
add esp, 0x18
jmp 0x1000275c
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea edx, [esp + 0x2c]
push edx
push 0x80
push edi
lea eax, [esp + 0x18]
push eax
push str.MARK
push str.COMN
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [esp + 0x234]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.10045f6c
add esp, 0x230
ret

Function at 0x100036a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10047543
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10056024]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
call fcn.10006600
xor edi, edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov dword [esp + 0x14], edi
call fcn.10006670
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edi
mov byte [esp + 0x14], 1
call fcn.10006670
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x10009420
Capabilities:
Get disk information

Disassembly:
sub esp, 0x10
mov eax, dword [0x10056024]
xor eax, esp
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
push edi
je 0x10009481
mov ecx, esi
lea edi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x10009440
sub ecx, edi
sar ecx, 1
je 0x10009481
mov eax, dword [0x1004b67c]
mov ecx, dword [0x1004b680]
mov dx, word [esi]
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], ecx
mov word [esp + 8], dx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
cmp eax, 5
sete cl
mov eax, ecx
mov ecx, dword [esp + 0xc]
pop edi
xor ecx, esp
call fcn.10045f6c
add esp, 0x10
ret

Function at 0x100098d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1480
call fcn.10047080
mov eax, dword [0x10056024]
xor eax, esp
mov dword [esp + 0x147c], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3fe
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x1086]
push 0
mov ecx, 0x388
lea edi, [esp + 0x268]
push eax
rep movsd dword es:[edi], dword [esi]
mov word [esp + 0x108c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x24c
lea ecx, [esp + 0x18]
push 0
push ecx
mov dword [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
mov di, word [esp + 0x274]
add esp, 0xc
xor ecx, ecx
test di, di
lea esi, [esp + 0x1080]
lea eax, [esp + 0x268]
je 0x1000997b
nop
add eax, 2
add ecx, 1
cmp word [eax], 0
jne 0x10009960
cmp ecx, 0x1ff
jle 0x1000997b
mov eax, 0x1ff
jmp 0x10009987
lea ecx, [esp + 0x268]
call fcn.1000d4d0
xor edx, edx
test di, di
je 0x100099b8
lea ecx, [esp + 0x268]
lea edi, [esp + 0x1080]
sub ecx, edi
mov edi, edi
cmp edx, eax
jge 0x100099b8
mov di, word [ecx + esi]
mov word [esi], di
add esi, 2
add edx, 1
cmp word [ecx + esi], 0
jne 0x100099a0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1084]
push eax
mov word [esi], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x100099ee
lea ecx, [esp + 0x1080]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10009a04
mov dword [esp + 0x10], eax
jmp 0x100099f9
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]
add esi, 0x428
lea eax, [esp + 0x260]
call fcn.10009be0
mov ecx, dword [esp + 0x1484]
pop edi
pop esi
xor ecx, esp
call fcn.10045f6c
mov esp, ebp
pop ebp
ret 4

Function at 0x1000b070
Capabilities:
Get common file path

Disassembly:
push edi
xor edi, edi
mov dword [esi + 4], vtable.IConvert.0
push 0x1d88
lea eax, [esi + 0xb48]
push edi
push eax
mov dword [esi], vtable.CUiOption.0
mov dword [esi + 4], vtable.CUiOption.1.0
mov dword [esi + 0x28d8], edi
mov dword [esi + 0x28d4], edi
mov dword [esi + 0x28dc], edi
mov dword [esi + 0x28e0], edi
mov dword [esi + 0x28d0], edi
call sub.MSVCR80.dll_memset
push 0x618
lea ecx, [esi + 0x530]
push edi
push ecx
call sub.MSVCR80.dll_memset
add esp, 0x18
lea edx, [esi + 0x28e4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, esi
pop edi
ret
Function at 0x1000db00
Capabilities:
Query service status
Start service
Stop service

Disassembly:
sub esp, 0x20
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
xor eax, eax
test edi, edi
mov dword [esp + 4], edi
je 0x1000dbb7
push esi
push 0x34
push str.Backupper_Service
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
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
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x1000dbaa
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [esp + 0xc]
push eax
push esi
call edi
cmp dword [esp + 0x10], 1
je 0x1000db77
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
push 0x64
call ebx
lea edx, [esp + 0x10]
push edx
push esi
call edi
cmp dword [esp + 0x14], 1
jne 0x1000db80
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, dword [esp + 0xc]
pop ebx
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
pop esi
pop edi
add esp, 0x20
ret
Function at 0x1000dc90
Capabilities:
Query service status
Start service

Disassembly:
sub esp, 0x38
test byte [0x10056fac], 1
jne 0x1000dcad
or dword [0x10056fac], 1
call fcn.1000dbc0
mov dword [0x10056fa8], eax
push edi
xor edi, edi
cmp dword [0x10056fa8], edi
je 0x1000dcc0
lea eax, [edi + 1]
pop edi
add esp, 0x38
ret
push ebx
push esi
push 0xf003f
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
cmp ebx, edi
jne 0x1000dd04
call sub.Comn.dll_GetObjectLog
mov edi, eax
mov esi, dword [edi]
push 0x4c
mov ecx, str.d:_br_srcuilogicSchedule.h
add esi, 0xc
call fcn.1000d400
push eax
mov eax, dword [esi]
push str._s:_Open_service_failed.
push edi
call eax
add esp, 0x10
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0x38
ret
xor eax, eax
push 0xf01ff
push str.Backupper_Service
push ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
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
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, edi
je 0x1000ddcd
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1000dd6a
cmp dword [esp + 0x10], 1
jne 0x1000dd6a
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000ddc6
xor eax, eax
lea edx, [esp + 0x28]
push edx
push 0xc9
push esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1000ddc6
push ebp
call sub.Comn.dll_GetObjectLog
mov ebp, eax
mov edi, dword [ebp]
push 0x5f
mov ecx, str.d:_br_srcuilogicSchedule.h
add edi, 0xc
call fcn.1000d400
push eax
mov eax, dword [edi]
push str._s:_Reload_task.xml_failed.
push ebp
call eax
add esp, 0x10
pop ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebx
mov eax, 1
pop edi
add esp, 0x38
ret
Function at 0x1000e830
Capabilities:
Query service status
Start service

Disassembly:
push esi
mov esi, ecx
push esi
call fcn.1000e970
cmp dword [esi + 4], 0
mov eax, dword [esi]
mov ecx, esi
je 0x1000e851
mov edx, dword [eax + 0xe8]
call edx
pop esi
jmp fcn.1000dc90
mov edx, dword [eax + 0xec]
call edx
pop esi
jmp fcn.1000dc90

Function at 0x1000e880
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10047a87
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10056024]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.CUiRecord.0
mov dword [esp + 0x14], 4
mov ecx, dword [esi + 0x78]
xor edi, edi
cmp ecx, edi
je 0x1000e8c7
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov dword [esi + 0x78], edi
mov eax, dword [esi + 0x6c]
cmp eax, edi
je 0x1000e8e9
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x70]
push ecx
push edx
push eax
call fcn.1002a8c0
mov eax, dword [esi + 0x6c]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0x10
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov eax, dword [esi + 0x5c]
cmp eax, edi
je 0x1000e902
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov eax, dword [esi + 0x4c]
cmp eax, edi
je 0x1000e91b
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x1000e934
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x2c]
cmp eax, edi
je 0x1000e94d
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x10014456
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x220
mov eax, dword [0x10056024]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax + 0xdc]
push edi
call edx
mov ebp, dword [esp + 0x234]
cmp ebp, eax
jle 0x10014477
test ebp, ebp
jl 0x10014597
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10014498
mov ecx, dword [esi + 0x40]
sub ecx, eax
mov eax, 0x7aba01eb
imul ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x1001449e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 0x3c]
mov eax, ebp
imul eax, eax, 0x10b0
cmp dword [eax + ecx + 0xc], 0
je 0x10014597
push 0x206
lea edx, [esp + 0x2a]
push 0
push edx
mov word [esp + 0x30], 0
call sub.MSVCR80.dll_memset
mov eax, dword [esi]
mov edx, dword [eax + 0x80]
add esp, 0xc
push 0
push 0
push ebp
mov ecx, esi
call edx
mov edx, 0x104
lea ecx, [esp + 0x24]
call fcn.100093b0
cmp word [esp + 0x24], 0x5c
jne 0x10014511
cmp dword [esi + 0x78], 0
je 0x10014511
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
lea edx, [esp + 0x24]
push edx
push 0x104
push edx
call eax
call sub.ImgFile.dll_CreateObjectImgInfo
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
mov edi, eax
mov ecx, dword [edi]
push ebp
lea eax, [esp + 0x18]
mov dword [esp + 0x14], ecx
push eax
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x14]
push ebp
mov ecx, esi
call edx
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
shr eax, 5
not eax
and eax, 1
push eax
push 0
push 0
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 4], edx
mov edx, dword [ebx + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
push ebp
mov ecx, esi
call edx
mov edx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
mov edx, dword [edi]
mov esi, eax
mov eax, dword [edx + 8]
mov ecx, edi
call eax
movzx ecx, si
xor eax, eax
cmp ecx, 0x100f
sete al
jmp 0x10014599
xor eax, eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10045f6c
add esp, 0x220
ret 4
Function at 0x1001f5e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100493cb
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x10056024]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
push 0x2c0
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x38], ecx
je 0x1001f635
push eax
call fcn.10003640
mov dword [esp + 0x14], eax
jmp 0x1001f639
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [ebx]
mov edx, dword [eax + 0xdc]
mov ecx, ebx
call edx
mov edi, dword [ebp + 8]
cmp edi, eax
jge 0x1001f6e3
cmp edi, 0xffffffff
jle 0x1001f6e3
mov eax, dword [ebx + 0x3c]
test eax, eax
lea esi, [ebx + 0x38]
je 0x1001f685
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x7aba01eb
imul ecx
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x1001f68b
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ecx, dword [esi + 4]
mov eax, edi
imul eax, eax, 0x10b0
cmp dword [eax + ecx + 0x109c], 0xffffffff
je 0x1001f6e3
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
call fcn.10027720
mov edi, dword [eax + 0x109c]
lea esi, [ebx + 0x68]
call fcn.100279f0
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
mov eax, dword [edx]
mov ecx, esi
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx]
mov edx, dword [edx + 0x20]
push edi
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call edx
mov edx, dword [eax]
mov esi, dword [esp + 0x14]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.10003940
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1001f910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x10056024]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov dword [esp + 0x10], ecx
je 0x1001fb03
test ebx, ebx
je 0x1001fb03
push 0x3f
lea eax, [esp + 0xa5]
push 0
push eax
mov byte [esp + 0xac], 0
call sub.MSVCR80.dll_memset
push 0x3f
lea ecx, [esp + 0x71]
push 0
push ecx
mov byte [esp + 0x78], 0
call sub.MSVCR80.dll_memset
push 0x3f
lea edx, [esp + 0x3d]
push 0
push edx
mov byte [esp + 0x44], 0
call sub.MSVCR80.dll_memset
push esi
mov esi, dword [sym.imp.MSVCR80.dll__localtime64]
call esi
mov edi, dword [sym.imp.MSVCR80.dll_strftime]
push eax
push str._Y__m__d___H:_M:_S
lea eax, [esp + 0x90]
push 0x40
push eax
call edi
push ebx
call esi
push eax
push str._Y__m__d___H:_M:_S
lea ecx, [esp + 0xe4]
push 0x40
push ecx
call edi
mov ebx, dword [esp + 0x5c]
mov edi, dword [ebx + 0x3c]
add ebx, 0x38
add esp, 0x4c
cmp edi, dword [ebx + 8]
mov dword [esp + 0x10], ebx
jbe 0x1001f9d8
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov dword [esp + 0x18], ebx
mov esi, edi
mov edi, edi
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
jbe 0x1001f9ee
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001f9fa
cmp eax, ebx
je 0x1001fa04
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
call ebx
jmp 0x1001fa0a
mov ebx, dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp esi, edi
je 0x1001fb03
cmp dword [esp + 0x18], 0
jne 0x1001fa1b
call ebx
mov edx, dword [esp + 0x18]
cmp esi, dword [edx + 8]
jb 0x1001fa26
call ebx
lea eax, [esi + 0x570]
push eax
mov edi, 0x40
lea ebx, [esp + 0x24]
call fcn.1000d4f0
add esp, 4
lea ecx, [esp + 0x60]
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1001fa64
test dl, dl
je 0x1001fa60
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1001fa64
add eax, 2
add ecx, 2
test dl, dl
jne 0x1001fa44
xor eax, eax
jmp 0x1001fa69
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jl 0x1001fabf
lea ecx, [esp + 0xa0]
lea eax, [esp + 0x20]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1001fa98
test dl, dl
je 0x1001fa94
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1001fa98
add eax, 2
add ecx, 2
test dl, dl
jne 0x1001fa78
xor eax, eax
jmp 0x1001fa9d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jg 0x1001fabf
mov ecx, dword [esp + 0x18]
cmp esi, dword [ecx + 8]
jb 0x1001fab0
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x10]
add esi, 0x10b0
jmp 0x1001f9e0
mov edi, dword [esp + 0x18]
mov byte [esp + 0x14], 0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + 8]
push eax
push ecx
push esi
lea eax, [esi + 0x10b0]
call fcn.1002a500
mov eax, dword [esp + 0x20]
add esp, 0x10
add dword [eax + 8], 0xffffef50
mov dword [esp + 0x18], edi
mov ebx, eax
jmp 0x1001f9e0
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10045f6c
mov esp, ebp
pop ebp
ret 8
Function at 0x10022d00
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x344
mov eax, dword [0x10056024]
xor eax, esp
mov dword [esp + 0x340], eax
push ebx
push esi
push edi
push 0x7e
lea eax, [esp + 0xc6]
push 0
push eax
mov esi, ecx
mov word [esp + 0xcc], 0
call sub.MSVCR80.dll_memset
mov edi, dword [ebp + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
add esp, 0xc
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
push edi
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call edx
movzx eax, byte [eax + 0xf]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push eax
push edi
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xe]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push eax
push edi
lea eax, [esp + 0xbc]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xd]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push eax
push edi
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push eax
push edi
lea eax, [esp + 0xb4]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xb]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push eax
push edi
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 0xa]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push eax
push edi
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 9]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push eax
push edi
lea eax, [esp + 0x70]
push eax
mov ecx, esi
call edx
movzx eax, byte [eax + 8]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push eax
push edi
lea eax, [esp + 0x94]
push eax
mov ecx, esi
call edx
movzx eax, word [eax + 6]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push eax
push edi
lea eax, [esp + 0xb8]
push eax
mov ecx, esi
call edx
movzx eax, word [eax + 4]
mov ecx, dword [ebx]
push eax
push ecx
lea edx, [esp + 0xec]
push 0x1004b2f0
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x206
lea eax, [esp + 0x17a]
push 0
push eax
mov word [esp + 0x180], 0
call sub.MSVCR80.dll_memset
add esp, 0x40
lea ecx, [esp + 0x140]
push ecx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [sym.imp.MSVCR80.dll_wcscat_s]
push 0x1004cf7c
lea edx, [esp + 0x144]
push 0x104
push edx
call esi
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x150]
push 0x104
push ecx
call esi
add esp, 0x18
lea edx, [esp + 0x140]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [esp + 0x340]
xor ecx, esp
call fcn.10045f6c
mov esp, ebp
pop ebp
ret 4
Function at 0x10036640
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x10056024]
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 0x100366ad
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.10045f6c
add esp, 0x108
ret

Function at 0x10036c40
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 0x10036c8c
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 0x10036d1d
lea ebx, [ebx]
mov al, byte [edi + ebp]
cmp al, 0x5b
lea ecx, [edi + ebp]
jne 0x10036d16
mov dword [esp + 0x18], ecx
mov byte [esp + 0x14], 0
mov esi, edi
cmp edi, ebx
jae 0x10036d1d
cmp al, 0x3b
jne 0x10036cee
lea eax, [edi + ebp + 2]
push eax
push str.MaxGPOScriptWait
call dword [sym.imp.MSVCR80.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10036cee
mov byte [esp + 0x14], 1
mov byte [esp + 0x13], 1
mov al, byte [edi + ebp + 1]
add edi, 1
cmp al, 0x5d
jne 0x10036cc5
cmp edi, ebx
jae 0x10036d1d
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.10036ef0
add edi, 1
cmp edi, ebx
jb 0x10036cb0
movzx eax, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4