joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e265
Capabilities:
Accept command line arguments
Read file via mapping
Set environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 1
call fcn.0040ed97
xor ebx, ebx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov ecx, 0x424cf8
call fcn.0040f498
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp esi, ebx
je 0x40e2f5
push esi
call fcn.0040c16a
cmp byte [0x41c211], bl
je 0x40e2ed
push str.winrarsfxmappingfile.tmp
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40e2e2
push 0x20000
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x40e2db
push esi
push str.sfxcmd
call edi
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40e2f5
push esi
push str.sfxcmd
call edi
push 0x400
mov esi, 0x41b8e0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push str.sfxname
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
push 0x64
push edi
mov dword [0x415e74], edi
mov dword [0x415e78], edi
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push dword [0x415e78]
mov dword [0x41b8dc], eax
call dword [sym.imp.USER32.dll_LoadBitmapW]
lea ecx, [ebp - 8]
mov dword [0x41b8d8], eax
call fcn.004128c7
push esi
mov ecx, 0x415e88
call 0x40a39f
lea ecx, [ebp - 0x40]
call fcn.00406a93
lea ecx, [ebp - 0x24]
call fcn.00406a93
push 0x64
call fcn.0040b7de
push 0x64
mov dword [ebp - 0x28], eax
call fcn.0040b7de
push ebx
push 0x40da7c
mov dword [ebp - 0xc], eax
push ebx
lea eax, [ebp - 0x40]
mov dword [0x41b0d4], eax
push str.STARTDLG
lea eax, [ebp - 0x24]
push edi
mov dword [0x41b0d0], eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea ecx, [ebp - 0x24]
mov dword [0x41b0d0], ebx
mov dword [0x41b0d4], ebx
call fcn.00406aa9
lea ecx, [ebp - 0x40]
call fcn.00406aa9
lea ecx, [ebp - 8]
call fcn.00412919
cmp byte [0x41c208], bl
je 0x40e3d0
call fcn.0040c422
push 0x100
push ebx
push 0x41c0f0
call fcn.0040ad4b
cmp dword [0x41d324], ebx
jbe 0x40e3f3
push dword [0x41d318]
call fcn.0040acc7
push dword [0x41b8dc]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
mov eax, dword [0x41b8d8]
cmp eax, ebx
je 0x40e40d
push eax
call esi
cmp dword [0x415e7c], ebx
jne 0x40e42c
cmp byte [0x41c1f2], bl
je 0x40e42c
push 0xff
mov ecx, 0x415e7c
call fcn.0040344d
mov eax, dword [0x41d32c]
mov byte [0x41c1f2], 1
cmp eax, ebx
je 0x40e442
push eax
call fcn.0040c3e3
call dword [sym.imp.ole32.dll_OleUninitialize]
push dword [0x415e7c]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x412857
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8
Function at 0x401546
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x114]
sub esp, 0x134
mov dword [esp], eax
lea ebx, [ebp - 0x10c]
call dword [sym.imp.USER32.dll_GetCursorPos]
push ecx
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x4015c3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.00401546
mov dword [esp], 0x401698
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x4020fa
sub eax, 0x401698
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401662
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.00401421
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004014b9
lea eax, [ebx + 0x1b600]
mov dword [esp + 8], esi
lea ecx, [ebx + 1]
cdq
idiv ecx
mov ecx, 0x40300c
shl ebx, cl
add ebx, ecx
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00401dfd
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x409120
Capabilities:
Encode data using xor

Disassembly:
add eax, 0x5050502
inc ebx
add eax, dword [0x5050505]
add eax, 0xecab5504
push ebp
stosd dword es:[edi], eax
in al, dx
push ebp
stosd dword es:[edi], eax
in al, dx
sbb eax, 0xd
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp + 3]
push esi
push edi
push eax
lea edx, [ebp - 0x2c]
jns 0x409112
call fcn.00406b10
cdq
inc ebp
invalid

