joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc50140
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub cl, byte [rdi]
test byte [rsi + rcx*2 + 0x75], dh
jmp 0x1a5985c
test byte [rsi + 0xf000002], dh
test dword [rax + 2], esi
add byte [rax], al
add byte [rax - 0x3f7bc3fc], cl
mov rax, qword [rcx + 0x10]
mov edx, dword [rcx + 0x3c]
jmp 0xc5020a
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 8], 0x5b41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xa], 0x5a41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xc], 0x5941
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 0xe], 0x5841
je 0xc502b4
jne 0xc502b4
jmp 0x233eb52
ret
mov qword [rcx + 0x10], rdx
jmp 0xc50385
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 6], 0x5c41
jmp 0xc5014e
cmp edx, 0x8664
je 0xc502d1
cmp edx, 0x14c
jne 0xc5018b
je 0xc5026b
jne 0xc5026b
jmp 0xc58bbe
jne 0xc502c6
add byte [rax], al
add byte [rax], al
jmp 0xc50193
jne 0xc50342
je 0x110e8d3d
mov r9, qword [rcx + 0x10]
lea rdx, [r9 + 1]
mov qword [rcx + 0x10], rdx
je 0xc50303
jne 0xc50303
jmp 0xc502f4
je 0xc50285
jne 0xc50285
add byte [rax], al
add byte [rax], al
mov rdx, qword [rcx + 8]
mov byte [rdx + r8], 0x58
mov qword [rcx + 0x10], r9
jmp 0xc5018b
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x11], 0x5e
mov rdx, qword [rcx + 8]
je 0xc5028c
jne 0xc5028c
je 0x2d54706
mov byte [rax + rdx + 2], 0x5d
pop rbp
je 0xc50342
jmp 0xc501e5
mov byte [rax + rdx + 4], 0x5a
mov rdx, qword [rcx + 8]
lea r8, [rax + 6]
je 0xc502c6
jmp 0xc501d7
mov byte [rax + rdx + 3], 0x5b
mov rdx, qword [rcx + 8]
jmp 0xc5024b
mov rdx, qword [rcx + 8]
mov byte [rdx + rax], 0x5f
mov rdx, qword [rcx + 8]
mov byte [rax + rdx + 1], 0x5e
mov rdx, qword [rcx + 8]
je 0xc5023c
jne 0xc5023c
jmp 0xc42972
jmp 0xc501b0
jne 0xc502f4
mov byte [r9 + rdx + 0x12], 0x5d
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x13], 0x5b
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x14], 0x5a
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x15], 0x59
jmp 0xc502dd
je 0x9168e00
mov rdx, qword [rcx + 8]
mov byte [r9 + rdx + 0x10], 0x5f
jmp 0xc50228
jne 0xc50317
jmp 0x5d54790
mov byte [rax + rdx + 5], 0x59
lea r9, [rax + 7]
jmp 0xc502e5
mov r8, qword [rcx + 8]
lea rdx, [rax + 1]
jmp 0xc50339
lea r8, [r9 + 0x16]
add r9, 0x17
je 0xc50212
jne 0xc50212
jmp 0xc502b2
jmp 0xc501a0
je 0xc50317
jmp 0xc502c3
mov byte [r8 + r9], 0x8b
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
je 0xc50383
jne 0xc50383
jmp 0xc50317
mov qword [rcx + 0x10], rdx
mov byte [r8 + r9], 0xe5
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
lea rdx, [r9 + 1]
jmp 0xc5035d
lea rdx, [r9 + 1]
jmp 0xc502f9
mov qword [rcx + 0x10], rdx
je 0xc5036d
jne 0xc5036d
jmp 0x9168e8e
mov rdx, qword [rcx + 8]
je 0xc5025f
jne 0xc5025f
je 0xc41641
inc dword [rax]
add byte [rax], al
add byte [rdi], cl
test byte [rsi - 2], bh
invalid
je 0xc501e1
jne 0xc501e1
add byte [rax], al
add byte [rax], al
mov byte [r8 + rax], 0x48
mov r8, qword [rcx + 8]
je 0xc501ed
jne 0xc501ed
jmp 0xffffffffc708ae72
jmp 0xc5032f
mov byte [r8 + r9], 0x5d
mov r8, qword [rcx + 8]
mov r9, qword [rcx + 0x10]
mov word [r8 + r9], 0x5f41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 2], 0x5e41
mov rdx, qword [rcx + 8]
mov word [r9 + rdx + 4], 0x5d41
je 0xc502f4
jmp 0xc5028a
invalid
Function at 0xc5a860
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
jmp 0xc5aab8
mov edi, edx
jmp 0xc5ab91
je 0xc5aabe
jne 0xc5aabe
je 0x541b0218
push rsi
push rdi
push rbp
push rbx
jmp 0xc5abba
sub rsp, 0xa8
jmp 0xc5a9b8

Function at 0xc68c50
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, [0x00c7fbe0]
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 0xc68d90
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 0xc6ed00
Capabilities:
Hash data using sha512

