joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002940
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 0x140002968
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 0x14000298e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002990
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400029e9
test ecx, ecx
jle 0x1400029c9
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 0x1400029e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400029e9
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 0x140002a10
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002a32
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002a48
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002a64
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002a66
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002aa2
mov qword [rsp + 0x20], 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 + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002b3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002add
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 0x140002b1e
nop word [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]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140002b3e
cmp rbx, rax
ja 0x140002af0
test rbx, rbx
je 0x140002b3e
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
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140002fa0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002fcd
xor eax, eax
jmp 0x140003139
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003007
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003007
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003139
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000312c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000304a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
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 0x140003075
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 0x140003131
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 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 0x1400030e4
sub eax, 1
je 0x1400030e4
cmp eax, 2
jne 0x14000312c
movsx ecx, byte [rsp + 0x50]
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 0x140003131
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003112
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 0x14000312c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003131
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140004050
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400033b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003483
cmp byte [rcx + 0x71], 0
je 0x140003483
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000347f
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 0x140003444
sub eax, 1
je 0x140003448
cmp eax, 2
jne 0x14000347f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004050
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003476
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 0x14000347f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000342c
xor al, al
jmp 0x14000342c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140004050
add rsp, 0x60
pop rbx
ret

Function at 0x140004a04
Capabilities:
Parse pe header

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

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

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rax, rdx
mov rsi, qword [rbp + 0x70]
mov rdi, qword [rbp + 0x68]
mov rdx, qword [rbp + 0x60]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140005e90
cmp r11, r10
ja 0x140005f07
cmp r10, rdx
ja 0x140005f19
add r11, r9
xor r15d, r15d
nop dword [rax + rax]
cmp r14, r15
je 0x140005e92
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140005e70
jmp 0x140005ef4
ja 0x140005e9a
mov r11, r10
cmp rax, r8
jne 0x140005e3e
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140005ed0
mov rdi, r8
sub ecx, edx
jns 0x140005eeb
jmp 0x140005ef6
cmp r8, rsi
je 0x140005f28
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140005ef6
xor al, 1
cmp rdi, rsi
jne 0x140005eb0
jmp 0x140005ef6
xor eax, eax
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001c700
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001c570
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001c800
int3

