joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474585
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x50afee
call fcn.0049dfed
mov esi, ecx
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00474531
push 0x538040
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 4], 2
mov dword [esi], vtable.COneFileStrategyLogger.0
call fcn.00409dbb
add esp, 0xc
push 0xffffffffffffffff
push edi
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.004019f3
push edi
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0040184d
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x24]
lea ebx, [esi + 8]
push eax
mov ecx, ebx
mov dword [esi + 0x60], edi
call fcn.004019f3
mov eax, dword [ebp + 0x40]
mov dword [esi + 4], eax
push ebx
lea eax, [esi + 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0041214a
add esp, 0xc
push 0xffffffffffffffff
push edi
lea ebx, [esi + 0x40]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004019f3
push edi
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.0040184d
cmp dword [ebx + 0x18], 8
jb 0x474635
mov eax, dword [ebx + 4]
jmp 0x474638
lea eax, [ebx + 4]
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x5c], eax
cmp eax, 0xffffffff
jne 0x4746b3
push 0x51ecc4
lea eax, [esi + 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00409dbb
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.004019f3
push edi
push 1
lea ecx, [ebp - 0x30]
call fcn.0040184d
cmp dword [ebx + 0x18], 8
jb 0x474691
mov eax, dword [ebx + 4]
jmp 0x474694
lea eax, [ebx + 4]
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x5c], eax
cmp eax, 0xffffffff
je 0x474729
push 2
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esi + 0x5c]
push eax
mov ecx, esi
call fcn.0047434b
test al, al
jne 0x474729
push dword [esi + 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x18], 8
jb 0x4746e1
mov ebx, dword [ebx + 4]
jmp 0x4746e4
add ebx, 4
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x5c], eax
cmp eax, 0xffffffff
je 0x474729
push 2
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x5c]
mov dword [ebp - 0x10], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0040184d
push edi
push 1
lea ecx, [ebp + 0x24]
call fcn.0040184d
mov eax, esi
call fcn.0049e0c5
ret 0x3c
Function at 0x4747f1
Capabilities:
Write file on windows

