joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018b10
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 0x140018bb0
jmp 0x140018b9f
jae 0x140018c6f
cmp r8, 0x201
jae 0x140018bb0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140018c07
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x140018bdf
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14003aa00
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 0x140018c30
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140018cdb
mov r8d, r13d
cmp r12, r8
jne 0x140018b90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140018d0f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x140018b9f
jmp 0x140018bb0
cmp r14, r8
jb 0x140018d29
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14001b240
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 0x140018cc4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400011e0
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 0x140018caf
jmp 0x140018cc4
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14003b960
jmp 0x140018d3e
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.14003bd10
ud2
Function at 0x14001da70
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rcx, qword [rcx]
mov eax, 0xffffffff
cmp r8, rax
cmovae r8, rax
mov dword [rbp - 4], 0
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
lea rax, [rbp - 4]
mov qword [rbp - 0x18], rax
lea rax, [0x140024ef0]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x14001db00
mov rsi, qword [sym.imp.KERNEL32.dll_SleepEx]
nop dword [rax]
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp - 4], 0
je 0x14001dad0
mov ecx, dword [rbp]
mov edx, dword [rbp + 4]
mov r8, rcx
shl r8, 0x20
or r8, 2
xor eax, eax
test ecx, ecx
setne al
cmovne rdx, r8
jmp 0x14001db15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x68
pop rsi
pop rbp
ret
Function at 0x14001ee70
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.140039e40
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, [0x140024ef0]
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 fcn.140024a60
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x14001f060
test r15, r15
je 0x14001f02c
cmp r15, 0x1000
ja 0x14001f082
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 0x14001f000
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14001ef90
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 0x14001f020
add r12, rax
cmp r12, r15
je 0x14001eff0
jbe 0x14001ef40
jmp 0x14001f06e
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x14001eeee
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.140013160
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.140013160
jmp 0x14001f02c
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.14003bd80
jmp 0x14001f096
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.14003bd10
ud2
Function at 0x140023440
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14003f9e0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140023478
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 0x1400234cf
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1400234dc
xor edx, edx
xor eax, eax
jmp 0x140023506
cmp eax, 0x103
je 0x140023510
test eax, eax
js 0x1400234ef
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140023506
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.14001af30
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140013810
mov ecx, 7
int 0x29
ud2

Function at 0x140023560
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x14003f9e0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140023598
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 0x1400235f6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140023623
test eax, eax
js 0x140023602
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140023619
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.14001af30
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140013810
mov ecx, 7
int 0x29
ud2
Function at 0x140024140
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x158
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xc0], xmm6
mov qword [rbp + 0xb8], 0xfffffffffffffffe
mov qword [rbp + 0x70], rcx
mov byte [rbp + 0xb5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x64], ecx
mov r12d, 8
mov sil, 1
xorps xmm6, xmm6
lea rbx, [rbp + 0x20]
mov r13, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor edi, edi
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]

Function at 0x1400253e0
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 0x140025550
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x14002541d
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140025515
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140025533
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 0x14002547c
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x1400254bf
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1400254c3
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 0x1400254c7
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x1400254f1
lea rax, [rbp - 8]
jmp 0x1400254d3
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400254f7
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.140013160
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x140025502
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 0x140025465
mov ecx, 1
jmp 0x14002546f
mov r8d, 0x10
mov rcx, rbx
call fcn.14003ab50
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14002542a
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14003ab50
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14002542a
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.14003a9b0
int3
Function at 0x140029da0
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]
insb byte [rdi], dx
and al, 0x60
Function at 0x140038940
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 0x1400389ca
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 0x1400389c0
cmp r10, r11
jb 0x140038a46
cmp r10, rdx
ja 0x140038a58
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x1400389c2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x1400389a0
jmp 0x140038a27
ja 0x1400389ca
mov r11, r10
cmp rax, r8
jne 0x140038967
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x140038a2b
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 0x140038a00
mov r8, r10
sub ecx, r9d
jns 0x140038a1e
jmp 0x140038a2d
cmp r10, rdx
je 0x140038a3a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140038a2d
xor al, 1
cmp r8, rdx
jne 0x1400389e0
jmp 0x140038a2d
xor eax, eax
jmp 0x140038a2d
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.14003b840
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14003bd80
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14003bd10
int3

Function at 0x14003a39c
Capabilities:
Parse pe header

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

