Function at 0x1406c9fb0
Capabilities:
Create process on windows
Encode data using xor
Query environment variable
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x818]
sub rsp, 0x910
movups xmm3, xmmword [0x1407564f8]
mov esi, dword [reloc.WS2_32.dll_accept]
xor ebx, ebx
movdqa xmm4, xmmword [0x14075fc70]
mov r8d, ebx
movdqa xmm5, xmmword [0x14075fc80]
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movdqa xmm7, xmmword [0x14075fd30]
movaps xmmword [rax - 0x38], xmm8
movdqa xmm8, xmmword [str.4444]
movaps xmmword [rax - 0x48], xmm9
mov eax, dword [0x140756518]
movdqa xmm9, xmmword [0x14075fcf0]
mov dword [rsp + 0x6a], eax
movzx eax, word [0x14075651c]
mov word [rsp + 0x6e], ax
movups xmm0, xmmword [0x140756508]
movups xmmword [rsp + 0x4a], xmm3
movups xmmword [rsp + 0x5a], xmm0
cmp esi, 2
jl 0x1406ca1dc
movdqa xmm2, xmm4
movdqa xmm0, xmm4
punpckhdq xmm0, xmm4
pmuldq xmm0, xmm7
punpckldq xmm2, xmm4
pmuldq xmm2, xmm7
shufps xmm2, xmm0, 0xdd
movdqa xmm0, xmm4
psrad xmm2, 4
movdqa xmm1, xmm2
psrld xmm1, 0x1f
paddd xmm1, xmm2
pmulld xmm1, xmm8
psubd xmm0, xmm1
pshufhw xmm0, xmm0, 0xd8
pshuflw xmm1, xmm0, 0xd8
movdqa xmm0, xmm5
punpckhdq xmm0, xmm5
pmuldq xmm0, xmm7
pshufd xmm2, xmm1, 0xd8
movq xmm1, xmm3
movdqa xmm3, xmmword [0x14075fc90]
paddw xmm2, xmm9
xorps xmm2, xmm1
movq qword [rsp + 0x4a], xmm2
movdqa xmm2, xmm5
punpckldq xmm2, xmm5
pmuldq xmm2, xmm7
shufps xmm2, xmm0, 0xdd
movdqa xmm0, xmm5
psrad xmm2, 4
movdqa xmm1, xmm2
psrld xmm1, 0x1f
paddd xmm1, xmm2
pmulld xmm1, xmm8
psubd xmm0, xmm1
pshufhw xmm0, xmm0, 0xd8
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x52]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
paddw xmm2, xmm9
xorps xmm2, xmm0
pmuldq xmm1, xmm7
movq qword [rsp + 0x52], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm8
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
movdqa xmm3, xmmword [0x14075fca0]
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x5a]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
paddw xmm2, xmm9
xorps xmm2, xmm0
pmuldq xmm1, xmm7
movdqa xmm0, xmm3
movq qword [rsp + 0x5a], xmm2
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm8
psubd xmm3, xmm0
pshufhw xmm0, xmm3, 0xd8
pshuflw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmm9
movq xmm0, qword [rsp + 0x62]
mov r8d, reloc.WS2_32.dll_recv
xorps xmm2, xmm0
movq qword [rsp + 0x62], xmm2
mov eax, r8d
lea r9, [rsp + 0x4a]
lea r9, [r9 + rax*2]
nop dword [rax + rax]
mov eax, 0x4ec4ec4f
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x34
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x35
xor word [r9 - 2], ax
cmp r8d, 0x13
jl 0x1406ca1f0
movups xmm6, xmmword [0x1407565d0]
lea r10, [rsp + 0x4a]
pextrw eax, xmm6, 7
movups xmmword [rsp + 0x3a], xmm6
test ax, ax
je 0x1406ca34e
mov r8d, ebx
cmp esi, 2
jl 0x1406ca312
movdqa xmm1, xmm4
movdqa xmm0, xmm4
punpckhdq xmm0, xmm4
movq xmm2, xmm9
pmuldq xmm0, xmm7
punpckldq xmm1, xmm4
pmuldq xmm1, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm8
psubd xmm4, xmm0
pshufhw xmm0, xmm4, 0xd8
pshuflw xmm1, xmm0, 0xd8
movdqa xmm0, xmm5
pshufd xmm3, xmm1, 0xd8
movq xmm1, xmm6
punpckhdq xmm0, xmm5
paddw xmm3, xmm2
xorps xmm3, xmm1
pmuldq xmm0, xmm7
movq qword [rsp + 0x3a], xmm3
movdqa xmm1, xmm5
punpckldq xmm1, xmm5
movq xmm2, xmm9
pmuldq xmm1, xmm7
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm8
psubd xmm5, xmm0
pshufhw xmm0, xmm5, 0xd8
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x42]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rsp + 0x42], xmm3
jmp 0x1406ca34e
lea r9, [rsp + 0x3a]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
lea r9, [r9 + 2]
mul r8d
shr edx, 4
movzx eax, dx
imul ecx, eax, 0x34
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x35
xor word [r9 - 2], ax
cmp r8d, 8
jl 0x1406ca320
movsd xmm0, qword [0x140756838]
lea r8, [rsp + 0x3a]
movzx eax, word [reloc.WS2_32.dll_gethostname]
lea rdx, [rsp + 0x30]
movsd qword [rsp + 0x30], xmm0
mov ecx, reloc.WS2_32.dll_WSAGetLastError
xor word [rsp + 0x32], 0x36
xor ax, 0x39
xor word [rsp + 0x34], 0x37
mov r9, r10
xor word [rsp + 0x36], 0x38
mov word [rsp + 0x30], cx
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov word [rsp + 0x38], ax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
movups xmm0, xmmword [0x140756850]
mov r8d, ebx
movups xmm1, xmmword [0x140756860]
movzx eax, word [0x1407568a8]
mov word [rbp - 0x38], ax
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [str.___9k_b___57__b]
movups xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [0x140756890]
movups xmmword [rbp - 0x50], xmm0
movsd xmm0, qword [0x1407568a0]
movsd qword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x80], xmm1
movups xmm1, xmmword [0x140756880]
movups xmmword [rbp - 0x60], xmm1
cmp esi, 2
jl 0x1406ca521
movdqa xmm5, xmmword [0x14075fc70]
lea rcx, [rsp + 0x70]
movdqa xmm4, xmmword [0x14075fd30]
movdqa xmm6, xmmword [str.4444]
movdqa xmm7, xmmword [0x14075fcf0]
nop word [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x28
jl 0x1406ca430
cmp r8d, 0x2d
jge 0x1406ca565
movsxd rax, r8d
lea r9, [rsp + 0x70]
lea r9, [r9 + rax*2]
nop dword [rax]
mov eax, 0x4ec4ec4f
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x34
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x35
xor word [r9 - 2], ax
cmp r8d, 0x2d
jl 0x1406ca530
mov r8d, 0x400
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x1406ca797
lea rdx, str.WDStatus
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1406ca78e
lea rcx, [rbp + 0x820]
call rax
test eax, eax
js 0x1406ca78e
cmp dword [rbp + 0x820], ebx
je 0x1406ca78e
lea rdx, [rsp + 0x30]
call fcn.1406ca830
mov r8, rax
movzx eax, word [rax + 8]
test ax, ax
je 0x1406ca5fc
xor word [r8], 0x35
xor word [r8 + 2], 0x36
xor word [r8 + 4], 0x37
xor word [r8 + 6], 0x38
xor ax, 0x39
mov word [r8 + 8], ax
lea rdx, [rsp + 0x70]
call fcn.1406ca7d0
mov r10, rax
cmp word [rax + 0x58], bx
je 0x1406ca771
cmp esi, 2
jl 0x1406ca72c
movdqa xmm5, xmmword [0x14075fc70]
mov rcx, rax
movdqa xmm4, xmmword [0x14075fd30]
movdqa xmm6, xmmword [str.4444]
movdqa xmm7, xmmword [0x14075fcf0]
nop
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
movq xmm2, xmm7
pshuflw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp ebx, 0x28
jl 0x1406ca640
cmp ebx, 0x2d
jge 0x1406ca771
movsxd rax, ebx
lea r9, [r10 + rax*2]
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4ec4ec4f
lea r9, [r9 + 2]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x34
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x35
xor word [r9 - 2], ax
cmp ebx, 0x2d
jl 0x1406ca740
mov r9d, 0x40
mov rdx, r10
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r11, [rsp + 0x910]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop rbp
ret