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

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rsi, r8
lea rdi, [rbp + 0x40]
mov ecx, 0x20
rep movsq qword [rdi], qword [rsi]
lea rdi, [rbp + 0x140]
mov rsi, r9
mov ecx, 0x20
rep movsq qword [rdi], qword [rsi]
xor eax, eax
lea r8, [rbp + 0x38]
mov ecx, 0x38
movzx r9, al
add r9d, r9d
add r9d, r9d
add r9d, r9d
sub ecx, r9d
and ecx, 0x3f
mov r9, rdx
shr r9, cl
mov byte [r8], r9b
add al, 1
add r8, 1
cmp al, 8
jne 0x7079d7
nop
mov dil, 8
mov rax, qword [0x0078f290]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 0x30]
mov qword [rbp + 0x28], rax
mov rcx, rbp
mov rax, qword [rbp + 0x20]
movzx rdx, byte [rax]
movzx r8, byte [rbp + 0x38]
call fcn.00707960
mov rcx, qword [rbp + 0x28]
mov byte [rcx], al
mov r13b, 7
mov rax, qword [rbp + 0x20]
lea rbx, [rax + 1]
lea rsi, [rbp + 0x39]
mov rcx, rbp
movzx rdx, byte [rbx]
movzx r8, byte [rsi]
call fcn.00707960
mov rcx, qword [rbp + 0x28]
xor byte [rcx], al
add rsi, 1
add rbx, 1
sub r13b, 1
test r13b, r13b
jne 0x707a45
nop
mov rax, qword [rbp + 0x28]
add rax, 1
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x20]
add rax, 8
mov qword [rbp + 0x20], rax
sub dil, 1
test dil, dil
jne 0x707a1b
nop
movzx rax, byte [rbp + 0x30]
mov dl, 7
lea rcx, [rbp + 0x31]
shl rax, 8
movzx r8, byte [rcx]
xor rax, r8
add rcx, 1
sub dl, 1
test dl, dl
jne 0x707a9a
nop
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x707c50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov rax, rdx
mov ecx, 5
xor rax, qword [r8]
add r8, 8
mov rdx, qword [0x0078f040]
mov r9, rax
shr r9, 0x38
and r9, 0xff
mov r10, qword [0x0078f040]
mov r11, rax
shr r11, 0x30
and r11, 0xff
mov rdx, qword [rdx + r9*8]
xor rdx, qword [r10 + r11*8 + 0x800]
mov r9, qword [0x0078f040]
mov r10, rax
shr r10, 0x28
and r10, 0xff
xor rdx, qword [r9 + r10*8 + 0x1000]
mov r9, qword [0x0078f040]
mov r10, rax
shr r10, 0x20
and r10, 0xff
xor rdx, qword [r9 + r10*8 + 0x1800]
mov r9, qword [0x0078f040]
mov r10, rax
shr r10, 0x18
and r10, 0xff
xor rdx, qword [r9 + r10*8 + 0x2000]
mov r9, qword [0x0078f040]
mov r10, rax
shr r10, 0x10
and r10, 0xff
xor rdx, qword [r9 + r10*8 + 0x2800]
mov r9, qword [0x0078f040]
mov r10, rax
shr r10, 8
and r10, 0xff
xor rdx, qword [r9 + r10*8 + 0x3000]
mov r9, qword [0x0078f040]
and rax, 0xff
xor rdx, qword [r9 + rax*8 + 0x3800]
mov rax, rdx
sub ecx, 1
test ecx, ecx
jne 0x707c58
nop
xor rax, qword [r8]
add r8, 8
mov rcx, qword [0x0078f6d8]
mov rdx, rax
shr rdx, 0x38
and rdx, 0xff
movzx rcx, byte [rcx + rdx]
shl rcx, 0x38
mov rdx, qword [0x0078f6d8]
mov r9, rax
shr r9, 0x30
and r9, 0xff
movzx rdx, byte [rdx + r9]
shl rdx, 0x30
xor rcx, rdx
mov rdx, qword [0x0078f6d8]
mov r9, rax
shr r9, 0x28
and r9, 0xff
movzx rdx, byte [rdx + r9]
shl rdx, 0x28
xor rcx, rdx
mov rdx, qword [0x0078f6d8]
mov r9, rax
shr r9, 0x20
and r9, 0xff
movzx rdx, byte [rdx + r9]
shl rdx, 0x20
xor rcx, rdx
mov rdx, qword [0x0078f6d8]
mov r9, rax
shr r9, 0x18
and r9, 0xff
movzx rdx, byte [rdx + r9]
shl rdx, 0x18
xor rcx, rdx
mov rdx, qword [0x0078f6d8]
mov r9, rax
shr r9, 0x10
and r9, 0xff
movzx rdx, byte [rdx + r9]
shl rdx, 0x10
xor rcx, rdx
mov rdx, qword [0x0078f6d8]
mov r9, rax
shr r9, 8
and r9, 0xff
movzx rdx, byte [rdx + r9]
shl rdx, 8
xor rcx, rdx
mov rdx, qword [0x0078f6d8]
and rax, 0xff
movzx rax, byte [rdx + rax]
xor rcx, rax
mov rax, rcx
xor rax, qword [r8]
ret
Function at 0x71dd10
Capabilities:
Create process on windows
Enumerate gui resources

Disassembly:
push rbp
sub rsp, 0xe0
mov rbp, rsp
mov byte [rbp + 0x59], dl
mov byte [rbp + 0x5a], r8b
mov byte [rbp + 0x5b], r9b
mov qword [rbp + 0xf0], rcx
mov rcx, qword [rbp + 0xf0]
call fcn.00410c40
nop
lea rcx, [rbp + 0x78]
mov edx, 0x68
xor r8, r8
call fcn.0040c190
lea rcx, [rbp + 0x60]
mov edx, 0x18
xor r8, r8
call fcn.0040c190
lea rcx, [rbp + 0xf0]
call fcn.00411400
movzx rax, byte [rbp + 0x5a]
test al, al
je 0x71dd84
mov word [rbp + 0xb8], 0
mov dword [rbp + 0xb4], 1
movzx rax, byte [rbp + 0x5b]
cmp al, 1
jne 0x71dd97
mov word [rbp + 0xb8], 6
mov dword [rbp + 0x78], 0x68
mov rcx, qword [rbp + 0xf0]
call fcn.00411e50
xor ecx, ecx
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x78]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x48], rax
call sub.kernel32.dll_CreateProcessW
test eax, eax
setne al
test al, al
je 0x71de2d
movzx rax, byte [rbp + 0x5b]
cmp al, 1
jne 0x71de10
lea rcx, [0x0071de80]
mov edx, dword [rbp + 0x70]
call sub.user32.dll_EnumWindows
mov eax, dword [rbp + 0x70]
mov dword [rbp + 0x5c], eax
movzx rax, byte [rbp + 0x59]
test al, al
je 0x71de32
mov rcx, qword [rbp + 0x60]
or edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
jmp 0x71de32
xor eax, eax
mov dword [rbp + 0x5c], eax
mov rcx, qword [rbp + 0x60]
call sub.kernel32.dll_CloseHandle
mov rcx, qword [rbp + 0x68]
call sub.kernel32.dll_CloseHandle
nop
lea rcx, [rbp + 0xf0]
call fcn.00410a70
mov eax, dword [rbp + 0x5c]
lea rsp, [rbp + 0xe0]
pop rbp
ret
Function at 0x140c00ea5
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
lea rsp, [rsp + 0x10]
je 0x140c00f02
mov eax, 0xb9b7b223
lea rax, [rax*8 - 0x324687f9]
push rdi
mov edi, eax
lea rdi, [0x140c0b280]
push 0xffffffffe53d1698
mov eax, dword [rsp + 4]
movzx eax, byte [r11]
xor eax, edx
and eax, 0xff
mov eax, dword [rdi + rax*4]
shr edx, 8
xor edx, eax
inc r11
inc qword [rsp]
xor edx, 0xe7015f15
dec rcx
lea rsp, [rsp + 8]
jne 0x140c00eca
pop rdi
call fcn.140bfe6cd
mov esi, 0x642e7809
mov rsi, qword [rdi + rsi - 0x642e7809]
jmp 0x140c1409f
mov cl, byte [rdi + 8]
jmp 0x140c302df
push 0x7ca37922
add rdi, 2
shl rsi, cl
call fcn.140c0fa29

Function at 0x140c02b54
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], r10
mov r10d, 0x76256a3b
sal r10w, 0xc
xor dword [rsp + r10 - 0x7625b000], eax
xor r10d, r10d
sar r10, 0x41
dec r10
pop r10
push 0xfffffffff93ef98e
ror dword [rsp + 2], 0xda
sub r11, 4
call fcn.140c2b243
mov r11d, dword [r9 + 8]
call fcn.140bffc23
mov edx, 0x8a145495
mov rsi, qword [r8]
mov edx, dword ss:[rsi]
push 0xffffffffb1a2651f
add r8, 4
call fcn.140c2df33
jmp 0x140c0d412
mov rcx, qword [r11]
mov ebx, 0x25bf6a14
mov rbx, qword [r11 + rbx - 0x25bf6a0c]
add r11, 0xc
xor edx, edx
push 0xffffffffcc9cc227
not qword [rsp]
test rbx, rbx
push 0x27ab4d9d
lea rsp, [rsp + 0x10]
je 0x140c1490e
push r10
mov r10d, 0x21b364b2
mov edi, 0x4c819a94
jmp 0x140c23055
not edx
push 0x6c030fb1
mov dword [r11], edx
lea rsp, [rsp + 8]
jmp fcn.140c28702
lea r10, [0x140c289a8]
mov edi, 0xf78ecc38
movzx edi, byte [rcx]
push 0x70a61c1e
and dword [rsp + 3], 0x3a212f04
xor edi, edx
and edi, 0xff
mov edi, dword [r10 + rdi*4]
shr edx, 8
xor edx, edi
inc rcx
rol byte [rsp], 0x62
shl byte [rsp + 5], 0x41
xor edx, 0x498fe29d
not qword [rsp]
dec rbx
lea rsp, [rsp + 8]
jne 0x140c2305c
mov r10d, 0x5087d502
jmp 0x140c25a6d
call fcn.140c14901
not eax
jmp 0x140bfdff6
Function at 0x14002ab00
Capabilities:
Reference absolute stream path on windows

Disassembly:
push rbp
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x30], rcx
lea rdx, [0x14007c294]
lea rcx, [rbp - 0x28]
mov r8d, 0x61
call fcn.140006b90
jmp 0x14002ab36
mov rcx, qword [rbp - 0x40]
call fcn.140004f10
mov qword [rbp - 0x50], rdx
mov qword [rbp - 0x48], rax
jmp 0x14002ab49
mov r8, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.1400050c0
jmp 0x14002ab5c
lea rdx, [0x14007c2f5]
lea rcx, [rbp - 0x28]
mov r8d, 0x15
call fcn.140005050
jmp 0x14002ab74
mov rcx, qword [rbp - 0x40]
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x28]
mov qword [rax], rdx
mov rdx, qword [rbp - 0x20]
mov qword [rax + 8], rdx
mov rdx, qword [rbp - 0x18]
mov qword [rax + 0x10], rdx
mov rdx, qword [rbp - 0x10]
mov qword [rax + 0x18], rdx
call fcn.140022ea0
mov rax, qword [rbp - 0x30]
add rsp, 0x70
pop rbp
ret
Function at 0x14004d710
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 0x14004d7b0
jmp 0x14004d79f
jae 0x14004d86f
cmp r8, 0x201
jae 0x14004d7b0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14004d807
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14004d7df
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140073970
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 0x14004d830
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14004d8db
mov r8d, r13d
cmp r12, r8
jne 0x14004d790
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14004d90f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14004d79f
jmp 0x14004d7b0
cmp r14, r8
jb 0x14004d929
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.1400511f0
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 0x14004d8c4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140004e30
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 0x14004d8af
jmp 0x14004d8c4
lea rcx, [0x14007f558]
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140074960
jmp 0x14004d93e
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.140074dd0
ud2
Function at 0x14004e420
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x14004e435
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.14004e450
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.140059da0

