joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007120
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.14000de6c
sub rsp, rax
mov rsi, r8
mov rbx, rdx
lea rdx, [0x14001949f]
call fcn.1400034e0
mov rdi, rax
mov rcx, rbx
mov rdx, rsi
call fcn.140007020
mov rsi, rax
test rdi, rdi
je 0x1400071dc
test rsi, rsi
je 0x1400071dc
mov rcx, rdi
call sub.msvcrt.dll_feof
xor ebx, ebx
test eax, eax
jne 0x140007202
lea r14, [rsp + 0x20]
jmp 0x140007198
mov rcx, rdi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x1400071f5
mov rcx, rdi
call sub.msvcrt.dll_feof
test eax, eax
jne 0x140007202
mov edx, 1
mov r8d, 0x1000
mov rcx, r14
mov r9, rdi
call sub.msvcrt.dll_fread
test rax, rax
je 0x140007180
mov edx, 1
mov rcx, r14
mov r8, rax
mov r9, rsi
call sub.msvcrt.dll_fwrite
mov rcx, rsi
test rax, rax
je 0x1400071f8
call sub.msvcrt.dll_ferror
test eax, eax
je 0x14000718c
mov rcx, rsi
jmp 0x1400071f8
test rdi, rdi
je 0x1400071e9
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov ebx, 0xffffffff
test rsi, rsi
jne 0x14000720a
jmp 0x140007212
mov rcx, rdi
call sub.msvcrt.dll_clearerr
mov ebx, 0xffffffff
mov rcx, rdi
call sub.msvcrt.dll_fclose
mov rcx, rsi
call sub.msvcrt.dll_fclose
mov eax, ebx
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140007290
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
mov eax, 0x2100
call fcn.14000de6c
sub rsp, rax
movaps xmmword [rsp + 0x20f0], xmm6
mov rdx, rcx
mov dword [rsp + 0x54], 0
lea rsi, [rsp + 0xf0]
mov r8d, 0x1000
mov rcx, rsi
call fcn.140007a80
lea rcx, [0x140007450]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov dword [rsp + 0x58], 0x18
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x68], 1
lea rdi, [rsp + 0x88]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm6, xmm6
movups xmmword [rsp + 0x90], xmm6
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0xc4], 0x101
mov word [rsp + 0xc8], 1
mov r14, qword [fcn.14000e760]
xor ebx, ebx
xor ecx, ecx
call r14
mov rcx, rax
call sub.msvcrt.dll__fileno
mov r15, qword [sym.imp.msvcrt.dll__get_osfhandle]
mov ecx, eax
call r15
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xd8], rax
mov ecx, 1
call r14
mov rcx, rax
call sub.msvcrt.dll__fileno
mov ecx, eax
call r15
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xe0], rax
mov ecx, 2
call r14
mov rcx, rax
call sub.msvcrt.dll__fileno
mov ecx, eax
call r15
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xe8], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rdi
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
lea r8, [rsp + 0x58]
mov rcx, rsi
mov rdx, rax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140007419
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x54]
jmp 0x140007431
lea rcx, [0x1400194a2]
lea rdx, str.Error_creating_child_process__n
call fcn.140002330
mov eax, 0xffffffff
movaps xmm6, xmmword [rsp + 0x20f0]
add rsp, 0x2100
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140007620
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
mov ecx, 0x2000
call sub.msvcrt.dll_malloc
mov rsi, rax
test rax, rax
je 0x14000766f
mov rcx, rdi
xor edx, edx
mov r8d, 2
call fcn.14000e630
test eax, eax
js 0x14000766f
mov rcx, rdi
call fcn.14000e640
movsxd rbp, eax
cmp rbp, rbx
jae 0x14000768e
xor r15d, r15d
mov rcx, rsi
call sub.msvcrt.dll_free
mov rax, r15
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x30], rdi
lea rax, [rbx - 1]
mov qword [rsp + 0x28], rax
mov rax, rbx
neg rax
mov qword [rsp + 0x20], rax
xor r15d, r15d
jmp 0x1400076c4
mov rax, qword [rsp + 0x28]
lea rbp, [rax + r12]
test r12, r12
mov r15d, 0
je 0x140007672
lea r12, [rbp - 0x2000]
cmp rbp, 0x2000
cmovb r12, r15
mov r13, rbp
sub r13, r12
mov rdi, r13
sub rdi, rbx
jb 0x140007672
mov r15, qword [rsp + 0x30]
mov rcx, r15
mov edx, r12d
xor r8d, r8d
call fcn.14000e630
test eax, eax
js 0x14000766f
mov edx, 1
mov rcx, rsi
mov r8, r13
mov r9, r15
call sub.msvcrt.dll_fread
cmp rax, r13
jne 0x14000766f
inc rdi
je 0x1400076b0
add rbp, qword [rsp + 0x20]
lea rdi, [r12 - 1]
mov r13, rsi
sub r13, r12
mov rcx, r13
add rcx, rbp
mov rdx, r14
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x140007752
dec rbp
cmp rdi, rbp
jne 0x140007730
jmp 0x1400076b0
mov r15, rbp
jmp 0x140007672

