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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0xa0
xorps xmm0, xmm0
mov rbx, rcx
mov rcx, qword [0x1400df7f8]
xorps xmm1, xmm1
movups xmmword [rax - 0x40], xmm0
mov rdi, rdx
movups xmmword [rax - 0x30], xmm1
movups xmmword [rax - 0x20], xmm0
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140043a32
lea ecx, [rax - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ecx, ecx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x40]
mov dword [rsp + 0x28], ecx
mov edx, 0x3b2c22c
mov qword [rsp + 0x20], rcx
lea r9d, [rcx + 0x28]
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x61], ecx
mov word [rsp + 0x65], cx
mov byte [rsp + 0x67], cl
mov qword [rsp + 0x50], rax
mov eax, dword [0x1400df6f0]
mov byte [rsp + 0x60], cl
mov rcx, qword [0x1400df6f8]
mov qword [rsp + 0x58], 0x30
mov dword [rsp + 0x40], eax
call qword [0x1400df8a8]
movups xmm0, xmmword [rsp + 0x68]
mov rax, rbx
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rbx], xmm0
movups xmm0, xmmword [rsp + 0x88]
movups xmmword [rbx + 0x10], xmm1
movups xmmword [rbx + 0x20], xmm0
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret

Function at 0x140043ad0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rbx, rcx
xor edi, edi
mov rcx, qword [0x1400df7f8]
mov qword [rsp + 0x88], rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140043b02
lea ecx, [rdi - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x1400df6f8]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov r9d, 0x28
mov eax, dword [0x1400df6f0]
mov edx, 0x3b2c22c
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x61], edi
mov word [rsp + 0x65], di
mov byte [rsp + 0x67], dil
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], 8
mov byte [rsp + 0x60], dil
mov qword [rsp + 0x20], rdi
call qword [0x1400df8a8]
mov rax, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140043b90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rbx, rcx
xor edi, edi
mov rcx, qword [0x1400df7f8]
mov qword [rsp + 0x88], rdi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140043bc2
lea ecx, [rdi - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x1400df6f8]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov r9d, 0x28
mov eax, dword [0x1400df6f0]
mov edx, 0x3b2c22c
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x61], edi
mov word [rsp + 0x65], di
mov byte [rsp + 0x67], dil
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], 8
mov byte [rsp + 0x60], dil
mov qword [rsp + 0x20], rdi
call qword [0x1400df8a8]
mov r8, qword [rsp + 0x88]
movabs rax, 0xffffffff00000000
mov rcx, r8
movabs rdx, 0xffffff8000000000
and rcx, rax
movabs r9, 0xffffff7fffffffff
lea rax, [rcx + rdx]
test r9, rax
jne 0x140043c7d
add rdx, rcx
mov rcx, r8
and ecx, 0xffffff
add rcx, qword [0x1400df7c8]
test r9, rdx
cmove r8, rcx
mov rbx, qword [rsp + 0x80]
mov rax, r8
add rsp, 0x70
pop rdi
ret

Function at 0x140043c90
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rbx, rcx
xor edi, edi
mov rcx, qword [0x1400df7f8]
mov dword [rsp + 0x88], edi
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x140043cc1
lea ecx, [rdi - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [0x1400df6f8]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rdi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov r9d, 0x28
mov eax, dword [0x1400df6f0]
mov edx, 0x3b2c22c
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x61], edi
mov word [rsp + 0x65], di
mov byte [rsp + 0x67], dil
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x58], 4
mov byte [rsp + 0x60], dil
mov qword [rsp + 0x20], rdi
call qword [0x1400df8a8]
movsxd rcx, dword [rsp + 0x88]
movabs rax, 0xffffffff00000000
mov r8, rcx
movabs r9, 0xffffff8000000000
and r8, rax
movabs r10, 0xffffff7fffffffff
mov rdx, rcx
lea rax, [r8 + r9]
test r10, rax
jne 0x140043d82
mov rax, rdx
lea rcx, [r8 + r9]
and eax, 0xffffff
add rax, qword [0x1400df7c8]
test r10, rcx
cmove rdx, rax
mov rcx, rdx
mov rbx, qword [rsp + 0x80]
mov eax, ecx
add rsp, 0x70
pop rdi
ret
Function at 0x140044bc0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140044c21
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140044be0
mov ecx, dword [r9]
jmp 0x140044d08
cmp ecx, 0x4e0
jb 0x140044d08
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140044c40
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140044c90
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1400459dc
Capabilities:
Parse pe header

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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x140004440]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x140004450]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140007008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1400043b0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x140004430]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x140007028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x140007020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007020], rbp
call dbg.__main
mov rax, qword [0x1400043c0]
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call sym.main
mov ecx, dword [0x14000700c]
mov dword [0x140007010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140007008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x140004450]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x140004470]
mov rcx, qword [0x140004460]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140004490]
mov rcx, qword [0x140004480]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140001ae0
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 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 dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001b50
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007304]
mov rbx, rcx
test esi, esi
jle 0x140001c80
mov rax, qword [0x140007308]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001b9b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c25
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001b80
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001ca2
mov rax, qword [0x140007308]
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 [0x140007308]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001c87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001c1e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001c30
add dword [0x140007304], 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 [0x140007308]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c1e
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 0x140001ba8
mov rax, qword [0x140007308]
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, [0x140007360]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140007340]
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 rsi, rsi
je 0x140002283
test eax, eax
jne 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 [0x140004380]
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 [0x140004380]
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 [0x140004380]
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 [0x140004380]
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 rdx, rax
jne 0x1400026d8
xor eax, eax
ret

