joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140052118
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140048614
xor ebx, ebx
mov rdi, rax
cmp qword [0x140068f80], rbx
jne 0x14005221e
lea rcx, [0x14005ee18]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400522f3
lea rdx, [0x14005ee08]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400522f3
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14005edf8]
mov rcx, rsi
mov qword [0x140068f80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14005ede0]
mov rcx, rsi
mov qword [0x140068f88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14005edc0]
mov rcx, rsi
mov qword [0x140068f90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140068fa0], rax
test rax, rax
je 0x140052215
lea rdx, [0x14005eda8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140068f98], rax
jmp 0x140052225
mov rax, qword [0x140068f98]
jmp 0x14005222c
mov rax, qword [0x140068f98]
mov r11, qword [0x140068fa0]
cmp rax, rdi
je 0x140052294
cmp r11, rdi
je 0x140052294
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140068fa0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140052294
test rax, rax
je 0x140052294
call rsi
test rax, rax
je 0x14005228e
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14005228e
test byte [rsp + 0x38], 1
jne 0x140052294
bts ebp, 0x15
jmp 0x1400522d2
mov rcx, qword [0x140068f88]
cmp rcx, rdi
je 0x1400522d2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400522d2
call rax
mov rbx, rax
test rax, rax
je 0x1400522d2
mov rcx, qword [0x140068f90]
cmp rcx, rdi
je 0x1400522d2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400522d2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140068f80]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400522f3
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400522f5
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140055568
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x140069128]
test rcx, rcx
jne 0x1400554bf
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 0x60]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
jne 0x1400554b8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rdx + 0x10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400554ea
and qword [rax], 0
and qword [rax + 8], 0
xor eax, eax
lock cmpxchg qword [rbx + 0x40], rdi
je 0x1400554b4
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx + 0x40]
mov qword [0x140069128], rcx
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
test rax, rax
jne 0x14005555d
mov edx, 0x1000
lea r9d, [rax + 0x40]
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x14005550d
xor edx, edx
lea r9, [rsp + 0x30]
mov ecx, 0xc0000017
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], 0x20
call qword [sym.imp.KERNEL32.dll_RaiseException]
mov eax, dword [rax]
mov rcx, qword [0x140069128]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x14005553a
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, rdi
jmp 0x14005555d
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x140069128]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add rbx, 0x20
cmp rbx, rdi
jb 0x140055541
mov rax, rbx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
jmp 0x140055444
Function at 0x2b36514b0
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x70
movzx ebx, word [section..rdata]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x90], rcx
mov r11, rdx
mov r12, r8
mov rsi, qword [rax]
lea r10, [rsi - 0x10]
nop dword [rax]
mov r8, r10
mov r10, qword [r10]
cmp rsi, r10
je 0x2b365155e
mov rax, qword [r8 + 0x60]
lea rcx, [rax + 2]
movzx eax, word [rax]
test ax, ax
je 0x2b36514f0
mov edx, 0x2108
mov r9d, edx
add rcx, 2
shl r9d, 6
add edx, r9d
add edx, eax
movzx eax, word [rcx - 2]
test ax, ax
jne 0x2b3651510
cmp edx, 0xfcdfbd0e
jne 0x2b36514f0
mov edx, dword [r8 + 0x40]
mov rax, qword [r8 + 0x30]
cmp edx, 2
je 0x2b365155e
sub edx, 3
lea rdx, [rax + rdx + 1]
nop word cs:[rax + rax]
cmp word [rax], bx
je 0x2b3651560
add rax, 1
cmp rax, rdx
jne 0x2b3651550
xor eax, eax
movq xmm0, rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], 0
mov rdx, r12
mov rcx, r11
movhps xmm0, qword [rsp + 0x90]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x60], 0
movaps xmmword [rsp + 0x50], xmm0
call fcn.2b3655480
add rsp, 0x70
pop rbx
pop rsi
pop r12
ret

Function at 0x2b36515d0
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
movzx ebx, word [section..rdata]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov r11, rcx
mov r12, rdx
mov r8d, r8d
mov dword [rsp + 0x5c], 0
mov rdi, qword [rax]
lea r10, [rdi - 0x10]
mov rsi, r10
mov r10, qword [r10]
cmp rdi, r10
je 0x2b3651676
mov rax, qword [rsi + 0x60]
lea rcx, [rax + 2]
movzx eax, word [rax]
test ax, ax
je 0x2b3651610
mov edx, 0x2108
mov r9d, edx
add rcx, 2
shl r9d, 6
add edx, r9d
add edx, eax
movzx eax, word [rcx - 2]
test ax, ax
jne 0x2b3651630
cmp edx, 0xfcdfbd0e
jne 0x2b3651610
mov edx, dword [rsi + 0x40]
mov rax, qword [rsi + 0x30]
cmp edx, 2
je 0x2b3651676
sub edx, 3
lea rdx, [rax + rdx + 1]
nop dword [rax]
cmp word [rax], bx
je 0x2b3651678
add rax, 1
cmp rdx, rax
jne 0x2b3651668
xor eax, eax
mov qword [rsp + 0x60], rax
lea r9, [rsp + 0x5c]
mov rdx, r12
mov rcx, r11
mov qword [rsp + 0x40], 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], 0
call fcn.2b3655480
test eax, eax
mov eax, 0
cmovne eax, dword [rsp + 0x5c]
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
ret
Function at 0x2b3651890
Capabilities:
Access peb ldr_data

Disassembly:
push r13
push r12
push rsi
push rbx
sub rsp, 0x78
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xa0], rcx
mov r13, r8
mov r8, r9
movzx r9d, word [section..rdata]
mov r12, rdx
mov rsi, qword [rax]
lea r11, [rsi - 0x10]
nop
mov rbx, r11
mov r11, qword [r11]
cmp rsi, r11
je 0x2b3651937
mov rax, qword [rbx + 0x60]
lea rcx, [rax + 2]
movzx eax, word [rax]
test ax, ax
je 0x2b36518d0
mov edx, 0x2108
mov r10d, edx
add rcx, 2
shl r10d, 6
add edx, r10d
add edx, eax
movzx eax, word [rcx - 2]
test ax, ax
jne 0x2b36518f0
cmp edx, 0xfcdfbd0e
jne 0x2b36518d0
mov edx, dword [rbx + 0x40]
mov rax, qword [rbx + 0x30]
cmp edx, 2
je 0x2b3651937
sub edx, 3
lea rdx, [rax + rdx + 1]
nop dword [rax]
cmp word [rax], r9w
je 0x2b3651939
add rax, 1
cmp rax, rdx
jne 0x2b3651928
xor eax, eax
movq xmm0, rax
mov rax, qword [rsp + 0xe0]
mov rdx, r13
mov rcx, r12
mov r9, qword [rsp + 0xc0]
movhps xmm0, qword [rsp + 0xa0]
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xd8]
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.2b3655480
add rsp, 0x78
pop rbx
pop rsi
pop r12
pop r13
ret
Function at 0x2b3655e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
xor r9d, r9d
xor r8d, r8d
mov edx, 1
mov ecx, 1
jmp fcn.2b36558c0
Function at 0x2b3666f80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
mov r9, rdx
not eax
cmp r8, 3
jbe 0x2b3667050
lea rdx, [r8 - 4]
lea r10, [0x2b374cbe0]
shr rdx, 2
lea rcx, [r9 + rdx*4 + 4]
nop dword [rax]
mov edx, eax
xor al, byte [r9]
add r9, 4
movzx eax, al
shr edx, 8
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [r9 - 3]
movzx edx, dl
shr eax, 8
xor eax, dword [r10 + rdx*4]
mov edx, eax
xor al, byte [r9 - 2]
movzx eax, al
shr edx, 8
xor edx, dword [r10 + rax*4]
mov eax, edx
xor dl, byte [r9 - 1]
movzx edx, dl
shr eax, 8
xor eax, dword [r10 + rdx*4]
cmp r9, rcx
jne 0x2b3666fa8
and r8d, 3
test r8, r8
je 0x2b3667044
mov r9d, eax
xor al, byte [rcx]
lea rdx, [0x2b374cbe0]
movzx eax, al
shr r9d, 8
xor r9d, dword [rdx + rax*4]
mov eax, r9d
sub r8, 1
je 0x2b3667044
xor al, byte [rcx + 1]
shr r9d, 8
movzx eax, al
xor r9d, dword [rdx + rax*4]
mov eax, r9d
cmp r8, 1
je 0x2b3667044
xor al, byte [rcx + 2]
mov r8d, r9d
movzx eax, al
shr r8d, 8
xor r8d, dword [rdx + rax*4]
mov eax, r8d
not eax
ret
mov rcx, rdx
jmp 0x2b3666ff4
Function at 0x2b367ae70
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rdi
push rsi
push rbx
mov rax, rcx
lea rcx, [rcx + 0xf]
sub rcx, rdx
cmp rcx, 0x1e
jbe 0x2b367af54
movdqu xmm1, xmmword [rdx]
movups xmmword [rax], xmm1
movdqu xmm0, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm0
movzx edi, byte [rax + 0x1f]
movzx r9d, byte [rax + 0x1e]
mov r10d, 8
lea r11, [0x2b374de80]
movzx r8d, byte [rax + 0x1d]
movzx edx, byte [rax + 0x1c]
lea rbx, [0x2b374dd60]
jmp 0x2b367af19
movzx r8d, r8b
movzx edx, dl
movzx ecx, byte [r11 + r8]
movzx r8d, r9b
movzx r9d, dil
movzx edi, byte [r11 + rdx]
mov edx, r10d
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + r9]
shr edx, 3
xor cl, byte [rbx + rdx]
mov edx, ecx
xor dl, byte [rax]
xor r8b, byte [rax + 1]
add r10d, 1
add rax, 4
xor r9b, byte [rax - 2]
xor dil, byte [rax - 1]
mov byte [rax + 0x1c], dl
mov byte [rax + 0x1d], r8b
mov byte [rax + 0x1e], r9b
mov byte [rax + 0x1f], dil
cmp r10d, 0x3c
je 0x2b367af50
mov ecx, r10d
and ecx, 7
je 0x2b367aec0
cmp ecx, 4
jne 0x2b367aeee
movzx edx, dl
movzx r8d, r8b
movzx esi, r9b
movzx ecx, dil
movzx edx, byte [r11 + rdx]
movzx r8d, byte [r11 + r8]
movzx r9d, byte [r11 + rsi]
movzx edi, byte [r11 + rcx]
jmp 0x2b367aeee
pop rbx
pop rsi
pop rdi
ret
movzx ecx, byte [rdx]
mov byte [rax], cl
movzx ecx, byte [rdx + 1]
mov byte [rax + 1], cl
movzx ecx, byte [rdx + 2]
mov byte [rax + 2], cl
movzx ecx, byte [rdx + 3]
mov byte [rax + 3], cl
movzx ecx, byte [rdx + 4]
mov byte [rax + 4], cl
movzx ecx, byte [rdx + 5]
mov byte [rax + 5], cl
movzx ecx, byte [rdx + 6]
mov byte [rax + 6], cl
movzx ecx, byte [rdx + 7]
mov byte [rax + 7], cl
movzx ecx, byte [rdx + 8]
mov byte [rax + 8], cl
movzx ecx, byte [rdx + 9]
mov byte [rax + 9], cl
movzx ecx, byte [rdx + 0xa]
mov byte [rax + 0xa], cl
movzx ecx, byte [rdx + 0xb]
mov byte [rax + 0xb], cl
movzx ecx, byte [rdx + 0xc]
mov byte [rax + 0xc], cl
movzx ecx, byte [rdx + 0xd]
mov byte [rax + 0xd], cl
movzx ecx, byte [rdx + 0xe]
mov byte [rax + 0xe], cl
movzx ecx, byte [rdx + 0xf]
mov byte [rax + 0xf], cl
movzx ecx, byte [rdx + 0x10]
mov byte [rax + 0x10], cl
movzx ecx, byte [rdx + 0x11]
mov byte [rax + 0x11], cl
movzx ecx, byte [rdx + 0x12]
mov byte [rax + 0x12], cl
movzx ecx, byte [rdx + 0x13]
mov byte [rax + 0x13], cl
movzx ecx, byte [rdx + 0x14]
mov byte [rax + 0x14], cl
movzx ecx, byte [rdx + 0x15]
mov byte [rax + 0x15], cl
movzx ecx, byte [rdx + 0x16]
mov byte [rax + 0x16], cl
movzx ecx, byte [rdx + 0x17]
mov byte [rax + 0x17], cl
movzx ecx, byte [rdx + 0x18]
mov byte [rax + 0x18], cl
movzx ecx, byte [rdx + 0x19]
mov byte [rax + 0x19], cl
movzx ecx, byte [rdx + 0x1a]
mov byte [rax + 0x1a], cl
movzx ecx, byte [rdx + 0x1b]
mov byte [rax + 0x1b], cl
movzx ecx, byte [rdx + 0x1c]
mov byte [rax + 0x1c], cl
movzx ecx, byte [rdx + 0x1d]
mov byte [rax + 0x1d], cl
movzx ecx, byte [rdx + 0x1e]
mov byte [rax + 0x1e], cl
movzx edx, byte [rdx + 0x1f]
mov byte [rax + 0x1f], dl
jmp 0x2b367ae97
Function at 0x2b367fce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
mov r8, rcx
movzx ecx, byte [rcx + 0x1f]
lea r9, [r8 + 0x20]
mov edx, ecx
and ecx, 0x7f
shr dl, 7
mov byte [r8 + 0x1f], cl
movzx edx, dl
lea eax, [rdx + rdx*8]
lea eax, [rdx + rax*2]
mov rdx, r8
nop word [rax + rax]
movzx ecx, byte [rdx]
add rdx, 1
add eax, ecx
mov byte [rdx - 1], al
shr ax, 8
cmp r9, rdx
jne 0x2b367fd10
xor edx, edx
mov eax, 0x13
mov r9, rsp
nop
movzx ecx, byte [r8 + rdx]
add eax, ecx
mov byte [r9 + rdx], al
add rdx, 1
shr ax, 8
cmp rdx, 0x1f
jne 0x2b367fd30
movzx edx, byte [r8 + 0x1f]
movdqu xmm1, xmmword [r8]
pxor xmm1, xmmword [rsp]
lea eax, [rax + rdx - 0x80]
mov byte [rsp + 0x1f], al
sar ax, 0xf
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
pand xmm1, xmm0
pxor xmm1, xmmword [rsp]
movups xmmword [r8], xmm1
movdqu xmm1, xmmword [r8 + 0x10]
pxor xmm1, xmmword [rsp + 0x10]
pand xmm0, xmm1
pxor xmm0, xmmword [rsp + 0x10]
movups xmmword [r8 + 0x10], xmm0
add rsp, 0x28
ret

