joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005d490
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x14008e080]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x14005d525
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x14005d586
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140037db0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400706f0
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x14005d641
sub ecx, 1
je 0x14005d6b4
sub ecx, 1
je 0x14005d5f0
cmp ecx, 1
je 0x14005d5d3
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x14007bc20]
call fcn.140037db0
jmp 0x14005d6b4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14005d1c0
test eax, eax
je 0x14005d6b4
jmp 0x14005d55a
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x14005d6b4
sub rax, rsi
cmp rax, rbp
jae 0x14005d6b4
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.140037f30
jmp 0x14005d6b4
cmp r8d, 4
jle 0x14005d6b4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x14005d6b4
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.140037cd0
mov esi, eax
test eax, eax
je 0x14005d693
mov edx, 5
mov rcx, rbx
call fcn.14005e180
mov eax, esi
jmp 0x14005d55a
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1400465b0
mov rcx, r14
call fcn.140046890
test eax, eax
je 0x14005d558
mov edx, 5
mov rcx, rbx
call fcn.14005e180
mov eax, Ordinal_46
jmp 0x14005d55a
Function at 0x140070450
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140070492
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x1400704d9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x140070532
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x1400704f0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140070573
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x1400813aa]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1400813ab]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140070540
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140071504
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1408aa1df
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 0x1408aa089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408aa06f
add dl, dl
jne 0x1408aa096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408aa0f6
xor eax, eax
add dl, dl
jne 0x1408aa0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408aa1ad
add dl, dl
jne 0x1408aa0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408aa0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408aa0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408aa0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408aa0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408aa07e
mov eax, 1
add dl, dl
jne 0x1408aa106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408aa113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408aa0fb
sub eax, ebx
mov ebx, 1
jne 0x1408aa14c
mov ecx, 1
add dl, dl
jne 0x1408aa12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408aa13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408aa123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408aa07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408aa168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408aa175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408aa15d
cmp eax, 0x7d00
jae 0x1408aa19b
cmp eax, 0x500
jb 0x1408aa196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408aa07e
cmp eax, 0x7f
ja 0x1408aa19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408aa07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408aa1d2
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 0x1408aa07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001070
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x150
mov r11, r9
mov qword [rsp + 0x70], r11
mov qword [rsp + 0x38], r8
mov rax, rdx
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x1a8]
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x1a0]
mov qword [rsp + 0x58], r8
mov r9d, dword [rsp + 0x198]
mov dword [rsp + 0x8c], r9d
mov r9, qword [rsp + 0x190]
mov qword [rsp + 0x50], r9
mov r10, qword [rsp + 0x188]
mov qword [rsp + 0x48], r10
mov rsi, qword [rsp + 0x180]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0xb8], rcx
mov qword [rsp + 0xc0], rdx
mov qword [rsp + 0xc8], r11
mov qword [rsp + 0xd0], r10
mov qword [rsp + 0xd8], r9
mov qword [rsp + 0xe0], r8
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x128], 0
mov rax, qword [rsp + 0x128]
mov qword [rsp + 0x120], rax
mov r8, qword [rsp + 0x120]
call fcn.140004530
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0xf0], 0
mov qword [rsp + 0xf8], 0
mov qword [rsp + 0x108], 0
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x100], rax
mov r8, qword [rsp + 0x100]
call fcn.140004470
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x130], 0
mov qword [rsp + 0x138], 0
mov qword [rsp + 0x148], 0
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x140], rax
mov r8, qword [rsp + 0x140]
call fcn.1400044d0
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov r9, qword [rsp + 0x80]
mov r10d, dword [rsp + 0x8c]
mov dword [rsp + 0x20], r10d
mov qword [rsp + 0x28], rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0xa8]
call fcn.140004990
mov cl, al
xor cl, 0xff
lea rax, [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rdx, qword [rsp + 0xb0]
and cl, 1
call fcn.1400026a0
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x98], rax
mov r8, rdx
mov rdx, qword [rsp + 0x98]
call fcn.1400043f0
mov rax, qword [rsp + 0xa0]
add rsp, 0x150
pop rsi
ret
Function at 0x140004830
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], rcx
call qword [sym.imp.kernel32.dll_GetSystemInfo]
nop
add rsp, 0x28
ret

