Function at 0x180004030
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x1800251d8]
mov rcx, rax
lea rdx, str.CONIN_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov ecx, 1
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rbx
lea r8, [0x1800251e4]
mov rcx, rax
lea rdx, [0x1800251e8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
cmp byte [0x180025211], 0
movups xmm0, xmmword [0x180025200]
movzx eax, word [0x180025210]
mov word [rsp + 0x40], ax
movups xmmword [rsp + 0x30], xmm0
je 0x18000425f
xor ecx, ecx
cmp dword [0x180028090], 2
jl 0x180004223
movdqa xmm0, xmmword [0x1800252b0]
lea rdx, [rsp + 0x34]
movdqa xmm4, xmmword [0x180025280]
movdqa xmm3, xmmword [0x1800252c0]
movdqa xmm5, xmmword [str.::::]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x50], xmm6
movdqa xmm6, xmmword [0x1800252a0]
nop dword [rax]
nop word [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x180004130
movaps xmm6, xmmword [rsp + 0x50]
cmp ecx, 0x12
jge 0x18000425f
movsxd rax, ecx
lea r8, [rsp + 0x30]
add r8, rax
nop
mov eax, 0x8d3dcb09
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x3a
movzx eax, cl
inc ecx
sub al, dl
add al, 0x36
xor byte [r8 - 1], al
cmp ecx, 0x12
jl 0x180004230
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [str.qxnwu_]
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], eax
mov edx, 0x65
movzx eax, word [0x180025218]
mov rcx, rsi
xor byte [rsp + 0x71], 0x37
xor byte [rsp + 0x72], 0x38
xor byte [rsp + 0x73], 0x39
mov word [rsp + 0x74], ax
xor byte [rsp + 0x74], 0x3a
xor byte [rsp + 0x75], 0x3b
mov byte [rsp + 0x70], 0x47
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rbx
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
mov qword [rbp + 8], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
lea r11, [rsp + 0x60]
mov qword [rbp + 0x10], rax
mov rbx, qword [r11 + 0x18]
mov rax, rbp
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret