joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407826
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x1f4
mov eax, dword [0x6c0bc0]
xor eax, esp
mov dword [esp + 0x1ec], eax
push ebx
push esi
push dword [edi + 0x20]
mov esi, ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40785c
mov ecx, dword [edi + 0x12c]
test ecx, ecx
je 0x40785c
push 0
call fcn.00565f40
push 8
push 0xf020
push 0x112
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
mov eax, 0x1e8
jne 0x407880
lea esi, [esp + 8]
jmp 0x407884
cmp dword [esi], eax
jne 0x4078e0
push 3
mov dword [esi], eax
mov eax, dword [edi + 0x20]
pop ebx
or dword [esi + 0xc], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], 0x63
call fcn.0056eb95
mov eax, dword [eax + 8]
push 0x66
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push esi
mov dword [esi + 0x1a0], ebx
mov ebx, dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0x496
call ebx
test eax, eax
je 0x4078e0
push esi
push 4
call ebx
test eax, eax
je 0x4078e0
push 0
mov ecx, edi
call fcn.00565f40
xor eax, eax
inc eax
jmp 0x4078e2
xor eax, eax
mov ecx, dword [esp + 0x1f4]
pop esi
pop ebx
xor ecx, esp
call fcn.0058cc82
add esp, 0x1f4
ret
Function at 0x4093bd
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x1f4
mov eax, dword [0x6c0bc0]
xor eax, esp
mov dword [esp + 0x1ec], eax
push ebx
push esi
push dword [edi + 0x20]
mov esi, ecx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4093f3
mov ecx, dword [edi + 0x124]
test ecx, ecx
je 0x4093f3
push 0
call fcn.00565f40
push 7
push 0xf020
push 0x112
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
test esi, esi
mov eax, 0x1e8
jne 0x409417
lea esi, [esp + 8]
jmp 0x40941b
cmp dword [esi], eax
jne 0x409477
push 3
mov dword [esi], eax
mov eax, dword [edi + 0x20]
pop ebx
or dword [esi + 0xc], ebx
mov dword [esi + 4], eax
mov dword [esi + 8], 0x63
call fcn.0056eb95
mov eax, dword [eax + 8]
push 0x66
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push esi
mov dword [esi + 0x1a0], ebx
mov ebx, dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
push 0
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], 0x496
call ebx
test eax, eax
je 0x409477
push esi
push 4
call ebx
test eax, eax
je 0x409477
push 0
mov ecx, edi
call fcn.00565f40
xor eax, eax
inc eax
jmp 0x409479
xor eax, eax
mov ecx, dword [esp + 0x1f4]
pop esi
pop ebx
xor ecx, esp
call fcn.0058cc82
add esp, 0x1f4
ret
Function at 0x40c5ca
Capabilities:
Check if file exists

