Function at 0x56e4c0
Capabilities:
Prepare http request
Receive http response
Set http header

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
call fcn.0056e3a0
test al, al
jne 0x56e4e8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
mov ax, 1
lock xadd word [0x634024], ax
inc ax
push 0x1000
push 4
push dword [0x633a54]
movzx esi, ax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], 0x1000
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 1
push esi
push dword [esp + 0x44]
mov esi, dword [0x635fd8]
mov ebp, eax
push dword [esp + 0x44]
lea eax, [esp + 0x24]
mov ecx, esi
push eax
push ebp
call dword [0x5a9914]
call esi
test eax, eax
setne cl
test eax, eax
jne 0x56e591
push ebp
push eax
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword ds:[esp + 0x14]
push 4
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, dword [0x635fd8]
mov ebp, eax
push 1
push dword [esp + 0x24]
lea eax, [esp + 0x1c]
mov ecx, esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push eax
push ebp
call dword [0x5a9914]
call esi
test eax, eax
setne cl
test cl, cl
je 0x56e6fd
mov ecx, dword ds:[esp + 0x34]
call fcn.0056e1c0
test eax, eax
je 0x56e6fd
push 0x800000
push 0x6312a4
push 0
push 0
push str._dns_query
push str.POST
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
je 0x56e71f
push 0xa0000000
push 0xffffffffffffffff
push str.Content_Type:_application_dns_message
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
cmp dword [0x62db64], 0x3e
ja 0x56e60a
push 4
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], 0x1000
push eax
push 0x1f
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov eax, dword [esp + 0x14]
push 0
push eax
push eax
push ebp
push 0
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
nop
test eax, eax
je 0x56e6dd
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x56e6dd
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
call sym.SystemInformer.exe_Ordinal_2025
test al, al
je 0x56e6d9
mov esi, dword ds:[esp + 0x2c]
mov dword [esp + 0x24], edi
cmp esi, 0xffff
ja 0x56e6d9
mov edi, dword [esp + 0x18]
movzx eax, word [edi]
mov dh, al
mov dl, ah
movzx eax, word [edi + 4]
mov ch, al
mov word [edi], dx
mov cl, ah
movzx eax, word [edi + 6]
mov word [edi + 4], cx
mov ch, al
mov cl, ah
movzx eax, word [edi + 8]
mov word [edi + 6], cx
mov ch, al
mov cl, ah
movzx eax, word [edi + 0xa]
mov word [edi + 8], cx
mov ch, al
mov cl, ah
mov word [edi + 0xa], cx
cmp dx, word [esp + 0x20]
jne 0x56e6dd
lea eax, ds:[esp + 0x24]
push eax
push esi
mov esi, dword [0x635fdc]
mov ecx, esi
push edi
call dword [0x5a9914]
call esi
mov eax, dword [esp + 0x24]
xor ecx, ecx
test eax, eax
cmovne ecx, eax
mov dword [esp + 0x1c], ecx
jmp 0x56e6dd
mov edi, dword [esp + 0x18]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test edi, edi
je 0x56e6f9
push edi
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [esp + 0x1c]
nop dword [eax]
test ebp, ebp
je 0x56e713
push ebp
push 0
push dword [0x633a54]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x20
ret 0xc
xor ebx, ebx
jmp 0x56e6fd