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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140001f53
cmp byte [rcx + 0x71], 0
je 0x140001f53
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140001f4f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140001f14
sub eax, 1
je 0x140001f18
cmp eax, 2
jne 0x140001f4f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000a250
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140001f46
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140001f4f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140001efc
xor al, al
jmp 0x140001efc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000a250
add rsp, 0x60
pop rbx
ret
Function at 0x1400021b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140011040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x1400021dd
xor eax, eax
jmp 0x140002346
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14000221d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14000221d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14000233e
cmp qword [rdi + 0x80], 0
je 0x140002339
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x140002257
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x140002282
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000233e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400022f1
sub eax, 1
je 0x1400022f1
cmp eax, 2
jne 0x140002339
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14000233e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14000231f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140002339
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14000233e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000a250
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002d20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140002d42
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002d58
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140002da2
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x140002e11
mov rcx, rbp
call fcn.140001f90
cmp rbx, 0xfff
jbe 0x140002df1
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140002e2a
cmp rbx, rax
ja 0x140002dc0
test rdi, rdi
je 0x140002e11
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x140002e14
Function at 0x140002e30
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140002e58
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x140002ecc
test rax, rax
jle 0x140002eac
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x140002ecc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002ecc
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x140004c10
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov rsi, rcx
lea r9, [rsp + 0x68]
xor r14d, r14d
mov ecx, 0xb
xor r8d, r8d
mov dword [rsp + 0x68], r14d
xor edx, edx
mov edi, r14d
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140004c8c
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x68]
xor ecx, ecx
mov r9d, 4
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsp + 0x68]
lea r9, [rsp + 0x68]
mov rdx, rax
mov ecx, 0xb
mov rdi, rax
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
je 0x140004c42
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rbp
test eax, eax
js 0x140004d63
mov ebx, r14d
cmp dword [rdi], ebx
jbe 0x140004d63
nop dword [rax]
mov eax, ebx
xorps xmm0, xmm0
imul rcx, rax, 0x128
movups xmmword [rsp + 0x20], xmm0
movzx edx, word [rcx + rdi + 0x2e]
lea rbp, [rcx + rdi]
add rdx, 0x30
mov qword [rsp + 0x30], r14
add rdx, rcx
mov qword [rsp + 0x38], r14
add rdx, rdi
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r14b
jne 0x140004ce5
lea rcx, [rsp + 0x20]
call fcn.140001310
cmp qword [rsi + 0x18], 0xf
mov rdx, rsi
jbe 0x140004d05
mov rdx, qword [rsi]
cmp qword [rsp + 0x38], 0xf
lea rcx, [rsp + 0x20]
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140004d89
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140004d59
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d54
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004dd2
call fcn.140009efc
inc ebx
cmp ebx, dword [rdi]
jb 0x140004cb0
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
mov rbx, qword [rbp + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140004dde
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004dd9
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004dd9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009efc
mov rax, rbx
jmp 0x140004d76
Function at 0x140004fe0
Capabilities:
Get uefi variable

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [rbp + 0x40]
xor edi, edi
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x30]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x30]
mov qword [rbp - 0x30], rdx
lea rdx, str.SecureBoot
mov qword [rbp - 0x28], r8
mov qword [rbp - 0x20], r9
mov qword [rbp + 0x30], rdi
mov rbx, qword gs:[0x30]
mov qword [rbx + 0x5b8], rcx
lea rcx, [rbp - 0x40]
mov qword [rbx + 0x870], rax
mov qword [rbx + 0x858], 0xdaed
mov qword [rbx + 0x860], 0x8461028
call sub.ntdll.dll_RtlInitUnicodeString
lea rax, [rbp + 0x20]
mov byte [rbp + 0x40], dil
lea r9, [rbp + 0x28]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x40]
mov dword [rbp + 0x28], 1
lea rdx, [rbp - 0x50]
mov dword [rbp + 0x20], edi
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x50], 0x8be4df61
mov dword [rbp - 0x4c], 0x11d293ca
mov dword [rbp - 0x48], 0xe0000daa
mov dword [rbp - 0x44], 0x8c2b0398
call sub.ntdll.dll_NtQuerySystemEnvironmentValueEx
mov rax, qword [rbx + 0x5b8]
mov qword [0x1400114c0], rax
mov qword [rbx + 0x870], rdi
mov qword [rbx + 0x5b8], rdi
mov rax, qword [rbp + 0x30]
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret
Function at 0x140009958
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140009992
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140009997
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400099e0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000cc00]
cmp byte [rcx + rax], 0
je 0x1400099e0
dec r8
sub rdx, 1
jne 0x1400099c6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000a998
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000a9e2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000a9e2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000a9e2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000a9e2
cmp dword [rcx + 0x84], 0xe
jbe 0x14000a9e2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000a9e4
xor al, al
add rsp, 0x28
ret
Function at 0x140001070
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r15
sub rsp, 0x20
movsxd r15, dword [0x1400040bc]
lea rbp, [0x140004080]
add r15, rbp
cmp dword [r15 + 0xb0], 0
je 0x14000128a
cmp dword [r15 + 0xb4], 0
je 0x14000128a
movsxd rdx, dword [r15 + 0x50]
mov r12d, 0x3000
mov r8d, r12d
mov r9d, 0x40
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
je 0x14000128a
movzx ecx, word [r15 + 6]
mov rdx, rbp
mov qword [rsp + 0x40], rbx
movzx ebx, word [r15 + 0x14]
add rbx, 0x18
mov qword [rsp + 0x48], rsi
lea r8, [rcx + rcx*4]
mov qword [rsp + 0x50], r14
shl r8, 3
add rbx, r15
sub r8, rbp
mov rcx, rax
add r8, rbx
call sub.VCRUNTIME140.dll_memcpy
xor esi, esi
cmp si, word [r15 + 6]
jae 0x140001143
add rbx, 0x14
nop dword [rax + rax]
mov edx, dword [rbx]
mov ecx, dword [rbx - 8]
add rdx, rbp
mov r8d, dword [rbx - 4]
add rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [r15 + 6]
lea rbx, [rbx + 0x28]
inc esi
cmp esi, eax
jl 0x140001120
mov ebp, dword [r15 + 0x90]
add rbp, rdi
nop dword [rax]
mov eax, dword [rbp + 0xc]
test eax, eax
jne 0x14000115c
cmp dword [rbp + 4], eax
je 0x1400011d0
lea rcx, [rdi + rax]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
je 0x140001275
mov ebx, dword [rbp]
mov ecx, dword [rbp + 0x10]
test ebx, ebx
cmove ebx, ecx
add rbx, rdi
lea rsi, [rcx + rdi]
cmp rbx, rdi
je 0x140001275
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400011ca
mov rax, rcx
test rcx, rcx
jns 0x1400011a2
movzx edx, ax
jmp 0x1400011a9
lea rdx, [rdi + 2]
add rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
add rbx, 8
mov qword [rsi], rcx
add rsi, 8
mov rax, qword [rbx]
mov rcx, rax
test rax, rax
jne 0x140001198
add rbp, 0x14
jmp 0x140001150
mov r9d, dword [r15 + 0xb0]
mov r11d, edi
mov ebx, dword [r15 + 0xb4]
add r9, rdi
sub r11d, dword [r15 + 0x30]
add rbx, r9
cmp r9, rbx
jae 0x140001250
mov esi, 0xf000
mov eax, dword [r9]
test eax, eax
je 0x140001250
mov edx, dword [r9 + 4]
lea r8, [r9 + 8]
mov r10d, eax
sub rdx, 8
mov eax, edi
shr rdx, 1
add r10, rax
test edx, edx
je 0x140001244
nop word [rax + rax]
movzx ecx, word [r8]
dec edx
movzx eax, cx
and ax, si
cmp ax, r12w
jne 0x14000123c
and ecx, 0xfff
add dword [rcx + r10], r11d
add r8, 2
test edx, edx
jne 0x140001220
mov eax, dword [r9 + 4]
add r9, rax
cmp r9, rbx
jb 0x1400011f5
mov eax, dword [r15 + 0x28]
add rax, rdi
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
xor edx, edx
mov r8d, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140001257
mov rbp, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
Function at 0x140001ba0
Capabilities:
Parse pe header

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

