joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400025b0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x290
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002716
xor r14d, r14d
lea rbp, str.GTAProcess
nop word [rax + rax]
xorps xmm0, xmm0
mov qword [rsp + 0x30], r14
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], r14
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], r14w
jne 0x140002640
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140006100
mov rdi, qword [rsp + 0x38]
lea r10, [rsp + 0x20]
mov r11, qword [rsp + 0x20]
cmp rdi, 7
mov rax, qword [rsp + 0x30]
cmova r10, r11
cmp rax, 0xa
jb 0x1400026b4
lea r9, [rax - 9]
mov rbx, r10
lea r9, [r10 + r9*2]
nop word [rax + rax]
mov rax, r9
sub rax, rbx
sar rax, 1
je 0x1400026b4
nop dword [rax + rax]
cmp word [rbx], 0x47
je 0x14000274f
add rbx, 2
sub rax, 1
jne 0x1400026a0
mov rbx, 0xffffffffffffffff
cmp rdi, 7
jbe 0x1400026f6
lea rdx, [rdi*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x1400026ee
mov r11, qword [r11 - 8]
add rdx, 0x27
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000278e
mov rcx, r11
call fcn.140006cbc
mov rcx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140002795
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002620
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140006a20
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
test rbx, rbx
je 0x1400026b4
mov r8, rbx
mov edx, 0xa
sub r8, rbp
mov rcx, rbp
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x140002785
add rcx, 2
sub rdx, 1
jne 0x140002766
sub rbx, r10
sar rbx, 1
jmp 0x1400026bb
add rbx, 2
jmp 0x140002690
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x48]
jmp 0x140002721
Function at 0x140004a80
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140004aa8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140004ace
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004ad0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004b29
test ecx, ecx
jle 0x140004b09
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004b29
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004b29
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140004b50
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004b72
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140004b88
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004ba4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004ba6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004be2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140004c7e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140004c1d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140004c5e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140004c7e
cmp rbx, rax
ja 0x140004c30
test rbx, rbx
je 0x140004c7e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x1400050e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000510d
xor eax, eax
jmp 0x140005279
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140005147
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140005147
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140005279
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000526c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000518a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400051b5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005271
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005224
sub eax, 1
je 0x140005224
cmp eax, 2
jne 0x14000526c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140005271
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140005252
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000526c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140005271
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006a20
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400058f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400059c3
cmp byte [rcx + 0x71], 0
je 0x1400059c3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400059bf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005984
sub eax, 1
je 0x140005988
cmp eax, 2
jne 0x1400059bf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006a20
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400059b6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400059bf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000596c
xor al, al
jmp 0x14000596c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006a20
add rsp, 0x60
pop rbx
ret

Function at 0x140007560
Capabilities:
Parse pe header

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

Disassembly:
push rbp
sub rsp, 0x1d0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x148], 0xfffffffffffffffe
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], rdx
lea rcx, [rbp - 0x10]
mov qword [rbp + 0x100], rcx
lea rax, [0x1400104b0]
mov qword [rbp + 0x108], rax
mov qword [rbp + 0x110], rcx
mov qword [rbp + 0xf0], rcx
mov qword [rbp + 0xf8], rax
movups xmm0, xmmword [rbp + 0xf0]
movaps xmmword [rbp + 0xa0], xmm0
movaps xmm0, xmmword [rbp + 0xa0]
movaps xmmword [rbp + 0x90], xmm0
lea rdx, [0x14007a8b8]
lea rcx, [rbp + 0x60]
mov qword [rbp - 0x28], rcx
lea r8, [rbp + 0x90]
call fcn.14004bb60
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp + 0x48]
call fcn.140007370
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x40], rax
movups xmm0, xmmword [rbp + 0x48]
movaps xmmword [rbp + 0x30], xmm0
lea rcx, [rbp + 0x30]
call fcn.14000dfc0
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], rax
jmp 0x14000c618
mov r8, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp + 0x18]
call fcn.140009700
jmp 0x14000c62b
mov rcx, rbp
lea rdx, [rbp + 0x18]
call fcn.14000f3a0
jmp 0x14000c639
lea rcx, [rbp + 0x30]
call fcn.140007f50
jmp 0x14000c644
mov qword [rbp + 0x138], 0
mov qword [rbp + 0x140], 0
lea rdx, str.runas
lea rcx, [rbp + 0xd0]
mov r8d, 5
call fcn.140009700
jmp 0x14000c675
lea rcx, [rbp + 0xb8]
lea rdx, [rbp + 0xd0]
call fcn.14000f3a0
jmp 0x14000c68a
lea rcx, [rbp + 0xb8]
call fcn.140002c80
mov qword [rbp - 0x30], rax
jmp 0x14000c69c
mov rcx, rbp
call fcn.140002c80
mov qword [rbp - 0x38], rax
jmp 0x14000c6aa
mov r8, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
mov qword [rbp + 0x128], 0
mov qword [rbp + 0x130], 0
mov qword [rbp + 0x118], 0
mov qword [rbp + 0x120], 0
mov rax, rsp
mov dword [rax + 0x28], 0
mov qword [rax + 0x20], 0
xor eax, eax
mov r9d, eax
mov rcx, r9
call sub.SHELL32.dll_ShellExecuteW
mov rcx, rax
mov qword [rbp - 0x40], rcx
mov qword [rbp + 0xe8], rax
lea rcx, [rbp + 0xb8]
call fcn.140008050
jmp 0x14000c719
mov rax, qword [rbp - 0x40]
cmp rax, 0x20
setg al
mov byte [rbp - 0x41], al
mov rcx, rbp
call fcn.140008050
mov al, byte [rbp - 0x41]
and al, 1
add rsp, 0x1d0
pop rbp
ret
Function at 0x14004d9c0
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
sub rsp, 0xf8
mov r8, rdx
mov rdx, rcx
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], r8
mov eax, 0xffffffff
mov eax, eax
mov r9d, eax
lea rcx, [rsp + 0x58]
lea rax, [0x14007f128]
mov qword [rsp + 0x20], rax
call fcn.14004cfe0
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x58]
call fcn.14004d0c0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x70]
call fcn.14004d0e0
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdx
mov rdx, qword [rsp + 0x88]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
jne 0x14004da6e
mov dword [rsp + 0x3c], 0
jmp 0x14004daeb
mov rdx, qword [rsp + 0x88]
mov qword [rsp + 0x28], rdx
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0xf0], rax
mov r8d, eax
xor eax, eax
mov ecx, eax
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0xb8], eax
shr eax, 0x1e
cmp eax, 3
je 0x14004daf7
jmp 0x14004da2d
mov eax, dword [rsp + 0x3c]
add rsp, 0xf8
ret
mov rcx, qword [rsp + 0x28]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0xe0], rax
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
mov byte [rsp + 0xbf], al
cmp al, 0
jne 0x14004da2d
mov ecx, dword [rsp + 0x38]
xor ecx, 0x80000000
mov dword [rsp + 0xc0], ecx
call fcn.14004ce70
mov ecx, eax
mov dword [rsp + 0xc4], ecx
call fcn.14004d7f0
mov dword [rsp + 0x3c], eax
jmp 0x14004daeb
Function at 0x140054740
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 0x1400547e0
jmp 0x1400547cf
jae 0x1400548ae
cmp r8, 0x201
jae 0x1400547e0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x140054846
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14005481e
mov qword [rsp + 0x20], 2
mov r9d, 2
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140076ad0
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 0x14005486f
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14005491a
mov r8d, r13d
cmp r12, r8
jne 0x1400547c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14005494e
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x1400547cf
jmp 0x1400547e0
cmp r14, r8
jb 0x140054968
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.140056b40
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 0x140054903
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.14000ff60
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 0x1400548ee
jmp 0x140054903
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140077b40
jmp 0x14005497d
lea rax, str.std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140077ef0
ud2
Function at 0x14005a1e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10c8
call fcn.140075e10
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1030], xmm6
mov qword [rbp + 0x1028], 0xfffffffffffffffe
mov rsi, rdx
mov qword [rbp + 0x1020], rcx
mov qword [rbp + 0xfd8], rcx
mov qword [rbp + 0xfe0], rdx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea rbx, [0x14005fe80]
lea r12, [rbp + 0xfb0]
mov rdi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov r15, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
mov r8d, 0x1000
lea rcx, [rbp + 0xfd8]
lea rdx, [rbp - 0x50]
call fcn.14005fda0
mov r14, rdx
test rax, rax
jne 0x14005a37c
test r14, r14
je 0x14005a34c
cmp r14, 0x1000
ja 0x14005a420
xor r13d, r13d
nop dword [rax + rax]
cmp r13, r14
ja 0x14005a3f7
mov r8d, r14d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xff4], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
lea rax, [rbp + 0xff4]
mov qword [rbp + 0xfc8], rax
mov qword [rsp + 0x20], rbx
mov rcx, rsi
mov r9, r12
call rdi
test eax, eax
je 0x14005a346
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call r15
cmp dword [rbp + 0xff4], 1
jne 0x14005a310
cmp dword [rbp + 0xff8], 0
jne 0x14005a34c
mov eax, dword [rbp + 0xffc]
add r13, rax
cmp r13, r14
jne 0x14005a2b0
jmp 0x14005a25b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1020]
call rdi
mov rcx, rsi
call rdi
movaps xmm6, xmmword [rbp + 0x1030]
add rsp, 0x10c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, r14d
and eax, 3
cmp eax, 1
jne 0x14005a34c
mov rax, r14
dec rax
mov qword [rbp + 0xfe8], rax
mov rax, qword [r14 - 1]
mov qword [rbp + 0x1000], rax
mov rax, qword [r14 + 7]
mov qword [rbp + 0x1008], rax
mov rax, qword [rax]
test rax, rax
je 0x14005a3bb
mov rcx, qword [rbp + 0x1000]
call rax
mov rcx, qword [rbp + 0x1000]
mov rax, qword [rbp + 0x1008]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14005a3db
mov r8, qword [rax + 0x10]
call fcn.14000ff60
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp + 0xfe8]
call fcn.14000ff60
jmp 0x14005a34c
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, str.std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r14
call fcn.140077f60
jmp 0x14005a449
mov qword [rbp + 0x1018], rsi
mov rax, qword [rbp + 0x1020]
mov qword [rbp + 0x1010], rax
lea r8, str.std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r14
call fcn.140077ef0
ud2
Function at 0x14005d6e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x270
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rdi, qword [rdx + 8]
cmp rdi, 0xffffffffffffffff
je 0x14005d7e1
mov eax, dword [rdx + 0x10]
movzx ebx, word [rdx + 0x40]
movzx r15d, word [rdx + 0x42]
movzx r14d, word [rdx + 0x44]
mov dword [rdx + 0x10], 0
cmp eax, 1
jne 0x14005d74a
mov r12, qword [rdx]
cmp bx, 0x2e
jne 0x14005d7fc
test r15w, r15w
je 0x14005d74a
mov eax, r15d
xor eax, 0x2e
or ax, r14w
jne 0x14005d7fc
mov r14, rdx
lea rbx, [rbp - 0x60]
mov r8d, 0x250
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x14005d7ed
mov rbx, qword [r14]
lea r14, [rbp - 0x60]
mov r15, qword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x14005d79d
mov rcx, rdi
mov rdx, r14
call r15
test eax, eax
je 0x14005d7ed
cmp word [rbp - 0x34], 0x2e
jne 0x14005d7ba
movzx eax, word [rbp - 0x32]
test ax, ax
je 0x14005d790
cmp ax, 0x2e
jne 0x14005d7ba
cmp word [rbp - 0x30], 0
je 0x14005d790
lock inc qword [rbx]
jle 0x14005d888
lea rcx, [rsi + 0x10]
lea rdx, [rbp - 0x60]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memcpy
mov eax, 8
jmp 0x14005d867
mov qword [rsi], 0
jmp 0x14005d873
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x14005d850
xor eax, eax
jmp 0x14005d870
lock inc qword [r12]
jle 0x14005d888
lea rax, [rdx + 0x14]
add rdx, 0x46
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x1c]
movups xmmword [rsi + 0x2c], xmm2
movups xmmword [rsi + 0x20], xmm1
movups xmmword [rsi + 0x10], xmm0
lea rcx, [rsi + 0x42]
mov r8d, 0x21e
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsi + 8], r12
mov word [rsi + 0x3c], bx
mov word [rsi + 0x3e], r15w
mov word [rsi + 0x40], r14w
mov qword [rsi], 1
jmp 0x14005d873
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov qword [rsi + 8], 0
mov eax, 0x10
mov qword [rsi + rax], rbx
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x270
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
ud2
Function at 0x14005e360
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x18]
call fcn.140067460
mov rax, qword [rbp - 0x18]
mov rsi, qword [rbp - 0x10]
mov rcx, rax
neg rcx
jo 0x14005e3bb
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x30]
mov r8b, 1
call fcn.140068b70
mov rdi, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x40]
mov rax, rdi
neg rax
jno 0x14005e3c6
mov rax, rsi
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x14005e3f0
test rdi, rdi
je 0x14005e41c
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.14000ff60
xor eax, eax
jmp 0x14005e3be
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x14005e3be
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.14000ff60
jmp 0x14005e3bb
xor eax, eax
jmp 0x14005e3be

Function at 0x14005e8b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rax, qword [rbp + 0x70]
mov qword [rbp - 8], r9
lea rcx, [rbp]
mov qword [rbp], rax
movups xmm0, xmmword [0x140081470]
movaps xmmword [rbp + 0x10], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rbp + 0x10]
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 0x14005e946
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp + 0x10]
cmp eax, 0x103
je 0x14005e973
test eax, eax
js 0x14005e952
mov rdx, qword [rbp + 0x18]
xor eax, eax
jmp 0x14005e969
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb8
pop rsi
pop rbp
ret
mov dword [rbp + 0x28], 0
mov byte [rbp + 0x2c], 0
lea rax, [0x1400814d0]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x30]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x28]
lea rdx, [rbp - 0x38]
call fcn.140056760
mov qword [rbp + 8], rax
lea rcx, [rbp + 8]
call fcn.14004f280
mov ecx, 7
int 0x29
ud2