Function at 0x413540
Capabilities:
Acquire debug privileges
Check for time delay via gettickcount
Create process on windows
Resume thread
Terminate process

Disassembly:
push rbp
push rdi
push rbx
sub rsp, 0xd0
mov rbp, rsp
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x68], 0
lea rdi, [rbp + 0x80]
xor eax, eax
stosq qword [rdi], rax
stosq qword [rdi], rax
mov qword [rbp + 0x78], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0x98], 0
mov qword [rbp + 0xa0], 0
mov qword [rbp + 0xa8], 0
mov qword [rbp + 0xb0], 0
mov qword [rbp + 0xb8], 0
nop
lea rcx, [0x004102f0]
call fcn.00408e50
nop
call fcn.0040faf0
call fcn.0040fef0
call sub.kernel32.dll_GetTickCount
mov dword [0x0041d2e0], eax
lea rcx, [0x00414230]
mov edx, 0xa
lea r8, [0x0041d0e0]
lea r9, [0x0041d11d]
call fcn.0040e3a0
test al, al
je 0x414108
call fcn.0040f170
mov byte [0x0041d190], 1
cmp byte [0x0041d0f0], 0
je 0x41363a
lea rcx, [0x0041423a]
mov dl, 1
call fcn.0040c300
cmp byte [0x0041d0f3], 0
je 0x413712
lea rcx, [rbp + 0xb8]
mov rdx, qword [0x0041d11d]
call fcn.00406a00
mov rcx, qword [rbp + 0xb8]
call fcn.0040bec0
mov rcx, qword [0x00417460]
mov dword [rcx + 0x10], eax
mov ecx, 0x1fffff
xor rdx, rdx
mov rax, qword [0x00417460]
mov r8d, dword [rax + 0x10]
call sub.kernel32.dll_OpenProcess
mov rcx, qword [0x00417460]
mov qword [rcx], rax
mov rax, qword [0x00417460]
mov ecx, dword [rax + 0x10]
call fcn.0040c090
mov rcx, qword [0x00417460]
mov dword [rcx + 0x14], eax
mov ecx, 0x1f03ff
xor rdx, rdx
mov rax, qword [0x00417460]
mov r8d, dword [rax + 0x14]
call sub.kernel32.dll_OpenThread
mov rcx, qword [0x00417460]
mov eax, eax
mov qword [rcx + 8], rax
mov rax, qword [0x00417460]
cmp dword [rax + 0x10], 0
jne 0x4137a4
cmp byte [0x0041d0f2], 0
jne 0x414108
xor rcx, rcx
lea rdx, [0x0041425c]
lea r8, [0x004142a4]
mov r9d, 0x10
call sub.user32.dll_MessageBoxW
jmp 0x414108
mov rcx, qword [0x0041d2d8]
call fcn.004068b0
xor rcx, rcx
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov eax, dword [0x0041d0ec]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov rax, qword [0x00417468]
mov qword [rsp + 0x40], rax
mov rax, qword [0x00417460]
mov qword [rsp + 0x48], rax
call sub.kernel32.dll_CreateProcessW
test eax, eax
sete al
cmp al, 1
jne 0x4137a4
cmp byte [0x0041d0f2], 0
jne 0x414108
xor rcx, rcx
lea rdx, [0x004142b8]
lea r8, [0x004142a4]
mov r9d, 0x10
call sub.user32.dll_MessageBoxW
jmp 0x414108
cmp byte [0x0041d0f1], 0
je 0x41384e
call sub.kernel32.dll_GetTickCount
mov dword [0x0041d194], eax
jmp 0x413839
cmp dword [0x0041d0ec], 4
jne 0x4137de
mov rax, qword [0x00417460]
mov ecx, dword [rax + 8]
mov edx, dword [0x0041d0f4]
call fcn.0040f000
jmp 0x4137e9
mov ecx, dword [0x0041d0f4]
call sub.kernel32.dll_Sleep_1
call sub.kernel32.dll_GetTickCount
mov eax, eax
movsxd rcx, dword [0x0041d194]
neg rcx
lea rax, [rax + rcx]
movsxd rcx, dword [0x0041d0f8]
cmp rax, rcx
jl 0x413839
cmp byte [0x0041d0f2], 0
jne 0x414108
xor rcx, rcx
lea rdx, [0x00414316]
lea r8, [0x004142a4]
mov r9d, 0x10
call sub.user32.dll_MessageBoxW
jmp 0x414108
mov rcx, qword [0x0041d2d8]
call fcn.0040be20
cmp al, 1
jne 0x4137be
cmp qword [0x0041d125], 0
je 0x413901
lea rcx, [rbp + 0xb0]
mov rdx, qword [0x0041d125]
call fcn.00406a00
mov rax, qword [0x00417460]
mov ecx, dword [rax + 0x10]
mov rdx, qword [rbp + 0xb0]
call fcn.0040f670
test al, al
jne 0x4138ab
xor rcx, rcx
lea rdx, [0x00414340]
lea r8, [0x004142a4]
mov r9d, 0x10
call sub.user32.dll_MessageBoxW
jmp 0x414108
lea rcx, [rbp + 0xa8]
mov rdx, qword [0x0041d125]
call fcn.00406a00
mov rax, qword [0x00417460]
mov ecx, dword [rax + 0x10]
mov rdx, qword [rbp + 0xa8]
lea r8, [0x0041d1a0]
call fcn.0040f860
test al, al
je 0x413a81
mov eax, dword [0x0041d1a0]
mov qword [0x0041d2c0], rax
mov eax, dword [0x0041d1a8]
mov dword [0x0041d2c8], eax
jmp 0x413a81
mov rcx, qword [0x0041d2d8]
call fcn.0040bcb0
test al, al
je 0x413939
lea rcx, [rbp + 0xa0]
mov rdx, qword [0x0041d2d8]
call fcn.00406a30
mov rcx, qword [rbp + 0xa0]
lea rdx, [0x0041d1b8]
call fcn.0040dba0
jmp 0x41395f
lea rcx, [rbp + 0x98]
mov rdx, qword [0x0041d11d]
call fcn.004066d0
mov rcx, qword [rbp + 0x98]
lea rdx, [0x0041d1b8]
call fcn.0040dba0
mov rax, qword [0x0041d1e8]
mov qword [0x0041d2c0], rax
mov eax, dword [0x0041d208]
mov dword [0x0041d2c8], eax
cmp byte [0x0041d0f3], 0
je 0x4139f2
mov rax, qword [0x00417460]
mov rcx, qword [rax]
xor rdx, rdx
lea r8, [0x0041d328]
mov r9d, 0x30
mov qword [rsp + 0x20], 0
call sub.ntdll.dll_NtQueryInformationProcess
mov rax, qword [0x00417460]
mov rcx, qword [rax]
mov rax, qword [0x0041d330]
lea rdx, [rax + 0x10]
lea r8, [0x0041d2f8]
mov r9d, 8
lea rax, [0x0041d300]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_ReadProcessMemory
mov rax, qword [0x0041d2f8]
mov qword [0x0041d2c0], rax
jmp 0x413a81
lea rcx, [0x0041d2f0]
call fcn.004101f0
mov qword [0x0041d2e8], rax
cmp qword [0x0041d2e8], 0
je 0x413a81
mov rax, qword [0x0041d2e8]
mov dword [rax + 0x30], 0x10007
mov rax, qword [0x00417460]
mov rcx, qword [rax + 8]
mov rdx, qword [0x0041d2e8]
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x413a81
mov rax, qword [0x00417460]
mov rcx, qword [rax]
mov rax, qword [0x0041d2e8]
mov rax, qword [rax + 0x88]
lea rdx, [rax + 0x10]
lea r8, [0x0041d2f8]
mov r9d, 8
lea rax, [0x0041d300]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_ReadProcessMemory
mov rax, qword [0x0041d2f8]
mov qword [0x0041d2c0], rax
cmp dword [0x0041d10c], 0
je 0x413f10
lea rcx, [0x0041d198]
mov edx, dword [0x0041d2c8]
xor r8, r8
call fcn.004065a0
lea rcx, [0x0041d198]
call fcn.00406040
mov rcx, rax
mov edx, dword [0x0041d2c8]
xor r8, r8
call fcn.00403e30
lea rcx, [0x0041d198]
call fcn.00406040
mov rcx, qword [0x00417460]
mov rcx, qword [rcx]
mov rdx, qword [0x0041d2c0]
mov r8, rax
mov r9d, dword [0x0041d2c8]
lea rax, [0x0041d300]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_ReadProcessMemory
mov dword [0x0041d2cc], 0
mov dword [0x0041d320], 0
xor rax, rax
mov ebx, dword [0x0041d10c]
sub ebx, 1
mov dword [0x0041d188], eax
cmp dword [0x0041d188], ebx
jg 0x413ed0
add ebx, 1
mov rax, qword [0x0041d15d]
movsxd rcx, dword [0x0041d188]
mov eax, dword [rax + rcx*4]
sub eax, 1
cmp eax, 0xffffffff
je 0x413b4c
test eax, eax
jne 0x413b5e
jmp 0x413b55
mov byte [0x0041d318], 0
jmp 0x413b65
mov byte [0x0041d318], 1
jmp 0x413b65
mov byte [0x0041d318], 0
mov dword [0x0041d31c], 0
mov dword [0x0041d2d4], 0
mov byte [0x0041d324], 1
lea rcx, [rbp + 0x90]
mov rax, qword [0x0041d16d]
movsxd rdx, dword [0x0041d188]
mov rdx, qword [rax + rdx*8]
call fcn.00406a00
lea rcx, [0x004143b4]
mov rdx, qword [rbp + 0x90]
mov r8d, 1
call fcn.00407070
test eax, eax
jle 0x413c5b
lea rcx, [rbp + 0x78]
mov rax, qword [0x0041d16d]
movsxd rdx, dword [0x0041d188]
mov rdx, qword [rax + rdx*8]
call fcn.00406a00
lea rcx, [rbp + 0x80]
mov rdx, qword [rbp + 0x78]
call fcn.0040d940
lea rcx, [0x0041d308]
lea rdx, [rbp + 0x80]
mov r8, qword [0x0040d8c0]
call fcn.004074f0
lea rcx, [0x0041d198]
call fcn.00406040
mov rcx, rax
mov rax, qword [0x0041d308]
test rax, rax
je 0x413c24
mov rax, qword [rax - 8]
mov rdx, qword [0x0041d308]
mov r8, qword [0x0041d310]
mov r9d, eax
mov eax, dword [0x0041d2c8]
mov dword [rsp + 0x20], eax
mov byte [rsp + 0x28], 1
mov eax, dword [0x0041d2d4]
mov dword [rsp + 0x30], eax
call fcn.0040d7b0
mov dword [0x0041d2d4], eax
jmp 0x413ca0
lea rcx, [rbp + 0x70]
mov rax, qword [0x0041d16d]
movsxd rdx, dword [0x0041d188]
mov rdx, qword [rax + rdx*8]
call fcn.00406a00
lea rcx, [rbp + 0x68]
mov rdx, qword [0x0041d198]
call fcn.00406a00
mov rcx, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x68]
mov r8d, dword [0x0041d2d4]
call fcn.0040b6d0
mov dword [0x0041d2d4], eax
cmp dword [0x0041d2d4], 0xffffffff
jle 0x413ebc
mov rax, qword [0x0041d15d]
movsxd rcx, dword [0x0041d188]
cmp dword [rax + rcx*4], 1
jle 0x413cf8
add dword [0x0041d31c], 1
mov rax, qword [0x0041d15d]
movsxd rcx, dword [0x0041d188]
movsxd rax, dword [rax + rcx*4]
mov ecx, dword [0x0041d31c]
cmp rax, rcx
jle 0x413cf1
add dword [0x0041d2d4], 1
jmp 0x413b80
mov byte [0x0041d318], 1
mov dword [0x0041d18c], 1
jmp 0x413e06
mov rax, qword [0x0041d175]
movsxd rcx, dword [0x0041d188]
mov rax, qword [rax + rcx*8]
movsxd rcx, dword [0x0041d18c]
cmp byte [rax + rcx - 1], 0x3f
je 0x413dff
lea rcx, [rbp + 0x58]
mov rax, qword [0x0041d175]
movsxd rdx, dword [0x0041d188]
mov rax, qword [rax + rdx*8]
movsxd rdx, dword [0x0041d18c]
movzx rdx, byte [rax + rdx - 1]
call fcn.004068e0
lea rcx, [rbp + 0x50]
mov rax, qword [0x0041d175]
movsxd rdx, dword [0x0041d188]
mov rax, qword [rax + rdx*8]
movsxd rdx, dword [0x0041d18c]
movzx rdx, byte [rax + rdx]
call fcn.004068e0
lea rcx, [rbp + 0x60]
mov edx, 3
lea r8, [0x004143c8]
mov r9, qword [rbp + 0x58]
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.00406d70
mov rcx, qword [rbp + 0x60]
call fcn.0040b7c0
mov byte [0x0041d2d0], al
mov rax, qword [0x00417460]
mov rcx, qword [rax]
mov r8, qword [0x0041d2c0]
movsxd rax, dword [0x0041d2d4]
lea r8, [r8 + rax]
mov r9d, 2
mov eax, dword [0x0041d18c]
cdq
idiv r9d
movsxd rax, eax
lea rdx, [r8 + rax]
lea r8, [0x0041d2d0]
mov r9d, 1
lea rax, [0x0041d300]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_WriteProcessMemory
add dword [0x0041d18c], 2
mov eax, dword [0x0041d18c]
sub eax, 1
movsxd rax, eax
mov rcx, qword [0x0041d165]
movsxd rdx, dword [0x0041d188]
mov ecx, dword [rcx + rdx*4]
cmp rax, rcx
jl 0x413d07
add dword [0x0041d2d4], 1
cmp byte [0x0041d324], 0
je 0x413e5e
mov rax, qword [0x0041d15d]
movsxd rcx, dword [0x0041d188]
cmp dword [rax + rcx*4], 0
jne 0x413e5e
add dword [0x0041d320], 1
mov byte [0x0041d324], 0
cmp byte [0x0041d324], 0
je 0x413e8b
mov rax, qword [0x0041d15d]
movsxd rcx, dword [0x0041d188]
movsxd rax, dword [rax + rcx*4]
mov ecx, dword [0x0041d31c]
cmp rax, rcx
jne 0x413e8b
add dword [0x0041d320], 1
cmp byte [0x0041d324], 0
je 0x413eaf
mov rax, qword [0x0041d15d]
movsxd rcx, dword [0x0041d188]
cmp dword [rax + rcx*4], 1
jne 0x413eaf
add dword [0x0041d320], 1
cmp byte [0x0041d318], 0
je 0x413b80
nop
add dword [0x0041d188], 1
cmp dword [0x0041d188], ebx
jne 0x413b2d
nop
movsxd rax, dword [0x0041d320]
mov ecx, dword [0x0041d10c]
cmp rax, rcx
je 0x413f10
mov byte [0x0041d190], 0
cmp byte [0x0041d0f2], 0
jne 0x413f10
xor rcx, rcx
lea rdx, [0x004143cc]
lea r8, [0x004142a4]
mov r9d, 0x40
call sub.user32.dll_MessageBoxW
cmp dword [0x0041d0e0], 0
je 0x4140a9
mov rax, qword [0x0041d12d]
mov qword [rbp + 0xc8], rax
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x413f3b
mov rcx, qword [rcx - 8]
mov rdx, qword [0x0041d2d8]
lea r8, [rcx - 1]
movzx r9, byte [0x0041d11c]
mov rcx, rdx
mov rdx, rax
call fcn.00410090
lea rcx, [0x0041d0d8]
mov rdx, qword [0x0040d740]
mov r8d, 1
mov r9d, dword [0x0041d0e0]
call fcn.00407e80
xor rax, rax
mov ebx, dword [0x0041d0e0]
sub ebx, 1
mov dword [0x0041d188], eax
cmp dword [0x0041d188], ebx
jg 0x4140a8
add ebx, 1
mov rax, qword [0x00417460]
mov rcx, qword [rax]
mov rax, qword [0x0041d2c0]
mov rdx, qword [0x0041d12d]
movsxd r8, dword [0x0041d188]
mov rdx, qword [rdx + r8*8]
lea rdx, [rax + rdx]
mov rax, qword [0x0041d0d8]
movsxd r8, dword [0x0041d188]
lea r8, [rax + r8]
mov r9d, 1
lea rax, [0x0041d300]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_ReadProcessMemory
mov rax, qword [0x0041d0d8]
movsxd rcx, dword [0x0041d188]
mov rdx, qword [0x0041d135]
movsxd r8, dword [0x0041d188]
movzx rax, byte [rax + rcx]
cmp al, byte [rdx + r8]
jne 0x414066
mov rax, qword [0x00417460]
mov rcx, qword [rax]
mov rax, qword [0x0041d2c0]
mov rdx, qword [0x0041d12d]
movsxd r8, dword [0x0041d188]
mov rdx, qword [rdx + r8*8]
lea rdx, [rax + rdx]
mov rax, qword [0x0041d13d]
movsxd r8, dword [0x0041d188]
lea r8, [rax + r8]
mov r9d, 1
lea rax, [0x0041d300]
mov qword [rsp + 0x20], rax
call sub.kernel32.dll_WriteProcessMemory
jmp 0x414095
mov byte [0x0041d190], 0
cmp byte [0x0041d0f2], 0
jne 0x4140a8
xor rcx, rcx
lea rdx, [0x004143cc]
lea r8, [0x004142a4]
mov r9d, 0x40
call sub.user32.dll_MessageBoxW
jmp 0x4140a8
add dword [0x0041d188], 1
cmp dword [0x0041d188], ebx
jne 0x413f9b
nop
cmp byte [0x0041d190], 0
je 0x4140cd
cmp dword [0x0041d0ec], 4
jne 0x4140e8
mov rax, qword [0x00417460]
mov rcx, qword [rax + 8]
call sub.kernel32.dll_ResumeThread
jmp 0x4140e8
cmp byte [0x0041d0f3], 0
jne 0x4140e8
mov rax, qword [0x00417460]
mov rcx, qword [rax]
xor rdx, rdx
call sub.kernel32.dll_TerminateProcess
mov rax, qword [0x00417460]
mov rcx, qword [rax]
call sub.kernel32.dll_CloseHandle_1
mov rax, qword [0x00417460]
mov rcx, qword [rax + 8]
call sub.kernel32.dll_CloseHandle_1
nop
lea rcx, [rbp + 0x50]
mov edx, 6
call fcn.004058d0
lea rcx, [rbp + 0x80]
mov rdx, qword [0x0040d8c0]
call fcn.004072b0
lea rcx, [rbp + 0x90]
call fcn.004057f0
lea rcx, [rbp + 0x98]
mov edx, 2
call fcn.00405930
lea rcx, [rbp + 0xa8]
mov edx, 3
call fcn.004058d0
call fcn.00405460
jmp 0x414169
lea rsp, [rbp + 0xd0]
pop rbx
pop rdi
pop rbp
ret