joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b420
Capabilities:
Delete file
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov r15, r8
mov rsi, rdx
mov rbp, rcx
xor edi, edi
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
mov rcx, r15
call qword [sym.imp.wxbase313u_vc_x64_custom.dll_public:_wchar_t_const____ptr64___cdecl_wxString::wc_str_void_const___ptr64]
mov r8, rbx
lea rdx, [0x1400a5f90]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfreopen]
mov r14, rax
test rax, rax
je 0x14000b5a7
mov rcx, rsi
call fcn.14000c360
lea ecx, [rdi + 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rdi
mov ebx, edi
test eax, eax
je 0x14000b4fd
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x14000b5a1
mov rcx, rsi
cmp rsi, 0x1000
jb 0x14000b4d7
call fcn.140001e0b
jmp 0x14000b4dc
call fcn.140001127
mov rdi, rax
mov qword [rsp + 0x28], rax
lea rbx, [rax + rsi]
mov qword [rsp + 0x38], rbx
mov rdx, rbx
mov rcx, rax
call fcn.140001a55
mov qword [rsp + 0x30], rbx
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov r9, r14
mov r8, rsi
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, r15
call qword [sym.imp.wxbase313u_vc_x64_custom.dll_public:_wchar_t_const____ptr64___cdecl_wxString::wc_str_void_const___ptr64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
sub rbx, rdi
mov r8, rbx
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.wxbase313u_vc_x64_custom.dll_public:_static_class_wxString___cdecl_wxString::From8BitData_char_const____ptr64__unsigned_long_long_unsigned___int64__]
nop
test rdi, rdi
je 0x14000b57e
cmp rbx, 0x1000
jb 0x14000b573
add rbx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x14000b59a
mov rdi, rcx
mov rdx, rbx
mov rcx, rdi
call fcn.140002356
mov rax, rbp
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002563
int3
lea rdx, str.Failed_to_print_minidump:_cannot_open_temp_file
lea rcx, [rsp + 0x28]
call fcn.14000243c
lea rdx, [0x1400ddb78]
lea rcx, [rsp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x14004b010
Capabilities:
Write file on windows

Disassembly:
jmp 0x14004b010
push rbx
sub rsp, 0x60
mov rax, qword [0x14011bbd8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004b0e3
cmp byte [rcx + 0x71], 0
je 0x14004b0e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004b0df
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 0x14004b0a4
sub eax, 1
je 0x14004b0a8
cmp eax, 2
jne 0x14004b0df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001b36
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14004b0d6
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 0x14004b0df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004b08c
xor al, al
jmp 0x14004b08c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140001b36
add rsp, 0x60
pop rbx
ret
Function at 0x14004e3f0
Capabilities:
Write file on windows

Disassembly:
jmp 0x14004e3f0
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14011bbd8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004e41d
xor eax, eax
jmp 0x14004e57a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x14004e448
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x14004e448
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], dil
mov eax, edi
jmp 0x14004e57a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14004e56d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14004e48b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14004e4b6
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14004e572
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x14004e525
sub eax, 1
je 0x14004e525
cmp eax, 2
jne 0x14004e56d
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14004e572
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14004e553
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14004e56d
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14004e572
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001b36
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14004f7e0
Capabilities:
Read file on windows

Disassembly:
jmp 0x14004f7e0
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 0x14004f811
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 0x14004f82f
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 0x14004f84b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14004f84d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14004f889
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 0x14004f91e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14004f8c4
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 0x14004f8fe
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 0x14004f91e
cmp rbx, rax
ja 0x14004f8d0
test rbx, rbx
je 0x14004f91e
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
Function at 0x14004f990
Capabilities:
Write file on windows

Disassembly:
jmp 0x14004f990
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14004f9b8
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 0x14004f9de
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14004f9e0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14004fa39
test ecx, ecx
jle 0x14004fa19
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 0x14004fa39
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14004fa39
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
Function at 0x14008b140
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c9cc
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c9c4
cmp dword [rcx + 0x3c], edx
jl 0x14000c9c4
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c9c4
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000c9cc
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x140009008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140009008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140009008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140009008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140030050
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x1400300ca
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 0x1400300c0
cmp r11, r10
ja 0x140030161
cmp r10, rdx
ja 0x140030173
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x1400300c2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400300a0
jmp 0x140030137
ja 0x1400300ca
mov r11, r10
cmp rax, r8
jne 0x140030072
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14003013b
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 0x140030110
mov r8, r10
sub ecx, r9d
jns 0x14003012e
jmp 0x14003013d
cmp r10, rdx
je 0x140030149
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14003013d
xor al, 1
cmp r8, rdx
jne 0x1400300f0
jmp 0x14003013d
xor eax, eax
jmp 0x14003013d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x140038dcb]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140032790
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140032c60
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140032be0
int3

Function at 0x140031728
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x439a0d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x439a1d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x439a05
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x439a35
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x439a22
sub eax, 3
jb 0x439a4f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x439a86
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x439a76
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x439a74
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x439a63
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.004399c2
jmp 0x439a0d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x2a00
mov dl, 2
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x439ad2
cmp rsi, rcx
jae 0x439ada
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x439ab9
cmp al, 0x8f
ja 0x439ab9
cmp byte [rsi - 2], 0xf
je 0x439abf
sub al, 0xe8
cmp al, 1
ja 0x439aa3
cmp rsi, rcx
jae 0x439ada
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x439aa9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x439ada
lodsb al, byte [rsi]
jmp 0x439ab9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x37000]
mov eax, dword [rdi]
or eax, eax
je 0x439b37
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x64c64]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x439ae7
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x439b31
mov qword [rbx], rax
add rbx, 8
jmp 0x439b07
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.00439bba], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.00439bba
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x439baa
sub rsp, 0xffffffffffffff80
jmp 0x4014e0
Function at 0x180318058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1803181df
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 0x180318089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18031806f
add dl, dl
jne 0x180318096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1803180f6
xor eax, eax
add dl, dl
jne 0x1803180a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1803181ad
add dl, dl
jne 0x1803180b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1803180c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1803180d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1803180dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1803180ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18031807e
mov eax, 1
add dl, dl
jne 0x180318106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180318113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1803180fb
sub eax, ebx
mov ebx, 1
jne 0x18031814c
mov ecx, 1
add dl, dl
jne 0x18031812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18031813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180318123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18031807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180318168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180318175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18031815d
cmp eax, 0x7d00
jae 0x18031819b
cmp eax, 0x500
jb 0x180318196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18031807e
cmp eax, 0x7f
ja 0x18031819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18031807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1803181d2
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 0x18031807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x416b80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x416d0b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004356e0
xorps xmm15, xmm15
mov r14, qword [0x0065ebf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x416be5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x416bf4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x416c13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x416c23
cmp rbx, 0x1000
jae 0x416beb
jmp 0x416c8d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x416c35
xor edx, edx
jmp 0x416c84
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.004356e0
xorps xmm15, xmm15
mov r14, qword [0x0065ebf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x416c19
jmp 0x416c08
call fcn.0046ae60
xorps xmm15, xmm15
mov r14, qword [0x0065ebf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00439bc0
lea rax, [0x00508470]
mov ebx, 0x18
nop dword [rax]
call fcn.0043a440
mov rax, qword [rsp + 0x38]
call fcn.0043a180
lea rax, [0x005089e2]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.0043a440
mov rax, qword [rsp + 0x30]
call fcn.0043a180
call fcn.00439e00
call fcn.00439c20
lea rax, [0x0050ab4b]
mov ebx, 0x21
call fcn.00438120
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00467700
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00416b80
Function at 0x416d40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x416f66
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00435760
xorps xmm15, xmm15
mov r14, qword [0x0065ebf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x416db3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x416dc2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x416de5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x416df5
cmp rbx, 0x1000
jae 0x416db9
nop
jmp 0x416e78
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x416e0d
xor esi, esi
jmp 0x416e6a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call fcn.00435760
xorps xmm15, xmm15
mov r14, qword [0x0065ebf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x416deb
jmp 0x416dd6
call fcn.0046ae60
xorps xmm15, xmm15
mov r14, qword [0x0065ebf0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x416f00
nop dword [rax + rax]
call fcn.00439bc0
lea rax, [0x005089fb]
mov ebx, 0x19
call fcn.0043a440
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call fcn.0043a180
lea rax, [0x005089e2]
mov ebx, 0x19
call fcn.0043a440
mov eax, dword [rsp + 0x34]
call fcn.0043a180
nop
call fcn.00439e00
call fcn.00439c20
lea rax, [0x0050517a]
mov ebx, 0xd
call fcn.00438120
nop dword [rax + rax]
cmp eax, 0x5af
je 0x416ea0
call fcn.00439bc0
lea rax, [0x005089fb]
mov ebx, 0x19
call fcn.0043a440
mov rax, qword [rsp + 0x38]
call fcn.0043a180
lea rax, [0x005089e2]
mov ebx, 0x19
call fcn.0043a440
mov eax, dword [rsp + 0x34]
nop dword [rax]
call fcn.0043a180
call fcn.00439e00
call fcn.00439c20
lea rax, [0x0050a410]
mov ebx, 0x1f
nop dword [rax + rax]
call fcn.00438120
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00467700
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp fcn.00416d40