Function at 0x140001000
Capabilities:
Encode data using xor
Generate random numbers via rtlgenrandom
Set console window title
Terminate process

Disassembly:
mov rax, rsp
push rsi
push r13
push r14
sub rsp, 0x2090
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rdi
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r15
call qword [sym.imp.KERNEL32.dll_AllocConsole]
lea rcx, str.HELLO
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
xor ebp, ebp
lea rcx, str.CONIN_
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], ebp
mov edx, 0xc0000000
mov dword [rsp + 0x20], 1
lea r8d, [rbp + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 2]
mov dword [rsp + 0x28], ebp
lea rcx, str.CONOUT_
xor r9d, r9d
mov dword [rsp + 0x20], 1
mov edx, 0xc0000000
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdx, rbx
mov ecx, 0xfffffff6
mov rdi, rax
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, rdi
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
mov rdx, rdi
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_SetStdHandle]
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movsx edx, word [rsp + 0x6a]
lea rcx, [rsp + 0x40]
movsx r15d, word [rsp + 0x6e]
lea r12d, [rbp + 1]
sub r15d, edx
mov ebx, ebp
dec r15d
lea edx, [rbp + 0x10]
mov dword [rsp + 0x50], r15d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140001130
mov r15, qword [rsp + 0x2080]
mov ecx, 1
mov r12, qword [rsp + 0x2088]
mov rdi, qword [rsp + 0x20c0]
mov rbp, qword [rsp + 0x20b8]
mov rbx, qword [rsp + 0x20b0]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 0xa
lea r14, str.________._0123456789:_____ABCDEFGHIJKLMNOPQRSTUVWXYZ____abcdefghijklmnopqrstuvwxyz
nop dword [rax]
mov r10d, dword [rsp + 0x4c]
lea esi, [rbx - 1]
mov r9d, dword [rsp + 0x48]
mov r13d, 1
mov r11d, dword [rsp + 0x44]
mov edi, dword [rsp + 0x40]
mov word [rsp + 0x80], cx
cmp ebx, r13d
jbe 0x1400011dc
lea r14, [rsp + 0x82]
mov ebp, esi
mov r13d, ebx
lea r15, str.________._0123456789:_____ABCDEFGHIJKLMNOPQRSTUVWXYZ____abcdefghijklmnopqrstuvwxyz
nop dword [rax]
lea r8d, [rdi + r10]
xor r9d, edi
mov eax, r11d
lea r14, [r14 + 2]
xor eax, r10d
mov ecx, r11d
mov r10d, eax
shl ecx, 9
xor edi, eax
rol r10d, 0xb
xor r11d, r9d
mov eax, 0x58ed2309
mul r8d
mov eax, r8d
xor r9d, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 6
imul eax, eax, 0x5f
sub r8d, eax
movzx eax, word [r15 + r8*2]
mov word [r14 - 2], ax
sub rbp, 1
jne 0x140001180
mov r15d, dword [rsp + 0x50]
lea r14, str.________._0123456789:_____ABCDEFGHIJKLMNOPQRSTUVWXYZ____abcdefghijklmnopqrstuvwxyz
lea r8d, [rdi + r10]
mov qword [rsp + 0x20], rbp
xor r9d, edi
mov ecx, r11d
shl ecx, 9
mov eax, r11d
xor eax, r10d
xor r11d, r9d
xor edi, eax
mov dword [rsp + 0x44], r11d
rol eax, 0xb
xor r9d, ecx
mov dword [rsp + 0x4c], eax
mov eax, 0x58ed2309
mul r8d
mov eax, r8d
mov ecx, r13d
sub eax, edx
mov dword [rsp + 0x48], r9d
shr eax, 1
xor r9d, r9d
add eax, edx
mov dword [rsp + 0x40], edi
shr eax, 6
lea rdx, [rsp + 0x80]
imul eax, eax, 0x5f
sub r8d, eax
movzx eax, word [r14 + r8*2]
lea r8d, [r13 + 2]
mov word [rsp + rcx*2 + 0x80], ax
mov rcx, qword [rsp + 0x58]
mov word [rsp + r8*2 + 0x80], bp
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov ecx, 0x14
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0xa
test r12d, r12d
je 0x14000128f
cmp ebx, r15d
jae 0x14000127f
inc ebx
jmp 0x140001140
jne 0x140001140
mov r12d, ebp
mov ebx, esi
jmp 0x140001140
test ebx, ebx
je 0x14000129a
mov ebx, esi
jmp 0x140001140
mov r12d, 1
inc ebx
jmp 0x140001140