Function at 0x1400dc180
Capabilities:
Acquire debug privileges
Encode data using xor
Enumerate threads
Execute command
Query or enumerate registry value
Query service status
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x10]
sub rsp, 0x110
movaps xmmword [rsp + 0x100], xmm6
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [str.chagqxjtMKHRIP.50__]
movzx eax, word [0x140176418]
xor ebx, ebx
movups xmm1, xmmword [0x140176408]
mov r12d, dword [reloc.WS2_32.dll_accept]
mov edi, ebx
mov dword [rbp - 0x7c], 4
mov dword [rbp - 0x80], 4
mov word [rsp + 0x60], ax
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm1
cmp r12d, 2
jl 0x1400dc332
movdqa xmm0, xmmword [0x1401781d0]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140178040]
movdqa xmm4, xmmword [0x140178330]
movdqa xmm6, xmmword [0x140178080]
movdqa xmmword [rsp + 0x70], xmm0
mov edx, dword [rsp + 0x70]
nop word [rax + rax]
movd xmm2, edi
lea eax, [rdi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edi, 8
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
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x20
jl 0x1400dc230
cmp edi, 0x22
jge 0x1400dc36e
movsxd rax, edi
lea r8, [rsp + 0x40]
add r8, rax
nop dword [rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, dil
inc edi
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp edi, 0x22
jl 0x1400dc340
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400dc854
cmp byte [str.3SWQQ], bl
mov eax, dword [0x14017645c]
mov dword [rsp + 0x30], eax
je 0x1400dc46e
cmp r12d, 2
jl 0x1400dc435
movdqa xmm3, xmmword [0x140178040]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140178330]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140178330]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x140178080]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401781d0]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
jmp 0x1400dc46e
lea r8, [rsp + 0x30]
mov edi, ebx
nop dword [rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, dil
inc edi
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp edi, 4
jl 0x1400dc440
mov rcx, qword [rsp + 0x38]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x7c]
lea rax, [rbp - 0x78]
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400dc849
cmp dword [rbp - 0x78], 1
jne 0x1400dc849
movups xmm0, xmmword [0x140176480]
mov edi, ebx
movups xmm1, xmmword [0x140176490]
movzx eax, word [0x1401764d8]
movups xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [0x1401764a0]
movups xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [0x1401764c0]
movups xmmword [rbp - 0x30], xmm0
movsd xmm0, qword [0x1401764d0]
movups xmmword [rbp - 0x60], xmm1
movups xmm1, xmmword [0x1401764b0]
mov word [rbp - 0x18], ax
movzx eax, byte [0x1401764da]
movsd qword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x40], xmm1
mov byte [rbp - 0x16], al
cmp r12d, 2
jl 0x1400dc642
movdqa xmm0, xmmword [0x1401781d0]
lea rcx, [rbp - 0x6c]
movdqa xmm5, xmmword [0x140178040]
movdqa xmm4, xmmword [0x140178330]
movdqa xmm6, xmmword [0x140178080]
movdqa xmmword [rsp + 0x70], xmm0
mov edx, dword [rsp + 0x70]
nop dword [rax]
movd xmm2, edi
lea eax, [rdi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edi, 8
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
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x58
jl 0x1400dc540
cmp edi, 0x5b
jge 0x1400dc67e
movsxd rax, edi
lea r8, [rbp - 0x70]
add r8, rax
nop dword [rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, dil
inc edi
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp edi, 0x5b
jl 0x1400dc650
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rax, [rbp - 0x70]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], bl
jne 0x1400dc693
movups xmm0, xmmword [str.CYGGPZAY]
xor eax, eax
lea rdi, [rbp - 0x70]
cmp byte [0x14017645b], bl
rep stosb byte [rdi], al
mov eax, dword [str.4arCda]
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], eax
je 0x1400dc83e
mov edi, ebx
cmp r12d, 2
jl 0x1400dc802
movdqa xmm0, xmmword [0x1401781d0]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140178040]
movdqa xmm4, xmmword [0x140178330]
movdqa xmm6, xmmword [0x140178080]
movdqa xmmword [rsp + 0x70], xmm0
mov edx, dword [rsp + 0x70]
movd xmm2, edi
lea eax, [rdi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edi, 8
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
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x10
jl 0x1400dc700
cmp edi, 0x14
jge 0x1400dc83e
movsxd rax, edi
lea r8, [rsp + 0x40]
add r8, rax
nop dword [rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, dil
inc edi
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp edi, 0x14
jl 0x1400dc810
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, Ordinal_41
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov r13d, 1
test eax, eax
je 0x1400dc8f7
mov rdi, qword [rsp + 0x30]
lea r8, [rsp + 0x70]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1400dc8ec
mov rax, qword [rsp + 0x70]
lea r9d, [r13 + 0xf]
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x44], rax
mov rcx, rdi
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1400dc8ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [str.3s_A3], bl
mov eax, dword [0x1401764dc]
mov dword [rsp + 0x30], eax
je 0x1400dc9ce
cmp r12d, 2
jl 0x1400dc991
movdqa xmm3, xmmword [0x140178040]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140178330]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140178330]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x140178080]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401781d0]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
jmp 0x1400dc9ce
lea r8, [rsp + 0x30]
mov edi, ebx
nop dword [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, dil
inc edi
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp edi, 4
jl 0x1400dc9a0
xor edx, edx
xor ecx, ecx
mov r14d, ebx
lea r8d, [rdx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x1400dd1d6
mov r8d, 4
mov qword [rsp + 0x140], rsi
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x1400dca40
lea rax, [rsp + 0x30]
mov r9d, Ordinal_41
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
mov rcx, rsi
cmovne r14d, dword [rsp + 0x5c]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r14d, r14d
je 0x1400dd1ce
xor edx, edx
mov qword [rsp + 0x148], r15
mov edi, ebx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400dd1c6
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], Ordinal_32
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1400dcae2
nop
cmp dword [rsp + 0x4c], r14d
jne 0x1400dcac8
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1400dcac8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
mov rcx, rsi
cmovne edi, r13d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], Ordinal_32
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1400dca90
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400dd1c6
cmp byte [0x1401764e3], bl
mov eax, dword [0x1401764e0]
mov dword [rsp + 0x30], eax
je 0x1400dcbce
cmp r12d, 2
jl 0x1400dcb8d
movdqa xmm3, xmmword [0x140178040]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140178330]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140178330]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x140178080]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401781d0]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
jmp 0x1400dcbce
lea r8, [rsp + 0x30]
mov edi, ebx
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, dil
inc edi
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp edi, 4
jl 0x1400dcba0
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, dword [0x140176470]
mov edi, ebx
mov dword [rsp + 0x50], eax
movzx eax, word [0x140176474]
mov word [rsp + 0x54], ax
movzx eax, byte [0x140176476]
mov byte [rsp + 0x56], al
movups xmm0, xmmword [0x140176460]
movups xmmword [rsp + 0x40], xmm0
cmp r12d, 2
jl 0x1400dcd52
movdqa xmm0, xmmword [0x1401781d0]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140178040]
movdqa xmm4, xmmword [0x140178330]
movdqa xmm6, xmmword [0x140178080]
movdqa xmmword [rsp + 0x70], xmm0
mov edx, dword [rsp + 0x70]
nop dword [rax]
nop word [rax + rax]
movd xmm2, edi
lea eax, [rdi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edi, 8
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
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x10
jl 0x1400dcc50
cmp edi, 0x17
jge 0x1400dcd8e
movsxd rax, edi
lea r8, [rsp + 0x40]
add r8, rax
nop dword [rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, dil
inc edi
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp edi, 0x17
jl 0x1400dcd60
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rsp + 0x40]
call fcn.14008a150
lea rdx, [0x14008a320]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, dword [0x140176440]
mov edi, ebx
mov dword [rsp + 0x60], eax
movzx eax, word [0x140176444]
mov word [rsp + 0x64], ax
movzx eax, byte [0x140176446]
mov byte [rsp + 0x66], al
movups xmm0, xmmword [str.s__P_]
movups xmm1, xmmword [0x140176430]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm1
cmp r12d, 2
jl 0x1400dcf32
movdqa xmm0, xmmword [0x1401781d0]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140178040]
movdqa xmm4, xmmword [0x140178330]
movdqa xmm6, xmmword [0x140178080]
movdqa xmmword [rsp + 0x70], xmm0
mov edx, dword [rsp + 0x70]
nop dword [rax]
nop word [rax + rax]
movd xmm2, edi
lea eax, [rdi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edi, 8
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
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x20
jl 0x1400dce30
cmp edi, 0x27
jge 0x1400dcf6e
movsxd rax, edi
lea r8, [rsp + 0x40]
add r8, rax
nop dword [rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, dil
inc edi
sub al, cl
add al, 0x30
xor byte [r8 - 1], al
cmp edi, 0x27
jl 0x1400dcf40
lea rcx, [rsp + 0x40]
call fcn.140023460
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
xor edx, edx
mov edi, ebx
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x1400dd1c6
xorps xmm0, xmm0
mov dword [rsp + 0x40], Ordinal_32
xor eax, eax
lea rdx, [rsp + 0x40]
mov rcx, r15
mov qword [rsp + 0x54], rax
movups xmmword [rsp + 0x44], xmm0
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1400dd00b
cmp dword [rsp + 0x4c], r14d
jne 0x1400dcff9
mov r8d, dword [rsp + 0x48]
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1400dcff9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
mov rcx, rsi
cmovne edi, r13d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1400dcfc1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400dd1c6
mov eax, dword [0x1401763f0]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x1401763f4]
mov byte [rsp + 0x54], al
movups xmm0, xmmword [str.e_UQSS]
movups xmmword [rsp + 0x40], xmm0
cmp r12d, 2
jl 0x1400dd184
movdqa xmm0, xmmword [0x1401781d0]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140178040]
movdqa xmm4, xmmword [0x140178330]
movdqa xmm6, xmmword [0x140178080]
movdqa xmmword [rsp + 0x70], xmm0
mov edx, dword [rsp + 0x70]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, xmm4
mov eax, ebx
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401781b0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x1400dd080
cmp eax, 0x15
jge 0x1400dd1bc
movsxd rax, ebx
lea rdi, [rsp + 0x40]
add rdi, rax
nop
mov eax, 0x51eb851f
lea rdi, [rdi + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
inc ebx
sub al, cl
add al, 0x30
xor byte [rdi - 1], al
cmp ebx, 0x15
jl 0x1400dd190
lea rcx, [rsp + 0x40]
call fcn.140023460
mov r15, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x140]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140148bf0
mov rbx, qword [rsp + 0x150]
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x110
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret