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

Disassembly:
mov eax, 0x436455
call fcn.004336f0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [edi]
lea ecx, [esi + 0x10]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [edi + 0x10]
push eax
call fcn.00402978
and dword [ebp - 4], 0
lea eax, [edi + 0x1c]
push eax
lea ecx, [esi + 0x1c]
call fcn.00402978
mov eax, dword [edi + 0x28]
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
lea eax, [edi + 0x30]
push eax
mov byte [ebp - 4], 1
call fcn.00402978
lea eax, [edi + 0x3c]
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.00402978
mov al, byte [edi + 0x48]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x48], al
mov al, byte [edi + 0x49]
mov byte [esi + 0x49], al
mov al, byte [edi + 0x4a]
mov byte [esi + 0x4a], al
mov al, byte [edi + 0x4b]
mov byte [esi + 0x4b], al
mov al, byte [edi + 0x4c]
mov byte [esi + 0x4c], al
mov al, byte [edi + 0x4d]
mov byte [esi + 0x4d], al
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
mov al, byte [edi + 0x6c]
mov byte [esi + 0x6c], al
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x427d47
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x436a43
call fcn.004336f0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43a888
mov dword [esi + 4], 0x43a874
mov dword [esi + 8], 0x438e48
mov dword [esi + 0xc], 0x43a858
mov dword [esi + 0x10], 0x43a844
mov dword [esi + 0x14], 0x43a834
mov dword [esi + 0x18], 0x438e38
mov dword [esi + 0x1c], 0x438e28
mov dword [esi + 0x20], 0x43a82c
mov dword [esi + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
or dword [esi + 0x38], 0xffffffff
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
call fcn.004028a5
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.004028a5
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
or dword [esi + 0x9c], 0xffffffff
mov byte [ebp - 4], 7
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], ebx
mov dword [esi + 0xa0], ebx
mov byte [esi + 0xa4], bl
mov byte [esi + 0xa5], bl
mov byte [esi + 0xa6], bl
mov byte [esi + 0xa7], bl
mov byte [esi + 0xa8], bl
mov byte [esi + 0xa9], bl
mov byte [esi + 0xaa], bl
mov dword [esi + 0xac], ebx
mov dword [esi], 0x43a800
mov dword [esi + 4], 0x43a7ec
mov dword [esi + 8], 0x43a7d4
mov dword [esi + 0xc], 0x43a7b8
mov dword [esi + 0x10], 0x43a7a4
mov dword [esi + 0x14], 0x43a794
mov dword [esi + 0x18], 0x43a784
mov dword [esi + 0x1c], 0x43a774
mov dword [esi + 0x20], 0x43a76c
call fcn.0040d4aa
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x28], al
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
mov eax, 0x4371da
call fcn.004336f0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43c6f0
mov dword [esi + 4], 0x43c6d8
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004028a5
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov byte [esi + 0x4d], bl
mov dword [esi], 0x43c6bc
mov dword [esi + 4], 0x43c6a4
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42f8ab
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4371da
call fcn.004336f0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x43c6f0
mov dword [esi + 4], 0x43c6d8
mov dword [esi + 8], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004028a5
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x24], 1
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0x4c], bl
mov byte [esi + 0x4d], bl
mov dword [esi], 0x43c6bc
mov dword [esi + 4], 0x43c6a4
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x449000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x449175
cmp dword [esp + 0x54], 0x40
jne 0x449175
cmp word [esp + 0x10], 0x5a4d
jne 0x449175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x449175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x44f960
push esi
call ebx
test eax, eax
je 0x449175
cmp dword [esp + 0x54], 0xf8
jne 0x449175
cmp dword [0x44f960], 0x4550
jne 0x449175
mov eax, dword [0x44f976]
test ah, 0x20
jne 0x449175
mov edx, dword [0x44fa80]
xor eax, eax
mov ax, word [0x44f966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x44fa58], eax
je 0x449175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x44fa6c], eax
xor eax, eax
mov ax, word [0x44f966]
mov edx, dword [0x44fa58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x449175
cmp dword [esp + 0x54], edi
jne 0x449175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x44fa80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x44f9b4]
cmp edx, eax
ja 0x449175
mov edi, dword [0x44fa58]
mov ecx, dword [0x44f988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x449175
xor eax, eax
push 2
mov ax, word [0x44f966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x449175
cmp dword [edi - 0x20], ebx
ja 0x449175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x44b769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x44f190
cmp edx, dword [eax]
je 0x44b78b
add eax, 8
inc ecx
cmp eax, 0x44f220
jl 0x44b77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x44f190]
jne 0x44b8b9
mov eax, dword [0x44fbb0]
cmp eax, 1
je 0x44b893
test eax, eax
jne 0x44b7bc
cmp dword [0x44f0e4], 1
je 0x44b893
cmp edx, 0xfc
je 0x44b8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44b7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0044c670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0044c490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44b836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0044c490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x44e45c
push edi
call fcn.0044cf00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0044c670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0044c680
lea eax, [ebp - 0xa0]
push 0x44e43c
push eax
call fcn.0044c680
push dword [esi + 0x44f194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0044c680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0044ce75
add esp, 0x2c
pop edi
jmp 0x44b8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x44f194]
push 0
push eax
push dword [esi]
call fcn.0044c490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x73ca312e
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x25f71f59
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4225a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x42e6dc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x42e6dc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x403144
cmp byte [ebx + 0x45], 0
je 0x403144
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x403050
xor al, al
jmp 0x403146
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x403090
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4030d1
dec eax
je 0x4030d5
sub eax, 2
je 0x40312b
xor bl, bl
jmp 0x40312d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x40310c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0040be8e
add esp, 0x10
cmp esi, eax
jne 0x4030cd
cmp byte [ebx + 0x45], 0
je 0x40312b
test esi, esi
jne 0x403090
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00402c60
jmp 0x403090
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x403140
push dword [esp + 0x18]
call fcn.0040b289
add esp, 4
mov al, bl
jmp 0x403146
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040af8f
mov esp, ebp
pop ebp
ret
Function at 0x407020
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5dc
mov eax, dword [0x42e6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push str.http:__
push edi
mov dword [ebp - 0x5d4], edx
call fcn.0040c9c0
mov esi, eax
add esp, 8
test esi, esi
je 0x407057
add esi, 7
jmp 0x407059
mov esi, edi
push 0x429f50
push esi
call fcn.0040c9c0
add esp, 8
test eax, eax
je 0x407128
push 0x429f50
push esi
call fcn.0040c9c0
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.0040c6e7
push 0x429f50
push esi
call fcn.0040c9c0
push eax
lea eax, [ebp - 0x1d0]
push 0x104
push eax
call fcn.0040afe9
add esp, 0x2c
lea eax, [ebp - 0x5d0]
push 0
push 1
push 0x400
push eax
lea edx, [ebp - 0x1d0]
lea ecx, [ebp - 0x48]
call fcn.00406990
add esp, 0x10
test al, al
je 0x407128
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x5d0]
call fcn.004068d0
add esp, 8
test al, al
je 0x407128
lea eax, [ebp - 0xc8]
push eax
call fcn.0040cca8
add esp, 4
mov ebx, eax
push ebx
call fcn.0040a3df
add esp, 4
mov esi, eax
push 1
push 0
push ebx
push esi
lea edx, [ebp - 0x1d0]
lea ecx, [ebp - 0x48]
call fcn.00406990
add esp, 0x10
test al, al
jne 0x40713b
push esi
call fcn.0040b0a1
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af8f
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x5d4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40711f
push 0
lea eax, [ebp - 0x5d8]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0040b0a1
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
mov al, 1
pop ebx
call fcn.0040af8f
mov esp, ebp
pop ebp
ret
Function at 0x408800
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x42e6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40
lea eax, [ebp - 0x154]
push 0
push eax
mov dword [ebp - 0x158], 0x44
call fcn.0040fcd0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x128], ax
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x158]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 0
mov dword [ebp - 0x12c], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x408c60
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x42e6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
push edi
push eax
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x108]
push 0x100
push eax
mov esi, edx
call fcn.0040afe9
push 0x42a238
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0040b03e
push esi
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0040b03e
add esp, 0x24
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x350], eax
cmp eax, 0xffffffff
je 0x408d78
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
je 0x408d78
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ecx]
cmp byte [ebp - 0x31c], 0x2e
je 0x408d5e
push dword [ebp - 0x34c]
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0040afe9
push 0x429924
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0040b03e
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0040b03e
add esp, 0x24
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call edi
lea eax, [ebp - 0x348]
push eax
push dword [ebp - 0x350]
call ebx
call esi
cmp eax, 0x12
jne 0x408d00
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040af8f
mov esp, ebp
pop ebp
ret

