joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006efd
Capabilities:
Compare security identifiers

Disassembly:
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 [0x101d920]
call sub.ADVAPI32.dll_LsaLookupSids
test eax, eax
jge 0x1006f52
push eax
call fcn.0101274a
cmp eax, 0x6fc
jb 0x1006f4e
cmp eax, 0x6fd
jbe 0x1006f49
cmp eax, 0x8ab
jbe 0x1006f4e
cmp eax, 0x8ad
jbe 0x1006f49
cmp eax, 0x2019
jne 0x1006f4e
mov eax, 0xf7b
leave
ret 8
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
test eax, eax
jle 0x1006f49
cmp eax, 2
jle 0x1006f6a
cmp eax, 3
jle 0x1006f49
cmp eax, 5
jg 0x1006f49
mov eax, dword [ecx + 0xc]
test eax, eax
jl 0x1006f49
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]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
lea edi, [edi + edi + 4]
push edi
call fcn.01010ab3
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x100703e
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 0x100701d
push dword [0x101d924]
mov edi, dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [eax + 8]
call edi
test eax, eax
jne 0x100701d
mov eax, dword [ebp - 8]
push dword [0x101f4d4]
mov eax, dword [eax + 4]
push dword [eax + esi + 8]
call edi
test eax, eax
jne 0x100701d
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 0x10014c0
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 0x1006f4e
Function at 0x1007546
Capabilities:
Get user security identifier

Disassembly:
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.01007059
cmp eax, ebx
jne 0x1007608
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
push ebx
push dword [0x101d920]
call sub.ADVAPI32.dll_LsaLookupNames2
cmp eax, ebx
jge 0x10075a7
cmp eax, 0xc0000073
jne 0x100759f
mov eax, 0xf7b
jmp 0x1007608
push eax
call fcn.0101274a
jmp 0x1007608
mov eax, dword [ebp + 0xc]
cmp dword [eax + 8], ebx
jl 0x1007598
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.01010ab3
mov ebx, eax
test ebx, ebx
jne 0x10075f6
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 0x10075e8
mov ebx, 0x85c
jmp 0x10075f6
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 0x100760f
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
and dword [ebp - 8], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.01007059
test eax, eax
jne 0x10076d5
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
push dword [0x101d918]
call sub.SAMLIB.dll_SamLookupNamesInDomain
test eax, eax
jl 0x1007666
mov eax, dword [ebp - 4]
cmp dword [eax], 4
je 0x1007699
push dword [ebp - 8]
call sub.SAMLIB.dll_SamFreeMemory
push dword [ebp - 4]
call sub.SAMLIB.dll_SamFreeMemory
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 1
push dword [0x101d920]
call sub.ADVAPI32.dll_LsaLookupNames
test eax, eax
jge 0x10076ba
cmp eax, 0xc0000073
je 0x10076b3
cmp eax, 0xc000018c
je 0x10076b3
push eax
call fcn.0101274a
jmp 0x10076d5
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 0xc]
push eax
mov dword [edx], ecx
call sub.SAMLIB.dll_SamFreeMemory
push dword [ebp - 4]
call sub.SAMLIB.dll_SamFreeMemory
jmp 0x10076d3
mov eax, 0x560
jmp 0x10076d5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0xc]
push eax
mov dword [edx], ecx
call sub.ADVAPI32.dll_LsaFreeMemory
push dword [ebp - 0xc]
call sub.ADVAPI32.dll_LsaFreeMemory
xor eax, eax
leave
ret 8
Function at 0x1007a52
Capabilities:
Get hostname

Disassembly:
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.01007546
mov esi, eax
test esi, esi
je 0x1007a76
jmp 0x1007b5f
push edi
push dword [ebp - 4]
push dword [0x101d91c]
call sub.SAMLIB.dll_SamRemoveMemberFromAlias
push dword [ebp - 4]
mov edi, eax
call fcn.01010acb
cmp edi, 0xc0000152
jne 0x1007b50
push 0x10014c0
push ebx
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x1007b54
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.01010ab3
test eax, eax
je 0x1007ad7
push 8
pop eax
jmp 0x1007b5e
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x1007afa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 8]
mov esi, eax
call fcn.01010acb
jmp 0x1007b5c
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.01007546
push dword [ebp + 8]
mov esi, eax
call fcn.01010acb
test esi, esi
jne 0x1007b5c
push dword [ebp - 4]
push dword [0x101d91c]
call sub.SAMLIB.dll_SamRemoveMemberFromAlias
push dword [ebp - 4]
mov edi, eax
call fcn.01010acb
test edi, edi
jge 0x1007b5c
push edi
call fcn.0101274a
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100872b
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push dword [0x101a76c]
mov byte [ebp - 2], 1
call fcn.01009547
xor ebx, ebx
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
push 2
push ebx
call sub.NETAPI32.dll_NetShareEnum
cmp eax, ebx
je 0x1008764
push eax
call fcn.0100e881
cmp dword [ebp - 8], ebx
jne 0x100876e
call fcn.0100e86f
push 0x1008224
push 0x20
push dword [ebp - 8]
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push 0x101a1a8
push 0x13
call fcn.0100e9ac
call fcn.0100e806
push 0x127a
call fcn.0100e828
call fcn.0100e7af
cmp dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jbe 0x100895d
push esi
mov esi, dword [ebp - 0x10]
push edi
add esi, 0x18
push dword [esi - 0x18]
call fcn.0100e49f
cmp eax, 0xc
ja 0x10087e6
push ebx
push dword [esi - 0x18]
push 0xc
call fcn.0100e523
push eax
push 0x1001aac
call fcn.0100e4f5
mov edi, 0x10014fc
jmp 0x100880a
push dword [esi - 0x18]
mov edi, 0x10014fc
push edi
call fcn.0100e4f5
pop ecx
pop ecx
call fcn.0100e806
push 0x100153c
push 0x1001a94
call fcn.0100e4f5
and byte [esi - 0x11], 0x7f
cmp dword [esi - 0x14], 1
pop ecx
pop ecx
jne 0x100884e
push dword [esi - 0x18]
call fcn.010086d2
push ebx
push 0x101f580
push 0xffffffffffffffea
call fcn.0100e523
push eax
push 0x1001a88
call fcn.0100e4f5
pop ecx
pop ecx
push ebx
push dword [0x101a1ac]
push 8
call fcn.0100e523
push eax
push 0x1001a88
jmp 0x1008885
push dword [esi]
call fcn.0100e49f
cmp eax, 0x1f
ja 0x100886c
push ebx
push dword [esi]
push 0xffffffffffffffe1
call fcn.0100e523
push eax
push 0x1001aac
jmp 0x1008885
push dword [esi]
push edi
call fcn.0100e4f5
pop ecx
pop ecx
call fcn.0100e806
push 0x100153c
push 0x1001a70
call fcn.0100e4f5
mov eax, dword [esi - 0x10]
cmp eax, ebx
pop ecx
pop ecx
mov byte [ebp - 1], bl
je 0x10088b1
cmp word [eax], bx
je 0x10088b1
push ebx
push eax
push 0xffffffffffffffde
call fcn.0100e523
push eax
push edi
call fcn.0100e4f5
pop ecx
pop ecx
mov byte [ebp - 1], 1
cmp byte [ebp - 2], bl
je 0x1008941
lea eax, [ebp - 0x14]
push eax
push 0x3ed
push dword [esi - 0x18]
push ebx
call sub.NETAPI32.dll_NetShareGetInfo
test eax, eax
jne 0x1008941
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and eax, 0x30
cmp eax, 0x10
je 0x10088f7
cmp eax, 0x20
je 0x10088ef
cmp eax, 0x30
jne 0x1008937
mov edi, dword [0x101a214]
jmp 0x10088fd
mov edi, dword [0x101a20c]
jmp 0x10088fd
mov edi, dword [0x101a204]
cmp edi, ebx
je 0x1008937
cmp byte [ebp - 1], 1
jne 0x100892a
call fcn.0100e806
push edi
push ebx
push 0x100153c
push 0x2d
call fcn.0100e523
push eax
push 0x1001a60
call fcn.0100e4f5
add esp, 0xc
jmp 0x1008937
push edi
push 0x1001a58
call fcn.0100e4f5
pop ecx
pop ecx
push dword [ebp - 0x14]
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x1008944
mov byte [ebp - 2], bl
call fcn.0100e806
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add esi, 0x20
cmp eax, dword [ebp - 8]
jb 0x10087bc
pop edi
pop esi
call fcn.0100e815
push dword [ebp - 0x10]
call sub.NETAPI32.dll_NetApiBufferFree
pop ebx
leave
ret
Function at 0x1008e7e
Capabilities:
Enumerate network shares

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xc4
push ebx
push esi
push dword [ebp + 0x7c]
xor ebx, ebx
mov dword [ebp + 0x70], ebx
call fcn.0100859c
mov esi, eax
cmp esi, ebx
je 0x1008ffd
push edi
mov edi, 0x906
cmp esi, edi
jne 0x1008ed3
push ebx
push dword [ebp + 0x7c]
push ebx
call sub.NETAPI32.dll_NetShareDelSticky
mov esi, eax
cmp esi, ebx
jne 0x1008ec9
push dword [ebp + 0x7c]
push 0x1233
jmp 0x1008ff7
cmp esi, edi
je 0x1008ed9
push esi
call fcn.0100e881
push esi
call fcn.0100e881
push ebx
lea eax, [ebp + 0x60]
push eax
push dword [ebp + 0x7c]
push ebx
call sub.NETAPI32.dll_I_NetPathType
cmp eax, ebx
je 0x1008ef1
push eax
call fcn.0100e881
cmp dword [ebp + 0x60], 0x2006
jne 0x1008eff
mov dword [ebp + 0x5c], ebx
jmp 0x1008f1f
test byte [ebp + 0x61], 0x40
jne 0x1008f08
push edi
jmp 0x1008f1a
lea eax, [ebp + 0x5c]
push eax
push dword [ebp + 0x7c]
push ebx
call sub.NETAPI32.dll_NetShareCheck
cmp eax, ebx
je 0x1008f1f
push eax
call fcn.0100e881
cmp dword [ebp + 0x5c], ebx
mov dword [ebp + 0x64], ebx
je 0x1008f33
push 0x57
call fcn.0100e881
jmp 0x1008fe5
push ebx
lea eax, [ebp + 0x54]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0xffffffffffffffff
lea eax, [ebp + 0x68]
push eax
push 2
push ebx
call sub.NETAPI32.dll_NetShareEnum
cmp eax, ebx
je 0x1008f54
push eax
call fcn.0100e881
mov esi, dword [ebp + 0x68]
xor edi, edi
cmp dword [ebp + 0x6c], ebx
jbe 0x1008fb4
push dword [ebp + 0x7c]
push dword [esi + 0x18]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1008fab
push dword [esi]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp + 0x64], 1
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
call fcn.0100d438
lea eax, [ebp - 0x50]
push eax
call fcn.0100859c
cmp eax, ebx
je 0x1008fab
inc dword [ebp + 0x70]
mov dword [ebp + 0x58], eax
lea eax, [ebp - 0x50]
push eax
push 0xe8d
call fcn.0100e852
inc edi
add esi, 0x20
cmp edi, dword [ebp + 0x6c]
jb 0x1008f5e
push dword [ebp + 0x68]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp + 0x70]
cmp eax, ebx
je 0x1008fe0
cmp eax, dword [ebp + 0x6c]
jne 0x1008fcd
push dword [ebp + 0x58]
jmp 0x1008fea
push 0xdb0
call fcn.0100e828
push 1
call fcn.0100e405
jmp 0x1008fef
cmp dword [ebp + 0x64], ebx
jne 0x1008fef
push 0xe87
call fcn.0100e881
push dword [ebp + 0x7c]
push 0x122a
call fcn.0100e852
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4
Function at 0x100a5b3
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101d220]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
je 0x100a61c
mov ecx, 0x101d220
mov edi, ecx
mov esi, ecx
push str._SETSNTP
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
cmp eax, dword [edi]
pop ecx
pop ecx
je 0x100a5fb
inc dword [ebp - 0xc]
add esi, 4
mov eax, dword [esi]
test eax, eax
mov edi, esi
jne 0x100a5d9
jmp 0x100a61c
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax*4 + 0x101d220]
test ebx, ebx
je 0x100a61c
push 0x3a
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x100a61c
inc ebx
inc ebx
cmp dword [ebp + 8], 0
je 0x100a6bb
lea eax, [ebp - 8]
push eax
push 0x80000002
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x100a642
push eax
call fcn.0100e881
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 2
push 0
push 0x1001b28
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x100a675
cmp dword [ebp - 8], edi
je 0x100a66f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0100e881
cmp ebx, edi
je 0x100a6c2
cmp word [ebx], di
je 0x100a6c2
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ecx
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push edi
push 0x1001b10
push dword [ebp - 4]
call esi
mov edi, eax
test edi, edi
jne 0x100a6f7
push 8
push 0x1001b08
push 1
push eax
push 0x1001afc
push dword [ebp - 4]
call esi
jmp 0x100a6f5
mov eax, 0x80000002
jmp 0x100a645
push 0x1001b10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
cmp edi, 2
jne 0x100a6d9
xor edi, edi
test edi, edi
jne 0x100a6f7
push 0xc
push 0x1001af0
push 1
push edi
push 0x1001afc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp dword [ebp - 4], 0
je 0x100a706
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x100a715
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x100a71f
push edi
call fcn.0100e881
call fcn.0100e815
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100a72b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x18], edi
je 0x100a888
lea eax, [ebp - 0x10]
push eax
push 0x80000002
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
cmp eax, edi
je 0x100a76a
push eax
call fcn.0100e881
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 4]
push ecx
push 1
push edi
push 0x1001b28
push eax
call esi
cmp eax, edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, 0x1001b10
jne 0x100a827
lea ecx, [ebp - 8]
mov eax, 0x400
push ecx
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], 1
call fcn.01013916
test eax, eax
je 0x100a7c2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xe
call fcn.0100e881
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp + 8]
push eax
push 0
push ebx
push dword [ebp - 4]
call edi
cmp eax, 0xea
mov dword [ebp - 0x14], eax
jne 0x100a818
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call sub.NETAPI32.dll_NetApiBufferReallocate
test eax, eax
je 0x100a802
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xe
call fcn.0100e881
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp + 8]
push eax
push 0
push ebx
push dword [ebp - 4]
call edi
mov dword [ebp - 0x14], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x100a86c
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1001b98
push 0x80000002
call esi
test eax, eax
jne 0x100a899
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp + 8]
push eax
push 0
push ebx
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
jne 0x100a85f
mov dword [ebp - 0x18], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x100a899
cmp dword [ebp - 0x18], 0
mov eax, dword [ebp - 8]
mov dword [0x101d820], eax
push 1
je 0x100a892
push 0xf61
call fcn.0100e83c
jmp 0x100a8a3
mov eax, 0x80000002
jmp 0x100a76d
push 0xf5f
jmp 0x100a881
push 0xf60
call fcn.0100e828
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
je 0x100a8b4
push dword [ebp - 8]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0x10], 0
je 0x100a8c3
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0100e815
leave
ret 4
Function at 0x100a8cc
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x101d220]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x100a932
push esi
mov ecx, 0x101d220
push edi
mov edi, ecx
mov esi, ecx
push str._RTSDOMAIN
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
cmp eax, dword [edi]
pop ecx
pop ecx
je 0x100a90c
add esi, 4
mov eax, dword [esi]
inc ebx
test eax, eax
mov edi, esi
jne 0x100a8ec
jmp 0x100a930
mov ebx, dword [ebx*4 + 0x101d220]
test ebx, ebx
mov dword [ebp - 4], ebx
je 0x100a930
push 0x3a
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 4], eax
je 0x100a930
add dword [ebp - 4], 2
pop edi
pop esi
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push 0x20
push eax
lea eax, [ebp - 8]
push eax
push 0x64
push 0
call fcn.0100ef00
test eax, eax
pop ebx
jne 0x100a98a
cmp dword [ebp - 0xc], eax
je 0x100a98c
cmp dword [ebp + 0x10], eax
je 0x100a961
cmp dword [ebp - 0xc], 1
jbe 0x100a98c
add dword [ebp - 8], 4
push 0x1001a08
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp - 8]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
push dword [ebp - 8]
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x100a9c5
xor eax, eax
lea ecx, [ebp + 0x10]
push ecx
xor ecx, ecx
cmp dword [ebp + 0x10], eax
setne cl
add ecx, 0x800
push ecx
push eax
push eax
push dword [ebp - 4]
push eax
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
je 0x100a9b5
mov ax, 0xf48
jmp 0x100a9c8
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
xor ax, ax
leave
ret 0xc

