joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14005b490]
mov dword [rax], 1
mov rax, qword [0x14005b4a0]
mov dword [rax], 1
mov rax, qword [0x14005b4b0]
mov dword [rax], 1
mov rax, qword [0x14005b440]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140023f90
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.14003e9e0
sub rsp, rax
xor eax, eax
mov rdx, rcx
lea rbx, [rsp + 0x20]
xor ecx, ecx
mov word [rsp + 0x70], ax
mov word [rsp + 0x20], cx
lea rsi, [rsp + 0x70]
mov rcx, rbx
call fcn.140033f90
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140023fe9
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x14003d6c0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14004ee40
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14004ee40
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14003e392
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140064628]
test eax, eax
je 0x14003e42a
lea rax, [0x140064600]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140064630]
mov qword [rbp - 8], rax
jmp 0x14003e40e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14003e402
cmp qword [rbp - 0x10], 0
je 0x14003e402
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14003e3c8
lea rax, [0x140064600]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14003e42b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14003e530
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14003e558
mov eax, 0
jmp 0x14003e5a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14003e581
mov eax, 0
jmp 0x14003e5a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14003e5a1
mov eax, 0
jmp 0x14003e5a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14003e5ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14003e62a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14003e621
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14003e621
mov rax, qword [rbp - 8]
jmp 0x14003e63f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14003e5f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002790
Capabilities:
Create process on windows
Get token membership
Terminate process

Disassembly:
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rbp + 0x200], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
mov word [rbp - 0x1c], 0x500
lea rax, [rsp + 0x60]
mov dword [rbp - 0x18], ecx
mov qword [rsp + 0x50], rax
mov r9d, 0x220
mov dword [rsp + 0x48], ecx
mov dl, 2
mov dword [rsp + 0x40], ecx
lea r8d, [rcx + 0x20]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x60], rcx
mov dword [rbp - 0x20], ecx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000282e
mov rdx, qword [rsp + 0x60]
lea r8, [rbp - 0x18]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp - 0x18], 1
je 0x1400028ef
mov r8d, 0x104
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x70
xor eax, eax
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x2c], rax
mov dword [rbp - 0x24], eax
lea rax, str.runas
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rsp + 0x74], xmm0
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x10]
movups xmmword [rbp - 0x6c], xmm0
mov qword [rbp - 0x78], rax
movups xmmword [rbp - 0x5c], xmm0
mov dword [rbp - 0x60], 1
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1400028e6
mov qword [rsp + 0x320], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x4c7
je 0x1400028de
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.140002ce0
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140002ea0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rbx, qword [rsp + 0x320]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.140005d60
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400028f4
Function at 0x140006dc0
Capabilities:
Encode data using xor
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rbp + 0x20], rax
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x10], 0
lea rdx, [rsp + 0x60]
call fcn.140006380
mov r15, qword [rbp]
test al, al
je 0x140006f70
mov dword [rsp + 0x20], 0x3e20306d
mov word [rsp + 0x24], 0x33
mov byte [rsp + 0x26], 1
xor ecx, ecx
nop dword [rax + rax]
lea eax, [rcx + 0x43]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 5
jb 0x140006e30
mov byte [rsp + 0x26], 0
mov rbx, r15
mov rdi, qword [rbp + 8]
cmp r15, rdi
je 0x140006e75
mov r12, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140006e78
add rbx, 8
cmp rbx, rdi
jne 0x140006e51
xor r12d, r12d
mov dword [rsp + 0x28], 0x2721366d
mov dword [rsp + 0x2c], 0x1002933
xor ecx, ecx
nop word [rax + rax]
lea eax, [rcx + 0x43]
xor byte [rsp + rcx + 0x28], al
inc rcx
cmp rcx, 6
jb 0x140006e90
mov byte [rsp + 0x2f], 0
mov rbx, r15
cmp r15, rdi
je 0x140006ed4
nop dword [rax]
mov r14, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140006ed7
add rbx, 8
cmp rbx, rdi
jne 0x140006eb0
xor r14d, r14d
mov dword [rsp + 0x20], 0x3224206d
mov word [rsp + 0x24], 0x26
mov byte [rsp + 0x26], 1
xor ecx, ecx
nop dword [rax]
lea eax, [rcx + 0x43]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 5
jb 0x140006ef0
mov byte [rsp + 0x26], 0
mov rbx, r15
cmp r15, rdi
je 0x140006f34
nop dword [rax]
mov rsi, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140006f36
add rbx, 8
cmp rbx, rdi
jne 0x140006f10
xor esi, esi
test r12, r12
je 0x140006f70
cmp r12, r14
jae 0x140006f70
cmp r14, rsi
jae 0x140006f70
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, dword [r14 + 0xc]
mov rcx, qword [rsp + 0x58]
div ecx
test edx, edx
jne 0x140006f70
xor edx, edx
mov eax, dword [rsi + 0xc]
div ecx
test edx, edx
jne 0x140006f70
mov bl, 1
jmp 0x140006f72
xor bl, bl
test r15, r15
je 0x140006fb2
mov rdx, qword [rbp + 0x10]
sub rdx, r15
and rdx, 0xfffffffffffffff8
mov rax, r15
cmp rdx, 0x1000
jb 0x140006faa
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006faa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400076cc
movzx eax, bl
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140007420
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140006fe0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rbp + 0x20], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
lea rdx, [rsp + 0x30]
call fcn.140006380
mov r15, qword [rbp - 0x30]
test al, al
je 0x1400071a7
mov dword [rsp + 0x20], 0x3e20306d
mov word [rsp + 0x24], 0x33
mov byte [rsp + 0x26], 1
xor ecx, ecx
nop dword [rax + rax]
lea eax, [rcx + 0x43]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 5
jb 0x140007050
mov byte [rsp + 0x26], 0
mov rbx, r15
mov rdi, qword [rbp - 0x28]
cmp r15, rdi
je 0x140007095
mov r14, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x140007098
add rbx, 8
cmp rbx, rdi
jne 0x140007071
xor r14d, r14d
mov dword [rsp + 0x28], 0x2721366d
mov dword [rsp + 0x2c], 0x1002933
xor ecx, ecx
nop word [rax + rax]
lea eax, [rcx + 0x43]
xor byte [rsp + rcx + 0x28], al
inc rcx
cmp rcx, 6
jb 0x1400070b0
mov byte [rsp + 0x2f], 0
mov rbx, r15
cmp r15, rdi
je 0x1400070f4
nop dword [rax]
mov rsi, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
je 0x1400070f6
add rbx, 8
cmp rbx, rdi
jne 0x1400070d0
xor esi, esi
test r14, r14
je 0x1400071a7
cmp r14, rsi
jae 0x1400071a7
mov dword [rbp - 0x10], 1
mov dword [rbp - 0xc], 2
mov dword [rbp - 8], 4
mov dword [rbp - 4], 8
mov dword [rbp], 0x10
mov dword [rbp + 4], 0x20
mov dword [rbp + 8], 0x40
mov dword [rbp + 0xc], 0x80
mov dword [rbp + 0x10], pe_nt_image_headers64
mov dword [rbp + 0x14], 0x200
mov dword [rbp + 0x18], 0x400
mov dword [rbp + 0x1c], 0x80000000
lea rdi, [rbp - 0x10]
mov r13, qword [rsp + 0x48]
nop word [rax + rax]
mov r8d, dword [r14 + 8]
add r8d, 0x1000
mov r9d, dword [rdi]
mov rdx, qword [r13 + 0x18]
call fcn.140007210
mov r8d, dword [rsi + 8]
mov edx, dword [rsi + 0xc]
add rdx, qword [r13 + 0x18]
mov r9d, dword [rdi]
call fcn.140007210
add rdi, 4
lea rax, [rbp + 0x20]
cmp rdi, rax
jne 0x140007170
test r15, r15
je 0x1400071e7
mov rdx, qword [rbp - 0x20]
sub rdx, r15
and rdx, 0xfffffffffffffff8
mov rax, r15
cmp rdx, 0x1000
jb 0x1400071df
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400071df
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400076cc
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140007420
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x140007210
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14001a010]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x50], ebx
mov edi, r9d
mov qword [rsp + 0x58], r8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword gs:[0x58]
mov rsi, rax
mov eax, 4
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x14001ab50], ecx
jle 0x1400072da
lea rcx, [0x14001ab50]
call fcn.140007858
cmp dword [0x14001ab50], 0xffffffff
jne 0x1400072da
movdqa xmm0, xmmword [0x140017a90]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x3a39361f
mov dword [rsp + 0x44], 0x1002e24
nop dword [rax]
nop word [rax + rax]
lea eax, [rbx + 0x42]
xor byte [rsp + rbx + 0x30], al
inc rbx
cmp rbx, 0x16
jb 0x1400072a0
mov rcx, qword [0x14001ab30]
lea rdx, [rsp + 0x30]
mov byte [rsp + 0x47], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14001ab50]
mov qword [0x14001ab40], rax
call fcn.1400077f8
mov rax, qword [0x14001ab40]
test rax, rax
je 0x140007304
lea rcx, [rsp + 0x50]
mov r9d, edi
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x58]
mov rcx, rsi
lea rdx, [rsp + 0x48]
call rax
jmp 0x14000730f
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140007420
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret

Function at 0x14000813c
Capabilities:
Parse pe header

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

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

Disassembly:
call fcn.1405431df
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 0x140543089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14054306f
add dl, dl
jne 0x140543096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405430f6
xor eax, eax
add dl, dl
jne 0x1405430a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1405431ad
add dl, dl
jne 0x1405430b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405430c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405430d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1405430dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1405430ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14054307e
mov eax, 1
add dl, dl
jne 0x140543106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140543113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1405430fb
sub eax, ebx
mov ebx, 1
jne 0x14054314c
mov ecx, 1
add dl, dl
jne 0x14054312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14054313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140543123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14054307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140543168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140543175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14054315d
cmp eax, 0x7d00
jae 0x14054319b
cmp eax, 0x500
jb 0x140543196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14054307e
cmp eax, 0x7f
ja 0x14054319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14054307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1405431d2
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 0x14054307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400039f4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140008750
mov rbx, qword [rsp + 0x40]
mov rdi, 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__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140008778
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000877a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400087d3
test ecx, ecx
jle 0x1400087b3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400087d3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400087d3
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 + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140008800
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 0x140008831
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.0x140008848
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 qword [rsp + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140008870
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008872
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400088a4
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
mov rbx, rdi
je 0x140008941
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400088e2
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 rdi, 0xfff
jbe 0x140008921
nop dword [rax + 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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140008962
cmp rdi, rax
ja 0x1400088f0
test rbx, rbx
je 0x140008941
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x140008944
jae 0x140188559
xor byte [rdx], dh