joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400542d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push r15
sub rsp, 8
mov r14, rdx
mov r15, rcx
cmp r8, 5
jae 0x1400542ef
xor eax, eax
add rsp, 8
pop r15
pop r14
ret
mov r9d, dword [rcx + 0x4e00]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbp
mov ebp, dword [rcx + 0x4e04]
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + 0x4df8]
lea rbx, [r8 - 4]
mov qword [rsp + 0x38], rdi
xor r10d, r10d
mov qword [rsp], r12
lea r12, [0x140000000]
add rbx, rdx
nop dword [rax]
lea rax, [r10 + r14]
cmp rax, rbx
jae 0x140054353
nop dword [rax]
movzx ecx, byte [rax]
and cl, 0xfe
cmp cl, 0xe8
je 0x140054353
inc rax
cmp rax, rbx
jb 0x140054340
mov r10, rax
sub r10, r14
cmp rax, rbx
jae 0x140054477
mov rcx, r10
sub rcx, rsi
cmp rcx, 3
jbe 0x140054390
xor r9d, r9d
movzx edx, byte [rax + 4]
mov rsi, r10
lea ecx, [rdx - 1]
cmp cl, 0xfd
ja 0x1400543d6
and r9d, 3
add r9d, r9d
or r9d, 1
inc r10
jmp 0x140054330
dec ecx
shl r9d, cl
and r9d, 7
je 0x140054371
movzx ecx, byte [r9 + r12 + 0xd7658]
mov rdx, rax
sub rdx, rcx
cmp byte [r9 + r12 + 0xd7650], 0
movzx ecx, byte [rdx + 4]
je 0x1400543c0
inc cl
test cl, 0xfe
jne 0x140054371
and r9d, 3
mov rsi, r10
add r9d, r9d
or r9d, 1
inc r10
jmp 0x140054330
movzx ecx, byte [rax + 3]
movzx r8d, dl
shl r8d, 8
or r8d, ecx
movzx ecx, byte [rax + 2]
shl r8d, 8
or r8d, ecx
movzx ecx, byte [rax + 1]
shl r8d, 8
or r8d, ecx
sub r8d, r10d
sub r8d, ebp
test r9d, r9d
je 0x140054448
movzx r11d, byte [r9 + r12 + 0xd7658]
shl r11d, 3
neg r11d
nop word [rax + rax]
lea ecx, [r11 + 0x18]
mov edx, r8d
shr edx, cl
inc dl
test dl, 0xfe
jne 0x140054448
lea ecx, [r11 + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor r8d, edx
sub r8d, r10d
sub r8d, ebp
jmp 0x140054420
mov ecx, r8d
mov byte [rax + 1], r8b
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [rax + 4], cl
mov ecx, r8d
shr ecx, 0x10
mov byte [rax + 3], cl
mov ecx, r8d
shr ecx, 8
add r10, 5
mov byte [rax + 2], cl
jmp 0x140054330
add dword [r15 + 0x4e04], r10d
mov r12, qword [rsp]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
mov qword [r15 + 0x4df8], rsi
mov rsi, qword [rsp + 0x30]
mov dword [r15 + 0x4e00], r9d
mov rax, r10
add rsp, 8
pop r15
pop r14
ret
Function at 0x14006ab70
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r12
push r13
push r14
push r15
mov esi, dword [rcx + 0x4804]
mov ebp, edx
lea r9, [0x1400e0430]
mov dword [rcx + rbp*4 + 0x4808], esi
movzx edx, word [rcx]
mov r11, rcx
movzx ecx, word [rcx + 2]
mov eax, edx
xor rdx, 0x7f0
shr rax, 4
shr rdx, 4
lea r12, [r11 + 0x404]
movzx r14d, byte [rax + r9]
movzx r8d, byte [rdx + r9]
mov eax, ecx
shr rax, 4
xor rcx, 0x7f0
mov dword [rsp + 0x38], r14d
movzx r15d, byte [rax + r9]
shr rcx, 4
movzx r13d, byte [rcx + r9]
add r15d, r8d
xor r9d, r9d
imul rax, rbp, 0x440
add r12, rax
add r13d, r8d
test esi, esi
je 0x14006ad6a
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], rdi
mov rdi, r12
cmp r9d, 8
jae 0x14006ac80
xor r10d, r10d
lea r8d, [r9 + 8]
lea rbx, [rbp*8]
lea r14, [0x1400e0430]
nop dword [rax]
nop dword [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 4]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x14006ac30
mov eax, dword [rsp + 0x38]
inc r9d
add rdi, 4
add eax, r10d
mov dword [rdi - 4], eax
cmp r9d, esi
jb 0x14006ac08
jmp 0x14006ad60
cmp r9d, esi
jae 0x14006ad60
lea rdi, [r12 + r9*4]
lea r14, [0x1400e0430]
cmp r9d, 0x10
jae 0x14006acfd
xor r10d, r10d
mov r8d, r9d
lea rbx, [rbp*8]
nop dword [rax + rax]
mov ecx, r8d
shr r8d, 1
and ecx, 1
mov eax, r8d
add rax, rbx
movzx edx, word [r11 + rax*2 + 0x104]
mov eax, ecx
neg eax
shr rdx, 4
shr rax, 4
and eax, 0x7f
xor rdx, rax
movzx eax, byte [rdx + r14]
add r10d, eax
cmp r8d, 1
jne 0x14006acb0
lea eax, [r10 + r15]
inc r9d
add rdi, 4
mov dword [rdi - 4], eax
cmp r9d, esi
jb 0x14006ac94
jmp 0x14006ad60
cmp r9d, esi
jae 0x14006ad60
lea rbx, [r12 + r9*4]
nop word [rax + rax]
xor r10d, r10d
lea eax, [r9 + 0xf0]
nop word [rax + rax]
mov ecx, eax
shr eax, 1
movzx r8d, word [r11 + rax*2 + 0x204]
and ecx, 1
neg ecx
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
movzx ecx, byte [r8 + r14]
add r10d, ecx
cmp eax, 1
jne 0x14006ad20
lea eax, [r10 + r13]
inc r9d
add rbx, 4
mov dword [rbx - 4], eax
cmp r9d, esi
jb 0x14006ad10
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x14006ad80
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rsi, qword [rdx]
mov r11d, dword [rdx + 0x18]
mov ebp, dword [rdx + 0x1c]
mov rax, rcx
mov r10d, r8d
mov ecx, r11d
mov edx, dword [rax + 0xb98]
sub ecx, ebp
mov r9d, 8
movzx edi, byte [rcx + rsi]
dec ecx
and edx, r10d
movzx r8d, byte [rcx + rsi]
mov ecx, r9d
lea rbx, [rax + 0xb9c]
sub cl, byte [rax + 0xb94]
shr r8d, cl
mov ecx, dword [rax + 0xb94]
shl edx, cl
add r8d, edx
lea rdx, [r8 + r8*2]
shl rdx, 9
add rbx, rdx
cmp dword [rax + 0x2e0], 7
jge 0x14006ae3c
lea r10d, [r9 - 7]
movzx r11d, dil
nop dword [rax]
dec r9d
mov r8d, r11d
movzx ecx, r9b
shr r8d, cl
mov rcx, qword [rax + 0x18]
and r8d, 1
mov dword [rax + rcx*4 + 0x28], r8d
mov ecx, r10d
lea rdx, [rbx + rcx*2]
mov rcx, qword [rax + 0x18]
lea r10d, [r8 + r10*2]
mov qword [rax + rcx*8 + 0x110], rdx
inc qword [rax + 0x18]
test r9d, r9d
jne 0x14006ae00
jmp 0x14006aeb0
sub r11d, dword [rax + 0x2e4]
mov r9d, 0x100
movzx r8d, dil
sub r11d, ebp
dec r11d
add r8d, r9d
movzx r10d, byte [r11 + rsi]
nop dword [rax + rax]
mov rcx, qword [rax + 0x18]
mov edx, r8d
add r10d, r10d
shr edx, 7
and edx, 1
mov dword [rax + rcx*4 + 0x28], edx
mov ecx, r9d
mov edx, r8d
and ecx, r10d
shr edx, 8
add r8d, r8d
add ecx, r9d
add edx, ecx
mov rcx, qword [rax + 0x18]
lea rdx, [rbx + rdx*2]
mov qword [rax + rcx*8 + 0x110], rdx
inc qword [rax + 0x18]
mov ecx, r10d
xor ecx, r8d
not ecx
and r9d, ecx
cmp r8d, 0x10000
jb 0x14006ae60
mov ecx, dword [rax + 0x2e0]
cmp ecx, 3
jg 0x14006aec7
mov dword [rax + 0x2e0], 0
jmp 0x14006aeda
cmp ecx, 9
jg 0x14006aed1
add ecx, 0xfffffffd
jmp 0x14006aed4
add ecx, 0xfffffffa
mov dword [rax + 0x2e0], ecx
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret

