joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001fc0
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 0x1400035d0
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea rcx, [rbp - 0x18]
mov rdx, r9
call fcn.1400044b0
mov rdi, qword [rdi]
add rsi, rbx
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rsi
mov word [rbp - 0x40], 0
mov dword [rbp - 0x38], 1
lea rcx, [rbp - 0x30]
lea rdx, [rbp - 0x50]
call fcn.1400018f0
movzx r9d, byte [rbp]
mov rdx, qword [rbp - 0x30]
mov rsi, qword [rbp - 0x18]
mov eax, dword [rbp - 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov qword [rbp + 8], rdx
xor r8d, r8d
call sub.ADVAPI32.dll_RegSetValueExW
mov edi, eax
mov rdx, qword [rbp - 0x28]
test rdx, rdx
je 0x14000366d
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 8]
call fcn.1400037d0
mov rdx, qword [rbp - 0x10]
test rdx, rdx
je 0x140003684
mov r8d, 1
mov rcx, rsi
call fcn.1400037d0
mov rcx, rdi
shl rcx, 0x20
or rcx, 2
xor eax, eax
test edi, edi
cmovne rax, rcx
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400040c0
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 0x14000414c
movsxd rax, dword [rdx + 0x3c]
test rax, rax
je 0x140004151
cmp eax, 0x40
jb 0x140004226
cmp rax, r8
ja 0x14000423c
movzx r10d, word [rax + rdx + 0x18]
cmp r10d, 0x20b
je 0x140004156
mov r9b, 5
cmp r10d, 0x10b
jne 0x140004180
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140004180
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x14c
jne 0x140004180
mov r9b, 4
test byte [rsi + 0x16], 2
je 0x140004180
lea r9, [rax + 0xf8]
cmp r9, r8
ja 0x140004253
lea r10, [rsi + 4]
xor edi, edi
jmp 0x1400041b2
xor r9d, r9d
jmp 0x140004180
mov r9b, 1
jmp 0x140004180
mov r9b, 2
cmp dword [rdx + rax], 0x4550
jne 0x140004180
lea rsi, [rdx + rax]
movzx r10d, word [rsi + 4]
mov r9b, 3
cmp r10d, 0x8664
jne 0x140004180
mov r9b, 4
test byte [rsi + 0x16], 2
jne 0x140004199
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 0x140004253
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 0x14000426a
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 0x14000418b
lea r8, [0x1409e1b78]
mov ecx, 0x40
mov rdx, rax
call fcn.140033590
ud2
lea r9, [0x1409e1b78]
mov rcx, rax
mov rdx, r8
mov r8, r9
call fcn.140033510
ud2
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.140033490
ud2
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.140033490
ud2
Function at 0x1400046a0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov qword [rbp - 0x38], 8
pxor xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x40], rdx
mov qword [rbp - 0x10], rcx
lea r12, [rdx + rcx]
add r8, r12
mov qword [rbp - 0x48], r8
movdqa xmmword [rbp - 0x20], xmm0
mov r9d, 8
xor r15d, r15d
xor edi, edi
jmp 0x14000471f
inc rdi
shl r14, 0x20
or rbx, r14
shl rsi, 0x20
or r13, rsi
sub r13, rbx
mov qword [r9 + r15*8], r13
inc r15
mov qword [rbp - 0x28], r15
cmp rdi, qword [rbp - 0x48]
jae 0x14000476a
rdtsc
mov r14, rdx
mov rbx, rax
xor eax, eax
xor ecx, ecx
mov r8, rbx
cpuid
xchg rbx, r8
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x1c], r8d
mov dword [rbp - 0x18], ecx
mov dword [rbp - 0x14], edx
rdtsc
mov rsi, rdx
mov r13, rax
cmp r15, qword [rbp - 0x30]
jne 0x140004700
lea rcx, [rbp - 0x38]
mov rdx, r15
call fcn.1400045d0
mov r9, qword [rbp - 0x38]
mov r15, qword [rbp - 0x28]
jmp 0x140004700
mov eax, dword [rbp - 0x14]
mov eax, dword [rbp - 0x18]
mov eax, dword [rbp - 0x20]
mov eax, dword [rbp - 0x1c]
test r15, r15
je 0x140004785
bsr rax, r15
xor rax, 0x3f
jmp 0x14000478a
mov eax, 0x40
mov ecx, 0x40
sub ecx, eax
mov dword [rsp + 0x20], ecx
lea r8, [rbp - 1]
mov rsi, r9
mov rcx, r9
mov rdx, r15
xor r9d, r9d
call fcn.140004a60
cmp r12, qword [rbp - 0x10]
jb 0x14000489a
cmp r12, r15
ja 0x1400048af
mov rcx, rsi
mov rsi, qword [rbp - 0x40]
test rsi, rsi
je 0x1400047d6
cmp rsi, 4
jae 0x1400047db
xor r14d, r14d
xor eax, eax
jmp 0x140004835
xor r14d, r14d
jmp 0x14000484c
mov rax, rsi
and rax, 0xfffffffffffffffc
mov rdx, qword [rbp - 0x10]
lea r8, [rcx + rdx*8]
add r8, 0x10
pxor xmm0, xmm0
xor edx, edx
pxor xmm1, xmm1
nop dword [rax + rax]
movdqu xmm2, xmmword [r8 + rdx*8 - 0x10]
paddq xmm0, xmm2
movdqu xmm2, xmmword [r8 + rdx*8]
paddq xmm1, xmm2
add rdx, 4
cmp rax, rdx
jne 0x140004800
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq r14, xmm0
cmp rax, rsi
je 0x14000484c
mov rdx, qword [rbp - 0x10]
lea rdx, [rcx + rdx*8]
nop dword [rax]
add r14, qword [rdx + rax*8]
inc rax
cmp rsi, rax
jne 0x140004840
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x140004864
shl rdx, 3
mov r8d, 8
call fcn.1400037d0
cmp rsi, 1
adc rsi, 0
mov rax, r14
or rax, rsi
shr rax, 0x20
je 0x140004882
mov rax, r14
xor edx, edx
div rsi
jmp 0x140004889
mov eax, r14d
xor edx, edx
div esi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001finside_vm_0.2.0_srclib.rs
mov rcx, qword [rbp - 0x10]
mov rdx, r12
call fcn.140033590
jmp 0x1400048c1
lea r8, str.C:UsersAdministrator.cargo_registry_srcindex.crates.io_6f17d22bba15001finside_vm_0.2.0_srclib.rs
mov rcx, r12
mov rdx, r15
call fcn.140033510
ud2
Function at 0x14000efe0
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], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x14000f070
jmp 0x14000f05f
jae 0x14000f130
cmp r8, 0x201
jae 0x14000f070
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000f0c8
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14000f09f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.1400325d0
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
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 0x14000f0f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000f198
mov r8d, r14d
cmp r15, r8
jne 0x14000f050
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000f1bb
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000f05f
jmp 0x14000f070
cmp rsi, r8
jb 0x14000f1d5
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140011980
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 rdi, rdi
je 0x14000f181
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.1400037d0
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], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x14000f169
jmp 0x14000f181
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400330c0
jmp 0x14000f1ea
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140033510
ud2
Function at 0x14000f240
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.140022d40
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x408], rax
test rax, rax
je 0x14000f3c6
mov qword [rbp + 0x400], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x418], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x14000f300
jmp 0x14000f2ef
jae 0x14000f3d8
cmp r8, 0x201
jae 0x14000f300
mov r15d, 0x200
lea r14, [rbp - 0x60]
mov r12, r8
jmp 0x14000f358
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x14000f32f
lea rcx, [rbp + 0x3e8]
mov rdx, r13
call fcn.1400325d0
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x410], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3f8], r13
mov rbx, rdi
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14000f387
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000f4ab
mov r8d, esi
cmp r12, r8
jne 0x14000f2e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000f4d5
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000f2ef
jmp 0x14000f300
lea rcx, [rbp - 0x58]
call fcn.140009350
mov byte [rsi + 0x18], 2
jmp 0x14000f46a
cmp r15, r8
jb 0x14000f4ef
lea rcx, [rbp + 0x3a0]
mov rdx, r14
call fcn.140011980
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x14000f429
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rdi
call fcn.1400037d0
cmp byte [rbp + 0x3d8], 2
jne 0x14000f481
mov rsi, qword [rbp + 0x400]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.140009350
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14000f46a
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.1400037d0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x400]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x14000f455
jmp 0x14000f46a
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x14000f411
jmp 0x14000f429
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.1400330c0
jmp 0x14000f504
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140033510
ud2
Function at 0x14000f5e0
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x14000f5f0
mov rcx, rdx
mov rdx, r8
jmp fcn.14000f600
mov rcx, rdx
mov rdx, r8
jmp fcn.140018290

Function at 0x140015080
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.1400312e0
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 sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x14001bc30]
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 case.0x14001369a.179
cmp qword [rbp + 0xfe8], 0
jne 0x140015257
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x140015223
cmp r12, 0x1000
ja 0x140015279
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 0x1400151f7
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x1400151a0
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x1400151fd
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x1400151e0
jbe 0x140015150
jmp 0x140015265
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x140015105
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.140009350
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.140009350
jmp 0x140015223
lea r8, str.library_std_src_syswindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.140033590
jmp 0x14001528d
lea r8, str.library_std_src_syswindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140033510
ud2
Function at 0x140018290
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140022d40
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x140018347
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.14001a540
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x140018347
mov rcx, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14001831b
test rsi, rsi
je 0x140018317
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1400037d0
xor esi, esi
jmp 0x140018347
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x140018344
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.1400037d0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x140018730
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push rdi
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
sub esp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x18]
call fcn.140022d40
mov rax, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x10]
test rax, rax
je case.0x140012a56.96
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.14001a540
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
test rax, rax
je case.0x140012a56.96
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rdx
mov r8, qword [rbp + 0x60]
lea rcx, [rbp - 0x18]
mov rdx, rdi
call fcn.140022d40
mov fs, word [rbp - 0x74b80000]
call 0x1307f1302
test rax, rax
je case.0x14001895f.132
mov rcx, qword [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.14001a540
mov rbx, qword [rbp - 0x40]
mov ebx, dword [rbp - 0x40]
mov rdi, qword [rbp - 0x38]
test rbx, rbx
je case.0x14001895f.132
mov qword [rbp - 0x18], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, case.0x140012cf7.85
lea r9, [rbp - 0x18]
mov r15, qword [rbp - 0x28]
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
mov r14, qword [rbp - 0x20]
je case.0x1400129ab.124
mov rax, qword [rbp - 0x18]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rdi, rdi
jne case.0x140012a56.109
jmp case.0x14001b851.86
mov qword [rsi + 8], rdx
mov qword [rsi], 1
jmp case.0x1400123e4.174
mov r14, qword [rbp - 0x20]
mov r15, qword [rbp - 0x28]
mov qword [rsi + 8], rdi
mov qword [rsi], 1
jmp case.0x14001b851.86
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdi, rdi
je case.0x14001b851.86
add rdi, rdi
mov r8d, 2
Function at 0x140018cb0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1409e48b0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140018cf4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140018d53
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x140018d62
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x140018d9a
cmp eax, 0x103
je 0x140018da4
test eax, eax
js 0x140018d7f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x140018d9a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400116c0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140009960
mov ecx, 7
int 0x29
ud2
Function at 0x140018e10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1409e48b0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140018e54
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140018eba
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140018ef1
test eax, eax
js 0x140018ecb
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140018ee4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.1400116c0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140009960
mov ecx, 7
int 0x29
ud2

Function at 0x14001acf0
Capabilities:
Create pipe
Generate random numbers via winapi

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 + 0x28], rcx
mov byte [rbp + 0xa5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x24], ecx
xor edi, edi
mov r15d, 8
mov sil, 1
xorps xmm6, xmm6
mov r12, qword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor eax, eax
mov qword [rbp - 0x10], rax
nop
Function at 0x14001c0f0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rdi, rdx
cmp qword [rdx], 0
jne 0x14001c245
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov rax, qword [rbx + 8]
test rax, rax
jne 0x14001c128
mov rdx, qword [rbx + 0x10]
lea rax, [rdx + 0xf]
cmp rax, 0xf
jbe 0x14001c208
xor eax, eax
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
je 0x14001c227
sub rax, rdx
add rdx, qword [rbx]
mov r8, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp rax, rcx
cmovae rax, rcx
mov dword [rsp + 0x2c], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x2c]
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001c189
mov ecx, dword [rsp + 0x2c]
mov eax, 2
test rcx, rcx
je 0x14001c1bb
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov byte [rsi + 1], 1
jmp 0x14001c1bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
mov qword [rsp + 0x40], rcx
cmp eax, 0x3e5
je 0x14001c1c3
cmp eax, 0x6d
jne 0x14001c1ee
mov qword [rsp + 0x30], 1
lea rax, [rsp + 0x38]
jmp 0x14001c1c8
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x14001c1f4
lea rax, [rsp + 0x30]
mov qword [rax], 0
lea rcx, [rsp + 0x40]
call fcn.140009350
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
test rax, rax
je 0x14001c1fe
cmp rax, 1
je 0x14001c172
mov qword [rsi + 8], rcx
mov al, 1
mov byte [rsi], al
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
mov eax, 1
jmp 0x14001c17c
mov r8d, 0x10
mov rcx, rbx
call fcn.140032690
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
cmp rax, rdx
jne 0x14001c135
mov r8d, 1
mov rcx, rbx
mov rdx, rax
call fcn.140032690
mov rax, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
jmp 0x14001c135
mov qword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140032580
ud2