Disassembly:
test rcx, rcx
je 0xc6ed8b
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 0xc6f7b0
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.00c6f520
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.00c6c170
mov rcx, rdi
mov rdx, rbx
call fcn.00c6c0f0
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
Function at 0xc6f810
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 0xc6f830
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.00c69570
lea rbx, [rsp + 0x170]
mov rcx, rbx
call fcn.00c69200
lea rsi, [rsp + 0xb0]
mov rcx, rsi
mov rdx, rbp
mov r8, rbx
call fcn.00c69220
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.00c6b4a0
mov rcx, rbx
mov rdx, rbx
call fcn.00c69800
mov rcx, rbp
mov rdx, rsi
mov r8, rbx
call fcn.00c69fa0
lea rcx, [rsp + 0x80]
call fcn.00c69200
lea rdi, [rsp + 0x110]
mov rcx, rdi
call fcn.00c691e0
lea rcx, [rsp + 0x50]
mov rdx, rbp
call fcn.00c69550
lea r14, [rsp + 0xe0]
mov rcx, r14
call fcn.00c69200
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.00c693b0
mov rcx, rdi
mov rdx, r14
mov r8d, ebp
call fcn.00c693b0
lea rbp, [rsp + 0xb0]
mov rcx, rbp
mov rdx, r12
mov r8, r14
call fcn.00c6b4a0
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
call fcn.00c6b4a0
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00c69220
mov rcx, rdi
mov rdx, r12
mov r8, r14
call fcn.00c69220
mov rcx, r14
mov rdx, rbp
mov r8, rsi
call fcn.00c69fa0
mov rcx, rdi
mov rdx, rdi
mov r8, rbx
call fcn.00c69fa0
mov rcx, rbp
mov rdx, rbx
call fcn.00c69a90
mov rcx, rbx
mov rdx, rsi
call fcn.00c69a90
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.00c69220
mov rcx, rdi
mov rdx, r14
mov r8, rdi
call fcn.00c6b4a0
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.00c69fa0
mov rcx, rbx
mov rdx, rbx
mov r8, rbp
call fcn.00c6b4a0
mov rcx, rdi
mov rdx, rdi
call fcn.00c69a90
mov rcx, r14
mov rdx, rbx
call fcn.00c6aae0
mov rcx, r12
mov rdx, r12
call fcn.00c69a90
mov rcx, rbp
mov rdx, rbp
mov r8, r14
call fcn.00c69220
mov rcx, r14
lea rdx, [rsp + 0x140]
mov r8, rdi
call fcn.00c69fa0
mov rcx, rdi
mov rdx, rbx
mov r8, rbp
call fcn.00c69fa0
add r13d, 0xffffffff
cmp r13d, 0xffffffff
jne 0xc6f900
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x50]
mov rcx, rsi
mov r8d, r15d
call fcn.00c693b0
lea rdi, [rsp + 0x110]
lea rdx, [rsp + 0xe0]
mov rcx, rdi
mov r8d, r15d
call fcn.00c693b0
mov rcx, rdi
mov rdx, rdi
call fcn.00c69800
mov rcx, rsi
mov rdx, rsi
mov r8, rdi
call fcn.00c69fa0
mov rcx, qword [rsp + 0x28]
mov rdx, rsi
call fcn.00c6a810
add rsp, 0x198
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140027e40
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001b8c4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b8c4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027f90
cmp rax, 0xffffffffffffffff
je 0x140027f90
xor edi, edi
test rbp, rbp
jle 0x140027f3b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dec8
mov rbx, rax
test rax, rax
jne 0x140027ec8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027f31
mov edx, 0x8000
mov ecx, r14d
call fcn.140015978
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001c5a0
cmp eax, 0xffffffff
je 0x140027f11
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027ed8
mov edx, r15d
mov ecx, r14d
call fcn.140015978
jmp 0x140027f31
cmp byte [rsi + 0x38], dil
je 0x140027f28
cmp dword [rsi + 0x34], 5
jne 0x140027f28
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027f31
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019f88
jmp 0x140027fa4
jns 0x140027fa4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b8c4
cmp rax, 0xffffffffffffffff
jne 0x140027f5c
cmp byte [rsi + 0x30], dil
je 0x140027fa4
mov edi, dword [rsi + 0x2c]
jmp 0x140027fa4
mov ecx, r14d
call fcn.14001706c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027fa4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140027fa4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027f9d
mov eax, dword [rsi + 0x2c]
jmp 0x140027fa2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b8c4
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140004000
Capabilities:
Encode data using xor

Disassembly:
push 0x3f
pop rax
lea rdi, [rsp]
syscall
mov rbx, qword [rdi + 0x41]
xor rcx, rcx
sub rcx, 0xffffffffffffff50
lea rax, [0x14000400d]
xor qword [rax + 0x1d], rbx
sub rax, 0xfffffffffffffff8
loop 0x14000401e
add dl, byte [rax + 0x2b]
cmp al, 0xe3
pop rbp
push 0x6d
invalid
Function at 0x6d7f0f50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8125e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7f10d8
mov rax, qword [0x6d8125e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7f0f9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7f1025
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7f0f80
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7f110d
mov rax, qword [0x6d8125e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8125e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7f10f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7f101e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7f1080
add dword [0x6d8125e4], 1
cmp edi, 8
jae 0x6d7f1053
test dil, 4
jne 0x6d7f10c4
test edi, edi
je 0x6d7f1048
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7f10df
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7f1048
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7f106c
jmp 0x6d7f1048
add rsi, qword [0x6d8125e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7f101e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7f1048
xor esi, esi
jmp 0x6d7f0fa7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7f1048
mov rax, qword [0x6d8125e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7f1860
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8128c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8128a0]
test rbx, rbx
je 0x6d7f18b4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7f18ab
test rsi, rsi
je 0x6d7f18ab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7f1890
lea rcx, [0x6d8128c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7f1af0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7f1b00
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7f1b10
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7f1b51
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7f1b48
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7f1b53
add rax, 0x28
cmp rax, r9
jne 0x6d7f1b34
xor eax, eax
ret

Function at 0x6d7f1bf0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d80f1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7f1c5d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7f1c5d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7f1c5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7f1c54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7f1c5f
add rax, 0x28
cmp rax, r9
jne 0x6d7f1c40
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7f1d60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d80f1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7f1d80
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7f1d78
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7f1ddd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7f1dd4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7f1de4
add rax, 0x28
cmp rax, r9
jne 0x6d7f1dc0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7f1e00
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d80f1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7f1e6e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7f1e6e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7f1e6e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7f1e6e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7f1e65
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7f1e75
add rcx, 0x28
cmp rcx, rax
jne 0x6d7f1e50
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7f1e88
jmp 0x6d7f1e6e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7f1e96
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7f1e6e
test r9d, r9d
jg 0x6d7f1e80
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7f21f0
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1405d7058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405d71df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1405d7089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d706f
add dl, dl
jne 0x1405d7096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d70f6
xor eax, eax
add dl, dl
jne 0x1405d70a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405d71ad
add dl, dl
jne 0x1405d70b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d70c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d70d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d70dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405d70ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405d707e
mov eax, 1
add dl, dl
jne 0x1405d7106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405d7113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d70fb
sub eax, ebx
mov ebx, 1
jne 0x1405d714c
mov ecx, 1
add dl, dl
jne 0x1405d712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405d713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d7123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405d7168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405d7175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405d715d
cmp eax, 0x7d00
jae 0x1405d719b
cmp eax, 0x500
jb 0x1405d7196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d707e
cmp eax, 0x7f
ja 0x1405d719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405d707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405d71d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1405d707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140018270
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1418089d0]
xor rax, rbp
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x88], 0
je 0x1400182b8
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1400182bf
xor eax, eax
jmp 0x140018416
lea rcx, [rbp + 4]
call fcn.1400185a0
nop
mov dword [rbp], 0
mov rcx, qword [rbp + 0x80]
call fcn.140018530
test eax, eax
je 0x140018404
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
movsxd rdx, eax
mov ecx, 0x2002
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x1400183fe
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rbp + 0x20], rax
call fcn.140001540
mov dword [rbp + 0x28], eax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x140018349
mov qword [rbp + 0x50], 0
jmp 0x1400183bd
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [rbp + 0x10], eax
cmp dword [rbp + 0x10], 0x3fffffff
jle 0x14001836c
mov qword [rbp + 0x58], 0
jmp 0x1400183b5
movsxd rdx, dword [rbp + 0x10]
shl rdx, 1
movsxd rcx, dword [rbp + 0x10]
shl rcx, 1
mov rax, rcx
add rax, 0xf
cmp rax, rcx
ja 0x140018390
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14008a6e0
sub rsp, rax
lea rcx, [rsp + 0x20]
mov r9d, dword [rbp + 0x28]
mov r8d, edx
mov rdx, qword [rbp + 0x18]
call fcn.140009520
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x50], rax
mov rdx, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x20]
call fcn.1400720b0
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, qword [rbp + 8]
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
je 0x1400183f1
mov dword [rbp + 0x60], 1
jmp 0x1400183f8
mov dword [rbp + 0x60], 0
mov eax, dword [rbp + 0x60]
mov dword [rbp], eax
call qword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [rbp]
mov dword [rbp + 0x40], eax
lea rcx, [rbp + 4]
call fcn.1400185c0
mov eax, dword [rbp + 0x40]
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.140071250
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x140018430
Capabilities:
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x50]
call fcn.140018530
test eax, eax
je 0x1400184ac
mov ecx, 1
call qword [sym.imp.USER32.dll_GetClipboardData]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400184a6
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400184a6
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x58]
call fcn.140001470
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [rsp + 0x20]
add rsp, 0x48
ret