Function at 0x40a3d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
adc eax, 0x40770845
adc al, 0x85
sal byte [ebx + esi - 0x75], 0x4d
or al, 0x51
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a40a
push 0xffffffffffffff8b
adc dword [ebx + 0x620040c0], esp
salc
test dword [edi], edx
jne 0x40a3fe
or ebx, dword [ebp - 0x3e]
or bl, dh
call esi
add eax, 0xafc80
pop esi
pop ebp
ret 0xc371
xor edi, ecx
test al, 0xc2
or byte [eax], al
mov eax, 0x454e3b
pop ebp
ret 8
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x733d23d3
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x1a40600
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x402c00
pop dword [ebp - 0x24]
mov eax, 0x402c00
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xc6332f40
add dword [ebp - 0x34], 0x881f160b
mov dword [ebp - 0x30], 0x58a81404
sub dword [ebp - 0x30], 0x2674c7bf
mov dword [ebp - 0x2c], 0xc0b01d20
sub dword [ebp - 0x2c], 0x7463d8f2
mov dword [ebp - 0x28], 0xb69e7769
add dword [ebp - 0x28], 0x49618897
lea eax, [ebp - 0x34]
push eax
mov eax, 0xd948b295
add eax, 0x26f7bdcf
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xa9241723
add dword [ebp - 0x34], 0xcb4e5233
mov dword [ebp - 0x30], 0x1a814493
add dword [ebp - 0x30], 0x26eb1ce2
mov dword [ebp - 0x2c], 0xba1a4912
add dword [ebp - 0x2c], 0xa955235a
mov dword [ebp - 0x28], 0x4e24e011
add dword [ebp - 0x28], 0xb1db1fef
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x3ae12
push 0
call eax
mov ecx, 0x58c3
xor esi, esi
add esi, eax
mov edx, 0x7d9577bd
sub edx, 0x7d5477bd
add edx, dword [ebp - 0x24]
mov edi, 0x6db7e966
mov ebx, dword [edx]
xor dword [ebp - 0x1c], 0x5cccdc48
xor ebx, edi
xor dword [ebp - 8], edi
mov dword [esi], ebx
xor dword [ebp - 0x20], 0xc4d94aa1
add esi, 0xc62d3b9b
add esi, 0x39d2c469
add edx, 0xaca313fa
sub edx, 0xaca313f6
loop 0x402d0e
add eax, 0x266a846b
add eax, 0xd996d174
mov ebx, eax
add eax, 0xc6deff3c
add eax, 0x392100c9
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x402ff0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4226b8
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.0040bfde
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.0040b3d9
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.0040b0df
mov esp, ebp
pop ebp
ret
Function at 0x407190
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.0040cb10
mov esi, eax
add esp, 8
test esi, esi
je 0x4071c7
add esi, 7
jmp 0x4071c9
mov esi, edi
push 0x429f88
push esi
call fcn.0040cb10
add esp, 8
test eax, eax
je 0x407298
push 0x429f88
push esi
call fcn.0040cb10
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.0040c837
push 0x429f88
push esi
call fcn.0040cb10
push eax
lea eax, [ebp - 0x1d0]
push 0x104
push eax
call fcn.0040b139
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.00406a90
add esp, 0x10
test al, al
je 0x407298
push ecx
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x5d0]
call fcn.004069d0
add esp, 8
test al, al
je 0x407298
lea eax, [ebp - 0xc8]
push eax
call fcn.0040cdf8
add esp, 4
mov ebx, eax
push ebx
call fcn.0040a52f
add esp, 4
mov esi, eax
push 1
push 0
push ebx
push esi
lea edx, [ebp - 0x1d0]
lea ecx, [ebp - 0x48]
call fcn.00406a90
add esp, 0x10
test al, al
jne 0x4072ab
push esi
call fcn.0040b1f1
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b0df
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 0x40728f
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.0040b1f1
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
mov al, 1
pop ebx
call fcn.0040b0df
mov esp, ebp
pop ebp
ret
Function at 0x408930
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.0040fde0
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 0x408db0
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.0040b139
push 0x42a244
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0040b18e
push esi
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0040b18e
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 0x408ec8
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
je 0x408ec8
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 0x408eae
push dword [ebp - 0x34c]
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0040b139
push 0x429924
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0040b18e
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0040b18e
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 0x408e50
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b0df
mov esp, ebp
pop ebp
ret

