Function at 0x140039390
Capabilities:
Download url
Receive data

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x198], rbx
mov rax, qword [0x140228058]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r15, r8
mov rbx, rcx
xor r12d, r12d
mov dword [rsp + 0x34], r12d
xor r14b, r14b
lea rdi, [rcx + 0x10]
cmp qword [rdi], r12
je 0x1400397d0
test edx, edx
jle 0x1400397d0
cmp qword [r8 + 0x10], r12
je 0x1400397d0
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
lea r9, str.favicon.ico
xor r8d, r8d
lea edx, [r12 + 0xb]
lea rcx, [rsp + 0x38]
call fcn.140015860
nop
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r12w
mov r13d, 1
mov dword [rsp + 0x34], r13d
xor edx, edx
lea r8d, [r12 + 0x68]
lea rcx, [rbp - 0x70]
call fcn.14015cb20
mov dword [rbp - 0x70], 0x68
mov eax, 0x50
mov word [rbp - 0x4c], ax
mov dword [rbp - 0x5c], r13d
cmp qword [rbx + 0x18], 8
jb 0x14003946f
mov rbx, qword [rbx]
mov qword [rbp - 0x58], rbx
mov rax, qword [rdi]
mov dword [rbp - 0x50], eax
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rax, qword [rsp + 0x38]
mov qword [rbp - 0x28], rax
mov eax, dword [rsp + 0x48]
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x80], r12d
lea r9, [rbp - 0x80]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpCreateUrl]
test eax, eax
jne 0x14003958e
mov eax, dword [rbp - 0x80]
test eax, eax
je 0x14003958e
xor ecx, ecx
mov qword [rbp], rcx
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], rcx
mov edx, eax
lea r8, [rsp + 0x30]
lea rcx, [rbp]
call fcn.1400248e0
nop
lea r9, [rbp - 0x80]
mov rsi, qword [rbp]
mov r8, rsi
xor edx, edx
lea rcx, [rbp - 0x70]
call qword [sym.imp.WINHTTP.dll_WinHttpCreateUrl]
test eax, eax
je 0x14003954d
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rsi + rdx*2], 0
jne 0x140039500
mov rax, qword [rbp + 0x38]
cmp rdx, rax
ja 0x14003953d
lea rdi, [rbp + 0x20]
cmp rax, 8
cmovae rdi, qword [rbp + 0x20]
mov qword [rbp + 0x30], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14015c680
mov word [rbx + rdi], r12w
jmp 0x14003954d
mov r9, rsi
xor r8d, r8d
lea rcx, [rbp + 0x20]
call fcn.140015860
nop
test rsi, rsi
je 0x14003958e
mov rax, qword [rbp + 0x10]
sub rax, rsi
sar rax, 1
lea rdx, [rax + rax]
mov rax, rsi
cmp rdx, 0x1000
jb 0x140039585
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039801
mov rcx, rsi
call fcn.14013db80
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400395d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400395cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039807
call fcn.14013db80
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
cmp qword [rbp + 0x30], 0
je 0x140039794
lea r8, [0x1401d6920]
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.140033ac0
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov r8, qword [rax + 0x18]
mov rax, r8
sub rax, rcx
cmp rax, 0xb
jb 0x14003964b
lea rsi, [rcx + 0xb]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp r8, 8
jb 0x14003962e
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, reloc.OLEAUT32.dll_SafeArrayAccessData
lea rdx, str.favicon.ico
call fcn.14015c680
mov word [rdi + rsi*2], r12w
jmp 0x14003966d
mov qword [rsp + 0x20], VariantTimeToDosDateTime
lea r9, str.favicon.ico
xor r8d, r8d
lea edx, [r8 + 0xb]
mov rcx, rbx
call fcn.1400233b0
mov rbx, rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
movups xmm0, xmmword [rbx]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
mov dword [rsp + 0x34], 3
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400396de
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400396d9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003980d
call fcn.14013db80
movdqa xmm0, xmmword [0x1401d8170]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r12w
xor bl, bl
lea r8, [rbp]
cmp qword [rbp + 0x18], 8
cmovae r8, qword [rbp]
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
movzx r14d, bl
test eax, eax
cmovns r14d, r13d
test r14b, r14b
je 0x140039753
mov r8, r15
lea rcx, [rbp]
call fcn.14001fc50
movzx r14d, al
lea rcx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rcx, qword [rbp]
call fcn.1401715c0
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 8
jb 0x140039794
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003978e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140039813
call fcn.14013db80
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x1400397d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400397cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400397fb
call fcn.14013db80
movzx eax, r14b
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14013df50
mov rbx, qword [rsp + 0x198]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14015fb1c
nop
call fcn.14015fb1c
nop
call fcn.14015fb1c
nop
call fcn.14015fb1c
nop
call fcn.14015fb1c
int3