Function at 0x1400540e0
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, [0x14005ca70]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x140054170
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 0x140054140
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 0x140054185
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 0x140055860
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.140072ca0
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, [0x14005ca70]
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.14005c5c0
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x140055a50
test r15, r15
je 0x140055a1c
cmp r15, 0x1000
ja 0x140055a72
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 0x1400559f0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140055980
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 0x140055a10
add r12, rax
cmp r12, r15
je 0x1400559e0
jbe 0x140055930
jmp 0x140055a5e
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x1400558de
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.140046140
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.140046140
jmp 0x140055a1c
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.140074e40
jmp 0x140055a86
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.140074dd0
ud2
Function at 0x140059da0
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.140063ac0
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140059e00
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.140065570
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x140059e0c
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140059e38
test rdi, rdi
je 0x140059e64
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140004e30
xor eax, eax
jmp 0x140059e03
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x140059e03
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.140004e30
jmp 0x140059e00
xor eax, eax
jmp 0x140059e03
Function at 0x14005aed0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1400816b0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14005af08
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 0x14005af5f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14005af6c
xor edx, edx
xor eax, eax
jmp 0x14005af96
cmp eax, 0x103
je 0x14005afa0
test eax, eax
js 0x14005af7f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14005af96
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, [0x140081710]
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.140050dd0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1400467f0
mov ecx, 7
int 0x29
ud2

Function at 0x14005aff0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1400816b0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x14005b028
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 0x14005b086
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x14005b0b3
test eax, eax
js 0x14005b092
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x14005b0a9
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, [0x140081710]
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.140050dd0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.1400467f0
mov ecx, 7
int 0x29
ud2
Function at 0x14005bbf0
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x148
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xb0], xmm6
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp + 0x60], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x5c], ecx
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
lea r14, [rbp + 0x20]
mov r12, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor edi, edi
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]

Function at 0x14005cf60
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 0x14005d0d0
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx]
test rax, rax
jne 0x14005cf9d
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14005d095
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14005d0b3
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 0x14005cffc
mov eax, dword [rbp + 4]
mov ecx, 2
test rax, rax
je 0x14005d03f
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x14005d043
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 0x14005d047
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x14005d071
lea rax, [rbp - 8]
jmp 0x14005d053
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14005d077
mov qword [rbp - 8], 1
lea rax, [rbp - 0x10]
mov qword [rax], 0
lea rcx, [rbp - 0x40]
call fcn.140046140
mov rcx, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
cmp rcx, 2
jne 0x14005d082
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 0x14005cfe5
mov ecx, 1
jmp 0x14005cfef
mov r8d, 0x10
mov rcx, rbx
call fcn.140073ac0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14005cfaa
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140073ac0
mov rax, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x14005cfaa
mov qword [rbp - 0x40], 0
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140073920
int3
Function at 0x1400617f0
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.140063ac0
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
movabs r14, 0x8000000000000000
cmp rcx, r14
jne 0x14006182e
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], r14
jmp 0x140061854
mov rdx, qword [rbp - 0x18]
Function at 0x1400713b0
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 0x14007143a
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 0x140071430
cmp r11, r10
ja 0x1400714b6
cmp r10, rdx
ja 0x1400714c8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140071432
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140071410
jmp 0x140071497
ja 0x14007143a
mov r11, r10
cmp rax, r8
jne 0x1400713d7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14007149b
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 0x140071470
mov r8, r10
sub ecx, r9d
jns 0x14007148e
jmp 0x14007149d
cmp r10, rdx
je 0x1400714aa
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14007149d
xor al, 1
cmp r8, rdx
jne 0x140071450
jmp 0x14007149d
xor eax, eax
jmp 0x14007149d
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.140074820
lea r8, str.PS_b_
mov rcx, r11
mov rdx, r10
call fcn.140074e40
lea r8, str.PS_b_
mov rcx, r10
call fcn.140074dd0
int3

Function at 0x1400731e8
Capabilities:
Parse pe header

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