joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100128e0
Capabilities:
Delete file
Download url
Receive data

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

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d2210
push 0x10076910
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100db55c]
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 0x100137ba
cmp dword [ebp - 0x28], edi
je 0x100137ba
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100137f2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3f0
jne 0x100138d4
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 0x100138d4
cmp dword [ebp - 0x28], 0
je 0x100138d4
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 0x100138d4
cmp dword [ebp - 0x2c], eax
jbe 0x100138d4
call esi
cmp eax, 0x7a
jne 0x100138d4
push dword [ebp - 0x2c]
call fcn.10079c8b
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], edi
test edi, edi
je 0x100138d4
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 0x100138d4
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x2c]
jne 0x100138d4
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 0x100138d4
cmp dword [ebp - 0x30], 0
je 0x100138d4
xor esi, esi
mov dword [ebp - 0x3c], esi
cmp esi, dword [edi]
jae 0x100138d4
lea ebx, [edi + esi*8]
push dword [ebp - 0x30]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x100138bd
inc esi
jmp 0x100138a0
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.10013901
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.1006a7ac
mov esp, ebp
pop ebp
ret 8
Function at 0x10013960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100db55c]
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.10076710
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 0x100139be
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a7ac
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 0x100139c7
sub ecx, edx
sar ecx, 1
je 0x100139f1
lea eax, [ebp - 0x20c]
push eax
call fcn.1005e7a0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100139f9
push 0xffffffffffffff9a
jmp 0x100139f3
push 0xffffffffffffff9b
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1006a7ac
mov esp, ebp
pop ebp
ret
Function at 0x10013ab0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9346
mov eax, dword fs:[0]
push eax
sub esp, 0x134
push esi
push edi
mov eax, dword [0x100db55c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x10013cf4
xor eax, eax
cmp ax, word [esi]
je 0x10013cf4
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10013cf4
cmp dword [ebp + 0x10], eax
je 0x10013b17
push esi
call fcn.1005e7a0
add esp, 4
test eax, eax
jne 0x10013b17
push str.file_sign_error
jmp 0x10013cf9
cmp dword [ebp + 0x20], 0
je 0x10013bb0
call fcn.10013930
test eax, eax
je 0x10013bb0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edi
push esi
call fcn.10013d20
add esp, 0xc
test eax, eax
je 0x10013bb0
call fcn.1005d6c0
test eax, eax
je 0x10013b9a
call fcn.1005d6c0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10013b9a
call fcn.1005d6c0
lea ecx, [ebp - 0xa8]
mov edi, eax
call fcn.10006650
mov esi, dword [edi]
mov ecx, eax
push str.svc_lau
mov dword [ebp - 4], 0
call fcn.100130c0
push eax
mov ecx, edi
call dword [esi + 0x14]
lea ecx, [ebp - 0xa8]
call fcn.10007360
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.10013740
cmp dword [ebp + 8], 0
jne 0x10013bdb
push str.isnot_admin_user
jmp 0x10013cf9
cmp dword [ebp - 0x10], 0
je 0x10013c11
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.10016a30
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 0x10013cb2
call fcn.10013930
test eax, eax
je 0x10013cb2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push edi
push esi
call fcn.10013d20
add esp, 0xc
test eax, eax
je 0x10013cb2
call fcn.1005d6c0
test eax, eax
je 0x10013b9a
call fcn.1005d6c0
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 4]
call eax
test al, al
je 0x10013b9a
call fcn.1005d6c0
lea ecx, [ebp - 0x140]
mov edi, eax
call fcn.10006650
mov esi, dword [edi]
mov ecx, eax
push str.svc_lau
mov dword [ebp - 4], 1
call fcn.100130c0
push eax
mov ecx, edi
call dword [esi + 0x14]
lea ecx, [ebp - 0x140]
call fcn.10007360
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 0x100b01c8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, 0x20
cmp ecx, eax
sbb esi, esi
neg esi
cmp eax, ecx
ja 0x10013ce1
push str.shell_exec_direct_error
call fcn.1001f0d0
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.1001f0d0
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 0x10014630
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x100db55c]
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 0x10014711
test eax, eax
je 0x10014711
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10014711
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x10014711
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 0x100146fc
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.1008759b
add esp, 0xc
test eax, eax
je 0x10014724
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x100146a0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a7ac
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10014772
cmp edi, 0x7fffffff
ja 0x10014772
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 0x1001475f
movzx eax, word [ebx + ecx]
test ax, ax
je 0x1001475f
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10014744
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 0x10014780
cmp edi, 0x7fffffff
jbe 0x10014785
mov ecx, 0x80070057
test ecx, ecx
js 0x100147bb
mov eax, dword [ebp - 0x4c0]
mov esi, edi
test edi, edi
je 0x100147a3
cmp word [eax], 0
je 0x100147a3
add eax, 2
sub esi, 1
jne 0x10014795
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 0x100147bd
xor esi, esi
test ecx, ecx
js 0x1001480e
mov eax, dword [ebp - 0x4c0]
mov edx, edi
lea ecx, [eax + esi*2]
sub edx, esi
je 0x10014801
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 0x10014801
movzx eax, word [edi + ecx]
test ax, ax
je 0x10014801
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x100147e8
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.1006a7ac
mov esp, ebp
pop ebp
ret
Function at 0x10014850
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100db55c]
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 0x100148c8
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.1006a7ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1006a7ac
mov esp, ebp
pop ebp
ret