Disassembly:
push 0x28
mov eax, 0x50b059
call fcn.0049dfed
mov esi, ecx
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00474531
push 0x538040
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
mov dword [esi], vtable.CTwoFileStrategyLogger.0
call fcn.00409dbb
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 3
call fcn.004019f3
push edi
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0040184d
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x24]
lea ecx, [esi + 8]
push eax
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
call fcn.004019f3
mov eax, dword [ebp + 0x40]
mov ecx, esi
mov dword [esi + 4], eax
call fcn.00474749
cmp dword [esi + 0x58], 8
jb 0x474877
mov eax, dword [esi + 0x44]
jmp 0x47487a
lea eax, [esi + 0x44]
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ebx, [esi + 0x5c]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x4748df
push str.logtemp.d
lea ecx, [esi + 8]
call fcn.00401829
mov ecx, esi
call fcn.00474749
cmp dword [esi + 0x58], 8
jb 0x4748ba
mov eax, dword [esi + 0x44]
jmp 0x4748bd
lea eax, [esi + 0x44]
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x474961
push 2
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
mov ecx, esi
call fcn.0047434b
test al, al
jne 0x474961
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi + 0x64], edi
mov ecx, esi
setle al
mov dword [esi + 0x64], eax
call fcn.00474749
cmp dword [esi + 0x58], 8
jb 0x47491b
mov eax, dword [esi + 0x44]
jmp 0x47491e
lea eax, [esi + 0x44]
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x474961
push 2
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebx]
mov dword [ebp - 0x10], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0040184d
push edi
push 1
lea ecx, [ebp + 0x24]
call fcn.0040184d
mov eax, esi
call fcn.0049e0c5
ret 0x3c
Function at 0x474981
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x5c]
cmp dword [edi], 0xffffffff
jne 0x474999
xor al, al
jmp 0x474a30
push ebx
xor ebx, ebx
cmp dword [esi + 0x60], 0x14
jl 0x474a1e
push edi
call fcn.0047434b
test al, al
jne 0x474a1b
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esi + 0x64], ebx
mov ecx, esi
setle al
mov dword [esi + 0x64], eax
call fcn.00474749
cmp dword [esi + 0x58], 8
jb 0x4749d1
mov eax, dword [esi + 0x44]
jmp 0x4749d4
lea eax, [esi + 0x44]
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x4749f6
xor al, al
jmp 0x474a2f
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [edi]
mov dword [ebp - 4], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esi + 0x60], ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00474398
cmp al, bl
je 0x474a2f
inc dword [esi + 0x60]
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x479869
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 1
push str.ServicesActive
xor edi, edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
cmp esi, edi
jne 0x47989a
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0040184d
xor al, al
pop edi
pop esi
leave
ret 0x1c
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x4798a6
lea eax, [ebp + 0xc]
push ebx
push 4
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
cmp ebx, edi
jne 0x4798d3
xor bl, bl
push 0
push 1
lea ecx, [ebp + 8]
call fcn.0040184d
mov al, bl
pop ebx
jmp 0x479894
mov dword [ebp - 8], edi
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov byte [ebp - 1], 0
jmp 0x479904
cmp dword [ebp - 0x20], 4
je 0x479911
cmp dword [ebp - 0x20], 2
jne 0x479915
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0x14
jg 0x479915
lea eax, [ebp - 0x24]
push eax
push ebx
call edi
test eax, eax
jne 0x4798e2
jmp 0x479915
mov byte [ebp - 1], 1
push ebx
call esi
mov bl, byte [ebp - 1]
jmp 0x4798c2
Function at 0x479988
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x404
lea ebp, [esp - 4]
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x404], eax
push 0x3c
mov eax, 0x50ba3b
call fcn.0049dfed
mov eax, dword [ebp + 0x448]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp + 0x410]
mov dword [ebp - 4], 1
call fcn.00409c01
mov esi, eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0x410]
call fcn.00409c21
mov edi, eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 0x410]
call fcn.00409c01
push fcn.0049c0dd
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x30]
push eax
call fcn.00479477
xor eax, eax
push 0x3e6
mov word [ebp + 0x1c], ax
xor ebx, ebx
lea eax, [ebp + 0x1e]
push ebx
mov esi, 0x1f4
push eax
mov dword [ebp - 0x18], esi
call fcn.0049d740
lea eax, [ebp + 0x42c]
push eax
lea eax, [ebp]
push str.SYSTEMCurrentControlSetControlClass_
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004120ff
add esp, 0x38
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
mov byte [ebp - 4], 2
jae 0x479a5a
lea eax, [ebp + 4]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
test eax, eax
je 0x479ac2
push 1
lea ecx, [ebp]
call fcn.0040184d
push ebx
push 1
lea ecx, [ebp + 0x410]
call fcn.0040184d
push ebx
push 1
lea ecx, [ebp + 0x42c]
call fcn.0040184d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0x408
leave
ret 0x3c
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHQueryInfoKeyW]
test eax, eax
je 0x479b18
cmp dword [ebp - 0x14], ebx
je 0x479ae9
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xd], bl
push ebx
push 1
lea ecx, [ebp]
call fcn.0040184d
push ebx
push 1
lea ecx, [ebp + 0x410]
call fcn.0040184d
push ebx
push 1
lea ecx, [ebp + 0x42c]
call fcn.0040184d
mov al, byte [ebp - 0xd]
jmp 0x479a9d
push 0x3e8
lea eax, [ebp + 0x1c]
push ebx
push eax
mov dword [ebp - 0x18], esi
call fcn.0049d740
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push str.InfPath
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x479b58
mov ecx, dword [ebp - 0x24]
lea eax, [ebp + 0x1c]
push eax
call fcn.00401829
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xd], 1
jmp 0x479aec
Function at 0x47abe5
Capabilities:
Get common file path

Disassembly:
push esi
xor esi, esi
push edi
cmp dword [esp + 0xc], esi
je 0x47ac2f
mov edi, dword [esp + 0x10]
cmp edi, esi
je 0x47ac2f
push ebx
push edi
push 1
push esi
push 0x1a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
cmp ebx, esi
jne 0x47ac2a
push 0x538040
mov esi, 0x104
push esi
push edi
call fcn.0049bcab
push dword [esp + 0x1c]
push esi
push edi
call fcn.0049bcab
add esp, 0x18
mov eax, ebx
pop ebx
jmp 0x47ac34
mov eax, 0x80004005
pop edi
pop esi
ret

Function at 0x47ac37
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
mov dword [ebp - 0x230], esi
call fcn.0049d740
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, esi
je 0x47acce
lea eax, [ebp - 0x230]
push eax
push ebx
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x47acc2
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0049bf35
pop ecx
pop ecx
test eax, eax
jne 0x47acb5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x228], eax
jne 0x47acc8
lea eax, [ebp - 0x230]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47ac94
jmp 0x47acce
mov esi, dword [ebp - 0x228]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049a49b
leave
ret