Disassembly:
push 8
mov eax, 0x5b91d7
call fcn.00595e20
mov esi, ecx
and dword [ebp - 0x10], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x164], 0xffffffff
je 0x40c645
push ebx
push 0x23
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.CCoreFile::FindFirst
call fcn.004015a6
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.Called_FindFirst_while_previous_call_still_open_
call fcn.004015a6
mov byte [ebp - 4], 3
mov eax, dword [esi]
push ebx
mov byte [ebp - 4], bl
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
push 0x61b5f4
call fcn.004015a6
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401752
mov eax, dword [ebp + 8]
jmp 0x40c77a
mov eax, dword [ebp + 0x10]
push ecx
mov dword [esi + 0x16c], eax
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004049a2
mov byte [ebp - 4], 4
mov byte [ebp - 4], bl
lea edi, [ebp + 0x10]
call fcn.0040cfde
pop ecx
mov byte [ebp - 4], 5
lea edi, [esi + 0x168]
push eax
mov ecx, edi
call fcn.004048fa
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.00401752
lea eax, [esi + 0x24]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x164], eax
jne 0x40c702
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x40c6f0
cmp edi, 3
je 0x40c6f0
push ebx
push 0x32
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str.CCoreFile::FindFirst
call fcn.004015a6
mov byte [ebp - 4], 6
push ecx
mov eax, esp
mov dword [ebp + 0x10], esp
push str.FindFirstFile_returned_an_error_
push eax
lea ecx, [ebp + 0xc]
call fcn.004046a1
pop ecx
pop ecx
mov byte [ebp - 4], 7
mov eax, dword [esi]
push edi
mov byte [ebp - 4], bl
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
push 0x61b5f4
call fcn.004015a6
jmp 0x40c62e
mov ecx, esi
call fcn.0040c898
test eax, eax
jne 0x40c71f
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 8]
call fcn.0040c782
jmp 0x40c62e
cmp dword [ebp + 0x14], 0
je 0x40c739
push 0x140
lea eax, [esi + 0x24]
push eax
push dword [ebp + 0x14]
call fcn.0058e7b0
add esp, 0xc
push ecx
add esi, 0x50
mov ecx, esp
mov dword [ebp + 0x14], esp
push esi
call fcn.004015a6
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push edi
call fcn.004049a2
mov byte [ebp - 4], 9
mov byte [ebp - 4], bl
mov esi, dword [ebp + 8]
call fcn.0040d17c
pop ecx
pop ecx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401752
mov eax, esi
call fcn.00595ef8
ret 0x10
Function at 0x40cc5e
Capabilities:
Get common file path

