Function at 0x18005f5f0
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1800be080]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rsi, rdx
mov rbx, rcx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.A_WinHTTP_Example_Program_1.0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18005fbf1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
mov dword [rsp + 0x50], 0x68
movups xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x50], xmm1
mov ecx, 0x210
call fcn.180064920
mov rdx, rax
mov qword [rbp + 0x40], rax
movdqa xmm0, xmmword [0x1800abf40]
movdqu xmmword [rbp + 0x50], xmm0
movzx eax, r12w
mov rdi, rdx
mov ecx, pe_nt_image_headers64
rep stosw word [rdi], ax
mov word [rdx + 0x200], r12w
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov ecx, 0x210
call fcn.180064920
mov rdx, rax
mov qword [rbp - 0x20], rax
movdqa xmm0, xmmword [0x1800abf40]
movdqu xmmword [rbp - 0x10], xmm0
movzx eax, r12w
mov rdi, rdx
mov ecx, pe_nt_image_headers64
rep stosw word [rdi], ax
mov word [rdx + 0x200], r12w
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
mov ecx, 0x810
call fcn.180064920
mov rdx, rax
mov qword [rbp + 0x20], rax
movdqa xmm0, xmmword [0x1800abf50]
movdqu xmmword [rbp + 0x30], xmm0
movzx eax, r12w
mov rdi, rdx
mov ecx, 0x400
rep stosw word [rdi], ax
mov word [rdx + 0x800], r12w
lea rax, [rbp + 0x40]
cmp qword [rbp + 0x58], 7
cmova rax, qword [rbp + 0x40]
mov qword [rsp + 0x58], rax
mov eax, dword [rbp + 0x50]
mov dword [rsp + 0x60], eax
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rax, qword [rbp - 0x20]
mov qword [rsp + 0x68], rax
mov eax, dword [rbp - 0x10]
mov dword [rsp + 0x70], eax
lea rax, [rbp + 0x20]
cmp qword [rbp + 0x38], 7
cmova rax, qword [rbp + 0x20]
mov qword [rbp - 0x68], rax
mov eax, dword [rbp + 0x30]
mov dword [rbp - 0x60], eax
mov edx, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x18005f7a2
mov rbx, qword [rbx]
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCrackUrl]
lea rdx, [rbp - 0x20]
cmp qword [rbp - 8], 7
cmova rdx, qword [rbp - 0x20]
xor r9d, r9d
movzx r8d, word [rsp + 0x74]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r13, rax
test rax, rax
je 0x18005fb07
mov ecx, r12d
mov eax, 0x800000
cmp dword [rsp + 0x64], 2
cmove ecx, eax
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, qword [rbp - 0x68]
lea rdx, str.POST
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x18005fafe
lea rdx, str.Content_Type:_application_json_r_n
lea rcx, [rbp + 0x60]
call fcn.18005fe30
nop
mov r12, qword [rsi + 0x10]
movabs rax, 0x7ffffffffffffffe
mov rcx, rax
sub rcx, r12
cmp rcx, 0xd
jb 0x18005fc21
cmp qword [rsi + 0x18], 7
jbe 0x18005f859
mov rsi, qword [rsi]
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x30], xmm1
lea r15, [r12 + 0xd]
mov ebx, 7
lea rdi, [rbp - 0x40]
cmp r15, rbx
jbe 0x18005f909
mov rbx, r15
or rbx, 7
cmp rbx, rax
jbe 0x18005f8d1
mov rbx, rax
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
cmp rcx, 0x1000
jb 0x18005f8fd
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18005fc27
mov rcx, rax
call fcn.180064920
test rax, rax
je 0x18005fc2d
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x18005f905
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rcx, [rbx + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x18005fc27
add rcx, rcx
jne 0x18005f89c
xor edi, edi
jmp 0x18005f905
call fcn.180064920
mov rdi, rax
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], rbx
movups xmm0, xmmword [str._content_:__]
movups xmmword [rdi], xmm0
movsd xmm0, qword [0x1800aba50]
movsd qword [rdi + 0x10], xmm0
movzx eax, word [0x1800aba58]
mov word [rdi + 0x18], ax
lea rcx, [rdi + 0x1a]
lea r8, [r12 + r12]
mov rdx, rsi
call fcn.180093760
xor r12d, r12d
mov word [rdi + r15*2], r12w
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov rax, rdx
sub rax, rcx
cmp rax, 2
jb 0x18005f987
lea rax, [rcx + 2]
mov qword [rbp - 0x30], rax
lea rax, [rbp - 0x40]
cmp rdx, 7
cmova rax, qword [rbp - 0x40]
mov dword [rax + rcx*2], 0x7d0022
mov word [rax + rcx*2 + 4], r12w
lea rax, [rbp - 0x40]
jmp 0x18005f9a8
mov qword [rsp + 0x20], 2
lea r9, [0x1800aba34]
xor r8d, r8d
mov edx, 2
lea rcx, [rbp - 0x40]
call fcn.18005ff80
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
mov rdx, qword [rbp - 0x28]
cmp rdx, 7
jbe 0x18005fa16
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005fa11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005fc2d
call fcn.180064d9c
lea r9, [rbp]
cmp qword [rbp + 0x18], 7
cmova r9, qword [rbp]
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 7
cmova rdx, qword [rbp + 0x60]
mov qword [rsp + 0x30], r12
mov eax, dword [rbp + 0x10]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov r8d, dword [rbp + 0x70]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x18005fa5e
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rdx, qword [rbp + 0x18]
cmp rdx, 7
jbe 0x18005faa7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005faa2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005fc33
call fcn.180064d9c
movdqa xmm0, xmmword [0x1800abe50]
movdqu xmmword [rbp + 0x10], xmm0
mov word [rbp], r12w
mov rdx, qword [rbp + 0x78]
cmp rdx, 7
jbe 0x18005faf9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005faf4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005fc39
call fcn.180064d9c
mov r15, qword [rsp + 0x40]
mov rcx, r13
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 7
jbe 0x18005fb51
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005fb4c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005fc3f
call fcn.180064d9c
movdqa xmm0, xmmword [0x1800abe50]
movdqu xmmword [rbp + 0x30], xmm0
mov word [rbp + 0x20], r12w
mov rdx, qword [rbp - 8]
cmp rdx, 7
jbe 0x18005fbab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005fb9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005fc45
call fcn.180064d9c
movdqa xmm0, xmmword [0x1800abe50]
movdqu xmmword [rbp - 0x10], xmm0
mov word [rbp - 0x20], r12w
mov rdx, qword [rbp + 0x58]
cmp rdx, 7
jbe 0x18005fbf1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005fbec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18005fc1b
call fcn.180064d9c
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.180064900
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x190
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18006ad34
nop
call fcn.180007880
nop
call fcn.1800077e0
int3
call fcn.18006ad34
int3
call fcn.18006ad34
nop
call fcn.18006ad34
nop
call fcn.18006ad34
nop
call fcn.18006ad34
int3