joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.00401938
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x404659]
lea edx, [fcn.0040199c]
sub eax, edx
push eax
push fcn.0040199c
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401326
push edi
call fcn.00401830
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00401885
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x88]
xor eax, edi
push eax
lea eax, [0x4060e4]
or eax, edi
push eax
call fcn.0040199c
add esp, 0x18
xor eax, eax
pop edi
leave
ret

Function at 0x401938
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
leave
ret
Function at 0x401d30
Capabilities:
Get mac address on windows

Disassembly:
sub esp, 0x298
mov eax, dword [0x444424]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
xor ebp, ebp
push ecx
mov dword [esp + 0x14], ebp
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x401e00
mov edx, dword [esp + 0xc]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x401de6
lea eax, [esp + 0xc]
push eax
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x401dce
mov esi, ebx
nop
mov eax, dword [edi + 0x800]
mov ecx, dword [esi + 0x190]
lea edx, [ecx + eax]
cmp edx, 0x1000
jae 0x401dd4
push ecx
lea ecx, [esi + 0x194]
push ecx
add eax, edi
push eax
call fcn.00424080
mov edx, dword [esi + 0x190]
add dword [edi + 0x800], edx
mov esi, dword [esi]
add esp, 0xc
test esi, esi
jne 0x401d90
jmp 0x401dd4
lea ebp, [eax - 0x10000000]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x401e06
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.0041f0b7
add esp, 0x298
ret
lea ebp, [eax - 0x20000000]
mov ecx, dword [esp + 0x29c]
xor eax, eax
test ebp, ebp
pop esi
pop ebp
sete al
pop ebx
xor ecx, esp
call fcn.0041f0b7
add esp, 0x298
ret

Function at 0x402940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402959
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402994
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402990
lea ebx, [ebx]
cmp esi, eax
jae 0x402994
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402980
cmp esi, eax
jb 0x40299a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403800
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x138
mov eax, dword [0x444424]
xor eax, esp
mov dword [esp + 0x130], eax
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x403875
push 0x124
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0x128
call fcn.00420f70
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x403875
lea edx, [esp + 0x2c]
push str.sysfirewall.exe
push edx
call fcn.0041f62d
add esp, 8
test eax, eax
je 0x40388d
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403850
xor eax, eax
pop esi
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0041f0b7
add esp, 0x138
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [esp + 0x134]
pop esi
xor ecx, esp
call fcn.0041f0b7
add esp, 0x138
ret

Function at 0x4038c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x434c48
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
mov eax, dword [0x444424]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
push 0x43b6f8
lea ecx, [esp + 0x10]
call fcn.00402700
mov dword [esp + 0x78], 0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
mov esi, 0x104
sub eax, esi
or eax, edx
jge 0x403922
push esi
lea ecx, [esp + 0x10]
call fcn.00401ab0
mov ecx, dword [esp + 0xc]
cmp dword [ecx - 8], esi
mov eax, ecx
jge 0x403933
push 0x80070057
call fcn.004018e0
mov dword [ecx - 0xc], esi
mov ecx, dword [esp + 0xc]
push eax
push esi
mov byte [ecx + 0x104], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [esp + 0xc]
test edx, edx
jne 0x403955
xor eax, eax
jmp 0x40396d
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403960
sub eax, esi
js 0x403929
cmp eax, dword [edx - 8]
jg 0x403929
mov dword [edx - 0xc], eax
mov edx, dword [esp + 0xc]
mov byte [eax + edx], 0
push str.sysfirewall.exe
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00404030
push 0x44
lea edx, [esp + 0x34]
push 0
push edx
call fcn.00420f70
mov edx, dword [esp + 0x28]
add esp, 0x18
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
mov dword [esp + 0x4c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
or edx, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4039ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x78], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x74
ret
Function at 0x40a8b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40a8f7
call fcn.0041004c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a8f7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a912
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040a46b
test ebx, ebx
mov esi, eax
je 0x40a910
test edi, edi
je 0x40a910
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40cedf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x40cf25
call fcn.0041004c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40cf25
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x40cf68
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x40cf51
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x40cf51
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x40cf65
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4116d0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4116fe
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41171c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041163a
jmp 0x41171c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41171c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0041163a
test edi, edi
mov eax, edi
jne 0x411706
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4474a8]
test ecx, ecx
je 0x4117df
jmp 0x4116cf
ret 8