Disassembly:
push 0x118
mov eax, 0x5bc516
call fcn.00595e89
and dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], edi
mov dword [ebp - 4], 2
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x40ccad
lea esi, [ebp - 0x118]
call fcn.0040c4a8
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 8]
call fcn.004048fa
mov byte [ebp - 4], 2
mov ecx, esi
call fcn.00401752
lea eax, [ebp - 0x114]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40ccd6
lea eax, [ebp - 0x114]
push eax
mov ecx, edi
call fcn.004015a6
jmp 0x40cd25
push 1
push pe_nt_image_headers32
push ecx
mov ecx, esp
mov dword [ebp - 0x118], esp
push str.CCoreFile::CreateTempFile
call fcn.004015a6
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x124], esp
push str.GetTempFileName_failed_
call fcn.004015a6
mov byte [ebp - 4], 5
mov byte [ebp - 4], 2
mov ecx, 0x6caad0
call fcn.0040b813
push 0x61b5f4
mov ecx, edi
call fcn.004015a6
mov dword [ebp - 0x11c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401752
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401752
mov eax, edi
call fcn.00595f0c
ret

Function at 0x40cf75
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push 0
mov eax, 0x5b30aa
call fcn.00595e20
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40cfda
cmp dword [ebp + 0x14], 0
je 0x40cfba
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test bl, al
je 0x40cfba
and eax, 0xfffffffe
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401752
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401752
mov eax, ebx
call fcn.00595ef8
ret
xor ebx, ebx
jmp 0x40cfba
Function at 0x40ef3b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c6c1c
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x6c0bc0]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
mov eax, dword [0x6c0bc0]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
push dword [ebp + 8]
mov esi, ecx
mov eax, dword [esi + 0x40]
mov dword [esp + 0x18], esi
add esi, 0x38
push eax
mov ecx, esi
call fcn.00571561
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
mov ebx, 0x100000
push ebx
call edi
push eax
mov eax, dword [esp + 0x18]
add eax, 0x4c
call fcn.0040fd8d
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x40f02f
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str.CCoreProcess::BuildProcessTree
call fcn.004015a6
and dword [esp + 0x16c], 0
push 0xeb
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str..CoreProcess.cpp
call fcn.004015a6
mov byte [esp + 0x174], 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.CreateToolHelp32Snapshot_failed_
call fcn.004015a6
mov byte [esp + 0x178], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
or dword [esp + 0x17c], 0xffffffff
call fcn.0040abe3
xor eax, eax
jmp 0x40f143
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], 0x128
push eax
call sub.KERNEL32.dll_Process32First
jmp 0x40f12e
push dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
call fcn.0040f169
cmp eax, 0xffffffff
jle 0x40f120
push dword [esp + 0x34]
mov ecx, dword [esp + 0x18]
call fcn.0040f169
test eax, eax
jge 0x40f120
lea eax, [esp + 0x20]
push eax
call fcn.00410e40
mov dword [esp + 0x168], 3
push dword [esp + 0x34]
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.004110e6
mov byte [esp + 0x168], 4
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push str.__child:_processId
push ecx
mov ecx, eax
call fcn.004046a1
pop ecx
pop ecx
mov byte [esp + 0x16c], 5
push 4
mov byte [esp + 0x170], 4
call fcn.0040b216
mov byte [esp + 0x168], 3
lea ecx, [esp + 0x1c]
call fcn.00401752
or dword [esp + 0x168], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00410ee0
push dword [esp + 0x34]
mov ecx, esi
push dword [esi + 8]
call fcn.00571561
push dword [esp + 0x34]
push 0
push ebx
call edi
push eax
mov eax, dword [esp + 0x18]
add eax, 0x4c
call fcn.0040fd8d
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x1c]
jmp 0x40f03d
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x1c]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40f047
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.0058cc82
mov esp, ebp
pop ebp
ret 4
Function at 0x40f1ad
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c6bac
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x6c0bc0]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
mov eax, dword [0x6c0bc0]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
push dword [ebp + 8]
mov ebx, ecx
push 0x40f32e
call dword [sym.imp.USER32.dll_EnumWindows]
xor edi, edi
test eax, eax
jne 0x40f20e
cmp dword [ebp + 0xc], edi
jne 0x40f20e
inc eax
jmp 0x40f2d5
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f283
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.CCoreProcess::RecureBringTreeToFront
call fcn.004015a6
mov dword [esp + 0x15c], edi
push 0x14d
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str..CoreProcess.cpp
call fcn.004015a6
mov byte [esp + 0x164], 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str.CreateToolHelp32Snapshot_failed_
call fcn.004015a6
mov byte [esp + 0x168], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
or dword [esp + 0x16c], esi
call fcn.0040abe3
xor eax, eax
jmp 0x40f2d5
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x24], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x40f2c3
mov eax, dword [ebp + 8]
cmp dword [esp + 0x34], eax
jne 0x40f2b8
push dword [ebp + 0xc]
mov ecx, ebx
push dword [esp + 0x28]
call fcn.0040f1ad
test eax, eax
je 0x40f2b8
cmp dword [ebp + 0xc], edi
je 0x40f2c9
lea eax, [esp + 0x1c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40f298
jmp 0x40f2cc
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.0058cc82
mov esp, ebp
pop ebp
ret 8
Function at 0x40f470
Capabilities:
Enumerate processes

Disassembly:
push 0x138
mov eax, 0x5c6b63
call fcn.00595e89
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f500
push ecx
mov ecx, esp
mov dword [ebp - 0x144], esp
push str.CCoreProcess::IsProcessExistByName
call fcn.004015a6
mov byte [ebp - 4], 1
push 0x1bb
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push str..CoreProcess.cpp
call fcn.004015a6
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
push str.CreateToolHelp32Snapshot_failed_
call fcn.004015a6
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], bl
call fcn.0040abe3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401752
mov eax, ebx
call fcn.00595f0c
ret
lea eax, [ebp - 0x138]
push eax
push esi
mov dword [ebp - 0x138], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x40f550
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x13c], esp
push eax
call fcn.004049a2
mov byte [ebp - 4], 4
push dword [ebp - 0x130]
mov byte [ebp - 4], bl
call fcn.0040f562
cmp eax, ebx
pop ecx
pop ecx
jne 0x40f556
lea eax, [ebp - 0x138]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
jne 0x40f519
jmp 0x40f559
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f4ec
Function at 0x40f562
Capabilities:
Enumerate process modules