Function at 0x47ace6
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x47ad4e
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x47ad45
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.0049a49b
leave
ret
Function at 0x47ad5e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x118
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x74], eax
mov eax, dword [0x5514a0]
cmp eax, 0xffffffff
jne 0x47aed8
push pe_nt_image_headers32
lea eax, [ebp - 0x9c]
push 0
push eax
mov dword [0x5514a0], 0xfffffc18
mov dword [ebp - 0xa0], 0x114
call fcn.0049d740
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x47aed3
cmp dword [ebp - 0x90], 2
jne 0x47aed3
cmp dword [ebp - 0x9c], 5
jne 0x47ae65
cmp dword [ebp - 0x98], 0
jne 0x47adeb
xor eax, eax
inc eax
jmp 0x47aec3
cmp dword [ebp - 0x98], 1
jne 0x47ae58
push 0x7f
lea eax, [ebp - 0x8c]
push eax
push str.Service_Pack_1
call fcn.0049b384
add esp, 0xc
test eax, eax
jne 0x47ae15
push 3
jmp 0x47aec2
push 0x7f
lea eax, [ebp - 0x8c]
push eax
push str.Service_Pack_2
call fcn.0049b384
add esp, 0xc
test eax, eax
jne 0x47ae36
push 4
jmp 0x47aec2
push 0x7f
lea eax, [ebp - 0x8c]
push eax
push str.Service_Pack_3
call fcn.0049b384
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
jmp 0x47aec3
cmp dword [ebp - 0x98], 2
jne 0x47aed3
push 6
jmp 0x47aec2
cmp dword [ebp - 0x9c], 6
jne 0x47aeca
cmp dword [ebp - 0x98], 0
jne 0x47aeb7
push 0x7f
lea eax, [ebp - 0x8c]
push eax
push str.Service_Pack_1
call fcn.0049b384
add esp, 0xc
test eax, eax
jne 0x47ae95
push 8
jmp 0x47aec2
push 0x7f
lea eax, [ebp - 0x8c]
push eax
push str.Service_Pack_2
call fcn.0049b384
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffffe
add eax, 9
jmp 0x47aec3
cmp dword [ebp - 0x98], 1
jne 0x47aed3
push 0xa
pop eax
mov dword [0x5514a0], eax
jmp 0x47aed8
cmp dword [ebp - 0x9c], 7
jmp 0x47aebe
mov eax, dword [0x5514a0]
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0x78
leave
ret

