joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409978
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409a4b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409a64
push ebx
push 0x409a70
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403388
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033e8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x4099f8
mov al, 0x69
call fcn.0040961c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040994c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a01
call fcn.0040994c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409a52
lea eax, [ebp - 4]
call fcn.0040316c
ret

Function at 0x409b04
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
jmp 0x409bad
cmp dword [esi + 0x10], 0x1000
jne 0x409b99
test byte [esi + 0x15], 1
jne 0x409b99
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409b58
cmp eax, 2
je 0x409b58
cmp eax, 0x10
je 0x409b58
cmp eax, 0x20
jne 0x409b6d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409b6d
mov bl, 1
xor ebp, ebp
jmp 0x409b7e
mov eax, dword [esi]
add eax, ebp
call fcn.00409afc
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409b71
test bl, bl
je 0x409b99
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409bb8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409b30
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
mov ecx, 0x6a63fda
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x7f8b3f07
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x40d81a
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4
Function at 0x402020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
test esi, esi
jne 0x402031
xor eax, eax
pop esi
pop ebp
ret 4
push edi
mov edi, dword [ebp + 8]
or eax, 0xffffffff
test edi, edi
je 0x402072
lea esp, [esp]
mov cl, byte [esi]
lea esi, [esi + 1]
movzx edx, cl
mov ecx, edx
shr edx, 4
xor ecx, eax
shr eax, 4
and ecx, 0xf
xor eax, dword [ecx*4 + 0x432710]
mov ecx, eax
shr eax, 4
and ecx, 0xf
xor edx, ecx
xor eax, dword [edx*4 + 0x432710]
sub edi, 1
jne 0x402040
pop edi
not eax
pop esi
pop ebp
ret 4
Function at 0x404340
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x452004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4044eb
cmp dword [esi + 0x38], 0
je 0x4044eb
cmp edx, dword [esi + 0x10]
jae 0x4044eb
cmp dword ds:[esi + 0x14], 1
jne 0x4044eb
lfence
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx + 0x10]
mov edi, dword [eax + edx*4]
add edi, dword [ecx]
je 0x4044eb
lea ebx, [ebx]
test ebx, ebx
je 0x4044eb
mov dword [ebx], edx
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xffffffff
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebx + 4], eax
movzx eax, word [edi + 4]
mov word [ebx + 8], ax
movzx eax, word [edi + 6]
mov word [ebx + 0xa], ax
movzx eax, word [edi + 8]
mov word [ebx + 0xc], ax
movzx eax, word [edi + 0xa]
mov word [ebx + 0xe], ax
movzx ecx, word [edi + 0xe]
movzx edx, word [edi + 0xc]
mov eax, ecx
shr eax, 9
add eax, 0x50
mov dword [ebp - 0x14], eax
mov eax, ecx
shr eax, 5
and ecx, 0x1f
and eax, 0xf
mov dword [ebp - 0x1c], ecx
dec eax
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, 0xb
mov dword [ebp - 0x20], eax
mov eax, edx
shr eax, 5
and edx, 0x1f
and eax, 0x3f
add edx, edx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], edx
call fcn.00416f0e
mov dword [ebx + 0x10], eax
mov esi, 0x103
mov dword [ebx + 0x14], edx
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], 0
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 0
movzx eax, word [edi + 0x24]
mov word [ebx + 0x30], ax
mov eax, dword [edi + 0x26]
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x2a]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], 0
movzx eax, word [edi + 0x1c]
cmp eax, esi
cmovb esi, eax
lea eax, [edi + 0x2e]
push esi
push eax
lea eax, [ebx + 0x44]
push eax
call fcn.00415e30
mov byte ds:[ebx + esi + 0x44], 0
mov esi, 0xff
movzx eax, word [edi + 0x20]
cmp eax, esi
cmovb esi, eax
mov dword [ebx + 0x40], esi
movzx ecx, word [edi + 0x1e]
movzx eax, word [edi + 0x1c]
add ecx, edi
add eax, 0x2e
push esi
add eax, ecx
push eax
lea eax, [ebx + 0x148]
push eax
call fcn.00415e30
add esp, 0x1c
mov byte [ebx + esi + 0x148], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413aae
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413aae
mov esp, ebp
pop ebp
ret 4
Function at 0x406360
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x452004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
push 0x452a38
push ecx
mov edx, 0x20119
lea ecx, [ebp - 0x2c]
xor ebx, ebx
call fcn.00409340
test eax, eax
js 0x4063a6
mov ecx, dword [ebp - 0x2c]
mov edx, str.InstallLocation
call fcn.0040b980
push dword ds:[ebp - 0x2c]
mov ebx, eax
call dword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
je 0x4063af
cmp dword [ebx], 0
jne 0x406416
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [ebp - 0x28], 9
mov eax, 0x452b20
mov ecx, 0x452ad8
cmovne ecx, eax
call fcn.0040b560
mov ebx, eax
test ebx, ebx
je 0x4063db
cmp dword [ebx], 0
jne 0x406416
mov edx, dword [0x453ac4]
mov ecx, 0x4a
call fcn.00409c00
mov ebx, eax
xor ecx, ecx
lea eax, [ebx + 8]
mov esi, str.C:Program_FilesProcess_Hacker_
mov dword [ebx + 4], eax
mov dword [ebx], 0x40
mov word [eax + 0x40], cx
mov ecx, 0x10
mov edi, dword [ebx + 4]
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x4064ce
mov ecx, dword ds:[ebx]
test ecx, ecx
je 0x4064ce
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0x4322c0
cmp ecx, 2
jb 0x40645e
mov eax, dword [ebx + 4]
lea edx, [ebp - 0x34]
add ecx, 0xfffffffe
mov dword [ebp - 0x3c], 2
add eax, ecx
lea ecx, [ebp - 0x3c]
push 1
mov dword [ebp - 0x38], eax
call fcn.0040a140
test al, al
jne 0x4064ce
mov esi, dword [ebx]
mov edx, dword [0x453ac4]
add esi, 2
lea ecx, [esi + 0xa]
call fcn.00409c00
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi + 4], eax
mov dword [edi], esi
mov word [eax + esi], cx
push dword [ebx]
push dword [ebx + 4]
push dword [edi + 4]
call fcn.00415e30
mov edx, dword [edi + 4]
add esp, 0xc
mov ecx, dword [ebx]
mov ax, word [0x4322c0]
mov word [edx + ecx], ax
lock inc dword [edi - 4]
test ebx, ebx
je 0x4064bb
lea ecx, [ebx - 8]
or edx, 0xffffffff
lock xadd dword [ecx + 4], edx
dec edx
jne 0x4064bb
call fcn.00409ce0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413aae
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413aae
mov esp, ebp
pop ebp
ret
Function at 0x4067c0
Capabilities:
Create process on windows
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x452004]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [ecx + 0x10], 2
push ebx
push esi
push edi
je 0x4068a5
mov ecx, dword [ecx + 0x18]
mov edx, str.ProcessHacker.exe
call fcn.004073e0
mov edi, eax
test edi, edi
je 0x4067f5
mov ecx, dword [edi + 4]
jmp 0x4067f7
xor ecx, ecx
call fcn.00409560
lea esp, [esp]
test al, al
je 0x40688d
test edi, edi
je 0x406811
mov esi, dword [edi + 4]
jmp 0x406813
xor esi, esi
lea eax, [ebp - 0x58]
push eax
call fcn.00407cc0
push 0x38
push 0
mov dword [ebp - 0x44], 0x3c
mov ebx, dword [eax + 4]
lea eax, [ebp - 0x40]
push eax
not ebx
call fcn.00415060
add esp, 0xc
mov dword [ebp - 0x34], esi
test bl, 1
mov dword [ebp - 0x30], str._installkph__s
mov eax, str.runas
mov dword [ebp - 0x40], 0x440
cmove eax, dword [ebp - 0x38]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x3c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40688d
mov esi, dword ds:[ebp - 0xc]
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
push esi
call dword [sym.imp.ntdll.dll_NtClose]
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4068a5
jmp 0x4068a0
call fcn.00409ce0
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x406972
push 0x14
push str.KProcessHacker3
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x406972
xor eax, eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x40696b
cmp dword [ebp - 0x28], 4
je 0x40696b
mov edi, 0xa
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
lea eax, [ebp - 8]
push eax
push 0x24
lea eax, [ebp - 0x2c]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov edi, edi
test eax, eax
je 0x40694a
cmp dword [ebp - 0x28], 4
je 0x40696b
lea eax, ds:[ebp - 0x50]
mov dword [ebp - 0x50], 0xff676980
push eax
push 0
mov dword [ebp - 0x4c], 0xffffffff
call dword [sym.imp.ntdll.dll_NtDelayExecution]
sub edi, 1
jne 0x406920
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413aae
mov esp, ebp
pop ebp
ret
Function at 0x406de0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, ecx
xor bl, bl
mov ecx, dword [edi + 0x18]
test ecx, ecx
je 0x406e9d
cmp dword ds:[ecx], 0
je 0x406e9d
mov edx, str.ProcessHacker.exe
call fcn.004073e0
mov dword [ebp - 4], eax
mov ecx, dword [eax + 4]
call fcn.00409560
test al, al
je 0x406e7e
mov esi, dword [ebp - 4]
lea eax, [ebp - 0x3c]
mov edi, dword [edi]
push 0x38
push 0
mov esi, dword [esi + 4]
push eax
mov dword [ebp - 0x40], 0x3c
call fcn.00415060
add esp, 0xc
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], 0x440
mov dword [ebp - 0x24], 1
push eax
mov dword [ebp - 0x38], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x406e7c
mov eax, dword [ebp - 8]
test eax, eax
je 0x406e78
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov bl, 1
jmp 0x406e7e
xor bl, bl
mov ecx, dword [ebp - 4]
or edx, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], edx
dec edx
jne 0x406e94
call fcn.00409ce0
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406ec0
Capabilities:
Get system information on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x452004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x452a50], 0x64
jb 0x406fcf
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
sub esp, 8
mov edx, 0x20006
push 0x80
push 0x452a48
push ecx
lea ecx, [ebp - 0x38]
call fcn.004092a0
test eax, eax
js 0x406f58
mov ecx, dword [0x452b18]
mov dword [ebp - 0x10], 0x111000
mov dword [ebp - 0xc], 0x1100111
mov word [ebp - 0x40], cx
lea eax, [ecx + 2]
mov word [ebp - 0x3e], ax
mov eax, dword [str.MitigationOptions]
mov dword [ebp - 0x3c], eax
cmp ecx, 0xfffe
ja 0x406f4f
push 8
lea eax, [ebp - 0x10]
push eax
push 0xb
push 0
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push dword [ebp - 0x38]
call dword [sym.imp.ntdll.dll_NtClose]
cmp word [ebp - 0x34], 9
jne 0x406fcf
sub esp, 8
mov edx, 0x20006
push 0x80
push 0x452a30
push ecx
lea ecx, [ebp - 0x38]
call fcn.004092a0
test eax, eax
js 0x406fcf
mov ecx, dword [0x452a78]
mov dword [ebp - 0x10], 0x111000
mov dword [ebp - 0xc], 0x1100111
mov word [ebp - 0x40], cx
lea eax, [ecx + 2]
mov word [ebp - 0x3e], ax
mov eax, dword [str.MitigationOptions]
mov dword [ebp - 0x3c], eax
cmp ecx, 0xfffe
ja 0x406fc6
push 8
lea eax, [ebp - 0x10]
push eax
push 0xb
push 0
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ntdll.dll_NtSetValueKey]
push dword [ebp - 0x38]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00413aae
mov esp, ebp
pop ebp
ret
Function at 0x406fe0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x452004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x2c], eax
mov edi, edx
mov eax, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
push 0x42b51c
push 1
push 0
push 0x42b56c
mov dword [ebp - 0x28], edi
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40719c
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x42b53c
push eax
mov esi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
call dword [0x42b26c]
call esi
test eax, eax
js 0x40719c
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x42b54c
push eax
mov esi, dword [eax]
mov esi, dword [esi]
mov ecx, esi
call dword [0x42b26c]
call esi
test eax, eax
js 0x40711e
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x1f
mov word [ebp - 0x20], ax
call fcn.0040a0a0
mov edi, eax
add edi, edi
lea esi, [edi + 2]
push esi
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
push esi
push 0
push eax
mov dword [ebp - 0x18], eax
call fcn.00415060
add esp, 0xc
push edi
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call fcn.00415e30
mov eax, dword ds:[ebp - 0xc]
lea ecx, [ebp - 0x20]
add esp, 0xc
mov esi, dword [eax]
push ecx
push 0x432214
push eax
mov esi, dword [esi + 0x18]
mov ecx, esi
call dword [0x42b26c]
call esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.ole32.dll_PropVariantClear]
mov eax, dword ds:[ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1c]
mov ecx, esi
call dword [0x42b26c]
call esi
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x42b26c]
call esi
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 8]
push dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x24]
mov ecx, esi
call dword [0x42b26c]
call esi
mov eax, dword [ebp - 8]
push 0
push edi
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x44]
mov ecx, esi
call dword [0x42b26c]
call esi
mov eax, dword [ebp - 8]
push edi
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x50]
mov ecx, esi
call dword [0x42b26c]
call esi
mov edi, edi
test eax, eax
js 0x40719c
mov ecx, ebx
call fcn.00409560
test al, al
je 0x407176
mov ecx, ebx
call fcn.00409620
mov eax, dword [ebp - 0x10]
push 1
push ebx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x42b26c]
call esi
push 0
push ebx
push 5
push 0x2000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov ecx, dword ds:[ebp - 0x10]
test ecx, ecx
je 0x4071b4
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x42b26c]
call esi
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4071cb
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x42b26c]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413aae
mov esp, ebp
pop ebp
ret 8
Function at 0x4071e0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x452004]
xor eax, esp
mov dword [esp + 0x40], eax
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], 0x12
mov dword [esp + 0x14], str.PhMutant_
mov dword [esp + 8], 0x12
cmp dword [esi], 0x12
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
jb 0x40722f
push 1
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
call fcn.0040a140
test al, al
jne 0x4072ad
cmp dword [esi], 0x1c
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x1c
mov dword [esp + 0xc], str.PhSetupMutant_
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x1c
jb 0x407269
push 1
lea edx, [esp + 0xc]
lea ecx, [esp + 0x14]
call fcn.0040a140
test al, al
jne 0x4072ad
cmp dword [esi], 0x1e
mov eax, dword [esi + 4]
mov dword [esp + 8], 0x1e
mov dword [esp + 0xc], str.PeViewerMutant_
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x1e
jb 0x4073b0
push 1
lea edx, [esp + 0xc]
lea ecx, [esp + 0x14]
call fcn.0040a140
test al, al
je 0x4073b0
movzx eax, word [esi]
mov word [esp + 0x3c], ax
add eax, 2
cmp dword [esi], 0xfffe
mov word [esp + 0x3e], ax
mov eax, dword [esi + 4]
mov dword [esp + 0x40], eax
ja 0x4073b0
mov dword [esp + 0x24], 0x18
call fcn.0040c600
mov dword [esp + 0x28], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x38], 0x40
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call dword [sym.imp.ntdll.dll_NtOpenMutant]
test eax, eax
js 0x4073b0
push 0
push 8
lea eax, [esp + 0x24]
push eax
push 1
push dword [esp + 0x28]
call dword [sym.imp.ntdll.dll_NtQueryMutant]
test eax, eax
js 0x4073a6
mov eax, dword fs:[0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
cmp ecx, dword [eax + 0x20]
je 0x4073a6
push ecx
mov edx, 0x1001
lea ecx, [esp + 0x14]
call fcn.00407ea0
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00410060
test eax, eax
je 0x407386
push 0
push 0x1388
push 1
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4073a6
push 1
push eax
call dword [sym.imp.ntdll.dll_NtTerminateProcess]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4073a6
push eax
call dword [sym.imp.ntdll.dll_NtClose]
push dword [esp + 0x18]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [esp + 0x44]
mov al, 1
pop esi
xor ecx, esp
call fcn.00413aae
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408160
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x452a50], 0x6a
jb 0x40818d
push 0x40
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x11
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esp, ebp
pop ebp
ret
push 0xd
push 1
lea eax, [ebp - 1]
mov byte [ebp - 1], 1
push eax
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov esp, ebp
pop ebp
ret