joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e59aa
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x692be4
mov dword [ebp - 0x440], eax
call fcn.00402340
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00517830
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x4e5a4e
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x4e5a4e
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00447fed
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.00517830
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x4e5a5f
push ebx
call fcn.00447ff6
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f77
leave
ret
mov eax, dword [0x6aa1c4]
mov dword [ebp - 0xc], eax
mov ax, word [0x6aa1c8]
push 0x208
mov word [ebp - 8], ax
call fcn.00447fed
mov edi, eax
mov dword [ebp - 0x43c], ebx
movzx eax, word [ebx]
pop ecx
push 0x104
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
jne 0x4e5ad4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4e5b73
push edi
call fcn.00447ff6
push 2
call fcn.00447fed
pop ecx
pop ecx
mov edi, eax
lea eax, [ebp - 0xc]
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4e5b73
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4e5adb
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.0051b68b
add esp, 0xc
test eax, eax
je 0x4e5b23
mov esi, dword [ebp - 0x43c]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4e5b05
movzx eax, word [esi]
mov dword [ebp - 0x43c], esi
test ax, ax
je 0x4e5b73
jmp 0x4e5a87
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x6966d0
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00427430
add esp, 0x14
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0x438]
push eax
call fcn.004027c0
mov ecx, dword [ebp - 0x440]
push eax
call fcn.0041cdd0
lea ecx, [ebp - 0x438]
call fcn.00401e90
push ebx
call fcn.00447ff6
push edi
call fcn.00447ff6
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4e5a50
Function at 0x4e5b89
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4e5c0f
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00517830
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4e5c0f
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4e5c04
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0051b516
pop ecx
pop ecx
test eax, eax
je 0x4e5c1f
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4e5be4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00447f77
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x4e5c11

Function at 0x4e5d93
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4e5e17
push 0x228
xor ebx, ebx
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.00517830
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4e5e17
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4e5e04
cmp dword [ebp - 0x228], edi
je 0x4e5e0a
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4e5def
jmp 0x4e5e0c
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x4e5e19
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f77
leave
ret

Function at 0x4e5f4c
Capabilities:
Terminate process

Disassembly:
push 0x20
mov eax, 0x6895b8
call fcn.004490d5
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4e5fd7
cmp esi, 0xffffffff
je 0x4e5fd7
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004e59aa
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004e5e28
add esp, 0x10
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.00401e90
test bl, bl
je 0x4e5fd7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4e5fd7
cmp byte [ebp + 0x14], 0
je 0x4e5fd7
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x2c], 0
test esi, esi
je 0x4e5ff5
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x4e5ff5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.00449090
ret
Function at 0x4e5ffd
Capabilities:
Enumerate processes
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4e6099
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4e6099
push edi
xor edi, edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push ebx
push eax
push dword [ebp - 0x228]
call fcn.004e5f4c
add esp, 0x10
test al, al
je 0x4e6061
inc edi
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4e6043
test edi, edi
jle 0x4e6094
push str.Shell_TrayWnd
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
push eax
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call esi
mov eax, edi
pop edi
jmp 0x4e609c
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f77
leave
ret

Function at 0x4e611b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00517830
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004e60d0
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x4e619a
cmp dword [ebp - 0x118], ebx
jbe 0x4e61e0
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x4e61e0
cmp eax, 6
jne 0x4e61c5
cmp byte [ebp - 6], 1
jne 0x4e61c0
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x4e61bc
sub eax, 1
je 0x4e61b8
push 7
jmp 0x4e61c2
push 5
jmp 0x4e61c2
push 3
jmp 0x4e61c2
push 4
pop ebx
jmp 0x4e61e0
push 0xa
pop ecx
cmp eax, ecx
jne 0x4e61dd
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x4e61e0
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00447f77
leave
ret
Function at 0x4e64ca
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x4e64df
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e6501
mov al, 1
jmp 0x4e6592
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00447fed
push esi
mov ebx, eax
push 0
push ebx
call fcn.00445cc9
push dword [ebp + 8]
push esi
push ebx
call fcn.005269ea
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x4e6540
cmp eax, 0x2f
jne 0x4e657c
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4e6575
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4e6583
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x4e6575
push ebx
mov ecx, eax
call fcn.004e6429
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x4e6532
jmp 0x4e6587
mov byte [ebp - 1], 0
push ebx
call fcn.00447ff6
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x4e676a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.00517830
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4e67d5
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x4e67e3
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004027c0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00447f77
leave
ret