Disassembly:
push 0x244
mov eax, 0x5c6b07
call fcn.00595e89
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp + 8]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x244], eax
jne 0x40f59f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00401752
mov eax, ebx
call fcn.00595f0c
ret
lea ecx, [ebp - 0x238]
push ecx
push eax
mov dword [ebp - 0x238], 0x224
call sub.KERNEL32.dll_Module32First
push ecx
mov esi, eax
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x248], esp
push eax
mov dword [ebp - 0x240], ebx
call fcn.004049a2
mov byte [ebp - 4], 1
lea eax, [ebp - 0x23c]
push eax
mov byte [ebp - 4], bl
call fcn.0040d98a
pop ecx
pop ecx
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 0xc]
call fcn.004048fa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x23c]
call fcn.00401752
lea edi, [ebp + 0xc]
call fcn.0040456a
push eax
mov ecx, edi
call fcn.004048fa
jmp 0x40f6ca
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004015a6
mov byte [ebp - 4], 3
push 0x61d118
xor ecx, ecx
lea esi, [ebp - 0x23c]
call fcn.0040b731
test eax, eax
jge 0x40f6a8
push str.SystemRoot
xor ecx, ecx
call fcn.0040b731
test eax, eax
jge 0x40f6a8
push ecx
mov eax, esi
mov ecx, esp
mov dword [ebp - 0x24c], esp
push eax
call fcn.004049a2
mov byte [ebp - 4], 4
lea eax, [ebp - 0x248]
push eax
mov byte [ebp - 4], 3
call fcn.0040d98a
pop ecx
pop ecx
mov byte [ebp - 4], 5
push eax
mov ecx, esi
call fcn.004048fa
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x248]
call fcn.00401752
mov edi, esi
call fcn.0040456a
push dword [ebp + 0xc]
mov ecx, eax
call fcn.004047b4
test eax, eax
je 0x40f6d4
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x244]
call sub.KERNEL32.dll_Module32Next
mov esi, eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x23c]
call fcn.00401752
cmp esi, ebx
jne 0x40f615
jmp 0x40f6ec
mov dword [ebp - 0x240], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x23c]
call fcn.00401752
push dword [ebp - 0x244]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x240]
jmp 0x40f58b
Function at 0x40f703
Capabilities:
Create process on windows

Disassembly:
push 0x40
mov eax, 0x5c6aad
call fcn.00595e20
xor ebx, ebx
mov dword [ebp - 4], ebx
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push str.ShellExecuteCommand:
push eax
lea ecx, [ebp + 8]
call fcn.004046a1
pop ecx
pop ecx
mov byte [ebp - 4], 1
push 4
mov byte [ebp - 4], bl
call fcn.0040b216
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], 0x61b5f4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40f7e0
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.CCoreProcess::ShellExecuteCommand
call fcn.004015a6
mov byte [ebp - 4], 2
push 0x22d
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str..CoreProcess.cpp
call fcn.004015a6
mov byte [ebp - 4], 3
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push str.Failed_to_execute_command:
push eax
lea ecx, [ebp + 8]
call fcn.004046a1
pop ecx
pop ecx
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], bl
call fcn.0040abe3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401752
mov eax, ebx
call fcn.00595ef8
ret
xor ebx, ebx
inc ebx
jmp 0x40f7cc

Function at 0x40f7e5
Capabilities:
Create process on windows

Disassembly:
push 0x44
mov eax, 0x5c6a6a
call fcn.00595e20
xor ebx, ebx
mov dword [ebp - 4], ebx
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push str.ShellExecuteCommand:
push eax
lea ecx, [ebp + 8]
call fcn.004046a1
pop ecx
pop ecx
mov byte [ebp - 4], 1
push 4
mov byte [ebp - 4], bl
call fcn.0040b216
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x40
mov dword [ebp - 0x38], 0x61b5f4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 5
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40f8c6
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.CCoreProcess::ShellExecuteCommandAndWait
call fcn.004015a6
mov byte [ebp - 4], 2
push 0x247
push ecx
mov ecx, esp
mov dword [ebp + 0x14], esp
push str..CoreProcess.cpp
call fcn.004015a6
mov byte [ebp - 4], 3
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
push str.Failed_to_execute_command:
push eax
lea ecx, [ebp + 8]
call fcn.004046a1
pop ecx
pop ecx
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], bl
call fcn.0040abe3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401752
mov eax, ebx
call fcn.00595ef8
ret
cmp dword [ebp - 0x14], ebx
je 0x40f8e0
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
jmp 0x40f8b2
Function at 0x40f8e5
Capabilities:
Enumerate gui resources
Enumerate processes