Function at 0x408ef0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42e6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x408fce
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x130]
push eax
push edi
call ebx
cmp eax, 1
jne 0x408fce
jmp 0x408f60
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x10c]
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x408f90
test dl, dl
je 0x408f8c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x408f90
add ecx, 2
add eax, 2
test dl, dl
jne 0x408f70
xor eax, eax
jmp 0x408f95
sbb eax, eax
or eax, 1
test eax, eax
jne 0x408fbf
push dword [ebp - 0x128]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0xd
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [ebp - 0x130]
push eax
push edi
call ebx
cmp eax, 1
je 0x408f60
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040af8f
mov esp, ebp
pop ebp
ret
Function at 0x409000
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x42e6dc]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
push 2
mov esi, ecx
mov dword [esp + 0x18], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409038
sub eax, edx
inc eax
push eax
call fcn.0040a3df
mov edi, eax
mov eax, esi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409052
sub eax, edx
push esi
inc eax
push eax
push edi
call fcn.0040afe9
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x409151
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x409151
mov ecx, edi
xor edx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409098
sub ecx, esi
je 0x4090cd
mov al, byte [edx + edi]
cmp al, 0x41
jl 0x4090b3
cmp al, 0x5a
jg 0x4090b3
add al, 0x20
mov byte [edx + edi], al
mov eax, edi
inc edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4090c0
sub eax, esi
cmp edx, eax
jb 0x4090a3
lea ecx, [esp + 0x34]
xor edx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4090d6
sub ecx, esi
je 0x40910d
mov al, byte [esp + edx + 0x34]
cmp al, 0x41
jl 0x4090f3
cmp al, 0x5a
jg 0x4090f3
add al, 0x20
mov byte [esp + edx + 0x34], al
lea ecx, [esp + 0x34]
inc edx
lea esi, [ecx + 1]
jmp 0x409100
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409100
sub ecx, esi
cmp edx, ecx
jb 0x4090e1
mov ecx, edi
lea eax, [esp + 0x34]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409133
test dl, dl
je 0x40912f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409133
add eax, 2
add ecx, 2
test dl, dl
jne 0x409113
xor eax, eax
jmp 0x409138
sbb eax, eax
or eax, 1
test eax, eax
je 0x409178
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x409091
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040b0a1
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040af8f
mov esp, ebp
pop ebp
ret
push edi
call fcn.0040b0a1
mov ecx, dword [esp + 0x140]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040af8f
mov esp, ebp
pop ebp
ret
Function at 0x4091a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42e6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov esi, ecx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4091d3
sub eax, edx
inc eax
push eax
call fcn.0040a3df
mov edi, eax
mov eax, esi
add esp, 4
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4091f0
sub eax, edx
push esi
inc eax
push eax
push edi
call fcn.0040afe9
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x409307
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x409307
mov ecx, edi
xor edx, edx
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409240
sub ecx, esi
je 0x409273
jmp 0x409250
mov al, byte [edx + edi]
cmp al, 0x41
jl 0x409260
cmp al, 0x5a
jg 0x409260
add al, 0x20
mov byte [edx + edi], al
mov eax, edi
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409266
sub eax, esi
cmp edx, eax
jb 0x409250
lea ecx, [ebp - 0x10c]
xor edx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409280
sub ecx, esi
je 0x4092bf
jmp 0x409290
mov al, byte [ebp + edx - 0x10c]
cmp al, 0x41
jl 0x4092a8
cmp al, 0x5a
jg 0x4092a8
add al, 0x20
mov byte [ebp + edx - 0x10c], al
lea ecx, [ebp - 0x10c]
inc edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4092b2
sub ecx, esi
cmp edx, ecx
jb 0x409290
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4092e7
test dl, dl
je 0x4092e3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4092e7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4092c7
xor eax, eax
jmp 0x4092ec
sbb eax, eax
or eax, 1
test eax, eax
je 0x40932b
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x409233
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040b0a1
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040af8f
mov esp, ebp
pop ebp
ret
push edi
call fcn.0040b0a1
add esp, 4
push dword [ebp - 0x128]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040af8f
mov esp, ebp
pop ebp
ret