Function at 0x4e67f3
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x68e538
call fcn.004490d5
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
xor edi, edi
mov dword [ebp - 0x220], esi
push 0x208
push edi
push eax
mov dword [ebp - 0x21c], edi
call fcn.00517830
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
add esp, 0xc
mov word [esi], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
mov edi, 0x104
mov dword [ebp - 0x21c], 1
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x218]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
push eax
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00402f30
mov eax, esi
call fcn.00449090
ret
Function at 0x4e9c90
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x3c
mov eax, 0x68eac6
call fcn.004490d5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x4e9cb3
xor al, al
jmp 0x4e9d73
lea edi, [ecx + 4]
cmp dword [edi + 0x10], 0
ja 0x4e9cd6
lea eax, [ebp - 0x40]
push eax
call fcn.004e57e1
pop ecx
push eax
mov ecx, edi
call fcn.0041cdd0
lea ecx, [ebp - 0x40]
call fcn.00401e90
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 0x14], 0
push edi
call fcn.00447685
xor edi, edi
lea ecx, [ebp - 0x28]
push str.Software_
mov dword [ebp - 4], edi
call fcn.00402d70
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
call fcn.00402d70
test ebx, ebx
je 0x4e9d1e
push 0x693250
lea ecx, [ebp - 0x28]
call fcn.00402d70
push ebx
lea ecx, [ebp - 0x28]
call fcn.00402d70
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x44]
push ecx
push 0xf003f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], edi
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e9d69
test esi, esi
je 0x4e9d56
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4e9d60
push edi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.00401e90
mov al, 1
call fcn.00449090
ret 0xc
Function at 0x4ea04f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
cmp dword [esi + 0x14], ebx
ja 0x4ea0a7
lea eax, [ebp - 0x1c]
push eax
call fcn.004e57e1
pop ecx
lea ecx, [esi + 4]
push eax
call fcn.0041cdd0
lea ecx, [ebp - 0x1c]
call fcn.00401e90
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x4ea0b2
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push ebx
push eax
push reloc.WS2_32.dll_closesocket
call esi
test eax, eax
je 0x4ea0d5
xor al, al
jmp 0x4ea18e
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push ebx
push 0x6aa490
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x4ea0f8
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ea0ce
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x4ea12a
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x4ea0ce
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4ea17d
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4ea14f
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x28]
call esi
mov bl, 1
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f77
leave
ret 0x10
Function at 0x4ea898
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ea8c7
push 2
pop eax
jmp 0x4ea959
push str.DGYg80dlVh2FoNE0
push str.YkNeF8pGJvCom4Qj
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004ea4fd
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00517830
add esp, 0x1c
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, str.open
mov dword [ebp - 0x54], 0x40
mov eax, str.runas
mov dword [ebp - 0x3c], 5
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x4ea94f
cmp dword [ebp + 0x10], 0
je 0x4ea94f
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.00401e90
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f77
leave
ret

Function at 0x4ea968
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0
je 0x4ea97e
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004eab2b
pop ecx
pop ecx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4ea9a0
cmp esi, 2
je 0x4ea9a0
xor al, al
jmp 0x4ea9a2
mov al, 1
pop esi
pop ebp
ret
Function at 0x4ea9a5
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x68ecc1
call fcn.004490a1
and dword [ebp - 0x20], 0
xor eax, eax
mov ebx, dword [ebp + 8]
and dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
and dword [ebp - 4], eax
push 0x208
mov dword [ebp - 0x20], 1
call fcn.00447fed
mov edx, eax
xor eax, eax
pop ecx
mov ecx, 0x82
mov dword [ebp - 0x14], edx
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, 0x20019
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x18]
push eax
push edi
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4eaaab
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
push eax
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x4eaaa2
cmp dword [ebp - 0x10], 0x104
jbe 0x4eaa73
push dword [ebp - 0x14]
call fcn.00447ff6
mov eax, dword [ebp - 0x10]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00447fed
mov edi, eax
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x14], edi
push eax
push esi
push edi
call fcn.00445cc9
add esp, 0x14
jmp 0x4eaa76
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
push edi
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov ecx, ebx
mov esi, eax
push edi
call fcn.00402f30
push edi
call fcn.00447ff6
mov edi, dword [ebp - 0x1c]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
cmp esi, eax
jne 0x4eaacd
cmp dword [ebp + 0xc], reloc.OLEAUT32.dll_SysReAllocString
jne 0x4eaacd
cmp edi, 0x20019
jne 0x4eaacd
mov edi, 0x20119
jmp 0x4ea9f2
mov eax, ebx
call fcn.0044907b
ret
Function at 0x4eaf0b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x4eb01c
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x4eb01b
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4eaf3a
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x4eb01b
push 0x74045c
push eax
call fcn.00448e27
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x4eb01b
cmp dword [esi + 0x14], 0x10
jb 0x4eaf6f
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x4eb009
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4eb009
mov eax, dword [ebp - 0x10]
push 0x74045c
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.00448e27
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4eb009
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4eafd2
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.00418510
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4eb007
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00420090
mov bl, 1
push esi
call fcn.00447ff6
pop ecx
test edi, edi
je 0x4eb01b
push edi
call fcn.00447ff6
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x4eb03a
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x2b4
mov eax, 0x68ed93
call fcn.004490d5
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push esi
call fcn.004027c0
mov ecx, dword [ebp - 0x30]
xor ebx, ebx
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x4eb1ca
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4eb098
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 2], 0x2f
je 0x4eb098
push 0x693250
lea ecx, [ebp - 0x40]
call fcn.00402d70
lea eax, [ebp - 0x40]
mov dword [ebp - 0x60], ebx
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], ebx
call fcn.00447685
push 0x6aa25c
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00402d70
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4eb1c2
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x294]
mov dword [ebp - 0x14], 7
push eax
call fcn.00402340
push 0x693428
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004e61ef
test al, al
jne 0x4eb184
push 0x6961e4
lea ecx, [ebp - 0x28]
call fcn.004e61ef
test al, al
jne 0x4eb184
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], ebx
call fcn.00447685
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
call fcn.00402da0
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x58]
je 0x4eb16d
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.004eb03a
jmp 0x4eb17b
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.004eb022
pop ecx
lea ecx, [ebp - 0x58]
call fcn.00401e90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00401e90
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4eb0df
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4eb1c2
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x70]
call fcn.00401e90
lea ecx, [ebp - 0x40]
call fcn.00401e90
call fcn.00449090
ret