joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100144b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x100db3fc]
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 0x10014591
test eax, eax
je 0x10014591
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10014591
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x10014591
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 0x1001457c
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.100873fb
add esp, 0xc
test eax, eax
je 0x100145a4
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x10014520
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x100145f2
cmp edi, 0x7fffffff
ja 0x100145f2
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 0x100145df
movzx eax, word [ebx + ecx]
test ax, ax
je 0x100145df
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x100145c4
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 0x10014600
cmp edi, 0x7fffffff
jbe 0x10014605
mov ecx, 0x80070057
test ecx, ecx
js 0x1001463b
mov eax, dword [ebp - 0x4c0]
mov esi, edi
test edi, edi
je 0x10014623
cmp word [eax], 0
je 0x10014623
add eax, 2
sub esi, 1
jne 0x10014615
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 0x1001463d
xor esi, esi
test ecx, ecx
js 0x1001468e
mov eax, dword [ebp - 0x4c0]
mov edx, edi
lea ecx, [eax + esi*2]
sub edx, esi
je 0x10014681
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 0x10014681
movzx eax, word [edi + ecx]
test ax, ax
je 0x10014681
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x10014668
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.1006a60c
mov esp, ebp
pop ebp
ret
Function at 0x100146d0
Capabilities:
Acquire debug privileges

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

Function at 0x10014c60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.1006abc0
mov eax, dword [0x100db3fc]
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.10076570
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x10014d57
test edi, edi
je 0x10014d57
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x10014d57
cmp eax, 0x3fff
ja 0x10014d57
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10014d57
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x100afe34
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10014d57
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.10076570
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.10018390
add esp, 0x2c
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.1006a60c
mov esp, ebp
pop ebp
ret
Function at 0x10014ed0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.1006abc0
mov eax, dword [0x100db3fc]
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 0x1001503f
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x1001503f
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10014f35
push ebx
push eax
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1001503f
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10076570
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 0x10014ff7
push 0x800
lea eax, [ebp - 0x1004]
mov ebx, 1
push 0
push eax
call fcn.10076570
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.100768c7
add esp, 0x14
test eax, eax
je 0x10014fba
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 0x10014fba
mov ecx, ebx
jmp 0x10014fbc
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.10086eca
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.1006a60c
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 0x10015025
push edi
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
call fcn.100144b0
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.1006a60c
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.1006a60c
mov esp, ebp
pop ebp
ret
Function at 0x100154d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a93d6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100db3fc]
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, 0x100b0340
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
nop
push ebx
push dword [esi + 4]
call fcn.10086c6a
add esp, 8
test eax, eax
je 0x1001556b
add esi, 8
cmp esi, str.CSIDL_DESKTOP
jl 0x10015510
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x1001562c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x100cbd64
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.10003540
test al, al
jne 0x1001560e
push 0
push 0x100cbd64
jmp 0x10015607
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10076570
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 0x100155b5
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x10015636
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.10003540
test al, al
jne 0x1001560e
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100155f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10002680
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.1006a60c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001670
push 0x80004005
call fcn.10001670
int3