Function at 0x1400703f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rsi, rcx
xor r9d, r9d
lea rdi, [rcx + 0x10e98]
lea rbp, [0x1400e0430]
nop dword [rax + rax]
mov r10d, r9d
mov ebx, 4
xor eax, eax
mov r11d, 1
mov ecx, r11d
mov r8d, r10d
shr r10d, 1
movzx edx, word [rsi + rcx*2 + 0x71e0]
and r8d, 1
mov ecx, r8d
shr rdx, 4
lea r11d, [r8 + r11*2]
neg ecx
shr rcx, 4
and ecx, 0x7f
xor rdx, rcx
movzx ecx, byte [rdx + rbp]
add eax, ecx
dec ebx
jne 0x140070430
inc r9d
mov dword [rdi], eax
add rdi, 4
cmp r9d, 0x10
jb 0x140070420
mov rbp, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x20]
mov dword [rsi + 0x10ed8], ebx
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x18]
ret
Function at 0x140070490
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov r14d, 4
mov r10, rcx
xor edi, edi
lea rbx, [rcx + 0x10290]
lea rsi, [rcx + 0x10694]
lea r15, [0x1400e0430]
mov ebp, r14d
nop dword [rax + rax]
xor r11d, r11d
cmp dword [r10 + 0x10e90], r11d
jbe 0x140070534
nop dword [rax]
xor r9d, r9d
lea eax, [r11 + 0x40]
nop word [rax + rax]
mov edx, eax
shr eax, 1
and edx, 1
mov ecx, eax
add rcx, rdi
movzx r8d, word [r10 + rcx*2 + 0x6efc]
mov ecx, edx
neg ecx
shr r8, 4
shr rcx, 4
and ecx, 0x7f
xor r8, rcx
movzx ecx, byte [r8 + r15]
add r9d, ecx
cmp eax, 1
jne 0x1400704f0
mov dword [rbx + r11*4], r9d
inc r11d
cmp r11d, dword [r10 + 0x10e90]
jb 0x1400704e0
mov edx, 0xe
cmp dword [r10 + 0x10e90], edx
jbe 0x14007055f
mov eax, edx
lea rcx, [rbx + rax*4]
mov eax, edx
inc edx
shr eax, 1
sub eax, 5
shl eax, 4
add dword [rcx], eax
cmp edx, dword [r10 + 0x10e90]
jb 0x140070542
mov eax, dword [rbx]
add rsi, 0x200
add rbx, 0x100
mov dword [rsi - 0x204], eax
mov eax, dword [rbx - 0xfc]
add rdi, 0x40
mov dword [rsi - 0x200], eax
mov eax, dword [rbx - 0xf8]
mov dword [rsi - 0x1fc], eax
mov eax, dword [rbx - 0xf4]
mov dword [rsi - 0x1f8], eax
dec rbp
jne 0x1400704d0
lea rdi, [r10 + 0x108a0]
nop dword [rax]
cmp r14d, 4
ja 0x1400705bb
mov edx, r14d
jmp 0x1400705cd
bsr edx, r14d
mov eax, r14d
lea ecx, [rdx - 1]
shr eax, cl
and eax, 1
lea edx, [rax + rdx*2]
mov r9d, edx
mov eax, edx
mov ebx, r14d
and eax, 1
shr r9d, 1
mov r11d, edx
dec r9d
or eax, 2
mov ecx, r9d
shl eax, cl
sub ebx, eax
xor r8d, r8d
mov ebp, eax
lea esi, [r8 + 1]
mov eax, esi
mov edx, ebx
shr ebx, 1
sub rax, r11
and edx, 1
add rax, rbp
lea esi, [rdx + rsi*2]
movzx ecx, word [r10 + rax*2 + 0x70fa]
mov eax, edx
neg eax
shr rcx, 4
shr rax, 4
and eax, 0x7f
xor rcx, rax
movzx eax, byte [rcx + r15]
add r8d, eax
dec r9d
jne 0x1400705f4
mov ecx, dword [r10 + r11*4 + 0x10290]
inc r14d
add rdi, 4
add ecx, r8d
mov dword [rdi - 0x204], ecx
mov ecx, dword [r10 + r11*4 + 0x10390]
add ecx, r8d
mov dword [rdi - 4], ecx
mov ecx, dword [r10 + r11*4 + 0x10490]
add ecx, r8d
mov dword [rdi + 0x1fc], ecx
mov ecx, dword [r10 + r11*4 + 0x10590]
add ecx, r8d
mov dword [rdi + 0x3fc], ecx
cmp r14d, 0x80
jb 0x1400705b0
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov dword [r10 + 0x10e94], r9d
pop r15
pop r14
ret
Function at 0x140070790
Capabilities:
Encode data using xor

Disassembly:
push rdi
mov r10d, dword [rcx + 0xb94]
mov r11, rcx
mov ecx, 8
mov eax, dword [r11 + 0xb98]
sub ecx, r10d
shr r8d, cl
and eax, edx
mov ecx, r10d
shl eax, cl
xor r10d, r10d
add r8d, eax
lea rdi, [r8 + r8*2]
shl rdi, 9
add rdi, r11
lea r11, [0x1400e0430]
test r9b, r9b
jne 0x140070816
mov ecx, dword [rsp + 0x38]
add ecx, 0x100
nop dword [rax]
mov r8d, ecx
shr ecx, 1
movzx r9d, word [rdi + rcx*2 + 0xb9c]
and r8d, 1
neg r8d
shr r9, 4
shr r8, 4
and r8d, 0x7f
xor r9, r8
movzx edx, byte [r9 + r11]
add r10d, edx
cmp ecx, 1
jne 0x1400707e0
mov eax, r10d
pop rdi
ret
mov r8d, dword [rsp + 0x38]
mov r9d, 0x100
mov qword [rsp + 0x10], rbx
mov ebx, dword [rsp + 0x30]
add r8d, r9d
nop dword [rax]
mov ecx, r8d
add ebx, ebx
mov eax, r9d
shr ecx, 8
and eax, ebx
add eax, r9d
add ecx, eax
movzx edx, word [rdi + rcx*2 + 0xb9c]
mov ecx, r8d
add r8d, r8d
shr ecx, 7
shr rdx, 4
and ecx, 1
neg ecx
shr rcx, 4
and ecx, 0x7f
xor rdx, rcx
movzx eax, byte [rdx + r11]
add r10d, eax
mov eax, ebx
xor eax, r8d
not eax
and r9d, eax
cmp r8d, 0x10000
jb 0x140070830
mov rbx, qword [rsp + 0x10]
mov eax, r10d
pop rdi
ret
Function at 0x140075c00
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov eax, dword [rcx + 0x60]
movzx r9d, byte [rcx + 0x5c]
test eax, eax
jle 0x140075c57
mov r8d, dword [rcx + 0x288]
mov qword [rsp], rbx
movzx r11d, r9b
lea rbx, [0x14030b950]
mov r10d, eax
nop dword [rax]
mov edx, r8d
mov eax, r8d
shr rdx, 0x18
shl eax, 8
xor rdx, r11
mov r8d, dword [rbx + rdx*4]
xor r8d, eax
mov dword [rcx + 0x288], r8d
dec r10
jne 0x140075c30
mov rbx, qword [rsp]
mov eax, dword [rcx + 0x5c]
mov byte [rax + rcx + 0x80], 1
movsxd r8, dword [rcx + 0x60]
mov edx, r8d
dec edx
je 0x140075cf6
dec edx
je 0x140075ce7
dec edx
je 0x140075cd8
mov byte [r8 + rcx + 0x7c], 1
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
movzx r8d, byte [rcx + 0x60]
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
sub r8b, 4
mov byte [rdx + rax], r8b
inc dword [rcx + 0x6c]
add rsp, 8
ret
movsxd rdx, dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
movsxd rdx, dword [rcx + 0x6c]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
mov rax, qword [rcx + 0x40]
movsxd rdx, dword [rcx + 0x6c]
mov byte [rdx + rax], r9b
inc dword [rcx + 0x6c]
add rsp, 8
ret
Function at 0x1400bb3b4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r10d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov ebx, r8d
mov r12, rdx
mov r11, rcx
test r10d, r10d
je 0x1400bb47b
mov eax, dword [rsp + 0x50]
mov ecx, ebx
mov ebp, ebx
shl eax, 2
imul ecx, dword [rsp + 0x58]
movsxd r13, eax
mov eax, esi
imul eax, r9d
mov r9d, dword [rsp + 0x48]
neg ebp
movsxd rdi, eax
mov qword [rsp + 0x28], rdi
mov eax, dword [r11 + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [r11 + 0x150]
add rdx, rdi
cmp dword [rsp + 0x60], 0
jle 0x1400bb460
mov edi, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 4]
xor byte [rdx], al
add rdx, rsi
dec rdi
jne 0x1400bb43c
mov rdi, qword [rsp + 0x28]
dec r10d
inc r9d
cmp dword [r11 + 0x174], 0
jne 0x1400bb474
add ecx, ebp
jmp 0x1400bb476
add ecx, ebx
test r10d, r10d
jne 0x1400bb410
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x1400bc21c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov r11d, dword [rsp + 0x68]
movsxd rsi, dword [rcx + 0x160]
mov edi, r8d
mov r12, rdx
mov rbx, rcx
test r11d, r11d
je 0x1400bc2e5
mov eax, dword [rsp + 0x50]
mov ecx, r8d
mov ebp, r8d
lea r10d, [rax + rax*2]
mov eax, esi
imul ecx, dword [rsp + 0x58]
movsxd r13, r10d
imul eax, r9d
mov r9d, dword [rsp + 0x48]
movsxd r10, eax
mov qword [rsp + 0x28], r10
neg ebp
mov eax, dword [rbx + 0x158]
movsxd r8, ecx
add r8, r13
add r8, r12
imul eax, r9d
movsxd rdx, eax
add rdx, qword [rbx + 0x150]
add rdx, r10
cmp dword [rsp + 0x60], 0
jle 0x1400bc2cb
mov r10d, dword [rsp + 0x60]
mov al, byte [r8 + 2]
xor byte [rdx + 2], al
mov al, byte [r8 + 1]
xor byte [rdx + 1], al
mov al, byte [r8]
lea r8, [r8 + 3]
xor byte [rdx], al
add rdx, rsi
dec r10
jne 0x1400bc2a7
mov r10, qword [rsp + 0x28]
dec r11d
inc r9d
cmp dword [rbx + 0x174], 0
jne 0x1400bc2de
add ecx, ebp
jmp 0x1400bc2e0
add ecx, edi
test r11d, r11d
jne 0x1400bc27b
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140003000
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140002fc2
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140003464
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14057c018]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14057c014]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400034b2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400034aa
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140003599
inc ebx
add rax, 0x28
jmp 0x14000348a
mov rcx, r12
call fcn.140003c91
mov rbp, rax
test rax, rax
jne 0x1400034d1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140003400
movsxd rbx, ebx
mov rax, qword [0x14057c018]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.140003d3f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14057c018]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140003533
mov rax, qword [0x14057c018]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140003400
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140003593
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140003593
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14057c018]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140003593
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140003400
inc dword [0x14057c014]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x1400039c0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14057c080]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14057c060]
test rbx, rbx
je 0x140003a0c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140003a06
test eax, eax
jne 0x140003a06
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x1400039de
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140003bc0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003be3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140003be3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140003be4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140003c1e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140003c15
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140003c20
inc r8d
add rax, 0x28
jmp 0x140003bfc
xor eax, eax
ret

