joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e46c0
Capabilities:
Get file size
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push closesocket
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e471f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00550759
mov esp, ebp
pop ebp
ret
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4e470b
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0
push eax
push 0
push 0
push 0x8003
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4e470b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e470b
push edi
call fcn.0054d749
add esp, 4
mov ebx, eax
lea eax, [esp + 0x38]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e470b
push 0
push dword [esp + 0x3c]
push ebx
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4e470b
push ebx
call fcn.00551062
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [esp + 0x2c]
push 0
push eax
push 0
push 2
push dword [esp + 0x40]
mov dword [esp + 0x40], 4
call edi
test eax, eax
je 0x4e470b
push dword [esp + 0x2c]
call fcn.00550f5e
add esp, 4
mov esi, eax
lea eax, [esp + 0x2c]
push 0
push eax
push esi
push 2
push dword [esp + 0x40]
call edi
test eax, eax
je 0x4e4845
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.004e26d0
cmp dword [eax + 0x14], 0x10
jb 0x4e481d
mov eax, dword [eax]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e1a10
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
call fcn.004e9920
lea ecx, [esp + 0x14]
call fcn.004e9960
mov ebx, 1
jmp 0x4e4847
xor ebx, ebx
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x4e470b
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x3c]
neg eax
pop edi
sbb eax, eax
and eax, ebx
pop esi
pop ebx
xor ecx, esp
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4e4880
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x575aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x5ea6f0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x38]
mov edi, dword [ebp + 8]
xor eax, eax
push eax
push 0x5d0874
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
call fcn.004e9a70
lea eax, [esp + 0x54]
mov dword [esp + 0x68], 0
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4e49ca
lea eax, [esi + 1]
push eax
call fcn.0054d749
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push dword [esp + 0x20]
mov dword [ebx], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4e49ca
lea eax, [esp + 0x50]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x54], 0
push eax
push 0x5d0890
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4e497a
push eax
push 0x5d0874
lea ecx, [esp + 0x40]
call fcn.004e9a70
jmp 0x4e49ca
mov eax, dword [esp + 0x34]
movzx esi, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
lea eax, [esp + 0x2c]
push str._d._d._d._d
push eax
call fcn.004e20d0
add esp, 0x18
lea ecx, [esp + 0x38]
push eax
call fcn.004e9920
cmp dword [esp + 0x30], 8
jb 0x4e49c1
push dword [esp + 0x1c]
call fcn.0054dfd9
add esp, 4
push ebx
call fcn.0054dfd9
add esp, 4
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004e98b0
cmp dword [esp + 0x4c], 8
jb 0x4e49e9
push dword [esp + 0x38]
call fcn.0054dfd9
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4e4a10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x575ae0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x5ea6f0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x30]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], eax
xor eax, eax
push eax
push 0x5d0874
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], 0
mov word [esp + 0x38], ax
call fcn.004e9a70
lea eax, [esp + 0x28]
mov dword [esp + 0x70], 0
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x4e4ab9
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e98b0
jmp 0x4e4bd5
lea eax, [ebx + 1]
push eax
call fcn.0054d749
add esp, 4
mov edi, eax
push edi
push ebx
mov dword [edi], 0
push dword [esp + 0x30]
push dword [esp + 0x20]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4e4af2
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e98b0
jmp 0x4e4bd5
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x30], 0
push eax
push str.VarFileInfoTranslation
push edi
call ebx
test eax, eax
jne 0x4e4b27
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e98b0
jmp 0x4e4bd5
cmp dword [ebp + 0x14], 0
mov edx, 0x4e4
mov eax, dword [esp + 0x24]
jne 0x4e4b3a
movzx edx, word [eax + 2]
movzx ecx, word [eax]
push dword [esp + 0x18]
movzx eax, dx
shl ecx, 0x10
or ecx, eax
lea eax, [esp + 0x4c]
push ecx
push str.StringFileInfo_08lx_s
push eax
call fcn.004e20d0
add esp, 0x10
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x2c]
cmp dword [esp + 0x5c], 8
lea eax, [esp + 0x48]
push ecx
cmovae eax, dword [esp + 0x4c]
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
mov dword [esp + 0x30], 0
call ebx
test eax, eax
je 0x4e4b96
push dword [esp + 0x20]
lea ecx, [esp + 0x34]
call fcn.004e99b0
push edi
call fcn.0054dfd9
add esp, 4
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e98b0
cmp dword [esp + 0x5c], 8
jb 0x4e4bbe
push dword [esp + 0x48]
call fcn.0054dfd9
add esp, 4
xor eax, eax
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], ax
cmp dword [esp + 0x44], 8
jb 0x4e4be8
push dword [esp + 0x30]
call fcn.0054dfd9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4e5d00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x230], 0x22c
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4e5d9f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x4e5d50
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e5d86
test dx, dx
je 0x4e5d82
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e5d86
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e5d60
xor eax, eax
jmp 0x4e5d8b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e5d90
inc esi
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x4e5d50
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 1
pop edi
setge al
xor ecx, ebp
pop esi
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4e5dc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x575ce1
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x5ea6f0]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
xor edi, edi
mov dword [esp + 0x6c], 0x22c
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [esp + 0x6c]
push eax
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4e5fdc
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
cmp word [esp + 0x90], ax
jne 0x4e5e58
xor ecx, ecx
jmp 0x4e5e71
lea ecx, [esp + 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e5e62
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x5c]
call fcn.004e9a70
mov dword [esp + 0x2b0], 0
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
mov byte [esp + 0x2b0], 1
lea ecx, [esp + 0x54]
cmp dword [esp + 0x68], 8
cmovae ecx, dword [esp + 0x54]
sub esp, 0x18
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
push eax
call fcn.004e1980
sub esp, 0x10
mov byte [esp + 0x2e0], 2
mov ecx, esp
push 2
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5d0b80
mov byte [ecx], 0
call fcn.004e9140
lea ecx, [esp + 0x6c]
mov byte [esp + 0x2e0], 1
call fcn.004f1910
cmp dword [esp + 0x80], 0x10
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004e1a10
add esp, 0x38
cmp dword [eax + 0x14], 8
jb 0x4e5f2b
mov eax, dword [eax]
mov ecx, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4e5f56
test dx, dx
je 0x4e5f52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4e5f56
add eax, 4
add ecx, 4
test dx, dx
jne 0x4e5f30
xor eax, eax
jmp 0x4e5f5b
sbb eax, eax
or eax, 1
test eax, eax
sete bl
cmp dword [esp + 0x38], 8
jb 0x4e5f73
push dword [esp + 0x24]
call fcn.0054dfd9
add esp, 4
test bl, bl
je 0x4e5f78
inc edi
lea eax, [esp + 0x6c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [esp + 0x50], 0x10
mov esi, eax
jb 0x4e5f99
push dword [esp + 0x3c]
call fcn.0054dfd9
add esp, 4
mov dword [esp + 0x2b0], 0xffffffff
cmp dword [esp + 0x68], 8
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
jb 0x4e5fcc
push dword [esp + 0x54]
call fcn.0054dfd9
add esp, 4
mov ebx, dword [esp + 0x18]
test esi, esi
mov esi, dword [esp + 0x14]
jne 0x4e5e33
xor eax, eax
cmp edi, 1
setge al
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4e6010
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e6050
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e60e2
lea ebx, [ebx]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e60a6
test dx, dx
je 0x4e60a2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e60a6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e6080
xor eax, eax
jmp 0x4e60ab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e60d0
push dword [ebp - 0x228]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4e60f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call ebx
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4e6070
push edi
call ebx
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4e6130
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4e6170
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e6209
lea ebx, [ebx]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e61c6
test dx, dx
je 0x4e61c2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e61c6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e61a0
xor eax, eax
jmp 0x4e61cb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e61f7
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 0xc]
je 0x4e61f7
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4e621f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call ebx
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4e6190
push edi
call ebx
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.00550759
mov esp, ebp
pop ebp
ret

