joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [0x100150a4], 0xffffffff
push ebx
jne 0x1000603a
mov eax, dword [0x1001e890]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x1001cfcc], eax
test eax, eax
je 0x1000603a
push esi
push eax
call fcn.10002880
call fcn.10002930
mov esi, eax
call fcn.10002930
xor ebx, ebx
mov dword [0x1001cfd0], eax
mov eax, dword [0x1001cfcc]
test esi, esi
pop esi
sete bl
test eax, eax
je 0x1000603a
cmp dword [0x100150a4], 0xffffffff
jne 0x1000603a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0
mov ecx, ebx
xor ecx, 1
push 0
lea eax, [ecx*2 + 2]
shl ecx, 0x1f
push eax
push 0
push 1
add ecx, 0x40000000
push ecx
push dword [0x1001cfcc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x100150a4], eax
cmp eax, 0xffffffff
je 0x1000603a
test ebx, ebx
jne 0x10006036
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x10006036
cmp eax, 0xffffffff
jne 0x10006011
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10006011
push eax
push str.Debug_plugin_failed_to_seek_inside_a_log_file.
call fcn.10005170
add esp, 8
push 0x100161b4
push dword [0x100150a4]
call fcn.10001b00
add esp, 8
test eax, eax
je 0x10006036
push eax
push str.Debug_plugin_failed_to_write_to_a_log_file.
call fcn.10005170
add esp, 8
mov al, 1
pop ebx
ret
xor al, al
pop ebx
ret
Function at 0x10006d70
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push ecx
cmove eax, ecx
push eax
push 3
push ecx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10006e86
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
lea ebx, [eax + 1]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10006e7f
push ebx
push 0
push esi
call fcn.100034d0
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
je 0x10006e7c
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x10006e7c
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [0x1001d01c]
inc eax
mov dword [ebp - 8], eax
test ecx, ecx
je 0x10006e2b
push ecx
call ebx
mov eax, dword [ebp - 8]
add eax, eax
push eax
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [0x1001d01c], eax
test eax, eax
je 0x10006e7c
push dword [ebp - 0xc]
push 0
push eax
call fcn.100034d0
add esp, 0xc
push dword [ebp - 8]
push dword [0x1001d01c]
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push ecx
cmove eax, ecx
push eax
push 2
push ecx
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10006f35
xor al, al
pop esi
pop ebp
ret
push dword [0x1001d01c]
push esi
call fcn.10001b00
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
pop ebp
ret
Function at 0x10006f70
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x10006ff7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10006ff7
test eax, 0x400
jne 0x10006ff7
test al, 0x10
je 0x10006fb4
push esi
call fcn.10007010
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 3
push 0
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10006ff7
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0xffffffff
je 0x10006ff7
mov edx, dword [ebp - 4]
xor eax, eax
or eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10007010
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push esi
movlpd qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov dword [ebp - 8], ebx
lea ecx, [ebx + 3]
cmp ecx, 0x104
jae 0x1000714d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x468]
push eax
call esi
lea eax, [ebp - 0x468]
push 0x10016650
lea eax, [eax + ebx*2]
push eax
call esi
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x1000714d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp - 0x10]
nop
mov eax, dword [ebp - 0x260]
test eax, 0x400
jne 0x10007121
test al, 0x10
je 0x10007111
push 0x10016658
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x10007121
push 0x1001665c
lea eax, [ebp - 0x234]
push eax
call ebx
test eax, eax
je 0x10007121
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 8]
add eax, 4
add eax, ecx
cmp eax, 0x104
jae 0x10007121
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x466]
lea eax, [eax + ecx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x468]
push eax
call fcn.10007010
add esp, 4
add edi, eax
adc esi, edx
jmp 0x10007121
xor eax, eax
or eax, dword [ebp - 0x240]
add edi, eax
adc esi, dword [ebp - 0x244]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10007090
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100078c0
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x1001d500], 0
jne 0x10007a68
mov edx, dword [0x1001b5bc]
xor eax, eax
test edx, edx
je 0x100078f1
mov ecx, 0x10016668
mov dword [eax*4 + 0x1001d500], ecx
inc eax
add ecx, 0x28
cmp eax, edx
jb 0x100078e2
cmp dword [0x1001d4f8], 0
push esi
jne 0x100079b6
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x1001b5f4
call fcn.100013f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
add esp, 8
xor ebx, ebx
push 0x1001b5c0
push 0x1001b5f4
call esi
test eax, eax
jne 0x10007935
lea ebx, [eax + 1]
jmp 0x1000794b
push 0x1001b5d4
push 0x1001b5f4
call esi
test eax, eax
mov ecx, 2
cmove ebx, ecx
push edi
xor edi, edi
cmp dword [0x1001b5bc], edi
jbe 0x100079b4
mov esi, 0x10016688
nop dword [eax + eax]
test ebx, ebx
je 0x10007972
cmp dword [esi - 8], ebx
jne 0x100079a8
mov dword [esi - 4], 1
jmp 0x100079a8
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000797d
cmp eax, dword [esi]
je 0x10007990
lea eax, [esi - 0x18]
push eax
push 0x1001b5f4
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x100079a8
cmp dword [0x1001d4f8], 0
mov dword [esi - 4], 1
jne 0x100079a8
lea eax, [esi - 0x20]
mov dword [0x1001d4f8], eax
inc edi
add esi, 0x28
cmp edi, dword [0x1001b5bc]
jb 0x10007960
pop edi
pop ebx
mov eax, dword [0x1001d4f4]
test eax, eax
cmove eax, dword [0x1001d4f8]
mov dword [0x1001d4f4], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x100
push 0x1001d8e0
push 4
movzx eax, ax
push 0x400
mov dword [0x1001d4fc], eax
call esi
push 0x100
push 0x1001dae0
push 8
push 0x400
call esi
push 0x55
push 0x1001dce0
push 0x59
push dword [0x1001d4fc]
call esi
push 0x55
push 0x1001dd90
push 0x5a
push dword [0x1001d4fc]
call esi
push 0x1001dce0
call fcn.10002690
push 0x1001dd90
call fcn.100026c0
push 0x1001dd90
push 0x1001dce0
push 0x1001b600
push 0x1001de40
call dword [sym.imp.USER32.dll_wsprintfW]
push 0xf
push 0x1001de40
call fcn.10007510
add esp, 0x20
mov dword [0x1001dd8c], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10009f70
Capabilities:
Check for time delay via gettickcount
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
xor esi, esi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 4], esi
test ebx, ebx
je 0x1000a075
cmp ebx, 0xffffffff
je 0x1000a075
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x20
push ebx
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1000a04c
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1000a008
test esi, esi
je 0x10009fe0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], 0
cmp eax, 2
sete al
movzx eax, al
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
call fcn.1000a220
mov esi, dword [ebp - 4]
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1000a051
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], esi
lea eax, [ebp - 0x10]
push eax
push 0x1000aa60
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x1000a06c
cmp edi, 0xffffffff
je 0x1000a038
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [ebp + 8]
cmp eax, dword [ebp + 8]
jae 0x1000a034
dec ecx
cmp ecx, edi
jae 0x1000a065
push 0x20
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10009fc4
mov edi, 1
test esi, esi
je 0x1000a05c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 3
jmp 0x1000a051
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [eax], ecx
jmp 0x1000a051
pop esi
mov eax, 8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a080
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
push 0x1001ba70
mov edi, 0xc0000017
xor esi, esi
mov ebx, 0x4000
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 8], eax
test eax, eax
je 0x1000a182
push 0x1001ba84
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000a101
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x1000a101
nop
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push 5
call dword [ebp - 4]
mov edi, eax
test edi, edi
je 0x1000a101
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xc0000004
jne 0x1000a101
add ebx, ebx
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x1000a0d0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x1000a182
test esi, esi
je 0x1000a182
mov edi, esi
xor ebx, ebx
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x1000a168
push 0x104
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000a168
mov eax, dword [edi + 0x44]
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x1000aa60
movlpd qword [ebp - 0x10], xmm0
call dword [sym.imp.USER32.dll_EnumWindows]
mov ebx, dword [ebp - 0x10]
test ebx, ebx
jne 0x1000a172
mov eax, dword [edi]
test eax, eax
je 0x1000a172
add edi, eax
jmp 0x1000a116
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a190
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1000a1ac
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov edi, eax
push edi
xor esi, esi
push 2
mov dword [ebp + 8], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000a215
mov esi, dword [ebp + 0xc]
push esi
push ebx
mov dword [esi], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1000a206
mov dword [ebp + 8], 1
cmp dword [esi + 8], edi
je 0x1000a206
push esi
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x1000a1ff
cmp dword [esi + 8], edi
jne 0x1000a1e0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
mov dword [ebp + 8], 0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000a220
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
push ebx
push esi
push edi
push 0x28
push 0x40
mov ebx, 0xa
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x1000a394
mov eax, dword [ebp + 8]
lea esi, [ebx - 9]
mov dword [edi], 0
test eax, eax
jne 0x1000a265
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [ebp + 8], eax
push eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x1000a376
lea ecx, [ebp - 0x238]
mov dword [ebp - 0x238], 0x22c
push ecx
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1000a376
nop dword [eax + eax]
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x220], eax
jne 0x1000a345
cmp esi, ebx
jb 0x1000a2d0
add ebx, ebx
push 0x42
lea eax, [ebx*4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
je 0x1000a376
mov edi, eax
mov eax, dword [ebp - 0x230]
mov dword [edi + esi*4], eax
inc esi
cmp byte [ebp + 0x10], 0
je 0x1000a345
push 1
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x230]
call fcn.1000a220
add esp, 0xc
test eax, eax
jne 0x1000a376
mov eax, dword [ebp - 4]
mov ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [eax], ecx
jbe 0x1000a345
nop
cmp esi, ebx
jb 0x1000a333
add ebx, ebx
push 0x42
lea eax, [ebx*4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
test eax, eax
je 0x1000a376
mov ecx, dword [ebp - 0xc]
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
inc ecx
mov dword [edi + esi*4], eax
inc esi
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
cmp ecx, dword [eax]
jb 0x1000a310
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1000a2a0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
dec esi
mov dword [edi], esi
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x1000a381
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 8]
test eax, eax
je 0x1000a394
cmp eax, 0xffffffff
je 0x1000a394
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a3a0
Capabilities:
Check os version
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jbe 0x1000a404
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000a3ef
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push 0x14
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x1000a3fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov word [ebp - 0xc], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x1000a45b
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
xor eax, eax
test ecx, ecx
pop esi
setne al
mov esp, ebp
pop ebp
ret
Function at 0x1000ace0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
mov dword [0x1001e88c], eax
mov eax, dword [ebp + 0x10]
mov dword [0x1001e890], ecx
mov dword [0x1001e888], eax
cmp ecx, 0x400
je 0x1000ad09
call fcn.10005800
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push 0x1000acb0
push dword [0x1001e64c]
mov eax, dword [ebx + 0xc]
call eax
push 0x1001e650
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov dword [0x1001e648], ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
mov dword [0x1001e65c], eax
movzx eax, ah
push 0x104
mov dword [0x1001e654], eax
xor eax, eax
push 0x1001e680
push eax
mov dword [0x1001e658], ecx
mov word [0x1001e680], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp dword [0x1001e650], 0
mov ecx, 0x2a
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov eax, 0x26
push 0x208
cmovne eax, ecx
mov dword [0x1001e664], 0
push 0x40
mov dword [0x1001e660], 0
mov dword [ebp + 0xc], eax
call esi
push 0x208
push 0x40
mov dword [0x1001e664], eax
call esi
mov ecx, dword [0x1001e664]
mov dword [0x1001e660], eax
test ecx, ecx
je 0x1000ade4
push ecx
push 0
push 0
push dword [ebp + 0xc]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [0x1001e664]
mov eax, dword [0x1001e660]
test eax, eax
je 0x1000adfd
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [0x1001e664]
test ecx, ecx
jne 0x1000ae1f
push 0x208
push 0x40
call esi
mov dword [0x1001e664], eax
test eax, eax
je 0x1000ae1f
push 0x1001baa4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push wsprintfW
push 0x40
mov dword [0x1001df2c], 0x28
call esi
mov dword [0x1001df24], eax
test eax, eax
je 0x1000ae44
call fcn.10005810
test al, al
jne 0x1000ae4d
mov eax, dword [ebx]
mov dword [eax + 8], 1
pop esi
pop ebx
pop ebp
ret
Function at 0x1000b6d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa24
lea eax, [ebp - 0x100]
push 0x100
push eax
call fcn.10002e10
push 0x100
lea eax, [ebp - 0x200]
push eax
call fcn.10002e10
push 0x104
lea eax, [ebp - 0x610]
push eax
call fcn.100028d0
push 0x104
lea eax, [ebp - 0x408]
push eax
call fcn.100028d0
push 0x260
push 0
push 0x1001dfc0
call fcn.100034d0
add esp, 0xc
mov dword [0x1001e218], 0xffffffff
lea eax, [ebp - 0x100]
mov dword [0x1001e004], eax
lea eax, [ebp - 0x200]
mov dword [0x1001dfd8], eax
lea eax, [ebp - 0x818]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, 0x104
jb 0x1000b783
mov eax, dword [ebp + 0x18]
push 1
mov eax, dword [eax]
mov dword [eax + 8], 1
call fcn.10002810
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x818]
push 0x1001dfc0
mov dword [0x1001dff8], eax
call fcn.1000fd30
add esp, 4
test eax, eax
je 0x1000b7b5
mov ecx, dword [ebp + 0x18]
push eax
mov ecx, dword [ecx]
mov dword [ecx + 8], 1
call fcn.10002810
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x610]
push 0x1001df3c
push eax
call esi
test eax, eax
je 0x1000b7e8
push 1
lea eax, [ebp - 0x610]
push eax
push 0x1001dfc0
call fcn.10010020
add esp, 0xc
test eax, eax
jne 0x1000b863
push 0x1001df40
lea eax, [ebp - 0x408]
push eax
call esi
test eax, eax
je 0x1000b875
push 0x1001bacc
lea eax, [ebp - 0x408]
push eax
call esi
test eax, eax
jne 0x1000b840
lea eax, [ebp - 0xa24]
mov byte [0x1001e21c], 1
push eax
push 0x106
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x1001e010
push 0
push 0x1001bad0
lea eax, [ebp - 0xa24]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x1000b852
lea eax, [ebp - 0x408]
push eax
push 0x1001e010
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1001dfc0
call fcn.10010120
add esp, 4
test eax, eax
je 0x1000b875
mov ecx, dword [ebp + 0x18]
push eax
mov ecx, dword [ecx]
mov dword [ecx + 8], 1
call fcn.10002810
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000bd50
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
lea eax, [ebp - 0x800]
push 0x800
push 0
push eax
call fcn.100034d0
add esp, 0xc
lea eax, [ebp - 0x800]
push 0x400
push eax
call fcn.100028d0
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esp, ebp
pop ebp
ret

Function at 0x1000bda0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
lea eax, [ebp - 0x800]
push 0x800
push 0
push eax
call fcn.100034d0
add esp, 0xc
lea eax, [ebp - 0x800]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x1000bde2
cmp eax, 0x400
lea eax, [ebp - 0x800]
jb 0x1000bde7
mov eax, 0x1001df50
push eax
call fcn.100027c0
mov esp, ebp
pop ebp
ret