Function at 0x41f0b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444424]
jne 0x41f0c1
repz ret
jmp fcn.00423adf
Function at 0x42e9f3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00424ddd
xor ebx, ebx
cmp dword [0x4481f4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x42eac8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x42ea33
xor eax, eax
jmp 0x42eb8c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43ac10
push edi
call esi
cmp eax, ebx
je 0x42ea2c
push eax
call fcn.00424d7a
mov dword [esp], 0x43ac00
push edi
mov dword [0x4481f4], eax
call esi
push eax
call fcn.00424d7a
mov dword [esp], 0x43abec
push edi
mov dword [0x4481f8], eax
call esi
push eax
call fcn.00424d7a
mov dword [0x4481fc], eax
lea eax, [ebp - 8]
push eax
call fcn.0041fabb
test eax, eax
pop ecx
pop ecx
je 0x42ea96
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423f5f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x42eac8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00424d7a
cmp eax, ebx
pop ecx
mov dword [0x448204], eax
je 0x42eac8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00424d7a
pop ecx
mov dword [0x448200], eax
mov eax, dword [0x448200]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x42eb41
cmp dword [0x448204], esi
je 0x42eb41
push eax
call fcn.00424de6
pop ecx
call eax
cmp eax, ebx
je 0x42eb0e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x448204]
call fcn.00424de6
pop ecx
call eax
test eax, eax
je 0x42eb0e
test byte [ebp - 0x18], 1
jne 0x42eb41
lea eax, [ebp - 0xc]
push eax
call fcn.0041faf2
test eax, eax
pop ecx
je 0x42eb29
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00423f5f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x42eb38
or dword [ebp + 0x10], 0x200000
jmp 0x42eb72
or dword [ebp + 0x10], 0x40000
jmp 0x42eb72
mov eax, dword [0x4481f8]
cmp eax, esi
je 0x42eb72
push eax
call fcn.00424de6
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x42eb72
mov eax, dword [0x4481fc]
cmp eax, esi
je 0x42eb72
push dword [ebp - 4]
push eax
call fcn.00424de6
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4481f4]
call fcn.00424de6
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4333d8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x444424]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043336d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00420f70
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x433427
cmp dword [ebp - 0x1c], 5
jb 0x43343f
jmp 0x43343b
cmp dword [ebp - 0x10], 1
jne 0x43343f
cmp dword [ebp - 0x1c], 4
ja 0x43343b
jne 0x43343f
cmp dword [ebp - 0x18], 0
jbe 0x43343f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43b4b4
call fcn.00433241
test eax, eax
jge 0x433460
mov byte [0x4493e4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041f0b7
add ebp, 0x78
leave
ret
Function at 0x405f79
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x4082d4
call fcn.00407860
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
push str.____width
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
jl 0x405fc2
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jge 0x405fc2
push dword [ebp + 0x10]
add eax, ecx
push dword [ebp + 0xc]
push str.____width_d_height_d___
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
cmp dword [esi + 0x1b4], ebx
jne 0x4060fe
push edi
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov esi, 0x104
lea ecx, [ebp + 0xc]
push esi
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edi, dword [ebp + 0xc]
push esi
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
push 0x40d27c
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..htm
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::CFile
push ebx
push 0x9002
push dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::Open
test eax, eax
pop edi
je 0x4060db
push ebx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::SetLength
push ebx
push ebx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Seek
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
mov esi, dword [eax - 8]
push esi
push esi
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Write
push esi
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CFile::Close
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push str.file:__
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push ebx
push eax
mov byte [ebp - 4], 4
call fcn.00406287
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0x10]
push eax
call fcn.004062a9
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004072f4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.00407654
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004072f4
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.004072f4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004072f4
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x403180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43265d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4430a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0040e502
mov edi, eax
add esp, 4
test edi, edi
je 0x40321d
push 1
mov dword [ebp - 4], 0
call fcn.0040dbd1
add esp, 4
mov dword [edi + 4], eax
jmp 0x40321f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.00401390
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x20]
mov ecx, eax
call edx
mov dword [ebp - 4], 0xffffffff
mov bl, al
test edi, edi
je 0x40327a
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x40327a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x403296
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4032b9
cmp byte [ebp + 0xc], 0
je 0x4032a5
push esi
call fcn.0040e066
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4032c5
mov esi, str.ios_base::badbit_set
jmp 0x4032d5
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.004037c0
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00401c10
push 0x440b68
lea eax, [ebp - 0x28]
push eax
call fcn.0040f5e8
int3
Function at 0x403580
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4326eb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4430a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x410
mov dword [ebp - 0x244], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x240], esi
test esi, esi
je 0x40379c
lea eax, [ebp - 0x234]
push eax
push 4
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x40379c
mov eax, dword [ebp - 0x234]
xor ecx, ecx
shr eax, 2
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
mov dword [ebp - 0x23c], ecx
call fcn.0040e540
mov edi, eax
add esp, 4
test edi, edi
je 0x403640
push dword [ebp - 0x23c]
push 0
push edi
call fcn.0040ff90
add esp, 0xc
jmp 0x403642
xor edi, edi
mov dword [ebp - 0x23c], edi
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x234]
push edi
push esi
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x40378f
xor esi, esi
test dword [ebp - 0x234], 0xfffffffc
jbe 0x40378f
nop dword [eax]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040ff90
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push dword [edi + esi*4]
push dword [ebp - 0x240]
call sub.KERNEL32.dll_K32GetModuleFileNameExW
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
movups xmmword [ebp - 0x230], xmm0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4036d7
sub eax, edx
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00401170
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 8
push 0
mov byte [ebp - 4], 1
lea ecx, [eax + eax]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x238]
push eax
call fcn.004041d0
mov ecx, dword [ebp - 0x238]
push 0
push 2
push 0x4334ec
call fcn.004041d0
mov ecx, dword [ebp - 0x21c]
mov byte [ebp - 4], 0
cmp ecx, 8
jb 0x40377d
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403773
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4037b7
push ecx
push edx
call fcn.0040e532
add esp, 8
mov eax, dword [ebp - 0x234]
inc esi
shr eax, 2
cmp esi, eax
jb 0x403680
test edi, edi
je 0x40379c
push edi
call fcn.0040e549
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e54e
mov esp, ebp
pop ebp
ret
call fcn.004130cf
int3
Function at 0x404af0
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 1
push edi
mov dword [ebp - 4], eax
lea ecx, [esi - 1]
mov dword [ebp - 0xc], ecx
cmp ecx, eax
jle 0x404bd8
mov ebx, dword [ebp + 0xc]
push dword [ebx + eax*4]
call fcn.004152ad
add esp, 4
push eax
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x404be4
mov ecx, dword [ebx + esi*4 - 4]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404b40
sub ecx, edx
sar ecx, 1
push 4
push 0x3000
lea esi, [ecx*2 + 2]
push esi
push 0
push edi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x404be4
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push esi
push dword [eax + ecx*4 - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 0
push ebx
push dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x8000
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call esi
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0xc]
jl 0x404b12
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret