joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f3880
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x1400f38be
test rax, rax
je 0x1400f397b
mov rcx, qword [r14]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov rbx, rax
sar rbx, 3
lea rcx, [rbx + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x1400f39a7
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r15, rax
sar r15, 2
cmp r15, rcx
cmovbe r15, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r15, rdx
test r15, r15
jne 0x1400f396e
xor eax, eax
shl rbx, 3
add rbx, rax
je 0x1400f397b
lea r15, [rax + r15*8]
mov rax, qword [r14]
mov qword [rbx], rax
lea r14, [rbx + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
sub r8, rdx
sub rbx, r8
mov rcx, rbx
call fcn.14008e3c0
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
mov qword [rsi], rbx
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r15
test rdx, rdx
je 0x1400f38b2
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.1400f3ee0
mov rcx, rdi
mov rdx, r15
call fcn.1400f4460
jmp 0x1400f390d
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400bf450
call fcn.1400a3d40
int3

Function at 0x1400f7f90
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400f7fcc
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400f7fd6
add rdi, rbx
sub rsi, rbx
jne 0x1400f7faa
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400a3d40
int3

Function at 0x1400fb540
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140127038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
cmp rdi, rsi
jae 0x1400fb5c8
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1400fb5c1
mov rdx, rcx
add rdi, rdx
cmp al, 1
jne 0x1400fb582
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14008c940
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x221e8e0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x221e8ea
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x221e913
pop rbp
sub rbp, 0x33
sub rbp, 0x1e1e8e0
sub rsp, 0x20
jmp 0x221e932
mov rax, 0x1e1e8e0
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffde4d7cc4
xor byte [rax], dl
inc rax
dec rcx
jne 0x221e951
jmp 0x221e968
mov word [rbp + 0x2d], cs
clc
invalid
Function at 0x140005760
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
mov eax, 0x1030
call fcn.14000a130
sub rsp, rax
mov rax, qword [0x14003d018]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov rbx, rdx
mov rdi, r8
lea rdx, [0x14002a570]
call fcn.140002de0
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call fcn.140005ba0
xor edi, edi
mov rbx, rax
test rsi, rsi
je 0x140005853
mov rcx, rsi
test rax, rax
je 0x14000585b
call fcn.14000e6a4
test eax, eax
jne 0x14000583f
nop word [rax + rax]
mov r9, rsi
lea rcx, [rsp + 0x20]
mov edx, 1
mov r8d, 0x1000
call fcn.14000e95c
test rax, rax
jne 0x1400057fe
mov rcx, rsi
call fcn.14000e6d0
test eax, eax
je 0x140005824
mov rcx, rsi
jmp 0x140005835
mov r9, rbx
lea rcx, [rsp + 0x20]
mov r8, rax
mov edx, 1
call fcn.14000f09c
test rax, rax
je 0x140005832
mov rcx, rbx
call fcn.14000e6d0
test eax, eax
jne 0x140005832
mov rcx, rsi
call fcn.14000e6a4
test eax, eax
je 0x1400057d0
jmp 0x14000583f
mov rcx, rbx
call fcn.1400174ec
mov edi, 0xffffffff
mov rcx, rsi
call fcn.14000e60c
mov rcx, rbx
call fcn.14000e60c
mov eax, edi
jmp 0x140005865
test rbx, rbx
je 0x140005860
mov rcx, rbx
call fcn.14000e60c
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14000a100
add rsp, 0x1030
pop rdi
pop rsi
pop rbx
ret

Function at 0x140006360
Capabilities:
Read file on windows

Disassembly:
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rcx
mov rsi, r8
mov ecx, 0x2000
mov r14, rdx
xor r13d, r13d
call fcn.14001414c
mov r15, rax
test rax, rax
je 0x140006473
xor edx, edx
lea r8d, [r13 + 2]
mov rcx, r12
call fcn.14000ec94
test eax, eax
js 0x140006473
mov rcx, r12
mov qword [rsp + 0x50], rbx
call fcn.140017a9c
mov rbx, rax
cmp rax, rsi
jb 0x14000646e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], rdi
nop dword [rax]
cmp rbx, 0x2000
lea rbp, [rbx - 0x2000]
cmovb rbp, r13
sub rbx, rbp
cmp rbx, rsi
jb 0x140006464
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call fcn.14000ec94
test eax, eax
js 0x140006464
mov r9, r12
mov r8, rbx
mov edx, 1
mov rcx, r15
call fcn.14000e95c
cmp rax, rbx
jne 0x140006464
sub rbx, rsi
add rbx, 1
je 0x14000644b
lea rdi, [r15 - 1]
add rdi, rbx
nop dword [rax]
nop dword [rax + rax]
mov r8, rsi
mov rdx, r14
mov rcx, rdi
call fcn.14000b780
test eax, eax
je 0x14000645d
dec rdi
sub rbx, 1
jne 0x140006430
lea rbx, [rsi - 1]
add rbx, rbp
test rbp, rbp
jne 0x1400063d0
jmp 0x140006464
lea r13, [rbp - 1]
add r13, rbx
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x50]
mov rcx, r15
call fcn.140014138
mov rax, r13
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
Function at 0x14000ab80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x14002a168]
test rax, rax
je 0x14000abca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000abca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000abca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000abca
cmp dword [rcx + 0x84], 0xe
jbe 0x14000abca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000abcc
xor al, al
add rsp, 0x28
ret

Function at 0x140018b24
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018920
Function at 0x14000720c
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.14000719c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x140007248
cmp qword [rbx + 0x18], rdi
je 0x14000724f
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000723f
jmp 0x140007269
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x1400205b8]
call fcn.140011c68
lea rcx, [0x140021170]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add dword [rbx + 0x6459d439], edi
sbb byte [rcx], bh
invalid
sub byte [rdi + 0x11], cl
movabs dword [0xf8fc641b27af51b3], eax
jns 0x14003f58a
sbb edi, dword [rdi + 0x56]
push 0xc
invalid
sub ebp, dword [rbp + 0x73b547e3]
mov ah, 0xd7
xchg esi, eax
jae 0x14003f5b8
jae 0x14003f5c9
and eax, 0xbb74a054
adc edx, dword [rsi - 0x3f8e0cd8]
cmc
add eax, 0x806fedf3
xor ch, byte [rdx + rsi*4 + 0x39]
in eax, dx
wait
invalid
shl byte [rsi - 0x51ccf77c], cl
invalid
clc
test eax, 0x551cbc05
mov ebx, 0xce72ebd3
invalid
cld
add eax, 0x4090c6d
xchg ebx, eax
jg 0x14003f670
invalid
invalid
rcl byte [rdx + 0x4ad3f24f]
cmpsb byte [rsi], byte [rdi]
sar dword [rsi + 0x79], 1
jmp 0x12078340d
add byte [rax], al
add al, 0xa5
invalid
jb 0x14003f713
sbb ch, byte [rax + 0x40]
invalid
push 0xffffffffcd250640
ja 0x14003f6af
mov edi, 0x222127f4
sbb bl, bl
or dword [rcx], eax
movabs eax, dword [0x36d8e07008cea088]
cwde
cmp al, 0x27
push rcx
adc al, 0x68
movsb byte [rdi], byte [rsi]
je 0x14003f671
and al, 0x80
xor byte [rdi + 0x1d], ch
xchg edi, eax
invalid
invalid

