Function at 0x10023040
Capabilities:
Access peb ldr_data
Create thread
Link many functions at runtime
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069f36
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x100801a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xb0], edi
push 0
push 0
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
call esi
mov dword [edi], eax
push 0
push 0
push 0
call esi
mov dword [edi + 4], eax
push 0
push 0
push 0
call esi
mov dword [edi + 8], eax
push 0
push 0
push 0
call esi
mov dword [edi + 0xc], eax
lea ebx, [edi + 0x14]
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], 0xf
mov byte [ebx], al
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], 0xf
mov byte [edi + 0x2c], al
mov byte [ebp - 4], 6
push str.Iphlpapi.dll
mov dword [edi + 0x64], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
mov dword [edi + 0x54], ecx
test ecx, ecx
je 0x10023155
push str.IcmpCreateFile
push ecx
call esi
push str.IcmpCloseHandle
push dword [edi + 0x54]
mov dword [edi + 0x58], eax
call esi
push str.IcmpSendEcho
push dword [edi + 0x54]
mov dword [edi + 0x5c], eax
call esi
cmp dword [edi + 0x58], 0
mov dword [edi + 0x60], eax
je 0x10023145
cmp dword [edi + 0x5c], 0
je 0x10023145
test eax, eax
jne 0x100231ac
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x54], 0
push str.Icmp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi + 0x54], eax
test eax, eax
je 0x10023627
push str.IcmpCreateFile
push eax
call esi
push str.IcmpCloseHandle
push dword [edi + 0x54]
mov dword [edi + 0x58], eax
call esi
push str.IcmpSendEcho
push dword [edi + 0x54]
mov dword [edi + 0x5c], eax
call esi
cmp dword [edi + 0x58], 0
mov dword [edi + 0x60], eax
je 0x10023617
cmp dword [edi + 0x5c], 0
je 0x10023617
test eax, eax
je 0x10023617
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
jb 0x100231b8
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x100233a0
push 0x20
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xf
call fcn.10042cf2
mov dword [ebp - 0x28], eax
mov ecx, 7
mov dword [ebp - 0x18], 0x1e
mov esi, str.Could_not_find_IP_address_for
mov dword [ebp - 0x14], 0x1f
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add esp, 4
movsw word es:[edi], word [esi]
mov byte [eax + 0x1e], 0
mov byte [ebp - 4], 7
lea ecx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
jb 0x1002321f
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
mov eax, esi
mov edx, dword [ebp - 0x18]
sub eax, edx
mov edi, dword [ebp + 0x18]
cmp edi, eax
ja 0x10023258
lea eax, [edx + edi]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmp esi, 0x10
jb 0x10023241
mov eax, dword [ebp - 0x28]
push edi
lea esi, [eax + edx]
push ecx
push esi
call fcn.10044580
add esp, 0xc
mov byte [esi + edi], 0
lea eax, [ebp - 0x28]
jmp 0x10023270
push edi
push ecx
mov byte [ebp - 0xa8], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0xa8]
push edi
call fcn.10008860
mov ecx, dword [eax + 4]
mov esi, dword [eax]
mov edi, dword [eax + 0x14]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0xb4], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xa4], ecx
cmp ebx, eax
je 0x10023339
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x100232ed
mov eax, dword [ebx]
inc ecx
cmp ecx, 0x1000
jb 0x100232e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023768
mov eax, edx
push ecx
push eax
call fcn.10042d22
add esp, 8
mov eax, dword [ebp - 0xa8]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edi
mov edi, 0xf
mov byte [ebp - 0xa0], 0
mov esi, dword [ebp - 0xa0]
cmp edi, 0x10
jb 0x10023369
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1002335f
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023768
push ecx
push esi
call fcn.10042d22
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x1002370e
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10023704
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023768
jmp 0x10023704
mov eax, dword [edi + 0x58]
call eax
mov dword [edi + 0x50], eax
cmp eax, 0xffffffff
jne 0x1002345d
push 0x20
mov dword [ebp - 0x40], 0
call fcn.10042cf2
mov edx, eax
mov ecx, 7
mov esi, str.Unable_to_open_ping_service.
mov dword [ebp - 0xa4], edx
mov edi, edx
mov dword [ebp - 0x40], edx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x40]
mov byte [edx + 0x1c], 0
add esp, 4
mov eax, 0x1f
cmp ebx, ecx
je 0x100236e2
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x1002342d
mov eax, dword [ebx]
inc ecx
cmp ecx, 0x1000
jb 0x10023418
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002376d
mov eax, edx
push ecx
push eax
call fcn.10042d22
mov edx, dword [ebp - 0xa4]
add esp, 8
mov eax, 0x1f
mov dword [ebx + 0x10], 0
xor ecx, ecx
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebx], edx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
mov byte [ebp - 0x40], cl
mov edx, dword [ebp - 0x40]
mov dword [ebx + 0x10], 0x1c
jmp 0x100236da
push 0x40
call fcn.10042d35
push 0x40
push 0xffffffffffffffaa
push eax
mov dword [edi + 0x44], eax
call fcn.10044b10
add esp, 0x10
push 0x20
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [edi + 0x48], ecx
test ecx, ecx
jne 0x10023534
push 0x30
mov dword [ebp - 0x58], eax
call fcn.10042cf2
mov edx, eax
mov ecx, 0xb
mov esi, str.Failed_to_allocate_global_ping_packet_buffer.
mov dword [ebp - 0xa4], edx
mov edi, edx
mov dword [ebp - 0x58], edx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x58]
add esp, 4
mov eax, 0x2f
movsb byte es:[edi], byte [esi]
mov byte [edx + 0x2d], 0
cmp ebx, ecx
je 0x100236e2
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x10023504
mov eax, dword [ebx]
inc ecx
cmp ecx, 0x1000
jb 0x100234ef
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002376d
mov eax, edx
push ecx
push eax
call fcn.10042d22
mov edx, dword [ebp - 0xa4]
add esp, 8
mov eax, 0x2f
mov dword [ebx + 0x10], 0
xor ecx, ecx
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebx], edx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
mov byte [ebp - 0x58], cl
mov edx, dword [ebp - 0x58]
mov dword [ebx + 0x10], 0x2d
jmp 0x100236da
mov eax, dword [edi + 0x44]
push 0
push 0
mov dword [ecx + 0x10], eax
mov ecx, 4
mov eax, dword [edi + 0x48]
push edi
push 0x100239a0
push 0
mov word [eax + 0xc], cx
push 0
mov word [edi + 0x11], pe_nt_image_headers32
mov byte [edi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x10023718
push 0x30
mov dword [ebp - 0x70], eax
call fcn.10042cf2
mov edx, eax
mov ecx, 8
mov esi, str.Failed_to_create_thread_for_pinger.
mov dword [ebp - 0xa4], edx
mov edi, edx
mov dword [ebp - 0x70], edx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x70]
add esp, 4
mov eax, 0x2f
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov byte [edx + 0x23], 0
cmp ebx, ecx
je 0x100236e2
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x100235e7
mov eax, dword [ebx]
inc ecx
cmp ecx, 0x1000
jb 0x100235d2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002376d
mov eax, edx
push ecx
push eax
call fcn.10042d22
mov edx, dword [ebp - 0xa4]
add esp, 8
mov eax, 0x2f
mov dword [ebx + 0x10], 0
xor ecx, ecx
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebx], edx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
mov byte [ebp - 0x70], cl
mov edx, dword [ebp - 0x70]
mov dword [ebx + 0x10], 0x23
jmp 0x100236da
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [edi + 0x54], 0
push 0x40
mov dword [ebp - 0x88], 0
call fcn.10042cf2
mov edx, eax
mov ecx, 0xe
mov esi, str.Pinger_was_unable_to_load_either_Icmp.dll_or_Iphlpapi.dll
mov dword [ebp - 0xa4], edx
mov edi, edx
mov dword [ebp - 0x88], edx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x88]
add esp, 4
mov eax, 0x3f
movsb byte es:[edi], byte [esi]
mov byte [edx + 0x39], 0
cmp ebx, ecx
je 0x100236e2
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x100236a9
mov eax, dword [ebx]
inc ecx
cmp ecx, 0x1000
jb 0x10023694
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002376d
mov eax, edx
push ecx
push eax
call fcn.10042d22
mov edx, dword [ebp - 0xa4]
add esp, 8
mov eax, 0x3f
mov dword [ebx + 0x10], 0
xor ecx, ecx
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [ebx], edx
mov dword [ebx + 4], ecx
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], ecx
mov byte [ebp - 0x88], cl
mov edx, dword [ebp - 0x88]
mov dword [ebx + 0x10], 0x39
mov dword [ebx + 0x14], eax
mov eax, 0xf
cmp eax, 0x10
jb 0x1002370e
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x10023704
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002376d
push ecx
push edx
call fcn.10042d22
add esp, 8
mov edi, dword [ebp - 0xac]
mov byte [edi + 0x12], 0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x10023748
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002373e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002376d
push ecx
push edx
call fcn.10042d22
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10042ce4
mov esp, ebp
pop ebp
ret 0x18
call fcn.1004fd3c
call fcn.1004fd3c
int3