joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000c7f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8c08
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100db3fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1000c942
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x1000c942
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1000c942
call fcn.10002a80
mov ecx, eax
test ecx, ecx
je 0x1000c96d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
push edi
push 0x800
push 0x800
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0
call fcn.1000c390
push eax
push dword [ebp + 0x18]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
push dword [esi - 8]
push esi
call fcn.1007da0b
add esp, 8
test eax, eax
js 0x1000c977
cmp eax, dword [esi - 8]
jg 0x1000c977
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
mov eax, dword [ebp - 0x10]
cmp eax, 0x7ff
je 0x1000c8b4
cmp eax, 0x7fe
jne 0x1000c8fe
push edi
push 0x1000
push 0x1000
lea ecx, [ebp + 0xc]
call fcn.1000c390
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp + 0xc]
push dword [esi - 8]
push esi
call fcn.1007da0b
add esp, 8
test eax, eax
js 0x1000c977
cmp eax, dword [esi - 8]
jg 0x1000c977
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
add esi, 0xfffffff0
push esi
call fcn.10002400
mov edi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000c92e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov ecx, 0x100cbd64
test eax, eax
cmovne ecx, eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.10003600
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001670
push 0x80070057
call fcn.10001670
int3
Function at 0x1000c990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000ca47
cmp dword [ebp + 0xc], 0
je 0x1000ca47
test edx, edx
je 0x1000ca47
mov ecx, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 4
mov dword [ebp + 8], 0
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000c9e0
sub ecx, ebx
lea eax, [ebp + 8]
sar ecx, 1
mov ebx, 0
push eax
cmovne ebx, edx
mov ecx, 0x20019
cmp dword [ebp + 0x18], 0
mov eax, 0x20119
cmove eax, ecx
push eax
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000ca47
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
test esi, esi
je 0x1000ca4a
mov eax, dword [ebp + 0x14]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000ca50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x100db3fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x814], ecx
mov dword [ebp - 0x810], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x80c], edi
test ecx, ecx
je 0x1000cb5a
test eax, eax
je 0x1000cb5a
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10076570
add esp, 0xc
mov dword [ebp - 0x80c], 1
mov dword [ebp - 0x818], 0x200000
mov dword [ebp - 0x808], 0
test esi, esi
je 0x1000caeb
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000cad4
sub ecx, edx
mov eax, 0
sar ecx, 1
cmove esi, eax
cmp dword [ebp + 0x1c], 0
lea eax, [ebp - 0x808]
push eax
mov ecx, 0x20019
mov eax, 0x20119
cmove eax, ecx
push eax
push 0
push dword [ebp - 0x810]
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000cb5a
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x80c]
push eax
push 0
push esi
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x808]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1000cb5a
lea eax, [ebp - 0x804]
jmp 0x1000cb64
test ebx, ebx
mov eax, 0x100cbd64
cmovne eax, ebx
push eax
mov ecx, edi
call fcn.10003600
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006a60c
mov esp, ebp
pop ebp
ret
Function at 0x1000cee0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x1000cf86
cmp dword [ebp + 0xc], 0
je 0x1000cf86
test edx, edx
je 0x1000cf86
mov ecx, edx
mov dword [ebp + 8], 0
push ebx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000cf12
sub ecx, ebx
lea eax, [ebp - 4]
push eax
sar ecx, 1
lea eax, [ebp + 8]
push eax
mov ebx, 0
mov ecx, 0x20006
push 0
cmovne ebx, edx
mov eax, 0x20106
cmp dword [ebp + 0x18], 0
cmove eax, ecx
push eax
push 0
push 0
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x1000cf79
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop ebx
sete al
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000cf90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 8
mov edx, dword [ebp + 0x10]
test eax, eax
push esi
mov esi, 0x100cbd64
cmovne esi, eax
cmp dword [ebp + 8], 0
push edi
je 0x1000d062
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x1000d062
test edx, edx
je 0x1000d062
mov ecx, edx
mov dword [ebp + 0x14], 0
lea eax, [ecx + 2]
mov dword [ebp - 4], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000cfd4
sub ecx, dword [ebp - 4]
mov eax, 0
sar ecx, 1
mov ecx, 0x20006
cmovne eax, edx
cmp dword [ebp + 0x18], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0x14]
push eax
push 0
mov eax, 0x20106
cmove eax, ecx
push eax
push 0
push 0
push 0
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x1000d055
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000d026
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push esi
push 1
push 0
push dword [ebp - 4]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000e7b0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100db3fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
mov edi, dword [ebp + 8]
push edi
call ebx
test eax, eax
je 0x1000e97d
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000e97d
push esi
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10076570
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10076570
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.10086dea
add esi, eax
lea eax, [ebp - 0x20c]
push esi
push eax
push str._sxra__u.tmp
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000fd70
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x414]
add esp, 0x14
push 1
push eax
push edi
call esi
test eax, eax
je 0x1000e885
push 4
push 0
lea eax, [ebp - 0x414]
push eax
call esi
push edi
call ebx
test eax, eax
je 0x1000e936
push edi
call ebx
test eax, eax
je 0x1000e96a
movzx eax, word [edi]
push eax
push str._c:.temp
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.1000fd70
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
jne 0x1000e8e3
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call fcn.10086dea
add esi, eax
lea eax, [ebp - 0x20c]
push esi
push eax
push str._sxra__u.tmp
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.1000fd70
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x414]
add esp, 0x14
push 1
push eax
push edi
call esi
test eax, eax
je 0x1000e94c
push 4
push 0
lea eax, [ebp - 0x414]
push eax
call esi
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x1000e96a
push 4
push 0
push edi
call esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.1006a60c
mov esp, ebp
pop ebp
ret
Function at 0x1000e9c0
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 0x1000eb62
mov eax, dword [0x100dd628]
test eax, eax
jne 0x1000ea44
push 0x100da0c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100dd628], 0
jne 0x1000ea34
push 0x10
call fcn.1006a5ce
mov ecx, eax
add esp, 4
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x1000ea29
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 0x1000ea2b
xor ecx, ecx
xchg dword [ebp - 4], eax
mov dword [0x100dd628], ecx
push 0x100da0c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x100dd628]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1000eb62
mov eax, dword [ecx]
call dword [eax]
mov edi, eax
test edi, edi
je 0x1000eb62
mov edx, dword [edi]
mov ecx, edi
push 0
push 0x100aff0c
call dword [edx + 0x30]
mov eax, dword [edi]
mov ecx, edi
push 0
push str.gzip
call dword [eax + 0x30]
test edi, edi
je 0x1000eb62
push dword [ebp + 0x10]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push edi
mov dword [ebp - 8], 0
call fcn.1000dd70
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 0x1000ead2
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edi + 4], eax
jne 0x1000eacf
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], ebx
dec ebx
jne 0x1000eacf
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 0x1000eafd
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000eb62
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 0x1000eb62
mov eax, dword [esi + 0x10]
test eax, eax
je 0x1000eb62
mov ecx, dword [ebp + 0x14]
push ebx
test ecx, ecx
je 0x1000eb4b
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 0x1000eb62
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 0x1000eb62
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 0x10011fa0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100db3fc]
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 0x10012009
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.1006a60c
mov esp, ebp
pop ebp
ret