Function at 0x14000a320
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000a345
cmp rax, rcx
je 0x14000a34b
cmp rdx, 4
jae 0x14000a34f
xor eax, eax
xor r8d, r8d
jmp 0x14000a3e0
pop rbp
jmp fcn.1400036f0
xor eax, eax
pop rbp
ret
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14001e410]
movdqa xmm3, xmmword [0x14001e420]
pxor xmm1, xmm1
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000a370
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000a3f7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000a3e0
pop rbp
ret
Function at 0x140013080
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
movzx r9d, byte [rdx + 0x38]
mov dh, 0x4a
cmp byte [rdi], cl
mov dh, 0x42
cmp al, byte [rax + r8*8 - 0x3f6af0bf]
Function at 0x1400158b0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140028260]
mov ecx, 0x10
call fcn.140015c00
test rax, rax
je 0x1400159a1
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140015a60]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140015993
mov rcx, qword [rbx]
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 0x18], rax
call qword [rax]
mov rax, qword [rbp - 0x18]
cmp qword [rax + 8], 0
mov rsi, qword [rbp - 0x20]
je 0x14001596c
cmp qword [rax + 0x10], 0x11
jae 0x140015955
mov r8, qword [rbp - 0x10]
jmp 0x14001595d
mov r8, qword [rbp - 0x10]
mov r8, qword [r8 - 8]
mov rcx, qword [0x1400281d0]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
mov rcx, qword [0x1400281d0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.14001c3f0
ud2

Function at 0x14001bea4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x110
mov rax, qword [0x14003c090]
xor rax, rsp
mov qword [rsp + 0x100], rax
xor r10d, r10d
lea rdx, [rsp]
mov r11d, r10d
mov eax, r10d
mov rbx, r9
mov rsi, r8
mov rbp, rcx
nop word [rax + rax]
mov byte [rdx], al
lea rdx, [rdx + 1]
inc eax
cmp eax, 0x100
jl 0x1400011d0
mov r8d, r10d
lea r9, [rsp]
nop word [rax + rax]
movzx edi, byte [r9]
mov eax, 0xaaaaaaab
mul r8d
mov eax, r8d
shr edx, 5
lea ecx, [rdx + rdx*2]
shl ecx, 4
sub eax, ecx
cdqe
movzx ecx, byte [rax + rbp]
add r11d, ecx
add r11d, edi
and r11d, 0x800000ff
jge 0x14000122c
dec r11d
or r11d, 0xffffff00
inc r11d
movsxd rax, r11d
lea rcx, [rsp]
add rcx, rax
inc r8d
movzx eax, byte [rcx]
mov byte [r9], al
inc r9
mov byte [rcx], dil
cmp r8d, 0x100
jl 0x1400011f0
movsxd r11, dword [rsp + 0x150]
mov edx, r10d
test r11, r11
je 0x1400012cd
sub rsi, rbx
inc r10d
and r10d, 0x800000ff
jge 0x14000127a
dec r10d
or r10d, 0xffffff00
inc r10d
movsxd rax, r10d
lea r9, [rsp]
add r9, rax
movzx r8d, byte [r9]
add edx, r8d
and edx, 0x800000ff
jge 0x14000129d
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp]
add rcx, rax
movzx eax, byte [rcx]
mov byte [r9], al
mov byte [rcx], r8b
movzx eax, byte [r9]
add r8, rax
movzx eax, r8b
movzx ecx, byte [rsp + rax]
xor cl, byte [rsi + rbx]
mov byte [rbx], cl
inc rbx
sub r11, 1
jne 0x140001261
xor eax, eax
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.140005aa0
mov rbx, qword [rsp + 0x138]
add rsp, 0x110
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000ba24
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14000b8b7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b8b7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000b8b7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000b8b7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000b8b7
cmp dword [rcx + 0x84], 0xe
jbe 0x14000b8b7
cmp dword [rcx + 0xf8], 0
je 0x14000b8b7
mov ecx, ebx
call fcn.14000b958
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14000b748
cmp dword [rbp + 0x20], 0
je 0x14000b904
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000b90c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000b850
Function at 0x14000405c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
sub rsp, 0x58
cmp byte [rcx + 0x79], 0
je 0x14000406f
xor esi, esi
jmp 0x140004238
mov rdi, rcx
mov rsi, qword [rcx + 0x48]
test byte [rcx], 1
je 0x1400040aa
lea rdx, [rdi + 8]
mov r9, qword [rdi + 0x50]
cmp qword [rdi + 0x38], 0xffffffffffffffff
mov rax, qword [rdi + 0x58]
mov rcx, qword [rdi + 0x60]
je 0x14000419f
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 0
jmp 0x1400041ae
cmp byte [rdi + 0x1a], 0
jne 0x1400041c6
mov rax, qword [rdi + 0x50]
mov rcx, qword [rdi + 8]
mov dl, byte [rdi + 0x18]
mov r8d, edx
xor r8b, 1
mov byte [rdi + 0x18], r8b
test rcx, rcx
je 0x1400040e5
cmp rax, rcx
jbe 0x1400040df
cmp byte [rsi + rcx], 0xbf
jg 0x1400040e5
jmp 0x140004242
jne 0x140004242
cmp rcx, rax
je 0x1400041bd
movzx r9d, byte [rsi + rcx]
test r9b, r9b
js 0x1400040fd
mov r8d, r9d
jmp 0x140004159
mov r8d, r9d
and r8d, 0x1f
movzx r11d, byte [rsi + rcx + 1]
and r11d, 0x3f
cmp r9b, 0xdf
jbe 0x140004149
movzx r10d, byte [rsi + rcx + 2]
shl r11d, 6
and r10d, 0x3f
or r10d, r11d
cmp r9b, 0xf0
jb 0x140004152
movzx r9d, byte [rsi + rcx + 3]
and r8d, 7
shl r8d, 0x12
shl r10d, 6
and r9d, 0x3f
or r9d, r10d
or r8d, r9d
jmp 0x140004159
shl r8d, 6
or r8d, r11d
jmp 0x140004159
shl r8d, 0xc
or r8d, r10d
test dl, 1
jne 0x1400041ca
cmp r8d, 0x110000
je 0x1400041c2
mov edx, 1
cmp r8d, 0x80
jb 0x140004193
mov edx, 2
cmp r8d, 0x800
jb 0x140004193
cmp r8d, 0x10000
mov edx, 4
sbb rdx, 0
add rcx, rdx
mov qword [rdi + 8], rcx
jmp 0x1400040bc
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x40]
mov r8, rsi
call fcn.1400042a1
jmp 0x1400041e1
test dl, 1
jne 0x1400041cd
mov byte [rdi + 0x1a], 1
xor eax, eax
jmp 0x1400041dc
mov rax, rcx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov eax, 1
mov qword [rsp + 0x40], rax
test byte [rsp + 0x40], 1
je 0x140004202
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x68]
sub rdx, rcx
add rsi, rcx
mov qword [rdi + 0x68], rax
jmp 0x140004238
cmp byte [rdi + 0x79], 0
jne 0x140004068
mov byte [rdi + 0x79], 1
cmp byte [rdi + 0x78], 1
jne 0x140004220
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
jmp 0x140004231
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
cmp rdx, rsi
je 0x140004068
sub rdx, rsi
add rsi, qword [rdi + 0x48]
mov rax, rsi
add rsp, 0x58
pop rdi
pop rsi
ret
ud2
Function at 0x140006966
Capabilities:
Write file on windows

