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

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x150
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x18008c3c0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, rcx
mov qword [rbp - 0x58], rcx
mov r13d, 1
mov dword [rsp + 0x40], r13d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor r12d, r12d
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], 0xf
mov byte [rcx], r12b
mov dword [rsp + 0x40], r13d
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 r14, rax
test rax, rax
jne 0x18000f122
lea rdx, str.Error_in_WinHttpOpen:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180006bc0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x1800069f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x18000f393
mov r8d, 0x1bb
xor r9d, r9d
lea rdx, str.api.jsonbin.io
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r15, rax
test rax, rax
jne 0x18000f188
lea rdx, str.Error_in_WinHttpConnect:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180006bc0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x1800069f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
jmp 0x18000f393
lea rdx, [0x18008e418]
mov r8, rdx
cmp qword [0x18008e430], 0xf
cmova r8, qword [0x18008e418]
add r8, qword [0x18008e428]
cmp qword [0x18008e430], 0xf
cmova rdx, qword [0x18008e418]
lea rcx, [rbp - 0x78]
call fcn.180014780
nop
mov r8, rax
lea rdx, str._v3_b_
lea rcx, [rsp + 0x68]
call fcn.1800148d0
nop
mov r8d, 7
lea rdx, str._latest
mov rcx, rax
call fcn.180006030
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
or r13d, 2
mov dword [rsp + 0x40], r13d
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x18000f268
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f263
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000f263
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18006e594
movdqa xmm6, xmmword [0x18007d6d0]
movdqu xmmword [rsp + 0x78], xmm6
mov word [rsp + 0x68], r12w
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x18000f2bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f2ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000f2ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18006e594
movdqu xmmword [rbp - 0x68], xmm6
mov word [rbp - 0x78], r12w
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova r8, qword [rbp - 0x30]
mov dword [rsp + 0x30], 0x800000
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea rdx, [0x180075738]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rsi, rax
test rax, rax
jne 0x18000f3c8
lea rdx, str.Error_in_WinHttpOpenRequest:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180006bc0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x1800069f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x18000f393
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f38d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000f985
call fcn.18006e594
nop
mov rax, rdi
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.18006e1c0
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, [0x18008e3f0]
mov r8, rdx
cmp qword [0x18008e408], 0xf
cmova r8, qword [0x18008e3f0]
add r8, qword [0x18008e400]
cmp qword [0x18008e408], 0xf
cmova rdx, qword [0x18008e3f0]
lea rcx, [rsp + 0x48]
call fcn.180014780
nop
mov r8, rax
lea rdx, str.Content_Type:_application_json_r_nX_Master_Key:
lea rcx, [rbp - 0x10]
call fcn.1800148d0
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x18000f45d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f458
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000f458
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18006e594
movdqu xmmword [rsp + 0x58], xmm6
mov word [rsp + 0x48], r12w
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rdx, qword [rbp - 0x10]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, dword [rbp]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x18000f540
lea rdx, str.Error_in_WinHttpSendRequest:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180006bc0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x1800069f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x18000f531
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
cmp rdx, 0x1000
mov rax, rcx
jb 0x18000f52c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000f92d
call fcn.18006e594
movdqu xmmword [rbp], xmm6
mov word [rbp - 0x10], r12w
jmp 0x18000f352
xor edx, edx
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x18000f55b
lea rdx, str.Error_in_WinHttpReceiveResponse:
jmp 0x18000f4a5
mov dword [rbp - 0x4c], r12d
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
mov qword [rbp - 0x38], r12
nop dword [rax + rax]
mov dword [rbp - 0x50], r12d
lea rdx, [rbp - 0x50]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x18000f631
mov edx, dword [rbp - 0x50]
test edx, edx
je 0x18000f668
mov r8d, edx
mov r10, qword [rbp - 0x40]
mov r9, r10
mov rcx, qword [rbp - 0x48]
sub r9, rcx
cmp rdx, r9
jae 0x18000f5b4
lea rax, [rdx + rcx]
mov qword [rbp - 0x40], rax
jmp 0x18000f5e9
jbe 0x18000f5e9
mov rax, qword [rbp - 0x38]
sub rax, rcx
cmp r8, rax
jbe 0x18000f5cd
lea rcx, [rbp - 0x48]
call fcn.1800199f0
jmp 0x18000f5e2
sub r8, r9
lea rbx, [r8 + r10]
xor edx, edx
mov rcx, r10
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x40], rbx
mov rcx, qword [rbp - 0x48]
mov edx, dword [rbp - 0x50]
mov r8d, edx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x4c]
mov r8d, dword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x18000f628
mov r8d, dword [rbp - 0x4c]
mov rdx, qword [rbp - 0x48]
mov rcx, rdi
call fcn.1800024b0
cmp dword [rbp - 0x50], 0
ja 0x18000f570
jmp 0x18000f668
lea rdx, str.Error_in_WinHttpReadData:
jmp 0x18000f638
lea rdx, str.Error_in_WinHttpQueryDataAvailable:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180006bc0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x1800069f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x20]
lea r8, [rdx + rax*2]
lea rdx, [rbp - 0x30]
cmova rdx, qword [rbp - 0x30]
lea rcx, [rsp + 0x48]
call fcn.1800068c0
mov rbx, rax
mov r8, qword [rax + 0x10]
mov rcx, qword [rax + 0x18]
mov rax, rcx
sub rax, r8
cmp rax, 0x16
jb 0x18000f747
lea rax, [r8 + 0x16]
mov qword [rbx + 0x10], rax
mov rsi, rbx
cmp rcx, 0xf
jbe 0x18000f6db
mov rsi, qword [rbx]
lea rax, [0x18007592e]
mov r12d, 0x16
lea r15, str.https:__api.jsonbin.io
cmp rax, rsi
jbe 0x18000f70f
lea rax, [rsi + r8]
cmp r15, rax
ja 0x18000f70f
cmp rsi, r15
ja 0x18000f707
xor r14d, r14d
jmp 0x18000f712
mov r14, rsi
sub r14, r15
jmp 0x18000f712
mov r14, r12
inc r8
lea rcx, [rsi + 0x16]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, r15
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
sub r12, r14
lea rdx, [r15 + 0x16]
add rdx, r14
lea rcx, [rsi + r14]
mov r8, r12
call sub.VCRUNTIME140.dll_memcpy
jmp 0x18000f76c
mov r12d, 0x16
mov qword [rsp + 0x28], r12
lea r15, str.https:__api.jsonbin.io
mov qword [rsp + 0x20], r15
mov edx, r12d
mov rcx, rbx
call fcn.180007d10
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
xor esi, esi
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], rsi
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x20], xmm1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
or r13d, 4
mov dword [rsp + 0x40], r13d
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x18000f7e4
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f7df
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000f7df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18006e594
movdqa xmm0, xmmword [0x18007d6f0]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
lea rdx, str.Requested_URL:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180006bc0
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
mov rcx, rax
call fcn.180007b50
lea rdx, [0x1800069f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp qword [rdi + 0x10], 0
jne 0x18000f85f
lea rdx, str.Failed_to_fetch_JSON_data_from_JSONbin.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180006bc0
lea rdx, [0x1800069f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x18000f89d
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f898
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000f898
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18006e594
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], 0xf
mov byte [rbp + 0x10], 0
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x18000f8f6
mov rdx, qword [rbp - 0x38]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f8e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000f8e5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18006e594
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rsi
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x18000f939
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f934
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000f934
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18006e594
movdqu xmmword [rbp], xmm6
mov word [rbp - 0x10], si
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x18000f393
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000f38d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000f38d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3