joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47886f
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x4f06b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x50c], eax
mov byte [ebp - 0x4f9], bl
mov dword [ebp - 0x500], ebx
cmp byte [ebp - 0x4f9], bl
jne 0x478a66
push 0xff
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.004a63e0
push 0x3e7
lea eax, [ebp - 0x4eb]
push ebx
push eax
mov byte [ebp - 0x4ec], bl
call fcn.004a63e0
push dword [ebp - 0x500]
lea eax, [ebp - 0x104]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x504], eax
cmp eax, 0xffffffff
je 0x478a53
push 0x2710
push 8
mov dword [ebp - 0x508], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x478a47
xor eax, eax
lea edi, [ebp - 0x4f8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x508]
push eax
mov edi, 0x2710
push edi
push esi
push 0xc
lea eax, [ebp - 0x4f8]
push eax
push 0x2d1400
push dword [ebp - 0x504]
mov dword [ebp - 0x4f8], ebx
mov dword [ebp - 0x4f4], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4789ba
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x4789ba
lea ecx, [ebp - 0x4ec]
push ecx
add eax, esi
push eax
call fcn.00479351
lea eax, [ebp - 0x4ec]
push eax
call fcn.004794b8
movsx ax, byte [ebp - 0x4ec]
movzx eax, ax
add esp, 0xc
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x478a1a
push edi
push ebx
push esi
call fcn.004a63e0
add esp, 0xc
push ebx
lea eax, [ebp - 0x508]
push eax
push edi
push esi
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x504]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x478a38
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x4ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x4ec]
push eax
call fcn.004794b8
movsx ax, byte [ebp - 0x4ec]
movzx eax, ax
pop ecx
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x478a38
push 0x31
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp - 0x50c]
call fcn.004a5a30
mov byte [ebp - 0x4f9], 1
add esp, 0xc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x504]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x500]
cmp dword [ebp - 0x500], 0x10
jl 0x47889c
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x4f9]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a545d
leave
ret
Function at 0x4790c8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4f06b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4790f7
xor al, al
jmp 0x4791bd
mov eax, dword [0x4f540c]
xor edi, edi
cmp eax, edi
jne 0x47911f
push str.inetmib1.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4f540c], eax
cmp eax, 0x20
jae 0x47911f
mov dword [0x4f540c], edi
jmp 0x4790f0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4f5410], edi
jne 0x47913e
push str.SnmpExtensionInit
push eax
call esi
mov dword [0x4f5410], eax
cmp eax, edi
je 0x4790f0
push 0x4f5244
push 0x4f50f4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [0x4f5410]
cmp dword [0x4f5414], edi
jne 0x479177
push str.SnmpExtensionInitEx
push dword [0x4f540c]
call esi
mov dword [0x4f5414], eax
cmp eax, edi
je 0x4790f0
cmp dword [0x4f5418], edi
jne 0x479199
push str.SnmpExtensionQuery
push dword [0x4f540c]
call esi
mov dword [0x4f5418], eax
cmp eax, edi
je 0x4790f0
cmp dword [0x4f541c], edi
jne 0x4791bb
push str.SnmpExtensionTrap
push dword [0x4f540c]
call esi
mov dword [0x4f541c], eax
cmp eax, edi
je 0x4790f0
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a545d
leave
ret