Disassembly:
call fcn.140d501df
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 0x140d50089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d5006f
add dl, dl
jne 0x140d50096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d500f6
xor eax, eax
add dl, dl
jne 0x140d500a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d501ad
add dl, dl
jne 0x140d500b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d500c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d500d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d500dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d500ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d5007e
mov eax, 1
add dl, dl
jne 0x140d50106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d50113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d500fb
sub eax, ebx
mov ebx, 1
jne 0x140d5014c
mov ecx, 1
add dl, dl
jne 0x140d5012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d5013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d50123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d50168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d50175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d5015d
cmp eax, 0x7d00
jae 0x140d5019b
cmp eax, 0x500
jb 0x140d50196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5007e
cmp eax, 0x7f
ja 0x140d5019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d5007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d501d2
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 0x140d5007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x644a0d6a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.644a0d6a1df
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 0x644a0d6a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x644a0d6a06f
add dl, dl
jne 0x644a0d6a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x644a0d6a0f6
xor eax, eax
add dl, dl
jne 0x644a0d6a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x644a0d6a1ad
add dl, dl
jne 0x644a0d6a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x644a0d6a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x644a0d6a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x644a0d6a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x644a0d6a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x644a0d6a07e
mov eax, 1
add dl, dl
jne 0x644a0d6a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x644a0d6a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x644a0d6a0fb
sub eax, ebx
mov ebx, 1
jne 0x644a0d6a14c
mov ecx, 1
add dl, dl
jne 0x644a0d6a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x644a0d6a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x644a0d6a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x644a0d6a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x644a0d6a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x644a0d6a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x644a0d6a15d
cmp eax, 0x7d00
jae 0x644a0d6a19b
cmp eax, 0x500
jb 0x644a0d6a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x644a0d6a07e
cmp eax, 0x7f
ja 0x644a0d6a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x644a0d6a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x644a0d6a1d2
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 0x644a0d6a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000a378
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14000a1e8

Function at 0x14000e7d4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1400157f8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.14000ae50
xor ebx, ebx
cmp qword [0x14003ff48], rbx
mov rdi, rax
jne 0x14000e8e7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000e9be
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000e9be
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14003ff48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14003ff50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x14003ff58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14003ff68], rax
test rax, rax
je 0x14000e8de
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x14003ff60], rax
jmp 0x14000e8ee
mov rax, qword [0x14003ff60]
jmp 0x14000e8f5
mov rax, qword [0x14003ff60]
mov r11, qword [0x14003ff68]
cmp rax, rdi
je 0x14000e95c
cmp r11, rdi
je 0x14000e95c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14003ff68]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14000e95c
test rax, rax
je 0x14000e95c
call rsi
test rax, rax
je 0x14000e956
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000e956
test byte [rsp + 0x40], 1
jne 0x14000e95c
bts ebp, 0x15
jmp 0x14000e99c
mov rcx, qword [0x14003ff50]
cmp rcx, rdi
je 0x14000e99c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000e99c
call rax
mov rbx, rax
test rax, rax
je 0x14000e99c
mov rcx, qword [0x14003ff58]
cmp rcx, rdi
je 0x14000e99c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000e99c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14003ff48]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000e9be
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000e9c0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000b7e0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000edf7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1400157f8]
jne 0x14000b7fa
rol rcx, 0x10
test cx, 0xffff
jne 0x14000b7f6
repz ret
ror rcx, 0x10
jmp 0x14000ed50
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140040010]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140040108]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000edd5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140040010]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000edf7
mov rax, qword [rsp + 0x88]
mov qword [0x140040108], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400400a8], rax
mov rax, qword [0x140040108]
mov qword [0x14003ff80], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140040090], rax
mov dword [0x14003ff70], 0xc0000409
mov dword [0x14003ff74], 1
mov rax, qword [0x1400157f8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140015800]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140040008], eax
mov ecx, 1
call fcn.14000c030
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140012468]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140040008], 0
jne 0x14000ee7e
mov ecx, 1
call fcn.14000c030
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x180008084
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jle 0x1800080f7
sub rsp, 0x28
mov rax, qword [0x1800a5f88]
xor rax, rsp
mov qword [rsp + 0x10], rax
movdqa xmm0, xmmword [0x1800502d0]
mov r10, rcx
mov r9d, dword [0x18006080c]
xor r8d, r8d
movdqu xmmword [rsp], xmm0
mov r11d, edx
nop dword [rax]
nop dword [rax + rax]
movsx edx, byte [r10]
lea r10, [r10 + 1]
mov rax, r8
inc r8
and eax, 3
mov ecx, dword [rsp + rax*4]
shl edx, cl
xor r9d, edx
mov dword [0x18006080c], r9d
sub r11, 1
jne 0x1800080c0
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.18004a7e0
add rsp, 0x28
ret
Function at 0x18001fb70
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rax, r8
xor ecx, ecx
mov rdi, rdx
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov dword [rbx + 0x50], 0x67452301
mov dword [rbx + 0x54], 0xefcdab89
mov dword [rbx + 0x58], 0x98badcfe
mov dword [rbx + 0x5c], 0x10325476
cmp qword [rax + 0x18], 0x10
mov r8, qword [r8 + 0x10]
jb 0x18001fbb6
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.180020ee0
mov rdx, rdi
mov rcx, rbx
call fcn.18002a660
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret