Function at 0x100265f9
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 [0x10069410]
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.1002d750
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.1002d750
add esp, 0xc
cmp dword [0x1006ef44], 5
jl 0x1002666a
push str.ShowDomainGroupMembers
call fcn.1001fbc0
pop ecx
lea eax, [ebp - 0xb2c]
push eax
push ebx
push ebx
call dword [sym.imp.NETAPI32.dll_NetGetDCName]
test eax, eax
jne 0x10027008
push edi
lea eax, [ebp - 0x217]
mov byte [ebp - 0x218], bl
push ebx
push eax
call fcn.1002d750
add esp, 0xc
mov byte [ebp - 0x110], bl
lea eax, [ebp - 0x10f]
push edi
push ebx
push eax
call fcn.1002d750
add esp, 0xc
cmp dword [ebp - 0xb2c], ebx
je 0x1002701c
push 0xffffffffffffffff
push dword [ebp - 0xb2c]
lea eax, [ebp - 0xb18]
push edi
push eax
call fcn.10012455
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 0x10026714
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 0x1002672a
cmp dword [0x1006ef44], 6
jl 0x1002672a
push eax
push str.Could_not_retrieve_DC_Role_info:__d
call fcn.1001fbc0
pop ecx
pop ecx
cmp dword [ebp - 0xb1c], ebx
je 0x1002673e
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 0x10026762
sub ecx, edx
jne 0x1002678a
push 0xffffffffffffffff
lea eax, [ebp - 0x518]
push eax
lea eax, [ebp - 0x218]
push 0x100
push eax
call fcn.10001f89
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.10006991
lea ecx, [ebp - 0x110]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100267b5
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 0x100267e2
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.1002d750
add esp, 0xc
mov byte [ebp - 0x318], bl
lea eax, [ebp - 0x317]
push esi
push ebx
push eax
call fcn.1002d750
add esp, 0xc
mov edi, ebx
push 5
pop esi
cmp dword [0x1006ef44], esi
jl 0x10026840
push str.Checking_version
call fcn.1001fbc0
pop ecx
cmp dword [0x1006ef44], esi
jl 0x10026840
push str.Version_is_5
call fcn.1001fbc0
pop ecx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [0x1006ef44], esi
jl 0x1002685a
push str.Checking_for_mixed_mode
call fcn.1001fbc0
pop ecx
call fcn.10027df9
test eax, eax
je 0x10026dc8
cmp dword [0x1006ef44], esi
jl 0x1002687a
push str.domain_is_mixed_mode
call fcn.1001fbc0
pop ecx
push 0x208
mov dword [ebp - 0xb1c], ebx
mov dword [ebp - 0xb20], ebx
call fcn.10001835
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 0x1004a490
push 1
push ebx
push ebx
push str.LDAP:__rootDSE
mov dword [ebp - 0xb30], ebx
call esi
test eax, eax
jns 0x100268e2
mov ecx, dword [ebp - 0xb1c]
test ecx, ecx
je 0x100268d0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
call fcn.100186aa
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1002701c
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 0x10026d56
push str.LDAP:__
push 0x104
push edi
call fcn.10004249
mov ecx, dword [ebp - 0xb50]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1002691e
sub ecx, edx
mov eax, 0x104
sar ecx, 1
cmp ecx, eax
jae 0x10026d9f
push dword [ebp - 0xb50]
push eax
push edi
call fcn.10005de1
add esp, 0xc
lea eax, [ebp - 0xb20]
push eax
push 0x1004a4b0
push 1
push ebx
push ebx
push edi
call esi
test eax, eax
js 0x10026d25
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 0x100269f4
mov ecx, dword [ebp - 0xb1c]
test ecx, ecx
je 0x100269cb
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
call fcn.100186aa
pop ecx
mov ecx, dword [ebp - 0xb20]
test ecx, ecx
je 0x100269e2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0xb58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x10026d92
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.1002d750
add esp, 0xc
mov byte [ebp - 0x110], bl
lea eax, [ebp - 0x10f]
push 0x103
push ebx
push eax
call fcn.1002d750
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 0x10026cf6
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 0x10026cb4
jne 0x10026cb4
mov edi, ebx
or esi, 0xffffffff
lea eax, [ebp - 0x218]
push esi
push 0x1005107e
push 0x104
push eax
inc edi
call fcn.10001f89
push esi
push 0x1005dc40
lea eax, [ebp - 0x110]
push 0x104
push eax
call fcn.10001f89
add esp, 0x20
jmp 0x10026c0c
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 0x10026c00
mov ecx, dword [ebp - 0xb28]
mov eax, str.sAMAccountName
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10026b1e
test dx, dx
je 0x10026b1a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10026b1e
add eax, 4
add ecx, 4
test dx, dx
jne 0x10026af8
mov eax, ebx
jmp 0x10026b23
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10026b6d
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 0x10026b6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10026b6d
push esi
push 0x1005107e
lea eax, [ebp - 0x218]
push 1
push eax
call fcn.10001f89
add esp, 0x10
mov ecx, dword [ebp - 0xb28]
mov eax, str.description
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10026b9e
test dx, dx
je 0x10026b9a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10026b9e
add eax, 4
add ecx, 4
test dx, dx
jne 0x10026b78
mov eax, ebx
jmp 0x10026ba3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10026bed
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 0x10026bed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x10026bed
push esi
push 0x1005dc40
lea eax, [ebp - 0x110]
push 2
push eax
call fcn.10001f89
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 0x10026ac6
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.10006991
lea ecx, [ebp - 0x918]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10026c5e
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 0x10053334
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 0x10026a8c
mov dword [ebp - 0xb30], edi
mov edi, dword [ebp - 0xb34]
cmp dword [ebp - 0xb24], ebx
je 0x10026cce
mov eax, dword [ebp - 0xb20]
push dword [ebp - 0xb24]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test esi, esi
js 0x10026cf6
cmp dword [ebp - 0xb30], ebx
push 1
pop eax
cmove esi, eax
test esi, esi
js 0x10026cf6
cmp esi, eax
jne 0x10026d39
cmp dword [0x1006ef44], 6
jl 0x10026d39
push str.No_user_object_could_be_found
jmp 0x10026d33
cmp esi, 0x8007203e
jne 0x10026d0e
cmp dword [0x1006ef44], 6
jl 0x10026d39
push str.Could_not_execute_query._An_invalid_filter_was_specified.
jmp 0x10026d33
cmp dword [0x1006ef44], 6
jl 0x10026d39
push esi
push str.Query_failed_to_run._HRESULT:__x
call fcn.1001fbc0
pop ecx
jmp 0x10026d38
cmp dword [0x1006ef44], 6
jl 0x10026d39
push str.Could_not_execute_query._Could_not_bind_to_the_container.
call fcn.1001fbc0
pop ecx
mov ecx, dword [ebp - 0xb20]
test ecx, ecx
je 0x10026d49
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 0x10026d66
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
test edi, edi
je 0x10026d71
push edi
call fcn.100186aa
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.10027401
xor eax, eax
lea ebx, [eax + 1]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x1002701e
mov ecx, dword [ebp - 0xb1c]
test ecx, ecx
je 0x10026daf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
call fcn.100186aa
pop ecx
lea eax, [ebp - 0xb58]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x100268d7
cmp dword [0x1006ef44], esi
jl 0x10026ddb
push str.domain_is_NOT_mixed_mode
call fcn.1001fbc0
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 0xb1c], ebx
cmp dword [0x1006ef44], esi
jl 0x10026dfa
push str.Starting_native_check
call fcn.1001fbc0
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 0x10026fa3
mov esi, dword [ebp - 0xb1c]
mov dword [ebp - 0xb30], ebx
cmp dword [ebp - 0xb3c], ebx
jbe 0x10026f84
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 0x1005dc3c
push 0xffffffffffffffff
lea eax, [ebp - 0x918]
push 0x400
push eax
call fcn.10006991
lea ecx, [ebp - 0x918]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10026e8e
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 0x10026ed5
sub ecx, edx
jne 0x10026efb
push 0xffffffffffffffff
push 0x1005dc40
lea eax, [ebp - 0x318]
push 0x100
push eax
call fcn.10001f89
add esp, 0x10
lea eax, [ebp - 0x318]
push eax
push 0x1005dc3c
push 0xffffffffffffffff
lea eax, [ebp - 0x918]
push 0x400
push eax
call fcn.10006991
lea ecx, [ebp - 0x918]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10026f26
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.10027f98
pop ecx
push ebx
xor eax, eax
inc eax
push eax
push 0x10053334
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 0x10026e45
mov esi, dword [ebp - 0xb1c]
test esi, esi
je 0x10026f8f
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp dword [ebp - 0xb34], 0xea
jne 0x10027003
push 5
pop esi
jmp 0x10026de1
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.1002d750
lea ecx, [ebp - 0x110]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10026fd1
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 0x10027003
push dword [ebp - 0xb1c]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
xor eax, eax
inc eax
jmp 0x1002701e
cmp dword [ebp - 0xb2c], ebx
je 0x1002701c
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.1000adad
mov esp, ebp
pop ebp
ret