Function at 0x10013787
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008c5c8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2d08
call fcn.10035de0
mov eax, dword [0x100ba410]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x2c4c], edi
xor ebx, ebx
mov byte [ebp - 0x2c28], bl
push 0x27ff
push ebx
lea eax, [ebp - 0x2c27]
push eax
call fcn.10023400
add esp, 0xc
mov dword [ebp - 0x2c3c], ebx
mov dword [ebp - 0x2c2c], ebx
push 0x208
call fcn.1001ee58
pop ecx
mov esi, eax
mov dword [ebp - 0x2c34], esi
mov dword [ebp - 0x2c44], ebx
test edi, edi
jne 0x10013812
xor eax, eax
jmp 0x100140dd
push 6
pop ebx
cmp dword [0x100c1c2c], ebx
jl 0x10013828
push str.DGWin2k:_Inside_ShowDomainUserGroupsWin2k.
call fcn.100144ba
pop ecx
lea eax, [ebp - 0x2c3c]
push eax
push 0x10091850
push 1
xor edi, edi
push edi
push edi
push str.LDAP:__rootDSE
call dword [sym.imp.ACTIVEDS.dll_ADsOpenObject]
test eax, eax
jns 0x10013875
mov ecx, dword [ebp - 0x2c3c]
test ecx, ecx
je 0x10013859
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push esi
call fcn.1001eabc
pop ecx
cmp dword [0x100c1c2c], ebx
jl 0x1001380b
push str.DGWin2k:_Could_not_open_RootDSE.
call fcn.100144ba
pop ecx
jmp 0x1001380b
cmp dword [0x100c1c2c], ebx
jl 0x10013888
push str.DGWin2k:_Grabbed_RootDSE.
call fcn.100144ba
pop ecx
mov eax, dword [ebp - 0x2c3c]
mov ecx, dword [eax]
lea edx, [ebp - 0x2ca8]
push edx
push str.defaultNamingContext
push eax
call dword [ecx + 0x3c]
test eax, eax
js 0x100140bf
cmp dword [0x100c1c2c], ebx
jl 0x100138bb
push str.DGWin2k:_Grabbed_defaultNamingContext.
call fcn.100144ba
pop ecx
push str.LDAP:__
push 0x104
push esi
call fcn.1002245b
add esp, 0xc
mov ecx, dword [ebp - 0x2ca0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x100138d7
sub ecx, edx
sar ecx, 1
mov eax, 0x104
cmp ecx, eax
jae 0x10014145
push dword [ebp - 0x2ca0]
push eax
push esi
call fcn.1002238c
add esp, 0xc
lea eax, [ebp - 0x2c2c]
push eax
push 0x10091a20
push 1
push edi
push edi
push esi
call dword [sym.imp.ACTIVEDS.dll_ADsOpenObject]
test eax, eax
js 0x10014129
cmp dword [0x100c1c2c], ebx
jl 0x10013935
push str.DGWin2k:_Opened_object.
call fcn.100144ba
pop ecx
mov dword [ebp - 0x2d18], 5
push 7
pop eax
mov dword [ebp - 0x2d10], eax
mov dword [ebp - 0x2d08], 2
mov dword [ebp - 0x2cf0], eax
mov dword [ebp - 0x2ce8], eax
mov dword [ebp - 0x2ce0], 0x3e8
push 0x208
call fcn.1001ee58
pop ecx
mov dword [ebp - 0x2c60], eax
mov dword [ebp - 0x2c38], edi
mov ecx, dword [ebp - 0x2c2c]
mov edx, dword [ecx]
push 2
lea eax, [ebp - 0x2d18]
push eax
push ecx
call dword [edx + 0xc]
test eax, eax
jns 0x100139ef
mov ecx, dword [ebp - 0x2c3c]
test ecx, ecx
je 0x100139a8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x2c60]
push eax
call fcn.1001eabc
pop ecx
push esi
call fcn.1001eabc
pop ecx
mov ecx, dword [ebp - 0x2c2c]
test ecx, ecx
je 0x100139cc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x2ca8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [0x100c1c2c], ebx
jl 0x1001380b
push str.DGWin2k:_Could_not_setsearchpreference.
jmp 0x1001386d
mov dword [ebp - 0x2c94], str.ADsPath
mov eax, dword [ebp - 0x2c2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c38]
push edx
push 1
lea edx, [ebp - 0x2c94]
push edx
push str.__objectCategoryperson__objectClassuser__
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
js 0x1001405b
mov eax, dword [ebp - 0x2c2c]
mov ecx, dword [eax]
push dword [ebp - 0x2c38]
push eax
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
js 0x10014040
test esi, esi
jne 0x10014040
inc esi
mov dword [ebp - 0x2c54], esi
mov eax, dword [ebp - 0x2c44]
inc eax
mov dword [ebp - 0x2c44], eax
mov dword [ebp - 0x2c8c], eax
mov eax, dword [ebp - 0x2c2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x2cc4]
push edx
push str.ADsPath
push dword [ebp - 0x2c38]
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x10014027
cmp dword [0x100c1c2c], ebx
jl 0x10013a9b
push str.Alloc_pADsUser
call fcn.100144ba
pop ecx
lea eax, [ebp - 0x2c30]
push eax
push 0x10091890
push esi
push edi
push edi
mov eax, dword [ebp - 0x2cbc]
push dword [eax + 8]
call dword [sym.imp.ACTIVEDS.dll_ADsOpenObject]
mov esi, eax
mov eax, dword [ebp - 0x2c2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x2cc4]
push edx
push eax
call dword [ecx + 0x2c]
test esi, esi
js 0x10014027
mov dword [ebp - 0x2c6c], 1
mov dword [ebp - 0x2c90], str.TokenGroups
cmp dword [0x100c1c2c], ebx
jl 0x10013afd
push str.Alloc_username
call fcn.100144ba
pop ecx
mov eax, dword [ebp - 0x2c30]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c50]
push edx
push eax
call dword [ecx + 0x1c]
cmp dword [ebp - 0x2c50], 0
jne 0x10013b3d
cmp dword [0x100c1c2c], ebx
jl 0x10013b2c
push str.DGWin2k:_Could_not_get_Name.
call fcn.100144ba
pop ecx
mov eax, dword [ebp - 0x2c30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10013a40
push dword [ebp - 0x2c50]
push 0x100a9b34
push 0xffffffffffffffff
push 0x2800
lea eax, [ebp - 0x2c28]
push eax
call fcn.1001f145
add esp, 0x14
lea ecx, [ebp - 0x2c28]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013b67
sub ecx, edx
mov dword [ebp - 0x2c40], ecx
cmp dword [0x100c1c2c], ebx
jl 0x10013b89
push str.Free_username
call fcn.100144ba
pop ecx
push dword [ebp - 0x2c50]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [0x100c1c2c], ebx
jl 0x10013ba8
push str.Alloc_vTokenGroups_
call fcn.100144ba
pop ecx
lea eax, [ebp - 0x2c80]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x2c80]
push eax
push 1
lea eax, [ebp - 0x2c90]
push eax
call dword [sym.imp.ACTIVEDS.dll_ADsBuildVarArrayStr]
mov esi, eax
test esi, esi
jns 0x10013be7
cmp dword [0x100c1c2c], ebx
jl 0x10013b2c
push str.DGWin2k:_Couldnt_buildvararraystr.
jmp 0x10013b26
mov eax, dword [ebp - 0x2c30]
mov ecx, dword [eax]
push edi
sub esp, 0x10
lea esi, [ebp - 0x2c80]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
call dword [ecx + 0x4c]
mov esi, eax
cmp dword [0x100c1c2c], ebx
jl 0x10013c18
push str.Free_vTokenGroups
call fcn.100144ba
pop ecx
lea eax, [ebp - 0x2c80]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x10013c4f
cmp dword [0x100c1c2c], ebx
jl 0x10013c3c
push str.DGWin2k:_Couldnt_getinfoex.
call fcn.100144ba
pop ecx
mov eax, dword [ebp - 0x2c30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor edi, edi
jmp 0x10013a40
cmp dword [0x100c1c2c], ebx
jl 0x10013c75
push str.DGWin2k:_Getting_tokengroups.
call fcn.100144ba
pop ecx
cmp dword [0x100c1c2c], ebx
jl 0x10013c75
push str.Alloc_vtokengroups_again_
call fcn.100144ba
pop ecx
mov eax, dword [ebp - 0x2c30]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c80]
push edx
push str.TokenGroups
push eax
call dword [ecx + 0x3c]
mov esi, eax
test esi, esi
jns 0x10013cc1
cmp dword [0x100c1c2c], ebx
jl 0x10013ca6
push str.DGWin2k:_Could_not_get_tokengroups.
call fcn.100144ba
pop ecx
mov eax, dword [ebp - 0x2c30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x2c80]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x10013c48
mov esi, dword [ebp - 0x2c78]
mov dword [ebp - 0x2c5c], esi
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2c48], eax
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x2c58], edi
cmp dword [0x100c1c2c], ebx
jl 0x10013cf2
push str.Alloc_pArray
call fcn.100144ba
pop ecx
lea eax, [ebp - 0x2c88]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov esi, eax
test esi, esi
jns 0x10013d15
cmp dword [0x100c1c2c], ebx
jl 0x10013ca6
push str.DGWin2k:_Couldnt_SafeArrayAccessData.
jmp 0x10013ca0
mov esi, dword [ebp - 0x2c48]
cmp dword [0x100c1c2c], ebx
jl 0x10013d32
push esi
push edi
push str.DGWin2k:_about_to_loop_through_sids._lbound_is__d_nosids_is__d
call fcn.100144ba
add esp, 0xc
mov dword [ebp - 0x2c64], edi
cmp edi, esi
jae 0x10013dc6
xor eax, eax
mov byte [ebp - 0x220], al
mov esi, 0x200
push esi
push eax
lea eax, [ebp - 0x21f]
push eax
call fcn.10023400
add esp, 0xc
xor eax, eax
mov byte [ebp - 0x428], al
push esi
push eax
lea eax, [ebp - 0x427]
push eax
call fcn.10023400
add esp, 0xc
cmp dword [0x100c1c2c], ebx
jl 0x10013d8a
push str.Alloc_psid
call fcn.100144ba
pop ecx
lea eax, [ebp - 0x2cac]
push eax
mov ecx, edi
shl ecx, 4
add ecx, dword [ebp - 0x2c88]
lea edx, [ebp - 0x2c68]
call fcn.10006897
pop ecx
test eax, eax
jns 0x10013e06
cmp dword [0x100c1c2c], ebx
jl 0x10013dc6
push dword [ebp - 0x2c50]
push str.DGWin2k:_VarToBytes_bugged_out._The_UserName_is__S
call fcn.100144ba
pop ecx
pop ecx
push 0xffffffffffffffff
push 0x1009eb84
push 0x2800
lea eax, [ebp - 0x2c28]
push eax
call fcn.1001f294
add esp, 0x10
mov ecx, dword [ebp - 0x2c40]
inc ecx
xor edi, edi
push edi
cmp dword [ebp - 0x2c54], edi
je 0x10013fb1
lea eax, [ecx - 3]
push eax
lea eax, [ebp - 0x2c25]
jmp 0x10013fb8
cmp dword [0x100c1c2c], ebx
jl 0x10013e19
push str.Attempting_sid_translation
call fcn.100144ba
pop ecx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c84], esi
mov dword [ebp - 0x2c98], esi
lea ecx, [ebp - 0x2cb0]
push ecx
lea ecx, [ebp - 0x2c98]
push ecx
lea ecx, [ebp - 0x428]
push ecx
lea ecx, [ebp - 0x2c84]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push dword [ebp - 0x2c68]
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
or dword [ebp - 4], 0xffffffff
jmp 0x10013eb1
mov esi, dword [ebp - 0x2c40]
xor ecx, ecx
lea edi, [ebp - 0x220]
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10013ec2
sub edi, edx
je 0x10013f75
lea eax, [edi + esi]
cmp eax, 0x27fe
jb 0x10013f24
push ecx
cmp dword [ebp - 0x2c54], 0
je 0x10013f06
lea eax, [esi - 3]
push eax
lea eax, [ebp - 0x2c25]
push eax
push dword [ebp - 0x2c4c]
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
mov dword [ebp - 0x2c54], ecx
jmp 0x10013f1c
push esi
lea eax, [ebp - 0x2c28]
push eax
push dword [ebp - 0x2c4c]
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
mov byte [ebp - 0x2c28], cl
mov esi, ecx
cmp dword [ebp - 0x2c6c], 0
jne 0x10013f49
push 0xffffffffffffffff
push 0x1009f2d0
push 0x2800
lea eax, [ebp - 0x2c28]
push eax
call fcn.1001f294
add esp, 0x10
inc esi
push 0xffffffffffffffff
lea eax, [ebp - 0x220]
push eax
push 0x2800
lea eax, [ebp - 0x2c28]
push eax
call fcn.1001f294
add esp, 0x10
add esi, edi
mov dword [ebp - 0x2c40], esi
and dword [ebp - 0x2c6c], 0
mov esi, dword [ebp - 0x2c68]
test esi, esi
je 0x10013f99
cmp dword [0x100c1c2c], ebx
jl 0x10013f92
push str.Releasing_pSID
call fcn.100144ba
pop ecx
push esi
call fcn.1001f0b9
pop ecx
mov edi, dword [ebp - 0x2c58]
inc edi
mov dword [ebp - 0x2c58], edi
mov esi, dword [ebp - 0x2c48]
jmp 0x10013d32
push ecx
lea eax, [ebp - 0x2c28]
push eax
push dword [ebp - 0x2c4c]
call dword [sym.imp.WS2_32.dll_send]
cmp dword [0x100c1c2c], ebx
jl 0x10013fd8
push str.Releasing_pArray
call fcn.100144ba
pop ecx
push dword [ebp - 0x2c5c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
cmp dword [0x100c1c2c], ebx
jl 0x10013ff7
push str.Releasing_vTokenGroups
call fcn.100144ba
pop ecx
lea eax, [ebp - 0x2c80]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [0x100c1c2c], ebx
jl 0x10014017
push str.Releasing_PADSUser
call fcn.100144ba
pop ecx
mov ecx, dword [ebp - 0x2c30]
test ecx, ecx
je 0x10014027
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x2c2c]
mov ecx, dword [eax]
push dword [ebp - 0x2c38]
push eax
call dword [ecx + 0x1c]
mov esi, eax
jmp 0x10013a40
cmp dword [ebp - 0x2c38], 0
je 0x1001405b
mov eax, dword [ebp - 0x2c2c]
mov ecx, dword [eax]
push dword [ebp - 0x2c38]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x2c60]
test eax, eax
je 0x1001406c
push eax
call fcn.1001eabc
pop ecx
test esi, esi
js 0x100140f9
cmp dword [ebp - 0x2c44], 0
push 1
pop eax
cmove esi, eax
test esi, esi
js 0x100140f9
cmp esi, eax
jne 0x1001409c
cmp dword [0x100c1c2c], ebx
jl 0x1001409c
push str.No_user_object_could_be_found
call fcn.100144ba
pop ecx
mov esi, dword [ebp - 0x2c34]
mov ecx, dword [ebp - 0x2c2c]
test ecx, ecx
je 0x100140b2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x2ca8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
je 0x100140ca
push esi
call fcn.1001eabc
pop ecx
mov edx, dword [ebp - 0x2c3c]
test edx, edx
je 0x100140da
mov ecx, dword [edx]
push edx
call dword [ecx + 8]
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001e010
mov esp, ebp
pop ebp
ret
cmp esi, 0x8007203e
jne 0x10014110
cmp dword [0x100c1c2c], ebx
jl 0x1001409c
push str.Could_not_execute_query._An_invalid_filter_was_specified.
jmp 0x10014096
cmp dword [0x100c1c2c], ebx
jl 0x1001409c
push esi
push str.Query_failed_to_run._HRESULT:__x
call fcn.100144ba
pop ecx
jmp 0x1001409b
cmp dword [0x100c1c2c], ebx
jl 0x100140a2
push str.Could_not_execute_query._Could_not_bind_to_the_container.
call fcn.100144ba
pop ecx
jmp 0x100140a2
mov ecx, dword [ebp - 0x2c3c]
test ecx, ecx
je 0x10014155
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push esi
call fcn.1001eabc
pop ecx
lea eax, [ebp - 0x2ca8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [0x100c1c2c], ebx
jl 0x1001380b
push str.DGWin2k:_Tiny_buffer._Out_of_here.
jmp 0x1001386d