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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10106196
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x1015050c]
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 eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x824]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x818], eax
call fcn.100270b0
push esi
push edi
push ebx
lea ecx, [ebp - 0x824]
mov dword [ebp - 4], 0
call fcn.10027460
test eax, eax
jne 0x1001f0db
xor esi, esi
jmp 0x1001f1a9
call fcn.10005390
mov ecx, eax
test ecx, ecx
je 0x1001f1d4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
push 1
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x824]
call fcn.10027660
test eax, eax
je 0x1001f185
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.1008e9b0
add esp, 0xc
lea eax, [ebp - 0x810]
push str.netul.dll
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001f185
push 4
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x810]
push eax
push 0x400
push dword [ebp - 0x818]
call fcn.100aa1af
add esp, 0xc
mov esi, 1
jmp 0x1001f187
xor esi, esi
mov edi, dword [ebp - 0x814]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1001f1a9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x824]
call fcn.100270d0
mov eax, esi
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.10073638
mov esp, ebp
pop ebp
ret 0x14
push 0x80004005
call fcn.100047f0
int3
Function at 0x1001f1e0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101061d6
mov eax, dword fs:[0]
push eax
sub esp, 0x818
mov eax, dword [0x1015050c]
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 eax, dword [ebp + 8]
lea ecx, [ebp - 0x824]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x818], eax
call fcn.100270b0
push esi
push edi
push ebx
lea ecx, [ebp - 0x824]
mov dword [ebp - 4], 0
call fcn.10027460
test eax, eax
jne 0x1001f24b
xor edi, edi
jmp 0x1001f343
call fcn.10005390
mov ecx, eax
test ecx, ecx
je 0x1001f36e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
push 0
lea eax, [ebp - 0x814]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x824]
call fcn.10027660
test eax, eax
je 0x1001f31f
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.1008e9b0
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x1011cd9c
push dword [ebp - 0x814]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x810]
push eax
call fcn.100753b0
add esp, 4
test eax, eax
je 0x1001f31f
lea eax, [ebp - 0x810]
push eax
call fcn.1007b0a0
mov ecx, dword [ebp - 0x818]
lea edx, [ebp - 0x810]
mov edi, eax
lea esi, [edx + 2]
lea ecx, [ecx + 0x180]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1001f2f0
sub edx, esi
lea eax, [ebp - 0x810]
sar edx, 1
push edx
push eax
call fcn.10005b40
push 4
push 0
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x1001f321
xor edi, edi
mov esi, dword [ebp - 0x814]
or eax, 0xffffffff
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1001f343
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea ecx, [ebp - 0x824]
call fcn.100270d0
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.10073638
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.100047f0
int3
Function at 0x1001fbf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10106250
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1015050c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1001fd71
push esi
lea ecx, [ebp + 0xc]
call fcn.100044e0
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
or ebx, 0xffffffff
test eax, eax
je 0x1001fd30
mov eax, dword [ebp + 8]
add eax, 4
push 0x10118a68
push eax
lea eax, [ebp + 8]
push eax
call fcn.1001e820
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.1000adf0
mov edx, dword [ebp + 8]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001fc88
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001fc90
mov eax, dword [ebp + 0xc]
sub ecx, edx
mov edx, esi
sub edx, eax
sar edx, 1
sar ecx, 1
mov edi, dword [eax - 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edi
js 0x1001fd85
push ecx
push esi
call fcn.100aa9d3
mov ecx, SysReAllocString
mov dword [ebp - 0x18], eax
sub ecx, eax
add esp, 8
cmp ecx, edi
jl 0x1001fd8f
add edi, eax
js 0x1001fd99
mov eax, dword [ebp + 0xc]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x1001fcfb
push edi
lea ecx, [ebp + 0xc]
call fcn.10005720
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
cmp ecx, edx
ja 0x1001fd08
lea esi, [eax + ecx*2]
mov ecx, dword [ebp - 0x18]
lea eax, [eax + edx*2]
add ecx, ecx
push ecx
push esi
push ecx
push eax
call fcn.100202f0
mov eax, dword [ebp + 0xc]
add esp, 0x10
cmp edi, dword [eax - 8]
jg 0x1001fd85
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp + 0xc]
mov word [eax + edi*2], cx
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001fd52
push 0xffffffffffffffff
push 0
push 0
push 1
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.10026e50
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1001fd71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.100047f0
push 0x80070057
call fcn.100047f0
push 0x80070057
call fcn.100047f0
int3
Function at 0x1001fdb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x1001fe16
push esi
mov esi, dword [edx + 4]
test esi, esi
je 0x1001fe15
mov eax, esi
push ebx
lea ebx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001fdd0
sub eax, ebx
sar eax, 1
je 0x1001fe14
mov ebx, dword [edx + 0xc]
mov ecx, ebx
lea eax, [ecx + 2]
mov dword [ebp + 0xc], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001fdf0
sub ecx, dword [ebp + 0xc]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push dword [edx + 0x10]
push dword [edx + 8]
push esi
push dword [edx]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop ebx
pop esi
pop ebp
ret 8
Function at 0x10020fe0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10106470
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1015050c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x50]
mov dword [esi], vtable.CFileManager.0
mov dword [esi + 4], vtable.CFileManager.1.0
mov dword [esi + 0x68], 1
test eax, eax
je 0x1002103a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], 0
push dword [esi + 0x40]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10021052
push dword [esi + 0x40]
call fcn.10004ef0
add esp, 4
lea ecx, [esi + 0x44]
call fcn.100093c0
mov edx, dword [esi + 0x40]
or edi, 0xffffffff
sub edx, 0x10
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10021077
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi + 0x28]
mov dword [esi + 0x24], vtable._BaseModule::CCriticalSection.0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, dword [esi + 0x20]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x100210a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10021110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10106490
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1015050c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x50]
mov dword [ebp - 4], 0
mov dword [esi], vtable.CFileManager.0
mov dword [esi + 4], vtable.CFileManager.1.0
mov dword [esi + 0x68], 1
test eax, eax
je 0x10021171
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x50], 0
push dword [esi + 0x40]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10021189
push dword [esi + 0x40]
call fcn.10004ef0
add esp, 4
lea ecx, [esi + 0x44]
call fcn.100093c0
mov edx, dword [esi + 0x40]
or edi, 0xffffffff
sub edx, 0x10
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100211ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esi + 0x28]
mov dword [esi + 0x24], vtable._BaseModule::CCriticalSection.0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov edx, dword [esi + 0x20]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x100211d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test byte [ebp + 8], 1
je 0x100211e8
push 0x6c
push esi
call fcn.1007364e
add esp, 8
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 4
Function at 0x10021870
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.10073a60
mov eax, dword [0x1015050c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [eax]
mov dword [ebp - 0x1318], ecx
cmp dword [edi - 0xc], 0x104
jg 0x10021a38
push 0x800
lea eax, [ebp - 0x1304]
push 0
push eax
call fcn.1008e9b0
push 0x800
lea eax, [ebp - 0xb04]
push 0
push eax
call fcn.1008e9b0
push edi
lea eax, [ebp - 0x1304]
push 0x400
push eax
call fcn.100aa1af
add esp, 0x24
test esi, esi
je 0x100218fb
cmp word [esi], 0
je 0x100218fb
push esi
lea eax, [ebp - 0x1304]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xfe
lea eax, [ebp - 0x102]
push 0
push eax
call fcn.1008e9b0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
nop
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x1314]
push eax
movups xmmword [ebp - 0x1314], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.1008e9b0
movzx eax, byte [ebp - 0x1305]
push eax
movzx eax, byte [ebp - 0x1306]
push eax
movzx eax, byte [ebp - 0x1307]
push eax
movzx eax, byte [ebp - 0x1308]
push eax
movzx eax, byte [ebp - 0x1309]
push eax
movzx eax, byte [ebp - 0x130a]
push eax
movzx eax, byte [ebp - 0x130b]
push eax
movzx eax, byte [ebp - 0x130c]
push eax
movzx eax, word [ebp - 0x130e]
push eax
movzx eax, word [ebp - 0x1310]
push eax
push dword [ebp - 0x1314]
lea eax, [ebp - 0x304]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.100044b0
lea eax, [ebp - 0x304]
add esp, 0x40
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100219c6
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.100aa2e0
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1304]
push eax
lea eax, [ebp - 0xb04]
push eax
call edi
push str..tmp
lea eax, [ebp - 0xb04]
push 0x400
push eax
call fcn.100aa0da
add esp, 0xc
lea eax, [ebp - 0xb04]
push eax
call ebx
test eax, eax
je 0x10021a4b
inc esi
cmp esi, 0xa
jl 0x10021920
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10073638
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xb04]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10021a54
mov ecx, dword [ebp - 0x1318]
lea eax, [ebp - 0xb04]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10005b40
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10073638
mov esp, ebp
pop ebp
ret
Function at 0x10023d70
Capabilities:
Get session user name
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010688b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x1015050c]
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 esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x10023dbe
mov eax, 1
jmp 0x10023ef3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10023dd0
xor eax, eax
jmp 0x10023ef3
lea ecx, [ebp - 0x220]
call fcn.1002d790
push 0x1a
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.1002d960
mov dword [ebp - 0x224], eax
test eax, eax
je 0x10023e20
push 0xf003f
push eax
push 0x1011cfa0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x220]
call fcn.1002daa0
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x105
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.1002d800
mov dword [ebp - 0x224], eax
test eax, eax
je 0x10023e81
push 0xf003f
push eax
push 0x1011cfa0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x220]
call fcn.1002daa0
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x10023e95
mov esi, 1
jmp 0x10023ee6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10023ea4
xor esi, esi
jmp 0x10023ee6
push 1
lea ecx, [ebp - 0x220]
call fcn.1002d960
mov esi, eax
test esi, esi
je 0x10023ed9
push 0xf003f
push esi
push 0x1011cfa0
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x220]
call fcn.1002daa0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
lea ecx, [ebp - 0x220]
call fcn.1002d7a0
mov eax, esi
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.10073638
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100258b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10106c5b
mov eax, dword fs:[0]
push eax
sub esp, 0xa24
mov eax, dword [0x1015050c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0xa30], eax
mov edx, dword [eax + 4]
mov eax, dword [edx - 0xc]
add eax, eax
push eax
push edx
push 1
push str.Setup_Path
push dword [0x1014f32c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x228], xmm0
sbb edi, edi
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
call fcn.10005390
mov ecx, eax
test ecx, ecx
je 0x10025abe
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0xa2c], eax
movzx eax, word [ebp - 0x21c]
push eax
movzx eax, word [ebp - 0x21e]
push eax
movzx eax, word [ebp - 0x220]
push eax
movzx eax, word [ebp - 0x222]
push eax
movzx eax, word [ebp - 0x226]
push eax
movzx eax, word [ebp - 0x228]
push eax
lea eax, [ebp - 0xa2c]
mov dword [ebp - 4], 0
push str._04d__02d__02d__02d:_02d:_02d
push eax
call fcn.10009530
mov esi, dword [ebp - 0xa2c]
add esp, 0x20
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push str.InstallDate
push dword [0x1014f32c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x800
lea eax, [ebp - 0xa28]
push 0
push eax
call fcn.1008e9b0
mov eax, dword [ebp - 0xa30]
add esp, 0xc
push dword [0x1014f328]
push dword [eax + 4]
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0xa28]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100259f0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [ebp - 0xa28]
push eax
push 1
push 0
push dword [0x1014f32c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008e9b0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1007ebe0
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10025a50
sub eax, edx
sar eax, 1
add eax, eax
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push 0x1011cf94
push dword [0x1014f32c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10025aa0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
lea eax, [edi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10073638
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100047f0
int3
Function at 0x10026540
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x1015050c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4c0], ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x1002661b
test ecx, ecx
je 0x1002661b
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1002661b
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x1002661b
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 0x10026606
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]
call fcn.100ade5d
add esp, 0xc
test eax, eax
je 0x1002662e
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x100265b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10073638
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 0x4c0]
call fcn.10026ff0
xor ecx, ecx
test edi, edi
je 0x1002664c
cmp edi, 0x7fffffff
jbe 0x10026651
mov ecx, 0x80070057
test ecx, ecx
js 0x10026687
mov eax, dword [ebp - 0x4c0]
mov esi, edi
test edi, edi
je 0x1002666f
cmp word [eax], 0
je 0x1002666f
add eax, 2
sub esi, 1
jne 0x10026661
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 0x10026689
xor esi, esi
test ecx, ecx
js 0x100266da
mov eax, dword [ebp - 0x4c0]
mov edx, edi
lea ecx, [eax + esi*2]
sub edx, esi
je 0x100266cd
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x4c4]
add eax, 0x7ffffffe
add esi, eax
lea eax, [ebx + ebx]
sub eax, ecx
add edi, eax
test esi, esi
je 0x100266cd
movzx eax, word [edi + ecx]
test ax, ax
je 0x100266cd
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x100266b4
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.10073638
mov esp, ebp
pop ebp
ret
Function at 0x100266f0
Capabilities:
Acquire debug privileges

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

Function at 0x10026820
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.10073a60
mov eax, dword [0x1015050c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x1002695a
mov edi, dword [ebp + 0x10]
cmp edi, 0x64
jl 0x1002695a
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1002695a
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.1008e9b0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x1002692f
push 0x800
lea eax, [ebp - 0x1004]
push 0
push eax
call fcn.1008e9b0
lea eax, [ebp - 0x804]
push 0x7e
push eax
call fcn.1008fdf2
add esp, 0x14
test eax, eax
je 0x100268f4
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 0x100268f4
mov ecx, 1
jmp 0x100268f6
xor ecx, ecx
test ecx, ecx
lea edx, [ebp - 0x1004]
lea eax, [ebp - 0x804]
cmovne eax, edx
push eax
push edi
push ebx
call fcn.10026ff0
mov edi, dword [ebp - 0x1008]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10073638
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 0x1002690f
push edi
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.10026540
add esp, 0xc
mov edi, eax
jmp 0x10026915
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10073638
mov esp, ebp
pop ebp
ret