joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x432880
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x43fcd4]
xor eax, esp
mov dword [esp + 0x6c], eax
push esi
push edi
mov eax, dword [0x43fcd4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0040bec5
mov eax, dword [esi + 0x90]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x80
push eax
call edi
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x20]
push eax
push 0
push 0x80
push ecx
call edi
push 0x437d90
mov ecx, esi
call fcn.00413e36
mov edi, vtable.CFont.0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edi
push 0x11
mov dword [esp + 0x8c], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea ecx, [esp + 0x14]
call fcn.00415d42
push 0x3c
lea edx, [esp + 0x40]
push 0
push edx
call fcn.0041d620
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x3c]
push eax
push 0x3c
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
push esi
lea ecx, [esp + 0x2c]
call fcn.00415b97
mov byte [esp + 0x88], 1
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x437da4]
mov al, byte [0x437da8]
push 0x5a
push ecx
mov dword [esp + 0x60], edx
mov byte [esp + 0x64], al
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, eax
neg ecx
add ecx, ecx
add ecx, ecx
sub ecx, eax
add ecx, ecx
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
lea ecx, [esp + 0x3c]
add eax, edx
push ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], 0x258
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esi + 0x88]
call fcn.00415d42
mov edx, dword [esi + 0x78]
mov eax, dword [esi + 0x74]
push 0x42
push edx
push eax
push 0
mov ecx, dword [esi + 0x20]
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 8], ecx
push esi
mov dword [eax + 0xc], edx
call fcn.00405030
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
mov edx, dword [edx + 0x168]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
push 0
mov ecx, esi
call fcn.00410981
lea ecx, [esp + 0x28]
mov byte [esp + 0x88], 0
call fcn.00415beb
mov dword [esp + 0x88], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], edi
call fcn.00407920
mov eax, 1
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0041b328
mov esp, ebp
pop ebp
ret
Function at 0x405530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4322e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x43fcd4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], vtable.CBitmap.0
mov dword [esp + 0x30], 0
call fcn.0040e8b4
mov eax, dword [eax + 0xc]
push 0x81
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0xc]
call fcn.00415d42
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4055b6
lea ecx, [esp + 0x10]
push ecx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esi + 0x9c], edx
mov dword [esi + 0xa0], eax
lea ecx, [esp + 8]
push ecx
call fcn.004056c0
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 8]
mov dword [esp + 8], vtable.CBitmap.0
call fcn.00407920
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x4055f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4322c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x43fcd4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], vtable.CBitmap.0
lea eax, [esi + 0x9c]
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x30]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x18], esp
mov edi, esp
push eax
call fcn.00401220
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00407e10
add esp, 0xc
lea edx, [esp + 0x10]
push edx
call fcn.004056c0
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.CBitmap.0
call fcn.00407920
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4056ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x407fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x431f98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x43fcd4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 0
call fcn.0040e8b4
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x28]
movzx ecx, word [esp + 0x24]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x408039
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408024
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40806f
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x408018
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.00421290
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0x10]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4080c6
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x4080c8
xor esi, esi
mov edx, dword [esp + 0x2c]
push edi
mov dword [edx], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408109
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x409340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4325c8
mov eax, dword fs:[0]
push eax
push edi
mov eax, dword [0x43fcd4]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
push 1
push eax
push ecx
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x38]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov edi, esp
push eax
call fcn.00401220
sub esp, 0xc
add eax, 0x10
mov dword [edi], eax
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x44]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x38]
push 0x2711
push edx
push esi
mov dword [eax + 0xc], ecx
call fcn.00407b70
mov dword [esi], vtable.CImageButton.0
call fcn.0040a7b9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4093da
push 0x80004005
call fcn.00401700
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x38], eax
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov dword [esi + 0x48], 0
mov dword [esi + 0x3c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40941f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0xc
ret 0x1c

Function at 0x413ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x413d27
call fcn.0040e8b4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x413d27
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x413d43
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041385a
mov esi, eax
test edi, edi
je 0x413d41
test ebx, ebx
je 0x413d41
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41494c
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x414977
call fcn.0040e8b4
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x41499a
push eax
push dword [esi + 4]
call fcn.004148d2
push esi
push eax
mov ecx, 0x442ed4
call fcn.00414546
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x41520e
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x431ad2
call fcn.0041cb51
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.004151ce
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00403860
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x415275
push eax
push dword [esi + 8]
call fcn.004148d2
push dword [esi + 0xc]
mov ecx, 0x442ed4
push eax
call fcn.00414546
mov eax, esi
call fcn.0041cc29
ret 0x1c

Function at 0x41b328
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fcd4]
jne 0x41b332
repz ret
jmp fcn.0042105f

