joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001dbd2
Capabilities:
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [0x1006ef44], 9
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
jl 0x1001dbf3
push str.ConnectToServer
call fcn.1001fbc0
pop ecx
lea esi, [ebx + 0x14]
test esi, esi
je 0x1001dcc0
cmp dword [ebp + 8], 0
je 0x1001dcc0
mov al, byte [esi]
test al, al
je 0x1001dcc0
and dword [ebx + 0x214], 0
movsx eax, al
push eax
call fcn.1000ccc8
pop ecx
push 2
pop edx
push esi
test eax, eax
je 0x1001dc43
xor eax, eax
lea edi, [ebx + 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov word [ebx + 4], dx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebx + 8], eax
jmp 0x1001dc84
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x1001dc5a
push esi
push str.Error:_gethostbyname_failed:__s.
jmp 0x1001dcae
xor eax, eax
lea edi, [ebx + 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebx + 8]
push eax
call fcn.1002f070
mov eax, dword [ebp - 8]
add esp, 0xc
mov ax, word [eax + 8]
mov word [ebx + 4], ax
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 2
push 2
mov word [ebx + 6], ax
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1001dcc3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.socket_failed_to_create_datagram_socket:__d_n
push 0xffffffffffffffff
push 0x400
push dword [ebp + 8]
call fcn.10006991
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001f592
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebx
push 0x64
mov ebx, 0x1006f5c0
push ebx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x1001d43f
push 0xffffffffffffffff
push str.localhost.unknown
push 0x64
push ebx
call fcn.10001f89
add esp, 0x10
pop ebx
ret
push esi
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x1001d4ed
cmp dword [esi + 4], 0
push edi
je 0x1001d4ad
mov eax, dword [esi + 4]
mov edi, dword [eax]
test edi, edi
je 0x1001d4ad
mov edx, edi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1001d466
sub edx, ecx
mov ecx, ebx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001d474
sub ecx, ebx
mov ebx, 0x1006f5c0
cmp edx, ecx
jbe 0x1001d4a7
push ecx
push edi
push ebx
call fcn.1002ce60
add esp, 0xc
test eax, eax
jne 0x1001d4a7
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push dword [eax]
push 0x64
push ebx
call fcn.10001f89
add esp, 0x10
add dword [esi + 4], 4
jne 0x1001d458
mov edx, dword [esi]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x1001d4b2
sub edx, ecx
mov ecx, ebx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001d4c0
sub ecx, edi
pop edi
cmp edx, ecx
jbe 0x1001d4ed
push ecx
push dword [esi]
push ebx
call fcn.1002ce60
add esp, 0xc
test eax, eax
jne 0x1001d4ed
push 0xffffffffffffffff
push dword [esi]
push 0x64
push ebx
call fcn.10001f89
add esp, 0x10
pop esi
pop ebx
ret
push 0x64
push 0x1006f5c0
mov edx, str.Clientname
mov byte [0x1006f5c0], 0
mov ecx, str.Config
call fcn.10021a06
cmp byte [0x1006f5c0], 0
pop ecx
pop ecx
je 0x1001d418
ret
Function at 0x1001f766
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x840
mov eax, dword [0x10069410]
xor eax, esp
mov dword [esp + 0x83c], eax
push ebx
push edi
xor ebx, ebx
lea eax, [esp + 0x41]
push 0x3ff
push ebx
push eax
mov byte [esp + 0x4c], bl
call fcn.1002d750
add esp, 0xc
mov edx, str.FileExport
mov ecx, str.Config
push ebx
call fcn.10021906
pop ecx
test eax, eax
jne 0x1001f7b7
xor eax, eax
jmp 0x1001f89e
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [esp + 0x40]
push 0x400
push eax
push str._SystemRoot__system32LogFiles
call edi
lea ecx, [esp + 0x40]
call fcn.1001f8b2
cmp eax, 0xffffffff
je 0x1001f7b0
test eax, eax
jne 0x1001f7f0
push ebx
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1001f7b0
push 0x400
lea eax, [esp + 0x44]
push eax
push str._SystemRoot__system32LogFilesSnare
call edi
lea ecx, [esp + 0x40]
call fcn.1001f8b2
cmp eax, 0xffffffff
je 0x1001f7b0
test eax, eax
jne 0x1001f823
push ebx
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x1001f7b0
lea eax, [esp + 0x10]
push eax
call fcn.100022f2
pop ecx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.1000299c
push dword [esp + 0x30]
mov eax, dword [esp + 0x38]
mov ebx, 0x400
inc eax
push eax
mov eax, dword [esp + 0x40]
add eax, 0x76c
push eax
push str._SystemRoot__system32LogFilesSnare_
push str._s_04d_02d_02d.log
push 0xffffffffffffffff
lea eax, [esp + 0x460]
push ebx
push eax
call fcn.10006991
add esp, 0x28
lea eax, [esp + 0x40]
push ebx
push eax
lea eax, [esp + 0x448]
push eax
call edi
push 0x10053f7c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.1000c56c
mov eax, dword [esp + 0x18]
add esp, 0xc
mov ecx, dword [esp + 0x844]
pop edi
pop ebx
xor ecx, esp
call fcn.1000adad
mov esp, ebp
pop ebp
ret

