Function at 0x180036d90
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0xb30
mov r13, qword [rsp + 0xb78]
mov rdi, r9
mov qword [rsp + 0x20], r9
mov rsi, r8
mov r9, r8
mov rbp, rdx
lea rcx, [rsp + 0xb0]
lea r8, str._s_s
xor r12d, r12d
mov edx, 0x80
mov word [rsp + 0x50], 0
mov dword [r13], r12d
call qword [sym.imp.ntdll.dll__snprintf]
mov rbx, qword [rsp + 0xb70]
mov r9, rdi
test rbx, rbx
mov edx, 0x800
lea rcx, [rsp + 0x330]
jne 0x180036e25
lea r8, str.__xml_version_1.0____r_n_s:Envelope_xmlns:s_http:__schemas.xmlsoap.org_soap_envelope___s:encodingStyle_http:__schemas.xmlsoap.org_soap_encoding____s:Body__u:_s_xmlns:u__s____u:_s___s:Body___s:Envelope__r_n
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll__snprintf]
jmp 0x180036f4a
lea r8, str.__xml_version_1.0____r_n_s:Envelope_xmlns:s_http:__schemas.xmlsoap.org_soap_envelope___s:encodingStyle_http:__schemas.xmlsoap.org_soap_encoding____s:Body__u:_s_xmlns:u__s__
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll__snprintf]
mov rdx, qword [rbx]
test rdx, rdx
movsxd rcx, eax
lea rcx, [rsp + rcx + 0x330]
je 0x180036f08
nop
lea rax, [rcx + 0x64]
lea r8, [rsp + 0xb30]
cmp r8, rax
jbe 0x1800370c3
mov byte [rcx], 0x3c
movzx r8d, byte [rdx]
add rcx, 1
test r8b, r8b
mov rax, rdx
je 0x180036e93
nop
nop
add rax, 1
mov byte [rcx], r8b
add rcx, 1
mov r8b, byte [rax]
test r8b, r8b
jne 0x180036e80
mov rax, qword [rbx + 8]
mov byte [rcx], 0x3e
add rcx, 1
test rax, rax
je 0x180036ec3
movzx r8d, byte [rax]
test r8b, r8b
je 0x180036ec3
nop
add rax, 1
mov byte [rcx], r8b
add rcx, 1
mov r8b, byte [rax]
test r8b, r8b
jne 0x180036eb0
mov byte [rcx], 0x3c
mov byte [rcx + 1], 0x2f
movzx eax, byte [rdx]
add rcx, 2
test al, al
je 0x180036ef0
nop
nop
nop
add rdx, 1
mov byte [rcx], al
add rcx, 1
mov al, byte [rdx]
test al, al
jne 0x180036ee0
mov rdx, qword [rbx + 0x10]
add rbx, 0x10
mov byte [rcx], 0x3e
add rcx, 1
test rdx, rdx
jne 0x180036e50
movzx eax, byte [rdi]
mov byte [rcx], 0x3c
mov byte [rcx + 1], 0x2f
mov byte [rcx + 2], 0x75
mov byte [rcx + 3], 0x3a
add rcx, 4
test al, al
je 0x180036f32
add rdi, 1
mov byte [rcx], al
add rcx, 1
mov al, byte [rdi]
test al, al
jne 0x180036f22
lea r8, [rsp + 0xb30]
lea rdx, str.___s:Body___s:Envelope__r_n
sub r8, rcx
call qword [sym.imp.ntdll.dll_strncpy]
test rbp, rbp
je 0x1800370c3
lea r9, [rsp + 0xb70]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rbp
mov qword [rsp + 0x20], r12
call fcn.180039600
test eax, eax
je 0x1800370c3
movzx ebx, word [rsp + 0x50]
lea rcx, [rsp + 0x60]
xor r8d, r8d
movzx edx, bx
call fcn.1800398a0
test eax, eax
movsxd rdi, eax
js 0x1800370c3
lea rcx, [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp bx, 0x50
mov byte [rsp + 0xb78], r12b
movsxd rsi, eax
je 0x180036fd7
lea r8, str.:_hu
lea rcx, [rsp + 0xb78]
movzx r9d, bx
mov edx, 8
call qword [sym.imp.ntdll.dll__snprintf]
mov r9, qword [rsp + 0xb70]
lea rax, [rsp + 0xb0]
lea r8, str.POST__s_HTTP__s_r_nHost:__s_s_r_nUser_Agent:_Microsoft_Windows_NT_5.1__UPnP_1.1__MiniUPnPc_2.0_r_nContent_Length:__d_r_nContent_Type:_text_xml_r_nSOAPAction:___s__r_nConnection:_Close_r_nCache_Control:_no_cache_r_nPragma:_no_cache_r_n_r_n
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
lea rax, [rsp + 0xb78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
lea rcx, [rsp + 0x130]
mov qword [rsp + 0x28], rax
lea rax, [0x18004b80c]
mov edx, 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll__snprintf]
mov rcx, qword [0x180052eb0]
movsxd rbx, eax
xor edx, edx
lea r12d, [rbx + rsi]
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
je 0x1800370ba
lea rdx, [rsp + 0x130]
mov r8, rbx
mov rcx, rax
call sub.ntdll.dll_memcpy
lea rcx, [rbx + rbp]
lea rdx, [rsp + 0x330]
mov r8, rsi
call sub.ntdll.dll_memcpy
xor r9d, r9d
mov r8d, r12d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [0x180052eb0]
mov r8, rbp
xor edx, edx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jle 0x1800370ba
mov rdx, r13
mov ecx, edi
call fcn.180038d90
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, rbx
jmp 0x1800370c5
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
lea r11, [rsp + 0xb30]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret