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

Disassembly:
sub esp, 0x10
mov eax, dword [rsp + 0x18]
mov edx, dword [rsp + 0x1c]
push rbx
push rbp
push rsi
mov esi, dword [rsp + 0x20]
xor ebx, ebx
push rdi
lea edi, [rsp + 0x10]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
mov ecx, dword [rsp + 0x14]
mov esi, dword [rsp + 0x1c]
mov ebp, dword [rsp + 0x18]
mov edi, dword [rsp + 0x10]
mov dword [rsp + 0x28], ecx
mov ecx, esi
ror eax, 8
mov esi, dword [rsp + 0x28]
add eax, edx
ror esi, 8
xor eax, edi
add esi, edi
rol edx, 3
xor esi, ebx
rol edi, 3
xor edx, eax
mov dword [rsp + 0x28], ebp
xor edi, esi
mov ebp, ecx
cmp r11d, 0x1b
jb 0x140014373
pop rdi
pop rsi
pop rbp
pop rbx
add esp, 0x10
ret

Function at 0x1400143a5
Capabilities:
Encode data using xor
Encrypt data using chaskey

Disassembly:
mov edx, dword [rsp + 0x10]
sub esp, 0x14
push rbx
mov ebx, dword [rsp + 0x20]
push rbp
mov ebp, dword [rsp + 0x28]
test edx, edx
je 0x1400144aa
xor eax, eax
lea ecx, [rbx + 0xf]
mov dword [rsp + 0x2c], ecx
sub eax, ebx
push rsi
mov dword [rsp + 0xc], eax
push rdi
lea eax, [rsp + 0x14]
cmp eax, ecx
ja 0x1400143dc
lea eax, [rsp + 0x23]
mov esi, ebx
lea edi, [rsp + 0x14]
xor ecx, ecx
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
movsd dword [rdi], dword [rsi]
mov esi, dword [rsp + 0x28]
mov eax, dword [rsi + rcx*4]
xor dword [rsp + rcx*4 + 0x14], eax
cmp r9d, 4
jb 0x1400143ec
mov esi, dword [rsp + 0x20]
mov eax, dword [rsp + 0x1c]
mov edi, dword [rsp + 0x18]
mov ecx, dword [rsp + 0x14]
mov dword [rsp + 0x30], 0x10
add ecx, edi
add eax, esi
rol edi, 5
xor edi, ecx
rol esi, 8
xor esi, eax
rol ecx, 0x10
add eax, edi
add ecx, esi
rol edi, 7
rol esi, 0xd
xor edi, eax
xor esi, ecx
rol eax, 0x10
sub dword [rsp + 0x30], 1
jne 0x140014411
mov ebx, dword [rsp + 0x28]
mov dword [rsp + 0x14], ecx
xor ecx, ecx
mov dword [rsp + 0x20], esi
mov dword [rsp + 0x18], edi
mov dword [rsp + 0x1c], eax
mov eax, dword [rbx + rcx*4]
xor dword [rsp + rcx*4 + 0x14], eax
cmp r9d, 4
jb 0x140014450
push 0x10
pop rsi
cmp edx, esi
mov ecx, edx
cmova ecx, esi
test ecx, ecx
je 0x140014480
lea edi, [rsp + 0x14]
mov esi, ebp
sub edi, ebp
mov ebx, ecx
mov al, byte [rdi + rsi]
xor byte [rsi], al
sub ebx, 1
jne 0x140014475
mov ebx, dword [rsp + 0x10]
sub edx, ecx
add ebp, ecx
mov ecx, dword [rsp + 0x34]
add byte [rcx], 1
jne 0x140014499
lea rax, [r11 + rcx]
test eax, eax
jg 0x14001448c
mov ebx, dword [rsp + 0x2c]
lea ecx, [rbx + 0xf]
test edx, edx
jne 0x1400143d0
pop rdi
pop rsi
pop rbp
pop rbx
add esp, 0x14
ret
Function at 0x1400144b0
Capabilities:
Decompress data using aplib

Disassembly:
sub esp, 0x14
mov ecx, dword [rsp + 0x18]
and dword [rsp + 0x10], 0
push rbx
push rbp
mov ebp, dword [rsp + 0x24]
mov al, byte [rcx]
push rsi
push rdi
mov byte [rbp], al
or edi, 0xffffffff
lea eax, [rbp + 1]
xor esi, esi
mov dword [rsp + 0x18], eax
xor ebx, ebx
lea eax, [rcx + 1]
mov dword [rsp + 0x10], ebx
mov dword [rsp + 0x14], eax
lea eax, [rsp + 0x14]
push rax
call fcn.140014653
pop rcx
test eax, eax
je 0x140014627
lea eax, [rsp + 0x14]
push rax
call fcn.140014653
test eax, eax
lea eax, [rsp + 0x18]
pop rcx
push rax
je 0x140014586
call fcn.140014653
pop rcx
test eax, eax
je 0x14001454a
push 4
xor esi, esi
pop rbx
lea eax, [rsp + 0x14]
push rax
call fcn.140014653
pop rcx
lea esi, [rax + rsi*2]
sub ebx, 1
jne 0x140014518
mov edx, dword [rsp + 0x18]
test esi, esi
je 0x14001453d
mov eax, edx
sub eax, esi
mov al, byte [rax]
mov byte [rdx], al
jmp 0x140014540
mov byte [rdx], 0
mov ebx, dword [rsp + 0x10]
jmp 0x140014639
mov eax, dword [rsp + 0x14]
mov edx, dword [rsp + 0x18]
movzx edi, byte [rax]
mov ecx, edi
mov dword [rsp + 0x14], eax
and ecx, 1
add ecx, 2
shr edi, 1
je 0x14001457a
mov esi, edx
sub esi, edi
mov al, byte [rsi]
mov byte [rdx], al
sub ecx, 1
jne 0x14001456a
jmp 0x14001461e
xor ebx, ebx
mov dword [r12 + r12 + 0x10], ebx
jmp 0x140014622
call fcn.14001468a
mov edx, eax
pop rcx
test esi, esi
jne 0x1400145bd
cmp edx, 2
jne 0x1400145bd
lea eax, [rsp + 0x14]
push rax
call fcn.14001468a
mov edx, dword [rsp + 0x1c]
mov esi, eax
pop rcx
test esi, esi
je 0x140014622
mov ecx, edx
sub ecx, edi
mov al, byte [rcx]
mov byte [rdx], al
sub r14d, 1
jne 0x1400145b0
jmp 0x14001461e
mov ecx, dword [rsp + 0x14]
lea eax, [rsp + 0x14]
xor esi, 1
sub edx, esi
shl edx, 8
movzx edi, byte [rcx]
add edi, 0xfffffe00
add edi, edx
push r8
mov dword [rsp + 0x18], ecx
call fcn.14001468a
pop rcx
mov ecx, eax
cmp edi, 0x7d00
jb 0x1400145ef
mov edx, dword [r12 + 0x18]
mov edx, dword [rsp + 0x18]
lea eax, [rcx + 1]
cmp edi, 0x500
cmovb eax, ecx
cmp edi, 0x80
lea esi, [rax + 2]
cmovae esi, eax
test esi, esi
je 0x140014622
mov ecx, edx
sub ecx, edi
mov al, byte [rcx]
mov byte [rdx], al
sub r14d, 1
jne 0x140014613
mov dword [rsp + 0x18], edx
xor esi, esi
jmp 0x14001463f
mov ecx, dword [rsp + 0x14]
mov edx, dword [rsp + 0x18]
mov al, byte [rcx]
mov byte [rdx], al
mov dword [r12 + 0x14], ecx
xor esi, esi
mov dword [rsp + 0x18], edx
test ebx, ebx
je 0x1400144e2
pop rdi
pop rsi
sub edx, ebp
pop rbp
mov eax, edx
pop rbx
add esp, 0x14
ret

