Function at 0x140006030
Capabilities:
Access peb ldr_data
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Encode data using xor
Execute command
Hash data using fnv
Log keystrokes via polling
Resolve function by parsing pe exports
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x1a0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
movaps xmmword [rax - 0x68], xmm10
mov rax, qword [0x140290040]
xor rax, rsp
mov qword [rbp + 0x48], rax
xor r14d, r14d
lea r8, str.SecureBOOT
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rbx, rax
test rax, rax
je 0x140006b1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400060c9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140004990]
call fcn.1400860cc
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rcx, [rbp - 8]
call fcn.140003b50
nop
call fcn.140004c70
test al, al
jne 0x14000610e
lea r8, [rbp - 8]
lea rdx, str.cmd__k_echo
lea rcx, [rbp - 0x60]
call fcn.140008580
lea rcx, [rbp - 0x60]
call fcn.140006f00
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.1400057f0
call fcn.1400052b0
mov r12d, 0xff
movabs r15, 0x7fffffffffffffff
cmp byte [0x1402bf8d0], 0
jne 0x1400061ae
movabs rbx, 0x7ffffffed5fa0dff
movabs rdi, 0x12a05f200
nop word [rax + rax]
lea rcx, [0x1402bf850]
call fcn.140029230
cmp byte [0x1402bf8d0], 0
jne 0x1400061ae
lea rcx, [rsp + 0x48]
call fcn.140001be0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x38], rax
cmp rax, rbx
je 0x140006196
mov ecx, 1
cmovl ecx, r12d
test cl, cl
jns 0x140006196
lea rcx, [rax + rdi]
mov qword [rsp + 0x38], rcx
jmp 0x14000619b
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x38]
call fcn.14000a0f0
cmp byte [0x1402bf8d0], 0
je 0x140006150
mov ecx, dword [0x1402bf918]
call fcn.140080d00
call fcn.140080ed0
mov ecx, 1
call fcn.140085e68
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14000a9b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140006bc4
cmp dword [rbp - 0x58], 0
je 0x140006bb8
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140006bb8
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
mov ecx, 1
call fcn.140085e68
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14000a9e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140006ba8
cmp dword [rbp - 0x58], 0
je 0x140006b9c
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140006b9c
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
mov ecx, 1
call fcn.140085e68
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14000aa10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140006b8c
cmp dword [rbp - 0x58], 0
je 0x140006b80
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140006b80
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
mov ecx, 1
call fcn.140085e68
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x58]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x14000aa40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x60], rax
test rax, rax
je 0x140006b70
cmp dword [rbp - 0x58], 0
je 0x140006b64
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x40], xmm0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x140006b64
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
cmp byte [0x1402bf63b], al
je 0x140006aa1
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
mov rsi, qword [0x1402bf728]
mov rdi, qword [0x1402bf6c8]
mov dword [rbp - 0x18], 1
mov byte [rbp - 0x14], 1
mov rax, qword [0x1402bf720]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x20], rdi
mov rbx, qword [0x1402bf6b8]
mov ecx, 0x61c8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r9, rax
mov r8, qword [0x1402bf6b8]
test r8, r8
je 0x140006429
mov r10d, dword [r8 + 0x3f90]
movsx rax, word [r8 + 0x6078]
lea rdx, [r8 + 0x607c]
lea rdx, [rdx + rax*8]
cmp dword [rdx], r10d
je 0x14000641e
lea ecx, [rax + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x6078], cx
movsx rax, cx
lea rdx, [r8 + 0x607c]
lea rdx, [rdx + rax*8]
mov dword [rdx], r10d
mov dword [rdx + 4], r14d
inc word [rdx + 4]
inc dword [r8 + 0x6070]
mov qword [rbp - 0x40], r9
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r9
test r9, r9
je 0x14000644d
xor edx, edx
mov rcx, r9
call fcn.140034b00
jmp 0x140006450
mov rax, r14
mov qword [0x1402bf6b8], rax
call fcn.140039250
test rbx, rbx
je 0x140006468
mov qword [0x1402bf6b8], rbx
mov rcx, qword [rbp - 0x30]
call fcn.140066070
mov rdx, rsi
mov rcx, rdi
call fcn.140065eb0
nop
lea rcx, [rbp - 0x30]
call fcn.140079780
lea rax, [0x14008c1e0]
mov qword [rsp + 0x58], rax
lea rax, [0x140080680]
mov qword [rsp + 0x60], rax
movzx eax, byte [rbp - 0x58]
mov byte [rsp + 0x68], al
movzx eax, byte [rbp - 0x57]
mov byte [rsp + 0x69], al
movzx eax, byte [rbp - 0x56]
mov byte [rsp + 0x6a], al
movzx eax, byte [rbp - 0x55]
mov byte [rsp + 0x6b], al
lea rax, [rbp - 0x30]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x70], rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x40], rax
lea rdx, [rsp + 0x58]
call fcn.1400814c0
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1400064fe
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
movups xmmword [rbp + 0x28], xmm0
movups xmmword [rbp + 0x38], xmm0
movdqa xmm9, xmmword [0x1402823d0]
movdqa xmm10, xmmword [0x140282530]
movss xmm6, dword [0x140281ed8]
movss xmm7, dword [0x140281f88]
movss xmm8, dword [0x140281f10]
nop dword [rax + rax]
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [0x1402bf720]
lea rcx, [rbp + 0x18]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140006577
lea rcx, [rbp + 0x18]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x18]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov rcx, qword [0x1402bf6b8]
movzx eax, byte [rbp - 0x14]
mov byte [rcx + 0x58], al
lea rcx, [0x1402bf850]
call fcn.14002e480
call fcn.140030ad0
mov r8d, dword [rbp - 0x10]
mov r9d, dword [rbp - 0xc]
test r9d, r9d
jne 0x1400065a8
test r8d, r8d
je 0x140006625
mov rcx, qword [0x1402bf750]
test rcx, rcx
je 0x1400065c9
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1402bf750], r14
mov r9d, dword [rbp - 0xc]
mov r8d, dword [rbp - 0x10]
mov rcx, qword [0x1402bf738]
mov rax, qword [rcx]
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
call qword [rax + 0x68]
mov qword [rbp - 0x10], r14
mov rcx, qword [0x1402bf738]
mov rax, qword [rcx]
lea r9, [rbp - 0x68]
lea r8, [0x140281e50]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [0x1402bf6c8]
mov rax, qword [rcx]
lea r9, [0x1402bf750]
xor r8d, r8d
mov rdx, qword [rbp - 0x68]
call qword [rax + 0x48]
mov rcx, qword [rbp - 0x68]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov ecx, dword [0x1402be628]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14000668d
cmp byte [0x1402bf828], 0
jne 0x140006694
mov byte [0x1402bf828], 1
cmp byte [rbp - 0x14], 0
sete al
mov byte [rbp - 0x14], al
mov edx, 0xffffffec
mov rcx, qword [rbp - 0x30]
test al, al
je 0x140006675
mov r8d, 0x80000a8
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x140006694
mov r8d, 0x80800a8
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [rbp - 0x28]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x140006694
mov byte [0x1402bf828], 0
lea rdx, [rbp - 0x60]
mov rcx, qword [0x1402bf730]
call qword [sym.imp.USER32.dll_GetClientRect]
mov r9d, 2
lea r8, [rbp - 0x60]
xor edx, edx
mov rcx, qword [0x1402bf730]
call qword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [rbp - 0x54]
mov r8d, dword [rbp - 0x5c]
sub eax, r8d
mov r9d, dword [rbp - 0x58]
mov edx, dword [rbp - 0x60]
sub r9d, edx
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], eax
mov rcx, qword [0x1402bf720]
call qword [sym.imp.USER32.dll_MoveWindow]
movzx eax, byte [0x1402be62c]
cmp al, byte [0x1402bf610]
je 0x1400067be
mov byte [0x1402bf610], al
neg al
sbb edi, edi
and edi, 0x11
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov r11d, dword [rcx + r10 + 0x88]
add r11, r10
cmp r11, r10
je 0x140006794
mov r9d, dword [r11 + 0x18]
test r9d, r9d
je 0x140006794
mov ebx, dword [r11 + 0x20]
nop word [rax + rax]
dec r9d
lea rdx, [r10 + r9*4]
mov r8d, dword [rdx + rbx]
add r8, r10
mov edx, 0x588deb27
movzx ecx, byte [r8]
inc r8
test cl, cl
je 0x14000678f
nop
movsx ecx, cl
xor ecx, edx
imul edx, ecx, 0x1000193
movzx ecx, byte [r8]
lea r8, [r8 + 1]
test cl, cl
jne 0x140006770
cmp edx, 0xdbf73129
je 0x140006799
test r9d, r9d
jne 0x140006750
mov rax, qword [rax]
jmp 0x140006720
mov ecx, dword [r11 + 0x24]
add rcx, r10
movzx r9d, word [rcx + r9*2]
mov ecx, dword [r11 + 0x1c]
add rcx, r10
mov eax, dword [rcx + r9*4]
add rax, r10
mov edx, edi
mov rcx, qword [0x1402bf720]
call rax
mov rax, qword [0x1402bf6b8]
test rax, rax
je 0x1400067d3
mov rcx, qword [rax + 0x98]
jmp 0x1400067d6
mov rcx, r14
cmp qword [rcx + 0x48], 0
jne 0x1400067e2
call fcn.140065850
call fcn.140066a80
call fcn.14003bb20
mov rax, qword [0x1402bf6b8]
cmp byte [0x1402be5e4], 0
je 0x1400068bc
mov rax, qword [rax + 0x4b00]
lea r8, str.Background
xor edx, edx
mov rcx, qword [rax]
call fcn.14003b180
mov rbx, rax
movups xmmword [rsp + 0x38], xmm10
lea rcx, [rsp + 0x38]
call fcn.1400370e0
mov edi, eax
movd xmm2, dword [0x1402be514]
cvtdq2ps xmm2, xmm2
mov rax, qword [0x1402bf6b8]
movss xmm1, dword [rax + 0x14]
mulss xmm1, xmm6
movss xmm0, dword [rax + 0x10]
mulss xmm0, xmm6
movss dword [rsp + 0x50], xmm0
movss dword [rsp + 0x54], xmm1
test edi, 0xff000000
je 0x1400068bc
comiss xmm6, xmm2
ja 0x1400068bc
subss xmm2, xmm6
mov dword [rsp + 0x28], 0x167
movss dword [rsp + 0x20], xmm7
xorps xmm3, xmm3
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.14005b890
movss dword [rsp + 0x28], xmm8
mov dword [rsp + 0x20], 1
mov r9d, edi
mov r8d, dword [rbx + 0x78]
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
call fcn.140059ea0
mov dword [rbx + 0x78], r14d
mov rax, qword [0x1402bf6b8]
cmp byte [0x1402be5e5], 0
je 0x14000697d
mov rax, qword [rax + 0x4b00]
lea r8, str.Background
xor edx, edx
mov rcx, qword [rax]
call fcn.14003b180
mov rbx, rax
movups xmmword [rsp + 0x38], xmm9
lea rcx, [rsp + 0x38]
call fcn.1400370e0
mov edi, eax
movd xmm2, dword [0x1402be538]
cvtdq2ps xmm2, xmm2
mov rcx, qword [0x1402bf6b8]
movss xmm1, dword [rcx + 0x14]
mulss xmm1, xmm6
movss xmm0, dword [rcx + 0x10]
mulss xmm0, xmm6
movss dword [rsp + 0x48], xmm0
movss dword [rsp + 0x4c], xmm1
test eax, 0xff000000
je 0x14000697d
comiss xmm6, xmm2
ja 0x14000697d
subss xmm2, xmm6
mov dword [rsp + 0x28], 0x167
movss dword [rsp + 0x20], xmm7
xorps xmm3, xmm3
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.14005b890
movss dword [rsp + 0x28], xmm8
mov dword [rsp + 0x20], 1
mov r9d, edi
mov r8d, dword [rbx + 0x78]
mov rdx, qword [rbx + 0x80]
mov rcx, rbx
call fcn.140059ea0
mov dword [rbx + 0x78], r14d
cmp byte [0x1402be5cc], 0
je 0x14000698b
call fcn.140028640
cmp byte [0x1402be550], 0
je 0x140006999
call fcn.140025cd0
lea rcx, [rbp - 0x30]
call fcn.14007f9d0
call fcn.14003d720
call fcn.14003db40
mov rcx, qword [0x1402bf728]
mov rax, qword [rcx]
xor r9d, r9d
lea r8, [0x1402bf750]
mov edx, 1
call qword [rax + 0x108]
mov rcx, qword [0x1402bf728]
mov rax, qword [rcx]
lea r8, [0x1402bf840]
mov rdx, qword [0x1402bf750]
call qword [rax + 0x190]
mov rax, qword [0x1402bf6b8]
mov rax, qword [rax + 0x4b00]
mov rcx, qword [rax]
add rcx, 0x48
mov rax, r14
cmp byte [rcx], r14b
cmovne rax, rcx
mov rcx, rax
call fcn.140064de0
mov rcx, qword [0x1402bf738]
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x40]
cmp byte [0x1402be620], 0
jne 0x140006ada
movsxd rbx, dword [0x1402be630]
lea rcx, [rbp - 0x40]
call fcn.140001be0
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x38], rax
test rbx, rbx
je 0x140006a87
js 0x140006a87
imul rdx, rbx, 0xf4240
imul r8, rbx, 0xf4240
mov rcx, r15
sub rcx, r8
cmp rax, rcx
je 0x140006a82
mov r8d, 1
cmovl r8d, r12d
test r8b, r8b
jns 0x140006a82
lea rcx, [rax + rdx]
mov qword [rsp + 0x38], rcx
jmp 0x140006a87
mov qword [rsp + 0x38], r15
lea rcx, [rsp + 0x38]
call fcn.14000a0f0
cmp dword [rbp + 0x20], 0x12
jne 0x140006540
call fcn.1400806d0
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x140006b1e
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006b19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006b19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400806d0
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x140006b1e
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006b19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006b19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140085e60
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.140085e40
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x58], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x58], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x58], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 0x58], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3