Function at 0x140004850
Capabilities:
Get memory capacity

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rdx
mov rax, rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rcx
call qword [sym.imp.kernel32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x30]
mov edx, eax
call fcn.140002700
mov rax, qword [rsp + 0x38]
add rsp, 0x48
ret

Function at 0x14000e6d0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14000e760
jmp 0x14000e74f
jae 0x14000e820
cmp r8, 0x201
jae 0x14000e760
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000e7b8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000e78f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140024fa0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000e7e1
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14000e888
mov r8d, r14d
cmp r15, r8
jne 0x14000e740
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000e8ab
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000e74f
jmp 0x14000e760
cmp rsi, r8
jb 0x14000e8c5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140010190
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x14000e871
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140004950
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14000e859
jmp 0x14000e871
lea rcx, str.internal_error:_entered_unreachable_code_rustc_cc66ad468955717ab92600c770da8c1601a4ff33library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140025a30
jmp 0x14000e8da
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140025f20
ud2
Function at 0x140015230
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140029b18]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140015274
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400152da
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140015311
test eax, eax
js 0x1400152eb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140015304
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x20], 0
lea rdx, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rsi, [rsp + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 1
mov rcx, rsi
call fcn.14000c150
lea rcx, [rsp + 0x58]
mov rdx, rsi
call fcn.14000ff30
mov rcx, rax
call fcn.14000c5c0
mov ecx, 7
int 0x29
ud2
Function at 0x140022ed0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x140022f4a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140022f40
cmp r11, r10
ja 0x140022fe3
cmp r10, rdx
ja 0x140022ff7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140022f42
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140022f20
jmp 0x140022fb7
ja 0x140022f4a
mov r11, r10
cmp rax, r8
jne 0x140022ef2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x140022fbb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140022f90
mov r8, r10
sub ecx, r9d
jns 0x140022fae
jmp 0x140022fbd
cmp r10, rdx
je 0x140022fc9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140022fbd
xor al, 1
cmp r8, rdx
jne 0x140022f70
jmp 0x140022fbd
xor eax, eax
jmp 0x140022fbd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14002be79]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140025a30
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140025f90
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140025f20
ud2

Function at 0x140024a0c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
test rax, rax
je 0x140024a56
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140024a56
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140024a56
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140024a56
cmp dword [rcx + 0x84], 0xe
jbe 0x140024a56
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140024a58
xor al, al
add rsp, 0x28
ret
Function at 0x141985058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1419851df
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 0x141985089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14198506f
add dl, dl
jne 0x141985096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419850f6
xor eax, eax
add dl, dl
jne 0x1419850a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1419851ad
add dl, dl
jne 0x1419850b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419850c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419850d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1419850dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1419850ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14198507e
mov eax, 1
add dl, dl
jne 0x141985106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141985113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1419850fb
sub eax, ebx
mov ebx, 1
jne 0x14198514c
mov ecx, 1
add dl, dl
jne 0x14198512e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14198513b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141985123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14198507e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141985168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141985175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14198515d
cmp eax, 0x7d00
jae 0x14198519b
cmp eax, 0x500
jb 0x141985196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14198507e
cmp eax, 0x7f
ja 0x14198519e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14198507e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1419851d2
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 0x14198507e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x7ff754aa3f80
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x7ff754aa3fdd
lea rbx, [0x7ff754bf0dd0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x7ff754aa3fc4
cmp r10, 2
jb 0x7ff754aa3fc4
cmp byte [r9], r8b
jne 0x7ff754aa3fc4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x7ff754aa3fa0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x7ff754aa401f
lea rbx, [0x7ff754bf0dd0]
cmp r8b, 0x23
jne 0x7ff754aa4003
cmp byte [r9], r8b
jne 0x7ff754aa4003
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x7ff754aa3ff0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x7ff754aa41e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x7ff754aa420f
mov r8d, 0x79c
lea rdx, [0x7ff754beb820]
lea rcx, [0x7ff754bebd38]
call qword [sym.imp.ucrtbase.dll__wassert]
test rdi, rdi
je 0x7ff754aa421b
mov qword [rdi], 0
lea rdx, [0x7ff754bf0618]
mov rcx, rbx
call fcn.7ff754aa4030
mov rbx, rax
test rax, rax
jne 0x7ff754aa423d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.ucrtbase.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x7ff754aa4314
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.ucrtbase.dll_fseek]
test eax, eax
jne 0x7ff754aa4314
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x7ff754aa4314
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_fseek]
test eax, eax
jne 0x7ff754aa4314
cmp rsi, 0xffffffffffffffff
je 0x7ff754aa4314
mov rax, qword [0x7ff754c1f830]
test rax, rax
je 0x7ff754aa42b1
inc dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.ucrtbase.dll_malloc]
mov rbp, rax
test rax, rax
je 0x7ff754aa4314
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.ucrtbase.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x7ff754aa4301
call qword [sym.imp.ucrtbase.dll_fclose]
mov rax, qword [0x7ff754c1f830]
test rax, rax
je 0x7ff754aa42f6
dec dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.ucrtbase.dll_free]
jmp 0x7ff754aa431d
call qword [sym.imp.ucrtbase.dll_fclose]
test rdi, rdi
je 0x7ff754aa430f
mov qword [rdi], rsi
mov rax, rbp
jmp 0x7ff754aa431f
mov rcx, rbx
call qword [sym.imp.ucrtbase.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff754aa7a60
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xe8], 0
mov rbx, rcx
movsxd rdi, edx
jg 0x7ff754aa7a97
mov r8d, 0x708
lea rdx, [0x7ff754beb560]
lea rcx, [0x7ff754bf0978]
call qword [sym.imp.ucrtbase.dll__wassert]
mov rax, qword [rbx + 0xf0]
lea rdx, [0x7ff754bf0dd0]
movsxd r8, dword [rbx + 0xe8]
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dil
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdx + rcx*4]
mov rcx, qword [0x7ff754c1f830]
not ebx
cmp dword [rcx + 0x3ee8], ebx
jne 0x7ff754aa7b16
mov r8, rdi
mov edx, 4
mov ecx, ebx
call fcn.7ff754abdf00
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff754aa7b30
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
cmp dword [rcx + 0xe8], 0
mov rdi, rdx
mov rbx, rcx
jg 0x7ff754aa7b63
mov r8d, 0x708
lea rdx, [0x7ff754beb560]
lea rcx, [0x7ff754bf0978]
call qword [sym.imp.ucrtbase.dll__wassert]
movss xmm2, dword [rbx + 0x108]
lea r9, [0x7ff754bf0dd0]
movss xmm0, dword [rdi]
movsxd rcx, dword [rbx + 0xe8]
subss xmm0, xmm2
mov rax, qword [rbx + 0xf0]
movss xmm3, dword [rbx + 0x10c]
movss xmm1, dword [rdi + 4]
subss xmm1, xmm3
mov r8d, dword [rax + rcx*4 - 4]
not r8d
movss dword [rsp + 0x20], xmm0
movzx eax, byte [rsp + 0x20]
movss xmm0, dword [rdi + 8]
movzx ecx, r8b
subss xmm0, xmm2
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x21]
movss dword [rsp + 0x24], xmm1
movss xmm1, dword [rdi + 0xc]
xor r8d, dword [r9 + rcx*4]
subss xmm1, xmm3
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x22]
movss dword [rsp + 0x28], xmm0
movss dword [rsp + 0x2c], xmm1
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x23]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x24]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x25]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x26]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x27]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x28]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x29]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x2a]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x2b]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x2c]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
mov rbx, qword [rsp + 0x40]
xor rcx, rax
movzx eax, byte [rsp + 0x2d]
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
movzx eax, byte [rsp + 0x2e]
xor r8d, dword [r9 + rcx*4]
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
xor r8d, dword [r9 + rcx*4]
movzx ecx, byte [rsp + 0x2f]
movzx edx, r8b
shr r8d, 8
xor rdx, rcx
xor r8d, dword [r9 + rdx*4]
not r8d
mov eax, r8d
add rsp, 0x30
pop rdi
ret