Function at 0x4e62e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4e637d
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x4e6330
mov eax, str.firefox.exe
lea ecx, [ebp - 0x20c]
jmp 0x4e6340
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e6366
test dx, dx
je 0x4e6362
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e6366
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e6340
xor eax, eax
jmp 0x4e636b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e638f
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x4e6330
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
pop edi
pop esi
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4e63b0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x575d1b
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5ea6f0]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x5ea6f0]
xor eax, esp
push eax
lea eax, [esp + 0x268]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x14]
xor eax, eax
mov dword [esp + 0x10], 0
push eax
push 0x5d0874
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.004e9a70
push 0
mov dword [esp + 0x274], 0
push 2
mov dword [esp + 0x34], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e64a8
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4e64a8
mov edi, dword [ebp + 0xc]
cmp dword [esp + 0x34], edi
je 0x4e6470
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4e6458
jmp 0x4e64a8
cmp word [esp + 0x50], 0
jne 0x4e647c
xor ecx, ecx
jmp 0x4e6492
lea ecx, [esp + 0x50]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e6483
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.004e9a70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.004e98b0
cmp dword [esp + 0x28], 8
jb 0x4e64c7
push dword [esp + 0x14]
call fcn.0054dfd9
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x268]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x250]
xor ecx, esp
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4e64f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, edx
test ebx, ebx
je 0x4e6690
test esi, esi
je 0x4e6690
push edi
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4e6607
cmp word [ebp - 0x4bc], 0
mov dword [ebp - 0x4c0], 0
je 0x4e6607
lea edi, [ebp - 0x4bc]
mov dword [ebp - 0x4c4], 0
lea esp, [esp]
push 0x5d0bac
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4e65de
push 0x5d0bb4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4e65de
movzx eax, word [edi]
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x4c4]
push 0x64
movzx eax, word [ebp + eax - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4e667d
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [ebp - 0xd4]
push edi
push eax
push ebx
call fcn.005536be
add esp, 0xc
test eax, eax
je 0x4e6645
mov eax, dword [ebp - 0x4c0]
lea edi, [ebp - 0x4bc]
add eax, 4
mov dword [ebp - 0x4c0], eax
add eax, eax
add edi, eax
mov dword [ebp - 0x4c4], eax
cmp word [edi], 0
jne 0x4e6560
mov ecx, 0x104
sub ebx, esi
mov edi, edi
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x4e6671
movzx eax, word [ebx + esi]
test ax, ax
je 0x4e6671
mov word [esi], ax
add esi, 2
dec ecx
jne 0x4e6610
sub esi, 2
xor eax, eax
pop edi
mov word [esi], ax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.004e1720
lea eax, [ebx + edi*2]
mov ecx, esi
push eax
call fcn.004e1770
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x4e6678
sub esi, 2
xor eax, eax
mov word [esi], ax
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00550759
mov esp, ebp
pop ebp
ret
Function at 0x4e66b0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push ecx
push 0x400
mov word [ebp - 0x414], cx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4e6705
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jne 0x4e6717
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 2
jne 0x4e6725
lea eax, [ebp - 0x20c]
jmp 0x4e674b
push ecx
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x20c]
call fcn.004e64f0
add esp, 4
push esi
test eax, eax
je 0x4e66ff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x414]
push eax
mov ecx, edi
call fcn.004e99b0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00550759
mov esp, ebp
pop ebp
ret