Function at 0x100122b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x100122c7
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebp + 0x14], 0
je 0x100123b0
push edi
push 0x1418
call fcn.1006a5ce
mov edi, eax
add esp, 4
test edi, edi
je 0x10012340
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.10076570
push 0x800
push ebx
push esi
call fcn.10086eca
push 0x410
lea esi, [edi + 0x1004]
push 0
push esi
call fcn.10076570
mov eax, dword [ebp + 0x10]
add esp, 0x24
test eax, eax
je 0x1001233d
push 0x208
push eax
push esi
call fcn.10086eca
add esp, 0xc
pop esi
jmp 0x10012342
xor edi, edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], vtable.CSimpleThread.0
push eax
push 0
push edi
push 0x100123d0
push 0
push 0
mov dword [ebp - 8], 0x100123d0
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.1007d7a0
add esp, 0x18
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], vtable.CSimpleThread.0
pop edi
test eax, eax
je 0x100123a4
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.10012750
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x100124a0
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 0x100124c5
test byte [ebp - 4], 7
je 0x100124c5
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 0x10012750
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x100db3fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10012802
cmp word [esi], 0
je 0x10012802
test eax, eax
je 0x100127ad
cmp word [eax], 0
je 0x100127ad
push 0
push 0
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x10012802
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret 8
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.10076570
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 0x10012802
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.1006a60c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.1006a60c
mov esp, ebp
pop ebp
ret 8
Function at 0x100135b0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d1be0
push 0x10076770
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100db3fc]
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 0x1001362a
cmp dword [ebp - 0x28], edi
je 0x1001362a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10013662
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3f0
jne 0x10013744
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 0x10013744
cmp dword [ebp - 0x28], 0
je 0x10013744
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 0x10013744
cmp dword [ebp - 0x2c], eax
jbe 0x10013744
call esi
cmp eax, 0x7a
jne 0x10013744
push dword [ebp - 0x2c]
call fcn.10079aeb
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x10013744
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 0x10013744
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x10013744
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 0x10013744
cmp dword [ebp - 0x30], 0
je 0x10013744
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [edi]
jae 0x10013744
lea ebx, [edi + esi*8]
push dword [ebp - 0x30]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1001372d
inc esi
jmp 0x10013710
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.10013771
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.1006a60c
mov esp, ebp
pop ebp
ret 8
Function at 0x100137d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100db3fc]
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.10076570
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 0x1001382e
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a60c
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 0x10013837
sub ecx, edx
sar ecx, 1
je 0x10013861
lea eax, [ebp - 0x20c]
push eax
call fcn.1005e600
mov esi, eax
add esp, 4
test esi, esi
jne 0x10013869
push 0xffffffffffffff9a
jmp 0x10013863
push 0xffffffffffffff9b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1006a60c
mov esp, ebp
pop ebp
ret
Function at 0x10013920
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a91c6
mov eax, dword fs:[0]
push eax
sub esp, 0x134
push esi
push edi
mov eax, dword [0x100db3fc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x10013b64
xor eax, eax
cmp ax, word [esi]
je 0x10013b64
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10013b64
cmp dword [ebp + 0x10], eax
je 0x10013987
push esi
call fcn.1005e600
add esp, 4
test eax, eax
jne 0x10013987
push str.file_sign_error
jmp 0x10013b69
cmp dword [ebp + 0x20], 0
je 0x10013a20
call fcn.100137a0
test eax, eax
je 0x10013a20
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edi
push esi
call fcn.10013b90
add esp, 0xc
test eax, eax
je 0x10013a20
call fcn.1005d530
test eax, eax
je 0x10013a0a
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10013a0a
call fcn.1005d530
lea ecx, [ebp - 0xa8]
mov edi, eax
call fcn.100064c0
mov esi, dword [edi]
mov ecx, eax
push str.svc_lau
mov dword [ebp - 4], 0
call fcn.10012f30
push eax
mov ecx, edi
call dword [esi + 0x14]
lea ecx, [ebp - 0xa8]
call fcn.100071d0
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.100135b0
cmp dword [ebp + 8], 0
jne 0x10013a4b
push str.isnot_admin_user
jmp 0x10013b69
cmp dword [ebp - 0x10], 0
je 0x10013a81
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.100168b0
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 0x10013b22
call fcn.100137a0
test eax, eax
je 0x10013b22
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push edi
push esi
call fcn.10013b90
add esp, 0xc
test eax, eax
je 0x10013b22
call fcn.1005d530
test eax, eax
je 0x10013a0a
call fcn.1005d530
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10013a0a
call fcn.1005d530
lea ecx, [ebp - 0x140]
mov edi, eax
call fcn.100064c0
mov esi, dword [edi]
mov ecx, eax
push str.svc_lau
mov dword [ebp - 4], 1
call fcn.10012f30
push eax
mov ecx, edi
call dword [esi + 0x14]
lea ecx, [ebp - 0x140]
call fcn.100071d0
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 0x100b01b8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
sbb esi, esi
neg esi
cmp eax, ecx
ja 0x10013b51
push str.shell_exec_direct_error
call fcn.1001ef60
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.1001ef60
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