joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f68
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, 0x20006
push eax
push ebx
push 0
push str.SoftwareComet_SystemsDesktop
push 0x80000002
call edi
test eax, eax
jne 0x404099
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push str.Height
push dword [ebp - 4]
call esi
push str.Width
push dword [ebp - 4]
call esi
push 0x4069a4
push dword [ebp - 4]
call esi
push str.installed
push dword [ebp - 4]
call esi
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str.Library
push dword [ebp - 4]
call edi
test eax, eax
jne 0x403ff0
push str.Initialization
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Library
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.Menu
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push str.SoftwareComet_SystemsLibrary
push 0x80000002
call edi
test eax, eax
jne 0x404036
push str.links
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
mov esi, 0x80000002
push eax
push ebx
push 0
push str.SoftwareComet_Systems
push esi
call edi
test eax, eax
jne 0x40406e
push str.Uninstall
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push esi
call edi
test eax, eax
pop esi
jne 0x404099
push str.Links
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
leave
ret
Function at 0x40aa5b
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x41a004]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov esi, dword [ebp + 8]
push 0x4074dc
push 0x4074f8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa95
push 0x800
call eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.00409cb0
push esi
lea ecx, [esp + 0x24]
call fcn.0040921b
lea ecx, [esp + 0x20]
call fcn.004095c7
mov esi, eax
test esi, esi
jns 0x40aae9
lea ecx, [esp + 8]
call fcn.0040a9d0
test al, al
je 0x40ab33
cmp esi, 0x80040b00
jne 0x40ab33
lea ecx, [esp + 0x20]
call fcn.00409683
mov esi, eax
test esi, esi
js 0x40ab33
mov esi, 0x80040b02
jmp 0x40ab33
cmp dword [esp + 0x1c], 8
lea esi, [esp + 8]
jb 0x40aaf8
mov esi, dword [esp + 8]
push 0x406f80
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40ab2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40ab24
jle 0x40ab33
movzx esi, si
or esi, 0x80070000
jmp 0x40ab33
mov esi, 0x80004005
jmp 0x40ab33
push dword [ebp + 0x14]
push esi
call eax
mov esi, eax
lea ecx, [esp + 0x20]
call fcn.004092b7
lea ecx, [esp + 8]
call fcn.00409da9
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b187
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4141c7
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4141c5
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4141e3
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
ror byte [ebp - 0x73747ffc], 0xc7
add al, 1
add byte [eax], al
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
xbegin 0x8b4141e1
js 0x414207
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x414241
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x414228
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x414231
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x41423b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x41421d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4141a7
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x4141db
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4141c5
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x4141e3
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
ror byte [ebp - 0x73747ffc], 0xc7
add al, 1
add byte [eax], al
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
xbegin 0x8b4141e1
js 0x414207
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x414241
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x414228
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x414231
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x41423b
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x41421d
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x4141a7
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x10032e5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
xor ebx, ebx
push 0x10014f8
push 0x80000002
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1003384
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push ebx
mov edi, 0x10014dc
push edi
push dword [ebp - 8]
call esi
cmp eax, ebx
je 0x1003342
cmp eax, 0xea
jne 0x1003379
cmp dword [ebp - 0x10], 1
jne 0x1003379
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call sub.NETAPI32.dll_NetApiBufferAllocate
test eax, eax
jne 0x1003379
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x1003379
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret
Function at 0x1003e46
Capabilities:
Add user account

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x101d78c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], eax
push 0xe
lea eax, [ebp - 0x24]
push esi
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
lea eax, [ebp - 0x24]
xor edi, edi
push eax
mov word [ebp - 8], di
call dword [sym.imp.msvcrt.dll__wcslwr]
push 0x100157c
push esi
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x18
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x40], eax
xor eax, eax
lea ecx, [ebp - 0x44]
inc eax
push ecx
push eax
push ebx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 0x1001
mov dword [ebp - 0x28], edi
call sub.NETAPI32.dll_NetUserAdd
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100fd6e
leave
ret 8

Function at 0x1003ed0
Capabilities:
Delete user account

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0x100157c
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcscat]
pop ecx
pop ecx
pop ebp
jmp fcn.01015fce