Function at 0x1001f90f
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push ecx
push 0x1001f967
push eax
push eax
call fcn.1000443d
mov ecx, dword [0x1006ef44]
add esp, 0x18
mov dword [0x1006eeec], eax
cmp ecx, 5
jl 0x1001f94b
push eax
push str.DEBUG:_Starting_web_thread...
call fcn.1001fbc0
mov eax, dword [0x1006eeec]
pop ecx
pop ecx
mov ecx, dword [0x1006ef44]
test eax, eax
jne 0x1001f963
cmp ecx, 5
jl 0x1001f95f
push str.Error_in_web_thread_creation
call fcn.1001fbc0
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
inc eax
ret
Function at 0x10020c97
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x10069410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x67]
push 0x63
push ebx
push eax
mov edi, ecx
mov byte [ebp - 0x68], bl
call fcn.1002d750
add esp, 0xc
lea eax, [ebp - 0x6c]
mov esi, 0xf003f
push eax
push esi
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceConfig_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10020d08
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x6c]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceConfig_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x10020d08
push 2
pop eax
jmp 0x10020df0
push 0xffffffffffffffff
lea eax, [edi + 3]
push eax
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.10001f89
lea ecx, [ebp - 0x68]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020d22
sub ecx, edx
lea eax, [ebp - 0x68]
push ecx
push eax
push 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.Clientname
push dword [ebp - 0x6c]
call ebx
xor esi, esi
test eax, eax
push 4
pop ecx
cmovne esi, ecx
lea eax, [edi + 0x468]
xor edx, edx
inc edx
cmp dword [eax], edx
jbe 0x10020d5c
mov dword [eax], edx
push ecx
push eax
push ecx
push 0
push str.Audit
push dword [ebp - 0x6c]
call ebx
test eax, eax
je 0x10020d72
add esi, 8
xor ecx, ecx
lea eax, [edi + 0x46c]
inc ecx
cmp dword [eax], ecx
jbe 0x10020d81
mov dword [eax], ecx
push 4
push eax
push 4
push 0
push str.FileAudit
push dword [ebp - 0x6c]
call ebx
test eax, eax
je 0x10020d99
add esi, 0x10
lea eax, [edi + 0x470]
cmp dword [eax], 1
jbe 0x10020da7
and dword [eax], 0
push 4
push eax
push 4
push 0
push str.FileExport
push dword [ebp - 0x6c]
call ebx
test eax, eax
je 0x10020dbf
add esi, 0x10
lea eax, [edi + 0x474]
cmp dword [eax], 1
jbe 0x10020dcd
and dword [eax], 0
push 4
push eax
push 4
push 0
push str.CritAudit
push dword [ebp - 0x6c]
call ebx
test eax, eax
je 0x10020de5
add esi, 0x20
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000adad
mov esp, ebp
pop ebp
ret
Function at 0x10020e01
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x10069410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x803]
push 0x7ff
push ebx
push eax
mov edi, ecx
mov byte [ebp - 0x804], bl
call fcn.1002d750
add esp, 0xc
lea eax, [ebp - 0x808]
mov esi, 0xf003f
push eax
push esi
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceNetwork_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10020e87
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x808]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceNetwork_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x10020e87
xor eax, eax
inc eax
jmp 0x10020f88
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x804]
push 0x800
push eax
call fcn.10001f89
lea ecx, [ebp - 0x804]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10020ea7
sub ecx, edx
lea eax, [ebp - 0x804]
push ecx
push eax
xor eax, eax
inc eax
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.Destination
push dword [ebp - 0x808]
call ebx
xor esi, esi
lea edx, [edi + 0x80c]
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [edx], eax
mov eax, 0xffff
sbb ecx, ecx
neg ecx
cmp eax, dword [edx]
sbb eax, eax
neg eax
or ecx, eax
je 0x10020efb
mov dword [edx], 0x1811
push 4
push edx
push 4
push 0
push str.DestPort
push dword [ebp - 0x808]
call ebx
test eax, eax
je 0x10020f14
inc esi
xor ecx, ecx
lea eax, [edi + 0x808]
inc ecx
cmp dword [eax], ecx
jbe 0x10020f23
mov dword [eax], ecx
push 4
push eax
push 4
push 0
push str.Syslog
push dword [ebp - 0x808]
call ebx
test eax, eax
je 0x10020f3c
inc esi
push 4
lea eax, [edi + 0x800]
push eax
push 4
push 0
push str.SyslogDest
push dword [ebp - 0x808]
call ebx
test eax, eax
je 0x10020f5b
inc esi
push 4
lea eax, [edi + 0x804]
push eax
push 4
push 0
push str.SyslogDynamicCritic
push dword [ebp - 0x808]
call ebx
test eax, eax
je 0x10020f7a
inc esi
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000adad
mov esp, ebp
pop ebp
ret
Function at 0x10021872
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10069410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, str.Objective
lea edi, [ebp - 0x18]
xor eax, eax
xor ebx, ebx
push ecx
push str.Objective_d
movsd dword es:[edi], dword [esi]
push 0xffffffffffffffff
push 0x14
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
call fcn.10006991
add esp, 0x14
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceObjective_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100218d5
xor eax, eax
inc eax
jmp 0x100218f5
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 2
pop ecx
push dword [ebp - 0x1c]
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000adad
mov esp, ebp
pop ebp
ret

