joyce8/EMBER2024-capa huggingface dataset:
Function at 0x29a860
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
jmp 0x29aab8
mov edi, edx
jmp 0x29ab91
je 0x29aabe
jne 0x29aabe
je 0x537f0218
push rsi
push rdi
push rbp
push rbx
jmp 0x29abba
sub rsp, 0xa8
jmp 0x29a9b8

Function at 0x2a8c50
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, [rdx + 0x10]
cmp r8d, 0x100
cmovne rax, rdx
lea r8, str.expand_32_byte_kexpand_16_byte_k
lea r9, [0x002bfbe0]
cmove r9, r8
mov edx, dword [rax]
mov dword [rcx + 0x20], edx
mov edx, dword [rax + 4]
mov dword [rcx + 0x24], edx
mov edx, dword [rax + 8]
mov dword [rcx + 0x28], edx
mov eax, dword [rax + 0xc]
mov dword [rcx + 0x2c], eax
mov dword [rcx], 0x61707865
mov rax, qword [r9 + 4]
mov qword [rcx + 4], rax
mov eax, dword [r9 + 0xc]
mov dword [rcx + 0xc], eax
ret

Function at 0x2a8d90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov qword [rsp + 0x50], rcx
mov eax, dword [rdx]
mov dword [rsp + 0xc], eax
mov eax, dword [rdx + 4]
mov dword [rsp + 0x10], eax
mov eax, dword [rdx + 8]
mov dword [rsp + 0x14], eax
mov r12d, dword [rdx + 0xc]
mov r13d, dword [rdx + 0x10]
mov r14d, dword [rdx + 0x14]
mov r15d, dword [rdx + 0x18]
mov r10d, dword [rdx + 0x1c]
mov edi, dword [rdx + 0x20]
mov r11d, dword [rdx + 0x24]
mov ebx, dword [rdx + 0x28]
mov ebp, dword [rdx + 0x2c]
mov ecx, dword [rdx + 0x30]
mov eax, dword [rdx + 0x34]
mov r9d, dword [rdx + 0x38]
mov r8d, dword [rdx + 0x3c]
mov dword [rsp + 0x4c], 0xfffffff8
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x44], r9d
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x3c], ecx
mov edx, ecx
mov dword [rsp + 0x38], ebp
mov dword [rsp + 8], ebp
mov dword [rsp + 0x34], ebx
mov dword [rsp], ebx
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x2c], edi
mov ebp, edi
mov dword [rsp + 0x28], r10d
mov edi, r10d
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r14d
mov ebx, r14d
mov dword [rsp + 0x1c], r13d
mov dword [rsp + 0x18], r12d
mov r14d, r12d
mov r12d, dword [rsp + 0x14]
mov r10d, dword [rsp + 0x10]
mov ecx, dword [rsp + 0xc]
nop

Function at 0x2aed00
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0x2aed8b
mov qword [rcx + 0x48], 0
mov qword [rcx], 0
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x40], rax
xor eax, eax
ret
mov eax, 1
ret
Function at 0x2af7b0
Capabilities:
Encrypt data using curve25519

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov edx, 0x20
mov rcx, r8
mov r8, rsi
call fcn.002af520
and byte [rsi], 0xf8
mov al, byte [rsi + 0x1f]
and al, 0x3f
or al, 0x40
mov byte [rsi + 0x1f], al
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov rdx, rsi
call fcn.002ac170
mov rcx, rdi
mov rdx, rbx
call fcn.002ac0f0
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
Function at 0x2af810
Capabilities:
Encrypt data using curve25519

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x198
mov qword [rsp + 0x28], rcx
xor eax, eax
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
mov byte [rsp + rax + 0x30], cl
add rax, 1
cmp rax, 0x20
jne 0x2af830
and byte [rsp + 0x30], 0xf8
mov al, byte [rsp + 0x4f]
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x4f], al
lea rbp, [rsp + 0x140]
mov rcx, rbp
call fcn.002a9570
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.002a9200
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.002a9220
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.002ab4a0
mov rcx, rbx
mov rdx, rbx
call fcn.002a9800
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.002a9fa0
lea rcx, [rsp + 0x80]
call fcn.002a9200
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.002a91e0
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.002a9550
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.002a9200
mov r13d, 0xfe
xor r15d, r15d
nop word cs:[rax + rax]
nop
mov ebp, r15d
mov eax, r13d
shr rax, 3
movzx r15d, byte [rsp + rax + 0x30]
mov ecx, r13d
and cl, 7
shr r15d, cl
and r15d, 1
xor ebp, r15d
lea rsi, [rsp + 0x80]
mov rcx, rsi
lea r12, [rsp + 0x50]
mov rdx, r12
mov r8d, ebp
call fcn.002a93b0
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.002a93b0
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.002ab4a0
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.002ab4a0
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.002a9220
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.002a9220
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.002a9fa0
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.002a9fa0
mov rcx, rbp
mov rdx, rbx
call fcn.002a9a90
mov rcx, rbx
mov rdx, rsi
call fcn.002a9a90
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.002a9220
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.002ab4a0
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.002a9fa0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.002ab4a0
mov rcx, rdi
mov rdx, rdi
call fcn.002a9a90
mov rcx, r14
mov rdx, rbx
call fcn.002aaae0
mov rcx, r12
mov rdx, r12
call fcn.002a9a90
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.002a9220
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.002a9fa0
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.002a9fa0
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0x2af900
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.002a93b0
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.002a93b0
mov rcx, rdi
mov rdx, rdi
call fcn.002a9800
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.002a9fa0
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.002aa810
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14001a1fc
Capabilities:
Parse pe header

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