Function at 0x2b36804c0
Capabilities:
Encrypt data using curve25519
Hash data using sha512

Disassembly:
push r12
push rbx
sub rsp, 0xe8
movdqa xmm0, xmmword [0x2b374e400]
movdqa xmm1, xmmword [0x2b374e410]
movdqa xmm2, xmmword [0x2b374e420]
movdqa xmm3, xmmword [0x2b374e430]
movdqu xmm4, xmmword [rdx]
movdqu xmm5, xmmword [rdx + 0x10]
lea r8, [rsp + 0x60]
mov rbx, rcx
lea r12, [rsp + 0x20]
mov qword [rsp + 0x80], 0
mov rdx, r8
mov rcx, r12
mov qword [rsp + 0xd8], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
mov qword [rsp + 0xa8], 0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov byte [rsp + pe_nt_image_headers64], 0x80
mov byte [rsp + 0xde], 1
movaps xmmword [rsp + 0x20], xmm0
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x50], xmm3
movaps xmmword [rsp + 0x60], xmm4
movaps xmmword [rsp + 0x70], xmm5
call fcn.2b367ff70
mov r8d, 0x40
mov rdx, rbx
mov rcx, r12
call fcn.2b3680420
movzx eax, byte [rbx + 0x1f]
and byte [rbx], 0xf8
and eax, 0x7f
or eax, 0x40
mov byte [rbx + 0x1f], al
add rsp, 0xe8
pop rbx
pop r12
ret
Function at 0x2b36807d0
Capabilities:
Hash data using sha512

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
movdqa xmm0, xmmword [0x2b374e400]
movdqa xmm1, xmmword [0x2b374e410]
movdqa xmm2, xmmword [0x2b374e420]
movdqa xmm3, xmmword [0x2b374e430]
mov rbp, qword [rsp + 0xe0]
mov r14, rcx
mov ecx, r8d
mov r13, rdx
mov r12, r9
lea r15, [rbp + rcx]
movaps xmmword [rsp + 0x30], xmm0
add rcx, rdx
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x60], xmm3
cmp rbp, 0x7f
ja 0x2b36808a0
cmp r15, 0x7f
jbe 0x2b3680970
mov edx, pe_nt_image_headers64
lea rdi, [rcx + 8]
mov rsi, r12
sub edx, r8d
mov r8, qword [r9]
and rdi, 0xfffffffffffffff8
mov eax, edx
lea r9, [r9 + rax]
mov qword [rcx], r8
mov r8, qword [r9 - 8]
mov qword [rsp + 0x20], r9
mov qword [rcx + rax - 8], r8
sub rcx, rdi
add edx, ecx
sub rsi, rcx
shr edx, 3
mov ecx, edx
mov rdx, r13
rep movsq qword [rdi], qword [rsi]
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.2b367ff70
mov r9, qword [rsp + 0x20]
jmp 0x2b368092c
mov edx, pe_nt_image_headers64
lea rdi, [rcx + 8]
mov rsi, r12
sub edx, r8d
mov r8, qword [r9]
and rdi, 0xfffffffffffffff8
mov eax, edx
lea r9, [r9 + rax]
mov qword [rcx], r8
mov r8, qword [r9 - 8]
mov qword [rsp + 0x28], r9
mov qword [rcx + rax - 8], r8
sub rcx, rdi
sub rsi, rcx
add ecx, edx
mov qword [rsp + 0x20], rax
mov rdx, r13
shr ecx, 3
rep movsq qword [rdi], qword [rsi]
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.2b367ff70
mov rax, qword [rsp + 0x20]
mov r9, qword [rsp + 0x28]
lea rbx, [rax + 0x80]
cmp rbp, rbx
jb 0x2b368092c
lea rsi, [r12 - 0x80]
nop dword [rax + rax]
lea rdx, [rsi + rbx]
mov rcx, rdi
call fcn.2b367ff70
mov rax, rbx
sub rbx, 0xffffffffffffff80
cmp rbx, rbp
jbe 0x2b3680910
lea r9, [r12 + rax]
mov r8, r15
mov rdx, r9
mov rcx, rdi
call fcn.2b3680290
mov rdx, r13
mov rcx, rdi
mov r8d, 0x40
call fcn.2b3680420
mov r8d, 0x40
mov rdx, r13
mov rcx, r14
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.2b3680600
mov r8, rbp
mov rdx, r9
lea rdi, [rsp + 0x30]
call sub.msvcrt.dll_memcpy
mov r8, r15
mov rdx, r13
mov rcx, rdi
call fcn.2b3680290
jmp 0x2b368093a
Function at 0x2b3685090
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
mov eax, dword [rdx]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 4]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0x1c], eax
lea rax, str.expand_16_byte_k
cmp r8d, 0x100
jne 0x2b36850c2
add rdx, 0x10
lea rax, str.expand_32_byte_k
mov r8d, dword [rdx]
mov dword [rcx + 0x20], r8d
mov r8d, dword [rdx + 4]
mov dword [rcx + 0x24], r8d
mov r8d, dword [rdx + 8]
mov dword [rcx + 0x28], r8d
mov edx, dword [rdx + 0xc]
mov dword [rcx + 0x2c], edx
movsx edx, byte [rax + 1]
movsx r8d, byte [rax + 2]
shl edx, 8
shl r8d, 0x10
or edx, r8d
movsx r8d, byte [rax]
or edx, r8d
movsx r8d, byte [rax + 3]
shl r8d, 0x18
or edx, r8d
mov dword [rcx], edx
movsx edx, byte [rax + 5]
movsx r8d, byte [rax + 6]
shl edx, 8
shl r8d, 0x10
or edx, r8d
movsx r8d, byte [rax + 4]
or edx, r8d
movsx r8d, byte [rax + 7]
shl r8d, 0x18
or edx, r8d
mov dword [rcx + 4], edx
movsx edx, byte [rax + 9]
movsx r8d, byte [rax + 0xa]
shl edx, 8
shl r8d, 0x10
or edx, r8d
movsx r8d, byte [rax + 8]
or edx, r8d
movsx r8d, byte [rax + 0xb]
shl r8d, 0x18
or edx, r8d
mov dword [rcx + 8], edx
movsx edx, byte [rax + 0xd]
movsx r8d, byte [rax + 0xe]
shl edx, 8
shl r8d, 0x10
or edx, r8d
movsx r8d, byte [rax + 0xc]
movsx eax, byte [rax + 0xf]
or edx, r8d
shl eax, 0x18
or eax, edx
mov dword [rcx + 0xc], eax
ret
Function at 0x2b36851d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test r9d, r9d
je 0x2b36851e0
jmp 0x2b36843f0
ret
Function at 0x2b3687980
Capabilities:
Encode data using xor

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x148
xor eax, eax
movdqa xmm0, xmmword [0x2b374e5e0]
mov rbx, rcx
mov ecx, 0xd
mov rbp, rdx
mov rsi, r8
lea r13, [rsp + 0xd0]
mov qword [rbx], 0
movabs rdx, 0x8f95b288889e9894
mov r12, r9
mov rdi, r13
mov qword [rbx + 8], 0
rep stosq qword [rdi], rax
mov eax, 0xffffac97
mov dword [rsp + 0xd0], 0x68
mov word [rsp + 0xa4], ax
movabs rax, 0x89ab9e8f9a9e89b8
mov qword [rsp + 0xb0], rax
xor eax, eax
mov qword [rsp + 0xb8], rdx
mov edx, 0xffffac97
mov dword [rsp + 0xc0], 0x9a95899e
mov qword [rbx + 0x10], 0
mov word [rsp + 0xc4], dx
mov qword [rsp + 0x68], 0
mov dword [rsp + 0xa0], 0x9a95899e
mov byte [rsp + 0xa6], 0
mov byte [rsp + 0xc6], 0
movaps xmmword [rsp + 0x90], xmm0
nop dword [rax]
movzx edx, byte [rsp + rax + 0xb0]
xor edx, 0xfffffffb
mov byte [rsp + rax + 0xb0], dl
add rax, 1
cmp rax, 0x16
jne 0x2b3687a58
mov rax, qword [0x2b374e5f0]
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x83]
mov dword [rsp + 0x78], 0x93939bd1
mov byte [rsp + 0x7c], 0
mov qword [rsp + 0x70], rax
movabs rax, 0xcdcc939a918d9a94
mov qword [rsp + 0x83], rax
mov dword [rsp + 0x8b], 0x93939bd1
mov byte [rsp + 0x8f], 0
movzx eax, byte [rsp + 0x83]
not eax
mov byte [rsp + 0x83], al
movzx eax, byte [rsp + 0x84]
not eax
mov byte [rsp + 0x84], al
movzx eax, byte [rsp + 0x85]
not eax
mov byte [rsp + 0x85], al
movzx eax, byte [rsp + 0x86]
not eax
mov byte [rsp + 0x86], al
movzx eax, byte [rsp + 0x87]
not eax
mov byte [rsp + 0x87], al
movzx eax, byte [rsp + 0x88]
not eax
mov byte [rsp + 0x88], al
movzx eax, byte [rsp + 0x89]
not eax
mov byte [rsp + 0x89], al
movzx eax, byte [rsp + 0x8a]
not eax
mov byte [rsp + 0x8a], al
movzx eax, byte [rsp + 0x8b]
not eax
mov byte [rsp + 0x8b], al
movzx eax, byte [rsp + 0x8c]
not eax
mov byte [rsp + 0x8c], al
movzx eax, byte [rsp + 0x8d]
not eax
mov byte [rsp + 0x8d], al
movzx eax, byte [rsp + 0x8e]
not eax
mov byte [rsp + 0x8e], al
call fcn.2b3656120
lea rdx, [rsp + 0x68]
xor r9d, r9d
xor ecx, ecx
mov qword [rsp + 0x58], rdx
mov r8, rsi
xor edx, edx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 0x800000c
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call rax
test eax, eax
setne al
add rsp, 0x148
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x2b3687bf0
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
sub rsp, 0x68
xor r9d, r9d
mov r10, rcx
mov qword [rsp + 0x30], r8
mov rcx, rdx
lea r8, [rsp + 0x58]
mov qword [rsp + 0x58], 0
mov rdx, r10
mov dword [rsp + 0x48], 0x40
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
cmp eax, 0x40000003
je 0x2b3687c51
xor r8d, r8d
test eax, eax
jne 0x2b3687c56
mov r8, qword [rsp + 0x58]
mov rax, r8
add rsp, 0x68
ret
Function at 0x2b3689f40
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
test rcx, rcx
je 0x2b3689f69
cmp word [rcx], 0x5a4d
jne 0x2b3689f69
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x2b3689f69
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x2b3689f69
mov r8d, dword [rcx + 0x28]
mov eax, r8d
ret

Function at 0x2b3689f70
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
test rcx, rcx
je 0x2b3689f9f
cmp word [rcx], 0x5a4d
jne 0x2b3689f9f
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x2b3689f9f
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x2b3689f9f
cmp word [rcx + 0x18], 0x20b
sete r8b
mov eax, r8d
ret