Function at 0x10015650
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8b6b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100db3fc]
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.10076570
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.100029d0
mov ecx, eax
test ecx, ecx
je 0x1001571e
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.10003540
test al, al
jne 0x10015702
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100156e4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10002680
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.1006a60c
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001670
int3
Function at 0x10015760
Capabilities:
Check if file exists
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d1998
push 0x10076770
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.1006abc0
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 dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a2c], esi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x1001590e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001590e
mov eax, 1
cmp dword [ebp + 0xc], 0
je 0x100157f9
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100157d3
sub ecx, edx
sar ecx, 1
je 0x100157f0
push edi
push esi
call fcn.1005e160
add esp, 8
jmp 0x100157f9
push esi
call fcn.1005e600
add esp, 4
test eax, eax
je 0x1001590e
mov dword [ebp - 4], 0
call fcn.100146d0
mov dword [ebp - 4], 0xfffffffe
jmp 0x1001582c
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.10076570
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.10076570
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 0x1001590e
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.10076570
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.10086eca
lea eax, [ebp - 0x224]
push eax
call fcn.1007e08b
add esp, 0x1c
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x1001590e
nop dword [eax]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.10014ed0
add esp, 0xc
test eax, eax
je 0x10015905
lea eax, [ebp - 0xa24]
push eax
call fcn.1007e08b
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.10086c6a
add esp, 0xc
test eax, eax
je 0x1001592c
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x100158c0
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.1006a60c
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x10015910
Function at 0x10015940
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d19b8
push 0x10076770
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.1006abc0
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 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 0x10015aea
mov dword [ebp - 4], 0
call fcn.100146d0
mov dword [ebp - 4], 0xfffffffe
jmp 0x100159cb
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.10076570
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.10076570
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 0x10015aea
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.10086eca
lea eax, [ebp - 0x224]
push eax
call fcn.1007e08b
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x10015aea
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.10014ed0
add esp, 0xc
test eax, eax
je 0x10015add
lea eax, [ebp - 0xa24]
push eax
call fcn.1007e08b
add esp, 4
lea eax, [ebp - 0xa24]
push eax
call ebx
lea ecx, [ebp - 0x224]
push ecx
push eax
call fcn.10086c6a
add esp, 8
test eax, eax
jne 0x10015add
test edi, edi
je 0x10015aca
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10015aa7
sub eax, edx
sar eax, 1
je 0x10015aca
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.1005e160
add esp, 8
jmp 0x10015ad9
lea eax, [ebp - 0xa24]
push eax
call fcn.1005e600
add esp, 4
test eax, eax
jne 0x10015b08
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x10015a53
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.1006a60c
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x10015aec
Function at 0x10015b10
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d19d8
push 0x10076770
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.1006abc0
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 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 0x10015ca9
mov dword [ebp - 4], 0
call fcn.100146d0
mov dword [ebp - 4], 0xfffffffe
jmp 0x10015b9b
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.10076570
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.10076570
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 0x10015ca9
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.10086eca
lea eax, [ebp - 0x224]
push eax
call fcn.1007e08b
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x10015ca9
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.10014ed0
add esp, 0xc
test eax, eax
je 0x10015c9c
lea eax, [ebp - 0xa24]
push eax
call fcn.1007e08b
add esp, 4
lea eax, [ebp - 0xa24]
push eax
call ebx
lea ecx, [ebp - 0x224]
push ecx
push eax
call fcn.10086c6a
add esp, 8
test eax, eax
jne 0x10015c9c
test edi, edi
je 0x10015cc7
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10015c77
sub eax, edx
sar eax, 1
je 0x10015cc7
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.1005e160
add esp, 8
test eax, eax
jne 0x10015cc7
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x10015c23
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.1006a60c
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x10015cab
Function at 0x10015cd0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x100db3fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
xor esi, esi
push edi
cmp dword [0x100da118], esi
je 0x10015d9c
push 0x100b0228
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x124], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x12c], esi
call ecx
mov edi, eax
test edi, edi
je 0x10015d90
push 0x100b023c
push edi
call ebx
test eax, eax
je 0x10015d5f
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x130]
push ecx
call eax
movzx eax, word [ebp - 0x128]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x12c], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x12c], esi
je 0x10015d90
cmp dword [ebp - 0x130], 6
jne 0x10015d90
mov eax, dword [0x100dd62c]
mov ecx, 1
cmp dword [ebp - 0x124], 1
cmove eax, ecx
mov dword [0x100dd62c], eax
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x100da118], esi
cmp dword [0x100dd62c], esi
je 0x10015e2e
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.10076570
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
push str.GetProductInfo
push str.kernel32.dll
mov dword [ebp - 0x124], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call ebx
test eax, eax
je 0x10015e0b
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0
push dword [ebp - 0x118]
push dword [ebp - 0x11c]
call eax
cmp dword [ebp - 0x124], 2
je 0x10015edc
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006a60c
mov esp, ebp
pop ebp
ret
cmp dword [0x100da11c], esi
je 0x10015ece
push 0x100b0228
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x12c], esi
mov dword [ebp - 0x128], esi
mov dword [ebp - 0x124], esi
call ecx
mov edi, eax
test edi, edi
je 0x10015ec8
push 0x100b023c
push edi
call ebx
test eax, eax
je 0x10015e99
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x130]
push ecx
call eax
movzx eax, word [ebp - 0x128]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], 1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x124], esi
je 0x10015ec8
cmp dword [ebp - 0x130], 6
jne 0x10015ebc
cmp dword [ebp - 0x12c], 2
jae 0x10015ebe
jmp 0x10015ec8
jbe 0x10015ec8
mov dword [0x100dd630], 1
mov dword [0x100da11c], esi
cmp dword [0x100dd630], esi
mov eax, 1
cmovne esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006a60c
mov esp, ebp
pop ebp
ret
Function at 0x10016260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d1ba0
push 0x10076770
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
push 0x200
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.10076570
push edi
push str.SYSTEMCurrentControlSetServices_sParameters
push 0xff
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x430]
push eax
push 0x20219
push 0
lea eax, [ebp - 0x42c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10016379
mov dword [ebp - 0x438], eax
push 0x210
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.10076570
add esp, 0xc
mov dword [ebp - 0x434], 0x210
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x438]
push eax
push 0
push str.ServiceDll
push dword [ebp - 0x430]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10016379
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jle 0x10016379
push ecx
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.100163ab
mov eax, esi
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 0xc
Function at 0x10016700
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a94a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
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]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1001674b
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 esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x10016769
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
push esi
lea ecx, [ebp - 0x10]
call fcn.10003600
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x1001682a
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x100167a7
push esi
lea ecx, [ebp - 0x10]
call fcn.10002590
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov word [eax + edi*2], cx
mov eax, dword [ebp - 0x10]
cmp esi, dword [eax - 8]
jg 0x1001682a
mov dword [eax - 0xc], esi
xorps xmm0, xmm0
mov eax, dword [ebp - 0x10]
mov word [eax + esi*2], cx
mov eax, 0x614
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], ecx
movlpd qword [ebp - 0x1e], xmm0
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x24], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, dword [ebp - 0x10]
neg eax
mov dword [ebp - 4], 0xffffffff
sbb esi, esi
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10016816
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [esi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10001670
int3