joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180056140
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x20
mov r10, rdx
mov r9, rcx
lea rbx, [rcx + 0x42e8]
cmp byte [rcx + 0x149c], 0
jne 0x1800561a8
mov word [rcx + 0x149d], 1
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rsp + 0x30], rax
mov byte [rcx + 0x14a0], al
movzx eax, byte [rsp + 0x31]
mov byte [rcx + 0x14a1], al
movzx eax, byte [rsp + 0x32]
mov byte [rcx + 0x14a2], al
movzx eax, byte [rsp + 0x33]
mov byte [rcx + 0x14a3], al
mov byte [rcx + 0x14a4], 0
mov byte [rcx + 0x149c], 1
mov dword [rsp + 0x40], r8d
mov eax, dword [rcx + 0x14a0]
mov dword [rsp + 0x30], eax
movzx eax, byte [rcx + 0x149d]
test al, al
je 0x1800561e4
xor ecx, ecx
mov edx, eax
nop word [rax + rax]
mov eax, dword [rsp + rcx + 0x30]
not eax
xor dword [rsp + rcx + 0x40], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x1800561d0
movzx eax, byte [r9 + 0x149e]
mov ecx, 4
sub rcx, rax
cmp rcx, 4
jae 0x180056214
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x30]
not al
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 4
jb 0x180056200
movzx eax, byte [r9 + 0x14a4]
inc al
and eax, 3
mov ecx, eax
mov eax, dword [rsp + 0x40]
mov dword [r9 + rcx*4 + 0x14a8], eax
mov byte [r9 + 0x14a4], cl
mov dword [rbx + 0x38], r8d
mov r9, qword [rbx + 0x18]
movabs rdx, 0xcbf29ce484222325
movabs r11, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movsx rcx, byte [r9]
lea r9, [r9 + 1]
xor rdx, rcx
imul rdx, r11
test cl, cl
jne 0x180056260
movabs rax, 0x2374c594f5e76f06
cmp rdx, rax
jne 0x18005629a
lea eax, [r8 - 0x1d]
cmp eax, 7
ja 0x18005630f
mov byte [rbx + 0x9c], cl
jmp 0x180056342
movabs rax, 0xf9bdf861cccd5fd1
cmp rdx, rax
jne 0x1800562be
lea eax, [r8 - 0x1a]
cmp eax, 6
ja 0x18005630f
mov byte [rbx + 0x9c], 0
jmp 0x180056342
movabs rax, 0xb4d052affec8dc8e
cmp rdx, rax
jne 0x1800562d3
cmp r8d, 0x10
jmp 0x1800562e6
movabs rax, 0x311a797a90e58f21
cmp rdx, rax
jne 0x1800562f1
cmp r8d, 6
jne 0x18005630f
mov byte [rbx + 0x9c], 0
jmp 0x180056342
movabs rcx, 0x2f2959b508f215d2
movabs rax, 0xecc3c7c77aebb7ea
cmp rdx, rcx
je 0x180056330
cmp rdx, rax
je 0x180056330
cmp byte [rbx + 0x9c], 0xff
je 0x180056342
movabs rax, 0xeb5bc0df5355fba6
cmp rdx, rax
je 0x180056342
mov byte [rbx + 0x9c], 0xff
jmp 0x180056342
cmp r8d, 7
jne 0x18005635e
cmp rdx, rcx
je 0x180056369
mov rax, qword [rbx]
mov qword [rbx + 8], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add rax, 0x1a4ef0
mov dl, 1
mov rcx, rbx
call rax
nop
add rsp, 0x20
pop rbx
ret
cmp r8d, 6
jne 0x18005633b
cmp rdx, rax
jne 0x18005633b
mov rax, qword [rbx]
mov qword [rbx + 8], rax
mov rdx, r10
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.18004a720
Function at 0x140c5c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140c5c1df
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 0x140c5c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5c06f
add dl, dl
jne 0x140c5c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5c0f6
xor eax, eax
add dl, dl
jne 0x140c5c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c5c1ad
add dl, dl
jne 0x140c5c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c5c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c5c07e
mov eax, 1
add dl, dl
jne 0x140c5c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c5c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5c0fb
sub eax, ebx
mov ebx, 1
jne 0x140c5c14c
mov ecx, 1
add dl, dl
jne 0x140c5c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c5c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c5c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c5c15d
cmp eax, 0x7d00
jae 0x140c5c19b
cmp eax, 0x500
jb 0x140c5c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5c07e
cmp eax, 0x7f
ja 0x140c5c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c5c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c5c1d2
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 0x140c5c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140028a5c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001bef8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001bef8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028bac
cmp rax, 0xffffffffffffffff
je 0x140028bac
xor edi, edi
test rbp, rbp
jle 0x140028b57
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb84
mov rbx, rax
test rax, rax
jne 0x140028ae4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028b4d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400197a0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cbe0
cmp eax, 0xffffffff
je 0x140028b2d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028af4
mov edx, r15d
mov ecx, r14d
call fcn.1400197a0
jmp 0x140028b4d
cmp byte [rsi + 0x38], dil
je 0x140028b44
cmp dword [rsi + 0x34], 5
jne 0x140028b44
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028b4d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a0e4
jmp 0x140028bc0
jns 0x140028bc0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001bef8
cmp rax, 0xffffffffffffffff
jne 0x140028b78
cmp byte [rsi + 0x30], dil
je 0x140028bc0
mov edi, dword [rsi + 0x2c]
jmp 0x140028bc0
mov ecx, r14d
call fcn.1400182d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028bc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028bc0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028bb9
mov eax, dword [rsi + 0x2c]
jmp 0x140028bbe
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001bef8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029cb0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029cd8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029cd8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140ab44ce
Capabilities:
Encode data using xor

Disassembly:
push rbx
pushfq
movabs rbx, 0x252733f614190b6f
xor bl, bh
mov rbx, qword [rsp + 8]
mov qword [rsp + 8], 0xfffffffff4f53e80
jl 0x140ab44d0
push r14
movabs r14, 0x19e2013e33d27791
mov r14, qword [rsp]
push qword [rsp + 8]
popfq
lea rsp, [rsp + 0x10]
call fcn.141424564
invalid
Function at 0x1400097d0
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x140009870
jmp 0x14000985f
jae 0x14000992f
cmp r8, 0x201
jae 0x140009870
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x1400098c7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000989f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14002b6c0
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x1400098f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000999b
mov r8d, r13d
cmp r12, r8
jne 0x140009850
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400099cf
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000985f
jmp 0x140009870
cmp r14, r8
jb 0x1400099e9
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000ba50
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x140009984
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400029d0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14000996f
jmp 0x140009984
lea rcx, [0x14002e650]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14002c500
jmp 0x1400099fe
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.14002c850
ud2
Function at 0x14000f260
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.14002ab40
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r15, rcx
lea r12, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xffc]
lea rbx, [0x1400148e0]
lea r14, [rbp + 0xfb0]
mov rsi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r15
mov r8d, 0x1000
mov rcx, r15
mov rdx, r12
call case.0x14000dec5.124
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x14000f450
test r15, r15
je 0x14000f41c
cmp r15, 0x1000
ja 0x14000f472
xor r12d, r12d
nop word cs:[rax + rax]
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0x1008]
mov r9, r14
call rsi
test eax, eax
je 0x14000f3f0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14000f380
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x14000f410
add r12, rax
cmp r12, r15
je 0x14000f3e0
jbe 0x14000f330
jmp 0x14000f45e
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x14000f2de
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.140003dc0
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.140003dc0
jmp 0x14000f41c
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.14002c860
jmp 0x14000f486
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.14002c850
ud2
Function at 0x140012d40
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1400305e8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140012d78
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140012dcf
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x140012ddc
xor edx, edx
xor eax, eax
jmp 0x140012e06
cmp eax, 0x103
je 0x140012e10
test eax, eax
js 0x140012def
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140012e06
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14000b820
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140004430
mov ecx, 7
int 0x29
ud2

Function at 0x140012e60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1400305e8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140012e98
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140012ef6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140012f23
test eax, eax
js 0x140012f02
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140012f19
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.14000b820
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140004430
mov ecx, 7
int 0x29
ud2
Function at 0x140014dd0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140014f40
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x140014e0d
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140014f05
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140014f23
sub rax, rdx
add rdx, qword [rbx + 8]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rbp + 4], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rbp + 4]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140014e6c
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x140014eaf
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x140014eb3
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x40], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x140014eb7
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x140014ee1
lea rax, [rbp - 8]
jmp 0x140014ec3
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140014ee7
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.140003dc0
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x140014ef2
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x140014e55
mov ecx, 1
jmp 0x140014e5f
mov r8d, 0x10
mov rcx, rbx
call fcn.14002b810
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x140014e1a
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14002b810
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140014e1a
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.14002b630
int3
Function at 0x140019340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.14001b5e0
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
movabs r14, 0x8000000000000000
cmp rcx, r14
jne 0x14001937e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], r14
jmp 0x1400193a4
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
Function at 0x14001ae30
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 dword [rbp - 8], 0xfffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x14003b141]
mov ecx, 0x10
adc byte [rax], al
add byte [rax], al
mov edx, 8
call fcn.1400029c0
invalid
dec dword [rax - 0x7b]
ror byte [rdi], 0x84
invalid
add byte [rax], al
invalid
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
invalid
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, case.0x14000af7c.481
xor edi, edi
xor ecx, ecx
leave
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x14001af01
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14001aed8
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], rdi
mov ecx, 8
mov edx, 0x10
add al, ch
cmp dl, byte [rcx + rax]
add byte [rdi], cl
invalid
Function at 0x1400296a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14002972a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
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 0x140029720
cmp r11, r10
ja 0x1400297a6
cmp r10, rdx
ja 0x1400297b8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140029722
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140029700
jmp 0x140029787
ja 0x14002972a
mov r11, r10
cmp rax, r8
jne 0x1400296c7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002978b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x140029760
mov r8, r10
sub ecx, r9d
jns 0x14002977e
jmp 0x14002978d
cmp r10, rdx
je 0x14002979a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002978d
xor al, 1
cmp r8, rdx
jne 0x140029740
jmp 0x14002978d
xor eax, eax
jmp 0x14002978d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14002c400
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002c860
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002c850
int3

Function at 0x14002b074
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1406d2237
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 0x1406d20e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d20c7
add dl, dl
jne 0x1406d20ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d214e
xor eax, eax
add dl, dl
jne 0x1406d20fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406d2205
add dl, dl
jne 0x1406d210e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d211b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d2128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d2135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406d2142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406d20d6
mov eax, 1
add dl, dl
jne 0x1406d215e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406d216b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d2153
sub eax, ebx
mov ebx, 1
jne 0x1406d21a4
mov ecx, 1
add dl, dl
jne 0x1406d2186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406d2193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d217b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d20d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406d21c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406d21cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406d21b5
cmp eax, 0x7d00
jae 0x1406d21f3
cmp eax, 0x500
jb 0x1406d21ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d20d6
cmp eax, 0x7f
ja 0x1406d21f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406d20d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406d222a
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 0x1406d20d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20