joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140071b90
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140071b9d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140071bad
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140071b95
lea eax, [rcx + 1]
jmp 0x140071bbb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140071bce
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140071bb4
sub eax, 3
jb 0x140071bee
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140071c3d
sar eax, 1
movsxd rbp, eax
jb 0x140071c24
jmp 0x140071bfc
add ebx, ebx
jne 0x140071bfa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140071c24
inc ecx
add ebx, ebx
jne 0x140071c0a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140071c24
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140071c1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140071c0c
add ecx, 2
jmp 0x140071c29
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140071b52
jmp 0x140071b9d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x8a00
mov dl, 4
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140071c89
cmp rsi, rcx
jae 0x140071c91
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140071c70
cmp al, 0x8f
ja 0x140071c70
cmp byte [rsi - 2], 0xf
je 0x140071c76
sub al, 0xe8
cmp al, 1
ja 0x140071c5a
cmp rsi, rcx
jae 0x140071c91
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140071c60
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140071c91
lodsb al, byte [rsi]
jmp 0x140071c70
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6f000]
mov eax, dword [rdi]
or eax, eax
je 0x140071cfa
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x7f7c8]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140071c9e
jns 0x140071cd3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140071cdd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140071cf4
mov qword [rbx], rax
add rbx, 8
jmp 0x140071cbe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140071d34
cmp al, 0xef
ja 0x140071d26
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140071d06
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140071d15
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140071d88
sub rsp, 0xffffffffffffff80
jmp 0x140003220
Function at 0x2238058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x22381df
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 0x2238089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x223806f
add dl, dl
jne 0x2238096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x22380f6
xor eax, eax
add dl, dl
jne 0x22380a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x22381ad
add dl, dl
jne 0x22380b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x22380c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x22380d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x22380dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x22380ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x223807e
mov eax, 1
add dl, dl
jne 0x2238106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x2238113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x22380fb
sub eax, ebx
mov ebx, 1
jne 0x223814c
mov ecx, 1
add dl, dl
jne 0x223812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x223813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x2238123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x223807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x2238168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2238175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x223815d
cmp eax, 0x7d00
jae 0x223819b
cmp eax, 0x500
jb 0x2238196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x223807e
cmp eax, 0x7f
ja 0x223819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x223807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x22381d2
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 0x223807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140011c90]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140011ca0]
mov dword [rax], 1
mov rax, qword [0x140011cb0]
mov dword [rax], 1
mov rax, qword [0x140011c40]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140011c80]
mov dword [0x14001600c], 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 [0x140011d70]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140011d50]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140011bd0]
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 0x1400015e8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xd0
call dbg.__main
lea rax, str.Code:
mov rcx, rax
call sym.printf
mov dword [rbp - 4], 0
jmp 0x140001632
lea rdx, [rbp - 0x2e]
mov eax, dword [rbp - 4]
cdqe
add rax, rdx
mov rdx, rax
lea rax, [0x140011057]
mov rcx, rax
call sym.scanf
add dword [rbp - 4], 1
cmp dword [rbp - 4], 5
jle 0x140001610
lea rax, str.52bk
mov qword [rbp - 0x60], rax
lea rax, str.Kmfk
mov qword [rbp - 0x58], rax
lea rax, str.iQ66
mov qword [rbp - 0x50], rax
lea rax, str.u5c2
mov qword [rbp - 0x48], rax
lea rax, str.Y6DD
mov qword [rbp - 0x40], rax
lea rax, str.PoMP
mov qword [rbp - 0x38], rax
mov dword [rbp - 8], 0
jmp 0x1400016ca
mov eax, dword [rbp - 8]
cdqe
movzx eax, byte [rbp + rax - 0x2e]
movsx eax, al
sub eax, 0x31
cdqe
mov rax, qword [rbp + rax*8 - 0x60]
mov rcx, rax
call sym.printf
mov eax, dword [rbp - 8]
cdqe
movzx eax, byte [rbp + rax - 0x2e]
movsx eax, al
sub eax, 0x31
cdqe
mov rdx, qword [rbp + rax*8 - 0x60]
mov eax, dword [rbp - 8]
cdqe
mov qword [rbp + rax*8 - 0x90], rdx
add dword [rbp - 8], 1
cmp dword [rbp - 8], 5
jle 0x140001683
lea rax, [0x140011079]
mov rcx, rax
call sym.printf
mov dword [rbp - 0xc], 0
jmp 0x14000177f
mov eax, dword [rbp - 0xc]
cdqe
mov rax, qword [rbp + rax*8 - 0x90]
mov edx, dword [rbp - 0xc]
lea ecx, [rdx*4]
movzx edx, byte [rax]
movsxd rax, ecx
mov byte [rbp + rax - 0xb0], dl
mov eax, dword [rbp - 0xc]
cdqe
mov rax, qword [rbp + rax*8 - 0x90]
mov edx, dword [rbp - 0xc]
shl edx, 2
lea ecx, [rdx + 1]
movzx edx, byte [rax + 1]
movsxd rax, ecx
mov byte [rbp + rax - 0xb0], dl
mov eax, dword [rbp - 0xc]
cdqe
mov rax, qword [rbp + rax*8 - 0x90]
mov edx, dword [rbp - 0xc]
shl edx, 2
lea ecx, [rdx + 2]
movzx edx, byte [rax + 2]
movsxd rax, ecx
mov byte [rbp + rax - 0xb0], dl
mov eax, dword [rbp - 0xc]
cdqe
mov rax, qword [rbp + rax*8 - 0x90]
mov edx, dword [rbp - 0xc]
shl edx, 2
lea ecx, [rdx + 3]
movzx edx, byte [rax + 3]
movsxd rax, ecx
mov byte [rbp + rax - 0xb0], dl
add dword [rbp - 0xc], 1
cmp dword [rbp - 0xc], 5
jle 0x1400016eb
lea rax, str.TestCpaste
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sym.strlen
add rax, 1
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.KERNEL32.dll_GlobalAlloc]
call rax
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov rcx, rax
mov rdx, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov r8, rdx
mov rdx, rax
call sym.memcpy
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
mov rax, qword [sym.imp.USER32.dll_EmptyClipboard]
call rax
mov rax, qword [rbp - 0x28]
mov rdx, rax
mov ecx, 1
mov rax, qword [sym.imp.USER32.dll_SetClipboardData]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
mov eax, 0
add rsp, 0xd0
pop rbp
ret
Function at 0x140001b00
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 0x140001b70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140016104]
mov rbx, rcx
test esi, esi
jle 0x140001ca0
mov rax, qword [0x140016108]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001bbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ba0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001cc2
mov rax, qword [0x140016108]
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 [0x140016108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ca7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c3e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c50
add dword [0x140016104], 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 [0x140016108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c3e
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 0x140001bc8
mov rax, qword [0x140016108]
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 0x140002230
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140016160]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140016140]
test rbx, rbx
je 0x14000228c
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 0x140002283
test rsi, rsi
je 0x140002283
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002268
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 0x1400024a0
Capabilities:
Parse pe header

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

