Function at 0x682819c0
Capabilities:
Access peb ldr_data
Get hostname
Get kernel32 base address
Get process heap flags
Get process heap force flags
Resolve dns

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
cmp dword [ecx + 4], 0x1000
mov eax, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
jne 0x68281cb2
cmp dword [eax + 8], 1
jne 0x68281cbc
mov eax, dword [eax]
cmp word [eax], 8
jne 0x68281ca8
mov edi, dword [eax + 8]
cmp word [edi], 0
jne 0x68281b90
mov eax, dword [sym.imp.kernel32.dll_GetComputerNameExA]
lea edi, [ebp - 0x38]
mov dword [ebp - 0x38], 0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 7
mov dword [ebp - 0x4c], eax
call eax
sub esp, 0xc
mov ecx, dword fs:[0x18]
cmp dword [ecx + 0x34], 0xea
jne 0x68281c8e
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], 0
mov dword [ebp - 0x54], ecx
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x68281c8e
mov dword [esp + 4], eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], edi
mov dword [esp], 7
call eax
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
sub esp, 0xc
test eax, eax
je 0x68281c70
lea eax, [ebp - 0x3c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._getaddrinfo_16
sub esp, 0x10
mov edi, eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
test edi, edi
jne 0x68281c5b
mov edx, dword [ebp - 0x3c]
mov eax, edx
test edx, edx
jne 0x68281b0b
jmp 0x68281c50
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x68281c50
cmp dword [eax + 4], 2
jne 0x68281b00
mov eax, dword [eax + 0x18]
lea ebx, [ebp - 0x38]
mov eax, dword [eax + 4]
mov dword [esp + 8], str._u._u._u._u
mov dword [esp + 4], 0x10
bswap eax
movzx edx, al
mov dword [esp], ebx
mov dword [esp + 0x18], edx
movzx edx, ah
mov dword [esp + 0x14], edx
mov edx, eax
shr eax, 0x18
shr edx, 0x10
mov dword [esp + 0xc], eax
movzx edx, dl
mov dword [esp + 0x10], edx
call sym._swprintf.constprop.0
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sym._freeaddrinfo_4
mov eax, 8
sub esp, 4
mov word [esi], ax
mov dword [esp], ebx
call dword [sym.imp.oleaut32.dll_SysAllocString]
mov dword [esi + 8], eax
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x20
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [ebp - 0x50], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov edx, eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x4c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x68281c8e
mov edx, dword [ebp - 0x4c]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov ecx, dword [ebp - 0x50]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
jmp 0x68281a9e
mov dword [esp], edx
call sym._freeaddrinfo_4
sub esp, 4
lea esp, [ebp - 0x10]
mov edi, 1
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x20
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov edi, 0x8007000e
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x20
mov edi, 0x80020008
jmp 0x68281b7a
mov edi, 0x80020003
jmp 0x68281b7a
mov edi, 0x8002000e
jmp 0x68281b7a