Function at 0x140014ac0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x140015792
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14001a108]
test eax, eax
je 0x14001582a
lea rax, [0x14001a0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14001a110]
mov qword [rbp - 8], rax
jmp 0x14001580e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140015802
cmp qword [rbp - 0x10], 0
je 0x140015802
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400157c8
lea rax, [0x14001a0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001582b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140015930
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140015958
mov eax, 0
jmp 0x1400159a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140015981
mov eax, 0
jmp 0x1400159a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400159a1
mov eax, 0
jmp 0x1400159a6
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400159ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140015a2a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015a21
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015a21
mov rax, qword [rbp - 8]
jmp 0x140015a3f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400159f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001230
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [rdx], 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x140004850
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 qword [sym.imp.shell32.dll_SHGetKnownFolderPath]
mov rcx, qword [rbp - 8]
test eax, eax
je 0x14000489d
call qword [sym.imp.ole32.dll_CoTaskMemFree]
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x1400048cc
call qword [sym.imp.kernel32.dll_lstrlenW]
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.140011f00
mov rcx, qword [rbp - 8]
call qword [sym.imp.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 0x14000a790
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
test rdx, rdx
je 0x14000a802
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
mov r15, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov r12, qword [sym.imp.advapi32.dll_SystemFunction036]
jmp 0x14000a7c8
add rdi, rbx
sub rsi, rbx
je 0x14000a802
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
xor ecx, ecx
mov rdx, rdi
mov r8d, ebx
mov r9d, 2
call r15
cmp eax, 0xbfffffff
jbe 0x14000a7c0
mov ebp, eax
mov rcx, rdi
mov edx, ebx
call r12
test al, al
jne 0x14000a7c0
and ebp, 0x7fffffff
jmp 0x14000a804
xor ebp, ebp
mov eax, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14000f190
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 0x14000f230
jmp 0x14000f21f
jae 0x14000f2ef
cmp r8, 0x201
jae 0x14000f230
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14000f287
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14000f25f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14002a4c0
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 0x14000f2b0
call qword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x14000f35b
mov r8d, r13d
cmp r12, r8
jne 0x14000f210
call qword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000f38f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000f21f
jmp 0x14000f230
cmp r14, r8
jb 0x14000f3a9
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140011f00
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 0x14000f344
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400047f0
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 0x14000f32f
jmp 0x14000f344
lea rcx, str.internal_error:_entered_unreachable_code_rustc_3f5fd8dd41153bc5fdca9427e9e05be2c767ba23library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.14002b3f0
jmp 0x14000f3be
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.14002b7a0
ud2
Function at 0x140018b20
Capabilities:
Move file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x30]
call fcn.14001aaf0
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140018b96
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x38], rcx
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x48]
mov r8b, 1
call fcn.14001bb40
mov rax, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x58]
cmp rax, rbx
jne 0x140018ba7
mov rax, rdx
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], rdx
lea rcx, [rbp - 0x30]
mov rdx, rdi
mov r8, rsi
call fcn.14001aaf0
mov rax, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x28]
cmp rax, rbx
je 0x140018bf8
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rcx
lea rcx, [rbp - 0x60]
lea rdx, [rbp - 0x48]
mov r8b, 1
call fcn.14001bb40
mov rdi, qword [rbp - 0x60]
mov rsi, qword [rbp - 0x58]
cmp rdi, rbx
jne 0x140018c21
mov rcx, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
mov rax, rsi
test rdx, rdx
je 0x140018b99
add rdx, rdx
mov r8d, 2
mov rsi, rax
call fcn.1400047f0
mov rax, rsi
jmp 0x140018b99
mov rcx, qword [rbp - 0x18]
mov rbx, rcx
mov rdx, rsi
mov r8d, 1
call qword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
mov rdx, qword [rbp - 0x10]
je 0x140018c7b
test rdi, rdi
je 0x140018c5e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rsi, rdx
mov rdx, rdi
call fcn.1400047f0
mov rdx, rsi
test rdx, rdx
je 0x140018c74
add rdx, rdx
mov r8d, 2
mov rcx, rbx
call fcn.1400047f0
xor eax, eax
jmp 0x140018b99
mov r14, rdx
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x140018cab
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.1400047f0
mov rax, rsi
mov rcx, rbx
mov rdx, r14
test rdx, rdx
jne 0x140018c08
jmp 0x140018b99
Function at 0x140019790
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1400300f0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1400197c8
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 0x14001981f
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x14001982c
xor edx, edx
xor eax, eax
jmp 0x140019856
cmp eax, 0x103
je 0x140019860
test eax, eax
js 0x14001983f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140019856
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, [0x140030150]
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.140011bf0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14000d740
mov ecx, 7
int 0x29
ud2

Function at 0x1400198b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1400300f0]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x1400198e8
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 0x140019946
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140019973
test eax, eax
js 0x140019952
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140019969
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, [0x140030150]
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.140011bf0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14000d740
mov ecx, 7
int 0x29
ud2
Function at 0x140027ea0
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 0x140027f2a
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 0x140027f20
cmp r11, r10
ja 0x140027fa6
cmp r10, rdx
ja 0x140027fb8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140027f22
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140027f00
jmp 0x140027f87
ja 0x140027f2a
mov r11, r10
cmp rax, r8
jne 0x140027ec7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x140027f8b
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 0x140027f60
mov r8, r10
sub ecx, r9d
jns 0x140027f7e
jmp 0x140027f8d
cmp r10, rdx
je 0x140027f9a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x140027f8d
xor al, 1
cmp r8, rdx
jne 0x140027f40
jmp 0x140027f8d
xor eax, eax
jmp 0x140027f8d
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.14002b2b0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14002b810
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14002b7a0
int3

Function at 0x140029c04
Capabilities:
Parse pe header

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

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

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400b9040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x20]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rcx, rax
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400ac7a0
add rsp, 0x30
pop rbx
ret

Function at 0x14000b300
Capabilities:
Execute command

Disassembly:
push rbx
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 6
jb 0x14000b402
mov rax, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14000b331
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 6
lea r9, str.start
lea rcx, [rsp + 0x40]
call fcn.1400abc40
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000b3ac
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b3a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000b3a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400ac7c0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14000b3e2
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000b3dd
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000b3fb
mov rcx, r8
call fcn.1400ac7c0
mov qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
add rsp, 0x60
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400077d0
int3

Function at 0x14000be70
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x1400b9040]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x100
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14000bec2
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.1400ab610
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1400ac7a0
add rsp, 0x140
pop rbx
ret