Function at 0x140002700
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004380]
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 [0x140004380]
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 rdx, r9
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 [0x140004380]
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 r10, rdx
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 0x140781058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407811df
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 0x140781089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14078106f
add dl, dl
jne 0x140781096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407810f6
xor eax, eax
add dl, dl
jne 0x1407810a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407811ad
add dl, dl
jne 0x1407810b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407810c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407810d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407810dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407810ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14078107e
mov eax, 1
add dl, dl
jne 0x140781106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140781113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407810fb
sub eax, ebx
mov ebx, 1
jne 0x14078114c
mov ecx, 1
add dl, dl
jne 0x14078112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14078113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140781123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140781168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140781175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14078115d
cmp eax, 0x7d00
jae 0x14078119b
cmp eax, 0x500
jb 0x140781196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078107e
cmp eax, 0x7f
ja 0x14078119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407811d2
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 0x14078107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1406f3b0c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rsi, rdx
mov r12, rcx
test r8d, r8d
je 0x1406f3cf5
mov r8d, dword [rdx + 0xc]
test r8d, r8d
je 0x1406f3cf5
xor edi, edi
mov r9, rdx
mov qword [rbp + 0xa8], rdi
mov eax, dword [r9 + 0x10]
mov r13d, dword [r9]
add rax, r12
mov ebx, r8d
add r13, r12
add rbx, r12
mov qword [rsp + 0x30], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r15, rax
test rax, rax
jne 0x1406f3b8a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.1406eb8ec
test r15, r15
je 0x1406f3c98
mov rax, qword [r13]
xor r14d, r14d
xor ebx, ebx
test rax, rax
je 0x1406f3c77
mov rsi, qword [rsp + 0x30]
mov rdi, r13
jns 0x1406f3bc7
movzx r13d, ax
jmp 0x1406f3bcf
lea r13, [r12 + 2]
add r13, rax
mov rdx, r13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
movsxd rcx, r14d
mov qword [rsi + rcx*8], rax
test rax, rax
jne 0x1406f3c56
cmp dword [0x1406fd4f0], 1
jne 0x1406f3c56
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.1406eb8ec
lea rcx, [rsp + 0x40]
call fcn.1406f3e5c
lea rdx, [0x1406ea898]
lea rcx, [rsp + 0x40]
call fcn.1406eb910
mov rdx, r13
lea rcx, [rsp + 0x40]
call fcn.1406eb910
lea rcx, [rsp + 0x40]
call fcn.1406eb938
mov rcx, qword [0x1406fd490]
lea r9, [rbp + 0xa0]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
inc rbx
inc r14d
mov rax, qword [rdi + rbx*8]
test rax, rax
jne 0x1406f3bbf
mov rdi, qword [rbp + 0xa8]
mov rsi, qword [rbp + 0x98]
inc rdi
mov qword [rbp + 0xa8], rdi
lea rax, [rdi + rdi*4]
lea r9, [rsi + rax*4]
mov r8d, dword [r9 + 0xc]
test r8d, r8d
jne 0x1406f3b55
jmp 0x1406f3cf5
lea rcx, [rsp + 0x40]
call fcn.1406f3e5c
lea rdx, [0x1406ea878]
lea rcx, [rsp + 0x40]
call fcn.1406eb910
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.1406eb910
cmp dword [0x1406fd4f0], 1
jne 0x1406f3cf5
lea rcx, [rsp + 0x40]
call fcn.1406eb938
mov rcx, qword [0x1406fd490]
lea r9, [rbp + 0xa0]
and qword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x190]
xor eax, eax
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1406f3d58
Capabilities:
Read file via mapping

Disassembly:
sub rsp, 0x458
call fcn.1406f3e14
mov r8d, 0x208
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1406fd238], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [0x1406fd238]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [0x1406fd240], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 4
mov rcx, qword [0x1406fd240]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd rcx, dword [0x1406fd4f8]
add rax, rcx
add rsp, 0x458
ret