Function at 0x140004260
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 - 0x70]
sub rsp, 0x170
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov qword [rsp + 0x48], rdx
mov r13, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
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 rdi, rax
mov qword [rsp + 0x70], rax
lea r8d, [r15 + 0x50]
xor r9d, r9d
lea rdx, str.186.192.141.143
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rsi, rax
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea r8, str._credenciais.json
lea rdx, [0x14000cd00]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140004b80
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [rbp - 0x3c], r15d
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r15
mov qword [rbp], 7
mov word [rbp - 0x18], r15w
nop word [rax + rax]
mov dword [rbp - 0x40], r15d
lea rdx, [rbp - 0x40]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
mov ecx, dword [rbp - 0x40]
inc ecx
call fcn.14000a514
mov r12, rax
mov r8d, dword [rbp - 0x40]
inc r8d
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rbp - 0x3c]
mov r8d, dword [rbp - 0x40]
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x140004603
mov r8d, dword [rbp - 0x3c]
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x20], r15
mov rdx, r12
lea rcx, [rbp + 8]
call fcn.140008eb0
nop
lea rcx, [rbp + 8]
mov rbx, qword [rbp + 0x18]
cmp qword [rbp + 0x20], 0xf
jbe 0x1400043e3
mov rsi, qword [rbp + 8]
add rbx, rsi
jmp 0x1400043ea
add rbx, rcx
lea rsi, [rbp + 8]
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r15
mov edi, 7
mov qword [rbp - 0x20], rdi
cmp rsi, rbx
jne 0x140004410
mov rsi, r15
mov word [rbp - 0x38], r15w
jmp 0x140004519
mov rax, rbx
sub rax, rsi
mov r14, r15
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x140004bc5
cmp rax, rdi
jbe 0x1400044d0
mov rdi, rax
or rdi, 7
cmp rdi, rcx
jbe 0x140004454
mov rdi, rcx
movabs rax, 0x7fffffffffffffff
lea rcx, [rax + rax]
jmp 0x140004484
cmp rdi, 0xa
mov eax, 0xa
cmovb rdi, rax
lea rcx, [rdi + 1]
movabs rax, 0x7fffffffffffffff
cmp rcx, rax
ja 0x140004bcb
add rcx, rcx
cmp rcx, 0x1000
jb 0x1400044b3
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140004bcb
mov rcx, rax
call fcn.14000a4d8
mov rcx, rax
test rax, rax
je 0x140004665
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400044c2
test rcx, rcx
je 0x1400044bf
call fcn.14000a4d8
jmp 0x1400044c2
mov rax, r15
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x20], rdi
nop word [rax + rax]
lea rcx, [rbp - 0x38]
cmp rdi, 7
cmova rcx, qword [rbp - 0x38]
movsx eax, byte [rsi]
mov word [rcx + r14*2], ax
mov r14, qword [rbp - 0x28]
inc r14
mov qword [rbp - 0x28], r14
inc rsi
cmp rsi, rbx
je 0x1400044fe
mov rdi, qword [rbp - 0x20]
jmp 0x1400044d0
lea rax, [rbp - 0x38]
cmp qword [rbp - 0x20], 7
cmova rax, qword [rbp - 0x38]
mov word [rax + r14*2], r15w
mov rdi, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x28]
lea r9, [rbp - 0x38]
mov r14, qword [rbp - 0x38]
cmp rdi, 7
cmova r9, r14
mov r15, qword [rbp - 8]
mov rcx, qword [rbp]
mov rax, rcx
sub rax, r15
cmp rsi, rax
ja 0x14000456f
lea rax, [rsi + r15]
mov qword [rbp - 8], rax
lea rbx, [rbp - 0x18]
cmp rcx, 7
cmova rbx, qword [rbp - 0x18]
lea rcx, [rbx + r15*2]
lea r8, [rsi + rsi]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + r15]
xor r15d, r15d
mov word [rbx + rax*2], r15w
jmp 0x14000458b
mov qword [rsp + 0x20], rsi
mov rdx, rsi
lea rcx, [rbp - 0x18]
call fcn.140008a50
mov rdi, qword [rbp - 0x20]
mov r14, qword [rbp - 0x38]
xor r15d, r15d
cmp rdi, 7
jbe 0x1400045c7
lea rdx, [rdi*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400045be
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004665
mov rcx, r14
call fcn.14000a4d0
nop
mov rdx, qword [rbp + 0x20]
cmp rdx, 0xf
jbe 0x1400045fe
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400045f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000466c
call fcn.14000a4d0
mov rbx, qword [rsp + 0x68]
mov rcx, r12
call fcn.14000a4d0
cmp dword [rbp - 0x40], 0
ja 0x140004360
mov r8, r13
lea rdx, str._username_:__
lea rcx, [rbp - 0x80]
call fcn.140008230
mov rcx, rax
mov r8, qword [rax + 0x10]
mov r10, qword [rax + 0x18]
mov rax, r10
sub rax, r8
cmp rax, 1
jb 0x140004673
lea r9, [r8 + 1]
mov qword [rcx + 0x10], r9
mov rdx, rcx
cmp r10, 7
jbe 0x140004653
mov rdx, qword [rcx]
mov eax, dword [0x14000cd08]
mov word [rdx + r8*2], ax
mov word [rdx + r9*2], r15w
jmp 0x140004690
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
mov qword [rsp + 0x20], 1
lea r9, [0x14000cd08]
mov edx, 1
call fcn.140008a50
mov rcx, rax
movups xmm0, xmmword [rcx]
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp + 0x48], xmm0
movups xmm0, xmmword [rcx + 0x10]
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rbp + 0x58], xmm0
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
mov rdx, qword [rbp - 0x68]
cmp rdx, 7
jbe 0x1400046fb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400046f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400046f6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a4d0
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], r15w
mov r8, qword [rsp + 0x48]
lea rdx, str._userkey_:__
lea rcx, [rbp - 0x60]
call fcn.140008230
mov rcx, rax
mov r8, qword [rax + 0x10]
mov r10, qword [rax + 0x18]
mov rax, r10
sub rax, r8
cmp rax, 1
jb 0x14000475e
lea r9, [r8 + 1]
mov qword [rcx + 0x10], r9
mov rdx, rcx
cmp r10, 7
jbe 0x14000474c
mov rdx, qword [rcx]
mov eax, dword [0x14000cd08]
mov word [rdx + r8*2], ax
mov word [rdx + r9*2], r15w
jmp 0x14000477b
mov qword [rsp + 0x20], 1
lea r9, [0x14000cd08]
mov edx, 1
call fcn.140008a50
mov rcx, rax
movups xmm0, xmmword [rcx]
movups xmmword [rbp + 0x28], xmm0
movups xmm2, xmmword [rcx + 0x10]
movups xmmword [rsp + 0x48], xmm2
movups xmmword [rbp + 0x38], xmm2
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x1400047e7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400047dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400047dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a4d0
movups xmm2, xmmword [rsp + 0x48]
lea r11, [rbp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rsi, xmm0
mov qword [rsp + 0x48], rsi
cmp rsi, 7
seta byte [rsp + 0x40]
mov r13, qword [rbp - 0x38]
cmova r11, r13
lea r14, [rbp - 0x18]
mov r12, qword [rbp]
cmp r12, 7
seta r15b
cmova r14, qword [rbp - 0x18]
movdqa xmm0, xmm2
psrldq xmm0, 8
movq r8, xmm0
mov qword [rsp + 0x58], r8
mov r9, qword [rbp + 0x28]
movq rbx, xmm1
mov rdi, qword [rbp - 8]
cmp rbx, rdi
ja 0x140004aa7
test rbx, rbx
je 0x1400048f1
mov rsi, rdi
sub rsi, rbx
inc rsi
lea rsi, [r14 + rsi*2]
mov rcx, r14
movzx r10d, word [r11]
nop
mov rax, rsi
sub rax, rcx
sar rax, 1
mov edx, 0
je 0x14000489c
cmp word [rcx], r10w
je 0x140004899
cmp rax, 1
je 0x14000489c
dec rax
add rcx, 2
cmp word [rcx], r10w
jne 0x140004886
mov rdx, rcx
mov rcx, rdx
test rdx, rdx
je 0x140004a99
mov r8, rbx
mov rdx, r11
test rbx, rbx
je 0x1400048d8
mov r9, rcx
sub r9, r11
nop dword [rax]
movzx eax, word [r9 + rdx]
cmp ax, word [rdx]
jne 0x140004a87
add rdx, 2
sub r8, 1
jne 0x1400048c0
sub rcx, r14
sar rcx, 1
mov r9, qword [rbp + 0x28]
mov r8, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x140004aa2
lea r11, [rbp + 0x28]
cmp r8, 7
seta r14b
cmova r11, r9
lea rsi, [rbp - 0x18]
test r15b, r15b
cmovne rsi, qword [rbp - 0x18]
movq rbx, xmm2
cmp rbx, rdi
ja 0x140004aa2
test rbx, rbx
je 0x1400049c1
sub rdi, rbx
inc rdi
lea rdi, [rsi + rdi*2]
mov rcx, rsi
movzx r10d, word [r11]
nop word [rax + rax]
mov rax, rdi
sub rax, rcx
sar rax, 1
mov edx, 0
je 0x14000496c
cmp word [rcx], r10w
je 0x140004969
cmp rax, 1
je 0x14000496c
dec rax
add rcx, 2
cmp word [rcx], r10w
jne 0x140004956
mov rdx, rcx
mov rcx, rdx
test rdx, rdx
je 0x140004a99
mov r8, rbx
mov rdx, r11
test rbx, rbx
je 0x1400049a8
mov r9, rcx
sub r9, r11
nop dword [rax]
movzx eax, word [rdx + r9]
cmp ax, word [rdx]
jne 0x140004a90
add rdx, 2
sub r8, 1
jne 0x140004990
sub rcx, rsi
sar rcx, 1
mov r9, qword [rbp + 0x28]
mov r8, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x140004aa2
test r14b, r14b
je 0x1400049ff
lea rdx, [r8*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x1400049f3
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004ad6
mov rcx, r9
call fcn.14000a4d0
mov r12, qword [rbp]
cmp byte [rsp + 0x40], 0
je 0x140004a44
mov rdx, qword [rsp + 0x48]
lea rdx, [rdx*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x140004a38
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004b19
mov rcx, r13
call fcn.14000a4d0
mov r12, qword [rbp]
cmp r12, 7
jbe 0x140004a80
lea rdx, [r12*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004b5f
call fcn.14000a4d0
mov al, 1
jmp 0x140004b9e
add rcx, 2
jmp 0x140004870
add rcx, 2
jmp 0x140004940
mov r8, qword [rsp + 0x58]
mov r9, qword [rbp + 0x28]
mov rsi, qword [rsp + 0x48]
cmp r8, 7
jbe 0x140004ae9
lea rdx, [r8*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x140004add
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004add
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r9
call fcn.14000a4d0
mov r12, qword [rbp]
cmp byte [rsp + 0x40], 0
je 0x140004b2c
lea rdx, [rsi*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x140004b20
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004b20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.14000a4d0
mov r12, qword [rbp]
cmp r12, 7
jbe 0x140004b6b
lea rdx, [r12*2 + 2]
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004b66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004b66
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000a4d0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
test rsi, rsi
je 0x140004b8e
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test rdi, rdi
je 0x140004b9c
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor al, al
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.14000a4b0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400011b0
nop
call fcn.140001110
int3