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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x100db774]
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 0x10014951
test eax, eax
je 0x10014951
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x10014951
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x10014951
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 0x1001493c
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.100861cb
add esp, 0xc
test eax, eax
je 0x10014964
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x100148e0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100693bc
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x100149b2
cmp edi, 0x7fffffff
ja 0x100149b2
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 0x1001499f
movzx eax, word [ebx + ecx]
test ax, ax
je 0x1001499f
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10014984
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 0x100149c0
cmp edi, 0x7fffffff
jbe 0x100149c5
mov ecx, 0x80070057
test ecx, ecx
js 0x100149fb
mov eax, dword [ebp - 0x4c0]
mov esi, edi
test edi, edi
je 0x100149e3
cmp word [eax], 0
je 0x100149e3
add eax, 2
sub esi, 1
jne 0x100149d5
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 0x100149fd
xor esi, esi
test ecx, ecx
js 0x10014a4e
mov eax, dword [ebp - 0x4c0]
mov edx, edi
lea ecx, [eax + esi*2]
sub edx, esi
je 0x10014a41
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 0x10014a41
movzx eax, word [edi + ecx]
test ax, ax
je 0x10014a41
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x10014a28
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.100693bc
mov esp, ebp
pop ebp
ret
Function at 0x10014a90
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100db774]
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 0x10014b08
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.100693bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100693bc
mov esp, ebp
pop ebp
ret

Function at 0x10015040
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.10069970
mov eax, dword [0x100db774]
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.10075330
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x10015137
test edi, edi
je 0x10015137
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x10015137
cmp eax, 0x3fff
ja 0x10015137
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10015137
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x100aee54
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10015137
mov esi, dword [ebp + 0x10]
lea eax, [esi + esi]
push eax
push 0
push edi
call fcn.10075330
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.10018420
add esp, 0x2c
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100693bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100693bc
mov esp, ebp
pop ebp
ret
Function at 0x100152b0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.10069970
mov eax, dword [0x100db774]
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 0x1001541f
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x1001541f
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10015315
push ebx
push eax
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1001541f
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.10075330
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 0x100153d7
push 0x800
lea eax, [ebp - 0x1004]
mov ebx, 1
push 0
push eax
call fcn.10075330
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.10075687
add esp, 0x14
test eax, eax
je 0x1001539a
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 0x1001539a
mov ecx, ebx
jmp 0x1001539c
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.10085c9a
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.100693bc
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 0x10015405
push edi
push dword [ebp - 0x1008]
lea eax, [ebp - 0x804]
push eax
call fcn.10014870
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.100693bc
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.100693bc
mov esp, ebp
pop ebp
ret
Function at 0x100158b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8196
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x100db774]
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, 0x100af360
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x220], edi
nop
push ebx
push dword [esi + 4]
call fcn.10085a3a
add esp, 8
test eax, eax
je 0x1001594b
add esi, 8
cmp esi, str.CSIDL_DESKTOP
jl 0x100158f0
call fcn.10002dd0
mov ecx, eax
test ecx, ecx
je 0x10015a0c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x100cc3a4
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.10003930
test al, al
jne 0x100159ee
push 0
push 0x100cc3a4
jmp 0x100159e7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10075330
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 0x10015995
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.10002dd0
mov ecx, eax
test ecx, ecx
je 0x10015a16
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.10003930
test al, al
jne 0x100159ee
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100159d0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10002a80
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.100693bc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001a70
push 0x80004005
call fcn.10001a70
int3

Function at 0x10015a30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a792b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100db774]
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.10075330
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call fcn.10002dd0
mov ecx, eax
test ecx, ecx
je 0x10015afe
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.10003930
test al, al
jne 0x10015ae2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015ac4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10002a80
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.100693bc
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001a70
int3
Function at 0x10015b40
Capabilities:
Check if file exists
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d1fb8
push 0x10075530
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.10069970
mov eax, dword [0x100db774]
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 0x10015cee
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10015cee
mov eax, 1
cmp dword [ebp + 0xc], 0
je 0x10015bd9
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015bb3
sub ecx, edx
sar ecx, 1
je 0x10015bd0
push edi
push esi
call fcn.1005cf10
add esp, 8
jmp 0x10015bd9
push esi
call fcn.1005d3b0
add esp, 4
test eax, eax
je 0x10015cee
mov dword [ebp - 4], 0
call fcn.10014a90
mov dword [ebp - 4], 0xfffffffe
jmp 0x10015c0c
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.10075330
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.10075330
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 0x10015cee
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.10075330
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.10085c9a
lea eax, [ebp - 0x224]
push eax
call fcn.1007ce5b
add esp, 0x1c
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x10015cee
nop dword [eax]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.100152b0
add esp, 0xc
test eax, eax
je 0x10015ce5
lea eax, [ebp - 0xa24]
push eax
call fcn.1007ce5b
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.10085a3a
add esp, 0xc
test eax, eax
je 0x10015d0c
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x10015ca0
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.100693bc
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x10015cf0
Function at 0x10015d20
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d1fd8
push 0x10075530
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.10069970
mov eax, dword [0x100db774]
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 0x10015eca
mov dword [ebp - 4], 0
call fcn.10014a90
mov dword [ebp - 4], 0xfffffffe
jmp 0x10015dab
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.10075330
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.10075330
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 0x10015eca
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.10085c9a
lea eax, [ebp - 0x224]
push eax
call fcn.1007ce5b
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x10015eca
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.100152b0
add esp, 0xc
test eax, eax
je 0x10015ebd
lea eax, [ebp - 0xa24]
push eax
call fcn.1007ce5b
add esp, 4
lea eax, [ebp - 0xa24]
push eax
call ebx
lea ecx, [ebp - 0x224]
push ecx
push eax
call fcn.10085a3a
add esp, 8
test eax, eax
jne 0x10015ebd
test edi, edi
je 0x10015eaa
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10015e87
sub eax, edx
sar eax, 1
je 0x10015eaa
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.1005cf10
add esp, 8
jmp 0x10015eb9
lea eax, [ebp - 0xa24]
push eax
call fcn.1005d3b0
add esp, 4
test eax, eax
jne 0x10015ee8
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x10015e33
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.100693bc
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x10015ecc
Function at 0x10015f00
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d1ff8
push 0x10075530
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2a18
call fcn.10069970
mov eax, dword [0x100db774]
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 0x10016099
mov dword [ebp - 4], 0
call fcn.10014a90
mov dword [ebp - 4], 0xfffffffe
jmp 0x10015f8b
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.10075330
mov dword [ebp - 0x2a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x2a24]
push eax
call fcn.10075330
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 0x10016099
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.10085c9a
lea eax, [ebp - 0x224]
push eax
call fcn.1007ce5b
add esp, 0x10
xor esi, esi
cmp dword [ebp - 0x2a28], esi
jbe 0x10016099
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x400
lea eax, [ebp - 0xa24]
push eax
push dword [ebp + esi*4 - 0x2a24]
call fcn.100152b0
add esp, 0xc
test eax, eax
je 0x1001608c
lea eax, [ebp - 0xa24]
push eax
call fcn.1007ce5b
add esp, 4
lea eax, [ebp - 0xa24]
push eax
call ebx
lea ecx, [ebp - 0x224]
push ecx
push eax
call fcn.10085a3a
add esp, 8
test eax, eax
jne 0x1001608c
test edi, edi
je 0x100160b7
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10016067
sub eax, edx
sar eax, 1
je 0x100160b7
push edi
lea eax, [ebp - 0xa24]
push eax
call fcn.1005cf10
add esp, 8
test eax, eax
jne 0x100160b7
inc esi
cmp esi, dword [ebp - 0x2a28]
jb 0x10016013
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.100693bc
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x1001609b
Function at 0x100160c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x100db774]
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 0x1001618c
push 0x100af248
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 0x10016180
push 0x100af25c
push edi
call ebx
test eax, eax
je 0x1001614f
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 0x10016180
cmp dword [ebp - 0x130], 6
jne 0x10016180
mov eax, dword [0x100dd99c]
mov ecx, 1
cmp dword [ebp - 0x124], 1
cmove eax, ecx
mov dword [0x100dd99c], eax
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x100da118], esi
cmp dword [0x100dd99c], esi
je 0x1001621e
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.10075330
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 0x100161fb
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 0x100162cc
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100693bc
mov esp, ebp
pop ebp
ret
cmp dword [0x100da11c], esi
je 0x100162be
push 0x100af248
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 0x100162b8
push 0x100af25c
push edi
call ebx
test eax, eax
je 0x10016289
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 0x100162b8
cmp dword [ebp - 0x130], 6
jne 0x100162ac
cmp dword [ebp - 0x12c], 2
jae 0x100162ae
jmp 0x100162b8
jbe 0x100162b8
mov dword [0x100dd9a0], 1
mov dword [0x100da11c], esi
cmp dword [0x100dd9a0], 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.100693bc
mov esp, ebp
pop ebp
ret
Function at 0x10016650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100d2198
push 0x10075530
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x100db774]
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.10075330
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 0x10016769
mov dword [ebp - 0x438], eax
push 0x210
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.10075330
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 0x10016769
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jle 0x10016769
push ecx
lea eax, [ebp - 0x22c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 4], 0xfffffffe
call fcn.1001679b
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.100693bc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100168c0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a8238
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x100db774]
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 0x1001690b
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 0x10016929
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.100039f0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov edi, dword [eax - 0xc]
lea esi, [edi + 1]
test esi, esi
js 0x100169ea
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x10016967
push esi
lea ecx, [ebp - 0x10]
call fcn.10002990
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 0x100169ea
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 0x100169d6
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.10001a70
int3