Disassembly:
call fcn.101a3a1df
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 0x101a3a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x101a3a06f
add dl, dl
jne 0x101a3a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x101a3a0f6
xor eax, eax
add dl, dl
jne 0x101a3a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x101a3a1ad
add dl, dl
jne 0x101a3a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x101a3a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x101a3a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x101a3a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x101a3a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x101a3a07e
mov eax, 1
add dl, dl
jne 0x101a3a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x101a3a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x101a3a0fb
sub eax, ebx
mov ebx, 1
jne 0x101a3a14c
mov ecx, 1
add dl, dl
jne 0x101a3a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x101a3a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x101a3a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x101a3a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x101a3a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x101a3a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x101a3a15d
cmp eax, 0x7d00
jae 0x101a3a19b
cmp eax, 0x500
jb 0x101a3a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x101a3a07e
cmp eax, 0x7f
ja 0x101a3a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x101a3a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x101a3a1d2
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 0x101a3a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180002160
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x180002181
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1800021ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1800021b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x180002209
test ecx, ecx
jle 0x1800021e9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x180002209
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x180002209
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
cwde
adc byte [rdi - 0x31], ch
xor ecx, dword [rax - 0x77]
add byte [r8 - 0x75], r9b
add byte [r8 - 0x77], r9b
test dword [rax + 0x48000002], esi
mov dword [rbp], esi
mov rax, qword [rbp]
mov qword [rbp + 0x2b8], rax
mov qword [rbp], r12
mov rax, qword [rbp]
mov qword [rbp + 0x17e0], rax
mov qword [rbp], rdi
mov rax, qword [rbp]
mov qword [rbp + 0x17e8], rax
mov qword [rbp], r14
mov rax, qword [rbp]
mov qword [rbp + 0x17f0], rax
Function at 0x180002230
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x180002261
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x180002278
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18000229b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18000229d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800022d9
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18000236e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x180002314
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18000234e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18000236e
cmp rbx, rax
ja 0x180002320
test rbx, rbx
je 0x18000236e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
invalid