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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10049789
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2cf0
call fcn.1001c1e0
mov eax, dword [0x1006a098]
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
xor ebx, ebx
mov byte [ebp - 0x2c1c], bl
push 0x27ff
push ebx
lea eax, [ebp - 0x2c1b]
push eax
call fcn.10019f50
mov dword [ebp - 0x2c30], ebx
mov dword [ebp - 0x2c20], ebx
push 0x208
call fcn.10018966
add esp, 0x10
mov esi, eax
mov dword [ebp - 0x2c28], esi
mov dword [ebp - 0x2c3c], ebx
cmp dword [ebp + 8], ebx
jne 0x10014a56
xor eax, eax
jmp 0x10015315
push 6
pop ebx
cmp dword [0x1006d34c], ebx
jl 0x10014a6c
push str.DGWin2k:_Inside_ShowDomainUserGroupsWin2k.
call fcn.100024d3
pop ecx
lea eax, [ebp - 0x2c30]
push eax
push 0x1005c500
push 1
xor edi, edi
push edi
push edi
push str.LDAP:__rootDSE
call sub.ACTIVEDS.dll_ADsOpenObject
test eax, eax
jns 0x10014ab8
mov ecx, dword [ebp - 0x2c30]
test ecx, ecx
je 0x10014a9c
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push esi
call fcn.100189dc
pop ecx
cmp dword [0x1006d34c], ebx
jl 0x10014a4f
push str.DGWin2k:_Could_not_open_RootDSE.
call fcn.100024d3
pop ecx
jmp 0x10014a4f
cmp dword [0x1006d34c], ebx
jl 0x10014acb
push str.DGWin2k:_Grabbed_RootDSE.
call fcn.100024d3
pop ecx
mov eax, dword [ebp - 0x2c30]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c94]
push edx
push str.defaultNamingContext
push eax
call dword [ecx + 0x3c]
test eax, eax
js 0x100152f7
cmp dword [0x1006d34c], ebx
jl 0x10014afe
push str.DGWin2k:_Grabbed_defaultNamingContext.
call fcn.100024d3
pop ecx
push str.LDAP:__
push 0x104
push esi
call fcn.1001dd63
add esp, 0xc
mov ecx, dword [ebp - 0x2c8c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x10014b1a
sub ecx, edx
sar ecx, 1
mov eax, 0x104
cmp ecx, eax
jae 0x1001537d
push dword [ebp - 0x2c8c]
push eax
push esi
call fcn.1001dcf7
add esp, 0xc
lea eax, [ebp - 0x2c20]
push eax
push 0x1005c520
push 1
push edi
push edi
push esi
call sub.ACTIVEDS.dll_ADsOpenObject
test eax, eax
js 0x10015361
cmp dword [0x1006d34c], ebx
jl 0x10014b77
push str.DGWin2k:_Opened_object.
call fcn.100024d3
pop ecx
mov dword [ebp - 0x2d00], 5
push 7
pop eax
mov dword [ebp - 0x2cf8], eax
mov dword [ebp - 0x2cf0], 2
mov dword [ebp - 0x2cd8], eax
mov dword [ebp - 0x2cd0], eax
mov dword [ebp - 0x2cc8], 0x3e8
push 0x208
call fcn.10018966
pop ecx
mov dword [ebp - 0x2c4c], eax
mov dword [ebp - 0x2c2c], edi
mov ecx, dword [ebp - 0x2c20]
mov edx, dword [ecx]
push 2
lea eax, [ebp - 0x2d00]
push eax
push ecx
call dword [edx + 0xc]
test eax, eax
jns 0x10014c31
mov ecx, dword [ebp - 0x2c30]
test ecx, ecx
je 0x10014bea
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x2c4c]
push eax
call fcn.100189dc
push esi
call fcn.100189dc
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c20]
test ecx, ecx
je 0x10014c0e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x2c94]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [0x1006d34c], ebx
jl 0x10014a4f
push str.DGWin2k:_Could_not_setsearchpreference.
jmp 0x10014ab0
mov dword [ebp - 0x2c80], str.ADsPath
mov eax, dword [ebp - 0x2c20]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c2c]
push edx
push 1
lea edx, [ebp - 0x2c80]
push edx
push str.__objectCategoryperson__objectClassuser__
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
js 0x10015293
mov eax, dword [ebp - 0x2c20]
mov ecx, dword [eax]
push dword [ebp - 0x2c2c]
push eax
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
js 0x10015278
test esi, esi
jne 0x10015278
inc esi
mov dword [ebp - 0x2c48], esi
mov eax, dword [ebp - 0x2c3c]
inc eax
mov dword [ebp - 0x2c3c], eax
mov dword [ebp - 0x2c78], eax
mov eax, dword [ebp - 0x2c20]
mov ecx, dword [eax]
lea edx, [ebp - 0x2cb0]
push edx
push str.ADsPath
push dword [ebp - 0x2c2c]
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x1001525f
cmp dword [0x1006d34c], ebx
jl 0x10014cdd
push str.Alloc_pADsUser
call fcn.100024d3
pop ecx
lea eax, [ebp - 0x2c24]
push eax
push 0x1005c510
push esi
push edi
push edi
mov eax, dword [ebp - 0x2ca8]
push dword [eax + 8]
call sub.ACTIVEDS.dll_ADsOpenObject
mov esi, eax
mov eax, dword [ebp - 0x2c20]
mov ecx, dword [eax]
lea edx, [ebp - 0x2cb0]
push edx
push eax
call dword [ecx + 0x2c]
test esi, esi
js 0x1001525f
mov dword [ebp - 0x2c50], 1
mov dword [ebp - 0x2c7c], str.TokenGroups
cmp dword [0x1006d34c], ebx
jl 0x10014d3e
push str.Alloc_username
call fcn.100024d3
pop ecx
mov eax, dword [ebp - 0x2c24]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c38]
push edx
push eax
call dword [ecx + 0x1c]
cmp dword [ebp - 0x2c38], 0
jne 0x10014d7e
cmp dword [0x1006d34c], ebx
jl 0x10014d6d
push str.DGWin2k:_Could_not_get_Name.
call fcn.100024d3
pop ecx
mov eax, dword [ebp - 0x2c24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x10014c82
push dword [ebp - 0x2c38]
push 0x10057f54
push 0xffffffffffffffff
push 0x2800
lea eax, [ebp - 0x2c1c]
push eax
call fcn.1001a28e
add esp, 0x14
lea ecx, [ebp - 0x2c1c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10014da8
sub ecx, edx
mov dword [ebp - 0x2c40], ecx
cmp dword [0x1006d34c], ebx
jl 0x10014dca
push str.Free_username
call fcn.100024d3
pop ecx
push dword [ebp - 0x2c38]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [0x1006d34c], ebx
jl 0x10014de9
push str.Alloc_vTokenGroups_
call fcn.100024d3
pop ecx
lea eax, [ebp - 0x2c6c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x2c6c]
push eax
push 1
lea eax, [ebp - 0x2c7c]
push eax
call sub.ACTIVEDS.dll_ADsBuildVarArrayStr
mov esi, eax
test esi, esi
jns 0x10014e27
cmp dword [0x1006d34c], ebx
jl 0x10014d6d
push str.DGWin2k:_Couldnt_buildvararraystr.
jmp 0x10014d67
mov eax, dword [ebp - 0x2c24]
mov ecx, dword [eax]
push edi
sub esp, 0x10
lea esi, [ebp - 0x2c6c]
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 [0x1006d34c], ebx
jl 0x10014e58
push str.Free_vTokenGroups
call fcn.100024d3
pop ecx
lea eax, [ebp - 0x2c6c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x10014e8f
cmp dword [0x1006d34c], ebx
jl 0x10014e7c
push str.DGWin2k:_Couldnt_getinfoex.
call fcn.100024d3
pop ecx
mov eax, dword [ebp - 0x2c24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor edi, edi
jmp 0x10014c82
cmp dword [0x1006d34c], ebx
jl 0x10014eb5
push str.DGWin2k:_Getting_tokengroups.
call fcn.100024d3
pop ecx
cmp dword [0x1006d34c], ebx
jl 0x10014eb5
push str.Alloc_vtokengroups_again_
call fcn.100024d3
pop ecx
mov eax, dword [ebp - 0x2c24]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c6c]
push edx
push str.TokenGroups
push eax
call dword [ecx + 0x3c]
mov esi, eax
test esi, esi
jns 0x10014f01
cmp dword [0x1006d34c], ebx
jl 0x10014ee6
push str.DGWin2k:_Could_not_get_tokengroups.
call fcn.100024d3
pop ecx
mov eax, dword [ebp - 0x2c24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x2c6c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x10014e88
mov esi, dword [ebp - 0x2c64]
mov dword [ebp - 0x2c5c], esi
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x2c34], eax
mov edi, dword [esi + 0x14]
mov dword [ebp - 0x2c44], edi
cmp dword [0x1006d34c], ebx
jl 0x10014f32
push str.Alloc_pArray
call fcn.100024d3
pop ecx
lea eax, [ebp - 0x2c74]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnaccessData]
mov esi, eax
test esi, esi
jns 0x10014f55
cmp dword [0x1006d34c], ebx
jl 0x10014ee6
push str.DGWin2k:_Couldnt_SafeArrayAccessData.
jmp 0x10014ee0
mov esi, dword [ebp - 0x2c34]
cmp dword [0x1006d34c], ebx
jl 0x10014f72
push esi
push edi
push str.DGWin2k:_about_to_loop_through_sids._lbound_is__d_nosids_is__d
call fcn.100024d3
add esp, 0xc
mov dword [ebp - 0x2c54], edi
cmp edi, esi
jae 0x10015007
xor eax, eax
mov byte [ebp - 0x218], al
mov esi, 0x200
push esi
push eax
lea eax, [ebp - 0x217]
push eax
call fcn.10019f50
xor eax, eax
mov byte [ebp - 0x41c], al
push esi
push eax
lea eax, [ebp - 0x41b]
push eax
call fcn.10019f50
add esp, 0x18
cmp dword [0x1006d34c], ebx
jl 0x10014fc7
push str.Alloc_psid
call fcn.100024d3
pop ecx
lea eax, [ebp - 0x2c98]
push eax
lea eax, [ebp - 0x2c58]
push eax
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x2c74]
push eax
call fcn.10015d76
add esp, 0xc
test eax, eax
jns 0x10015047
cmp dword [0x1006d34c], ebx
jl 0x10015007
push dword [ebp - 0x2c38]
push str.DGWin2k:_VarToBytes_bugged_out._The_UserName_is__S
call fcn.100024d3
pop ecx
pop ecx
push 0xffffffffffffffff
push 0x1004cc7c
push 0x2800
lea eax, [ebp - 0x2c1c]
push eax
call fcn.1001a319
add esp, 0x10
mov ecx, dword [ebp - 0x2c40]
inc ecx
xor edi, edi
push edi
cmp dword [ebp - 0x2c48], edi
je 0x100151ec
lea eax, [ecx - 3]
push eax
lea eax, [ebp - 0x2c19]
jmp 0x100151f3
cmp dword [0x1006d34c], ebx
jl 0x1001505a
push str.Attempting_sid_translation
call fcn.100024d3
pop ecx
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c70], esi
mov dword [ebp - 0x2c84], esi
lea ecx, [ebp - 0x2c9c]
push ecx
lea ecx, [ebp - 0x2c84]
push ecx
lea ecx, [ebp - 0x41c]
push ecx
lea ecx, [ebp - 0x2c70]
push ecx
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x2c58]
push eax
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
or dword [ebp - 4], 0xffffffff
jmp 0x100150f2
mov esi, dword [ebp - 0x2c40]
xor ecx, ecx
lea edi, [ebp - 0x218]
lea edx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10015103
sub edi, edx
je 0x100151b0
lea eax, [edi + esi]
cmp eax, 0x27fe
jb 0x1001515f
push ecx
cmp dword [ebp - 0x2c48], 0
je 0x10015144
lea eax, [esi - 3]
push eax
lea eax, [ebp - 0x2c19]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
mov dword [ebp - 0x2c48], ecx
jmp 0x10015157
push esi
lea eax, [ebp - 0x2c1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
mov byte [ebp - 0x2c1c], cl
mov esi, ecx
cmp dword [ebp - 0x2c50], 0
jne 0x10015184
push 0xffffffffffffffff
push 0x1004d3c8
push 0x2800
lea eax, [ebp - 0x2c1c]
push eax
call fcn.1001a319
add esp, 0x10
inc esi
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
push 0x2800
lea eax, [ebp - 0x2c1c]
push eax
call fcn.1001a319
add esp, 0x10
add esi, edi
mov dword [ebp - 0x2c40], esi
and dword [ebp - 0x2c50], 0
mov esi, dword [ebp - 0x2c58]
test esi, esi
je 0x100151d4
cmp dword [0x1006d34c], ebx
jl 0x100151cd
push str.Releasing_pSID
call fcn.100024d3
pop ecx
push esi
call fcn.10018b21
pop ecx
mov edi, dword [ebp - 0x2c44]
inc edi
mov dword [ebp - 0x2c44], edi
mov esi, dword [ebp - 0x2c34]
jmp 0x10014f72
push ecx
lea eax, [ebp - 0x2c1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp dword [0x1006d34c], ebx
jl 0x10015210
push str.Releasing_pArray
call fcn.100024d3
pop ecx
push dword [ebp - 0x2c5c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayGetElement]
cmp dword [0x1006d34c], ebx
jl 0x1001522f
push str.Releasing_vTokenGroups
call fcn.100024d3
pop ecx
lea eax, [ebp - 0x2c6c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [0x1006d34c], ebx
jl 0x1001524f
push str.Releasing_PADSUser
call fcn.100024d3
pop ecx
mov ecx, dword [ebp - 0x2c24]
test ecx, ecx
je 0x1001525f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x2c20]
mov ecx, dword [eax]
push dword [ebp - 0x2c2c]
push eax
call dword [ecx + 0x1c]
mov esi, eax
jmp 0x10014c82
cmp dword [ebp - 0x2c2c], 0
je 0x10015293
mov eax, dword [ebp - 0x2c20]
mov ecx, dword [eax]
push dword [ebp - 0x2c2c]
push eax
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x2c4c]
test eax, eax
je 0x100152a4
push eax
call fcn.100189dc
pop ecx
test esi, esi
js 0x10015331
cmp dword [ebp - 0x2c3c], 0
push 1
pop eax
cmove esi, eax
test esi, esi
js 0x10015331
cmp esi, eax
jne 0x100152d4
cmp dword [0x1006d34c], ebx
jl 0x100152d4
push str.No_user_object_could_be_found
call fcn.100024d3
pop ecx
mov esi, dword [ebp - 0x2c28]
mov ecx, dword [ebp - 0x2c20]
test ecx, ecx
je 0x100152ea
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x2c94]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
je 0x10015302
push esi
call fcn.100189dc
pop ecx
mov edx, dword [ebp - 0x2c30]
test edx, edx
je 0x10015312
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.1001890f
mov esp, ebp
pop ebp
ret
cmp esi, 0x8007203e
jne 0x10015348
cmp dword [0x1006d34c], ebx
jl 0x100152d4
push str.Could_not_execute_query._An_invalid_filter_was_specified.
jmp 0x100152ce
cmp dword [0x1006d34c], ebx
jl 0x100152d4
push esi
push str.Query_failed_to_run._HRESULT:__x
call fcn.100024d3
pop ecx
jmp 0x100152d3
cmp dword [0x1006d34c], ebx
jl 0x100152da
push str.Could_not_execute_query._Could_not_bind_to_the_container.
call fcn.100024d3
pop ecx
jmp 0x100152da
mov ecx, dword [ebp - 0x2c30]
test ecx, ecx
je 0x1001538d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push esi
call fcn.100189dc
pop ecx
lea eax, [ebp - 0x2c94]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp dword [0x1006d34c], ebx
jl 0x10014a4f
push str.DGWin2k:_Tiny_buffer._Out_of_here.
jmp 0x10014ab0