Disassembly:
push 0x138
mov eax, 0x5cc327
call fcn.00595e89
mov dword [ebp - 4], 2
lea eax, [ebp + 0xc]
lea ecx, [esi + 0x2c]
push eax
call fcn.004048fa
lea eax, [ebp + 0x10]
lea ecx, [esi + 0x30]
push eax
call fcn.004048fa
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x40f97f
push ecx
mov ecx, esp
mov dword [ebp - 0x144], esp
push str.CCoreProcess::CloseProcessWindowsByModuleName
call fcn.004015a6
mov byte [ebp - 4], 3
push 0x261
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push str..CoreProcess.cpp
call fcn.004015a6
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
push str.CreateToolHelp32Snapshot_failed_
call fcn.004015a6
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], 2
call fcn.0040abe3
jmp 0x40f9f0
lea eax, [ebp - 0x138]
push eax
push edi
mov dword [ebp - 0x138], 0x128
call sub.KERNEL32.dll_Process32First
jmp 0x40f9e5
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x13c], esp
push eax
call fcn.004049a2
mov byte [ebp - 4], 6
push dword [ebp - 0x130]
mov byte [ebp - 4], 2
call fcn.0040f562
test eax, eax
pop ecx
pop ecx
je 0x40f9d8
mov eax, dword [ebp - 0x130]
push esi
push 0x40fa1c
mov dword [esi + 0x34], eax
call dword [sym.imp.USER32.dll_EnumWindows]
lea eax, [ebp - 0x138]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40f998
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00401752
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00401752
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00401752
call fcn.00595f0c
ret 0xc
Function at 0x40fc6a
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push 0x138
mov eax, 0x5cc2bb
call fcn.00595e89
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x13c], eax
jne 0x40fcef
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
push str.CCoreProcess::TerminateProcessByModuleName
call fcn.004015a6
mov byte [ebp - 4], 1
push 0x2b6
push ecx
mov ecx, esp
mov dword [ebp - 0x144], esp
push str..CoreProcess.cpp
call fcn.004015a6
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push str.CreateToolHelp32Snapshot_failed_
call fcn.004015a6
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov byte [ebp - 4], bl
call fcn.0040abe3
jmp 0x40fd7b
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x13c]
mov dword [ebp - 0x138], 0x128
call sub.KERNEL32.dll_Process32First
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40fd6f
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x140], esp
push eax
call fcn.004049a2
mov byte [ebp - 4], 4
push dword [ebp - 0x130]
mov byte [ebp - 4], bl
call fcn.0040f562
cmp eax, ebx
pop ecx
pop ecx
je 0x40fd5d
push dword [ebp - 0x130]
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40fd5d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
lea eax, [ebp - 0x138]
push eax
push dword [ebp - 0x13c]
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
jne 0x40fd13
push dword [ebp - 0x13c]
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401752
call fcn.00595f0c
ret

Function at 0x411732
Capabilities:
Read file on windows

Disassembly:
push 0
mov eax, 0x5b8ab4
call fcn.00595e20
mov esi, ecx
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x411785
push 1
push 0x29
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.CCoreStreamFile::Read
call fcn.004015a6
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.Stream_is_not_open_
call fcn.004015a6
mov byte [ebp - 4], 1
mov eax, dword [esi]
push 1
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0xc]
xor eax, eax
jmp 0x4117df
mov edi, dword [ebp + 0x10]
push 0
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4117d8
push 1
push 0x2e
push ecx
mov ecx, esp
mov dword [ebp + 0x10], esp
push str.CCoreStreamFile::Read
call fcn.004015a6
mov dword [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp + 0xc], esp
push str.ReadFile_failed_
call fcn.004015a6
mov byte [ebp - 4], 3
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call dword [eax + 0x14]
jmp 0x411781
xor eax, eax
cmp dword [edi], eax
setne al
call fcn.00595ef8
ret 0xc