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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3128
call fcn.1001c1e0
mov eax, dword [0x1006a098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x3103]
push 0x27ff
push ebx
push eax
mov byte [ebp - 0x3104], bl
call fcn.10019f50
mov esi, 0xff
mov dword [ebp - 0x3110], ebx
push esi
lea eax, [ebp - 0x603]
mov byte [ebp - 0x604], bl
push ebx
push eax
call fcn.10019f50
push esi
lea eax, [ebp - 0x203]
mov byte [ebp - 0x204], bl
push ebx
push eax
call fcn.10019f50
add esp, 0x24
lea eax, [ebp - 0x3110]
push eax
push ebx
push ebx
call sub.NETAPI32.dll_NetGetDCName
test eax, eax
jne 0x10004f6f
push esi
lea eax, [ebp - 0x403]
mov byte [ebp - 0x404], bl
push ebx
push eax
call fcn.10019f50
push esi
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push ebx
push eax
call fcn.10019f50
add esp, 0x18
cmp dword [ebp - 0x3110], ebx
je 0x10004f82
push edi
or edi, 0xffffffff
lea eax, [ebp - 0x904]
push edi
push dword [ebp - 0x3110]
push pe_nt_image_headers32
push eax
call fcn.1001ba13
add esp, 0x10
mov dword [ebp - 0x310c], ebx
lea eax, [ebp - 0x310c]
push eax
push 1
push ebx
call sub.NETAPI32.dll_DsRoleGetPrimaryDomainInformation
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10004893
xor esi, esi
lea eax, [ebp - 0x204]
push esi
push esi
push pe_nt_image_headers32
push eax
mov eax, dword [ebp - 0x310c]
push edi
push dword [eax + 8]
push esi
push esi
call ebx
push edi
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x404]
push pe_nt_image_headers32
push eax
call fcn.1001b6b8
add esp, 0x10
jmp 0x100048ab
cmp dword [0x1006d34c], 6
jl 0x100048a9
push eax
push str.Could_not_retrieve_DC_Role_info:__d
call fcn.100024d3
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x310c], 0
je 0x100048bf
push dword [ebp - 0x310c]
call sub.NETAPI32.dll_DsRoleFreeMemory
push esi
push esi
push pe_nt_image_headers32
lea eax, [ebp - 0x604]
push eax
push edi
lea eax, [ebp - 0x904]
push eax
push esi
push esi
call ebx
lea ecx, [ebp - 0x404]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100048e2
sub ecx, edx
jne 0x10004909
push edi
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x404]
push pe_nt_image_headers32
push eax
call fcn.1001b6b8
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
push str.SERVER:__s_n
push edi
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 0x10004933
xor ebx, ebx
lea eax, [ebp - 0x104]
push ebx
sub ecx, edx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp dword [ebp - 0x3110], ebx
je 0x10004963
push dword [ebp - 0x3110]
call sub.NETAPI32.dll_NetApiBufferFree
mov esi, 0xff
mov byte [ebp - 0x504], bl
push esi
lea eax, [ebp - 0x503]
push ebx
push eax
call fcn.10019f50
push esi
lea eax, [ebp - 0x303]
mov byte [ebp - 0x304], bl
push ebx
push eax
call fcn.10019f50
add esp, 0x18
mov dword [ebp - 0x3114], ebx
lea eax, [ebp - 0x3114]
mov esi, ebx
push eax
push ebx
lea eax, [ebp - 0x904]
push eax
call sub.NETAPI32.dll_NetUserModalsGet
test eax, eax
jne 0x100049ec
cmp dword [0x1006d34c], 6
jl 0x100049db
mov eax, dword [ebp - 0x3114]
xor edx, edx
mov ecx, 0x15180
mov eax, dword [eax + 4]
div ecx
push eax
push str.Maximum_password_age__d_:__d_n
call fcn.100024d3
pop ecx
pop ecx
mov eax, dword [ebp - 0x3114]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x3118], ecx
jmp 0x10004a0c
cmp dword [0x1006d34c], 6
jl 0x10004a00
push str.Could_not_find_MaxPasswordAge
call fcn.100024d3
pop ecx
mov eax, dword [ebp - 0x3114]
mov dword [ebp - 0x3118], edi
test eax, eax
je 0x10004a16
push eax
call sub.NETAPI32.dll_NetApiBufferFree
lea eax, [ebp - 0x310c]
mov dword [ebp - 0x310c], ebx
push eax
lea eax, [ebp - 0x311c]
push eax
push edi
push 0x2710
push esi
push 1
lea eax, [ebp - 0x904]
push eax
call sub.NETAPI32.dll_NetQueryDisplayInformation
mov edi, eax
mov dword [ebp - 0x3124], edi
cmp edi, 5
je 0x10004f09
cmp dword [ebp - 0x311c], 0
jbe 0x10004ee3
mov edi, dword [ebp - 0x310c]
add edi, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x504]
xor ecx, ecx
push ecx
push ecx
push 0xff
push eax
push 0xffffffffffffffff
push dword [edi - 0xc]
mov dword [ebp - 0x3108], ecx
push 0x200
push ecx
call esi
xor ecx, ecx
lea eax, [ebp - 0x304]
push ecx
push ecx
push 0xff
push eax
push 0xffffffffffffffff
push dword [edi - 8]
push 0x200
push ecx
call esi
lea ecx, [ebp - 0x204]
mov dword [ebp - 0x3120], pe_nt_image_headers32
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004abf
sub ecx, edx
je 0x10004aee
lea ecx, [ebp - 0x604]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004ad3
sub ecx, edx
je 0x10004aee
lea eax, [ebp - 0x604]
push eax
lea eax, [ebp - 0x204]
push eax
jmp 0x10004af2
push 0
push 0
lea eax, [ebp - 0x3120]
push eax
lea eax, [ebp - 0x704]
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.100092c3
add esp, 0x14
lea eax, [ebp - 0x304]
cmp byte [ebp - 0x304], 0
je 0x10004b38
mov cl, byte [eax]
cmp cl, 9
je 0x10004b2f
cmp cl, 0xa
je 0x10004b2f
cmp cl, 0xd
jne 0x10004b32
mov byte [eax], 0x20
inc eax
cmp byte [eax], 0
jne 0x10004b1e
lea eax, [ebp - 0x704]
or esi, 0xffffffff
push eax
lea eax, [ebp - 0x304]
push eax
push dword [edi]
lea eax, [ebp - 0x504]
push eax
push str._s_t_S___s__t_s
push esi
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a28e
add esp, 0x20
lea eax, [ebp - 0x3108]
push eax
push 2
push dword [edi - 0xc]
lea eax, [ebp - 0x904]
push eax
call sub.NETAPI32.dll_NetUserGetInfo
test eax, eax
jne 0x10004e70
mov eax, dword [ebp - 0x3108]
test eax, eax
je 0x10004e70
test byte [eax + 0x18], 2
je 0x10004bc0
push esi
push str._tACCOUNTDISABLE
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test byte [eax + 0x18], 0x20
je 0x10004be6
push esi
push str._tPASSWD_NOTREQD
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test byte [eax + 0x18], 0x40
je 0x10004c0c
push esi
push str._tPASSWD_CANT_CHANGE
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test byte [eax + 0x18], 0x10
je 0x10004c32
push esi
push str._tLOCKOUT
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test dword [eax + 0x18], 0x10000
je 0x10004c5b
push esi
push str._tDONT_EXPIRE_PASSWD
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test dword [eax + 0x18], 0x800
je 0x10004c84
push esi
push str._tINTERDOMAIN_TRUST_ACCOUNT
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test dword [eax + 0x18], 0x2000
je 0x10004cad
push esi
push str._tSERVER_TRUST_ACCOUNT
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test dword [eax + 0x18], 0x1000
je 0x10004cd6
push esi
push str._tWORKSTATION_TRUST_ACCOUNT
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test dword [eax + 0x18], 0x100
je 0x10004cff
push esi
push str._tTEMP_DUPLICATE_ACCOUNT
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test byte [eax + 0x18], 0x80
je 0x10004d25
push esi
push str._tENCRYPTED_TEXT_PASSWORD_ALLOWED
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test dword [eax + 0x18], 0x100000
je 0x10004d4e
push esi
push str._tNOT_DELEGATED
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test dword [eax + 0x18], 0x40000
je 0x10004d77
push esi
push str._tSMARTCARD_REQUIRED
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test dword [eax + 0x18], 0x200000
je 0x10004da0
push esi
push str._tUSE_DES_KEY_ONLY
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test dword [eax + 0x18], 0x400000
je 0x10004dc9
push esi
push str._tDONT_REQUIRE_PREAUTH
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test dword [eax + 0x18], 0x80000
je 0x10004df2
push esi
push str._tTRUSTED_FOR_DELEGATION
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test dword [eax + 0x18], 0x800000
je 0x10004e1b
push esi
push str._tPASSWORD_EXPIRED
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
test dword [eax + 0x18], 0x1000000
je 0x10004e44
push esi
push str._tTRUSTED_TO_AUTHENTICATE_FOR_DELEGATION
lea eax, [ebp - 0x3104]
push 0x2800
push eax
call fcn.1001a319
mov eax, dword [ebp - 0x3108]
add esp, 0x10
push dword [eax + 0x34]
push dword [eax + 0x3c]
push dword [ebp - 0x3118]
push dword [eax + 8]
lea eax, [ebp - 0x3104]
push eax
push str._s_t_d:_d:_d:_d_n
push esi
push 0x2800
push eax
call fcn.1001a28e
add esp, 0x24
jmp 0x10004e91
push dword [ebp - 0x3118]
lea eax, [ebp - 0x3104]
push eax
push str._s_t_1:_d:_1:_1_n
push esi
push 0x2800
push eax
call fcn.1001a28e
add esp, 0x18
lea ecx, [ebp - 0x3104]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004e9a
push 0
sub ecx, edx
lea eax, [ebp - 0x3104]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp dword [ebp - 0x3108], 0
je 0x10004eca
push dword [ebp - 0x3108]
call sub.NETAPI32.dll_NetApiBufferFree
mov esi, dword [edi + 8]
add edi, 0x18
inc ebx
cmp ebx, dword [ebp - 0x311c]
jb 0x10004a66
mov edi, dword [ebp - 0x3124]
cmp dword [ebp - 0x310c], 0
je 0x10004ef7
push dword [ebp - 0x310c]
call sub.NETAPI32.dll_NetApiBufferFree
cmp edi, 0xea
jne 0x10004f69
xor ebx, ebx
or edi, 0xffffffff
jmp 0x10004a16
push 0x1b
pop ecx
mov esi, str.Access_Denied._Cannot_query_domain_users_while_SNARE_is_running_with_the_privileges_of_the_local_administrator
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
push 0x91
lea eax, [ebp - 0x95]
push ebx
movsw word es:[edi], word [esi]
push eax
movsb byte es:[edi], byte [esi]
call fcn.10019f50
lea ecx, [ebp - 0x104]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004f3a
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 - 0x310c], 0
je 0x10004f69
push dword [ebp - 0x310c]
call sub.NETAPI32.dll_NetApiBufferFree
xor eax, eax
inc eax
pop edi
jmp 0x10004f84
cmp dword [ebp - 0x3110], ebx
je 0x10004f82
push dword [ebp - 0x3110]
call sub.NETAPI32.dll_NetApiBufferFree
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1001890f
mov esp, ebp
pop ebp
ret