Function at 0x4e6770
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x575d58
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x240], ecx
push 0
mov dword [ebp - 4], 0
push 2
mov dword [ebp - 0x23c], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e6860
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e685d
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4e67f0
cmp word [ebp - 0x218], 0
jne 0x4e67fe
xor eax, eax
jmp 0x4e6816
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e6807
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0x18]
lea ecx, [ebp + 8]
push 0
call fcn.004ebe90
test eax, eax
jne 0x4e684b
push dword [ebp - 0x234]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
jne 0x4e6891
call ebx
push 0
call edi
lea eax, [ebp - 0x23c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4e67f0
push esi
call edi
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x4e6873
push dword [ebp + 8]
call fcn.0054dfd9
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x240]
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
test eax, eax
je 0x4e685e
call edi
mov bl, 1
jmp 0x4e6862
Function at 0x4e6de0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x118
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
mov esi, 1
call fcn.00550bc0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x4e6e56
mov ecx, dword [ebp - 0x118]
test ecx, ecx
je 0x4e6ee0
xor eax, eax
cmp ecx, esi
pop esi
setne al
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x4e6ebc
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x4e6ea8
dec eax
je 0x4e6e94
dec eax
je 0x4e6e80
mov eax, 6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
mov eax, 5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
mov eax, 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
mov eax, 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jb 0x4e6ed5
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550759
mov esp, ebp
pop ebp
ret
cmp eax, 6
mov ecx, 8
cmova esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00550759
mov esp, ebp
pop ebp
ret