Function at 0x140007dc0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140022380]
test rax, rax
je 0x140007dfb
mov dword [rsp + 0x20], 0x18
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, eax
xor eax, eax
cmp ecx, 1
sbb eax, eax
jmp 0x140007e0c
lea rcx, str.Security_descriptor_is_not_initialized__n
call fcn.1400021d0
mov eax, 0xffffffff
add rsp, 0x38
ret
Function at 0x14000dc40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.14000e760
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.14000e760
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x14000dfb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_AreFileApisANSI]
xor ebx, ebx
test eax, eax
sete bl
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movzx eax, byte [rsi]
cmp eax, 0x5c
je 0x14000dfea
cmp eax, 0x2f
jne 0x14000e079
movzx ecx, byte [rsi + 1]
cmp ecx, 0x5c
je 0x14000dffc
cmp ecx, 0x2f
jne 0x14000e079
movzx edx, byte [rsi + 2]
add rsi, 2
test dl, dl
je 0x14000e091
xor r15d, r15d
mov r14, qword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
xor ecx, ecx
xor ebp, ebp
jmp 0x14000e03e
mov ecx, ebx
call r14
mov ecx, 1
test eax, eax
je 0x14000e048
xor eax, eax
movzx edx, byte [rsi + 1]
inc rsi
mov r15d, eax
test dl, dl
je 0x14000e091
test ecx, ecx
je 0x14000e020
xor eax, eax
xor ecx, ecx
jmp 0x14000e030
movzx eax, byte [rsi]
cmp al, 0x2f
sete dl
cmp al, 0x5c
sete cl
or cl, dl
movzx eax, cl
test r15d, r15d
jne 0x14000e044
test cl, cl
je 0x14000e044
mov eax, 1
mov ecx, 0
cmp ebp, 1
mov ebp, 1
jne 0x14000e030
jmp 0x14000e091
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x14000e087
add al, 0x9f
cmp al, 0x19
ja 0x14000e094
cmp byte [rsi + 1], 0x3a
jne 0x14000e094
add rsi, 2
mov qword [rdi], rsi
movzx edx, byte [rsi]
test dl, dl
je 0x14000e139
xor r15d, r15d
mov r14, qword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
xor ecx, ecx
jmp 0x14000e0c5
mov qword [rdi + 0x18], r10
mov eax, r9d
movzx edx, byte [rsi + 1]
inc rsi
mov r15d, eax
test dl, dl
je 0x14000e139
test ecx, ecx
mov ecx, 0
jne 0x14000e0dc
mov ecx, ebx
call r14
mov ecx, 1
test eax, eax
je 0x14000e104
test r15d, r15d
setne r8b
xor eax, eax
mov dl, 1
test r8b, r8b
je 0x14000e0b7
test dl, dl
je 0x14000e0b7
mov rdx, qword [rdi + 0x18]
mov qword [rdi + 8], rdx
mov qword [rdi + 0x10], rsi
xor r10d, r10d
mov r9d, eax
jmp 0x14000e0b0
movzx eax, byte [rsi]
cmp al, 0x2f
sete cl
cmp al, 0x5c
sete al
or al, cl
movzx eax, al
mov edx, eax
xor dl, 1
xor ecx, ecx
test r15d, r15d
setne r8b
jne 0x14000e0e7
mov r9d, 1
mov r10, rsi
test dl, dl
je 0x14000e0b0
jmp 0x14000e0e7
mov qword [rdi + 0x20], rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000eb60
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140017008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000ebcb
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000ebcb
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000ebcb
movzx edx, word [rax + 6]
test edx, edx
je 0x14000ebcb
sub rcx, qword [0x140017008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x14000ebb8
add rax, 0x28
dec edx
je 0x14000ebcb
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x14000ebb0
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x14000ebb0
ret
xor eax, eax
ret

Function at 0x14000ebd0
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140017008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x14000ec05
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x14000ec05
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x14000ec05
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x14000ec80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140017008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14000ecac
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000ecac
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x14000ecae
xor eax, eax
ret
Function at 0x140003470
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x58
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
movaps xmm9, xmmword [rdx]
movaps xmm10, xmmword [rdx + 0xa0]
movaps xmmword [rcx], xmm9
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movaps xmmword [rcx + 0xa0], xmm10
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140016710
Capabilities:
Parse pe header

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
movzx eax, word [rdx]
cmp eax, 0x5a4d
jne 0x14001679c
movsxd rax, dword [rdx + 0x3c]
test rax, rax
je 0x1400167a1
cmp eax, 0x40
jb 0x140016876
cmp rax, r8
ja 0x14001688a
movzx r10d, word [rax + rdx + 0x18]
cmp r10d, 0x20b
je 0x1400167a6
mov r9b, 5
cmp r10d, 0x10b
jne 0x1400167d0
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x1400167d0
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x14c
jne 0x1400167d0
mov r9b, 4
test byte [rsi + 0x16], 2
je 0x1400167d0
lea r9, [rax + 0xf8]
cmp r9, r8
ja 0x14001689f
lea r10, [rsi + 4]
xor edi, edi
jmp 0x140016802
xor r9d, r9d
jmp 0x1400167d0
mov r9b, 1
jmp 0x1400167d0
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x1400167d0
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x8664
jne 0x1400167d0
mov r9b, 4
test byte [rsi + 0x16], 2
jne 0x1400167e9
mov byte [rcx], r9b
mov qword [rcx + 0x18], 2
mov rax, rcx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea r9, [rax + 0x108]
cmp r9, r8
ja 0x14001689f
lea r10, [rsi + 4]
mov edi, 1
mov r11, r8
sub r11, r9
movzx r14d, word [r10 + 2]
lea r10, [r14*8]
lea r10, [r10 + r10*4]
mov rbx, r11
sub rbx, r10
jb 0x1400168b4
add rax, 0xffffffffffffffc0
lea r11, [rdx + 0x40]
add r9, rdx
add r10, r9
mov ebp, r14d
shr ebp, 8
mov qword [rcx], rdx
mov qword [rcx + 8], r11
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rdi
mov qword [rcx + 0x20], rsi
mov qword [rcx + 0x28], r9
mov byte [rcx + 0x30], r14b
mov dword [rcx + 0x31], ebp
mov byte [rcx + 0x37], 0
mov word [rcx + 0x35], 0
mov qword [rcx + 0x38], r10
mov qword [rcx + 0x40], rbx
mov qword [rcx + 0x48], rdx
mov qword [rcx + 0x50], r8
jmp 0x1400167db
lea r8, [0x1400f7388]
mov ecx, 0x40
mov rdx, rax
call fcn.1400e9380
lea r9, [0x1400f7388]
mov rcx, rax
mov rdx, r8
mov r8, r9
call fcn.1400e9300
lea rax, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001fmemexec_0.2.0_srcpeparserpe.rs
mov rcx, r9
mov rdx, r8
mov r8, rax
call fcn.1400e9280
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001fmemexec_0.2.0_srcpeparser_section.rs
mov rcx, r10
mov rdx, r11
call fcn.1400e9280
int3
Function at 0x140017480
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1400174c2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x1400174ca
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400174db
jmp 0x1400174f2
xor r10d, r10d
jmp 0x14001757d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400174f2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140017509
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140017529
add r11, r8
jmp 0x14001765a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1400175f2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1400175a0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x140017610
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140017622
jmp 0x14001763c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14001763c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140017656
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret

Function at 0x140032920
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
test eax, eax
je 0x140032962
movabs rax, 0x8000000000000000
mov qword [rsi], rax
jmp 0x140032993
mov rcx, qword [rbp - 8]
call sub.KERNEL32.dll_lstrlenW
movsxd r8, eax
mov rdx, qword [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.1400badc0
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 0x1400a7a40
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xb0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x28], 0xfffffffffffffffe
mov qword [rbp + 0x18], rcx
mov rax, qword [rcx]
nop
mov rdx, rax
xor rdx, 3
lock cmpxchg qword [rcx], rdx
jne 0x1400a7a60
test al, 1
je 0x1400a7b29
test al, 2
jne 0x1400a7b41
xor rax, 3
mov qword [rbp], rax
mov rcx, rbp
lea rdx, [rbp + 0x18]
call fcn.140093dd0
test rax, rax
je 0x1400a7abe
mov qword [rbp + 0x10], rax
mov rcx, rax
mov qword [rbp + 0x20], rdx
call qword [rdx]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rcx, qword [rbp + 0x10]
je 0x1400a7abe
mov r8, qword [rax + 0x10]
call fcn.140015df0
mov rcx, qword [rbp + 0x18]
mov qword [rbp + 8], 1
mov rax, 0xffffffffffffffc0
lock xadd qword [rcx], rax
shr rax, 6
cmp rax, qword [rbp + 8]
jb 0x1400a7b59
jne 0x1400a7b1f
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x20], rax
lea rcx, [rax + 0x28]
call fcn.14008bc30
mov rax, qword [rbp + 0x20]
mov rax, qword [rax + 0x58]
test rax, rax
je 0x1400a7b0b
mov rcx, qword [rbp + 0x20]
mov rcx, qword [rcx + 0x60]
call qword [rax + 0x18]
mov edx, 0x80
mov r8d, 0x80
mov rcx, qword [rbp + 0x20]
call fcn.140015df0
nop
add rsp, 0xb0
pop rbp
ret
lea rcx, str.assertion_failed:_prev.is_running__
lea r8, [0x140105af0]
mov edx, 0x23
call fcn.1400e8dd0
lea rcx, str.assertion_failed:__prev.is_complete__
lea r8, [0x140105b30]
mov edx, 0x25
call fcn.1400e8dd0
mov qword [rbp - 8], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x28], rax
lea rax, [fcn.1400e3a50]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 8]
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], rax
lea rax, str.current:___sub:_H_
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x38], 0
lea rax, [rbp - 0x28]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], 2
lea rdx, [0x140105b78]
lea rcx, [rbp - 0x58]
call fcn.1400e8d00
int3

Function at 0x1400a8060
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x1400b60c0
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 + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x1400b6160
jmp 0x1400b614f
jae 0x1400b6220
cmp r8, 0x201
jae 0x1400b6160
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400b61b8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x1400b618f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400e8120
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400b61e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400b6288
mov r8d, r14d
cmp r15, r8
jne 0x1400b6140
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400b62b5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400b614f
jmp 0x1400b6160
cmp rsi, r8
jb 0x1400b62cf
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400badc0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x1400b6271
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140015df0
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 + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x1400b6259
jmp 0x1400b6271
lea rcx, str.internal_error:_entered_unreachable_codeX
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400e8dd0
jmp 0x1400b62e4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.1400e9300
ud2
Function at 0x1400b77b0
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x1400b77c0
mov rcx, rdx
mov rdx, r8
jmp fcn.1400b77d0
mov rcx, rdx
mov rdx, r8
jmp fcn.1400c2390

Function at 0x1400be990
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.1400e40e0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.1400e4908
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x1400c6710]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.1400c6200
cmp qword [rbp + 0xfe8], 0
jne 0x1400beb67
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x1400beb33
cmp r12, 0x1000
ja 0x1400beb89
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x1400beb07
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x1400beab0
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x1400beb0d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x1400beaf0
jbe 0x1400bea60
jmp 0x1400beb75
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x1400bea15
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.1400b00d0
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 + 0xff0]
call fcn.1400b00d0
jmp 0x1400beb33
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.1400e9380
jmp 0x1400beb9d
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.1400e9300
ud2