Function at 0x10044c2
Capabilities:
Add user account group

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x101d78c]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call fcn.0100f271
xor edi, edi
cmp dword [0x1020300], edi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], edi
je 0x1004564
mov edi, dword [sym.imp.msvcrt.dll_wcscmp]
mov esi, 0x1020300
push ebx
mov ebx, esi
push str._ADD
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x1004557
push 0x101d8cc
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
je 0x1004557
push dword [esi]
call fcn.01010111
test eax, eax
mov dword [ebp - 0x21c], eax
jne 0x100453c
push 0xdb1
call fcn.010108fa
push str._COMMENT
push dword [esi]
call edi
test eax, eax
pop ecx
pop ecx
jne 0x1004557
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x214], eax
add ebx, 4
cmp dword [ebx], 0
mov esi, ebx
jne 0x1004503
xor edi, edi
pop ebx
push 1
push edi
push edi
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0100f0c4
cmp eax, edi
je 0x1004583
push eax
call fcn.010108fa
push edi
lea eax, [ebp - 0x218]
push eax
push 1
lea eax, [ebp - 0x210]
push eax
call sub.NETAPI32.dll_NetGroupAdd
mov esi, eax
cmp esi, edi
je 0x10045bb
cmp esi, 0x35
jne 0x10045b5
lea eax, [ebp - 0x210]
push eax
push 0xe81
call fcn.010107ca
push esi
call fcn.010108fa
call fcn.01010868
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100fd6e
leave
ret 4
Function at 0x10046ee
Capabilities:
Delete user account group

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101d78c]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0100f271
push 1
push 0
push 0
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0100f0c4
test eax, eax
je 0x100472b
push eax
call fcn.010108fa
push esi
lea eax, [ebp - 0x210]
push eax
call sub.NETAPI32.dll_NetGroupDel
mov esi, eax
test esi, esi
je 0x100475a
cmp esi, 0x35
jne 0x1004754
lea eax, [ebp - 0x210]
push eax
push 0xe81
call fcn.010107ca
push esi
call fcn.010108fa
call fcn.01010868
mov ecx, dword [ebp - 4]
pop esi
call fcn.0100fd6e
leave
ret 4

Function at 0x1004771
Capabilities:
Add user account to group

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101d78c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], esi
call fcn.0100f271
push 1
push esi
push esi
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0100f0c4
cmp eax, esi
je 0x10047b5
push eax
call fcn.010108fa
cmp dword [0x101fd08], esi
mov dword [ebp - 0x218], 2
je 0x100488e
mov esi, 0x101fd08
push ebx
mov ebx, esi
push dword [esi]
lea eax, [ebp - 0x210]
push edi
push eax
call sub.NETAPI32.dll_NetGroupAddUser
mov ecx, eax
sub ecx, 0
je 0x100484c
sub ecx, 0x35
je 0x100483b
sub ecx, 0x46
je 0x1004820
sub ecx, 0x832
je 0x1004817
sub ecx, 0xf
je 0x1004808
push eax
call fcn.010108fa
jmp 0x100484c
push 2
mov dword [0x1020904], edi
push 0xeaa
jmp 0x1004827
push 1
push 0xeab
jmp 0x1004827
push 1
push 0xe9e
mov eax, dword [esi]
mov dword [0x1020900], eax
call fcn.01010315
inc dword [ebp - 0x214]
jmp 0x100484c
lea eax, [ebp - 0x210]
push eax
push 0xe81
call fcn.010107ca
inc dword [ebp - 0x218]
add ebx, 4
cmp dword [ebx], 0
mov esi, ebx
jne 0x10047d3
cmp dword [ebp - 0x214], 0
pop ebx
je 0x100488e
mov eax, dword [ebp - 0x218]
add eax, 0xfffffffe
cmp dword [ebp - 0x214], eax
jge 0x1004885
push 0xdb0
call fcn.01010880
push 1
call fcn.010103d5
jmp 0x1004893
call fcn.01010868
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100fd6e
leave
ret 4
Function at 0x10048a6
Capabilities:
Delete user account from group

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101d78c]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], esi
call fcn.0100f271
push 1
push esi
push esi
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0100f0c4
cmp eax, esi
je 0x10048ea
push eax
call fcn.010108fa
cmp dword [0x101fd08], esi
mov dword [ebp - 0x218], 2
je 0x10049c3
mov esi, 0x101fd08
push ebx
mov ebx, esi
push dword [esi]
lea eax, [ebp - 0x210]
push edi
push eax
call sub.NETAPI32.dll_NetGroupDelUser
mov ecx, eax
sub ecx, 0
je 0x1004981
sub ecx, 0x35
je 0x1004970
sub ecx, 0x46
je 0x1004955
sub ecx, 0x832
je 0x100494c
sub ecx, 0x10
je 0x100493d
push eax
call fcn.010108fa
jmp 0x1004981
push 2
mov dword [0x1020904], edi
push 0xea9
jmp 0x100495c
push 1
push 0xeab
jmp 0x100495c
push 1
push 0xe9e
mov eax, dword [esi]
mov dword [0x1020900], eax
call fcn.01010315
inc dword [ebp - 0x214]
jmp 0x1004981
lea eax, [ebp - 0x210]
push eax
push 0xe81
call fcn.010107ca
inc dword [ebp - 0x218]
add ebx, 4
cmp dword [ebx], 0
mov esi, ebx
jne 0x1004908
cmp dword [ebp - 0x214], 0
pop ebx
je 0x10049c3
mov eax, dword [ebp - 0x218]
add eax, 0xfffffffe
cmp dword [ebp - 0x214], eax
jge 0x10049ba
push 0xdb0
call fcn.01010880
push 1
call fcn.010103d5
jmp 0x10049c8
call fcn.01010868
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100fd6e
leave
ret 4
Function at 0x10049db
Capabilities:
List user account groups

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x101d78c]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x428], ebx
call fcn.0100f271
lea eax, [ebp - 0x42c]
push eax
push 0xa
call fcn.01010e2f
test eax, eax
je 0x1004a23
mov dword [ebp - 0x428], 1
mov word [ebp - 0x41c], bx
jmp 0x1004a45
mov eax, dword [ebp - 0x42c]
push dword [eax]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x42c]
call sub.NETAPI32.dll_NetApiBufferFree
push ebx
push ebx
push ebx
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0100f0c4
cmp eax, ebx
je 0x1004a63
push eax
call fcn.010108fa
push ebx
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x424]
push eax
push ebx
lea eax, [ebp - 0x210]
push eax
call sub.NETAPI32.dll_NetGroupEnum
cmp eax, ebx
je 0x1004a92
push eax
call fcn.010108fa
cmp dword [ebp - 0x420], ebx
jne 0x1004a9f
call fcn.010108e3
push 0x100512b
push 4
push dword [ebp - 0x420]
push dword [ebp - 0x424]
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
call fcn.01010854
cmp word [ebp - 0x210], bx
je 0x1004ae6
lea eax, [ebp - 0x210]
push 0x1001578
push eax
call dword [sym.imp.msvcrt.dll_wcsspn]
pop ecx
pop ecx
lea eax, [ebp + eax*2 - 0x210]
jmp 0x1004aec
lea eax, [ebp - 0x41c]
push eax
push 0x1130
call fcn.010108bd
call fcn.010107f1
mov edi, dword [ebp - 0x424]
xor esi, esi
cmp dword [ebp - 0x420], ebx
jbe 0x1004b28
push ebx
push dword [edi]
push 0x10015c0
call fcn.010104ef
add esp, 0xc
inc esi
add edi, 4
cmp esi, dword [ebp - 0x420]
jb 0x1004b0c
cmp dword [ebp - 0x428], ebx
pop edi
pop esi
pop ebx
je 0x1004b44
push 0xdb0
call fcn.01010880
push 1
call fcn.010103d5
push dword [ebp - 0x424]
call sub.NETAPI32.dll_NetApiBufferFree
call fcn.01010868
mov ecx, dword [ebp - 4]
call fcn.0100fd6e
leave
ret
Function at 0x1004b63
Capabilities:
List user accounts for group

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x101d78c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0100f271
xor esi, esi
push esi
push esi
push esi
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0100f0c4
cmp eax, esi
je 0x1004ba1
push eax
call fcn.010108fa
lea eax, [ebp - 0x214]
push eax
push 1
push edi
lea eax, [ebp - 0x210]
push eax
call sub.NETAPI32.dll_NetGroupGetInfo
cmp eax, esi
je 0x1004bfa
cmp eax, 0x8ba
je 0x1004bca
push eax
call fcn.010108fa
jmp 0x1004bfa
mov eax, dword [ebp - 0x214]
push esi
push 3
push 0x101
push dword [eax]
push edi
push esi
call sub.NETAPI32.dll_I_NetNameCanonicalize
cmp eax, esi
je 0x1004beb
push eax
call fcn.010108fa
mov eax, dword [ebp - 0x214]
mov ecx, dword [0x101d794]
mov dword [eax + 4], ecx
lea eax, [ebp - 0x218]
push eax
push 0x101c328
push 2
call fcn.01010a4f
add dword [ebp - 0x218], 5
mov eax, dword [ebp - 0x214]
push dword [eax]
push esi
push dword [0x101c32c]
push dword [ebp - 0x218]
call fcn.0101052e
push eax
push dword [ebp - 0x218]
push esi
push dword [0x101d7d4]
call fcn.010104ef
mov eax, dword [ebp - 0x214]
add esp, 0x14
push dword [eax + 4]
push esi
push dword [0x101c334]
push dword [ebp - 0x218]
call fcn.0101052e
push eax
push dword [ebp - 0x218]
push esi
push dword [0x101d7d4]
call fcn.010104ef
add esp, 0x14
push dword [ebp - 0x214]
call sub.NETAPI32.dll_NetApiBufferFree
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push eax
push esi
push edi
lea eax, [ebp - 0x210]
push eax
call sub.NETAPI32.dll_NetGroupGetUsers
cmp eax, esi
je 0x1004cb0
push eax
call fcn.010108fa
push 0x100512b
push 4
push dword [ebp - 0x21c]
push dword [ebp - 0x214]
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
call fcn.01010854
push 0x1133
call fcn.01010880
call fcn.010107f1
mov ebx, dword [ebp - 0x214]
xor edi, edi
cmp dword [ebp - 0x21c], esi
jbe 0x1004d25
push esi
push dword [ebx]
push 0x19
call fcn.0101052e
push eax
push 0x10015b4
call fcn.010104ef
pop ecx
pop ecx
inc edi
push 3
xor edx, edx
mov eax, edi
pop ecx
div ecx
test edx, edx
jne 0x1004d1a
call fcn.01010854
add ebx, 4
cmp edi, dword [ebp - 0x21c]
jb 0x1004cf0
push 3
pop ecx
mov eax, edi
xor edx, edx
div ecx
pop edi
pop esi
pop ebx
test edx, edx
je 0x1004d3a
call fcn.01010854
push dword [ebp - 0x214]
call sub.NETAPI32.dll_NetApiBufferFree
call fcn.01010868
mov ecx, dword [ebp - 4]
call fcn.0100fd6e
leave
ret 4
Function at 0x1004dc2
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push esi
mov esi, dword [0x1020934]
test esi, esi
je 0x1004e02
push edi
mov ecx, dword [esi + 8]
mov edi, dword [esi]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [esi + 0xc], 0
mov edi, dword [esi + 4]
je 0x1004df5
push dword [esi]
call fcn.010129a2
push esi
call fcn.010129a2
test edi, edi
mov esi, edi
jne 0x1004dd0
pop edi
and dword [0x1020934], 0
xor esi, esi
mov eax, dword [esi + 0x101fd00]
test eax, eax
je 0x1004e26
push eax
call fcn.010129e1
add esi, 4
cmp esi, 0x400
jb 0x1004e0b
xor esi, esi
inc esi
cmp dword [0x102092c], esi
jbe 0x1004e47
mov eax, dword [0x1020930]
push dword [eax + esi*4]
call fcn.010129b2
inc esi
cmp esi, dword [0x102092c]
jb 0x1004e31
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.010129e1
pop esi
ret
Function at 0x1007863
Capabilities:
Compare security identifiers

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push 1
push dword [0x1020a00]
call sub.ADVAPI32.dll_LsaLookupSids
test eax, eax
jge 0x10078ba
push eax
call fcn.01014d75
cmp eax, 0x6fc
jb 0x10078b6
cmp eax, 0x6fd
jbe 0x10078b1
cmp eax, 0x8ab
jbe 0x10078b6
cmp eax, 0x8ad
jbe 0x10078b1
cmp eax, 0x2019
jne 0x10078b6
mov eax, 0xf7b
leave
ret 8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
test eax, eax
jle 0x10078b1
cmp eax, 2
jle 0x10078d2
cmp eax, 3
jle 0x10078b1
cmp eax, 5
jg 0x10078b1
mov eax, dword [ecx + 0xc]
test eax, eax
jl 0x10078b1
push ebx
movzx ebx, word [ecx + 4]
push esi
lea esi, [eax + eax*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
shl esi, 2
movzx eax, word [eax + esi]
push edi
lea edi, [eax + ebx + 4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push edi
call fcn.01012976
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x10079a3
mov ecx, edi
mov edi, dword [ebp - 4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, esi
cmp word [eax], 0
je 0x1007982
push dword [0x1020a04]
mov edi, dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [eax + 8]
call edi
test eax, eax
jne 0x1007982
mov eax, dword [ebp - 8]
push dword [0x10230dc]
mov eax, dword [eax + 4]
push dword [eax + esi + 8]
call edi
test eax, eax
jne 0x1007982
mov eax, dword [ebp - 0x14]
shr eax, 1
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
push dword [eax + esi + 4]
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcsncpy]
push 0x1001578
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x14
mov eax, dword [ebp - 0xc]
shr ebx, 1
push ebx
push dword [eax + 8]
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcsncat]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
add esp, 0xc
and dword [ebp - 0x10], 0
mov dword [eax], ecx
push dword [ebp - 0xc]
call sub.ADVAPI32.dll_LsaFreeMemory
push dword [ebp - 8]
call sub.ADVAPI32.dll_LsaFreeMemory
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
jmp 0x10078b6
Function at 0x1007ef3
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
mov dword [edi], 8
call fcn.010079c3
cmp eax, ebx
jne 0x1007fb7
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
push dword [0x1020a00]
call sub.ADVAPI32.dll_LsaLookupNames2
cmp eax, ebx
jge 0x1007f56
cmp eax, 0xc0000073
jne 0x1007f4e
mov eax, 0xf7b
jmp 0x1007fb7
push eax
call fcn.01014d75
jmp 0x1007fb7
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], ebx
jl 0x1007f47
push dword [eax + 4]
call dword [sym.imp.ntdll.dll_RtlLengthSid]
lea ecx, [ebp + 0x10]
push ecx
push eax
mov dword [ebp + 8], eax
call fcn.01012976
mov ebx, eax
test ebx, ebx
jne 0x1007fa5
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
jne 0x1007f97
mov ebx, 0x85c
jmp 0x1007fa5
mov eax, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [edi], eax
xor ebx, ebx
push dword [ebp + 0xc]
call sub.ADVAPI32.dll_LsaFreeMemory
push dword [ebp - 4]
call sub.ADVAPI32.dll_LsaFreeMemory
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10085dc
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
call fcn.01007ef3
mov esi, eax
test esi, esi
je 0x1008602
jmp 0x10086eb
push edi
push dword [ebp - 4]
push dword [0x10209fc]
call sub.SAMLIB.dll_SamRemoveMemberFromAlias
push dword [ebp - 4]
mov edi, eax
call fcn.010129a2
cmp edi, 0xc0000152
jne 0x10086dc
push 0x1001578
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x10086e0
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
add eax, 0x11
lea ecx, [ebp + 8]
mov dword [ebp - 8], eax
push ecx
add eax, eax
push eax
call fcn.01012976
test eax, eax
je 0x1008663
push 8
pop eax
jmp 0x10086ea
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1008686
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov esi, eax
call fcn.010129a2
jmp 0x10086e8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov word [eax + ecx*2], 0x5c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax*2 + 2]
push ebx
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.01007ef3
push dword [ebp + 8]
mov esi, eax
call fcn.010129a2
test esi, esi
jne 0x10086e8
push dword [ebp - 4]
push dword [0x10209fc]
call sub.SAMLIB.dll_SamRemoveMemberFromAlias
push dword [ebp - 4]
mov edi, eax
call fcn.010129a2
test edi, edi
jge 0x10086e8
push edi
call fcn.01014d75
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4