Function at 0x479b59
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4f06b4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x4c], 0
push edi
lea eax, [ebp - 0x4c]
push eax
push ebx
mov byte [ebp - 0x39], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x479b8a
xor al, al
jmp 0x479c15
push edi
call fcn.004a5f95
pop ecx
mov dword [ebp - 0x40], eax
test eax, eax
je 0x479be5
push eax
push edi
push 0
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x479be5
and dword [ebp - 0x48], 0
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x4cb648
push dword [ebp - 0x40]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x479be5
push 0x34
push dword [ebp - 0x44]
lea eax, [ebp - 0x38]
push eax
call fcn.004a5470
add esp, 0xc
cmp dword [ebp - 0x38], 0xfeef04bd
sete byte [ebp - 0x39]
push dword [ebp - 0x40]
call fcn.004a5f5b
cmp byte [ebp - 0x39], 0
pop ecx
je 0x479b83
mov eax, dword [ebp - 0x30]
shr eax, 0x10
mov dword [esi], eax
movzx eax, word [ebp - 0x30]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2c]
shr eax, 0x10
mov dword [esi + 8], eax
movzx eax, word [ebp - 0x2c]
mov dword [esi + 0xc], eax
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004a545d
leave
ret
Function at 0x479cca
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c2543
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4f06b4]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x4f06b4]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
xor edi, edi
push 0x24c
lea eax, [esp + 0x34]
push edi
push eax
mov esi, ecx
mov dword [esp + 0x38], edi
call fcn.004a63e0
add esp, 0xc
push esi
lea eax, [esp + 0x14]
call fcn.00409d45
mov esi, str..
push esi
mov dword [esp + 0x294], edi
call fcn.004a5eb4
pop ecx
mov edi, eax
push esi
lea eax, [esp + 0x14]
call fcn.004085f7
cmp dword [esp + 0x24], 8
mov eax, dword [esp + 0x10]
jae 0x479d5d
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov bl, 1
cmp esi, 0xffffffff
je 0x479db5
test byte [esp + 0x2c], 0x10
je 0x479da3
lea eax, [esp + 0x58]
push 0x4cdb48
push eax
call fcn.004a88ad
pop ecx
pop ecx
test eax, eax
je 0x479da5
lea eax, [esp + 0x58]
push 0x4cdb44
push eax
call fcn.004a88ad
pop ecx
pop ecx
test eax, eax
je 0x479da5
xor bl, bl
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x479d72
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
xor edi, edi
lea esi, [esp + 0x14]
call fcn.0040a3ed
mov al, bl
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004a545d
mov esp, ebp
pop ebp
ret

Function at 0x479def
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4f06b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x808], esi
push 0x7fe
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push esi
push eax
mov dword [ebp - 0x808], esi
call fcn.004a63e0
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x804]
push eax
jne 0x479e67
push dword [ebp - 0x808]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x808]
call dword [sym.imp.SHELL32.dll_ILFree]
jmp 0x479e73
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x804]
push eax
mov eax, edi
call fcn.00409d45
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.004a545d
leave
ret
Function at 0x47a144
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47a1b2
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
add eax, 0xa
push eax
call fcn.004a481a
pop ecx
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov byte [esi + eax], bl
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x47a1ad
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, esi
pop esi
jmp 0x47a1b4
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x47a3c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47a41b
cmp dword [ebp + 0x10], esi
jle 0x47a3f7
mov eax, dword [ebp + 0x10]
jmp 0x47a400
push dword [ebp + 0xc]
call fcn.004a5ed0
pop ecx
push esi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x47a41d
xor al, al
pop edi
pop esi
leave
ret

Function at 0x47a5a1
Capabilities:
Move file

Disassembly:
push 0x40
mov eax, 0x4c1a0d
call fcn.004ac3e5
mov eax, dword [ebp + 8]
push eax
lea esi, [ebp - 0x2c]
call fcn.00409de0
xor esi, esi
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.0047ab50
push 0x1e
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.004a63e0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 3
jae 0x47a5ec
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x44], eax
mov eax, 0x614
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x40], esi
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, eax
neg ebx
sbb bl, bl
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
inc bl
call fcn.0040a3ed
mov al, bl
call fcn.004ac468
ret
Function at 0x47c043
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x4c0ae4
call fcn.004ac3e5
xor ebx, ebx
cmp dword [esi + 0x44], ebx
je 0x47c13a
cmp byte [esi + 0x4a], bl
je 0x47c13a
mov eax, dword [esi]
mov edi, 0xffff
push edi
mov ecx, esi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x47c07f
xor al, al
jmp 0x47c13c
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0047c165
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x47c0dd
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [esi + 0x44]
mov edi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [esi + 0x4c]
push eax
call dword [edi + 0x18]
sub eax, 0
je 0x47c0e2
dec eax
je 0x47c0e6
dec eax
dec eax
je 0x47c136
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040a0a5
mov al, bl
jmp 0x47c13c
mov edx, dword [ebp - 0x2c]
jmp 0x47c0a8
mov byte [esi + 0x4a], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x47c0f2
lea eax, [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x47c118
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x47c105
lea eax, [ebp - 0x2c]
push dword [esi + 0x54]
push edi
push 1
push eax
call fcn.004a9f90
add esp, 0x10
cmp edi, eax
jne 0x47c0cb
cmp byte [esi + 0x4a], 0
je 0x47c136
test edi, edi
jne 0x47c09a
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040c644
jmp 0x47c09a
mov bl, 1
jmp 0x47c0cd
mov al, 1
call fcn.004ac468
ret

Function at 0x47c798
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x4c
mov eax, 0x4c4354
call fcn.004ac3e5
push 4
pop eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
xor ebx, ebx
push 0x4de414
lea eax, [ebp - 0x2c]
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x4c], ebx
call fcn.00409d45
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0040855a
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x47c7de
mov eax, esi
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push str.InstallLog
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 0x4c], ebx
setne al
mov byte [0x4f5402], al
call fcn.0047c871
push 0xc8
call fcn.004a59a9
pop ecx
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x47c829
push eax
call fcn.0047b342
jmp 0x47c82b
xor eax, eax
mov byte [ebp - 4], bl
mov dword [0x4f5464], eax
lea eax, [ebp - 0x48]
push str.Common
push eax
call fcn.00408817
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ebx, dword [0x4f5464]
push eax
xor cl, cl
call fcn.0047b399
push 1
xor edi, edi
lea esi, [ebp - 0x48]
call fcn.0040a3ed
push 1
lea esi, [ebp - 0x2c]
call fcn.0040a3ed
call fcn.004ac468
ret
Function at 0x47cd62
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [0x4f5a20], 0
push ebx
push esi
push edi
mov esi, 0x4f5a20
jne 0x47cdf7
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0x4cd1dc
push str.SoftwareSogouExplorer
mov ebx, SysReAllocString
push ebx
mov dword [ebp - 4], 0x40
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x47cdf7
and dword [ebp - 0x18], 0
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.00477d67
pop ecx
test al, al
je 0x47cddb
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push str._08X_08X_08X_08X
push esi
call fcn.0040dac7
add esp, 0x18
push esi
call fcn.004a5ed0
pop ecx
push eax
push esi
push 1
push 0x4cd1dc
push str.SoftwareSogouExplorer
push ebx
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x47cdfe
Capabilities:
Create process on windows

Disassembly:
push 0x88c
mov eax, 0x4c1e73
call fcn.004ac3e5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x884], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x888], eax
xor ebx, ebx
mov edi, 0x200
lea eax, [ebp - 0x45c]
mov byte [ebp - 0x879], bl
mov dword [ebp - 0x468], ebx
mov dword [ebp - 0x464], edi
mov dword [ebp - 0x460], eax
mov dword [ebp - 4], ebx
call fcn.004aa5ff
mov esi, eax
lea eax, [ebp - 0x468]
push eax
mov eax, str.SE_VER_
call fcn.00409bb0
push 0xa
mov dword [ebp - 0x880], eax
push 0x20
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.004a5e70
push dword [ebp - 0x880]
lea eax, [ebp - 0x58]
call fcn.00409bb0
mov ecx, dword [ebp - 0x460]
mov edx, dword [ebp - 0x468]
add esp, 0x18
xor eax, eax
mov word [ecx + edx*2], ax
push dword [ebp - 0x460]
push 0x100
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x880], eax
cmp eax, ebx
je 0x47d008
lea eax, [ebp - 0x86c]
mov dword [ebp - 0x878], ebx
mov dword [ebp - 0x874], edi
mov dword [ebp - 0x870], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x460]
mov edx, dword [ebp - 0x468]
xor eax, eax
mov word [ecx + edx*2], ax
mov edi, dword [ebp - 0x460]
push 0x22
lea eax, [ebp - 0x878]
call fcn.00412f0f
push eax
mov eax, dword [ebp - 0x884]
call fcn.00409bb0
push eax
mov eax, str.___SetSkin_GetVer
call fcn.00409bb0
push eax
lea eax, [edi + 0xe]
call fcn.00409bb0
push 0x40
lea eax, [ebp - 0x54]
push ebx
push eax
mov dword [ebp - 0x58], 0x44
call fcn.004a63e0
mov ecx, dword [ebp - 0x870]
mov edx, dword [ebp - 0x878]
xor eax, eax
mov dword [ebp - 0x898], ebx
lea edi, [ebp - 0x894]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x1c
stosd dword es:[edi], eax
xor eax, eax
mov word [ecx + edx*2], ax
lea eax, [ebp - 0x898]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x870]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x47cfe2
push 0xffffffffffffffff
push dword [ebp - 0x898]
mov dword [ebp - 0x884], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x884]
push eax
push dword [ebp - 0x898]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x884], ebx
je 0x47cfe2
push ebx
push ebx
push ebx
push 0xf001f
push dword [ebp - 0x880]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x47cfdb
push edi
call fcn.004a5eb4
mov esi, dword [ebp - 0x888]
pop ecx
mov ecx, edi
call fcn.00409cca
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov byte [ebp - 0x879], 1
push dword [ebp - 0x880]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x86c]
cmp dword [ebp - 0x870], eax
je 0x47d008
push dword [ebp - 0x870]
call fcn.004a5f5b
pop ecx
lea eax, [ebp - 0x45c]
cmp dword [ebp - 0x460], eax
je 0x47d022
push dword [ebp - 0x460]
call fcn.004a5f5b
pop ecx
mov al, byte [ebp - 0x879]
call fcn.004ac468
ret
Function at 0x47e572
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4f06b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov esi, eax
lea eax, [ebp - 0x22c]
push ebx
push eax
call fcn.004a63e0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, eax
mov dword [ebp - 0x234], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
test edi, edi
je 0x47e5fe
cmp ebx, dword [ebp - 0x228]
je 0x47e5f2
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x47e5d6
jmp 0x47e5fe
mov eax, dword [ebp - 0x218]
mov dword [ebp - 0x234], eax
test esi, esi
je 0x47e609
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a545d
leave
ret
Function at 0x47ea24
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c4249
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x4f06b4]
xor eax, esp
mov dword [esp + 0x2a0], eax
push ebx
push esi
push edi
mov eax, dword [0x4f06b4]
xor eax, esp
push eax
lea eax, [esp + 0x2b8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x27c]
mov esi, ecx
xor ebx, ebx
push eax
mov dword [esp + 0x2c], esi
mov byte [esp + 0x1f], bl
call fcn.0047c9b5
pop ecx
pop ecx
push ebx
push 2
mov dword [esp + 0x2c8], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x47ec2c
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x34], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x47ec1a
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
push 0x1c
cdq
pop edi
idiv edi
mov dword [esp + 0x1c], ebx
test eax, eax
jle 0x47ec0b
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x18]
add eax, ecx
cmp dword [eax + 0x14], 8
jb 0x47eaeb
mov eax, dword [eax]
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x47ebd2
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x10], ebx
je 0x47ec06
push dword [esp + 0x34]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x47ebd2
mov edx, edi
lea ecx, [esp + 0x25c]
call fcn.0047f1c2
push edi
mov byte [esp + 0x2c4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x298]
push eax
call fcn.0047c9b5
pop ecx
pop ecx
mov ebx, eax
lea eax, [esp + 0x25c]
mov byte [esp + 0x2c0], 2
call fcn.00409d73
push 1
xor edi, edi
lea esi, [esp + 0x298]
call fcn.0040a3ed
cmp dword [esp + 0x28c], 8
mov esi, dword [esp + 0x278]
jae 0x47eb98
lea esi, [esp + 0x278]
push esi
call fcn.004a5eb4
pop ecx
push eax
push esi
xor eax, eax
lea ecx, [esp + 0x264]
call fcn.0040f26e
xor edi, edi
mov byte [esp + 0x2c0], 0
push 1
lea esi, [esp + 0x260]
cmp eax, 0xffffffff
je 0x47ebf4
call fcn.0040a3ed
mov esi, dword [esp + 0x24]
xor ebx, ebx
mov ecx, dword [esi]
mov eax, dword [esi + 4]
sub eax, ecx
push 0x1c
cdq
pop edi
idiv edi
inc dword [esp + 0x1c]
add dword [esp + 0x18], 0x1c
cmp dword [esp + 0x1c], eax
jl 0x47eadd
jmp 0x47ec0b
mov byte [esp + 0x1b], 1
call fcn.0040a3ed
mov esi, dword [esp + 0x24]
xor ebx, ebx
jmp 0x47ec0b
mov byte [esp + 0x17], 1
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x47eac0
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
xor edi, edi
lea esi, [esp + 0x27c]
call fcn.0040a3ed
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2a0]
xor ecx, esp
call fcn.004a545d
mov esp, ebp
pop ebp
ret
Function at 0x47ec64
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
and dword [ebp - 8], 0
push esi
mov dword [ebp - 0xc], eax
push edi
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, eax
sar ecx, 2
xor edi, edi
mov byte [ebp - 1], 0
test ecx, ecx
je 0x47ece8
lea eax, [eax + edi*4]
push dword [eax]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push esi
call fcn.0047e545
pop ecx
test esi, esi
je 0x47ecc2
cmp eax, dword [ebp - 0xc]
je 0x47ecc2
push 1
push esi
mov byte [ebp - 1], 1
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
sub ecx, eax
inc edi
sar ecx, 2
cmp edi, ecx
jb 0x47ec8d
cmp byte [ebp - 1], 0
je 0x47ece8
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x65
jl 0x47ec79
xor eax, eax
cmp byte [ebp - 1], al
pop edi
sete al
pop esi
leave
ret