Function at 0x10014de0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.1006ad60
mov eax, dword [0x100db55c]
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.10076710
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x10014ed7
test edi, edi
je 0x10014ed7
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x10014ed7
cmp eax, 0x3fff
ja 0x10014ed7
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10014ed7
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x100afe44
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10014ed7
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.10076710
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.10018500
add esp, 0x2c
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a7ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.1006a7ac
mov esp, ebp
pop ebp
ret
Function at 0x10015050
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.1006ad60
mov eax, dword [0x100db55c]
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 0x100151bf
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x100151bf
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x100150b5
push ebx
push eax
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100151bf
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10076710
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 0x10015177
push 0x800
lea eax, [ebp - 0x1004]
mov ebx, 1
push 0
push eax
call fcn.10076710
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.10076a67
add esp, 0x14
test eax, eax
je 0x1001513a
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 0x1001513a
mov ecx, ebx
jmp 0x1001513c
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.1008706a
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.1006a7ac
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 0x100151a5
push edi
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
call fcn.10014630
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.1006a7ac
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.1006a7ac
mov esp, ebp
pop ebp
ret
Function at 0x10015650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a9556
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100db55c]
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, 0x100b0350
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
nop
push ebx
push dword [esi + 4]
call fcn.10086e0a
add esp, 8
test eax, eax
je 0x100156eb
add esi, 8
cmp esi, str.CSIDL_DESKTOP
jl 0x10015690
call fcn.10002b70
mov ecx, eax
test ecx, ecx
je 0x100157ac
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x100cc394
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.100036d0
test al, al
jne 0x1001578e
push 0
push 0x100cc394
jmp 0x10015787
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10076710
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 0x10015735
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.10002b70
mov ecx, eax
test ecx, ecx
je 0x100157b6
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.100036d0
test al, al
jne 0x1001578e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015770
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10002820
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.1006a7ac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001810
push 0x80004005
call fcn.10001810
int3

Function at 0x100157d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8ceb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100db55c]
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.10076710
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.10002b70
mov ecx, eax
test ecx, ecx
je 0x1001589e
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.100036d0
test al, al
jne 0x10015882
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015864
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10002820
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.1006a7ac
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001810
int3
Function at 0x100158e0
Capabilities:
Check if file exists
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d1fc8
push 0x10076910
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.1006ad60
mov eax, dword [0x100db55c]
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 dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a2c], esi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x10015a8e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10015a8e
mov eax, 1
cmp dword [ebp + 0xc], 0
je 0x10015979
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015953
sub ecx, edx
sar ecx, 1
je 0x10015970
push edi
push esi
call fcn.1005e300
add esp, 8
jmp 0x10015979
push esi
call fcn.1005e7a0
add esp, 4
test eax, eax
je 0x10015a8e
mov dword [ebp - 4], 0
call fcn.10014850
mov dword [ebp - 4], 0xfffffffe
jmp 0x100159ac
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.10076710
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.10076710
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10015a8e
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.10076710
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.1008706a
lea eax, [ebp - 0x224]
push eax
call fcn.1007e22e
add esp, 0x1c
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x10015a8e
nop dword [eax]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.10015050
add esp, 0xc
test eax, eax
je 0x10015a85
lea eax, [ebp - 0xa24]
push eax
call fcn.1007e22e
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.10086e0a
add esp, 0xc
test eax, eax
je 0x10015aac
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x10015a40
xor eax, eax
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.1006a7ac
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x10015a90
Function at 0x10015ac0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d1fe8
push 0x10076910
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.1006ad60
mov eax, dword [0x100db55c]
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 dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a30], esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2a2c], edi
test esi, esi
je 0x10015c6a
mov dword [ebp - 4], 0
call fcn.10014850
mov dword [ebp - 4], 0xfffffffe
jmp 0x10015b4b
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.10076710
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.10076710
add esp, 0x18
lea eax, [ebp - 0x2a28]
push eax
push 0x800
lea eax, [ebp - 0x2a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10015c6a
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.1008706a
lea eax, [ebp - 0x224]
push eax
call fcn.1007e22e
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x10015c6a
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.10015050
add esp, 0xc
test eax, eax
je 0x10015c5d
lea eax, [ebp - 0xa24]
push eax
call fcn.1007e22e
add esp, 4
lea eax, [ebp - 0xa24]
push eax
call ebx
lea ecx, [ebp - 0x224]
push ecx
push eax
call fcn.10086e0a
add esp, 8
test eax, eax
jne 0x10015c5d
test edi, edi
je 0x10015c4a
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10015c27
sub eax, edx
sar eax, 1
je 0x10015c4a
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.1005e300
add esp, 8
jmp 0x10015c59
lea eax, [ebp - 0xa24]
push eax
call fcn.1005e7a0
add esp, 4
test eax, eax
jne 0x10015c88
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x10015bd3
xor eax, eax
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.1006a7ac
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x10015c6c