Function at 0x1400024d0
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 0x14000251d
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 0x140002514
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000251f
add rax, 0x28
cmp rax, r9
jne 0x140002500
xor eax, eax
ret

Function at 0x140002520
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400025b0
mov rdx, qword [0x140011c40]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000259e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000259e
cmp word [rax + 0x18], 0x20b
jne 0x14000259e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400025b0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002589
add rbx, 0x28
cmp rbx, rdi
je 0x1400025b0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002580
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 0x1400025c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140011c40]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400025e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400025e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400025e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000263d
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 0x140002634
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400025e0
add rax, 0x28
cmp rax, r9
jne 0x140002620
xor eax, eax
ret

Function at 0x140002640
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140011c40]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000265f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002668
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000265f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002680
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140011c40]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400026a0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400026a8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026a0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x1400026f0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x1400026e7
test rcx, rcx
je 0x1400026a0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x1400026d8
xor eax, eax
ret

Function at 0x140002700
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x140011c40]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x1400027f2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002800
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027f2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x1400027f2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x1400027f2
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 0x140002855
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002868
add rdx, 0x28
cmp rdx, r10
jne 0x140002840
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002877
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002887
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000285e
test ecx, ecx
jg 0x140002870
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1407410b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140741237
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 0x1407410e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407410c7
add dl, dl
jne 0x1407410ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14074114e
xor eax, eax
add dl, dl
jne 0x1407410fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140741205
add dl, dl
jne 0x14074110e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074111b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140741128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140741135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140741142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407410d6
mov eax, 1
add dl, dl
jne 0x14074115e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14074116b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140741153
sub eax, ebx
mov ebx, 1
jne 0x1407411a4
mov ecx, 1
add dl, dl
jne 0x140741186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140741193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14074117b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407410d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407411c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407411cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407411b5
cmp eax, 0x7d00
jae 0x1407411f3
cmp eax, 0x500
jb 0x1407411ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407410d6
cmp eax, 0x7f
ja 0x1407411f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407410d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14074122a
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 0x1407410d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x18000e700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp rdx, r8
je 0x18000e80f
push rbx
sub rsp, 0x20
mov qword [rsp + 0x30], rdi
mov r11, r8
lea rdi, [0x180000000]
mov r10, rdx
mov rbx, rcx
movzx edx, byte [r10 + 9]
movzx eax, dl
and al, 7
cmp al, 3
jne case.0x18000e76a.8
xor dl, 7
mov byte [r10 + 9], dl
test dl, 0x20
je case.0x18000e76a.8
movzx eax, byte [r10 + 8]
add eax, 0xfffffffc
cmp eax, 0x22
ja case.0x18000e76a.8
cdqe
movzx eax, byte [rdi + rax + 0xe824]
mov ecx, dword [rdi + rax*4 + 0xe810]
add rcx, rdi
jmp rcx
and dl, 0xe7
or dl, 0x20
mov byte [r10 + 9], dl
jmp case.0x18000e76a.8
mov rcx, qword [r10 + 0x10]
lea rax, [r10 + 0x18]
cmp rcx, rax
je 0x18000e78d
and dl, 0xc7
jmp 0x18000e793
and dl, 0xe7
or dl, 0x20
mov byte [r10 + 9], dl
test byte [rcx + 8], 0x40
je case.0x18000e76a.8
mov rdx, qword [rcx]
test byte [rdx + 9], 0x18
je case.0x18000e76a.8
mov rcx, rbx
call fcn.18000ee30
jmp case.0x18000e76a.8
cmp word [r10 + 0xa], 0
jne case.0x18000e76a.5
mov rdx, qword [r10 + 0x18]
test rdx, rdx
je 0x18000e7cf
test byte [rdx + 9], 0x18
je 0x18000e7cf
mov rcx, rbx
call fcn.18000ee30
and byte [r10 + 9], 0xe7
or byte [r10 + 9], 0x20
jmp case.0x18000e76a.8
mov rcx, r10
call fcn.18000dc10
mov rcx, qword [rbx + 0x88]
mov qword [rax], rcx
mov qword [rbx + 0x88], r10
and byte [r10 + 9], 0xc7
mov r10, qword [r10]
cmp r10, r11
jne 0x18000e723
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x1800102c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov eax, 1
movzx ecx, byte [rdx + 0xb]
mov rdi, rdx
shl eax, cl
mov rcx, rdx
cdqe
lea r8, [rax + rax*2]
mov rax, qword [rdx + 0x18]
lea rsi, [rax + r8*8]
call fcn.18001ecf0
test eax, eax
je 0x180010328
xor r10d, r10d
mov r11d, eax
mov rax, qword [rdi + 0x10]
test byte [r10 + rax + 8], 0x40
je 0x18001031e
mov rdx, qword [r10 + rax]
test byte [rdx + 9], 0x18
je 0x18001031e
mov rcx, rbx
call fcn.18000ee30
add r10, 0x10
sub r11, 1
jne 0x180010300
mov r10, qword [rdi + 0x18]
cmp r10, rsi
jae 0x18001037f
test byte [r10 + 8], 0xf
movzx eax, byte [r10 + 9]
jne 0x180010348
test al, 0x40
je 0x180010376
mov byte [r10 + 9], 0xb
jmp 0x180010376
test al, 0x40
je 0x18001035e
mov rdx, qword [r10 + 0x10]
test byte [rdx + 9], 0x18
je 0x18001035e
mov rcx, rbx
call fcn.18000ee30
test byte [r10 + 8], 0x40
je 0x180010376
mov rdx, qword [r10]
test byte [rdx + 9], 0x18
je 0x180010376
mov rcx, rbx
call fcn.18000ee30
add r10, 0x18
cmp r10, rsi
jb 0x180010331
movzx eax, byte [rdi + 9]
movzx ecx, al
and cl, 7
cmp cl, 5
jne 0x1800103bb
mov rcx, rdi
call fcn.18000dc10
mov rcx, qword [rbx + 0x90]
mov qword [rax], rcx
mov qword [rbx + 0x90], rdi
and byte [rdi + 9], 0xc7
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp cl, 6
jne 0x1800103c5
xor al, 2
mov byte [rdi + 9], al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret