joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc700
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x507334]
xor eax, ebp
mov dword [ebp - 8], eax
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.00489f10
add esp, 0xc
mov byte [ebp - 1], 0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
ja 0x4bc756
jmp 0x4bc803
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x21c], 0
jmp 0x4bc77e
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 1
jae 0x4bc803
mov word [ebp - 0x430], 0
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call fcn.00489f10
add esp, 0xc
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.0048f23a
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx*4 + 0x50c49c]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.004ba346
add esp, 0x10
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bc7fe
mov byte [ebp - 1], 1
jmp 0x4bc803
jmp 0x4bc76f
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048f726
mov esp, ebp
pop ebp
ret

Function at 0x4bc820
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 0xd], 0
push 0x288
call fcn.0048d6cb
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4bc847
xor al, al
jmp 0x4bc931
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x288
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x6f
jne 0x4bc8aa
mov edx, dword [ebp - 0x14]
push edx
call fcn.00489bc2
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.0048d6cb
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4bc89a
xor al, al
jmp 0x4bc931
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x4bc90e
cmp dword [ebp - 0x14], 0
je 0x4bc90e
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x190], 3
ja 0x4bc8d2
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
jmp 0x4bc8b6
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x194]
cmp edx, 0x52
jne 0x4bc904
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax + 0x195]
cmp ecx, 0x54
jne 0x4bc904
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x196]
test eax, eax
jne 0x4bc904
mov byte [ebp - 0xd], 1
jmp 0x4bc90e
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
jmp 0x4bc8b6
cmp dword [ebp - 8], 0
je 0x4bc92e
mov eax, dword [ebp - 8]
push eax
call fcn.00489bc2
add esp, 4
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x4bc940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov byte [ebp - 9], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4bc980
mov byte [ebp - 9], 0
jmp 0x4bc9fd
push 0x80
call fcn.0048d6cb
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x14], 0x50
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4bc9c9
mov byte [ebp - 9], 0
jmp 0x4bc9e1
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0045497e
add esp, 8
test eax, eax
je 0x4bc9e1
mov byte [ebp - 9], 1
cmp dword [ebp - 0x18], 0
je 0x4bc9f3
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00489bc2
add esp, 4
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x4bcae0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x507334]
xor eax, ebp
mov dword [ebp - 8], eax
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.00489f10
add esp, 0xc
mov byte [ebp - 1], 0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
ja 0x4bcb36
jmp 0x4bcbe3
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x21c], 0
jmp 0x4bcb5e
mov eax, dword [ebp - 0x21c]
add eax, 1
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 5
jae 0x4bcbe3
mov word [ebp - 0x430], 0
push 0x208
push 0
lea ecx, [ebp - 0x42e]
push ecx
call fcn.00489f10
add esp, 0xc
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.0048f23a
add esp, 0x10
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx*4 + 0x50c474]
push edx
push 0x104
lea eax, [ebp - 0x430]
push eax
call fcn.004ba346
add esp, 0x10
lea ecx, [ebp - 0x430]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bcbde
mov byte [ebp - 1], 1
jmp 0x4bcbe3
jmp 0x4bcb4f
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0048f726
mov esp, ebp
pop ebp
ret
Function at 0x4bcc00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x507334]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x23d], 0
mov dword [ebp - 0x23c], 0xffffffff
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.00489f10
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0xffffffff
jne 0x4bcc6a
jmp 0x4bccb9
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x4bccb9
lea eax, [ebp - 0x214]
push eax
push str.vmusrvc.exe
call fcn.0048c034
add esp, 8
test eax, eax
jne 0x4bcca2
mov byte [ebp - 0x23d], 1
jmp 0x4bccb9
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x23c]
push edx
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4bcc81
cmp dword [ebp - 0x23c], 0
je 0x4bccd9
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x23c], 0
mov al, byte [ebp - 0x23d]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f726
mov esp, ebp
pop ebp
ret
Function at 0x4c1410
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
pop ebp
ret
Function at 0x4c3110
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov esp, ebp
pop ebp
ret

Function at 0x4c3910
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x507334]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0x80004005
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], 0xffffffff
mov byte [ebp - 0xc], 0
xor eax, eax
mov dword [ebp - 0xb], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
cmp dword [ebp + 8], 0
je 0x4c3971
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
jne 0x4c397b
jmp 0x4c3a9e
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
jne 0x4c39aa
jmp 0x4c3a9e
push 0
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
ja 0x4c39c9
jmp 0x4c3a9e
push 0
lea edx, [ebp - 0x1c]
push edx
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4c39f2
jmp 0x4c3a9e
lea edx, [ebp - 0xc]
push edx
call fcn.004c3830
add esp, 4
test eax, eax
jne 0x4c3a0c
jmp 0x4c3a9e
mov eax, dword [ebp - 0x14]
sub eax, 4
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 1
push ecx
push 0x40
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4c3a31
jmp 0x4c3a9e
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
push 0
push 0
push 4
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4c3a6e
jmp 0x4c3a9e
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004c3860
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4c3a9e
cmp dword [ebp - 0x24], 0
je 0x4c3a9e
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x28], 0xffffffff
je 0x4c3ab5
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048f726
mov esp, ebp
pop ebp
ret
Function at 0x4c5050
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf043
mov eax, dword fs:[0]
push eax
sub esp, 0x560
mov eax, dword [0x507334]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x54c], ecx
mov word [ebp - 0x4cc], 0
push 0x18e
push 0
lea eax, [ebp - 0x4ca]
push eax
call fcn.00489f10
add esp, 0xc
push 0x324
push 0
lea ecx, [ebp - 0x33c]
push ecx
call fcn.00489f10
add esp, 0xc
lea edx, [ebp - 0x4cc]
push edx
call fcn.004cc320
add esp, 4
test eax, eax
jne 0x4c50d4
mov eax, 1
jmp 0x4c52c1
lea eax, [ebp - 0x33c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
call fcn.0040848a
mov eax, dword [ebp + 8]
add eax, 8
mov ecx, 0x32
lea edx, [ebp - 0x4f8]
call fcn.00408bc7
mov dword [ebp - 0x550], eax
mov edx, dword [ebp - 0x550]
mov dword [ebp - 0x554], edx
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
add edi, 8
mov eax, dword [ebp - 0x554]
call fcn.00407526
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4f8]
call fcn.004084c4
lea eax, [ebp - 0x1ac]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0xc
push ecx
call fcn.0040848a
mov eax, dword [ebp + 8]
add eax, 0xc
mov ecx, 0x32
lea edx, [ebp - 0x4fc]
call fcn.00408bc7
mov dword [ebp - 0x558], eax
mov edx, dword [ebp - 0x558]
mov dword [ebp - 0x55c], edx
mov dword [ebp - 4], 1
mov edi, dword [ebp + 8]
add edi, 0xc
mov eax, dword [ebp - 0x55c]
call fcn.00407526
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4fc]
call fcn.004084c4
lea eax, [ebp - 0x4cc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040848a
mov ecx, 0x32
lea edx, [ebp - 0x500]
mov eax, dword [ebp + 8]
call fcn.00408bc7
mov dword [ebp - 0x560], eax
mov edx, dword [ebp - 0x560]
mov dword [ebp - 0x564], edx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x564]
mov edi, dword [ebp + 8]
call fcn.00407526
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x500]
call fcn.004084c4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x56c], eax
mov dword [ebp - 0x568], 0
fild qword [ebp - 0x56c]
fdiv qword [0x4ef2f8]
sub esp, 8
fstp qword [esp]
push str._.2f_GHZ
mov eax, dword [ebp + 8]
add eax, 4
call fcn.00408eea
add esp, 0xc
mov dword [ebp - 0x4f4], 0
xor ecx, ecx
mov dword [ebp - 0x4f0], ecx
mov dword [ebp - 0x4ec], ecx
mov dword [ebp - 0x4e8], ecx
mov dword [ebp - 0x4e4], ecx
mov dword [ebp - 0x4e0], ecx
mov dword [ebp - 0x4dc], ecx
mov dword [ebp - 0x4d8], ecx
mov dword [ebp - 0x4d4], ecx
push 0x4e09a8
push 0x4e09bc
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x4d0], eax
cmp dword [ebp - 0x4d0], 0
jne 0x4c52a3
lea edx, [ebp - 0x4f4]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
jmp 0x4c52b0
lea eax, [ebp - 0x4f4]
push eax
call dword [ebp - 0x4d0]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x4e0]
mov dword [ecx + 0x10], edx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048f726
mov esp, ebp
pop ebp
ret 4
Function at 0x4c65d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f8718
push 0x492d80
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x507334]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x4c662a
cmp dword [ebp + 0xc], 0
je 0x4c662a
cmp dword [ebp + 0x10], 1
jae 0x4c662f
jmp 0x4c670d
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jb 0x4c6651
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x4c6656
jmp 0x4c670d
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00486b44
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4c6691
mov dword [ebp - 4], 0xfffffffe
jmp 0x4c670d
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.00489f10
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4c66ed
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x4c66ed
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0048f23a
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4c670d
cmp dword [ebp - 0x20], 0
je 0x4c672c
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00489f07
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c67d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
call fcn.00408055
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4c67f0
xor eax, eax
jmp 0x4c6801
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x4c67fc
xor eax, eax
jmp 0x4c6801
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4c77b0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ceda8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x507334]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x14]
call fcn.00409ac2
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xffffffff
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
mov eax, dword [ebp + 8]
push eax
push str._s_del__x
lea eax, [ebp - 0x14]
call fcn.00408eea
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x4c789a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
call fcn.00408055
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0048eeb9
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4c7868
push 4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004084c4
mov eax, dword [ebp - 0x1c]
jmp 0x4c78b3
push 4
push 0
lea eax, [ebp - 0x14]
call fcn.00408055
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
test eax, eax
jne 0x4c789a
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004084c4
mov eax, dword [ebp - 0x20]
jmp 0x4c78b3
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004084c4
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4c7be0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x507334]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x244], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0040826f
mov dword [ebp - 0x240], 0
push 0x228
push 0
lea edx, [ebp - 0x23c]
push edx
call fcn.00489f10
add esp, 0xc
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4c7c3e
jmp 0x4c7ca7
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.DLL_Process32FirstW
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jne 0x4c7c69
jmp 0x4c7ca7
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 8]
call fcn.0044dc8e
test eax, eax
jne 0x4c7c93
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x238]
mov dword [eax], ecx
mov dword [ebp - 0x244], 1
jmp 0x4c7ca7
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4c7c69
cmp dword [ebp - 4], 0xffffffff
je 0x4c7cb7
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x24c], edx
lea ecx, [ebp - 8]
call fcn.004084c4
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0048f726
mov esp, ebp
pop ebp
ret
Function at 0x4c7ce0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cedd6
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x507334]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x230]
call fcn.00433773
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.00489f10
add esp, 0xc
lea eax, [ebp - 0x14]
call fcn.00409ac2
mov byte [ebp - 4], 1
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4c7dd0
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4c7dd0
push 0x4e0ab0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040826f
mov edx, dword [ebp - 0x234]
or edx, 1
mov dword [ebp - 0x234], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004084c4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.00433920
mov eax, dword [ebp + 8]
jmp 0x4c7eb8
lea eax, [ebp - 0x22c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x22c], 0
jne 0x4c7df1
jmp 0x4c7e77
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea ecx, [ebp - 0x224]
push ecx
call fcn.0048a91e
add esp, 4
test eax, eax
je 0x4c7e35
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040848a
lea eax, [ebp - 0x230]
call fcn.00433777
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4c7e77
lea eax, [ebp - 0x230]
call fcn.00408055
mov dword [ebp - 0x260], eax
mov edx, dword [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x260]
push eax
mov ecx, dword [ebp - 0x260]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.00408101
mov ecx, dword [ebp - 0x234]
or ecx, 1
mov dword [ebp - 0x234], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004084c4
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.00433920
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0048f726
mov esp, ebp
pop ebp
ret
Function at 0x4c8630
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf122
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x507334]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov eax, dword [ebp - 0x260]
add eax, 0xc
call fcn.00407519
movzx eax, al
test eax, eax
jne 0x4c86a1
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.00407519
movzx ecx, al
test ecx, ecx
jne 0x4c86a1
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.00407519
movzx edx, al
test edx, edx
je 0x4c86a8
xor eax, eax
jmp 0x4c8844
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
or ecx, 0x20019
push ecx
push 0
mov eax, dword [ebp - 0x260]
add eax, 0xc
call fcn.00408055
push eax
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x4c8707
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4c8844
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x228], 0x105
mov word [ebp - 0x224], 0
push 0x208
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.00489f10
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.00408055
push eax
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x22c], 0
jne 0x4c8842
cmp dword [ebp - 0x10], 1
jne 0x4c8842
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.0040826f
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x234]
push ecx
call fcn.004c7ee0
add esp, 4
push 0x105
lea esi, [ebp - 0x234]
call fcn.00408130
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.00408fdf
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.00408055
push eax
push 0x105
lea esi, [ebp - 0x234]
call fcn.00408130
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.00408fdf
lea edx, [ebp - 0x234]
push edx
call fcn.004c67d0
add esp, 4
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.004084c4
mov eax, dword [ebp - 0x238]
jmp 0x4c8844
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048f726
mov esp, ebp
pop ebp
ret 4