Function at 0x140058580
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov rax, qword [0x140284010]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r15, r8
mov r14, rdx
xor r12d, r12d
mov r13d, 0xffffffff
nop dword [rax]
mov qword [rbp - 0x41], r12
mov edx, send
mov qword [rbp - 0x29], rdx
mov qword [rbp - 0x31], r12
mov byte [rbp - 0x41], 0
mov byte [rbp - 0x69], 0
mov ebx, r12d
nop dword [rax]
cmp ebx, 0x19000
jae 0x140058664
xor r9d, r9d
lea r8d, [r9 + 1]
lea rdx, [rbp - 0x69]
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 1
jne 0x140058656
inc ebx
mov rdx, qword [rbp - 0x31]
mov r8, qword [rbp - 0x29]
mov rax, r8
sub rax, rdx
lea rcx, [rbp - 0x41]
cmp rax, 1
jb 0x14005863d
lea rax, [rdx + 1]
mov qword [rbp - 0x31], rax
cmp r8, 0x10
cmovae rcx, qword [rbp - 0x41]
movsx eax, byte [rbp - 0x69]
movzx eax, al
mov byte [rcx + rdx], al
mov byte [rcx + rdx + 1], 0
jmp 0x14005864a
movzx eax, byte [rbp - 0x69]
mov byte [rsp + 0x20], al
call fcn.140059af0
cmp byte [rbp - 0x69], 0xa
je 0x140058660
mov rdx, qword [rbp - 0x29]
jmp 0x1400585e0
test eax, eax
je 0x140058660
test ebx, ebx
cmove ebx, r13d
mov rdx, qword [rbp - 0x29]
test ebx, ebx
js 0x1400589ea
je 0x1400589e8
cmp qword [rbp - 0x31], 2
jne 0x1400586a5
lea rbx, [rbp - 0x41]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x41]
lea rcx, [rbp - 0x41]
cmovae rcx, qword [rbp - 0x41]
lea rdx, [0x14005eecc]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
cmp rbx, rax
je 0x140058973
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x11], r12
mov qword [rbp - 9], send
mov byte [rbp - 0x21], 0
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], send
mov byte [rbp - 0x61], 0
lea r9, [rbp - 0x61]
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x41]
call fcn.140058ed0
lea rbx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rbx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
cmovae rcx, qword [rbp - 0x21]
lea rdx, str.HTTP
call qword [sym.imp.VCRUNTIME140.dll_strstr]
cmp rbx, rax
jne 0x1400587d2
lea rcx, [rbp - 0x61]
mov rbx, qword [rbp - 0x61]
mov rdi, qword [rbp - 0x49]
cmp rdi, 0x10
cmovae rcx, rbx
mov qword [rsp + 0x20], 1
lea r9, [0x140279190]
xor r8d, r8d
mov rsi, qword [rbp - 0x51]
mov rdx, rsi
call fcn.140050680
cmp rax, 0xffffffffffffffff
je 0x1400588a4
mov qword [rbp - 1], r12
mov qword [rbp + 0xf], r12
mov qword [rbp + 0x17], send
cmp rsi, rax
cmovb rax, rsi
lea rdx, [rbp - 0x61]
cmp rdi, 0x10
cmovae rdx, rbx
mov r8, rax
lea rcx, [rbp - 1]
call fcn.14003cd20
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae rcx, qword [rbp - 1]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [r15], eax
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x1400588a4
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400587c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400589d3
call fcn.14005a61c
jmp 0x1400588a4
lea rcx, [r15 + 0x18]
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x79]
call fcn.140050170
mov rcx, qword [rax]
add rcx, 0x40
lea rax, [rbp - 0x61]
cmp rcx, rax
je 0x14005880a
lea rdx, [rbp - 0x61]
cmp qword [rbp - 0x49], 0x10
cmovae rdx, qword [rbp - 0x61]
mov r8, qword [rbp - 0x51]
call fcn.14003cd20
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rcx, qword [rbp - 0x21]
mov rbx, qword [rbp - 0x11]
cmp rbx, 0x11
jne 0x140058865
mov r8, rbx
lea rdx, str.Transfer_Encoding
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140058865
lea rcx, [rbp - 0x61]
cmp qword [rbp - 0x49], 0x10
cmovae rcx, qword [rbp - 0x61]
cmp qword [rbp - 0x51], 7
jne 0x1400588a4
lea r8d, [rbx - 0xa]
lea rdx, str.chunked
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400588a4
mov byte [r15 + 4], 1
jmp 0x1400588a4
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 0x10
cmovae rcx, qword [rbp - 0x21]
cmp rbx, 0xe
jne 0x1400588a4
mov r8, rbx
lea rdx, str.Content_Length
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400588a4
lea rcx, [rbp - 0x61]
cmp qword [rbp - 0x49], 0x10
cmovae rcx, qword [rbp - 0x61]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov dword [r15 + 8], eax
mov rdi, qword [rbp - 0x49]
cmp rdi, 0x10
jb 0x1400588e3
lea rdx, [rdi + 1]
mov rbx, qword [rbp - 0x61]
mov rax, rbx
cmp rdx, 0x1000
jb 0x1400588db
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400589da
mov rcx, rbx
call fcn.14005a61c
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], send
mov byte [rbp - 0x61], 0
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x14005892f
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058929
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400589e1
call fcn.14005a61c
nop
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x1400585c0
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140058969
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058a18
call fcn.14005a61c
jmp 0x1400585c0
mov rdx, qword [rbp - 0x29]
cmp rdx, 0x10
jb 0x1400589aa
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400589a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140058a18
call fcn.14005a61c
mov al, 1
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14005a2a0
mov rbx, qword [rsp + 0x110]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
jmp 0x140058977
cmp rdx, 0x10
jb 0x1400589aa
inc rdx
mov rcx, qword [rbp - 0x41]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400589a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400589a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3