Function at 0x42cc30
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004219d7
and dword [ebp - 4], 0
cmp dword [0x443d98], 0
mov ebx, eax
jne 0x42cce1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42cd92
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4373f4
push edi
call esi
test eax, eax
je 0x42cd92
push eax
call fcn.00421965
mov dword [esp], 0x4373e4
push edi
mov dword [0x443d98], eax
call esi
push eax
call fcn.00421965
mov dword [esp], 0x4373d0
push edi
mov dword [0x443d9c], eax
call esi
push eax
call fcn.00421965
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x443da0], eax
call esi
push eax
call fcn.00421965
pop ecx
mov dword [0x443da8], eax
test eax, eax
je 0x42cce1
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00421965
pop ecx
mov dword [0x443da4], eax
mov eax, dword [0x443da4]
cmp eax, ebx
je 0x42cd39
cmp dword [0x443da8], ebx
je 0x42cd39
push eax
call fcn.004219e0
push dword [0x443da8]
mov esi, eax
call fcn.004219e0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42cd39
test edi, edi
je 0x42cd39
call esi
test eax, eax
je 0x42cd30
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42cd30
test byte [ebp - 0xc], 1
jne 0x42cd39
or dword [ebp + 0x10], 0x200000
jmp 0x42cd72
mov eax, dword [0x443d9c]
cmp eax, ebx
je 0x42cd72
push eax
call fcn.004219e0
pop ecx
test eax, eax
je 0x42cd72
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42cd72
mov eax, dword [0x443da0]
cmp eax, ebx
je 0x42cd72
push eax
call fcn.004219e0
pop ecx
test eax, eax
je 0x42cd72
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x443d98]
call fcn.004219e0
pop ecx
test eax, eax
je 0x42cd92
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42cd94
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x228
mov eax, dword [0x47cd00]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [esp + 0x22c]
push ebx
push ebp
push esi
push edi
push 0x2c
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], 0
call fcn.0040732c
mov esi, dword [esp + 0x24c]
mov ebx, eax
mov edi, dword [esp + 0x248]
add esp, 4
xor ecx, ecx
mov dword [ebx], ebx
mov dword [ebx + 4], ebx
mov dword [ebx + 8], ebx
mov word [ebx + 0xc], 0x101
mov dword [esp + 0x14], ebx
nop dword [eax]
mov eax, ecx
mov byte [esp + ecx + 0x34], cl
cdq
idiv esi
mov al, byte [edx + edi]
mov byte [esp + ecx + 0x134], al
inc ecx
cmp ecx, 0x100
jl 0x424060
xor esi, esi
xor edi, edi
mov dl, byte [esp + esi + 0x34]
movzx eax, byte [esp + esi + 0x134]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x4240a3
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x34]
mov byte [esp + esi + 0x34], al
inc esi
mov byte [esp + edi + 0x34], dl
cmp esi, 0x100
jl 0x424080
xor ecx, ecx
xor ebp, ebp
xor edi, edi
cmp dword [esp + 0x240], ecx
jle 0x4241c0
movsd xmm0, qword [0x425448]
movsd qword [esp + 0x2c], xmm0
nop dword [eax]
inc ebp
and ebp, 0x800000ff
jns 0x4240f1
dec ebp
or ebp, 0xffffff00
inc ebp
mov bl, byte [esp + ebp + 0x34]
movzx esi, bl
add ecx, esi
and ecx, 0x800000ff
jns 0x42410a
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [esp + 0x2c]
mov dword [esp + 0x10], ecx
push eax
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.00401640
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
movzx eax, byte [esp + ecx + 0x34]
mov byte [esp + ebp + 0x34], al
mov byte [esp + ecx + 0x34], bl
movzx eax, byte [esp + ebp + 0x34]
add eax, esi
movzx eax, al
movzx eax, byte [esp + eax + 0x34]
xor byte [edx + edi], al
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4241ae
mov ecx, dword [esp + 0x24]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffff8
cmp ecx, 0x1000
jb 0x424188
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4241f6
push ecx
push edx
call fcn.0040735c
mov ecx, dword [esp + 0x18]
add esp, 8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
inc edi
cmp edi, dword [esp + 0x240]
jl 0x4240e0
mov ebx, dword [esp + 0x14]
push dword [ebx + 4]
lea eax, [esp + 0x18]
push eax
mov ecx, eax
call fcn.00401810
push 0x2c
push dword [esp + 0x18]
call fcn.0040735c
mov ecx, dword [esp + 0x23c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040736f
add esp, 0x228
ret
call fcn.0040bcef
int3
Function at 0x424610
Capabilities:
Create thread

Disassembly:
sub esp, 0x18
push str.Madino_Mino_n
push 0x47df28
call fcn.004010d0
add esp, 8
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 4
call fcn.0040732c
add esp, 4
test eax, eax
je 0x424641
mov dword [eax], 0x424320
jmp 0x424643
xor eax, eax
lea ecx, [esp + 8]
push ecx
push 0
push eax
push 0x401ca0
push 0
push 0
call fcn.0040f276
add esp, 0x18
mov dword [esp + 4], eax
test eax, eax
je 0x424739
cmp dword [esp + 8], 0
je 0x424748
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 8]
cmp ecx, eax
je 0x42474f
push 0
push ecx
push dword [esp + 0xc]
call fcn.00404fd9
add esp, 0xc
test eax, eax
jne 0x424756
push esi
xorps xmm0, xmm0
mov dword [esp + 0x10], eax
xor ecx, ecx
movlpd qword [esp + 8], xmm0
push edi
mov dword [esp + 0x18], eax
lea edi, [eax + 0x64]
mov dword [esp + 0x1c], ecx
mov dword [esp + 8], eax
nop dword [eax + eax]
mov esi, 2
cmp eax, ecx
je 0x4246d8
mov dword [eax], 0
add eax, 4
mov dword [esp + 0x18], eax
jmp 0x4246ef
lea ecx, [esp + 8]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401480
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub esi, 1
jne 0x4246c5
sub edi, 1
jne 0x4246c0
mov edx, dword [esp + 0x14]
pop edi
pop esi
test edx, edx
je 0x42472c
sub ecx, edx
mov eax, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x424722
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42475d
push ecx
push edx
call fcn.0040735c
add esp, 8
cmp dword [esp + 8], 0
jne 0x424762
xor eax, eax
add esp, 0x18
ret
push 6
mov dword [esp + 0xc], 0
call fcn.004051c9
push 1
call fcn.004051c9
push 5
call fcn.004051c9
push 2
call fcn.004051c9
call fcn.0040bcef
call fcn.0040f0b6
int3
Function at 0x40155a
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x40159a
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.____Error_obtaining_snapshot_handle:__ld_n
call fcn.00401530
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32FirstW
sub esp, 8
test eax, eax
jne 0x4015d7
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [esp + 4], eax
mov dword [esp], str.____Error_enumerating_the_first_process:__ld_n
call fcn.00401530
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x238]
add eax, 0x24
mov dword [esp], eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x40160b
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x230]
jmp 0x40164f
lea eax, [ebp - 0x238]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.KERNEL32.dll_Process32NextW
sub esp, 8
test eax, eax
jne 0x4015d7
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], str.____Error_finding_process_by_name:__S_n
call fcn.00401530
mov eax, 0
leave
ret
Function at 0x40176a
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4017c6
mov dword [esp], str.Error_opening_filepath
call fcn.00401530
lea eax, [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
call eax
sub esp, 8
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x405040
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
sub esp, 0x14
mov dword [ebp - 0x10], 0x405040
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40183b
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [esp], str.Invalid_DOS_file
call fcn.00401530
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov ecx, eax
mov ebx, eax
sar ebx, 0x1f
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp ebx, edx
jl 0x401880
cmp ebx, edx
jg 0x40185a
cmp ecx, eax
jb 0x401880
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [esp], 0x4040c7
call sub.msvcrt.dll_printf
mov eax, 0
jmp 0x401940
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x3c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call eax
sub esp, 0x10
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x405040
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_ReadFile]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [ebp - 0x14], 0x405040
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40190f
mov dword [esp], 0x4040c7
call sub.msvcrt.dll_printf
mov eax, 0
jmp 0x401940
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 4]
cmp ax, 0x8664
jne 0x40192f
mov dword [esp], 0x404114
call sub.msvcrt.dll_printf
mov eax, 0
jmp 0x401940
mov dword [esp], 0x4040c7
call sub.msvcrt.dll_printf
mov eax, 0
mov ebx, dword [ebp - 4]
leave
ret