Function at 0x47af06
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x47af78
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x47af69
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0049bf35
pop ecx
pop ecx
test eax, eax
je 0x47af6f
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47af49
jmp 0x47af71
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049a49b
leave
ret
Function at 0x47af89
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x5e4]
sub esp, 0x664
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x5e0], eax
mov eax, dword [ebp + 0x5f0]
push ebx
mov ebx, dword [ebp + 0x5ec]
push 0
push 2
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x75], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x47b07a
push edi
lea ecx, [ebp + 0x3b4]
push ecx
push eax
mov dword [ebp + 0x3b4], 0x22c
call sub.KERNEL32.dll_Process32FirstW
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x47b074
push esi
lea eax, [ebp + 0x3d8]
push ebx
push eax
call fcn.0049bf35
pop ecx
pop ecx
test eax, eax
jne 0x47b060
push dword [ebp + 0x3bc]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x47b05a
lea eax, [ebp - 0x74]
push eax
push esi
mov dword [ebp - 0x74], 0x428
call sub.KERNEL32.dll_Module32FirstW
jmp 0x47b04d
push dword [ebp - 0x80]
lea eax, [ebp + 0x1ac]
push eax
call fcn.0049bf35
pop ecx
pop ecx
test eax, eax
je 0x47b053
lea eax, [ebp - 0x74]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x47b02e
jmp 0x47b057
mov byte [ebp - 0x75], 1
push esi
call edi
cmp byte [ebp - 0x75], 1
je 0x47b073
lea eax, [ebp + 0x3b4]
push eax
push dword [ebp - 0x7c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47aff4
pop esi
push dword [ebp - 0x7c]
call edi
pop edi
mov ecx, dword [ebp + 0x5e0]
mov al, byte [ebp - 0x75]
xor ecx, ebp
pop ebx
call fcn.0049a49b
add ebp, 0x5e4
leave
ret
Function at 0x47b093
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0x5f0]
sub esp, 0x670
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0x5ec], eax
mov eax, dword [ebp + 0x5f8]
and dword [ebp - 0x70], 0
and dword [ebp - 0x74], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x5fc]
push ebx
mov dword [ebp - 0x7c], eax
push esi
push 0
push 2
mov byte [ebp - 0x69], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
je 0x47b1d1
lea eax, [ebp + 0x3c0]
push eax
push dword [ebp - 0x78]
mov dword [ebp + 0x3c0], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x47b1a9
push dword [ebp - 0x80]
lea eax, [ebp + 0x3e4]
push eax
xor bl, bl
call fcn.0049bf35
pop ecx
pop ecx
test eax, eax
jne 0x47b19a
push dword [ebp + 0x3c8]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x47b19a
lea eax, [ebp - 0x68]
push eax
push esi
mov dword [ebp - 0x68], 0x428
call sub.KERNEL32.dll_Module32FirstW
jmp 0x47b165
push dword [ebp - 0x7c]
lea eax, [ebp + 0x1b8]
push eax
call fcn.0049bf35
pop ecx
pop ecx
test eax, eax
je 0x47b16b
lea eax, [ebp - 0x68]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x47b146
jmp 0x47b16d
mov bl, 1
push esi
call edi
test bl, bl
je 0x47b19a
push dword [ebp + 0x3c8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x47b19a
push 1
push esi
mov byte [ebp - 0x69], 1
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 0x70], esi
lea eax, [ebp + 0x3c0]
push eax
push dword [ebp - 0x78]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47b108
push dword [ebp - 0x78]
call edi
cmp byte [ebp - 0x69], 0
je 0x47b1d1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x74]
cmp dword [ebp - 0x74], 0x65
jl 0x47b0d1
cmp dword [ebp - 0x70], 0
pop esi
pop ebx
je 0x47b1f2
push 0x3e8
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x70]
call edi
mov ecx, dword [ebp + 0x5ec]
xor eax, eax
cmp byte [ebp - 0x69], al
pop edi
sete al
xor ecx, ebp
call fcn.0049a49b
add ebp, 0x5f0
leave
ret
Function at 0x47b4b4
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0xe4
lea ebp, [esp - 4]
mov eax, dword [0x551bd0]
xor eax, ebp
mov dword [ebp + 0xe4], eax
push 0x24
mov eax, 0x50bc98
call fcn.0049dfed
mov esi, dword [ebp + 0xf4]
mov edi, dword [ebp + 0xf0]
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], eax
jb 0x47b4fa
mov eax, dword [eax]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x14], eax
cmp eax, ebx
jne 0x47b51b
push 0x535d58
mov ecx, edi
call fcn.00401685
mov eax, edi
jmp 0x47b693
mov edi, 0x535d58
push edi
lea ecx, [ebp]
call fcn.00401685
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.0049b479
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
pop ecx
jb 0x47b543
mov eax, dword [eax]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x47b670
cmp dword [ebp - 0x14], 4
jb 0x47b670
xor eax, eax
push 0xc6
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.0049d740
mov eax, dword [ebp - 0x1c]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04X_04XFileVersion
lea eax, [ebp + 0x1c]
push 0x64
push eax
call fcn.0047b334
add esp, 0x20
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x18]
call sub.VERSION.dll_VerQueryValueW
cmp dword [ebp - 0x10], ebx
je 0x47b670
push dword [ebp - 0x10]
lea ecx, [ebp]
call fcn.00401829
lea eax, [ebp]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x5384dc
call fcn.00401685
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x51f808
mov byte [ebp - 4], 1
call fcn.00401685
sub esp, 0x1c
lea eax, [ebp]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 2
call fcn.00403757
mov byte [ebp - 4], bl
call fcn.004905ad
add esp, 0x58
lea eax, [ebp]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x24], esp
push edi
call fcn.00401685
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x28], esp
push 0x513c94
mov byte [ebp - 4], 3
call fcn.00401685
sub esp, 0x1c
lea eax, [ebp]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
mov byte [ebp - 4], 4
call fcn.00403757
mov byte [ebp - 4], bl
call fcn.004905ad
add esp, 0x58
push dword [ebp - 0x18]
call fcn.0049b145
pop ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ebp]
push eax
call fcn.00403757
push ebx
push 1
lea ecx, [ebp]
call fcn.0040184d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xe4]
xor ecx, ebp
call fcn.0049a49b
add ebp, 0xe8
leave
ret