joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e4620
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598c18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
push ecx
xor edi, edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
xor esi, esi
push ecx
push edi
xor bl, bl
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x20]
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x1c], esi
cmovae eax, dword [ebp + 8]
push edi
push eax
push edi
mov byte [ebp - 0x21], bl
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4e4713
push dword [ebp - 0x20]
call fcn.0055ecaa
mov esi, eax
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
mov dword [ebp - 0x30], esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0055ecaa
add esp, 8
mov edi, eax
mov dword [ebp - 0x2c], edi
test esi, esi
je 0x4e46f1
test edi, edi
je 0x4e46f1
cmp dword [ebp + 0x1c], 8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
cmovae ecx, dword [ebp + 8]
push esi
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x4e46fa
push 0
push 0
call fcn.0055e49c
mov bl, 1
jmp 0x4e4713
test edi, edi
je 0x4e4720
push edi
call fcn.0055ec72
add esp, 4
test bl, bl
jne 0x4e4733
test esi, esi
je 0x4e4738
push esi
call fcn.0055ec72
add esp, 4
jmp 0x4e4738
mov eax, dword [ebp - 0x28]
mov dword [eax], esi
cmp dword [ebp + 0x1c], 8
jb 0x4e4749
push dword [ebp + 8]
call fcn.0055be19
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 - 0x14]
xor ecx, ebp
call fcn.0055e48d
mov esp, ebp
pop ebp
ret
Function at 0x4e47b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598c50
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x4e47ee
xor edi, edi
jmp 0x4e495b
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x5c
push eax
lea ecx, [ebp + 8]
call fcn.004ebe00
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.004e9cd0
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x4e484b
cmp dword [ebp + 0x1c], 8
jb 0x4e482e
push dword [ebp + 8]
call fcn.0055be19
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
call fcn.004ebad0
cmp dword [ebp - 0x18], 8
jb 0x4e485c
push dword [ebp - 0x2c]
call fcn.0055be19
add esp, 4
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp + 8]
push eax
call esi
cmp dword [ebp + 0x1c], 8
mov edi, eax
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x4e4956
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmovae eax, dword [ebp + 8]
push 0
push eax
call esi
test eax, eax
jne 0x4e4956
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 0x5c
call fcn.004ebe00
inc eax
lea ecx, [ebp + 8]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.004e9cd0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004e9990
cmp dword [ebp - 0x30], 8
jb 0x4e48f9
push dword [ebp - 0x44]
call fcn.0055be19
add esp, 4
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp + 8]
push eax
call fcn.004ebc00
call fcn.004e47b0
add esp, 0x18
test eax, eax
je 0x4e4943
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0
cmovae eax, dword [ebp + 8]
push eax
call esi
test eax, eax
mov ecx, 1
cmovne edi, ecx
cmp dword [ebp - 0x18], 8
jb 0x4e495b
push dword [ebp - 0x2c]
call fcn.0055be19
add esp, 4
jmp 0x4e495b
mov edi, 1
cmp dword [ebp + 0x1c], 8
jb 0x4e496c
push dword [ebp + 8]
call fcn.0055be19
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055e48d
mov esp, ebp
pop ebp
ret
Function at 0x4e4990
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 [0x615720]
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 bind
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e49ef
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.0055e48d
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 0x4e49db
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 0x4e49db
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e49db
push edi
call fcn.0055aea1
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 0x4e49db
push 0
push dword [esp + 0x3c]
push ebx
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4e49db
push ebx
call fcn.0055f5b3
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 0x4e49db
push dword [esp + 0x2c]
call fcn.0055ecaa
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 0x4e4b15
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.004e29a0
cmp dword [eax + 0x14], 0x10
jb 0x4e4aed
mov eax, dword [eax]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e1e00
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
call fcn.004e9990
lea ecx, [esp + 0x14]
call fcn.004e99d0
mov ebx, 1
jmp 0x4e4b17
xor ebx, ebx
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x4e49db
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.0055e48d
mov esp, ebp
pop ebp
ret
Function at 0x4e4b50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x598c88
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x615720]
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 0x5f71bc
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.004e9ac0
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 0x4e4c9a
lea eax, [esi + 1]
push eax
call fcn.0055aea1
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 0x4e4c9a
lea eax, [esp + 0x50]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x54], 0
push eax
push 0x5f71d8
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4e4c4a
push eax
push 0x5f71bc
lea ecx, [esp + 0x40]
call fcn.004e9ac0
jmp 0x4e4c9a
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.004e2580
add esp, 0x18
lea ecx, [esp + 0x38]
push eax
call fcn.004e9990
cmp dword [esp + 0x30], 8
jb 0x4e4c91
push dword [esp + 0x1c]
call fcn.0055be19
add esp, 4
push ebx
call fcn.0055be19
add esp, 4
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004e9920
cmp dword [esp + 0x4c], 8
jb 0x4e4cb9
push dword [esp + 0x38]
call fcn.0055be19
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.0055e48d
mov esp, ebp
pop ebp
ret
Function at 0x4e4ce0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x598cc0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x615720]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x30]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
xor eax, eax
push eax
push 0x5f71bc
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], edi
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], edi
mov word [esp + 0x38], ax
call fcn.004e9ac0
mov dword [esp + 0x70], edi
lea eax, [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x4e4ea5
lea eax, [ebx + 1]
push eax
call fcn.0055aea1
add esp, 4
mov esi, eax
push esi
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi], 0
push dword [esp + 0x34]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4e4e9c
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
lea eax, [esp + 0x28]
push eax
push str.VarFileInfoTranslation
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4e4e9c
mov ecx, dword [esp + 0x24]
mov eax, 0x4e4
cmp edi, 1
je 0x4e4ddb
movzx eax, word [ecx + 2]
movzx ecx, word [ecx]
push dword [esp + 0x18]
movzx eax, ax
shl ecx, 0x10
or ecx, eax
lea eax, [esp + 0x4c]
push ecx
push str.StringFileInfo_08lx_s
push eax
call fcn.004e2580
add esp, 0x10
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x28]
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 esi
mov dword [esp + 0x30], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4e4e5b
push esi
call fcn.0055f5b3
add esp, 4
mov byte [esp + 0x70], 0
inc edi
cmp dword [esp + 0x5c], 8
jb 0x4e4e50
push dword [esp + 0x48]
call fcn.0055be19
add esp, 4
cmp edi, 2
jl 0x4e4d60
jmp 0x4e4ea5
mov edx, dword [esp + 0x20]
cmp word [edx], 0
jne 0x4e4e69
xor ecx, ecx
jmp 0x4e4e7f
mov ecx, edx
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e4e70
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.004e9ac0
cmp dword [esp + 0x5c], 8
jb 0x4e4ea5
push dword [esp + 0x48]
call fcn.0055be19
jmp 0x4e4ea2
push esi
call fcn.0055f5b3
add esp, 4
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004e9920
cmp dword [esp + 0x44], 8
jb 0x4e4ec8
push dword [esp + 0x30]
call fcn.0055be19
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.0055e48d
mov esp, ebp
pop ebp
ret
Function at 0x4e5fe0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x615720]
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 0x4e607f
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x4e6030
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e6066
test dx, dx
je 0x4e6062
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e6066
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e6040
xor eax, eax
jmp 0x4e606b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e6070
inc esi
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x4e6030
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 1
pop edi
setge al
xor ecx, ebp
pop esi
call fcn.0055e48d
mov esp, ebp
pop ebp
ret

