Function at 0x1002be90
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007abe0
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.1006ab80
mov eax, dword [0x100a2d20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1020], ecx
mov eax, dword [ebp + 8]
push 0x400
mov dword [ebp - 0x102c], eax
lea eax, [ebp - 0x478]
push 0
push eax
call fcn.1006d400
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.1003b3d0
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x1c
push str.AdbSocketConnect::InitConnect
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call edi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x478]
push str._s_t__d__d___INFO____s:_d__initConnect_n
push eax
call fcn.10007cc0
lea ecx, [ebp - 0x478]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002bf36
sub ecx, edx
lea eax, [ebp - 0x478]
push ecx
push eax
call fcn.1003b520
add esp, 8
lea eax, [ebp - 0x1018]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x1020]
cmp eax, 0xffffffff
push 0x400
push 0
mov dword [ecx + 0x80], eax
lea eax, [ebp - 0x478]
push eax
jne 0x1002bff8
call fcn.1006d400
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.1003b3d0
push 0x23
push str.AdbSocketConnect::InitConnect
call esi
push eax
call edi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x478]
push str._s_t__d__d___ERROR____s:_d__Create_Socket_Failed___n
push eax
call fcn.10007cc0
lea ecx, [ebp - 0x478]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002bfd8
sub ecx, edx
lea eax, [ebp - 0x478]
push ecx
push eax
call fcn.1003b520
add esp, 8
xor al, al
jmp 0x1002c5db
call fcn.1006d400
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.1003b3d0
mov eax, dword [ebp - 0x1020]
push dword [eax + 0x80]
push 0x26
push str.AdbSocketConnect::InitConnect
call esi
push eax
call edi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x478]
push str._s_t__d__d___INFO____s:_d__Create_Socket_Success_with_socket___d___n
push eax
call fcn.10007cc0
lea ecx, [ebp - 0x478]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c050
sub ecx, edx
lea eax, [ebp - 0x478]
push ecx
push eax
call fcn.1003b520
add esp, 8
call fcn.1005ce33
mov ecx, eax
test ecx, ecx
je 0x1002c5f8
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov dword [ebp - 0x1030], eax
mov dword [ebp - 0x1044], 0
lea ecx, [eax + 0x10]
mov dword [ebp - 0x1048], ecx
mov eax, dword [ebp - 0x102c]
xorps xmm0, xmm0
add eax, 0x15
mov dword [ebp - 4], 0
push eax
push str.adb__s__s
lea eax, [ebp - 0x78]
movq qword [ebp - 0x58], xmm0
push 0x28
push eax
movups xmmword [ebp - 0x78], xmm0
movups xmmword [ebp - 0x68], xmm0
call fcn.1002ce60
mov eax, dword [ebp - 0x1020]
xorps xmm0, xmm0
movq qword [ebp - 0x30], xmm0
mov word [ebp - 0x28], 0
movq qword [ebp - 0x3c], xmm0
push dword [eax + 0x80]
lea eax, [ebp - 0x30]
mov word [ebp - 0x34], 0
push str.222_d
push 0xa
push eax
call fcn.1002ce60
mov eax, dword [ebp - 0x1020]
push dword [eax + 0x80]
lea eax, [ebp - 0x3c]
push str.555_d
push 0xa
push eax
call fcn.1002ce60
lea eax, [ebp - 0x30]
push eax
call fcn.10044a84
cdq
mov ecx, 0x186a0
idiv ecx
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x1024], edx
call fcn.10044a84
cdq
mov ecx, 0x186a0
idiv ecx
push 0x400
lea eax, [ebp - 0xa78]
mov dword [ebp - 0x1028], edx
push 0
push eax
call fcn.1006d400
add esp, 0x44
lea eax, [ebp - 0x678]
push 0x200
push 0
push eax
call fcn.1006d400
lea eax, [ebp - 0x78]
push eax
push str._s_shell_am_broadcast__a_com.tdtech.esuite.STOP_CONNECT_SERVICE
lea eax, [ebp - 0x678]
push 0x200
push eax
call fcn.1002ce60
add esp, 0x1c
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x678]
push eax
call fcn.1003a420
push 0x400
push 0
lea eax, [ebp - 0x478]
push eax
call fcn.1006d400
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.1003b3d0
lea eax, [ebp - 0xa78]
push eax
push 0x3a
push str.AdbSocketConnect::InitConnect
call esi
push eax
call edi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x478]
push str._s_t__d__d___INFO____s:_d__run_adb_STOP_CONNECT_SERVICE_response___s___n
push eax
call fcn.10007cc0
lea ecx, [ebp - 0x478]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c202
sub ecx, edx
lea eax, [ebp - 0x478]
push ecx
push eax
call fcn.1003b520
add esp, 8
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x200
lea eax, [ebp - 0x678]
push 0
push eax
call fcn.1006d400
push 0x400
lea eax, [ebp - 0xa78]
push 0
push eax
call fcn.1006d400
push dword [ebp - 0x1024]
lea eax, [ebp - 0x78]
push eax
push str._s_shell_am_broadcast__a_com.tdtech.esuite.START_CONNECT_SERVICE___ei_socket_port__d
lea eax, [ebp - 0x678]
push 0x200
push eax
call fcn.1002ce60
add esp, 0x2c
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x678]
push eax
call fcn.1003a420
push 0x400
lea eax, [ebp - 0x478]
push 0
push eax
call fcn.1006d400
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.1003b3d0
lea eax, [ebp - 0xa78]
push eax
push 0x42
push str.AdbSocketConnect::InitConnect
call esi
push eax
call edi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x478]
push str._s_t__d__d___INFO____s:_d__run_adb_START_CONNECT_SERVICE_response___s___n
push eax
call fcn.10007cc0
lea ecx, [ebp - 0x478]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c2e0
sub ecx, edx
lea eax, [ebp - 0x478]
push ecx
push eax
call fcn.1003b520
add esp, 8
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x200
lea eax, [ebp - 0x678]
push 0
push eax
call fcn.1006d400
push 0x400
lea eax, [ebp - 0xa78]
push 0
push eax
call fcn.1006d400
push dword [ebp - 0x1024]
lea eax, [ebp - 0x78]
push eax
push str._s_forward___remove_tcp:_d
lea eax, [ebp - 0x678]
push 0x200
push eax
call fcn.1002ce60
add esp, 0x2c
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x678]
push eax
call fcn.1003a420
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x200
lea eax, [ebp - 0x678]
push 0
push eax
call fcn.1006d400
push 0x400
lea eax, [ebp - 0xa78]
push 0
push eax
call fcn.1006d400
push dword [ebp - 0x1024]
lea eax, [ebp - 0x78]
push dword [ebp - 0x1028]
push eax
push str._s_forward_tcp:_d_tcp:_d
lea eax, [ebp - 0x678]
push 0x200
push eax
call fcn.1002ce60
add esp, 0x30
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x678]
push eax
call fcn.1003a420
push 0x400
lea eax, [ebp - 0x478]
push 0
push eax
call fcn.1006d400
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.1003b3d0
lea eax, [ebp - 0xa78]
push eax
push 0x51
push str.AdbSocketConnect::InitConnect
call esi
push eax
call edi
push eax
lea eax, [ebp - 0x24]
push eax
push str._s_t__d__d___INFO____s:_d__run_adb_forward_response___s___n
lea eax, [ebp - 0x478]
push eax
call fcn.10007cc0
lea ecx, [ebp - 0x478]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c428
sub ecx, edx
lea eax, [ebp - 0x478]
push ecx
push eax
call fcn.1003b520
add esp, 8
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 2
push str.127.0.0.1
mov word [ebp - 0xe88], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp - 0x1028]
mov dword [ebp - 0xe84], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0xe86], ax
lea eax, [ebp - 0xe88]
push 0x10
push eax
mov eax, dword [ebp - 0x1020]
push dword [eax + 0x80]
call dword [sym.imp.WS2_32.dll_connect]
push 0x400
push 0
cmp eax, 0xffffffff
jne 0x1002c518
lea eax, [ebp - 0x478]
push eax
call fcn.1006d400
add esp, 0xc
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x24]
movups xmmword [ebp - 0x24], xmm0
call fcn.1003b3d0
push 0x5b
push str.AdbSocketConnect::InitConnect
call esi
push eax
call edi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x478]
push str._s_t__d__d___ERROR____s:_d__client_connect_to_Service_SOCKET_ERROR....._n
push eax
call fcn.10007cc0
lea ecx, [ebp - 0x478]
add esp, 0x1c
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c4f3
sub ecx, edx
lea eax, [ebp - 0x478]
push ecx
push eax
call fcn.1003b520
add esp, 8
mov byte [ebp - 0x1019], 0
jmp 0x1002c5b3
lea eax, [ebp - 0xe78]
push eax
call fcn.1006d400
add esp, 0xc
mov dword [ebp - 0x40], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x50]
movups xmmword [ebp - 0x50], xmm0
call fcn.1003b3d0
push 0x5e
push str.AdbSocketConnect::InitConnect
call esi
push eax
call edi
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xe78]
push str._s_t__d__d___INFO____s:_d__client_connect_to_Service_SUCCESS......_n
push eax
call fcn.10007cc0
lea ecx, [ebp - 0xe78]
add esp, 0x1c
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002c570
sub ecx, edx
lea eax, [ebp - 0xe78]
push ecx
push eax
call fcn.1003b520
mov ecx, dword [ebp - 0x1020]
add esp, 8
mov edx, dword [ebp - 0x102c]
mov byte [ebp - 0x1019], 1
mov eax, dword [ecx + 0x80]
mov dword [edx + 0x54], eax
mov eax, dword [ecx + 0x80]
or eax, 0xfff0000
mov dword [edx + 0x50], eax
mov esi, dword [ebp - 0x1030]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002c5d5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x1019]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100699c7
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.1002a780
int3