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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004897e
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2d08
call fcn.10030170
mov eax, dword [0x10069410]
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.1002d750
add esp, 0xc
mov dword [ebp - 0x2c3c], ebx
mov dword [ebp - 0x2c2c], ebx
push 0x208
call fcn.10001835
pop ecx
mov esi, eax
mov dword [ebp - 0x2c34], esi
mov dword [ebp - 0x2c44], ebx
test edi, edi
jne 0x1002748c
xor eax, eax
jmp 0x10027d57
push 6
pop ebx
cmp dword [0x1006ef44], ebx
jl 0x100274a2
push str.DGWin2k:_Inside_ShowDomainUserGroupsWin2k.
call fcn.1001fbc0
pop ecx
lea eax, [ebp - 0x2c3c]
push eax
push 0x1004a490
push 1
xor edi, edi
push edi
push edi
push str.LDAP:__rootDSE
call dword [sym.imp.ACTIVEDS.dll_ADsOpenObject]
test eax, eax
jns 0x100274ef
mov ecx, dword [ebp - 0x2c3c]
test ecx, ecx
je 0x100274d3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push esi
call fcn.100186aa
pop ecx
cmp dword [0x1006ef44], ebx
jl 0x10027485
push str.DGWin2k:_Could_not_open_RootDSE.
call fcn.1001fbc0
pop ecx
jmp 0x10027485
cmp dword [0x1006ef44], ebx
jl 0x10027502
push str.DGWin2k:_Grabbed_RootDSE.
call fcn.1001fbc0
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 0x10027d39
cmp dword [0x1006ef44], ebx
jl 0x10027535
push str.DGWin2k:_Grabbed_defaultNamingContext.
call fcn.1001fbc0
pop ecx
push str.LDAP:__
push 0x104
push esi
call fcn.10004249
add esp, 0xc
mov ecx, dword [ebp - 0x2ca0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10027551
sub ecx, edx
sar ecx, 1
mov eax, 0x104
cmp ecx, eax
jae 0x10027dbf
push dword [ebp - 0x2ca0]
push eax
push esi
call fcn.10005de1
add esp, 0xc
lea eax, [ebp - 0x2c2c]
push eax
push 0x1004a4b0
push 1
push edi
push edi
push esi
call dword [sym.imp.ACTIVEDS.dll_ADsOpenObject]
test eax, eax
js 0x10027da3
cmp dword [0x1006ef44], ebx
jl 0x100275af
push str.DGWin2k:_Opened_object.
call fcn.1001fbc0
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.10001835
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 0x10027669
mov ecx, dword [ebp - 0x2c3c]
test ecx, ecx
je 0x10027622
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x2c60]
push eax
call fcn.100186aa
pop ecx
push esi
call fcn.100186aa
pop ecx
mov ecx, dword [ebp - 0x2c2c]
test ecx, ecx
je 0x10027646
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 [0x1006ef44], ebx
jl 0x10027485
push str.DGWin2k:_Could_not_setsearchpreference.
jmp 0x100274e7
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 0x10027cd5
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 0x10027cba
test esi, esi
jne 0x10027cba
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 0x10027ca1
cmp dword [0x1006ef44], ebx
jl 0x10027715
push str.Alloc_pADsUser
call fcn.1001fbc0
pop ecx
lea eax, [ebp - 0x2c30]
push eax
push 0x1004a4a0
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 0x10027ca1
mov dword [ebp - 0x2c6c], 1
mov dword [ebp - 0x2c90], str.TokenGroups
cmp dword [0x1006ef44], ebx
jl 0x10027777
push str.Alloc_username
call fcn.1001fbc0
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 0x100277b7
cmp dword [0x1006ef44], ebx
jl 0x100277a6
push str.DGWin2k:_Could_not_get_Name.
call fcn.1001fbc0
pop ecx
mov eax, dword [ebp - 0x2c30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100276ba
push dword [ebp - 0x2c50]
push 0x1005e29c
push 0xffffffffffffffff
push 0x2800
lea eax, [ebp - 0x2c28]
push eax
call fcn.10006991
add esp, 0x14
lea ecx, [ebp - 0x2c28]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100277e1
sub ecx, edx
mov dword [ebp - 0x2c40], ecx
cmp dword [0x1006ef44], ebx
jl 0x10027803
push str.Free_username
call fcn.1001fbc0
pop ecx
push dword [ebp - 0x2c50]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [0x1006ef44], ebx
jl 0x10027822
push str.Alloc_vTokenGroups_
call fcn.1001fbc0
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 0x10027861
cmp dword [0x1006ef44], ebx
jl 0x100277a6
push str.DGWin2k:_Couldnt_buildvararraystr.
jmp 0x100277a0
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 [0x1006ef44], ebx
jl 0x10027892
push str.Free_vTokenGroups
call fcn.1001fbc0
pop ecx
lea eax, [ebp - 0x2c80]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x100278c9
cmp dword [0x1006ef44], ebx
jl 0x100278b6
push str.DGWin2k:_Couldnt_getinfoex.
call fcn.1001fbc0
pop ecx
mov eax, dword [ebp - 0x2c30]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor edi, edi
jmp 0x100276ba
cmp dword [0x1006ef44], ebx
jl 0x100278ef
push str.DGWin2k:_Getting_tokengroups.
call fcn.1001fbc0
pop ecx
cmp dword [0x1006ef44], ebx
jl 0x100278ef
push str.Alloc_vtokengroups_again_
call fcn.1001fbc0
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 0x1002793b
cmp dword [0x1006ef44], ebx
jl 0x10027920
push str.DGWin2k:_Could_not_get_tokengroups.
call fcn.1001fbc0
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 0x100278c2
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 [0x1006ef44], ebx
jl 0x1002796c
push str.Alloc_pArray
call fcn.1001fbc0
pop ecx
lea eax, [ebp - 0x2c88]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov esi, eax
test esi, esi
jns 0x1002798f
cmp dword [0x1006ef44], ebx
jl 0x10027920
push str.DGWin2k:_Couldnt_SafeArrayAccessData.
jmp 0x1002791a
mov esi, dword [ebp - 0x2c48]
cmp dword [0x1006ef44], ebx
jl 0x100279ac
push esi
push edi
push str.DGWin2k:_about_to_loop_through_sids._lbound_is__d_nosids_is__d
call fcn.1001fbc0
add esp, 0xc
mov dword [ebp - 0x2c64], edi
cmp edi, esi
jae 0x10027a40
xor eax, eax
mov byte [ebp - 0x220], al
mov esi, 0x200
push esi
push eax
lea eax, [ebp - 0x21f]
push eax
call fcn.1002d750
add esp, 0xc
xor eax, eax
mov byte [ebp - 0x428], al
push esi
push eax
lea eax, [ebp - 0x427]
push eax
call fcn.1002d750
add esp, 0xc
cmp dword [0x1006ef44], ebx
jl 0x10027a04
push str.Alloc_psid
call fcn.1001fbc0
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.10027224
pop ecx
test eax, eax
jns 0x10027a80
cmp dword [0x1006ef44], ebx
jl 0x10027a40
push dword [ebp - 0x2c50]
push str.DGWin2k:_VarToBytes_bugged_out._The_UserName_is__S
call fcn.1001fbc0
pop ecx
pop ecx
push 0xffffffffffffffff
push 0x10053334
push 0x2800
lea eax, [ebp - 0x2c28]
push eax
call fcn.100014e3
add esp, 0x10
mov ecx, dword [ebp - 0x2c40]
inc ecx
xor edi, edi
push edi
cmp dword [ebp - 0x2c54], edi
je 0x10027c2b
lea eax, [ecx - 3]
push eax
lea eax, [ebp - 0x2c25]
jmp 0x10027c32
cmp dword [0x1006ef44], ebx
jl 0x10027a93
push str.Attempting_sid_translation
call fcn.1001fbc0
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 0x10027b2b
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 0x10027b3c
sub edi, edx
je 0x10027bef
lea eax, [edi + esi]
cmp eax, 0x27fe
jb 0x10027b9e
push ecx
cmp dword [ebp - 0x2c54], 0
je 0x10027b80
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 0x10027b96
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 0x10027bc3
push 0xffffffffffffffff
push 0x10053b00
push 0x2800
lea eax, [ebp - 0x2c28]
push eax
call fcn.100014e3
add esp, 0x10
inc esi
push 0xffffffffffffffff
lea eax, [ebp - 0x220]
push eax
push 0x2800
lea eax, [ebp - 0x2c28]
push eax
call fcn.100014e3
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 0x10027c13
cmp dword [0x1006ef44], ebx
jl 0x10027c0c
push str.Releasing_pSID
call fcn.1001fbc0
pop ecx
push esi
call fcn.100130ba
pop ecx
mov edi, dword [ebp - 0x2c58]
inc edi
mov dword [ebp - 0x2c58], edi
mov esi, dword [ebp - 0x2c48]
jmp 0x100279ac
push ecx
lea eax, [ebp - 0x2c28]
push eax
push dword [ebp - 0x2c4c]
call dword [sym.imp.WS2_32.dll_send]
cmp dword [0x1006ef44], ebx
jl 0x10027c52
push str.Releasing_pArray
call fcn.1001fbc0
pop ecx
push dword [ebp - 0x2c5c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
cmp dword [0x1006ef44], ebx
jl 0x10027c71
push str.Releasing_vTokenGroups
call fcn.1001fbc0
pop ecx
lea eax, [ebp - 0x2c80]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [0x1006ef44], ebx
jl 0x10027c91
push str.Releasing_PADSUser
call fcn.1001fbc0
pop ecx
mov ecx, dword [ebp - 0x2c30]
test ecx, ecx
je 0x10027ca1
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 0x100276ba
cmp dword [ebp - 0x2c38], 0
je 0x10027cd5
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 0x10027ce6
push eax
call fcn.100186aa
pop ecx
test esi, esi
js 0x10027d73
cmp dword [ebp - 0x2c44], 0
push 1
pop eax
cmove esi, eax
test esi, esi
js 0x10027d73
cmp esi, eax
jne 0x10027d16
cmp dword [0x1006ef44], ebx
jl 0x10027d16
push str.No_user_object_could_be_found
call fcn.1001fbc0
pop ecx
mov esi, dword [ebp - 0x2c34]
mov ecx, dword [ebp - 0x2c2c]
test ecx, ecx
je 0x10027d2c
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 0x10027d44
push esi
call fcn.100186aa
pop ecx
mov edx, dword [ebp - 0x2c3c]
test edx, edx
je 0x10027d54
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.1000adad
mov esp, ebp
pop ebp
ret
cmp esi, 0x8007203e
jne 0x10027d8a
cmp dword [0x1006ef44], ebx
jl 0x10027d16
push str.Could_not_execute_query._An_invalid_filter_was_specified.
jmp 0x10027d10
cmp dword [0x1006ef44], ebx
jl 0x10027d16
push esi
push str.Query_failed_to_run._HRESULT:__x
call fcn.1001fbc0
pop ecx
jmp 0x10027d15
cmp dword [0x1006ef44], ebx
jl 0x10027d1c
push str.Could_not_execute_query._Could_not_bind_to_the_container.
call fcn.1001fbc0
pop ecx
jmp 0x10027d1c
mov ecx, dword [ebp - 0x2c3c]
test ecx, ecx
je 0x10027dcf
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push esi
call fcn.100186aa
pop ecx
lea eax, [ebp - 0x2ca8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [0x1006ef44], ebx
jl 0x10027485
push str.DGWin2k:_Tiny_buffer._Out_of_here.
jmp 0x100274e7