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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x571c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5e56f0]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov eax, dword [0x5e56f0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [0x5eb518]
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 0
test al, 1
jne 0x4e3384
or eax, 1
mov dword [0x5eb4e0], 7
mov dword [0x5eb518], eax
xor eax, eax
push 0x57a390
mov dword [0x5eb4dc], 0
mov word [0x5eb4cc], ax
call fcn.0054a5e9
add esp, 4
push 0
push 0x5cc174
push dword [0x5eb4dc]
mov ecx, 0x5eb4cc
push 0
call fcn.004ebed0
test eax, eax
jne 0x4e3499
push 0x104
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [esp + 0x44], ax
jne 0x4e33d7
xor ecx, ecx
jmp 0x4e33ef
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e33e0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.004e9ab0
push 0x5cc190
lea eax, [esp + 0x30]
mov dword [esp + 0x264], 0
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004ee4f0
mov edi, eax
add esp, 0xc
cmp edi, 0x5eb4cc
je 0x4e3468
cmp dword [0x5eb4e0], 8
jb 0x4e3441
push dword [0x5eb4cc]
call fcn.0054a379
add esp, 4
xor eax, eax
mov dword [0x5eb4e0], 7
push edi
mov ecx, 0x5eb4cc
mov dword [0x5eb4dc], 0
mov word [0x5eb4cc], ax
call fcn.004ebae0
cmp dword [esp + 0x28], 8
jb 0x4e347b
push dword [esp + 0x14]
call fcn.0054a379
add esp, 4
mov dword [esp + 0x260], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x4e3499
push dword [esp + 0x2c]
call fcn.0054a379
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x5eb4cc
mov word [esi], ax
call fcn.004ebc10
mov eax, esi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0054caf9
mov esp, ebp
pop ebp
ret
Function at 0x4e34e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x571c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x5e56f0]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
push edi
mov eax, dword [0x5e56f0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [0x5eb524]
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 0
test al, 1
jne 0x4e3564
or eax, 1
mov dword [0x5eb468], 7
mov dword [0x5eb524], eax
xor eax, eax
push 0x57a3f0
mov dword [0x5eb464], 0
mov word [0x5eb454], ax
call fcn.0054a5e9
add esp, 4
push 0
push 0x5cc174
push dword [0x5eb464]
mov ecx, 0x5eb454
push 0
call fcn.004ebed0
test eax, eax
jne 0x4e3679
push 0x104
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [esp + 0x44], ax
jne 0x4e35b7
xor ecx, ecx
jmp 0x4e35cf
lea ecx, [esp + 0x44]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e35c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.004e9ab0
push str._sysnative_
lea eax, [esp + 0x30]
mov dword [esp + 0x264], 0
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004ee4f0
mov edi, eax
add esp, 0xc
cmp edi, 0x5eb454
je 0x4e3648
cmp dword [0x5eb468], 8
jb 0x4e3621
push dword [0x5eb454]
call fcn.0054a379
add esp, 4
xor eax, eax
mov dword [0x5eb468], 7
push edi
mov ecx, 0x5eb454
mov dword [0x5eb464], 0
mov word [0x5eb454], ax
call fcn.004ebae0
cmp dword [esp + 0x28], 8
jb 0x4e365b
push dword [esp + 0x14]
call fcn.0054a379
add esp, 4
mov dword [esp + 0x260], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x4e3679
push dword [esp + 0x2c]
call fcn.0054a379
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x5eb454
mov word [esi], ax
call fcn.004ebc10
mov eax, esi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0054caf9
mov esp, ebp
pop ebp
ret
Function at 0x4e36c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x571c7b
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x5e56f0]
xor eax, esp
mov dword [esp + 0x24c], eax
push esi
push edi
mov eax, dword [0x5e56f0]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [0x5eb48c]
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 0
test al, 1
jne 0x4e3744
or eax, 1
mov dword [0x5eb488], 7
mov dword [0x5eb48c], eax
xor eax, eax
push 0x57a450
mov dword [0x5eb484], 0
mov word [0x5eb474], ax
call fcn.0054a5e9
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.004e9ab0
lea ecx, [esp + 0x44]
call fcn.004e67b0
add esp, 0x18
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push 0x104
lea eax, [esp + 0x50]
push 0
push eax
call fcn.0054cf60
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 0x4e37e5
xor ecx, ecx
jmp 0x4e37ff
lea ecx, [esp + 0x4c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e37f0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
call fcn.004e9ab0
push str.AppData_
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004ee4f0
mov edi, eax
add esp, 0xc
cmp edi, 0x5eb474
je 0x4e386d
cmp dword [0x5eb488], 8
jb 0x4e3846
push dword [0x5eb474]
call fcn.0054a379
add esp, 4
xor eax, eax
mov dword [0x5eb488], 7
push edi
mov ecx, 0x5eb474
mov dword [0x5eb484], 0
mov word [0x5eb474], ax
call fcn.004ebae0
cmp dword [esp + 0x28], 8
jb 0x4e3880
push dword [esp + 0x14]
call fcn.0054a379
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x5eb474
mov word [esi], ax
call fcn.004ebc10
cmp dword [esp + 0x48], 8
jb 0x4e38b5
push dword [esp + 0x34]
call fcn.0054a379
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.0054caf9
mov esp, ebp
pop ebp
ret
Function at 0x4e4390
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571db8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5e56f0]
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 0x4e4483
push dword [ebp - 0x20]
call fcn.0054d2fe
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.0054d2fe
add esp, 8
mov edi, eax
mov dword [ebp - 0x2c], edi
test esi, esi
je 0x4e4461
test edi, edi
je 0x4e4461
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 0x4e446a
push 0
push 0
call fcn.0054cb08
mov bl, 1
jmp 0x4e4483
test edi, edi
je 0x4e4490
push edi
call fcn.0054d2c6
add esp, 4
test bl, bl
jne 0x4e44a3
test esi, esi
je 0x4e44a8
push esi
call fcn.0054d2c6
add esp, 4
jmp 0x4e44a8
mov eax, dword [ebp - 0x28]
mov dword [eax], esi
cmp dword [ebp + 0x1c], 8
jb 0x4e44b9
push dword [ebp + 8]
call fcn.0054a379
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.0054caf9
mov esp, ebp
pop ebp
ret
Function at 0x4e4520
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571df0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5e56f0]
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 0x4e455e
xor edi, edi
jmp 0x4e46cb
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x5c
push eax
lea ecx, [ebp + 8]
call fcn.004ebe10
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.004e9ce0
mov esi, eax
lea eax, [ebp + 8]
cmp eax, esi
je 0x4e45bb
cmp dword [ebp + 0x1c], 8
jb 0x4e459e
push dword [ebp + 8]
call fcn.0054a379
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.004ebae0
cmp dword [ebp - 0x18], 8
jb 0x4e45cc
push dword [ebp - 0x2c]
call fcn.0054a379
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 0x4e46c6
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 0x4e46c6
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.004ebe10
inc eax
lea ecx, [ebp + 8]
push eax
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.004e9ce0
push eax
lea ecx, [ebp - 0x2c]
call fcn.004e9960
cmp dword [ebp - 0x30], 8
jb 0x4e4669
push dword [ebp - 0x44]
call fcn.0054a379
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.004ebc10
call fcn.004e4520
add esp, 0x18
test eax, eax
je 0x4e46b3
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 0x4e46cb
push dword [ebp - 0x2c]
call fcn.0054a379
add esp, 4
jmp 0x4e46cb
mov edi, 1
cmp dword [ebp + 0x1c], 8
jb 0x4e46dc
push dword [ebp + 8]
call fcn.0054a379
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.0054caf9
mov esp, ebp
pop ebp
ret
Function at 0x4e4700
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 [0x5e56f0]
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 0x4e475f
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.0054caf9
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 0x4e474b
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 0x4e474b
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x4e474b
push edi
call fcn.00549ae9
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 0x4e474b
push 0
push dword [esp + 0x3c]
push ebx
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4e474b
push ebx
call fcn.0054d402
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 0x4e474b
push dword [esp + 0x2c]
call fcn.0054d2fe
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 0x4e4885
mov edx, dword [esp + 0x2c]
mov ecx, esi
call fcn.004e2710
cmp dword [eax + 0x14], 0x10
jb 0x4e485d
mov eax, dword [eax]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004e1a50
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
call fcn.004e9960
lea ecx, [esp + 0x14]
call fcn.004e99a0
mov ebx, 1
jmp 0x4e4887
xor ebx, ebx
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x4e474b
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.0054caf9
mov esp, ebp
pop ebp
ret
Function at 0x4e48c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x571e28
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x5e56f0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x5e56f0]
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 0x5cc174
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.004e9ab0
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 0x4e4a0a
lea eax, [esi + 1]
push eax
call fcn.00549ae9
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 0x4e4a0a
lea eax, [esp + 0x50]
mov dword [esp + 0x34], 0
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x54], 0
push eax
push 0x5cc190
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x4e49ba
push eax
push 0x5cc174
lea ecx, [esp + 0x40]
call fcn.004e9ab0
jmp 0x4e4a0a
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.004e2110
add esp, 0x18
lea ecx, [esp + 0x38]
push eax
call fcn.004e9960
cmp dword [esp + 0x30], 8
jb 0x4e4a01
push dword [esp + 0x1c]
call fcn.0054a379
add esp, 4
push ebx
call fcn.0054a379
add esp, 4
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.004e98f0
cmp dword [esp + 0x4c], 8
jb 0x4e4a29
push dword [esp + 0x38]
call fcn.0054a379
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.0054caf9
mov esp, ebp
pop ebp
ret
Function at 0x4e4a50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x571e60
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5e56f0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x5e56f0]
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 0x5cc174
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.004e9ab0
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 0x4e4af9
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e98f0
jmp 0x4e4c15
lea eax, [ebx + 1]
push eax
call fcn.00549ae9
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 0x4e4b32
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e98f0
jmp 0x4e4c15
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 0x4e4b67
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e98f0
jmp 0x4e4c15
cmp dword [ebp + 0x14], 0
mov edx, 0x4e4
mov eax, dword [esp + 0x24]
jne 0x4e4b7a
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.004e2110
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 0x4e4bd6
push dword [esp + 0x20]
lea ecx, [esp + 0x34]
call fcn.004e99f0
push edi
call fcn.0054a379
add esp, 4
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.004e98f0
cmp dword [esp + 0x5c], 8
jb 0x4e4bfe
push dword [esp + 0x48]
call fcn.0054a379
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 0x4e4c28
push dword [esp + 0x30]
call fcn.0054a379
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.0054caf9
mov esp, ebp
pop ebp
ret
Function at 0x4e5d40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5e56f0]
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 0x4e5ddf
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
jmp 0x4e5d90
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4e5dc6
test dx, dx
je 0x4e5dc2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4e5dc6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4e5da0
xor eax, eax
jmp 0x4e5dcb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4e5dd0
inc esi
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x4e5d90
pop ebx
mov ecx, dword [ebp - 4]
xor eax, eax
cmp esi, 1
pop edi
setge al
xor ecx, ebp
pop esi
call fcn.0054caf9
mov esp, ebp
pop ebp
ret
Function at 0x4e5e00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x572061
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x5e56f0]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x5e56f0]
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 0x4e601c
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], 0
mov word [esp + 0x54], ax
cmp word [esp + 0x90], ax
jne 0x4e5e98
xor ecx, ecx
jmp 0x4e5eb1
lea ecx, [esp + 0x90]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e5ea2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0x5c]
call fcn.004e9ab0
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.004e19c0
sub esp, 0x10
mov byte [esp + 0x2e0], 2
mov ecx, esp
push 2
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x5cc480
mov byte [ecx], 0
call fcn.004e9180
lea ecx, [esp + 0x6c]
mov byte [esp + 0x2e0], 1
call fcn.004f1940
cmp dword [esp + 0x80], 0x10
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004e1a50
add esp, 0x38
cmp dword [eax + 0x14], 8
jb 0x4e5f6b
mov eax, dword [eax]
mov ecx, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4e5f96
test dx, dx
je 0x4e5f92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4e5f96
add eax, 4
add ecx, 4
test dx, dx
jne 0x4e5f70
xor eax, eax
jmp 0x4e5f9b
sbb eax, eax
or eax, 1
test eax, eax
sete bl
cmp dword [esp + 0x38], 8
jb 0x4e5fb3
push dword [esp + 0x24]
call fcn.0054a379
add esp, 4
test bl, bl
je 0x4e5fb8
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 0x4e5fd9
push dword [esp + 0x3c]
call fcn.0054a379
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 0x4e600c
push dword [esp + 0x54]
call fcn.0054a379
add esp, 4
mov ebx, dword [esp + 0x18]
test esi, esi
mov esi, dword [esp + 0x14]
jne 0x4e5e73
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.0054caf9
mov esp, ebp
pop ebp
ret