Function at 0x140007284
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x14000734a
lea rcx, [0x140021170]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400205b8]
jmp 0x14000730e
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000730b
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1400205b8]
mov rdx, rsi
call fcn.140011c68
jmp 0x14000730e
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400072db
mov rdx, qword [0x14001f120]
lea rcx, [0x1400205b8]
mov rdi, rdx
inc rdx
mov qword [0x14001f120], rdx
lea edx, [rbx + 0x20]
call fcn.140011cb0
lea rcx, [0x140021170]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404600]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00404610]
mov dword [rax], 1
mov rax, qword [0x00404620]
mov dword [rax], 1
mov rax, qword [0x004045f0]
mov dword [rax], 1
mov rax, qword [0x004044a0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010d0
mov rax, qword [0x004045e0]
mov dword [0x00407020], ecx
mov eax, dword [rax]
test eax, eax
je 0x4010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00404580]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x00404560]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404450]
cmp dword [rax], 1
je 0x401108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401120
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401a20
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x401a90
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x004070c4]
mov r12, rcx
test ebx, ebx
jle 0x401bc0
mov rax, qword [0x004070c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x401adc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401b63
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x401ac0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x401be2
mov rax, qword [0x004070c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004070c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401bc7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401b5c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x401b70
add dword [0x004070c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x004070c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401b5c
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 ebx, ebx
jmp 0x401ae7
mov rax, qword [0x004070c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x4020b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00407100]
test rbx, rbx
je 0x402104
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x4020fb
test r12, r12
je 0x4020fb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4020e0
lea rcx, [0x00407120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402320
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x402338
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x402340
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x402350
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x40239c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x402393
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x40239e
add rax, 0x28
cmp rax, r9
jne 0x402380
xor eax, eax
ret

Function at 0x4023a0
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x402430
mov rdx, qword [0x004044a0]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x40241e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x40241e
cmp word [rax + 0x18], 0x20b
jne 0x40241e
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402430
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x402409
add r12, 0x28
cmp r12, rsi
je 0x402430
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x402400
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

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

Disassembly:
mov rdx, qword [0x004044a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x402460
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x402468
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402460
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x4024b5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4024ac
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402460
add rax, 0x28
cmp rax, r9
jne 0x402498
xor eax, eax
ret

Function at 0x4024c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004044a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4024e0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4024e8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x4024e0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x402500
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x004044a0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x402520
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x402528
ret
cmp word [rdx + 0x18], 0x20b
jne 0x402520
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x402568
sub edx, 1
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x40255f
test rcx, rcx
je 0x402520
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x402550
xor eax, eax
ret

Function at 0x402570
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x004044a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402590
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x402598
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x4025b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x004044a0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4025d0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x4025d8
mov eax, r8d
ret
cmp word [rdx + 0x18], 0x20b
jne 0x4025d0
sub rcx, rax
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x4025d0
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x402614
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402628
add rax, 0x28
cmp r9, rax
jne 0x402600
xor r8d, r8d
mov eax, r8d
ret
mov r8d, dword [rax + 0x24]
not r8d
shr r8d, 0x1f
mov eax, r8d
ret

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

Disassembly:
mov r11, qword [0x004044a0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x402662
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x402670
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402662
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x402662
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
movzx r8d, word [r8 + 6]
test r8d, r8d
je 0x402662
sub r8d, 1
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop dword [rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x4026bd
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x4026d0
add rdx, 0x28
cmp r10, rdx
jne 0x4026a8
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x4026df
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x4026ef
mov edx, dword [rax + 0xc]
test edx, edx
je 0x4026c6
test ecx, ecx
jg 0x4026d8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x10330b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.01033237
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 0x10330e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x10330c7
add dl, dl
jne 0x10330ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x103314e
xor eax, eax
add dl, dl
jne 0x10330fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1033205
add dl, dl
jne 0x103310e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103311b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1033128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1033135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1033142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x10330d6
mov eax, 1
add dl, dl
jne 0x103315e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x103316b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1033153
sub eax, ebx
mov ebx, 1
jne 0x10331a4
mov ecx, 1
add dl, dl
jne 0x1033186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1033193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x103317b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x10330d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10331c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10331cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x10331b5
cmp eax, 0x7d00
jae 0x10331f3
cmp eax, 0x500
jb 0x10331ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x10330d6
cmp eax, 0x7f
ja 0x10331f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x10330d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x103322a
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 0x10330d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1406ac058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1406ac1df
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 0x1406ac089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ac06f
add dl, dl
jne 0x1406ac096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ac0f6
xor eax, eax
add dl, dl
jne 0x1406ac0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406ac1ad
add dl, dl
jne 0x1406ac0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ac0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ac0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ac0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406ac0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406ac07e
mov eax, 1
add dl, dl
jne 0x1406ac106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406ac113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ac0fb
sub eax, ebx
mov ebx, 1
jne 0x1406ac14c
mov ecx, 1
add dl, dl
jne 0x1406ac12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406ac13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ac123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ac07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406ac168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406ac175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406ac15d
cmp eax, 0x7d00
jae 0x1406ac19b
cmp eax, 0x500
jb 0x1406ac196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ac07e
cmp eax, 0x7f
ja 0x1406ac19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406ac07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406ac1d2
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 0x1406ac07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20