Function at 0x140003c91
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140577fd0]
mov r8, rcx
mov rcx, r9
call fcn.140003bc0
test eax, eax
je 0x140003cbd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140003be4
xor eax, eax
add rsp, 0x28
ret
Function at 0x69d41c60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x70
lea rax, [0x69e101c0]
xor r8d, r8d
mov qword [rcx], rax
lea r12, [rsp + 0x30]
mov rbx, rcx
lea rdx, [rsp + 0x28]
mov rcx, r12
lea rsi, [rsp + 0x60]
lea rdi, [rsp + 0x40]
movabs rax, 0x3233697061766461
mov qword [rsp + 0x50], rsi
lea r13, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x6c6c642e
mov qword [rsp + 0x58], 0xc
mov byte [rsp + 0x6c], 0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], 0x13
call fcn.69deb030
mov rdx, qword [rsp + 0x28]
movabs rcx, 0x746e6f4365736165
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rdx
movabs rdx, 0x6c65527470797243
mov qword [rax], rdx
mov edx, 0x7865
mov qword [rax + 8], rcx
mov rcx, r12
mov word [rax + 0x10], dx
mov byte [rax + 0x12], 0x74
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov byte [rdx + rax], 0
mov rdx, r13
call fcn.69d459b0
mov rcx, qword [rbx + 0x40]
xor edx, edx
call rax
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x69d41d40
call fcn.69dfe2a0
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x69d41d4f
call fcn.69dfe2a0
movabs rax, 0x3233697061766461
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rax
movabs rax, 0x7365447470797243
mov qword [rsp + 0x40], rax
mov eax, 0x654b
mov dword [rsp + 0x68], 0x6c6c642e
mov qword [rsp + 0x58], 0xc
mov byte [rsp + 0x6c], 0
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x48], 0x796f7274
mov word [rsp + 0x4c], ax
mov byte [rsp + 0x4e], 0x79
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x4f], 0
call fcn.69d459b0
mov rcx, qword [rbx + 0x38]
call rax
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x69d41dd2
call fcn.69dfe2a0
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x69d41de1
call fcn.69dfe2a0
mov rcx, qword [rbx + 8]
call fcn.69dfe2a0
nop
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x69d5c154
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, rcx
mov rcx, qword [0x69e0a150]
call fcn.69d5c070
test eax, eax
je 0x69d5c181
mov rcx, qword [0x69e0a150]
mov rdx, r8
sub rdx, rcx
add rsp, 0x28
jmp fcn.69d5c094
xor eax, eax
add rsp, 0x28
ret

Function at 0x69d69490
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x18
mov r12, rcx
test r9, r9
je 0x69d6961b
lea rbp, [r8 + r9]
mov rax, r8
mov rsi, rdx
xor ecx, ecx
xor r11d, r11d
lea rdi, [0x69e141e0]
nop
movzx r10d, byte [rax]
cmp r10b, 0x3d
je 0x69d694fb
movzx r10d, byte [rdi + r10]
cmp r10b, 0xff
je 0x69d694fb
movsxd rbx, r11d
add r11d, 1
add rax, 1
mov byte [rsp + rbx + 0xc], r10b
cmp r11d, 4
je 0x69d69538
cmp rax, rbp
jne 0x69d694c0
test cl, cl
je 0x69d695a0
mov rax, rbp
sub rax, r8
mov r9, rax
mov rax, rsi
sub rax, rdx
test r11d, r11d
jne 0x69d695a0
movq xmm0, rax
movq xmm1, r9
mov rax, r12
punpcklqdq xmm0, xmm1
movups xmmword [r12], xmm0
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
movzx ecx, byte [rsp + 0xd]
movzx r10d, byte [rsp + 0xe]
mov ebx, ecx
mov r11d, r10d
sar r10d, 2
sar ebx, 4
shl ecx, 4
and r10d, 0xf
mov r13d, ebx
movzx ebx, byte [rsp + 0xc]
add r10d, ecx
shl r11d, 6
and r13d, 3
add r11b, byte [rsp + 0xf]
lea rcx, [rsi + 3]
mov byte [rsi + 1], r10b
lea ebx, [r13 + rbx*4]
mov byte [rsi + 2], r11b
mov byte [rsi], bl
mov rsi, rcx
cmp rax, rbp
je 0x69d69613
mov ecx, 1
xor r11d, r11d
jmp 0x69d694c0
movzx r8d, byte [rsp + 0xd]
movzx ecx, byte [rsp + 0xc]
mov eax, r8d
shl r8d, 4
sar eax, 4
and eax, 3
lea r10d, [rax + rcx*4]
movzx eax, byte [rsp + 0xe]
mov ecx, eax
shl eax, 6
add al, byte [rsp + 0xf]
sar ecx, 2
and ecx, 0xf
add ecx, r8d
mov r8d, r11d
sub r8d, 1
je 0x69d69608
mov byte [rsi], r10b
cmp r8d, 1
je 0x69d695f1
mov byte [rsi + 1], cl
cmp r8d, 2
je 0x69d695f1
mov byte [rsi + 2], al
lea eax, [r11 - 2]
lea rax, [rsi + rax + 1]
sub rax, rdx
jmp 0x69d69510
mov rax, rsi
sub rax, rdx
jmp 0x69d69510
xor r11d, r11d
jmp 0x69d694f8
xor eax, eax
jmp 0x69d69510