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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xba8
mov eax, dword [0x1006a098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x90b]
push 0x3ff
push ebx
push eax
mov byte [ebp - 0x90c], bl
call fcn.10019f50
mov edi, 0xff
mov dword [ebp - 0xb1c], ebx
push edi
lea eax, [ebp - 0x40b]
mov byte [ebp - 0x40c], bl
push ebx
push eax
call fcn.10019f50
add esp, 0x18
cmp dword [0x1006d34c], 5
jl 0x10003b51
push str.ShowDomainGroupMembers
call fcn.100024d3
pop ecx
lea eax, [ebp - 0xb1c]
push eax
push ebx
push ebx
call sub.NETAPI32.dll_NetGetDCName
test eax, eax
jne 0x100044d2
push edi
lea eax, [ebp - 0x207]
mov byte [ebp - 0x208], bl
push ebx
push eax
call fcn.10019f50
push edi
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push ebx
push eax
call fcn.10019f50
add esp, 0x18
cmp dword [ebp - 0xb1c], ebx
je 0x100044e5
push 0xffffffffffffffff
push dword [ebp - 0xb1c]
lea eax, [ebp - 0xb0c]
push edi
push eax
call fcn.1001ba13
add esp, 0x10
mov dword [ebp - 0xb10], ebx
lea eax, [ebp - 0xb10]
push eax
xor eax, eax
inc eax
push eax
push ebx
call sub.NETAPI32.dll_DsRoleGetPrimaryDomainInformation
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10003bf2
push ebx
push ebx
push edi
lea eax, [ebp - 0x208]
push eax
mov eax, dword [ebp - 0xb10]
push 0xffffffffffffffff
push dword [eax + 8]
push ebx
push ebx
call esi
jmp 0x10003c08
cmp dword [0x1006d34c], 6
jl 0x10003c08
push eax
push str.Could_not_retrieve_DC_Role_info:__d
call fcn.100024d3
pop ecx
pop ecx
cmp dword [ebp - 0xb10], ebx
je 0x10003c1b
push dword [ebp - 0xb10]
call sub.NETAPI32.dll_DsRoleFreeMemory
push ebx
push ebx
push pe_nt_image_headers32
lea eax, [ebp - 0x40c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xb0c]
push eax
push ebx
push ebx
call esi
lea ecx, [ebp - 0x208]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003c3f
sub ecx, edx
jne 0x10003c67
push 0xffffffffffffffff
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x208]
push pe_nt_image_headers32
push eax
call fcn.1001b6b8
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push str.SERVER:__s_n
push 0xffffffffffffffff
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
call fcn.1001a28e
lea ecx, [ebp - 0x104]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10003c92
push ebx
sub ecx, edx
lea eax, [ebp - 0x104]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp dword [ebp - 0xb1c], ebx
je 0x10003cc0
push dword [ebp - 0xb1c]
call sub.NETAPI32.dll_NetApiBufferFree
push edi
lea eax, [ebp - 0x50b]
mov byte [ebp - 0x50c], bl
push ebx
push eax
call fcn.10019f50
push edi
lea eax, [ebp - 0x30b]
mov byte [ebp - 0x30c], bl
push ebx
push eax
call fcn.10019f50
add esp, 0x18
mov edi, ebx
push 5
pop esi
cmp dword [0x1006d34c], esi
jl 0x10003d16
push str.Checking_version
call fcn.100024d3
pop ecx
cmp dword [0x1006d34c], esi
jl 0x10003d16
push str.Version_is_5
call fcn.100024d3
pop ecx
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp dword [0x1006d34c], esi
jl 0x10003d30
push str.Checking_for_mixed_mode
call fcn.100024d3
pop ecx
call fcn.10012906
test eax, eax
je 0x10004298
cmp dword [0x1006d34c], esi
jl 0x10003d50
push str.domain_is_mixed_mode
call fcn.100024d3
pop ecx
push 0x208
mov dword [ebp - 0xb10], ebx
mov dword [ebp - 0xb14], ebx
call fcn.10018966
pop ecx
mov edi, eax
mov dword [ebp - 0xb24], ebx
lea eax, [ebp - 0xb10]
mov dword [ebp - 0xb28], edi
push eax
push 0x1005c500
push 1
push ebx
push ebx
push str.LDAP:__rootDSE
call sub.ACTIVEDS.dll_ADsOpenObject
test eax, eax
jns 0x10003db5
mov ecx, dword [ebp - 0xb10]
test ecx, ecx
je 0x10003da3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
call fcn.100189dc
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x100044e5
mov eax, dword [ebp - 0xb10]
lea edx, [ebp - 0xb3c]
push edx
push str.defaultNamingContext
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
test eax, eax
js 0x10004220
push str.LDAP:__
push 0x104
push edi
call fcn.1001dd63
mov ecx, dword [ebp - 0xb34]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x10003df1
sub ecx, edx
mov eax, 0x104
sar ecx, 1
cmp ecx, eax
jae 0x1000426f
push dword [ebp - 0xb34]
push eax
push edi
call fcn.1001dcf7
add esp, 0xc
lea eax, [ebp - 0xb14]
push eax
push 0x1005c520
push 1
push ebx
push ebx
push edi
call sub.ACTIVEDS.dll_ADsOpenObject
test eax, eax
js 0x100041ef
push 7
pop eax
push 2
mov dword [ebp - 0xba0], eax
lea edx, [ebp - 0xba8]
mov dword [ebp - 0xb80], eax
mov dword [ebp - 0xb78], eax
mov eax, dword [ebp - 0xb14]
mov dword [ebp - 0xba8], esi
pop esi
push esi
mov dword [ebp - 0xb98], esi
mov dword [ebp - 0xb70], 0x3e8
mov dword [ebp - 0xb20], ebx
mov dword [ebp - 0xb18], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jns 0x10003ec6
mov ecx, dword [ebp - 0xb10]
test ecx, ecx
je 0x10003e9d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
call fcn.100189dc
pop ecx
mov ecx, dword [ebp - 0xb14]
test ecx, ecx
je 0x10003eb4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0xb3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x10004262
push 0x103
lea eax, [ebp - 0x20b]
mov dword [ebp - 0xb44], str.samaccountname
push ebx
push eax
mov dword [ebp - 0xb40], str.description
mov byte [ebp - 0x20c], bl
call fcn.10019f50
push 0x103
lea eax, [ebp - 0x107]
mov byte [ebp - 0x108], bl
push ebx
push eax
call fcn.10019f50
mov eax, dword [ebp - 0xb14]
lea edx, [ebp - 0xb18]
add esp, 0x18
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 0x100041c0
mov eax, dword [ebp - 0xb14]
push dword [ebp - 0xb18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
js 0x1000417e
jne 0x1000417e
mov edi, ebx
or esi, 0xffffffff
lea eax, [ebp - 0x20c]
push esi
push 0x1004b408
push 0x104
push eax
inc edi
call fcn.1001b6b8
push esi
push 0x100578f8
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.1001b6b8
add esp, 0x20
jmp 0x100040da
mov eax, dword [ebp - 0xb14]
lea edx, [ebp - 0xb58]
push edx
push dword [ebp - 0xb20]
push dword [ebp - 0xb18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x100040cf
mov ecx, dword [ebp - 0xb20]
mov eax, str.sAMAccountName
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10003fed
test dx, dx
je 0x10003fe9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10003fed
add eax, 4
add ecx, 4
test dx, dx
jne 0x10003fc7
mov eax, ebx
jmp 0x10003ff2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1000403c
push ebx
push ebx
push 0x103
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0xb50]
push esi
push dword [eax + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1000403c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1000403c
push esi
push 0x1004b408
lea eax, [ebp - 0x20c]
push 1
push eax
call fcn.1001b6b8
add esp, 0x10
mov ecx, dword [ebp - 0xb20]
mov eax, str.description
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1000406d
test dx, dx
je 0x10004069
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1000406d
add eax, 4
add ecx, 4
test dx, dx
jne 0x10004047
mov eax, ebx
jmp 0x10004072
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100040bc
push ebx
push ebx
push 0x103
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 0xb50]
push esi
push dword [eax + 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x100040bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x100040bc
push esi
push 0x100578f8
lea eax, [ebp - 0x108]
push 2
push eax
call fcn.1001b6b8
add esp, 0x10
mov eax, dword [ebp - 0xb14]
lea edx, [ebp - 0xb58]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push dword [ebp - 0xb20]
call sub.ACTIVEDS.dll_FreeADsMem
mov eax, dword [ebp - 0xb14]
lea edx, [ebp - 0xb20]
push edx
push dword [ebp - 0xb18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
test eax, eax
je 0x10003f95
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
push str._s_t_s
push esi
lea eax, [ebp - 0x90c]
push 0x400
push eax
call fcn.1001a28e
lea ecx, [ebp - 0x90c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000412c
mov esi, dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp - 0x90c]
push ebx
sub ecx, edx
push ecx
push eax
push dword [ebp + 8]
call esi
push ebx
push 1
push 0x1004cc7c
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 0xb14]
push dword [ebp - 0xb18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
je 0x10003f5b
mov dword [ebp - 0xb24], edi
mov edi, dword [ebp - 0xb28]
cmp dword [ebp - 0xb18], ebx
je 0x10004198
mov eax, dword [ebp - 0xb14]
push dword [ebp - 0xb18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test esi, esi
js 0x100041c0
cmp dword [ebp - 0xb24], ebx
push 1
pop eax
cmove esi, eax
test esi, esi
js 0x100041c0
cmp esi, eax
jne 0x10004203
cmp dword [0x1006d34c], 6
jl 0x10004203
push str.No_user_object_could_be_found
jmp 0x100041fd
cmp esi, 0x8007203e
jne 0x100041d8
cmp dword [0x1006d34c], 6
jl 0x10004203
push str.Could_not_execute_query._An_invalid_filter_was_specified.
jmp 0x100041fd
cmp dword [0x1006d34c], 6
jl 0x10004203
push esi
push str.Query_failed_to_run._HRESULT:__x
call fcn.100024d3
pop ecx
jmp 0x10004202
cmp dword [0x1006d34c], 6
jl 0x10004203
push str.Could_not_execute_query._Could_not_bind_to_the_container.
call fcn.100024d3
pop ecx
mov ecx, dword [ebp - 0xb14]
test ecx, ecx
je 0x10004213
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0xb3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp - 0xb10]
test ecx, ecx
je 0x10004230
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
test edi, edi
je 0x1000423b
push edi
call fcn.100189dc
pop ecx
push ebx
push 4
push str._n__n_n
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 8]
call fcn.100149d3
xor eax, eax
pop ecx
pop ecx
lea ebx, [eax + 1]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x100044e7
mov ecx, dword [ebp - 0xb10]
test ecx, ecx
je 0x1000427f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push edi
call fcn.100189dc
pop ecx
lea eax, [ebp - 0xb3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x10003daa
cmp dword [0x1006d34c], esi
jl 0x100042ab
push str.domain_is_NOT_mixed_mode
call fcn.100024d3
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 0xb10], ebx
cmp dword [0x1006d34c], esi
jl 0x100042ca
push str.Starting_native_check
call fcn.100024d3
pop ecx
lea eax, [ebp - 0xb10]
push eax
lea eax, [ebp - 0xb2c]
push eax
push 0xffffffffffffffff
push 0x3e8
push edi
push 3
lea eax, [ebp - 0xb0c]
push eax
call sub.NETAPI32.dll_NetQueryDisplayInformation
mov dword [ebp - 0xb28], eax
cmp eax, esi
je 0x10004471
mov esi, dword [ebp - 0xb10]
mov dword [ebp - 0xb24], ebx
cmp dword [ebp - 0xb2c], ebx
jbe 0x10004453
push ebx
push ebx
push 0xff
lea eax, [ebp - 0x50c]
push eax
push 0xffffffffffffffff
push dword [esi]
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x50c]
push eax
push 0x100578f4
push 0xffffffffffffffff
lea eax, [ebp - 0x90c]
push 0x400
push eax
call fcn.1001a28e
lea ecx, [ebp - 0x90c]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000435d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x90c]
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 - 0x30c]
push eax
push 0xffffffffffffffff
push dword [esi + 4]
push 0x200
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x30c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100043a1
sub ecx, edx
jne 0x100043c7
push 0xffffffffffffffff
push 0x100578f8
lea eax, [ebp - 0x30c]
push pe_nt_image_headers32
push eax
call fcn.1001b6b8
add esp, 0x10
lea eax, [ebp - 0x30c]
push eax
push 0x100578f4
push 0xffffffffffffffff
lea eax, [ebp - 0x90c]
push 0x400
push eax
call fcn.1001a28e
lea ecx, [ebp - 0x90c]
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100043f2
push ebx
sub ecx, edx
lea eax, [ebp - 0x90c]
push ecx
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
push edi
lea eax, [ebp - 0xb0c]
push eax
push dword [esi]
call fcn.1000e3a1
add esp, 0xc
xor eax, eax
inc eax
push ebx
push eax
push 0x1004cc7c
push edi
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [ebp - 0xb24]
mov edi, dword [esi + 0x10]
add esi, 0x14
inc eax
mov dword [ebp - 0xb24], eax
cmp eax, dword [ebp - 0xb2c]
jb 0x10004314
mov esi, dword [ebp - 0xb10]
test esi, esi
je 0x1000445d
push esi
call sub.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - 0xb28], 0xea
jne 0x100044cd
push 5
pop esi
jmp 0x100042b1
push 0x1c
pop ecx
push 0x90
lea eax, [ebp - 0x94]
mov esi, str.Access_Denied._Cannot_query_domain_groups_while_SNARE_is_running_with_the_privileges_of_the_local_administrator
lea edi, [ebp - 0x104]
push ebx
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.10019f50
lea ecx, [ebp - 0x104]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000449f
push ebx
sub ecx, edx
lea eax, [ebp - 0x104]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp dword [ebp - 0xb10], ebx
je 0x100044cd
push dword [ebp - 0xb10]
call sub.NETAPI32.dll_NetApiBufferFree
xor eax, eax
inc eax
jmp 0x100044e7
cmp dword [ebp - 0xb1c], ebx
je 0x100044e5
push dword [ebp - 0xb1c]
call sub.NETAPI32.dll_NetApiBufferFree
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001890f
mov esp, ebp
pop ebp
ret