Function at 0x409050
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 0x40912e
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x130]
push eax
push edi
call ebx
cmp eax, 1
jne 0x40912e
jmp 0x4090c0
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x10c]
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4090f0
test dl, dl
je 0x4090ec
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4090f0
add ecx, 2
add eax, 2
test dl, dl
jne 0x4090d0
xor eax, eax
jmp 0x4090f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40911f
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 0x4090c0
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b0df
mov esp, ebp
pop ebp
ret
Function at 0x409150
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 0x409188
sub eax, edx
inc eax
push eax
call fcn.0040a52f
mov edi, eax
mov eax, esi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4091a2
sub eax, edx
push esi
inc eax
push eax
push edi
call fcn.0040b139
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x4092a1
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x4092a1
mov ecx, edi
xor edx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4091e8
sub ecx, esi
je 0x40921d
mov al, byte [edx + edi]
cmp al, 0x41
jl 0x409203
cmp al, 0x5a
jg 0x409203
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 0x409210
sub eax, esi
cmp edx, eax
jb 0x4091f3
lea ecx, [esp + 0x34]
xor edx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409226
sub ecx, esi
je 0x40925d
mov al, byte [esp + edx + 0x34]
cmp al, 0x41
jl 0x409243
cmp al, 0x5a
jg 0x409243
add al, 0x20
mov byte [esp + edx + 0x34], al
lea ecx, [esp + 0x34]
inc edx
lea esi, [ecx + 1]
jmp 0x409250
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409250
sub ecx, esi
cmp edx, ecx
jb 0x409231
mov ecx, edi
lea eax, [esp + 0x34]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409283
test dl, dl
je 0x40927f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409283
add eax, 2
add ecx, 2
test dl, dl
jne 0x409263
xor eax, eax
jmp 0x409288
sbb eax, eax
or eax, 1
test eax, eax
je 0x4092c8
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x4091e1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040b1f1
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.0040b0df
mov esp, ebp
pop ebp
ret
push edi
call fcn.0040b1f1
mov ecx, dword [esp + 0x140]
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040b0df
mov esp, ebp
pop ebp
ret
Function at 0x4092f0
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 0x409323
sub eax, edx
inc eax
push eax
call fcn.0040a52f
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 0x409340
sub eax, edx
push esi
inc eax
push eax
push edi
call fcn.0040b139
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x409457
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x409457
mov ecx, edi
xor edx, edx
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409390
sub ecx, esi
je 0x4093c3
jmp 0x4093a0
mov al, byte [edx + edi]
cmp al, 0x41
jl 0x4093b0
cmp al, 0x5a
jg 0x4093b0
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 0x4093b6
sub eax, esi
cmp edx, eax
jb 0x4093a0
lea ecx, [ebp - 0x10c]
xor edx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4093d0
sub ecx, esi
je 0x40940f
jmp 0x4093e0
mov al, byte [ebp + edx - 0x10c]
cmp al, 0x41
jl 0x4093f8
cmp al, 0x5a
jg 0x4093f8
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 0x409402
sub ecx, esi
cmp edx, ecx
jb 0x4093e0
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x409437
test dl, dl
je 0x409433
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x409437
add eax, 2
add ecx, 2
test dl, dl
jne 0x409417
xor eax, eax
jmp 0x40943c
sbb eax, eax
or eax, 1
test eax, eax
je 0x40947b
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x409383
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040b1f1
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b0df
mov esp, ebp
pop ebp
ret
push edi
call fcn.0040b1f1
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.0040b0df
mov esp, ebp
pop ebp
ret