Function at 0x4e60a0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x615720]
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 0x4e60e0
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e48d
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 0x4e6172
lea ebx, [ebx]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e6136
test dx, dx
je 0x4e6132
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e6136
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e6110
xor eax, eax
jmp 0x4e613b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e6160
push dword [ebp - 0x228]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4e6188
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 0x4e6100
push edi
call ebx
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e48d
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.0055e48d
mov esp, ebp
pop ebp
ret
Function at 0x4e61c0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x615720]
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 0x4e6200
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e48d
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 0x4e6299
lea ebx, [ebx]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e6256
test dx, dx
je 0x4e6252
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e6256
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e6230
xor eax, eax
jmp 0x4e625b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e6287
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 0xc]
je 0x4e6287
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4e62af
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 0x4e6220
push edi
call ebx
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e48d
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.0055e48d
mov esp, ebp
pop ebp
ret

Function at 0x4e6370
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x615720]
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 0x4e640d
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x4e63c0
mov eax, str.firefox.exe
lea ecx, [ebp - 0x20c]
jmp 0x4e63d0
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e63f6
test dx, dx
je 0x4e63f2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e63f6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e63d0
xor eax, eax
jmp 0x4e63fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e641f
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x4e63c0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e48d
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.0055e48d
mov esp, ebp
pop ebp
ret
Function at 0x4e6440
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x598eab
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x615720]
xor eax, esp
mov dword [esp + 0x250], eax
push ebx
push esi
push edi
mov eax, dword [0x615720]
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 0x5f71bc
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], 0
mov word [esp + 0x1c], ax
call fcn.004e9ac0
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 0x4e6538
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4e6538
mov edi, dword [ebp + 0xc]
cmp dword [esp + 0x34], edi
je 0x4e6500
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4e64e8
jmp 0x4e6538
cmp word [esp + 0x50], 0
jne 0x4e650c
xor ecx, ecx
jmp 0x4e6522
lea ecx, [esp + 0x50]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e6513
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
call fcn.004e9ac0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.004e9920
cmp dword [esp + 0x28], 8
jb 0x4e6557
push dword [esp + 0x14]
call fcn.0055be19
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.0055e48d
mov esp, ebp
pop ebp
ret
Function at 0x4e6580
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, edx
test ebx, ebx
je 0x4e6720
test esi, esi
je 0x4e6720
push edi
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4e6697
cmp word [ebp - 0x4bc], 0
mov dword [ebp - 0x4c0], 0
je 0x4e6697
lea edi, [ebp - 0x4bc]
mov dword [ebp - 0x4c4], 0
lea esp, [esp]
push 0x5f74f0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4e666e
push 0x5f74f8
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4e666e
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 0x4e670d
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.00562354
add esp, 0xc
test eax, eax
je 0x4e66d5
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 0x4e65f0
mov ecx, 0x104
sub ebx, esi
mov edi, edi
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x4e6701
movzx eax, word [ebx + esi]
test ax, ax
je 0x4e6701
mov word [esi], ax
add esi, 2
dec ecx
jne 0x4e66a0
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.0055e48d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.004e1aa0
lea eax, [ebx + edi*2]
mov ecx, esi
push eax
call fcn.004e1af0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e48d
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x4e6708
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.0055e48d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.0055e48d
mov esp, ebp
pop ebp
ret