joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140037a00
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x30]
sub rsp, 0x130
cmp qword [rcx + 0x40], 0
mov rdi, rcx
je 0x140037a2f
mov al, 1
mov rdi, qword [rsp + 0x158]
add rsp, 0x130
pop rbp
ret
mov qword [rsp + 0x150], rsi
call fcn.140037910
mov rsi, rax
test rax, rax
je 0x140037b92
mov qword [rsp + 0x148], rbx
mov ebx, dword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [rdi + 0x28]
mov dword [rbp - 0x6c], eax
lea r9, [rsp + 0x40]
lea rax, [rdi + 0x5c]
mov dword [rbp - 0x68], ebx
xor ebx, ebx
mov qword [rbp - 0x60], rax
lea rax, [rdi + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rbp - 0x58], rax
lea rdx, [rbp - 0x70]
lea rax, [rdi + 0x68]
mov dword [rbp - 0x70], 1
mov qword [rbp - 0x50], rax
lea r8d, [rbx + 0x50]
lea rax, [rbp + 0x40]
mov qword [rbp - 0x38], rbx
movups xmmword [rbp - 0x48], xmm0
mov qword [rsp + 0x28], rax
mov rcx, rsi
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x50
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
movups xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x78], rbx
movdqa xmmword [rbp - 0x80], xmm0
mov dword [rbp + 0x40], ebx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x140037b7e
cmp dword [rsp + 0x40], 2
jne 0x140037b7e
cmp dword [rsp + 0x44], ebx
je 0x140037b7e
cmp qword [rsp + 0x78], rbx
je 0x140037b7e
cmp qword [rbp - 0x80], rbx
je 0x140037b7e
cmp qword [rbp - 0x78], rbx
je 0x140037b7e
xorps xmm0, xmm0
mov qword [rbp - 0x1c], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm0
xor eax, eax
movaps xmmword [rbp], xmm1
lea r9, [rbp + 0x40]
mov qword [rbp + 0x10], rax
lea r8d, [rbx + 0x50]
movdqa xmmword [rbp + 0x20], xmm0
lea rdx, [rbp - 0x20]
mov qword [rbp + 0x18], rbx
mov rcx, rsi
mov dword [rbp - 0x20], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140037b7e
mov rax, qword [rsp + 0x78]
mov bl, 1
mov qword [rdi + 0x40], rax
mov rax, qword [rbp - 0x80]
mov qword [rdi + 0x48], rax
mov rax, qword [rbp - 0x78]
mov qword [rdi + 0x50], rax
mov eax, dword [rsp + 0x44]
mov dword [rdi + 0x58], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bl
mov rbx, qword [rsp + 0x148]
mov rsi, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x158]
add rsp, 0x130
pop rbp
ret
Function at 0x140058710
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov r15, rdx
lea r14, [rdx - 1]
mov rdi, rcx
xor r12d, r12d
nop word [rax + rax]
mov rsi, r12
mov rbp, r12
test r14, r14
je 0x140058926
mov rdx, qword [rdi + 8]
nop dword [rax]
nop word [rax + rax]
lea ecx, [rdx + 0xff]
shl rsi, cl
add rsi, rsi
nop dword [rax]
mov r10, qword [rdi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x1400587d4
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140058790
mov ecx, dword [r10]
jmp 0x1400588b7
cmp ecx, 0x4e0
jb 0x1400588b7
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, edx
xor ecx, dword [r11 + 0x634]
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400587f0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop word [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140058840
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r12d
mov dword [r10], r12d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
mov r8, qword [rdi + 0x10]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and edx, 0xffffdf8c
shl edx, 0xf
mov ecx, edx
xor rcx, rax
mov rax, rcx
shr rax, 0x12
xor rax, rcx
cmp rax, r8
ja 0x140058770
mov rdx, qword [rdi + 8]
or rsi, rax
lea ecx, [rdx + 0xff]
shl rbp, cl
add rbp, rbp
or rbp, r8
cmp rbp, r14
jb 0x140058760
xor edx, edx
mov rax, rbp
div r15
mov rcx, rax
mov r8, rdx
xor edx, edx
mov rax, rsi
div r15
cmp rax, rcx
jb 0x14005894a
cmp r8, r14
jne 0x140058740
mov rbx, qword [rsp + 0x20]
mov rax, rsi
mov rbp, qword [rsp + 0x28]
xor edx, edx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
div r15
mov rax, rdx
pop r15
pop r14
pop r12
ret
Function at 0x140058970
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov rax, qword [rcx + 8]
xor r14d, r14d
mov edi, r14d
mov ebp, r14d
mov rsi, rcx
nop word [rax + rax]
lea ecx, [rax + 0xff]
shl rdi, cl
add rdi, rdi
nop dword [rax]
mov r10, qword [rsi]
mov ecx, dword [r10]
cmp ecx, 0x270
jne 0x140058a14
lea rax, [r10 + 8]
mov r9d, ecx
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x1400589d0
mov ecx, dword [r10]
jmp 0x140058af7
cmp ecx, 0x4e0
jb 0x140058af7
lea r11, [r10 + 0x9c4]
mov ebx, 0xe3
mov eax, dword [r11]
nop
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140058a30
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x140058a80
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov ecx, r14d
mov dword [r10], r14d
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov ecx, edx
mov dword [r10], eax
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and edx, 0xffffdf8c
shl edx, 0xf
mov ecx, edx
xor rcx, rax
mov rdx, rcx
shr rdx, 0x12
xor rdx, rcx
cmp rdx, qword [rsi + 0x10]
ja 0x1400589b0
mov rax, qword [rsi + 8]
or rdi, rdx
add rbp, rax
cmp rbp, 0x40
jb 0x1400589a0
mov rbx, qword [rsp + 0x10]
mov rax, rdi
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
pop r14
ret
Function at 0x140058b80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister
Resolve dns

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x1350]
mov eax, 0x1450
call fcn.14006b980
sub rsp, rax
mov rax, qword [0x1400a0ca8]
xor rax, rsp
mov qword [rbp + 0x1340], rax
mov rdi, r8
mov rsi, rdx
mov rcx, qword [rcx]
call fcn.140058000
test al, al
jne 0x140058d5f
movdqa xmm0, xmmword [0x14007bd70]
movdqu xmmword [rsp + 0x40], xmm0
xor ebx, ebx
mov qword [rsp + 0x50], rbx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rbx
cmp qword [rdi + 0x18], 0x10
jb 0x140058bf1
mov rdi, qword [rdi]
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140058d1f
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x140058c2c
nop dword [rax + rax]
inc rbx
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x140058c20
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov r8d, 0xffffffff
mov dword [rbp + 0x1334], r8d
mov dword [rbp - 0x4c], eax
mov edx, 1
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 - 0x4c], eax
inc rdx
cmp rdx, 0x270
jb 0x140058c50
mov dword [rbp - 0x50], 0x270
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov ecx, 0x40
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
dec rcx
shr rax, 1
cmp rax, r8
ja 0x140058c90
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x20]
test rbx, rbx
jne 0x140058cb6
call fcn.140058970
jmp 0x140058cbe
mov rdx, rbx
call fcn.140058710
mov rbx, qword [rsp + 0x38]
test rax, rax
je 0x140058cda
nop dword [rax + rax]
mov rbx, qword [rbx + 0x28]
sub rax, 1
jne 0x140058cd0
mov rcx, qword [rbx + 0x20]
mov ecx, dword [rcx + 4]
call qword [sym.imp.WS2_32.dll_ntohl]
mov edx, eax
mov rcx, rsi
call fcn.14005a700
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, rsi
mov rcx, qword [rbp + 0x1340]
xor rcx, rsp
call fcn.14006b0f0
mov rbx, qword [rsp + 0x1488]
add rsp, 0x1450
pop rdi
pop rsi
pop rbp
ret
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14005a2e0
nop
mov r8, rax
lea rdx, str.Ipv4Resolver::resolve__getaddrinfo_failed_
lea rcx, [rbp - 0x70]
call fcn.140012570
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140004d80
lea rdx, [0x140099cd0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call fcn.140004c30
lea rdx, [0x140099c70]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14005ca20
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov edx, 0x201000
xor ecx, ecx
mov r9d, 4
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx], rax
test rax, rax
je 0x14005ca53
mov rax, rbx
add rsp, 0x40
pop rbx
ret
lea rcx, [rsp + 0x20]
call fcn.14005c9f0
lea rdx, [0x14009c3b0]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14005cc40
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r8d, dword [rcx]
lea rbp, str.cw
mov r10, qword [rcx + 8]
mov rdi, rdx
mov rax, qword [rcx]
mov rbx, rcx
shr rax, 0x20
movabs rsi, 0xffffffff00000000
xor eax, r8d
mov r9d, eax
mov r11d, eax
mov eax, r10d
and r10, rsi
xor r9, rax
shl r11, 0x20
or r11, r8
mov rax, r9
shl rax, 0x20
xor r10, rax
mov qword [rcx], r11
or r10, r9
mov qword [rcx + 8], r10
mov r8, qword [rdx + 8]
shr r8, 0x20
mov rax, r8
shr rax, 0x10
movzx ecx, al
mov rax, r8
shr rax, 0x18
movzx edx, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl eax, 8
or edx, eax
mov rax, r8
shr rax, 8
movzx ecx, al
shl edx, 8
movzx eax, byte [rcx + rbp]
or edx, eax
movzx eax, r8b
shl edx, 8
movzx eax, byte [rax + rbp]
or eax, edx
ror eax, 8
xor rax, 1
mov rcx, rax
shl rcx, 0x20
or rcx, rax
xor r10, rcx
xor r11, rcx
mov qword [rbx + 8], r10
mov qword [rbx], r11
mov ecx, dword [rdi]
mov r9, qword [rdi + 8]
mov rax, qword [rdi]
shr rax, 0x20
xor eax, ecx
mov edx, eax
mov r10d, eax
mov eax, r9d
and r9, rsi
xor rdx, rax
shl r10, 0x20
mov rax, rdx
or r10, rcx
shl rax, 0x20
xor r9, rax
mov qword [rdi], r10
or r9, rdx
mov qword [rdi + 8], r9
mov r8, qword [rbx + 8]
shr r8, 0x20
mov rax, r8
shr rax, 0x10
movzx ecx, al
mov rax, r8
shr rax, 0x18
movzx edx, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl rax, 8
or rdx, rax
mov rbx, qword [rsp + 8]
mov rax, r8
mov rsi, qword [rsp + 0x18]
shr rax, 8
movzx ecx, al
shl rdx, 8
movzx eax, byte [rcx + rbp]
or rdx, rax
movzx eax, r8b
shl rdx, 8
movzx ecx, byte [rax + rbp]
mov rbp, qword [rsp + 0x10]
or rdx, rcx
mov ecx, edx
shl rcx, 0x20
mov eax, edx
or rcx, rax
xor r10, rcx
xor r9, rcx
mov qword [rdi], r10
mov qword [rdi + 8], r9
mov rdi, qword [rsp + 0x20]
ret
Function at 0x14005cdc0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r8d, dword [rcx]
lea rbp, str.cw
mov r10, qword [rcx + 8]
mov rdi, rdx
mov rax, qword [rcx]
mov rbx, rcx
shr rax, 0x20
movabs rsi, 0xffffffff00000000
xor eax, r8d
mov r9d, eax
mov r11d, eax
mov eax, r10d
and r10, rsi
xor r9, rax
shl r11, 0x20
or r11, r8
mov rax, r9
shl rax, 0x20
xor r10, rax
mov qword [rcx], r11
or r10, r9
mov qword [rcx + 8], r10
mov r8, qword [rdx + 8]
shr r8, 0x20
mov rax, r8
shr rax, 0x10
movzx ecx, al
mov rax, r8
shr rax, 0x18
movzx edx, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl eax, 8
or edx, eax
mov rax, r8
shr rax, 8
movzx ecx, al
shl edx, 8
movzx eax, byte [rcx + rbp]
or edx, eax
movzx eax, r8b
shl edx, 8
movzx eax, byte [rax + rbp]
or eax, edx
ror eax, 8
xor rax, 2
mov rcx, rax
shl rcx, 0x20
or rcx, rax
xor r10, rcx
xor r11, rcx
mov qword [rbx + 8], r10
mov qword [rbx], r11
mov ecx, dword [rdi]
mov r9, qword [rdi + 8]
mov rax, qword [rdi]
shr rax, 0x20
xor eax, ecx
mov edx, eax
mov r10d, eax
mov eax, r9d
and r9, rsi
xor rdx, rax
shl r10, 0x20
mov rax, rdx
or r10, rcx
shl rax, 0x20
xor r9, rax
mov qword [rdi], r10
or r9, rdx
mov qword [rdi + 8], r9
mov r8, qword [rbx + 8]
shr r8, 0x20
mov rax, r8
shr rax, 0x10
movzx ecx, al
mov rax, r8
shr rax, 0x18
movzx edx, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl rax, 8
or rdx, rax
mov rbx, qword [rsp + 8]
mov rax, r8
mov rsi, qword [rsp + 0x18]
shr rax, 8
movzx ecx, al
shl rdx, 8
movzx eax, byte [rcx + rbp]
or rdx, rax
movzx eax, r8b
shl rdx, 8
movzx ecx, byte [rax + rbp]
mov rbp, qword [rsp + 0x10]
or rdx, rcx
mov ecx, edx
shl rcx, 0x20
mov eax, edx
or rcx, rax
xor r10, rcx
xor r9, rcx
mov qword [rdi], r10
mov qword [rdi + 8], r9
mov rdi, qword [rsp + 0x20]
ret
Function at 0x14005cf40
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r8d, dword [rcx]
lea rbp, str.cw
mov r10, qword [rcx + 8]
mov rdi, rdx
mov rax, qword [rcx]
mov rbx, rcx
shr rax, 0x20
movabs rsi, 0xffffffff00000000
xor eax, r8d
mov r9d, eax
mov r11d, eax
mov eax, r10d
and r10, rsi
xor r9, rax
shl r11, 0x20
or r11, r8
mov rax, r9
shl rax, 0x20
xor r10, rax
mov qword [rcx], r11
or r10, r9
mov qword [rcx + 8], r10
mov r8, qword [rdx + 8]
shr r8, 0x20
mov rax, r8
shr rax, 0x10
movzx ecx, al
mov rax, r8
shr rax, 0x18
movzx edx, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl eax, 8
or edx, eax
mov rax, r8
shr rax, 8
movzx ecx, al
shl edx, 8
movzx eax, byte [rcx + rbp]
or edx, eax
movzx eax, r8b
shl edx, 8
movzx eax, byte [rax + rbp]
or eax, edx
ror eax, 8
xor rax, 4
mov rcx, rax
shl rcx, 0x20
or rcx, rax
xor r10, rcx
xor r11, rcx
mov qword [rbx + 8], r10
mov qword [rbx], r11
mov ecx, dword [rdi]
mov r9, qword [rdi + 8]
mov rax, qword [rdi]
shr rax, 0x20
xor eax, ecx
mov edx, eax
mov r10d, eax
mov eax, r9d
and r9, rsi
xor rdx, rax
shl r10, 0x20
mov rax, rdx
or r10, rcx
shl rax, 0x20
xor r9, rax
mov qword [rdi], r10
or r9, rdx
mov qword [rdi + 8], r9
mov r8, qword [rbx + 8]
shr r8, 0x20
mov rax, r8
shr rax, 0x10
movzx ecx, al
mov rax, r8
shr rax, 0x18
movzx edx, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl rax, 8
or rdx, rax
mov rbx, qword [rsp + 8]
mov rax, r8
mov rsi, qword [rsp + 0x18]
shr rax, 8
movzx ecx, al
shl rdx, 8
movzx eax, byte [rcx + rbp]
or rdx, rax
movzx eax, r8b
shl rdx, 8
movzx ecx, byte [rax + rbp]
mov rbp, qword [rsp + 0x10]
or rdx, rcx
mov ecx, edx
shl rcx, 0x20
mov eax, edx
or rcx, rax
xor r10, rcx
xor r9, rcx
mov qword [rdi], r10
mov qword [rdi + 8], r9
mov rdi, qword [rsp + 0x20]
ret
Function at 0x14005d0c0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r8d, dword [rcx]
lea rbp, str.cw
mov r10, qword [rcx + 8]
mov rdi, rdx
mov rax, qword [rcx]
mov rbx, rcx
shr rax, 0x20
movabs rsi, 0xffffffff00000000
xor eax, r8d
mov r9d, eax
mov r11d, eax
mov eax, r10d
and r10, rsi
xor r9, rax
shl r11, 0x20
or r11, r8
mov rax, r9
shl rax, 0x20
xor r10, rax
mov qword [rcx], r11
or r10, r9
mov qword [rcx + 8], r10
mov r8, qword [rdx + 8]
shr r8, 0x20
mov rax, r8
shr rax, 0x10
movzx ecx, al
mov rax, r8
shr rax, 0x18
movzx edx, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl eax, 8
or edx, eax
mov rax, r8
shr rax, 8
movzx ecx, al
shl edx, 8
movzx eax, byte [rcx + rbp]
or edx, eax
movzx eax, r8b
shl edx, 8
movzx eax, byte [rax + rbp]
or eax, edx
ror eax, 8
xor rax, 8
mov rcx, rax
shl rcx, 0x20
or rcx, rax
xor r10, rcx
xor r11, rcx
mov qword [rbx + 8], r10
mov qword [rbx], r11
mov ecx, dword [rdi]
mov r9, qword [rdi + 8]
mov rax, qword [rdi]
shr rax, 0x20
xor eax, ecx
mov edx, eax
mov r10d, eax
mov eax, r9d
and r9, rsi
xor rdx, rax
shl r10, 0x20
mov rax, rdx
or r10, rcx
shl rax, 0x20
xor r9, rax
mov qword [rdi], r10
or r9, rdx
mov qword [rdi + 8], r9
mov r8, qword [rbx + 8]
shr r8, 0x20
mov rax, r8
shr rax, 0x10
movzx ecx, al
mov rax, r8
shr rax, 0x18
movzx edx, byte [rcx + rbp]
movzx eax, byte [rax + rbp]
shl rax, 8
or rdx, rax
mov rbx, qword [rsp + 8]
mov rax, r8
mov rsi, qword [rsp + 0x18]
shr rax, 8
movzx ecx, al
shl rdx, 8
movzx eax, byte [rcx + rbp]
or rdx, rax
movzx eax, r8b
shl rdx, 8
movzx ecx, byte [rax + rbp]
mov rbp, qword [rsp + 0x10]
or rdx, rcx
mov ecx, edx
shl rcx, 0x20
mov eax, edx
or rcx, rax
xor r10, rcx
xor r9, rcx
mov qword [rdi], r10
mov qword [rdi + 8], r9
mov rdi, qword [rsp + 0x20]
ret
Function at 0x1400617d0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, r8
mov r10, rdx
mov r8, qword [rcx + 8]
mov rdi, r9
mov rbx, rcx
mov edx, eax
mov rcx, r10
mov r9d, 0xc8
call fcn.140062fc0
mov rcx, rbx
call fcn.140060a70
mov rdx, qword [rbx + 8]
mov ebp, 0x80000
mov r11, qword [rdx + 0x20]
xor r11, qword [rdx]
mov rsi, qword [rdx + 0x28]
mov rcx, qword [rdx + 0x38]
xor rcx, qword [rdx + 0x18]
xor rsi, qword [rdx + 8]
mov rax, qword [rdx + 0x30]
xor rax, qword [rdx + 0x10]
movq xmm0, rcx
mov rcx, r11
movq xmm3, rax
punpcklqdq xmm3, xmm0
nop word [rax + rax]
mov rax, qword [rbx]
and ecx, 0x1ffff0
movq xmm0, rsi
movq xmm1, r11
punpcklqdq xmm1, xmm0
movdqu xmm2, xmmword [rcx + rax]
aesenc xmm2, xmm1
movq rdx, xmm2
movdqa xmm0, xmm2
mov r10, rdx
pxor xmm0, xmm3
movdqu xmmword [rcx + rax], xmm0
and r10d, 0x1ffff0
mov rcx, qword [rbx]
movdqa xmm3, xmm2
mov r9, qword [rcx + r10]
mov r8, qword [rcx + r10 + 8]
mov rax, r9
mul rdx
add rsi, rax
add r11, rdx
mov qword [rcx + r10], r11
xor r11, r9
mov rax, qword [rbx]
mov rcx, r11
mov qword [r10 + rax + 8], rsi
xor rsi, r8
sub rbp, 1
jne 0x140061850
mov rcx, rbx
call fcn.140061b20
mov rcx, qword [rbx + 8]
lea edx, [rbp + 0x18]
call fcn.1400632d0
mov r10, qword [rbx + 8]
movzx eax, byte [r10]
and eax, 3
je 0x140061936
sub eax, 1
je 0x140061924
sub eax, 1
je 0x14006190c
cmp eax, 1
jne 0x140061947
mov r9, rdi
mov r8d, 0x640
mov rdx, r10
mov ecx, 0x100
call fcn.14006ac20
jmp 0x140061947
mov r9, rdi
mov r8d, 0x640
mov rdx, r10
mov ecx, 0x100
call fcn.140067580
jmp 0x140061947
mov r8, rdi
mov edx, 0x640
mov rcx, r10
call fcn.1400660a0
jmp 0x140061947
mov r8d, 0xc8
mov rdx, r10
mov rcx, rdi
call fcn.1400640f0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140061960
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, r8
mov r10, rdx
mov r8, qword [rcx + 8]
mov rdi, r9
mov rbx, rcx
mov edx, eax
mov rcx, r10
mov r9d, 0xc8
call fcn.140062fc0
mov rcx, rbx
call fcn.140060f70
mov rdx, qword [rbx + 8]
mov ebp, 0x40000
mov r11, qword [rdx + 0x20]
xor r11, qword [rdx]
mov rsi, qword [rdx + 0x28]
mov r10, r11
mov rcx, qword [rdx + 0x38]
xor rcx, qword [rdx + 0x18]
xor rsi, qword [rdx + 8]
mov rax, qword [rdx + 0x30]
xor rax, qword [rdx + 0x10]
movq xmm0, rcx
movq xmm3, rax
punpcklqdq xmm3, xmm0
nop word [rax + rax]
mov rax, qword [rbx]
and r10d, 0x3ffff0
movq xmm0, rsi
movq xmm1, r11
punpcklqdq xmm1, xmm0
movdqu xmm2, xmmword [r10 + rax]
aesenc xmm2, xmm1
movq rdx, xmm2
movdqa xmm0, xmm2
pxor xmm0, xmm3
movdqa xmm3, xmm2
movdqu xmmword [r10 + rax], xmm0
mov r10, rdx
mov rcx, qword [rbx]
and r10d, 0x3ffff0
mov r9, qword [rcx + r10]
mov r8, qword [rcx + r10 + 8]
mov rax, r9
mul rdx
add rsi, rax
add r11, rdx
mov qword [rcx + r10], r11
xor r11, r9
mov rax, qword [rbx]
mov r9, r11
and r9d, 0x3ffff0
mov qword [r10 + rax + 8], rsi
xor rsi, r8
add r9, qword [rbx]
movsxd r10, dword [r9 + 8]
mov rax, qword [r9]
mov rcx, r10
or rcx, 5
cqo
idiv rcx
xor qword [r9], rax
xor r10, rax
sub rbp, 1
jne 0x1400619e0
mov rcx, rbx
call fcn.140062040
mov rcx, qword [rbx + 8]
lea edx, [rbp + 0x18]
call fcn.1400632d0
mov r10, qword [rbx + 8]
movzx eax, byte [r10]
and eax, 3
je 0x140061af0
sub eax, 1
je 0x140061ade
sub eax, 1
je 0x140061ac6
cmp eax, 1
jne 0x140061b01
mov r9, rdi
mov r8d, 0x640
mov rdx, r10
mov ecx, 0x100
call fcn.14006ac20
jmp 0x140061b01
mov r9, rdi
mov r8d, 0x640
mov rdx, r10
mov ecx, 0x100
call fcn.140067580
jmp 0x140061b01
mov r8, rdi
mov edx, 0x640
mov rcx, r10
call fcn.1400660a0
jmp 0x140061b01
mov r8d, 0xc8
mov rdx, r10
mov rcx, rdi
call fcn.1400640f0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400632c0
Capabilities:
Encode data using xor

Disassembly:
mov r9d, 0xc8
jmp fcn.140062fc0
Function at 0x1400640f0
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x1400a0ca8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor eax, eax
mov dword [rsp + 0x20], 0x6a09e667
mov rbx, rcx
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x50], rax
lea r8, [r8*8]
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x24], 0xbb67ae85
mov dword [rsp + 0x28], 0x3c6ef372
mov dword [rsp + 0x2c], 0xa54ff53a
mov dword [rsp + 0x30], 0x510e527f
mov dword [rsp + 0x34], 0x9b05688c
mov dword [rsp + 0x38], 0x1f83d9ab
mov qword [rsp + 0x3c], 0x5be0cd19
call fcn.1400641b0
mov r9b, 1
lea rcx, [rsp + 0x20]
mov r8b, 0x81
mov rdx, rbx
call fcn.140063e90
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14006b0f0
add rsp, 0xb0
pop rbx
ret
Function at 0x140013ec0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140013cec

Function at 0x14000190c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001956
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001956
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001956
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001956
cmp dword [rcx + 0x84], 0xe
jbe 0x140001956
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001958
xor al, al
add rsp, 0x28
ret