Disassembly:
mov r9, rcx
mov ecx, 0xfffffff4
jmp fcn.1400069bb
Function at 0x14000852c
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1418db1df
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 0x1418db089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418db06f
add dl, dl
jne 0x1418db096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418db0f6
xor eax, eax
add dl, dl
jne 0x1418db0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1418db1ad
add dl, dl
jne 0x1418db0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418db0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418db0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418db0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1418db0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1418db07e
mov eax, 1
add dl, dl
jne 0x1418db106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1418db113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418db0fb
sub eax, ebx
mov ebx, 1
jne 0x1418db14c
mov ecx, 1
add dl, dl
jne 0x1418db12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1418db13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418db123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418db07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1418db168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1418db175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1418db15d
cmp eax, 0x7d00
jae 0x1418db19b
cmp eax, 0x500
jb 0x1418db196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418db07e
cmp eax, 0x7f
ja 0x1418db19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1418db07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1418db1d2
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 0x1418db07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400041b0
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 0x14000420d
lea rbx, [0x14016c380]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400041f4
cmp r10, 2
jb 0x1400041f4
cmp byte [r9], r8b
jne 0x1400041f4
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 0x1400041d0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000424f
lea rbx, [0x14016c380]
cmp r8b, 0x23
jne 0x140004233
cmp byte [r9], r8b
jne 0x140004233
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 0x140004220
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140004410
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 0x14000443f
mov r8d, 0x7d7
lea rdx, str.C:UsersedsonMusicDARCY_XImgui_Personalizadoimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x14000444b
mov qword [rdi], 0
lea rdx, [0x14016bb88]
mov rcx, rbx
call fcn.140004260
mov rbx, rax
test rax, rax
jne 0x14000446d
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.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140004546
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140004546
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140004546
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140004546
cmp rsi, 0xffffffffffffffff
je 0x140004546
mov rax, qword [0x14037f2b0]
test rax, rax
je 0x1400044e3
inc dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140004546
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x140004533
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14037f2b0]
test rax, rax
je 0x140004528
dec dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000454f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140004541
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140004551
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.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