joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ab60
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
test ebx, ebx
je 0x1000ad02
mov eax, dword [0x100cf220]
test eax, eax
jne 0x1000abe4
push 0x100cc020
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100cf220], 0
jne 0x1000abd4
push 0x10
call fcn.1006129e
mov ecx, eax
add esp, 4
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x1000abc9
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
jmp 0x1000abcb
xor ecx, ecx
xchg dword [ebp - 4], eax
mov dword [0x100cf220], ecx
push 0x100cc020
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x100cf220]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1000ad02
mov eax, dword [ecx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x1000ad02
mov edx, dword [edi]
mov ecx, edi
push 0
push 0x100a3d28
call dword [edx + 0x30]
mov eax, dword [edi]
mov ecx, edi
push 0
push str.gzip
call dword [eax + 0x30]
test edi, edi
je 0x1000ad02
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push edi
mov dword [ebp - 8], 0
call fcn.10009f10
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov edi, dword [esi + 8]
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
test edi, edi
je 0x1000ac72
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x1000ac6f
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x1000ac6f
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [esi + 4]
push esi
mov eax, dword [ecx]
call dword [eax]
mov edi, dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000ac9d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000ad02
mov ecx, dword [esi + 4]
push dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [esi + 4]
push dword [ebp + 8]
push 0
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x1000ad02
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000ad02
mov ecx, dword [ebp + 0x14]
push ebx
test ecx, ecx
je 0x1000aceb
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push 0
push eax
push 2
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1000ad02
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1000ad02
mov eax, dword [esi + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1000e140
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000e1a9
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret

Function at 0x1000e450
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x1000e467
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp + 0x14], 0
je 0x1000e550
push edi
push 0x1418
call fcn.1006129e
mov edi, eax
add esp, 4
test edi, edi
je 0x1000e4e0
mov ecx, dword [ebp + 8]
push esi
push 0x1000
lea esi, [edi + 4]
mov dword [edi], ecx
push 0
push esi
mov dword [edi + 0x1414], 1
call fcn.1006c590
push 0x800
push ebx
push esi
call fcn.1007ba58
push 0x410
lea esi, [edi + 0x1004]
push 0
push esi
call fcn.1006c590
mov eax, dword [ebp + 0x10]
add esp, 0x24
test eax, eax
je 0x1000e4dd
push 0x208
push eax
push esi
call fcn.1007ba58
add esp, 0xc
pop esi
jmp 0x1000e4e2
xor edi, edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], vtable.CSimpleThread.0
push eax
push 0
push edi
push 0x1000e570
push 0
push 0
mov dword [ebp - 8], 0x1000e570
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.100737c0
add esp, 0x18
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], vtable.CSimpleThread.0
pop edi
test eax, eax
je 0x1000e544
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
push ebx
call fcn.1000e8f0
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x1000e640
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x1000e665
test byte [ebp - 4], 7
je 0x1000e665
mov eax, 1
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e8f0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000e9a2
cmp word [esi], 0
je 0x1000e9a2
test eax, eax
je 0x1000e94d
cmp word [eax], 0
je 0x1000e94d
push 0
push 0
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x1000e9a2
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret 8
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.1006c590
add esp, 0xc
lea eax, [ebp - 0x414]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x1000e9a2
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.100612dc
mov esp, ebp
pop ebp
ret 8
Function at 0x1000f750
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100c49f8
push 0x1006c790
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100cd4bc]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x28], 0
xor edi, edi
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov dword [eax], edi
mov dword [ecx], edi
lea eax, [ebp - 0x28]
push eax
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x1000f7ca
cmp dword [ebp - 0x28], edi
je 0x1000f7ca
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000f802
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3f0
jne 0x1000f8e4
lea eax, [ebp - 0x28]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000f8e4
cmp dword [ebp - 0x28], 0
je 0x1000f8e4
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 2
push dword [ebp - 0x28]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call ebx
test eax, eax
jne 0x1000f8e4
cmp dword [ebp - 0x2c], eax
jbe 0x1000f8e4
call esi
cmp eax, 0x7a
jne 0x1000f8e4
push dword [ebp - 0x2c]
call fcn.1006fb0b
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x1000f8e4
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push edi
push 2
push dword [ebp - 0x28]
call ebx
test eax, eax
je 0x1000f8e4
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x1000f8e4
mov dword [ebp - 0x24], 0
mov word [ebp - 0x20], 0x500
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1000f8e4
cmp dword [ebp - 0x30], 0
je 0x1000f8e4
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [edi]
jae 0x1000f8e4
lea ebx, [edi + esi*8]
push dword [ebp - 0x30]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1000f8cd
inc esi
jmp 0x1000f8b0
mov eax, dword [ebp - 0x40]
mov dword [eax], 1
mov eax, dword [ebx + 8]
shr eax, 2
and eax, 1
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.1000f911
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret 8
Function at 0x1000f970
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.1006c590
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000f9ce
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000f9d7
sub ecx, edx
sar ecx, 1
je 0x1000fa01
lea eax, [ebp - 0x20c]
push eax
call fcn.10055b90
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000fa09
push 0xffffffffffffff9a
jmp 0x1000fa03
push 0xffffffffffffff9b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100612dc
mov esp, ebp
pop ebp
ret
Function at 0x1000fac0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d5f6
mov eax, dword fs:[0]
push eax
sub esp, 0x134
push esi
push edi
mov eax, dword [0x100cd4bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000fd04
xor eax, eax
cmp ax, word [esi]
je 0x1000fd04
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1000fd04
cmp dword [ebp + 0x10], eax
je 0x1000fb27
push esi
call fcn.10055b90
add esp, 4
test eax, eax
jne 0x1000fb27
push str.file_sign_error
jmp 0x1000fd09
cmp dword [ebp + 0x20], 0
je 0x1000fbc0
call fcn.1000f940
test eax, eax
je 0x1000fbc0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edi
push esi
call fcn.1000fd30
add esp, 0xc
test eax, eax
je 0x1000fbc0
call fcn.10054ac0
test eax, eax
je 0x1000fbaa
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000fbaa
call fcn.10054ac0
lea ecx, [ebp - 0xa8]
mov edi, eax
call fcn.10003290
mov esi, dword [edi]
mov ecx, eax
push str.svc_lau
mov dword [ebp - 4], 0
call fcn.1000f0d0
push eax
mov ecx, edi
call dword [esi + 0x14]
lea ecx, [ebp - 0xa8]
call fcn.10003f50
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 8]
mov dword [ebp - 0x10], 0
push eax
call fcn.1000f750
cmp dword [ebp + 8], 0
jne 0x1000fbeb
push str.isnot_admin_user
jmp 0x1000fd09
cmp dword [ebp - 0x10], 0
je 0x1000fc21
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 5
push edi
push esi
call fcn.10012a40
add esp, 0x20
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x20], 0
jne 0x1000fcc2
call fcn.1000f940
test eax, eax
je 0x1000fcc2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push edi
push esi
call fcn.1000fd30
add esp, 0xc
test eax, eax
je 0x1000fcc2
call fcn.10054ac0
test eax, eax
je 0x1000fbaa
call fcn.10054ac0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x1000fbaa
call fcn.10054ac0
lea ecx, [ebp - 0x140]
mov edi, eax
call fcn.10003290
mov esi, dword [edi]
mov ecx, eax
push str.svc_lau
mov dword [ebp - 4], 1
call fcn.1000f0d0
push eax
mov ecx, edi
call dword [esi + 0x14]
lea ecx, [ebp - 0x140]
call fcn.10003f50
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 1
push 0
push edi
push esi
push 0x100a3fd0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
sbb esi, esi
neg esi
cmp eax, ecx
ja 0x1000fcf1
push str.shell_exec_direct_error
call fcn.10018d40
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.invalid_param
call fcn.10018d40
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10010640
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c4], ecx
mov dword [ebp - 0x4c0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test ecx, ecx
je 0x10010721
test eax, eax
je 0x10010721
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10010721
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x10010721
xor ecx, ecx
movzx edx, ax
nop dword [eax + eax]
mov ax, word [ebp + ecx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], dx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1001070c
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea eax, [ebp - 0xd4]
push ebx
push eax
push dword [ebp - 0x4c4]
mov dword [ebp - 0x4c8], ebx
call fcn.1007bf89
add esp, 0xc
test eax, eax
je 0x10010734
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x100106b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10010782
cmp edi, 0x7fffffff
ja 0x10010782
mov ecx, dword [ebp - 0x4c0]
lea ebx, [ebp - 0xc]
mov esi, SysReAllocString
mov edx, edi
sub esi, edi
sub ebx, ecx
lea eax, [esi + edx]
test eax, eax
je 0x1001076f
movzx eax, word [ebx + ecx]
test ax, ax
je 0x1001076f
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10010754
mov ebx, dword [ebp - 0x4c8]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
xor ecx, ecx
test edi, edi
je 0x10010790
cmp edi, 0x7fffffff
jbe 0x10010795
mov ecx, 0x80070057
test ecx, ecx
js 0x100107cb
mov eax, dword [ebp - 0x4c0]
mov esi, edi
test edi, edi
je 0x100107b3
cmp word [eax], 0
je 0x100107b3
add eax, 2
sub esi, 1
jne 0x100107a5
xor eax, eax
mov ecx, 0x80070057
test esi, esi
cmovne ecx, eax
mov eax, edi
sub eax, esi
neg esi
sbb esi, esi
and esi, eax
jmp 0x100107cd
xor esi, esi
test ecx, ecx
js 0x1001081e
mov eax, dword [ebp - 0x4c0]
mov edx, edi
lea ecx, [eax + esi*2]
sub edx, esi
je 0x10010811
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x4c4]
add eax, 0x7fffffff
add esi, eax
lea eax, [ebx + ebx]
sub eax, ecx
add edi, eax
test esi, esi
je 0x10010811
movzx eax, word [edi + ecx]
test ax, ax
je 0x10010811
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x100107f8
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100612dc
mov esp, ebp
pop ebp
ret
Function at 0x10010860
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100108d8
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret

Function at 0x10010df0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.10061890
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.1006c590
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x10010ee7
test edi, edi
je 0x10010ee7
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x10010ee7
cmp eax, 0x3fff
ja 0x10010ee7
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10010ee7
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x100a3c50
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10010ee7
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.1006c590
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push esi
lea eax, [esi - 1]
push eax
push edi
call fcn.10014520
add esp, 0x2c
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100612dc
mov esp, ebp
pop ebp
ret
Function at 0x10011060
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.10061890
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1008], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test eax, eax
je 0x100111cf
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x100111cf
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x100110c5
push ebx
push eax
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100111cf
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.1006c590
add esp, 0xc
lea eax, [ebp - 0x804]
xor ebx, ebx
push 0x400
push eax
push ebx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x10011187
push 0x800
lea eax, [ebp - 0x1004]
mov ebx, 1
push 0
push eax
call fcn.1006c590
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.1006c8e7
add esp, 0x14
test eax, eax
je 0x1001114a
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x1001114a
mov ecx, ebx
jmp 0x1001114c
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1004]
lea eax, [ebp - 0x804]
push edi
cmovne eax, edx
push eax
push dword [ebp - 0x1008]
call fcn.1007ba58
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x100111b5
push edi
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
call fcn.10010640
mov ebx, eax
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100612dc
mov esp, ebp
pop ebp
ret
Function at 0x10011660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009d806
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, 0x100a4160
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
nop
push ebx
push dword [esi + 4]
call fcn.1007b7f8
add esp, 8
test eax, eax
je 0x100116fb
add esi, 8
cmp esi, str.CSIDL_DESKTOP
jl 0x100116a0
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x100117bc
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x100bf9f0
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.100020c0
test al, al
jne 0x1001179e
push 0
push 0x100bf9f0
jmp 0x10011797
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1006c590
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x10011745
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x100117c6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.100020c0
test al, al
jne 0x1001179e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011780
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10001950
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100015b0
push 0x80004005
call fcn.100015b0
int3

Function at 0x100117e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009cf7b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100cd4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
mov dword [ebp - 0x21c], esi
call fcn.1006c590
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.10001ca0
mov ecx, eax
test ecx, ecx
je 0x100118ae
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.100020c0
test al, al
jne 0x10011892
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011874
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10001950
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100612dc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100015b0
int3