Function at 0x1000b29e
Capabilities:
Get domain controller name
Get domain information
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc4
mov eax, dword [0x100ba410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x917]
push 0x3ff
mov esi, ecx
mov byte [ebp - 0x918], bl
push ebx
push eax
mov dword [ebp - 0xb38], esi
call fcn.10023400
add esp, 0xc
mov dword [ebp - 0xb2c], ebx
mov edi, 0xff
mov byte [ebp - 0x518], bl
lea eax, [ebp - 0x517]
push edi
push ebx
push eax
call fcn.10023400
add esp, 0xc
cmp dword [0x100c1c2c], 5
jl 0x1000b30f
push str.ShowDomainGroupMembers
call fcn.100144ba
pop ecx
lea eax, [ebp - 0xb2c]
push eax
push ebx
push ebx
call dword [sym.imp.NETAPI32.dll_NetGetDCName]
test eax, eax
jne 0x1000bcad
push edi
lea eax, [ebp - 0x217]
mov byte [ebp - 0x218], bl
push ebx
push eax
call fcn.10023400
add esp, 0xc
mov byte [ebp - 0x110], bl
lea eax, [ebp - 0x10f]
push edi
push ebx
push eax
call fcn.10023400
add esp, 0xc
cmp dword [ebp - 0xb2c], ebx
je 0x1000bcc1
push 0xffffffffffffffff
push dword [ebp - 0xb2c]
lea eax, [ebp - 0xb18]
push edi
push eax
call fcn.1001fb15
add esp, 0x10
mov dword [ebp - 0xb1c], ebx
lea eax, [ebp - 0xb1c]
push eax
xor eax, eax
inc eax
push eax
push ebx
call dword [sym.imp.NETAPI32.dll_DsRoleGetPrimaryDomainInformation]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000b3b9
push ebx
push ebx
push 0xff
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0xb1c]
push 0xffffffffffffffff
push dword [eax + 8]
push ebx
push ebx
call edi
jmp 0x1000b3cf
cmp dword [0x100c1c2c], 6
jl 0x1000b3cf
push eax
push str.Could_not_retrieve_DC_Role_info:__d
call fcn.100144ba
pop ecx
pop ecx
cmp dword [ebp - 0xb1c], ebx
je 0x1000b3e3
push dword [ebp - 0xb1c]
call dword [sym.imp.NETAPI32.dll_DsRoleFreeMemory]
push ebx
push ebx
push 0x100
lea eax, [ebp - 0x518]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xb18]
push eax
push ebx
push ebx
call edi
lea ecx, [ebp - 0x218]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b407
sub ecx, edx
jne 0x1000b42f
push 0xffffffffffffffff
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x218]
push 0x100
push eax
call fcn.10021c86
add esp, 0x10
lea eax, [ebp - 0x218]
push eax
push str.SERVER:__s_n
push 0xffffffffffffffff
lea eax, [ebp - 0x110]
push 0x100
push eax
call fcn.1001f145
lea ecx, [ebp - 0x110]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b45a
push ebx
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp dword [ebp - 0xb2c], ebx
je 0x1000b487
push dword [ebp - 0xb2c]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov esi, 0xff
mov byte [ebp - 0x418], bl
push esi
lea eax, [ebp - 0x417]
push ebx
push eax
call fcn.10023400
add esp, 0xc
mov byte [ebp - 0x318], bl
lea eax, [ebp - 0x317]
push esi
push ebx
push eax
call fcn.10023400
add esp, 0xc
mov edi, ebx
push 5
pop esi
cmp dword [0x100c1c2c], esi
jl 0x1000b4e5
push str.Checking_version
call fcn.100144ba
pop ecx
cmp dword [0x100c1c2c], esi
jl 0x1000b4e5
push str.Version_is_5
call fcn.100144ba
pop ecx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [0x100c1c2c], esi
jl 0x1000b4ff
push str.Checking_for_mixed_mode
call fcn.100144ba
pop ecx
call fcn.1000c759
test eax, eax
je 0x1000ba6d
cmp dword [0x100c1c2c], esi
jl 0x1000b51f
push str.domain_is_mixed_mode
call fcn.100144ba
pop ecx
push 0x208
mov dword [ebp - 0xb1c], ebx
mov dword [ebp - 0xb20], ebx
call fcn.1001ee58
mov esi, dword [sym.imp.ACTIVEDS.dll_ADsOpenObject]
mov edi, eax
pop ecx
lea eax, [ebp - 0xb1c]
mov dword [ebp - 0xb34], edi
push eax
push 0x10091850
push 1
push ebx
push ebx
push str.LDAP:__rootDSE
mov dword [ebp - 0xb30], ebx
call esi
test eax, eax
jns 0x1000b587
mov ecx, dword [ebp - 0xb1c]
test ecx, ecx
je 0x1000b575
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
call fcn.1001eabc
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1000bcc1
mov eax, dword [ebp - 0xb1c]
lea edx, [ebp - 0xb58]
push edx
push str.defaultNamingContext
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
js 0x1000b9fb
push str.LDAP:__
push 0x104
push edi
call fcn.1002245b
mov ecx, dword [ebp - 0xb50]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1000b5c3
sub ecx, edx
mov eax, 0x104
sar ecx, 1
cmp ecx, eax
jae 0x1000ba44
push dword [ebp - 0xb50]
push eax
push edi
call fcn.1002238c
add esp, 0xc
lea eax, [ebp - 0xb20]
push eax
push 0x10091a20
push 1
push ebx
push ebx
push edi
call esi
test eax, eax
js 0x1000b9ca
push 7
pop eax
push 2
mov dword [ebp - 0xbb8], eax
lea edx, [ebp - 0xbc0]
mov dword [ebp - 0xb98], eax
mov dword [ebp - 0xb90], eax
mov eax, dword [ebp - 0xb20]
pop esi
push esi
mov dword [ebp - 0xbc0], 5
mov dword [ebp - 0xbb0], esi
mov dword [ebp - 0xb88], 0x3e8
mov dword [ebp - 0xb28], ebx
mov dword [ebp - 0xb24], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x1000b699
mov ecx, dword [ebp - 0xb1c]
test ecx, ecx
je 0x1000b670
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
call fcn.1001eabc
pop ecx
mov ecx, dword [ebp - 0xb20]
test ecx, ecx
je 0x1000b687
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0xb58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x1000ba37
push 0x103
lea eax, [ebp - 0x217]
mov dword [ebp - 0xb44], str.samaccountname
push ebx
push eax
mov dword [ebp - 0xb40], str.description
mov byte [ebp - 0x218], bl
call fcn.10023400
add esp, 0xc
mov byte [ebp - 0x110], bl
lea eax, [ebp - 0x10f]
push 0x103
push ebx
push eax
call fcn.10023400
mov eax, dword [ebp - 0xb20]
lea edx, [ebp - 0xb24]
add esp, 0xc
mov ecx, dword [eax]
push edx
push esi
lea edx, [ebp - 0xb44]
push edx
push str.__objectCategorygroup__
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
js 0x1000b99b
mov eax, dword [ebp - 0xb20]
push dword [ebp - 0xb24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
js 0x1000b959
jne 0x1000b959
mov edi, ebx
or esi, 0xffffffff
lea eax, [ebp - 0x218]
push esi
push 0x1009c74c
push 0x104
push eax
inc edi
call fcn.10021c86
push esi
push 0x100a94d8
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.10021c86
add esp, 0x20
jmp 0x1000b8b1
mov eax, dword [ebp - 0xb20]
lea edx, [ebp - 0xb6c]
push edx
push dword [ebp - 0xb28]
push dword [ebp - 0xb24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x1000b8a5
mov ecx, dword [ebp - 0xb28]
mov eax, str.sAMAccountName
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000b7c3
test dx, dx
je 0x1000b7bf
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000b7c3
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000b79d
mov eax, ebx
jmp 0x1000b7c8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000b812
push ebx
push ebx
push 0x103
lea eax, [ebp - 0x218]
push eax
mov eax, dword [ebp - 0xb64]
push esi
push dword [eax + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000b812
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1000b812
push esi
push 0x1009c74c
lea eax, [ebp - 0x218]
push 1
push eax
call fcn.10021c86
add esp, 0x10
mov ecx, dword [ebp - 0xb28]
mov eax, str.description
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000b843
test dx, dx
je 0x1000b83f
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000b843
add eax, 4
add ecx, 4
test dx, dx
jne 0x1000b81d
mov eax, ebx
jmp 0x1000b848
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000b892
push ebx
push ebx
push 0x103
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0xb64]
push esi
push dword [eax + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000b892
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1000b892
push esi
push 0x100a94d8
lea eax, [ebp - 0x110]
push 2
push eax
call fcn.10021c86
add esp, 0x10
mov eax, dword [ebp - 0xb20]
lea edx, [ebp - 0xb6c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push dword [ebp - 0xb28]
call dword [sym.imp.ACTIVEDS.dll_FreeADsMem]
mov eax, dword [ebp - 0xb20]
lea edx, [ebp - 0xb28]
push edx
push dword [ebp - 0xb24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x1000b76b
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x218]
push eax
push str._s_t_s
push esi
lea eax, [ebp - 0x918]
push 0x400
push eax
call fcn.1001f145
lea ecx, [ebp - 0x918]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b903
mov esi, dword [ebp - 0xb38]
lea eax, [ebp - 0x918]
push ebx
sub ecx, edx
push ecx
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
push ebx
push 1
push 0x1009eb84
push esi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xb20]
push dword [ebp - 0xb24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
je 0x1000b731
mov dword [ebp - 0xb30], edi
mov edi, dword [ebp - 0xb34]
cmp dword [ebp - 0xb24], ebx
je 0x1000b973
mov eax, dword [ebp - 0xb20]
push dword [ebp - 0xb24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test esi, esi
js 0x1000b99b
cmp dword [ebp - 0xb30], ebx
push 1
pop eax
cmove esi, eax
test esi, esi
js 0x1000b99b
cmp esi, eax
jne 0x1000b9de
cmp dword [0x100c1c2c], 6
jl 0x1000b9de
push str.No_user_object_could_be_found
jmp 0x1000b9d8
cmp esi, 0x8007203e
jne 0x1000b9b3
cmp dword [0x100c1c2c], 6
jl 0x1000b9de
push str.Could_not_execute_query._An_invalid_filter_was_specified.
jmp 0x1000b9d8
cmp dword [0x100c1c2c], 6
jl 0x1000b9de
push esi
push str.Query_failed_to_run._HRESULT:__x
call fcn.100144ba
pop ecx
jmp 0x1000b9dd
cmp dword [0x100c1c2c], 6
jl 0x1000b9de
push str.Could_not_execute_query._Could_not_bind_to_the_container.
call fcn.100144ba
pop ecx
mov ecx, dword [ebp - 0xb20]
test ecx, ecx
je 0x1000b9ee
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0xb58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0xb1c]
test ecx, ecx
je 0x1000ba0b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
test edi, edi
je 0x1000ba16
push edi
call fcn.1001eabc
pop ecx
push ebx
mov ebx, dword [ebp - 0xb38]
push 4
push str._n__n_n
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov ecx, ebx
call fcn.10013787
xor eax, eax
lea ebx, [eax + 1]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x1000bcc3
mov ecx, dword [ebp - 0xb1c]
test ecx, ecx
je 0x1000ba54
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
call fcn.1001eabc
pop ecx
lea eax, [ebp - 0xb58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x1000b57c
cmp dword [0x100c1c2c], esi
jl 0x1000ba80
push str.domain_is_NOT_mixed_mode
call fcn.100144ba
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 0xb1c], ebx
cmp dword [0x100c1c2c], esi
jl 0x1000ba9f
push str.Starting_native_check
call fcn.100144ba
pop ecx
lea eax, [ebp - 0xb1c]
push eax
lea eax, [ebp - 0xb3c]
push eax
push 0xffffffffffffffff
push 0x3e8
push edi
push 3
lea eax, [ebp - 0xb18]
push eax
call dword [sym.imp.NETAPI32.dll_NetQueryDisplayInformation]
mov dword [ebp - 0xb34], eax
cmp eax, esi
je 0x1000bc48
mov esi, dword [ebp - 0xb1c]
mov dword [ebp - 0xb30], ebx
cmp dword [ebp - 0xb3c], ebx
jbe 0x1000bc29
push ebx
push ebx
push 0xff
lea eax, [ebp - 0x418]
push eax
push 0xffffffffffffffff
push dword [esi]
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x418]
push eax
push 0x100a94d4
push 0xffffffffffffffff
lea eax, [ebp - 0x918]
push 0x400
push eax
call fcn.1001f145
lea ecx, [ebp - 0x918]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000bb33
mov edi, dword [ebp - 0xb38]
lea eax, [ebp - 0x918]
push ebx
sub ecx, edx
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
push ebx
push ebx
push 0xff
lea eax, [ebp - 0x318]
push eax
push 0xffffffffffffffff
push dword [esi + 4]
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x318]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000bb7a
sub ecx, edx
jne 0x1000bba0
push 0xffffffffffffffff
push 0x100a94d8
lea eax, [ebp - 0x318]
push 0x100
push eax
call fcn.10021c86
add esp, 0x10
lea eax, [ebp - 0x318]
push eax
push 0x100a94d4
push 0xffffffffffffffff
lea eax, [ebp - 0x918]
push 0x400
push eax
call fcn.1001f145
lea ecx, [ebp - 0x918]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000bbcb
push ebx
sub ecx, edx
lea eax, [ebp - 0x918]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [esi]
lea edx, [ebp - 0xb18]
push edi
call fcn.100130a4
pop ecx
push ebx
xor eax, eax
inc eax
push eax
push 0x1009eb84
push edi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xb30]
mov edi, dword [esi + 0x10]
add esi, 0x14
inc eax
mov dword [ebp - 0xb30], eax
cmp eax, dword [ebp - 0xb3c]
jb 0x1000baea
mov esi, dword [ebp - 0xb1c]
test esi, esi
je 0x1000bc34
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 0xb34], 0xea
jne 0x1000bca8
push 5
pop esi
jmp 0x1000ba86
push 0x1c
pop ecx
push 0x90
lea eax, [ebp - 0xa0]
mov esi, str.Access_Denied._Cannot_query_domain_groups_while_SNARE_is_running_with_the_privileges_of_the_local_administrator
lea edi, [ebp - 0x110]
push ebx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.10023400
lea ecx, [ebp - 0x110]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000bc76
push ebx
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
push dword [ebp - 0xb38]
call dword [sym.imp.WS2_32.dll_send]
cmp dword [ebp - 0xb1c], ebx
je 0x1000bca8
push dword [ebp - 0xb1c]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
xor eax, eax
inc eax
jmp 0x1000bcc3
cmp dword [ebp - 0xb2c], ebx
je 0x1000bcc1
push dword [ebp - 0xb2c]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001e010
mov esp, ebp
pop ebp
ret