Function at 0x14001fd00
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xdeac
cmp ecx, eax
ja 0x14001fd58
je 0x14001fd4f
mov eax, 0xc433
cmp ecx, eax
ja 0x14001fd33
je 0x14001fd4f
mov eax, ecx
sub eax, 0x2a
je 0x14001fd4f
sub eax, 0xc402
je 0x14001fd4f
sub eax, 1
je 0x14001fd4f
sub eax, 1
je 0x14001fd4f
cmp eax, 3
jmp 0x14001fd4d
mov eax, ecx
sub eax, 0xc435
je 0x14001fd4f
sub eax, 0x1263
je 0x14001fd8b
sub eax, 0x812
je 0x14001fd4f
cmp eax, 1
jne 0x14001fd51
xor edx, edx
call fcn.1400a8d18
mov esp, 0xad2dc18b
fiadd word [rax]
add byte [rsi + rbp*8 - 0x7d], dh
call 0xc3eb7168
call 0xc3e6716d
call 0xc3e17172
call 0xc3dc7177
call 0xc3d7717c
call 0x16dd27181
xor eax, 0x7400001f
leave
mov eax, ecx
sub eax, 0xdead
je 0x14001fd4f
sub eax, 1
je 0x14001fd4f
sub eax, 1
je 0x14001fd4f
sub eax, 1
je 0x14001fd4f
sub eax, 1
je 0x14001fd4f
sub eax, 1
je 0x14001fd4f
sub eax, 1
je 0x14001fd4f
sub eax, 0x1f35
je 0x14001fd4f
cmp eax, 1
jne 0x14001fd51
and edx, 8
jmp 0x14001fd51

Function at 0x14002a5a0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002a5c8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002a5c8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2ed471500
Capabilities:
Access peb ldr_data

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
movzx edi, word [section..rdata]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rsi, r8
mov r8, r9
movq xmm1, rcx
mov rcx, rdx
mov rax, qword [rax + 0x20]
mov rbp, qword [rax]
mov rbx, qword [rbp - 0x10]
lea r9, [rbp - 0x10]
cmp rbp, rbx
je 0x2ed47158d
nop word [rax + rax]
mov rax, qword [r9 + 0x60]
lea r10, [rax + 2]
movzx eax, word [rax]
test ax, ax
je 0x2ed471582
mov edx, 0xe0e
nop dword [rax]
mov r11d, edx
add r10, 2
shl r11d, 6
add edx, r11d
add edx, eax
movzx eax, word [r10 - 2]
test ax, ax
jne 0x2ed471560
cmp edx, 0x18cf5f14
je 0x2ed4715fd
mov r9, rbx
mov rbx, qword [r9]
cmp rbp, rbx
jne 0x2ed471548
xor eax, eax
movq xmm0, rax
mov rdx, rsi
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x60], 0
mov r9, qword [rsp + 0xc0]
punpcklqdq xmm0, xmm1
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xd8]
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.2ed4716a0
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, dword [r9 + 0x40]
mov rax, qword [r9 + 0x30]
cmp edx, 2
je 0x2ed47158d
sub edx, 3
lea rdx, [rax + rdx + 1]
nop word [rax + rax]
cmp word [rax], di
je 0x2ed47158f
add rax, 1
cmp rax, rdx
jne 0x2ed471618
jmp 0x2ed47158d
Function at 0x2ed4716e0
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 0x2ed4717c4
movdqu xmm1, xmmword [rdx]
movups xmmword [rax], xmm1
movdqu xmm0, xmmword [rdx + 0x10]
movups xmmword [rax + 0x10], xmm0
movzx edi, byte [rax + 0x1f]
mov r10d, 8
movzx r9d, byte [rax + 0x1e]
lea r11, [0x2ed52b140]
movzx r8d, byte [rax + 0x1d]
lea rbx, [0x2ed52b020]
movzx edx, byte [rax + 0x1c]
jmp 0x2ed471789
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
shr edx, 3
movzx r8d, byte [r11 + r8]
xor cl, byte [rbx + rdx]
movzx r9d, byte [r11 + r9]
mov edx, ecx
xor dl, byte [rax]
add r10d, 1
add rax, 4
xor r8b, byte [rax - 3]
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 0x2ed4717c0
mov ecx, r10d
and ecx, 7
je 0x2ed471730
cmp ecx, 4
jne 0x2ed47175e
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 0x2ed47175e
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 0x2ed471707
Function at 0x2ed49dc70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2ed4aa4d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.2ed4aa4d0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x2ed49dce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x2ed54e614]
test esi, esi
mov rbx, rcx
jle 0x2ed49de10
mov rax, qword [0x2ed54e618]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x2ed49dd2b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x2ed49ddb5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x2ed49dd10
mov rcx, rbx
call fcn.2ed49e540
test rax, rax
mov rdi, rax
je 0x2ed49de32
mov rax, qword [0x2ed54e618]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2ed49e680
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x2ed54e618]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2ed49de17
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2ed49ddae
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2ed49ddc0
add dword [0x2ed54e614], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x2ed54e618]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2ed49ddae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2ed49dc70
nop dword [rax]
xor esi, esi
jmp 0x2ed49dd38
mov rax, qword [0x2ed54e618]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.2ed49dc70
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.2ed49dc70
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2ed49e1b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x2ed54e640]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2ed54e620]
test rbx, rbx
je 0x2ed49e20c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x2ed49e203
test rsi, rsi
je 0x2ed49e203
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2ed49e1e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2ed49e540
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2ed5306b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2ed49e560
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2ed49e568
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2ed49e560
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x2ed49e5bd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x2ed49e5b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2ed49e560
add rax, 0x28
cmp rax, r9
jne 0x2ed49e5a0
xor eax, eax
ret

