joyce8/EMBER2024-capa huggingface dataset:
Function at 0xf94e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xfaa8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0xf94ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00f917a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xf94e61
mov edx, dword [eax]
jmp 0xf94e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00f93050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xf94ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xf94ebf
cmp esi, edi
je 0xf94ebf
mov ecx, esi
call fcn.00f8ca00
push esi
call fcn.00f9a1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00f91990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xf94ef5
mov eax, dword [eax]
jmp 0xf94ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00f90640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0xf94f25
mov eax, dword [eax]
jmp 0xf94f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0xf94f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xf94f76
cmp esi, edi
je 0xf94f76
mov eax, dword [esi]
cmp eax, edi
je 0xf94f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xf94f6d
push eax
call fcn.00f9a1c8
add esp, 4
push esi
call fcn.00f9a1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xf94f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xf94ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xf95035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00f94e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xf94fc5
mov edi, 0xfaf8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xf95035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00f94e00
add edi, 4
add esp, 0xc
cmp edi, 0xfaf8c0
jb 0xf95000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xf95070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00f9b082
mov esi, eax
add esp, 8
test esi, esi
je 0xf95107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xf95102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00f9a946
add esp, 8
test eax, eax
je 0xf950e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xf950e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00f9a946
add esp, 8
test eax, eax
jne 0xf950c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xf95102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xf95f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xfaa9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xf96002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00f99dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xf96002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00f916e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00f9a20b
push 0x10
call fcn.00f9a1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xf95fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00f861c0
jmp 0xf95fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00f95b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xf95ff0
mov ecx, edi
call fcn.00f862c0
push edi
call fcn.00f9a1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xf96021
inc ebx
cmp ebx, 0x20
jb 0xf95f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xf97250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xfab808
push 0xf9b288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xf97329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xf97329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00f9a1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xf97329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xf97329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xf9732c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00f97351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xf98000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xf98131
push esi
call fcn.00f9b145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00f8a080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xf98131
push 0
push ebp
call fcn.00f8a3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00f8a260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xf9808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00f8a2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xf98121
push 0xfb0918
push edi
call fcn.00f993f0
push eax
push ebx
push esi
call fcn.00f97f60
push 0xfb08f8
push edi
call fcn.00f993f0
push eax
push ebx
push esi
call fcn.00f97f60
push 0xfb08d8
push edi
call fcn.00f993f0
push eax
push ebx
push esi
call fcn.00f97f60
push 0xfb08c0
push edi
call fcn.00f993f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00f97f60
push 0xfb08a0
push edi
call fcn.00f993f0
push eax
push ebx
push esi
call fcn.00f97f60
push 0xfb0888
push edi
call fcn.00f993f0
push eax
push ebx
push esi
call fcn.00f97f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xf991b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00f99140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00f99140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00f99140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00f99140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xf99bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xf99c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xfab87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xf99c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xf99c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4000dc4b
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x41c], 0
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x424], eax
cmp dword [edi + 0xc], 0
jne 0x4000dd0e
mov ecx, eax
lea esi, [ebp - 0x414]
xor eax, eax
movzx edx, word [ecx]
mov dword [ebp - 0x420], 0x5c
cmp word [ebp - 0x420], dx
je 0x4000dca8
mov word [esi], dx
add esi, 2
and dword [ebp - 0x420], 0
cmp word [ebp - 0x420], dx
je 0x4000dcc3
add ecx, 2
inc eax
cmp eax, 0x104
jl 0x4000dc8c
xor eax, eax
mov word [ebp - 0x20e], ax
lea eax, [ebp - 0x414]
push eax
push 0x4000259c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.4000766c
add esp, 0x10
test eax, eax
js 0x4000dd04
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0xc], eax
cmp dword [edi + 0xc], 0
je 0x4000de13
push 0
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4000dd25
xor ebx, ebx
inc ebx
jmp 0x4000ddc2
mov eax, dword [ebx]
push 0x20
push 2
push ebx
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x400282a8]
call esi
push ecx
mov ecx, dword [ebp - 0x424]
lea edx, [ebp - 0x20c]
call fcn.40017860
mov esi, dword [ebx]
lea eax, [ebp - 0x20c]
push 0
push eax
push 2
mov ecx, dword [esi + 0x14]
push ebx
call dword [0x400282a8]
call dword [esi + 0x14]
jmp 0x4000dd79
push 0x5dc
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4000dd86
mov ecx, ebx
call fcn.40016f2f
test eax, eax
je 0x4000dd67
jmp 0x4000dd90
mov dword [ebp - 0x41c], 1
mov esi, dword [ebx]
push 0
push 0x400025c4
push 2
mov ecx, dword [esi + 0x14]
push ebx
call dword [0x400282a8]
call dword [esi + 0x14]
mov eax, dword [ebx]
push ebx
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x400282a8]
call esi
mov ebx, dword [ebp - 0x41c]
test ebx, ebx
je 0x4000de19
mov ecx, dword [edi]
lea edx, [edi + 4]
push edx
push 0x400025b4
push ecx
mov eax, dword [ecx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x400282a8]
call esi
test eax, eax
js 0x4000de19
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x415]
push 1
push ecx
push dword [edi + 8]
mov byte [ebp - 0x415], 0
mov esi, dword [eax]
push eax
mov ecx, dword [esi + 0xc]
call dword [0x400282a8]
call dword [esi + 0xc]
test eax, eax
jns 0x4000de19
lea ecx, [edi + 4]
call fcn.400075e9
jmp 0x4000de19
mov ebx, dword [ebp - 0x41c]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.400215e0
mov esp, ebp
pop ebp
ret 8
Function at 0x4000f3be
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x40026d24]
xor eax, esp
mov dword [esp + 0x228], eax
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [edx + 0x52]
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
mov eax, 0x40001ecc
and dword [edi], 0
xor ecx, ecx
mov eax, dword [eax + ecx*4]
cmp eax, dword [edx + ecx*4 + 0x52]
jne 0x4000f42d
inc ecx
mov eax, 0x40001ecc
cmp ecx, 4
jne 0x4000f3fd
push ecx
lea eax, [esp + 0x2c]
push eax
push edx
call fcn.400107eb
push edi
push ebx
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.4000e906
jmp 0x4000f43a
push edi
push ebx
push dword [esp + 0x18]
mov ecx, esi
call fcn.4000eb0f
cmp eax, 0x8001010d
jne 0x4000f4f6
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], ebx
xor ebx, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x10], 0x80004005
mov dword [esp + 0x20], ebx
mov eax, dword [esi]
push esi
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x400282a8]
call esi
push ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x4000f340
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x4000f4c6
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0x10], ebx
jl 0x4000f4bf
push edi
push dword [esp + 0x18]
push dword [esp + 0x28]
call dword [sym.imp.ole32.dll_CoGetInterfaceAndReleaseStream]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x400282a8]
call esi
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4000f4f2
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x400282a8]
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.400215e0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40010e30
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x2b4
push ebx
push eax
mov word [edi], ax
lea eax, [ebp - 0x4c0]
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0xa]
lea ecx, [ebp - 0x4c0]
add esp, 0xc
and eax, 8
add eax, eax
push 0x410
push ebx
push ecx
push eax
push ecx
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.400107eb
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x40010eab
lea eax, [ebp - 0x2ac]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.4000a3fe
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.400215e0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40012746
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c0
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x2b4
push ebx
push eax
mov word [edi], ax
lea eax, [ebp - 0x4c0]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c0]
push 0x410
push ebx
push eax
push 0x10
push ecx
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.400124fa
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x400127ba
lea eax, [ebp - 0x2ac]
mov edx, 0x104
push eax
mov ecx, edi
call fcn.4000a3fe
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.400215e0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40012f6c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [0x40026d2c]
mov ebx, ecx
push edi
xor edi, edi
cmp esi, 0xaaaaaaaa
jne 0x40012fed
lea eax, [ebp - 8]
mov esi, 0x6400000
push eax
push 1
push edi
push 0x40002b08
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40012fe7
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x40002b70
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40012fde
cmp dword [ebp - 4], 4
jne 0x40012fde
cmp dword [ebp - 0xc], 4
jne 0x40012fde
mov esi, dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x40026d2c], esi
cmp dword [ebx + 0x214], esi
jbe 0x40012ff8
xor edi, edi
inc edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40013001
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x270], eax
mov edi, 0x80004005
lea eax, [ebp - 0x25c]
mov ebx, ecx
push eax
push 0x104
mov esi, edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x400130f6
cmp eax, 0x104
ja 0x400130f6
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov esi, eax
test esi, esi
js 0x400130f6
push 0x27
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x26c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x400130f4
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x25c]
push eax
push 0x40002b90
lea edi, [ebx + 0x238]
push 0x104
push edi
call fcn.4000766c
mov esi, eax
add esp, 0x14
test esi, esi
js 0x400130f6
mov eax, dword [ebp - 0x270]
push 0
push 0
push edi
mov esi, dword [eax]
push 5
push eax
mov ecx, dword [esi + 0x18]
call dword [0x400282a8]
call dword [esi + 0x18]
mov esi, eax
test esi, esi
js 0x400130f6
xor eax, eax
push eax
push 0x80
push 3
push eax
push eax
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x440], eax
cmp eax, 0xffffffff
jne 0x400130f6
mov esi, 0x80004005
jmp 0x400130f6
mov esi, edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.400215e0
mov esp, ebp
pop ebp
ret 4
Function at 0x400136e4
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4cc
mov eax, dword [0x40026d24]
xor eax, esp
mov dword [esp + 0x4c8], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov ecx, dword [esi + 8]
call fcn.40015f21
mov edi, eax
test edi, edi
je 0x4001380e
mov ebx, 0x2b4
lea eax, [esp + 0x10]
push ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x18], 0x10
lea eax, [esp + 0x10]
push 0x20f28
push ebx
push eax
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x400137a6
lea eax, [esp + 0x1c]
push eax
push 0x138
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [esp + 0x10]
mov ecx, dword [esi + 4]
mov edx, 0x137
call fcn.4001700f
lea eax, [esp + 0x224]
push eax
push 0x13b
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
test byte [esp + 0x18], 0x10
jne 0x400137a6
push ebx
push 1
push 0xcf
push 0x138
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
lea edx, [esi + 0x10]
mov ecx, edi
call fcn.40017035
test eax, eax
js 0x400137bb
mov ecx, esi
call fcn.40014228
push ebx
push ecx
lea eax, [esp + 0x2d0]
mov edx, 0xc000
push eax
mov ecx, edi
call fcn.40015e4d
test eax, eax
js 0x400137f9
lea eax, [esp + 0x2c8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x2c8]
push eax
push 0x13e
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [esi + 0x28]
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 4]
call fcn.4001362a
push edi
call dword [sym.imp.SHELL32.dll_Ordinal_12443]
mov ecx, dword [esp + 0x4d4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.400215e0
mov esp, ebp
pop ebp
ret
Function at 0x40013d02
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
lea edx, [ebp - 0x4cc]
push edi
call fcn.40015d81
mov edi, eax
test edi, edi
je 0x40013ddb
push esi
xor edx, edx
mov ecx, edi
call fcn.40015f21
mov esi, eax
test esi, esi
je 0x40013dcf
push 0x2b4
lea eax, [ebp - 0x4c0]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c0]
push 0x208
push 0x2b4
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x40013dc8
cmp dword [edi], 1
jbe 0x40013db5
mov edi, 0x104
lea eax, [ebp - 0x20c]
push edi
push eax
push 0x14b
push dword [0x40027300]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push ebx
call fcn.4000766c
add esp, 0x10
jmp 0x40013dc8
lea eax, [ebp - 0x4b4]
mov edx, 0x104
push eax
mov ecx, ebx
call fcn.4000a3fe
push esi
call dword [sym.imp.SHELL32.dll_Ordinal_12443]
lea edx, [ebp - 0x4cc]
call fcn.40006640
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.400215e0
mov esp, ebp
pop ebp
ret 4

Function at 0x40014827
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x40026d24]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov dword [ebp - 0x2bc], eax
mov edi, esi
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.4001469a
test eax, eax
je 0x40014871
push 1
push eax
call dword [sym.imp.USER32.dll_GetLastActivePopup]
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
xor eax, eax
jmp 0x400148cd
mov ecx, dword [ebp - 0x2bc]
call fcn.400145de
mov dword [esi], eax
test eax, eax
je 0x400148ca
test ebx, ebx
je 0x400148ca
push ecx
mov edx, ebx
mov ecx, eax
call fcn.40014792
push 0x108
push 0x2b4
mov dword [esi + 4], eax
lea eax, [ebp - 0x2b8]
push eax
push 0
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x400148ca
mov eax, dword [ebp - 0x2b8]
push 0
push eax
push 0x402
push dword [esi]
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.400215e0
mov esp, ebp
pop ebp
ret 8