joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e52f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6015eb
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0x24c], eax
push esi
push edi
mov eax, dword [0x697bc0]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [0x6a2bec]
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 0
test al, 1
jne 0x4e5374
or eax, 1
mov dword [0x6a2ba0], 7
mov dword [0x6a2bec], eax
xor eax, eax
push 0x614980
mov dword [0x6a2b9c], 0
mov word [0x6a2b8c], ax
call fcn.005c45a7
add esp, 4
sub esp, 0x18
mov dword [esp + 0x44], 0
mov ecx, esp
xor eax, eax
push 0xc
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.explorer.exe
mov word [ecx], ax
call fcn.004ef630
lea eax, [esp + 0x44]
push eax
call fcn.004e8a10
add esp, 0x1c
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.005c63d0
add esp, 0xc
mov dword [esp + 0x30], 0x104
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x34]
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
xor eax, eax
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
mov dword [esp + 0x268], eax
cmp word [esp + 0x4c], ax
jne 0x4e5416
xor ecx, ecx
jmp 0x4e542f
lea ecx, [esp + 0x4c]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e5420
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
call fcn.004ef630
push str.AppData_
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004f47b0
mov edi, eax
add esp, 0xc
cmp edi, 0x6a2b8c
je 0x4e549d
cmp dword [0x6a2ba0], 8
jb 0x4e5476
push dword [0x6a2b8c]
call fcn.005c4337
add esp, 4
xor eax, eax
mov dword [0x6a2ba0], 7
push edi
mov ecx, 0x6a2b8c
mov dword [0x6a2b9c], 0
mov word [0x6a2b8c], ax
call fcn.004f18b0
cmp dword [esp + 0x28], 8
jb 0x4e54b0
push dword [esp + 0x14]
call fcn.005c4337
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x6a2b8c
mov word [esi], ax
call fcn.004f19e0
cmp dword [esp + 0x48], 8
jb 0x4e54e5
push dword [esp + 0x34]
call fcn.005c4337
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x24c]
xor ecx, esp
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4e5fc0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x601728
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x697bc0]
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 0x4e60b3
push dword [ebp - 0x20]
call fcn.005c7372
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.005c7372
add esp, 8
mov edi, eax
mov dword [ebp - 0x2c], edi
test esi, esi
je 0x4e6091
test edi, edi
je 0x4e6091
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 0x4e609a
push 0
push 0
call fcn.005c6c18
mov bl, 1
jmp 0x4e60b3
test edi, edi
je 0x4e60c0
push edi
call fcn.005c72cc
add esp, 4
test bl, bl
jne 0x4e60d3
test esi, esi
je 0x4e60d8
push esi
call fcn.005c72cc
add esp, 4
jmp 0x4e60d8
mov eax, dword [ebp - 0x28]
mov dword [eax], esi
cmp dword [ebp + 0x1c], 8
jb 0x4e60e9
push dword [ebp + 8]
call fcn.005c4337
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.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4e6150
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x601760
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x697bc0]
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 0x4e618e
xor edi, edi
jmp 0x4e62fb
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x5c
push eax
lea ecx, [ebp + 8]
call fcn.004f1be0
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.004ef8d0
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x4e61eb
cmp dword [ebp + 0x1c], 8
jb 0x4e61ce
push dword [ebp + 8]
call fcn.005c4337
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.004f18b0
cmp dword [ebp - 0x18], 8
jb 0x4e61fc
push dword [ebp - 0x2c]
call fcn.005c4337
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 0x4e62f6
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 0x4e62f6
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.004f1be0
inc eax
lea ecx, [ebp + 8]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.004ef8d0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004ef440
cmp dword [ebp - 0x30], 8
jb 0x4e6299
push dword [ebp - 0x44]
call fcn.005c4337
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.004f19e0
call fcn.004e6150
add esp, 0x18
test eax, eax
je 0x4e62e3
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 0x4e62fb
push dword [ebp - 0x2c]
call fcn.005c4337
add esp, 4
jmp 0x4e62fb
mov edi, 1
cmp dword [ebp + 0x1c], 8
jb 0x4e630c
push dword [ebp + 8]
call fcn.005c4337
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.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4e6330
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 [0x697bc0]
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 connect
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e638f
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.005c6c09
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 0x4e637b
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 0x4e637b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e637b
push edi
call fcn.005c286c
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 0x4e637b
push 0
push dword [esp + 0x3c]
push ebx
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4e637b
push ebx
call fcn.005c736d
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 0x4e637b
push dword [esp + 0x2c]
call fcn.005c7372
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 0x4e64b5
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.004e3df0
cmp dword [eax + 0x14], 0x10
jb 0x4e648d
mov eax, dword [eax]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e3070
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
call fcn.004ef440
lea ecx, [esp + 0x14]
call fcn.004ef480
mov ebx, 1
jmp 0x4e64b7
xor ebx, ebx
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x4e637b
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.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4e64f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x601798
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x697bc0]
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 0x66dd94
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.004ef630
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 0x4e663a
lea eax, [esi + 1]
push eax
call fcn.005c286c
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 0x4e663a
lea eax, [esp + 0x50]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x54], 0
push eax
push 0x66ddb0
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4e65ea
push eax
push 0x66dd94
lea ecx, [esp + 0x40]
call fcn.004ef630
jmp 0x4e663a
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.004e37f0
add esp, 0x18
lea ecx, [esp + 0x38]
push eax
call fcn.004ef440
cmp dword [esp + 0x30], 8
jb 0x4e6631
push dword [esp + 0x1c]
call fcn.005c4337
add esp, 4
push ebx
call fcn.005c4337
add esp, 4
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004ef3d0
cmp dword [esp + 0x4c], 8
jb 0x4e6659
push dword [esp + 0x38]
call fcn.005c4337
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.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4e6680
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6017d0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x697bc0]
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 0x66dd94
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.004ef630
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 0x4e6845
lea eax, [ebx + 1]
push eax
call fcn.005c286c
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 0x4e683c
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 0x4e683c
mov ecx, dword [esp + 0x24]
mov eax, 0x4e4
cmp edi, 1
je 0x4e677b
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.004e37f0
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 0x4e67fb
push esi
call fcn.005c736d
add esp, 4
mov byte [esp + 0x70], 0
inc edi
cmp dword [esp + 0x5c], 8
jb 0x4e67f0
push dword [esp + 0x48]
call fcn.005c4337
add esp, 4
cmp edi, 2
jl 0x4e6700
jmp 0x4e6845
mov edx, dword [esp + 0x20]
cmp word [edx], 0
jne 0x4e6809
xor ecx, ecx
jmp 0x4e681f
mov ecx, edx
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e6810
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.004ef630
cmp dword [esp + 0x5c], 8
jb 0x4e6845
push dword [esp + 0x48]
call fcn.005c4337
jmp 0x4e6842
push esi
call fcn.005c736d
add esp, 4
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004ef3d0
cmp dword [esp + 0x44], 8
jb 0x4e6868
push dword [esp + 0x30]
call fcn.005c4337
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.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4e7b40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x697bc0]
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 0x4e7bdf
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x4e7b90
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e7bc6
test dx, dx
je 0x4e7bc2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e7bc6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e7ba0
xor eax, eax
jmp 0x4e7bcb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e7bd0
inc esi
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x4e7b90
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 1
pop edi
setge al
xor ecx, ebp
pop esi
call fcn.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4e7c00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x601a11
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x697bc0]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x697bc0]
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 0x4e7e1c
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
cmp word [esp + 0x90], ax
jne 0x4e7c98
xor ecx, ecx
jmp 0x4e7cb1
lea ecx, [esp + 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e7ca2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x5c]
call fcn.004ef630
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.004e2fe0
sub esp, 0x10
mov byte [esp + 0x2e0], 2
mov ecx, esp
push 2
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x66e0b8
mov byte [ecx], 0
call fcn.004eec50
lea ecx, [esp + 0x6c]
mov byte [esp + 0x2e0], 1
call fcn.004f8590
cmp dword [esp + 0x80], 0x10
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004e3070
add esp, 0x38
cmp dword [eax + 0x14], 8
jb 0x4e7d6b
mov eax, dword [eax]
mov ecx, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4e7d96
test dx, dx
je 0x4e7d92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4e7d96
add eax, 4
add ecx, 4
test dx, dx
jne 0x4e7d70
xor eax, eax
jmp 0x4e7d9b
sbb eax, eax
or eax, 1
test eax, eax
sete bl
cmp dword [esp + 0x38], 8
jb 0x4e7db3
push dword [esp + 0x24]
call fcn.005c4337
add esp, 4
test bl, bl
je 0x4e7db8
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 0x4e7dd9
push dword [esp + 0x3c]
call fcn.005c4337
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 0x4e7e0c
push dword [esp + 0x54]
call fcn.005c4337
add esp, 4
mov ebx, dword [esp + 0x18]
test esi, esi
mov esi, dword [esp + 0x14]
jne 0x4e7c73
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.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4e7e50
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x697bc0]
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 0x4e7e90
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
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 0x4e7f22
lea ebx, [ebx]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e7ee6
test dx, dx
je 0x4e7ee2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e7ee6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e7ec0
xor eax, eax
jmp 0x4e7eeb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e7f10
push dword [ebp - 0x228]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4e7f38
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 0x4e7eb0
push edi
call ebx
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
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.005c6c09
mov esp, ebp
pop ebp
ret
Function at 0x4e7f70
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x697bc0]
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 0x4e7fb0
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
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 0x4e8049
lea ebx, [ebx]
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e8006
test dx, dx
je 0x4e8002
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e8006
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e7fe0
xor eax, eax
jmp 0x4e800b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e8037
mov eax, dword [ebp - 0x228]
cmp eax, dword [ebp + 0xc]
je 0x4e8037
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x4e805f
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 0x4e7fd0
push edi
call ebx
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
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.005c6c09
mov esp, ebp
pop ebp
ret

Function at 0x4e8120
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x697bc0]
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 0x4e81bd
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x4e8170
mov eax, str.firefox.exe
lea ecx, [ebp - 0x20c]
jmp 0x4e8180
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e81a6
test dx, dx
je 0x4e81a2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e81a6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e8180
xor eax, eax
jmp 0x4e81ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x4e81cf
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x4e8170
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005c6c09
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.005c6c09
mov esp, ebp
pop ebp
ret