joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402560
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x406440]
test esi, esi
jle 0x402670
mov edi, dword [0x406444]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x402594
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x402615
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x402580
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x402697
mov eax, dword [0x406444]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov edx, dword [0x406444]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x402677
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40260e
sub eax, 4
and eax, 0xfffffffb
jne 0x402620
add dword [0x406440], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x406444]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40260e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
xor esi, esi
jmp 0x40259e
mov eax, dword [0x406444]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x402ad0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x406458
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406450]
sub esp, 4
test ebx, ebx
je 0x402b25
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x402b1e
test esi, esi
je 0x402b1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402b00
mov dword [esp], 0x406458
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403270
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
nop
nop
nop
nop
nop
Function at 0x404980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x42b01c]
push edi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0x369044e
nop
push eax
call 0x77f1296e
nop
mov ebx, eax
push 0x434fb0
mov dword [ebp - 4], ebx
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
mov byte [ebx + edi], 0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x404a9a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x6ff643d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x434fb0
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x404a26
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
push 0x434fb0
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0x3690453
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4022a4
Capabilities:
Delete directory
Delete file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x324]
push 0x41e110
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x324]
xor ebx, ebx
push eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0xc8], ebx
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
jle 0x402363
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x220]
push 0x104
push eax
mov eax, dword [ebp - 0x18]
mov ax, word [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea eax, [ebp - 0x220]
push eax
call ebx
test eax, eax
jne 0x40234f
lea eax, [ebp - 0x220]
push eax
call edi
test eax, eax
jne 0x40234f
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x14]
cmp eax, 0x64
jge 0x40234f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402320
inc dword [ebp - 0xc]
add dword [ebp - 0x18], 2
mov eax, dword [ebp - 0xc]
cmp eax, dword [esi + 0xc8]
jl 0x402307
xor ebx, ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x104
push eax
lea eax, [ebp - 0x11c]
push eax
push ebx
push ebx
push str.CommonFilesDir
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp byte [ebp - 0x11c], 0
lea eax, [ebp - 0x11c]
je 0x4023bb
push eax
mov esi, eax
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
jne 0x4023ab
jmp 0x4023be
mov esi, dword [ebp - 0x10]
cmp byte [esi], 0x5c
jne 0x4023c6
and byte [esi], 0
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 4], eax
lea eax, [ebp + eax - 0x11c]
push str.InstallShieldengine6Intel_32
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
call edi
mov eax, dword [ebp - 4]
push str.InstallShieldengine6
lea eax, [ebp + eax - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
call edi
mov eax, dword [ebp - 4]
push str.InstallShieldengine
lea eax, [ebp + eax - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
call edi
mov eax, dword [ebp - 4]
push str.InstallShieldiScript
lea eax, [ebp + eax - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
call edi
mov eax, dword [ebp - 4]
push str.InstallShield
lea eax, [ebp + eax - 0x11c]
push eax
call esi
lea eax, [ebp - 0x11c]
push eax
call edi
cmp dword [ebp - 8], ebx
je 0x402471
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x10], ebx
pop edi
pop esi
pop ebx
je 0x402482
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret
Function at 0x402f58
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x402fe3
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x402fe3
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x402fe3
push edi
lea edi, [esi + 0x3c]
mov ecx, edi
call fcn.004024bf
push 1
push 0
push 0
push dword [edi + 4]
push str.open
push dword [esi + 4]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [esi + 0x58], 0xa00000
mov byte [esi + 0x5c], 1
pop edi
jmp 0x402fe9
mov eax, dword [ebp + 0x14]
and dword [eax], 0
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x4043df
Capabilities:
Get file size

Disassembly:
mov eax, dword [ecx + 0xc0]
cmp eax, 0xffffffff
je 0x4043f4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
ret
jmp fcn.00418a58
Function at 0x406898
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
and byte [ebp - 0x144], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x143]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0xc]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x406908
lea eax, [ebp - 0x144]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x406908
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x406908
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [ebp - 0x144], 0
je 0x40694e
lea eax, [ebp - 0x144]
mov edi, 0x41b40c
push esi
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x34], 0x41b414
mov dword [ebp - 0x2c], edi
call fcn.00401833
mov esi, 0x41b408
push 0x41e1d0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], 1
call fcn.00406c12
jmp 0x40697f
lea eax, [ebp - 0x144]
mov edi, 0x41b40c
push esi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0x41b414
mov dword [ebp - 0x10], edi
call fcn.00401833
mov esi, 0x41b408
mov dword [ebp - 4], 2
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x24]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x41b414
mov dword [ecx + 0x14], edi
call fcn.00402214
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x4069ab
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x24]
call fcn.00401925
test byte [ebp - 4], 1
je 0x4069b9
lea ecx, [ebp - 0x40]
call fcn.00401925
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4080f5
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x408114
xor al, al
jmp 0x408137
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x40813b
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 0x90], eax
mov al, cl
pop edi
pop esi
pop ecx
ret

Function at 0x409424
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
mov ecx, dword [ecx]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x409458
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
mov ebx, eax
jne 0x40947b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp edi, esi
je 0x409486
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc

Function at 0x4095a7
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
mov dword [esi + 0x70], 0x41e408
mov dword [0x41f8d0], esi
push dword [ebp + 8]
mov dword [esi], 0x84
mov dword [esi + 0x64], 0x300
push esi
call fcn.00409b6e
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4095f4
push 0x10
push dword [ebp + 0x10]
push 0x41f8d8
call fcn.00419570
add esp, 0xc
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov edi, 0x94
mov dword [esi + 0x18], eax
push edi
lea eax, [ebp - 0xb8]
push ebx
push eax
call fcn.00419480
add esp, 0xc
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0xa8], 2
jne 0x409645
cmp dword [ebp - 0xb4], 5
jae 0x40969b
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x40969b
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, 0x80000000
jne 0x409667
shr dword [esi + 0x74], 1
shl eax, 1
inc ecx
cmp ecx, 0x20
jl 0x409655
shr dword [esi + 0x74], 1
mov eax, dword [esi + 0x74]
lea eax, [eax*4 + 4]
push eax
push ebx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x78], eax
xor edi, edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [esi + 0x78]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x74]
jbe 0x409684
jmp 0x4096a1
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x409907
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
jne 0x40998c
xor eax, eax
cmp dword [ebp - 4], esi
je 0x409948
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x40998c
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [ebp - 4]
push dword [ebp + 8]
push str.CLSID
call fcn.00409424
cmp dword [ebp - 4], esi
je 0x409988
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x4099aa
cmp eax, esi
push ebx
jle 0x40999b
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x4099a7
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

Function at 0x409a8a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.004093e6
mov edi, eax
cmp edi, esi
je 0x409aca
cmp dword [ebp - 4], esi
je 0x409ac3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x409b67
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x409b3b
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.00409a8a
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x409b28
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x409aed
cmp dword [ebp - 4], esi
je 0x409b36
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x409b67
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x409b4e
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x409b65
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40cd61
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push dword [0x41e6e8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea ecx, [ebp - 0x10]
push 0x2710
push eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], bl
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
mov dword [ebp - 4], ebx
inc al
mov byte [ebp - 0xc], al
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ole32.dll_GetRunningObjectTable]
test eax, eax
jl 0x40cdb7
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
cmp eax, ebx
pop ebx
je 0x40cdc5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 8]
call fcn.0040cf9e
lea ecx, [ebp - 0x10]
call fcn.0040d0a6
leave
ret
Function at 0x40ee9d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x45], bl
je 0x40ef47
cmp byte [esi + 0x44], bl
jne 0x40ef47
cmp word [esi + 0x26c], bx
je 0x40eed0
mov esi, dword [esi + 0x270]
push esi
mov eax, dword [esi]
call dword [eax + 0x30]
jmp 0x40ef47
mov eax, dword [esi + 0x94]
cmp eax, ebx
je 0x40ef47
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x40ef47
mov eax, dword [esi + 0x240]
mov dword [ebp - 4], ebx
cmp eax, ebx
je 0x40ef1a
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x41e9a0
push 0x41c518
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x40ef1a
mov eax, dword [ebp - 4]
lea edx, [esi + 0x94]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
add esi, 0x84
mov ecx, esi
call fcn.004024bf
push 1
push ebx
push ebx
push dword [esi + 4]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x40ef47
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop esi
pop ebx
leave
ret

Function at 0x40f264
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push str.PUBLICKEY
push 0xd0
push dword [0x41f8ec]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [0x41f8ec]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
push dword [0x41f8ec]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0xc]
push 0
push edi
push eax
call fcn.004164a2
pop edi
pop esi
test al, al
jne 0x40f2b8
xor eax, eax
jmp 0x40f2c7
mov ecx, dword [esp + 4]
call fcn.004165cf
neg al
sbb eax, eax
neg eax
ret 4
Function at 0x40f2ca
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], ecx
push esi
push 0x8003
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.004161d1
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004024bf
push dword [edi + 4]
call fcn.00418d13
pop ecx
mov dword [ebp + 8], eax
mov ecx, edi
call fcn.004024bf
mov edi, dword [edi + 4]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp dword [ebp - 0xc], edi
je 0x40f339
lea ecx, [ebp - 0xc]
call fcn.00410d02
mov dword [ebp - 0xc], edi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 8]
ja 0x40f36d
lea ecx, [ebp - 0x6c]
call fcn.00416262
lea ecx, [ebp - 8]
call fcn.00410ef9
lea ecx, [ebp - 4]
call fcn.004055d3
lea ecx, [ebp - 0xc]
call fcn.00410d02
jmp 0x40f42b
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp dword [ebp - 4], edi
je 0x40f396
cmp dword [ebp - 4], esi
je 0x40f393
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], edi
push esi
push esi
push esi
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
je 0x40f3c2
cmp eax, esi
je 0x40f3bc
push eax
call edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push 1
add eax, ecx
push esi
push eax
lea ecx, [ebp - 0x6c]
call fcn.004164c8
test al, al
je 0x40f3e9
push dword [ebp + 8]
lea ecx, [ebp - 0x6c]
push dword [ebp - 8]
call fcn.004166fe
test al, al
jne 0x40f3ee
lea ecx, [ebp - 0x6c]
jmp 0x40f401
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x6c]
push eax
call fcn.0040f264
test eax, eax
lea ecx, [ebp - 0x6c]
jne 0x40f432
call fcn.00416262
cmp dword [ebp - 8], esi
je 0x40f413
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x40f420
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x40f42b
push dword [ebp - 0xc]
call ebx
mov eax, 0x80090006
jmp 0x40f45e
call fcn.00416262
cmp dword [ebp - 8], esi
je 0x40f444
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x40f451
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x40f45c
push dword [ebp - 0xc]
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4