Function at 0x180005428
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x18003b3b0]
xor rax, rsp
mov qword [rbp + 0x4f], rax
cmp edx, 1
jne 0x1800056f7
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x18003c488], rax
call fcn.18000128c
call fcn.18000303c
mov dword [rbp - 0x49], 0xc4dbcdcc
mov dword [rbp - 0x45], 0xbcbec0ce
mov dword [rbp - 0x41], 0xdeddd4a1
mov word [rbp - 0x3d], pe_nt_image_headers64
xor ecx, ecx
lea eax, [rcx - 0x79]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 0xc
jb 0x180005493
mov byte [rbp - 0x3c], 0
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x19]
call fcn.180005778
nop
lea rdx, str.CreateTimerQueueTimer
lea rcx, [rbp + 0x27]
call fcn.180005778
nop
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1800054fc
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 0x10
cmovae rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1800054fc
xor ebx, ebx
jmp 0x180005516
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0x10
cmovae rdx, qword [rbp + 0x27]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov dword [rbp - 0x49], 0xc4dbcdcc
mov dword [rbp - 0x45], 0xbcbec0ce
mov dword [rbp - 0x41], 0xdeddd4a1
mov word [rbp - 0x3d], pe_nt_image_headers64
xor ecx, ecx
lea eax, [rcx - 0x79]
xor byte [rbp + rcx - 0x49], al
inc rcx
cmp rcx, 0xc
jb 0x180005533
mov byte [rbp - 0x3c], 0
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x39]
call fcn.180005778
nop
lea rdx, str.CreateTimerQueue
lea rcx, [rbp + 7]
call fcn.180005778
nop
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x180005598
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 0x10
cmovae rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x1800055af
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0x10
cmovae rdx, qword [rbp + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8, [0x180002e14]
mov rdx, rax
lea rcx, [rbp + 0x47]
call rbx
nop
mov ebx, 0x1000
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0x10
jb 0x180005616
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x180005611
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180005611
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002e1dc
movdqa xmm0, xmmword [0x1800364f0]
movdqu xmmword [rbp + 0x17], xmm0
mov byte [rbp + 7], 0
mov rdx, qword [rbp - 0x21]
cmp rdx, 0x10
jb 0x180005661
inc rdx
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, rbx
jb 0x18000565c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000565c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002e1dc
movdqa xmm0, xmmword [0x1800364f0]
movdqu xmmword [rbp - 0x29], xmm0
mov byte [rbp - 0x39], 0
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x1800056ac
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, rbx
jb 0x1800056a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800056a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002e1dc
movdqa xmm0, xmmword [0x1800364f0]
movdqu xmmword [rbp + 0x37], xmm0
mov byte [rbp + 0x27], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0x10
jb 0x1800056f7
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, rbx
jb 0x1800056f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800056f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002e1dc
mov eax, 1
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.18002e180
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rbp
ret