Function at 0x100a9cc
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x101d220]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x100aa34
mov ecx, eax
mov eax, 0x101d220
push edi
mov edi, eax
mov esi, eax
push 0x101a884
push ecx
call dword [sym.imp.msvcrt.dll_wcsstr]
cmp eax, dword [edi]
pop ecx
pop ecx
je 0x100aa12
inc dword [ebp - 4]
add esi, 4
mov ecx, dword [esi]
test ecx, ecx
mov edi, esi
jne 0x100a9f0
jmp 0x100aa33
mov eax, dword [ebp - 4]
mov ebx, dword [eax*4 + 0x101d220]
test ebx, ebx
je 0x100aa33
push 0x3a
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x100aa33
inc ebx
inc ebx
pop edi
lea eax, [ebp - 8]
push eax
push 0x20
xor eax, eax
push eax
push eax
push ebx
push eax
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x100aa56
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x100aa8d
test ebx, ebx
jne 0x100aa7b
mov esi, dword [ebp + 8]
push esi
push 0xa
call fcn.0100ed3d
test eax, eax
je 0x100aa6f
push eax
call fcn.0100e881
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [0x101d820], eax
jmp 0x100aa81
mov dword [0x101d820], ebx
push 1
push 0xf49
call fcn.0100e77a
pop esi
xor ax, ax
pop ebx
leave
ret 4
Function at 0x100b2cb
Capabilities:
Delete user account

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push 1
push 0
push 0
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0100d443
test eax, eax
je 0x100b2f5
push eax
call fcn.0100e881
lea eax, [ebp - 4]
push eax
push 2
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x100b332
mov eax, dword [ebp - 4]
test byte [eax + 0x19], 0x38
je 0x100b32a
push eax
call sub.NETAPI32.dll_NetApiBufferFree
push dword [ebp + 8]
push 0xeab
call fcn.0100e791
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call sub.NETAPI32.dll_NetUserDel
mov esi, eax
test esi, esi
je 0x100b364
cmp esi, 0x35
jne 0x100b35e
lea eax, [ebp - 0x210]
push eax
push 0xe81
call fcn.0100e791
push esi
call fcn.0100e881
call fcn.0100e815
pop esi
leave
ret 4
Function at 0x100b8c3
Capabilities:
List user accounts

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
push edi
lea eax, [ebp - 0x14]
push eax
xor edi, edi
push 0xa
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], edi
call fcn.0100ed3d
test eax, eax
je 0x100b8f4
mov dword [ebp - 0x10], 1
mov word [ebp - 0x434], di
jmp 0x100b910
mov eax, dword [ebp - 0x14]
push dword [eax]
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x14]
call sub.NETAPI32.dll_NetApiBufferFree
push edi
push edi
push edi
push 0x105
lea eax, [ebp - 0x228]
push eax
call fcn.0100d443
cmp eax, edi
je 0x100b92e
push eax
call fcn.0100e881
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push eax
push 0x300
push edi
lea eax, [ebp - 0x228]
push eax
call sub.NETAPI32.dll_NetUserEnum
cmp eax, 0xea
jne 0x100b95f
mov dword [ebp - 0x18], 1
jmp 0x100b969
cmp eax, edi
je 0x100b969
push eax
call fcn.0100e881
cmp dword [ebp - 8], edi
jne 0x100b973
call fcn.0100e86f
push 0x100b751
push 4
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
call fcn.0100e806
cmp word [ebp - 0x228], di
je 0x100b9b4
lea eax, [ebp - 0x228]
push 0x10014c0
push eax
call dword [sym.imp.msvcrt.dll_wcsspn]
pop ecx
pop ecx
lea eax, [ebp + eax*2 - 0x228]
jmp 0x100b9ba
lea eax, [ebp - 0x434]
push esi
push eax
push 0x111c
call fcn.0100e852
call fcn.0100e7af
cmp dword [ebp - 8], edi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 4], edi
jbe 0x100ba37
push ebx
xor ebx, ebx
inc ebx
push 0x24
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x100b9fd
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 1
pop ecx
jne 0x100b9fd
dec dword [ebp - 4]
dec ebx
jmp 0x100ba27
push 0
push dword [esi]
push 0x19
call fcn.0100e523
push eax
push 0x10014fc
call fcn.0100e4f5
pop ecx
pop ecx
push 3
xor edx, edx
mov eax, ebx
pop ecx
div ecx
test edx, edx
jne 0x100ba27
call fcn.0100e806
inc edi
inc dword [ebp - 4]
inc ebx
add esi, 4
cmp edi, dword [ebp - 8]
jb 0x100b9da
xor edi, edi
pop ebx
push dword [ebp - 0xc]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 4]
push 3
xor edx, edx
pop ecx
div ecx
pop esi
test edx, edx
je 0x100ba53
call fcn.0100e806
cmp dword [ebp - 0x10], edi
je 0x100ba6b
push 0xdb0
call fcn.0100e828
push 1
call fcn.0100e405
jmp 0x100ba7c
cmp dword [ebp - 0x18], edi
je 0x100ba77
push 0xdb9
jmp 0x100ba5d
call fcn.0100e815
pop edi
leave
ret