Function at 0x140008a50
Capabilities:
Terminate process
Write file on windows

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
cmp qword [rcx + 0x10], 0
mov rdi, rcx
mov rsi, r8
je 0x140008ad8
cmp qword [rcx + 0x1478], 0
je 0x140008ac2
lea rbx, [rcx + 0x12f8]
xor esi, esi
lea rbp, str.http_header___s:_.s_n
nop word cs:[rax + rax]
nop
mov r8, qword [rbx]
test r8, r8
je 0x140008ab1
mov rax, qword [rbx + 8]
mov rcx, qword [rdi + 0x10]
mov rdx, rbp
mov qword [rsp + 0x20], rax
mov r9d, dword [rbx + 0x10]
call sym.fprintf_1
add rsi, 1
add rbx, 0x18
cmp rsi, qword [rdi + 0x1478]
jb 0x140008a90
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cmp byte [rdx + 0xb], 0x5b
je 0x140008c30
mov edx, 0x3a
mov rcx, r8
call sym.strchr
test rax, rax
je 0x140008ccc
movzx eax, byte [rsi]
cmp al, 0x3a
je 0x140008cb9
test al, al
je 0x140008cb9
xor ebx, ebx
jmp 0x140008b24
cmp al, 0x3a
je 0x140008b34
lea edx, [rbx + 1]
mov ecx, ebx
movzx eax, byte [rsi + rdx]
mov rbx, rdx
test al, al
jne 0x140008b20
lea r13d, [rcx + 2]
lea r12, [rdx + 1]
mov rcx, r13
call dbg.MALLOC
mov rdx, rsi
mov r8, r13
add rsi, r12
mov rcx, rax
mov rbp, rax
call sym.memcpy
movzx ecx, byte [rsi]
mov r12, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test cl, cl
jne 0x140008b7c
jmp 0x140008b83
movzx ecx, byte [rsi + 1]
add rsi, 1
test cl, cl
je 0x140008b83
call r12
test eax, eax
jne 0x140008b70
mov r13, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
jmp 0x140008ba9
lea eax, [rbx - 1]
movzx ecx, byte [rbp + rax]
mov r12, rax
call r13
test eax, eax
je 0x140008ca8
mov ebx, r12d
test ebx, ebx
jne 0x140008b90
mov rbx, rbp
mov byte [rbx], 0
mov rcx, rsi
call sym.strlen
lea r12, [rax + 1]
mov rbx, rax
mov rcx, r12
call dbg.MALLOC
mov r8, r12
mov rdx, rsi
mov rcx, rax
call sym.memcpy
mov byte [rax + rbx], 0
mov rcx, rax
mov rax, qword [rdi + 0x1478]
cmp rax, 0xf
ja 0x140008ac2
lea rdx, [rax + rax*2]
add rax, 1
lea rdx, [rdi + rdx*8]
mov qword [rdx + 0x12f8], rbp
mov qword [rdx + 0x1300], rcx
mov qword [rdx + 0x1308], rbx
mov qword [rdi + 0x1478], rax
xor eax, eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r13, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_ispunct]
lea rbx, [rdx + 0xb]
jmp 0x140008c44
add rbx, 1
movsx ecx, byte [rbx]
call r13
test eax, eax
jne 0x140008c40
mov rcx, rbx
call sym.strlen
mov ebp, eax
jmp 0x140008c74
lea eax, [rbp - 1]
movsx ecx, byte [rbx + rax]
mov r12, rax
call r13
test eax, eax
je 0x140008cb0
mov ebp, r12d
test ebp, ebp
jne 0x140008c60
xor r12d, r12d
mov r13d, 1
mov rcx, r13
call dbg.MALLOC
mov r8, r13
mov rdx, rbx
mov rbp, rax
mov rcx, rax
call sym.memcpy
mov byte [rbp + r12], 0
jmp 0x140008bb3
add rbx, rbp
jmp 0x140008bb0
lea r13d, [rbp + 1]
mov r12d, ebp
jmp 0x140008c81
mov r12d, 1
mov r13d, 1
xor ebx, ebx
jmp 0x140008b3c
mov rbx, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 2
call rbx
mov r8d, 0x2e
mov edx, 1
lea rcx, str.______http_header_needs_both_a_name_and_value_n
mov r9, rax
call sym.fwrite
mov ecx, 2
call rbx
lea rcx, str.____hint:____http_header_Name:value__n
mov r8d, 0x25
mov edx, 1
mov r9, rax
call sym.fwrite
mov ecx, 1
call sym.exit
nop