Function at 0x100219a7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ecx, str.Status
mov ebx, edx
call fcn.10021abd
mov ecx, dword [ebp + 8]
mov edi, eax
xor edx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, dx
jne 0x100219c3
sub ecx, esi
sar ecx, 1
test edi, edi
jne 0x100219db
xor eax, eax
inc eax
jmp 0x10021a01
lea eax, [ecx*2 + 2]
push eax
push dword [ebp + 8]
push 1
push edx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10021a4e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov ecx, str.Status
mov edi, edx
call fcn.10021abd
mov esi, eax
test esi, esi
je 0x10021ab7
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
mov ebx, 0x400
push eax
push 0
push edi
push esi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 1
je 0x10021aaf
push 0xffffffffffffffff
push 0x100536c8
push ebx
push dword [ebp + 8]
call fcn.10012455
add esp, 0x10
xor eax, eax
jmp 0x10021ab6
xor eax, eax
test edi, edi
sete al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10021c3e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test ecx, ecx
je 0x10021c8b
mov edx, ecx
push esi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10021c48
sub edx, esi
pop esi
cmp edx, 3
jb 0x10021c8b
mov al, byte [ecx]
cmp al, 0x61
jl 0x10021c61
cmp al, 0x7a
jle 0x10021c69
cmp al, 0x41
jl 0x10021c8b
cmp al, 0x5a
jg 0x10021c8b
cmp byte [ecx + 1], 0x3a
jne 0x10021c8b
cmp byte [ecx + 2], 0x5c
jne 0x10021c8b
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10021c8b
test al, 0x10
push 0
pop eax
setne al
inc eax
ret
xor eax, eax
ret
Function at 0x1002702f
Capabilities:
List user accounts for group
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10069410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x214], edx
push 0xfe
lea eax, [ebp - 0x207]
mov dword [ebp - 0x210], ebx
mov esi, ecx
mov dword [ebp - 0x218], ebx
push ebx
push eax
mov dword [ebp - 0x21c], esi
mov byte [ebp - 0x208], bl
call fcn.1002d750
add esp, 0xc
mov byte [ebp - 0x108], bl
lea eax, [ebp - 0x107]
push 0xff
push ebx
push eax
call fcn.1002d750
add esp, 0xc
inc ebx
cmp dword [0x1006ef44], 5
jl 0x100270ac
push str.ShowThisLocalGroupMembers
call fcn.1001fbc0
pop ecx
xor ecx, ecx
lea eax, [ebp - 0x218]
push ecx
push eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x20c], ecx
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
push 3
push esi
push ecx
call dword [sym.imp.NETAPI32.dll_NetLocalGroupGetMembers]
cmp dword [0x1006ef44], 5
mov esi, eax
mov edi, dword [ebp - 0x20c]
mov dword [ebp - 0x220], edi
jl 0x100270f8
push str.grabbed_list_of_users__sending_data
call fcn.1001fbc0
pop ecx
test esi, esi
je 0x10027135
cmp esi, 5
je 0x1002712e
cmp esi, 0xea
je 0x10027127
cmp esi, 0x560
je 0x10027120
cmp esi, 0x92f
jne 0x10027140
push str.NERR_InvalidComputer
jmp 0x1002713a
push str.ERROR_NO_SUCH_ALIAS
jmp 0x1002713a
push str.ERROR_MORE_DATA
jmp 0x1002713a
push str.ERROR_ACCESS_DENIED
jmp 0x1002713a
push str.NERR_Success
call fcn.1001fbc0
pop ecx
cmp dword [ebp - 0x210], 0
je 0x100271e0
mov edi, dword [ebp - 0x214]
xor ecx, ecx
lea eax, [ebp - 0x208]
push ecx
push ecx
push 0xfe
push eax
mov eax, dword [ebp - 0x20c]
push 0xffffffffffffffff
push dword [eax]
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x108]
test ebx, ebx
jne 0x1002718d
push 0x1005df7c
jmp 0x10027194
xor ebx, ebx
push 0x10052e0c
push 0xffffffffffffffff
push 0x100
push eax
call fcn.10006991
lea ecx, [ebp - 0x108]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100271ad
push 0
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
add dword [ebp - 0x20c], 4
dec dword [ebp - 0x210]
jne 0x10027153
mov edi, dword [ebp - 0x220]
test edi, edi
je 0x100271eb
push edi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp esi, 0xea
mov esi, dword [ebp - 0x21c]
je 0x100270ac
cmp dword [0x1006ef44], 5
jl 0x10027211
push str.finished_ShowThisLocalGroupMembers
call fcn.1001fbc0
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000adad
mov esp, ebp
pop ebp
ret
Function at 0x10027f98
Capabilities:
List user accounts for group
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10069410]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
xor eax, eax
mov esi, edx
push edi
push 0xfe
push eax
mov dword [ebp - 0x210], eax
mov ebx, ecx
mov dword [ebp - 0x21c], eax
mov byte [ebp - 0x20c], al
lea eax, [ebp - 0x20b]
push eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x218], ebx
call fcn.1002d750
add esp, 0xc
mov byte [ebp - 0x10c], 0
lea eax, [ebp - 0x10b]
push 0xff
push 0
push eax
call fcn.1002d750
xor edi, edi
add esp, 0xc
inc edi
cmp dword [0x1006ef44], 5
jl 0x1002801b
push str.ShowThisDomainGroupMembersNT
call fcn.1001fbc0
pop ecx
push 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push eax
push 0
push ebx
push esi
call dword [sym.imp.NETAPI32.dll_NetGroupGetUsers]
cmp dword [ebp - 0x210], 0
mov ebx, eax
mov ecx, dword [ebp - 0x214]
mov esi, ecx
je 0x100280e0
xor edx, edx
lea eax, [ebp - 0x20c]
push edx
push edx
push 0xfe
push eax
push 0xffffffffffffffff
push dword [ecx]
push edx
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x10c]
test edi, edi
jne 0x10028089
push 0x1005df7c
jmp 0x10028090
xor edi, edi
push 0x10052e0c
push 0xffffffffffffffff
push 0x100
push eax
call fcn.10006991
lea ecx, [ebp - 0x10c]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100280a9
push 0
sub ecx, edx
lea eax, [ebp - 0x10c]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x214]
add ecx, 4
dec dword [ebp - 0x210]
mov dword [ebp - 0x214], ecx
jne 0x10028055
test esi, esi
je 0x100280eb
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov esi, dword [ebp - 0x220]
cmp ebx, 0xea
mov ebx, dword [ebp - 0x218]
je 0x1002801b
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000adad
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x10069410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x3ff
lea eax, [ebp - 0x403]
xor ebx, ebx
mov edi, ecx
push esi
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.1002d750
push esi
lea eax, [ebp - 0x803]
mov byte [ebp - 0x804], bl
push ebx
push eax
call fcn.1002d750
lea eax, [ebp - 0x804]
xor edx, edx
push eax
lea ecx, [ebp - 0x404]
call fcn.100281ab
lea ecx, [ebp - 0x404]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002842d
mov esi, dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp - 0x404]
push ebx
sub ecx, edx
push ecx
push eax
push edi
call esi
push ebx
push 1
push 0x10053334
push edi
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.1000adad
mov esp, ebp
pop ebp
ret
Function at 0x10028555
Capabilities:
Make an http request with a cookie
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x10069410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3f
lea eax, [ebp - 0x47]
mov byte [ebp - 0x48], 0
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.1002d750
add esp, 0xc
push 0xffffffffffffffff
cmp esi, 1
jne 0x10028591
push str.text_html
jmp 0x100285ae
cmp esi, 2
jne 0x1002859d
push str.image_gif
jmp 0x100285ae
cmp esi, 3
jne 0x100285a9
push str.text_javascript
jmp 0x100285ae
push str.text_plain
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.10001f89
add esp, 0x10
cmp dword [0x1006ef44], 5
jl 0x100285d5
lea eax, [ebp - 0x48]
push eax
push str.DisplayHTMLHeader:__s
call fcn.1001fbc0
pop ecx
pop ecx
lea eax, [ebp - 0x48]
mov ebx, 0x200
push eax
push str.HTTP_1.0_200_OK_r_nServer:_SNARE_1.0_r_nMIME_version:_1.0_r_nContent_type:__s_r_n
push 0xffffffffffffffff
lea eax, [ebp - 0x248]
push ebx
push eax
call fcn.10006991
add esp, 0x14
cmp esi, 1
jne 0x10028624
mov esi, 0x100700a0
mov ecx, esi
call fcn.10028116
push 0x384
push esi
lea eax, [ebp - 0x248]
push eax
push str._sSet_Cookie:_chtok_s__Path___Max_Age:__d__HttpOnly_r_n
push 0xffffffffffffffff
push ebx
push eax
call fcn.10006991
add esp, 0x1c
push 0xffffffffffffffff
push 0x10060ccc
lea eax, [ebp - 0x248]
push ebx
push eax
call fcn.100014e3
lea ecx, [ebp - 0x248]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10028644
push 0
sub ecx, edx
lea eax, [ebp - 0x248]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000adad
mov esp, ebp
pop ebp
ret
Function at 0x1002866f
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
xor eax, eax
and dword [ebp - 4], 0
cmp dword [0x1006ef44], 5
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0xc], eax
push edi
mov esi, edx
mov dword [ebp - 0x14], ebx
jl 0x100286a3
push str.GetUserSid
call fcn.1001fbc0
mov eax, dword [ebp - 0xc]
pop ecx
test ebx, ebx
je 0x100287d0
test esi, esi
je 0x100287d0
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
and dword [ebp - 8], 0
push ecx
lea ecx, [ebp - 4]
push ecx
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x100286ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100287d0
push dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x100287d0
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x100287cd
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
je 0x100287c3
cmp dword [ebp + 0xc], 0
je 0x10028790
cmp dword [ebp + 0x10], 0
je 0x10028790
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1002876b
test dl, dl
je 0x10028767
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1002876b
add eax, 2
add ecx, 2
test dl, dl
jne 0x1002874b
xor eax, eax
jmp 0x10028770
sbb eax, eax
or eax, 1
test eax, eax
je 0x10028790
cmp dword [ebp - 0xc], 0
jne 0x10028790
push ebx
call edi
push dword [ebp - 0x10]
call edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x100286b9
push dword [ebp + 8]
mov edx, esi
mov ecx, ebx
call fcn.10021e17
pop ecx
test eax, eax
jne 0x100287b6
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push str.Unknown
push dword [eax]
push esi
call fcn.10001f89
add esp, 0x10
push ebx
call edi
push dword [ebp - 0x10]
call edi
xor eax, eax
inc eax
jmp 0x100287e7
push ebx
call edi
push dword [ebp - 0x10]
call edi
jmp 0x100287e5
push ebx
call edi
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push str.Unknown
push dword [eax]
push esi
call fcn.10001f89
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret