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

Disassembly:
push 0x23c
mov eax, 0x63b93f
call fcn.0042458f
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.004c2932
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4c2c5a
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x6508e8
call fcn.0040a6a0
push 0x6508ec
mov ecx, esi
call fcn.0040a6a0
push 0x643058
mov ecx, esi
call fcn.0040a6a0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.0040aae0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4c2caf
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4c2d47
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004ef2d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004c2806
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4c2d06
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040a6a0
push 0x643058
mov ecx, esi
call fcn.0040a6a0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.0040aae0
cmp dword [esi + 0x14], 8
jb 0x4c2d4f
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4c2d67
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x6508e8
call fcn.0040a6a0
push 0x6508ec
mov ecx, esi
call fcn.0040a6a0
push 0x643058
mov ecx, esi
call fcn.0040a6a0
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.004c2991
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040ddb0
lea ecx, [ebp - 0x248]
call fcn.004047d0
lea ecx, [ebp - 0x230]
call fcn.004047d0
call fcn.0042454a
ret
Function at 0x4c3dbe
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x63bb36
call fcn.0042458f
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x4c3ddf
push dword [esi + 0x1c]
call fcn.005089d2
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004c33e1
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00507a92
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4c3e63
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004c33e1
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004c33e1
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.004047d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004047d0
sub edi, 1
jns 0x4c3e0d
mov ecx, esi
call fcn.004c3c9d
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.004047d0
call fcn.0042454a
ret

Function at 0x4c3e7c
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x63bb36
call fcn.0042458f
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x4c3e9d
push dword [esi + 0x1c]
call fcn.005089d2
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004c33e1
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00507a92
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4c3f21
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004c33e1
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004c33e1
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.004047d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.004047d0
sub edi, 1
jns 0x4c3ecb
mov ecx, esi
call fcn.004c3d34
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.004047d0
call fcn.0042454a
ret
Function at 0x4c4672
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 0x4c4783
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x4c4782
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4c46a1
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 0x4c4782
push 0x6ee9c2
push eax
call fcn.004242e1
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x4c4782
cmp dword [esi + 0x14], 0x10
jb 0x4c46d6
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 0x4c4770
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 0x4c4770
mov eax, dword [ebp - 0x10]
push 0x6ee9c2
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.004242e1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4c4770
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4c4739
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.004098b0
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 0x4c476e
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00402ff0
mov bl, 1
push esi
call fcn.0042425f
pop ecx
test edi, edi
je 0x4c4782
push edi
call fcn.0042425f
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x4c47a1
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x2b4
mov eax, 0x63bc6a
call fcn.0042458f
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push esi
call fcn.0040a340
mov ecx, dword [ebp - 0x30]
xor ebx, ebx
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x4c4931
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4c47ff
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 2], 0x2f
je 0x4c47ff
push 0x643058
lea ecx, [ebp - 0x40]
call fcn.0040a6a0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x60], ebx
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], ebx
call fcn.0040a6d0
push 0x650b14
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.0040a6a0
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 0x4c4929
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.0040a1d0
push 0x642f48
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004205b0
test al, al
jne 0x4c48eb
push 0x650b1c
lea ecx, [ebp - 0x28]
call fcn.004205b0
test al, al
jne 0x4c48eb
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], ebx
call fcn.0040a6d0
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.0040aae0
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x58]
je 0x4c48d4
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.004c47a1
jmp 0x4c48e2
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.004c4789
pop ecx
lea ecx, [ebp - 0x58]
call fcn.004047d0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004047d0
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4c4846
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4c4929
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x70]
call fcn.004047d0
lea ecx, [ebp - 0x40]
call fcn.004047d0
call fcn.0042454a
ret
Function at 0x4c4a80
Capabilities:
Delete registry value

Disassembly:
push 0x20
mov eax, 0x63bcd8
call fcn.0042458f
xor esi, esi
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 4], esi
push str.SoftwareMicrosoftWindowsCurrentVersionShell_ExtensionsApproved
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
call fcn.0040a1d0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
push 0xf013f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c4af4
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.004047d0
lea ecx, [ebp + 8]
call fcn.004047d0
call fcn.0042454a
ret 0x18

Function at 0x4c4b0c
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push edi
cmovae eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push ecx
push 0xf013f
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], 0
je 0x4c4b66
push str.InprocServer32
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp + 0xc]
call fcn.004047d0
pop edi
leave
ret 0x1c
Function at 0x4c4b73
Capabilities:
Delete registry key

Disassembly:
push 0x60
mov eax, 0x63bd25
call fcn.0042458f
and dword [ebp - 4], 0
xor eax, eax
and dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 1
call fcn.004c5012
push eax
lea ecx, [ebp - 0x6c]
call fcn.004c4a16
mov esi, dword [ebp - 0x6c]
mov byte [ebp - 4], 2
jmp 0x4c4ca9
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4c4bbc
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040a340
push str._shellexContextMenuHandlers_
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0040a6a0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4c4be0
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a340
push str._shellexDragDropHandlers_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
call fcn.0040a6a0
xor edx, edx
lea ecx, [ebp - 0x5c]
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push edx
cmovae eax, dword [ebp - 0x40]
push ecx
push edx
push 0xf013f
push edx
push edx
push edx
push eax
push Ordinal_1
mov dword [ebp - 0x5c], edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4c4c46
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edx
cmovae eax, dword [ebp - 0x28]
push ecx
push edx
push 0xf013f
push edx
push edx
push edx
push eax
push Ordinal_1
mov dword [ebp - 0x60], edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4c4c92
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.004047d0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004047d0
add esi, 0x18
cmp esi, dword [ebp - 0x68]
jne 0x4c4bb2
lea ecx, [ebp - 0x6c]
call fcn.00411100
lea ecx, [ebp - 0x58]
call fcn.004047d0
lea ecx, [ebp + 8]
call fcn.004047d0
call fcn.0042454a
ret 0x18

