joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10096be
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push dword [0x101d7a4]
mov byte [ebp - 2], 1
call fcn.0100aa22
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 0x10096f9
push eax
call fcn.010108fa
cmp dword [ebp - 8], ebx
jne 0x1009703
call fcn.010108e3
push 0x1008f00
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 0x101d1a8
push 0x19
call fcn.01010a4f
call fcn.01010854
push 0x127a
call fcn.01010880
call fcn.010107f1
cmp dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jbe 0x10098f2
push esi
mov esi, dword [ebp - 0x10]
push edi
add esi, 0x18
push dword [esi - 0x18]
call fcn.01010490
cmp eax, 0xc
ja 0x100977b
push ebx
push dword [esi - 0x18]
push 0xc
call fcn.0101052e
push eax
push 0x1001b64
call fcn.010104ef
mov edi, 0x10015b4
jmp 0x100979f
push dword [esi - 0x18]
mov edi, 0x10015b4
push edi
call fcn.010104ef
pop ecx
pop ecx
call fcn.01010854
push 0x10015f4
push 0x1001b4c
call fcn.010104ef
and byte [esi - 0x11], 0x7f
cmp dword [esi - 0x14], 1
pop ecx
pop ecx
jne 0x10097e3
push dword [esi - 0x18]
call fcn.0100965e
push ebx
push 0x1023180
push 0xffffffffffffffea
call fcn.0101052e
push eax
push 0x1001b40
call fcn.010104ef
pop ecx
pop ecx
push ebx
push dword [0x101d1ac]
push 8
call fcn.0101052e
push eax
push 0x1001b40
jmp 0x100981a
push dword [esi]
call fcn.01010490
cmp eax, 0x1f
ja 0x1009801
push ebx
push dword [esi]
push 0xffffffffffffffe1
call fcn.0101052e
push eax
push 0x1001b64
jmp 0x100981a
push dword [esi]
push edi
call fcn.010104ef
pop ecx
pop ecx
call fcn.01010854
push 0x10015f4
push 0x1001b28
call fcn.010104ef
mov eax, dword [esi - 0x10]
cmp eax, ebx
pop ecx
pop ecx
mov byte [ebp - 1], bl
je 0x1009846
cmp word [eax], bx
je 0x1009846
push ebx
push eax
push 0xffffffffffffffde
call fcn.0101052e
push eax
push edi
call fcn.010104ef
pop ecx
pop ecx
mov byte [ebp - 1], 1
cmp byte [ebp - 2], bl
je 0x10098d6
lea eax, [ebp - 0x14]
push eax
push 0x3ed
push dword [esi - 0x18]
push ebx
call sub.NETAPI32.dll_NetShareGetInfo
test eax, eax
jne 0x10098d6
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and eax, 0x30
cmp eax, 0x10
je 0x100988c
cmp eax, 0x20
je 0x1009884
cmp eax, 0x30
jne 0x10098cc
mov edi, dword [0x101d244]
jmp 0x1009892
mov edi, dword [0x101d23c]
jmp 0x1009892
mov edi, dword [0x101d234]
cmp edi, ebx
je 0x10098cc
cmp byte [ebp - 1], 1
jne 0x10098bf
call fcn.01010854
push edi
push ebx
push 0x10015f4
push 0x2d
call fcn.0101052e
push eax
push 0x1001b18
call fcn.010104ef
add esp, 0xc
jmp 0x10098cc
push edi
push 0x1001b10
call fcn.010104ef
pop ecx
pop ecx
push dword [ebp - 0x14]
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x10098d9
mov byte [ebp - 2], bl
call fcn.01010854
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add esi, 0x20
cmp eax, dword [ebp - 8]
jb 0x1009751
pop edi
pop esi
call fcn.01010868
push dword [ebp - 0x10]
call sub.NETAPI32.dll_NetApiBufferFree
pop ebx
leave
ret
Function at 0x100a2b8
Capabilities:
Enumerate network shares

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x101d78c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor ebx, ebx
push eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xb0], ebx
call fcn.01009521
mov esi, eax
cmp esi, ebx
je 0x100a4a3
push edi
mov edi, 0x906
cmp esi, edi
jne 0x100a325
push ebx
push dword [ebp - 0xac]
push ebx
call sub.NETAPI32.dll_NetShareDelSticky
mov esi, eax
cmp esi, ebx
jne 0x100a31b
push dword [ebp - 0xac]
push 0x1233
jmp 0x100a49d
cmp esi, edi
je 0x100a32b
push esi
call fcn.010108fa
push esi
call fcn.010108fa
push ebx
lea eax, [ebp - 0xc0]
push eax
push dword [ebp - 0xac]
push ebx
call sub.NETAPI32.dll_I_NetPathType
cmp eax, ebx
je 0x100a349
push eax
call fcn.010108fa
cmp dword [ebp - 0xc0], 0x2006
jne 0x100a35d
mov dword [ebp - 0xb8], ebx
jmp 0x100a386
test byte [ebp - 0xbf], 0x40
jne 0x100a369
push edi
jmp 0x100a381
lea eax, [ebp - 0xb8]
push eax
push dword [ebp - 0xac]
push ebx
call sub.NETAPI32.dll_NetShareCheck
cmp eax, ebx
je 0x100a386
push eax
call fcn.010108fa
cmp dword [ebp - 0xb8], ebx
mov dword [ebp - 0xbc], ebx
je 0x100a3a0
push 0x57
call fcn.010108fa
jmp 0x100a488
push ebx
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0xb4]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc4]
push eax
push 2
push ebx
call sub.NETAPI32.dll_NetShareEnum
cmp eax, ebx
je 0x100a3ca
push eax
call fcn.010108fa
mov esi, dword [ebp - 0xc4]
xor edi, edi
cmp dword [ebp - 0xb4], ebx
jbe 0x100a448
push dword [ebp - 0xac]
push dword [esi + 0x18]
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x100a43c
push dword [esi]
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xbc], 1
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
call fcn.0100f0b4
lea eax, [ebp - 0xa8]
push eax
call fcn.01009521
cmp eax, ebx
je 0x100a43c
inc dword [ebp - 0xb0]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0xa8]
push eax
push 0xe8d
call fcn.010108bd
inc edi
add esi, 0x20
cmp edi, dword [ebp - 0xb4]
jb 0x100a3da
push dword [ebp - 0xc4]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0xb0]
cmp eax, ebx
je 0x100a480
cmp eax, dword [ebp - 0xb4]
jne 0x100a46d
push dword [ebp - 0xc8]
jmp 0x100a48d
push 0xdb0
call fcn.01010880
push 1
call fcn.010103d5
jmp 0x100a492
cmp dword [ebp - 0xbc], ebx
jne 0x100a492
push 0xe87
call fcn.010108fa
push dword [ebp - 0xac]
push 0x122a
call fcn.010108bd
pop edi
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0100fd6e
leave
ret 4
Function at 0x100bcd9
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1020300]
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 0x100bd44
mov ecx, 0x1020300
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 0x100bd23
inc dword [ebp - 0xc]
add esi, 4
mov eax, dword [esi]
test eax, eax
mov edi, esi
jne 0x100bd01
jmp 0x100bd44
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax*4 + 0x1020300]
test ebx, ebx
je 0x100bd44
push 0x3a
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x100bd44
inc ebx
inc ebx
cmp dword [ebp + 8], 0
je 0x100bde3
lea eax, [ebp - 8]
push eax
push 0x80000002
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
test eax, eax
je 0x100bd6a
push eax
call fcn.010108fa
mov eax, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 2
push 0
push 0x1001c00
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x100bd9d
cmp dword [ebp - 8], edi
je 0x100bd97
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.010108fa
cmp ebx, edi
je 0x100bdea
cmp word [ebx], di
je 0x100bdea
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 0x1001be8
push dword [ebp - 4]
call esi
mov edi, eax
test edi, edi
jne 0x100be1f
push 8
push 0x1001be0
push 1
push eax
push 0x1001bd4
push dword [ebp - 4]
call esi
jmp 0x100be1d
mov eax, 0x80000002
jmp 0x100bd6d
push 0x1001be8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
cmp edi, 2
jne 0x100be01
xor edi, edi
test edi, edi
jne 0x100be1f
push 0xc
push 0x1001bc8
push 1
push edi
push 0x1001bd4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp dword [ebp - 4], 0
je 0x100be2e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0
je 0x100be3d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x100be47
push edi
call fcn.010108fa
call fcn.01010868
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100be58
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor esi, esi
xor edi, edi
push eax
inc edi
push 0x402
mov dword [ebp - 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0x400
mov dword [ebp - 0x18], esi
call sub.NETAPI32.dll_NetApiBufferAllocate
test eax, eax
je 0x100be97
push 0xe
call fcn.010108fa
cmp dword [ebp + 8], esi
je 0x100c005
lea eax, [ebp - 0x14]
push eax
push 0x80000002
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegConnectRegistryW]
cmp eax, esi
je 0x100bebc
push eax
call fcn.010108fa
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 8]
push ecx
push edi
push esi
push 0x1001c00
push eax
call ebx
cmp eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 0x1001be8
jne 0x100bf4f
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp - 8]
call esi
cmp eax, 0xea
mov dword [ebp + 8], eax
jne 0x100bf3c
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
add eax, 2
push eax
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferReallocate
test eax, eax
je 0x100bf26
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xe
call fcn.010108fa
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp - 8]
call esi
mov dword [ebp + 8], eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], 0
je 0x100bfdc
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x1001c70
push 0x80000002
call ebx
test eax, eax
jne 0x100c016
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp - 8]
call esi
mov ebx, eax
cmp ebx, 0xea
jne 0x100bfc4
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0xc]
add eax, 2
push eax
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferReallocate
test eax, eax
je 0x100bfaf
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xe
call fcn.010108fa
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
push 0
push edi
push dword [ebp - 8]
call esi
mov ebx, eax
test ebx, ebx
jne 0x100bfcf
mov dword [ebp - 0x18], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x100c016
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
shr eax, 1
and word [ecx + eax*2], 0
cmp dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov dword [0x1020900], eax
push 1
je 0x100c00f
push 0xf61
call fcn.0101089e
jmp 0x100c020
mov eax, 0x80000002
jmp 0x100bebf
push 0xf5f
jmp 0x100bffe
push 0xf60
call fcn.01010880
cmp dword [ebp - 4], 0
pop edi
pop esi
pop ebx
je 0x100c031
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0x14], 0
je 0x100c040
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.01010868
leave
ret 4
Function at 0x100c04e
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1020300]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [ebp - 8], ebx
je 0x100c0b4
mov ecx, 0x1020300
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 0x100c092
inc dword [ebp - 8]
add esi, 4
mov eax, dword [esi]
test eax, eax
mov edi, esi
jne 0x100c070
jmp 0x100c0b3
mov eax, dword [ebp - 8]
mov ebx, dword [eax*4 + 0x1020300]
test ebx, ebx
je 0x100c0b3
push 0x3a
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x100c0b3
inc ebx
inc ebx
pop edi
push ebx
push 0x20
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x64
push 0
call fcn.01010ff7
test eax, eax
jne 0x100c112
cmp dword [ebp - 0xc], eax
je 0x100c114
cmp dword [ebp + 0x10], eax
je 0x100c0e0
cmp dword [ebp - 0xc], 1
jbe 0x100c114
add dword [ebp - 4], 4
mov esi, dword [ebp + 8]
push 0x1001ac0
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
movzx eax, word [ebp + 0xc]
dec eax
dec eax
push eax
mov eax, dword [ebp - 4]
push dword [eax]
add esi, 4
push esi
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0x14
push dword [ebp - 4]
call sub.NETAPI32.dll_NetApiBufferFree
jmp 0x100c152
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 ebx
push eax
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
je 0x100c13c
mov eax, 0xf48
jmp 0x100c154
movzx eax, word [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
xor eax, eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x100c15f
Capabilities:
Get domain controller name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1020300]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
je 0x100c1c9
mov ecx, eax
mov eax, 0x1020300
push edi
mov edi, eax
mov esi, eax
push 0x101d8cc
push ecx
call dword [sym.imp.msvcrt.dll_wcsstr]
cmp eax, dword [edi]
pop ecx
pop ecx
je 0x100c1a7
inc dword [ebp - 4]
add esi, 4
mov ecx, dword [esi]
test ecx, ecx
mov edi, esi
jne 0x100c185
jmp 0x100c1c8
mov eax, dword [ebp - 4]
mov ebx, dword [eax*4 + 0x1020300]
test ebx, ebx
je 0x100c1c8
push 0x3a
push ebx
call dword [sym.imp.msvcrt.dll_wcschr]
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x100c1c8
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 0x100c1eb
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x100c222
test ebx, ebx
jne 0x100c210
mov esi, dword [ebp + 8]
push esi
push 0xa
call fcn.01010e2f
test eax, eax
je 0x100c204
push eax
call fcn.010108fa
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov dword [0x1020900], eax
jmp 0x100c216
mov dword [0x1020900], ebx
push 1
push 0xf49
call fcn.010107aa
pop esi
xor ax, ax
pop ebx
leave
ret 4
Function at 0x100caef
Capabilities:
Delete user account

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101d78c]
push esi
mov esi, dword [ebp + 8]
push 1
push 0
push 0
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0100f0c4
test eax, eax
je 0x100cb27
push eax
call fcn.010108fa
lea eax, [ebp - 0x214]
push eax
push 2
push esi
lea eax, [ebp - 0x210]
push eax
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x100cb69
mov eax, dword [ebp - 0x214]
test byte [eax + 0x19], 0x38
je 0x100cb5e
push eax
call sub.NETAPI32.dll_NetApiBufferFree
push esi
push 0xeab
call fcn.010107ca
push dword [ebp - 0x214]
call sub.NETAPI32.dll_NetApiBufferFree
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01015fce
mov esi, eax
test esi, esi
je 0x100cb98
cmp esi, 0x35
jne 0x100cb92
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 0x100d1c5
Capabilities:
List user accounts

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x101d78c]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x430]
push eax
xor edi, edi
push 0xa
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x434], edi
call fcn.01010e2f
test eax, eax
je 0x100d20c
mov dword [ebp - 0x42c], 1
mov word [ebp - 0x41c], di
jmp 0x100d22e
mov eax, dword [ebp - 0x430]
push dword [eax]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
push dword [ebp - 0x430]
call sub.NETAPI32.dll_NetApiBufferFree
push edi
push edi
push edi
push 0x105
lea eax, [ebp - 0x210]
push eax
call fcn.0100f0c4
cmp eax, edi
je 0x100d24c
push eax
call fcn.010108fa
push edi
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x424]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x428]
push eax
push 0x300
push edi
lea eax, [ebp - 0x210]
push eax
call sub.NETAPI32.dll_NetUserEnum
cmp eax, 0xea
jne 0x100d289
mov dword [ebp - 0x434], 1
jmp 0x100d293
cmp eax, edi
je 0x100d293
push eax
call fcn.010108fa
cmp dword [ebp - 0x424], edi
jne 0x100d2a0
call fcn.010108e3
push 0x100512b
push 4
push dword [ebp - 0x424]
push dword [ebp - 0x428]
call dword [sym.imp.msvcrt.dll_qsort]
add esp, 0x10
call fcn.01010854
cmp word [ebp - 0x210], di
je 0x100d2e7
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 0x100d2ed
lea eax, [ebp - 0x41c]
push esi
push eax
push 0x111c
call fcn.010108bd
call fcn.010107f1
cmp dword [ebp - 0x424], edi
mov esi, dword [ebp - 0x428]
mov dword [ebp - 0x420], edi
jbe 0x100d37c
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 0x100d33c
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
cmp eax, 1
pop ecx
jne 0x100d33c
dec dword [ebp - 0x420]
dec ebx
jmp 0x100d366
push 0
push dword [esi]
push 0x19
call fcn.0101052e
push eax
push 0x10015b4
call fcn.010104ef
pop ecx
pop ecx
push 3
xor edx, edx
mov eax, ebx
pop ecx
div ecx
test edx, edx
jne 0x100d366
call fcn.01010854
inc edi
inc dword [ebp - 0x420]
inc ebx
add esi, 4
cmp edi, dword [ebp - 0x424]
jb 0x100d316
xor edi, edi
pop ebx
push dword [ebp - 0x428]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp - 0x420]
push 3
xor edx, edx
pop ecx
div ecx
pop esi
test edx, edx
je 0x100d39e
call fcn.01010854
cmp dword [ebp - 0x42c], edi
je 0x100d3b9
push 0xdb0
call fcn.01010880
push 1
call fcn.010103d5
jmp 0x100d3cd
cmp dword [ebp - 0x434], edi
je 0x100d3c8
push 0xdb9
jmp 0x100d3ab
call fcn.01010868
mov ecx, dword [ebp - 4]
pop edi
call fcn.0100fd6e
leave
ret
Function at 0x100f0c4
Capabilities:
Get domain controller name
Get domain information
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp word [ebp + 0xc], 0x105
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
jae 0x100f0e7
mov eax, 0x84b
jmp 0x100f267
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
cmp edi, ebx
mov word [eax], bx
je 0x100f108
cmp dword [ebp + 0x14], 0x10
jae 0x100f105
mov eax, 0x84b
jmp 0x100f266
mov word [edi], bx
cmp dword [0x1020300], ebx
push esi
je 0x100f138
mov eax, 0x1020300
mov esi, eax
push dword [eax]
push 0x101d8cc
call fcn.01012673
test eax, eax
jl 0x100f12f
mov dword [ebp - 0xc], 1
add esi, 4
cmp dword [esi], ebx
mov eax, esi
jne 0x100f118
lea eax, [ebp - 4]
push eax
push 1
push ebx
call sub.NETAPI32.dll_DsRoleGetPrimaryDomainInformation
cmp eax, ebx
je 0x100f14e
push eax
call fcn.010108fa
cmp edi, ebx
mov esi, dword [sym.imp.msvcrt.dll_wcscpy]
je 0x100f163
mov eax, dword [ebp - 4]
push dword [eax + 8]
push edi
call esi
pop ecx
pop ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
cmp ecx, 4
je 0x100f24f
cmp ecx, 5
je 0x100f24f
cmp dword [ebp - 0xc], ebx
jne 0x100f1b3
mov edi, 0x10015f4
push edi
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x10], ebx
pop ecx
pop ecx
je 0x100f25b
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x100f25b
push edi
push dword [ebp + 0x10]
jmp 0x100f257
cmp dword [0x10216ec], ebx
jne 0x100f1de
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
jne 0x100f1c7
mov eax, dword [eax + 8]
jmp 0x100f1c9
mov eax, ecx
push eax
push 0xe6d
call fcn.010108bd
mov dword [0x10216ec], 1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x1000
add eax, 0x20
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
cmp eax, ebx
je 0x100f206
push eax
call fcn.010108fa
push dword [ebp - 4]
call sub.NETAPI32.dll_DsRoleFreeMemory
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, ebx
jne 0x100f21f
mov eax, dword [ebp + 8]
mov word [eax], bx
jmp 0x100f263
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
movzx ecx, word [ebp + 0xc]
dec ecx
cmp eax, ecx
jbe 0x100f237
mov ebx, 0x84b
jmp 0x100f243
mov eax, dword [ebp - 8]
push dword [eax]
push dword [ebp + 8]
call esi
pop ecx
pop ecx
push dword [ebp - 8]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, ebx
jmp 0x100f265
push 0x10015f4
push dword [ebp + 8]
call esi
pop ecx
pop ecx
push dword [ebp - 4]
call sub.NETAPI32.dll_DsRoleFreeMemory
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 0x14
Function at 0x100f651
Capabilities:
Enumerate services
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x101d78c]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 8]
xor ebx, ebx
push eax
mov esi, 0xfa0
push esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
call fcn.01012976
test eax, eax
je 0x100f689
push 8
call fcn.010108fa
mov eax, dword [0x10216f0]
cmp eax, ebx
jne 0x100f6a8
push 0x80000000
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [0x10216f0], eax
je 0x100f6cc
push 0xc
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x10], edi
je 0x100f6cc
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x100f6d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100f74a
cmp dword [ebp - 0x30], 1
jne 0x100f6ee
push dword [ebp + 8]
mov edi, 0xdc1
call fcn.0100f328
mov dword [ebp - 0x14], eax
jmp 0x100f74a
test byte [ebp - 0x2c], 1
jne 0x100f6fb
mov edi, 0x88f
jmp 0x100f74a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
push 1
push edi
call esi
test eax, eax
jne 0x100f7a3
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, eax
cmp edi, 0xea
jne 0x100f748
push dword [ebp - 8]
call fcn.010129a2
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 8]
push eax
push edi
call fcn.01012976
test eax, eax
je 0x100f784
push 8
pop edi
xor ebx, ebx
cmp dword [ebp - 8], ebx
je 0x100f757
push dword [ebp - 8]
call fcn.010129a2
cmp dword [ebp - 0x10], ebx
je 0x100f765
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, ebx
je 0x100f82b
cmp dword [ebp - 0x14], ebx
je 0x100f825
push dword [ebp - 0x14]
push edi
call fcn.010107ca
jmp 0x100f82b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp - 8]
push 1
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x100f7a1
call ebx
mov edi, eax
jmp 0x100f748
xor ebx, ebx
cmp dword [ebp - 0xc], ebx
je 0x100f81e
push dword [ebp + 8]
call fcn.0100f328
push eax
push 0xdca
call fcn.010108bd
xor esi, esi
cmp dword [ebp - 0xc], ebx
jbe 0x100f7e5
xor edi, edi
mov eax, dword [ebp - 8]
push dword [edi + eax + 4]
push 0x1001554
call fcn.010104ef
pop ecx
pop ecx
call fcn.01010854
inc esi
add edi, 0x24
cmp esi, dword [ebp - 0xc]
jb 0x100f7c4
call fcn.01010854
push ebx
push 0x14a6
call fcn.01010912
test eax, eax
jne 0x100f800
push 2
call fcn.010103d5
xor edi, edi
cmp dword [ebp - 0xc], ebx
jbe 0x100f81e
xor esi, esi
mov eax, dword [ebp - 8]
push ebx
push dword [esi + eax]
call fcn.0100b861
inc edi
add esi, 0x24
cmp edi, dword [ebp - 0xc]
jb 0x100f809
xor edi, edi
jmp 0x100f74a
push edi
call fcn.010108fa
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100fd6e
leave
ret 4

Function at 0x100fd6e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101d78c]
jne 0x100fd7f
test ecx, 0xffff0000
jne 0x100fd7f
ret
jmp fcn.0100fd89