Function at 0x2ed49e5c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2ed5306b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x2ed49e5df
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2ed49e5e8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x2ed49e5df
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2ed49e680
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2ed5306b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2ed49e69f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x2ed49e6a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x2ed50b680
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
test rax, rax
mov rdi, rcx
je 0x2ed50b6a8
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
lea rsi, [rsp + 0x2c]
mov ebx, 4
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
test eax, eax
jle 0x2ed50b6f0
cdqe
add rsi, rax
sub rbx, rax
jne 0x2ed50b6c0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x2ed50b6fc
call rbp
cmp dword [rax], 4
je 0x2ed50b6c0
lea rcx, str.random_device_could_not_be_read
call fcn.2ed528000
nop
nop
nop
nop
nop
nop
nop
nop
mov rax, qword [0x2ed5303a0]
add rax, 0x10
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov rdx, qword [0x2ed52fc90]
mov qword [rcx + 8], rax
mov r8d, dword [rdx]
test r8d, r8d
jne 0x2ed50b748
mov edx, dword [rax - 8]
test edx, edx
jle 0x2ed50b753
add edx, 1
mov dword [rax - 8], edx
ret
mov eax, dword [rax - 8]
test eax, eax
jg 0x2ed50b760
mov rax, qword [rcx + 8]
mov dword [rax - 8], 1
ret
mov edx, dword [rdx]
mov rax, qword [rcx + 8]
test edx, edx
je 0x2ed50b770
lock add dword [rax - 8], 1
ret
mov edx, dword [rax - 8]
jmp 0x2ed50b73c
Function at 0x2ed512230
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 0x28
movaps xmmword [rsp], xmm6
movaps xmmword [rsp + 0x10], xmm7
movdqa xmm3, xmmword [0x2ed52b4c0]
pxor xmm7, xmm7
movdqa xmm4, xmmword [0x2ed52b4d0]
movdqa xmm5, xmmword [0x2ed52b4e0]
movdqa xmm6, xmmword [0x2ed52b4f0]
mov rdx, rcx
lea rcx, [rcx + 0x380]
mov rax, rdx
nop
movdqu xmm0, xmmword [rax]
add rax, 0x10
movdqu xmm1, xmmword [rax - 0xc]
movdqu xmm2, xmmword [rax + 0x624]
pand xmm0, xmm3
pand xmm1, xmm4
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm2
movdqa xmm2, xmm7
psubd xmm2, xmm0
pand xmm2, xmm6
movdqa xmm0, xmm2
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x2ed512270
mov eax, dword [rdx + 0x388]
mov ecx, dword [rdx + 0x38c]
movq xmm0, qword [rdx + 0x380]
movq xmm1, qword [0x2ed52b4c0]
movq xmm2, qword [0x2ed52b4d0]
and eax, 0x80000000
pand xmm0, xmm1
and ecx, 0x7fffffff
movq xmm1, qword [rdx + 0x384]
or eax, ecx
pand xmm1, xmm2
por xmm0, xmm1
movdqa xmm2, xmm0
mov ecx, eax
movq xmm1, qword [rdx + 0x9b4]
psrld xmm2, 1
shr ecx, 1
and eax, 1
xor ecx, dword [rdx + 0x9bc]
neg eax
pxor xmm1, xmm2
and eax, 0x9908b0df
movq xmm2, qword [0x2ed52b4e0]
pand xmm0, xmm2
pxor xmm2, xmm2
psubd xmm2, xmm0
movq xmm0, qword [0x2ed52b4f0]
xor eax, ecx
mov dword [rdx + 0x388], eax
lea rcx, [rdx + 0x9bc]
pand xmm0, xmm2
lea rax, [rdx + 0x38c]
pxor xmm1, xmm0
pxor xmm2, xmm2
movq qword [rdx + 0x380], xmm1
movdqu xmm0, xmmword [rax]
add rax, 0x10
movdqu xmm1, xmmword [rax - 0xc]
movdqu xmm7, xmmword [rax - 0x39c]
pand xmm0, xmm3
pand xmm1, xmm4
por xmm0, xmm1
movdqa xmm1, xmm0
pand xmm0, xmm5
psrld xmm1, 1
pxor xmm1, xmm7
movdqa xmm7, xmm2
psubd xmm7, xmm0
pand xmm7, xmm6
movdqa xmm0, xmm7
pxor xmm0, xmm1
movups xmmword [rax - 0x10], xmm0
cmp rcx, rax
jne 0x2ed512373
mov eax, dword [rdx + 0x9bc]
mov qword [rdx + 0x9c0], 0
mov ecx, dword [rdx]
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
and eax, 0x80000000
and ecx, 0x7fffffff
or eax, ecx
mov ecx, eax
and eax, 1
shr ecx, 1
xor ecx, dword [rdx + 0x630]
neg eax
and eax, 0x9908b0df
xor eax, ecx
mov dword [rdx + 0x9bc], eax
add rsp, 0x28
ret
Function at 0x2ed527480
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x2ed52af40]
jmp 0x2ed49f3b0
Function at 0x14005caa8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14005cbd8
Function at 0x140004dd0
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140036030]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor edx, edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
mov ecx, eax
call fcn.14000a420
mov rsi, rax
mov rcx, r15
xor edx, edx
mov r8d, ebp
mov r9, rax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140004e6b
lea r8, [rsp + 0x28]
mov qword [r8], rsi
lea rdx, [0x14002faea]
lea r9, [rsp + 0x24]
mov rcx, rsi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140004e9b
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x28]
movzx edx, word [rcx + 0xa]
mov dword [r14], edx
movzx edx, word [rcx + 8]
mov dword [rbx], edx
movzx edx, word [rcx + 0xe]
mov dword [rdi], edx
movzx ecx, word [rcx + 0xc]
mov dword [rax], ecx
mov edi, 1
jmp 0x140004ed3
mov eax, dword [0x140038330]
mov ecx, dword [0x140036d60]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004ef7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_obtain_file_info_of_old_service.____lu_
jmp 0x140004ec9
mov eax, dword [0x140038330]
mov ecx, dword [0x140036d60]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140004f34
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_query_file_version_info_of_old_service.____lu_
mov r8d, eax
call fcn.140008c60
xor edi, edi
mov rcx, rsi
call fcn.14000a474
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140018400
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x140038330]
call fcn.14000a550
cmp dword [0x140038330], 0xffffffff
jne 0x140004e8c
mov qword [0x140038120], 0
lea rcx, [fcn.140001d00]
call fcn.14000a6e8
lea rcx, [0x140038330]
call fcn.14000a5b8
jmp 0x140004e8c
lea rcx, [0x140038330]
call fcn.14000a550
cmp dword [0x140038330], 0xffffffff
jne 0x140004ebc
mov qword [0x140038120], 0
lea rcx, [fcn.140001d00]
call fcn.14000a6e8
lea rcx, [0x140038330]
call fcn.14000a5b8
jmp 0x140004ebc