Function at 0x4c4cd2
Capabilities:
Delete registry value

Disassembly:
push 0x20
mov eax, 0x63bcd8
call fcn.0042458f
xor esi, esi
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 4], esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShellIconOverlayIdentifiers_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], ax
call fcn.0040a1d0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2c]
push ecx
push 0xf013f
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c4d46
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.004047d0
lea ecx, [ebp + 8]
call fcn.004047d0
call fcn.0042454a
ret 0x18
Function at 0x4c523e
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6e306c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 7
pop ecx
push 0xf003f
push eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4c52b1
push 0x10020
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4c52a1
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4c52a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x4c52b1
push esi
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.004239b8
leave
ret 4

Function at 0x4c52c4
Capabilities:
Create process on windows

Disassembly:
push 0x8c
mov eax, 0x63be49
call fcn.0042458f
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
push 0x44
pop edi
push edi
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x98]
push esi
push eax
call fcn.004ef2d0
mov dword [ebp - 0x98], edi
xor eax, eax
lea edi, [ebp - 0x54]
mov dword [ebp - 0x18], esi
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
je 0x4c5372
push eax
lea ecx, [ebp - 0x40]
call fcn.0040a1d0
cmp dword [ebp - 0x30], esi
je 0x4c5372
push 0x64407c
lea ecx, [ebp - 0x28]
call fcn.0040a1d0
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040a6a0
push 0x650e88
lea ecx, [ebp - 0x28]
call fcn.0040a6a0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.0040aae0
jmp 0x4c537b
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040a1d0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x98]
push ecx
push esi
push esi
push esi
push 1
push esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4c53ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4c53da
cmp byte [ebp + 0x10], 0
je 0x4c53c7
or eax, 0xffffffff
cmp dword [ebp + 0x14], 0
cmovg eax, dword [ebp + 0x14]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x54]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x50]
call esi
xor esi, esi
inc esi
lea ecx, [ebp - 0x40]
call fcn.004047d0
lea ecx, [ebp - 0x28]
call fcn.004047d0
mov eax, esi
call fcn.0042454a
ret
Function at 0x4c55d9
Capabilities:
Get disk information
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x6e306c]
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 0x6cf8f0
mov dword [ebp - 0x440], eax
call fcn.0040a1d0
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004ef2d0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x105
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x4c567d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov edi, eax
test edi, edi
je 0x4c567d
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.00424264
mov ebx, eax
xor eax, eax
push esi
push eax
push ebx
call fcn.004ef2d0
add esp, 0x10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x4c568e
push ebx
call fcn.0042425f
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004239b8
leave
ret
mov eax, dword [0x650e80]
mov dword [ebp - 0xc], eax
mov ax, word [0x650e84]
push 0x208
mov word [ebp - 8], ax
call fcn.00424264
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 0x4c5703
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4c57a2
push edi
call fcn.0042425f
push 2
call fcn.00424264
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 0x4c57a2
mov esi, edi
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4c570a
sub esi, ecx
lea eax, [ebp - 0x218]
sar esi, 1
push esi
push edi
push eax
call fcn.0050762e
add esp, 0xc
test eax, eax
je 0x4c5752
mov esi, dword [ebp - 0x43c]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4c5734
movzx eax, word [esi]
mov dword [ebp - 0x43c], esi
test ax, ax
je 0x4c57a2
jmp 0x4c56b6
lea eax, [ebp - 0x218]
lea eax, [eax + esi*2]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x64305c
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00409ef0
add esp, 0x14
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0x438]
push eax
call fcn.0040a340
mov ecx, dword [ebp - 0x440]
push eax
call fcn.0040a2b0
lea ecx, [ebp - 0x438]
call fcn.004047d0
push ebx
call fcn.0042425f
push edi
call fcn.0042425f
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x4c567f
Function at 0x4c57b8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6e306c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4c583e
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.004ef2d0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4c583e
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4c5833
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00505645
pop ecx
pop ecx
test eax, eax
je 0x4c584e
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4c5813
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.004239b8
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x4c5840

Function at 0x4c5ae6
Capabilities:
Terminate process

Disassembly:
push 0x20
mov eax, 0x63b303
call fcn.0042458f
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 0x4c5b71
cmp esi, 0xffffffff
je 0x4c5b71
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.004c55d9
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004c59c2
add esp, 0x10
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.004047d0
test bl, bl
je 0x4c5b71
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4c5b71
cmp byte [ebp + 0x14], 0
je 0x4c5b71
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [ebp - 0x2c], 0
test esi, esi
je 0x4c5b8f
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x4c5b8f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
call fcn.0042454a
ret