Function at 0x140003c50
Capabilities:
Encode data using xor

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, [rsp - 0x60]
sub rsp, 0x160
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140062040]
xor rax, rsp
mov qword [rbp + 0x40], rax
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
lea r8d, [r12 + 0x29]
lea rdx, str.Called_Carbon::Injection::LoadInjection__
lea rcx, [rsp + 0x30]
call fcn.140004e10
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140003cee
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003ce9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004614
call fcn.14002fd40
movups xmm0, xmmword [0x140051058]
movups xmmword [rbp - 0x58], xmm0
movups xmm1, xmmword [0x140051068]
movups xmmword [rbp - 0x48], xmm1
movups xmm0, xmmword [str.63_8_411N1]
movups xmmword [rbp - 0x38], xmm0
movsd xmm0, qword [0x140051088]
movsd qword [rbp - 0x28], xmm0
movzx eax, byte [0x140051090]
mov byte [rbp - 0x20], al
mov r8d, r12d
mov r10d, dword [0x140062008]
cmp r10d, 2
jl 0x140003e75
movdqa xmm5, xmmword [0x140058700]
movdqa xmm4, xmmword [0x1400587b0]
movdqa xmm6, xmmword [str.44447777]
movdqa xmm0, xmmword [0x1400587a0]
movdqa xmmword [rbp + 0x20], xmm0
lea rcx, [rbp - 0x54]
mov edx, dword [rbp + 0x20]
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 [0x140058780]
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 [0x140058780]
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, 0x38
jl 0x140003d70
cmp r8d, 0x39
jge 0x140003eb0
movsxd rax, r8d
lea r9, [rbp - 0x58]
add r9, rax
nop
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x39
jl 0x140003e80
mov eax, dword [0x1400510a8]
mov dword [rsp + 0x60], eax
movzx eax, word [0x1400510ac]
mov word [rsp + 0x64], ax
movzx eax, byte [0x1400510ae]
movups xmm0, xmmword [str.PMNK]
mov byte [rsp + 0x66], al
movups xmmword [rsp + 0x50], xmm0
mov r8d, r12d
cmp r10d, 2
jl 0x140004025
movdqa xmm5, xmmword [0x140058700]
movdqa xmm4, xmmword [0x1400587b0]
movdqa xmm6, xmmword [str.44447777]
movdqa xmm0, xmmword [0x1400587a0]
movdqa xmmword [rbp + 0x20], xmm0
lea rcx, [rsp + 0x54]
mov edx, dword [rbp + 0x20]
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 [0x140058780]
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 [0x140058780]
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 0x140003f20
cmp r8d, 0x17
jge 0x140004060
movsxd rax, r8d
lea r9, [rsp + 0x50]
add r9, rax
mov eax, 0x4ec4ec4f
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x34
movzx eax, r8b
sub al, cl
add al, 0x38
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x17
jl 0x140004030
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rsp + 0x50]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], r12b
jne 0x140004080
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140004e10
nop
lea rax, [rbp - 0x58]
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400040a0
mov r8, rbx
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x30]
call fcn.1400046d0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x10], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140004127
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004122
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004122
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
movdqa xmm0, xmmword [0x1400586f0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rbp - 0x18], xmm1
mov qword [rbp - 8], rax
lea rdx, [rbp]
lea rcx, [rbp - 0x18]
call fcn.140001f30
nop
mov rsi, qword [rbp - 0x18]
cmp rsi, qword [rbp - 0x10]
jne 0x14000416e
mov r8d, 0x25
lea rdx, str.Failed_to_download_and_decode_the_DLL
jmp 0x140004189
mov rcx, rsi
call fcn.140003750
mov r15, rax
test rax, rax
jne 0x1400041b6
lea r8d, [rax + 0x28]
lea rdx, str.Failed_to_load_Injection.dll_from_memory
xorps xmm0, xmm0
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
movups xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.140004e10
lea rcx, [rsp + 0x30]
call fcn.140020b80
xor bl, bl
jmp 0x1400045a5
lea r9, [rbp + 0x35]
mov r8, r15
movabs r13, 0xcccccccccccccccd
nop word [rax + rax]
dec r9
mov rax, r13
mul r8
shr rdx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8, rdx
test rdx, rdx
jne 0x1400041d0
lea r8, [rbp + 0x35]
mov rdx, r9
lea rcx, [rsp + 0x68]
call fcn.140005230
nop
mov r8, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
sub rax, r8
lea r14, str.DLL_loaded_at:
cmp rax, 0xf
jb 0x1400042ad
lea rax, [r8 + 0xf]
mov qword [rsp + 0x78], rax
lea rbx, [rsp + 0x68]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x68]
lea rax, [0x140050fdf]
cmp rax, rbx
jbe 0x14000426b
lea rax, [rbx + r8]
cmp r14, rax
ja 0x14000426b
cmp rbx, r14
ja 0x140004263
mov rdi, r12
jmp 0x140004270
mov rdi, rbx
sub rdi, r14
jmp 0x140004270
mov edi, 0xf
inc r8
lea rcx, [rbx + 0xf]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0xf
sub r8, rdi
lea rdx, [r14 + 0xf]
add rdx, rdi
lea rcx, [rbx + rdi]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x68]
jmp 0x1400042ca
mov qword [rsp + 0x28], 0xf
mov qword [rsp + 0x20], r14
mov edx, 0xf
lea rcx, [rsp + 0x68]
call fcn.140005360
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
psrldq xmm0, 8
movq rdx, xmm0
cmp rdx, 0xf
jbe 0x140004326
inc rdx
movq rcx, xmm1
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004320
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004320
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140004365
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004360
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004360
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
lea rcx, [r15 + 0x1080]
test rcx, rcx
jne 0x140004408
lea rdx, str.Failed_to_find_ManualMap_function
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004a70
lea rdx, [0x140004c40]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov r8d, 0x21
lea rdx, str.Failed_to_find_ManualMap_function
lea rcx, [rsp + 0x30]
call fcn.140004e10
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140004401
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400043fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400043fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
xor bl, bl
jmp 0x1400045a5
mov qword [0x1400632b8], rcx
lea r9, [rbp + 0x35]
nop dword [rax]
nop word [rax + rax]
dec r9
mov rax, r13
mul rcx
shr rdx, 3
movzx eax, dl
shl al, 2
lea r8d, [rax + rdx]
add r8b, r8b
sub cl, r8b
add cl, 0x30
mov byte [r9], cl
mov rcx, rdx
test rdx, rdx
jne 0x140004420
lea r8, [rbp + 0x35]
mov rdx, r9
lea rcx, [rbp - 0x78]
call fcn.140005230
nop
mov r8, qword [rbp - 0x68]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
sub rax, r8
mov edi, 0x25
lea r15, str.ManualMap_function_found_at_address:
cmp rax, rdi
jb 0x1400044f3
lea rax, [r8 + 0x25]
mov qword [rbp - 0x68], rax
lea rbx, [rbp - 0x78]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x78]
lea rax, [0x14005102d]
cmp rax, rbx
jbe 0x1400044b7
lea rax, [rbx + r8]
cmp r15, rax
ja 0x1400044b7
cmp rbx, r15
ja 0x1400044af
mov r14, r12
jmp 0x1400044ba
mov r14, rbx
sub r14, r15
jmp 0x1400044ba
mov r14, rdi
inc r8
lea rcx, [rbx + 0x25]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
sub rdi, r14
lea rdx, [r15 + 0x25]
add rdx, r14
lea rcx, [rbx + r14]
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x78]
jmp 0x140004509
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r15
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.140005360
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
psrldq xmm0, 8
movq rdx, xmm0
cmp rdx, 0xf
jbe 0x140004565
inc rdx
movq rcx, xmm1
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000455f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000455f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x1400045a3
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000459e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000459e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
mov bl, 1
test rsi, rsi
je 0x1400045e2
mov rdx, qword [rbp - 8]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400045d9
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400045d9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.14002fd40
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 0xf
jbe 0x140004620
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000461b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000461b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002fd40
movzx eax, bl
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.14002f800
lea r11, [rsp + 0x160]
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