joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800066c0
Capabilities:
Query environment variable

Disassembly:
jmp 0x1800066d0
push rbx
sub rsp, 0x470
mov rax, qword [0x1800300a0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov edx, 0x3d
mov rbx, rcx
call sym.VBoxNetFltNobj.dll_nocrt_strchr
test rax, rax
jne 0x1800068dd
mov qword [rsp + 0x460], r12
cmp rbx, 0x1000
jb 0x1800068ce
movabs rax, 0xffff800000000000
test rax, rbx
jne 0x1800068ce
lea r12, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxRuntime_r3winenv_win.cpp
mov rcx, rbx
mov r8, r12
lea rdx, [rsp + 0x38]
call fcn.180005c80
xor ebx, ebx
test eax, eax
js 0x1800068d0
mov qword [rsp + 0x488], rbp
xor ecx, ecx
mov qword [rsp + 0x490], rsi
mov ebp, ebx
mov qword [rsp + 0x468], rdi
mov edi, 0x200
mov qword [rsp + 0x458], r14
lea r14, [rsp + 0x40]
mov qword [rsp + 0x450], r15
mov r15d, ebx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
jb 0x180006824
nop dword [rax]
mov rcx, r15
call fcn.180004880
cmp edi, 0x8000
jae 0x180006858
lea r8d, [rsi + rbp]
mov edx, ebp
shl rdx, 9
mov ecx, ebp
shl ecx, 9
mov eax, r8d
cmp rax, rdx
lea rdx, [0x18000d947]
cmovb r8d, ecx
mov ecx, r8d
add rcx, rcx
mov edi, r8d
call fcn.180004820
mov r14, rax
mov r15, rax
test rax, rax
je 0x180006858
xor ecx, ecx
inc ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
jae 0x1800067b0
test esi, esi
jne 0x18000682c
test eax, eax
jne 0x180006858
mov edx, esi
lea r8, [rsp + 0x30]
mov qword [rsp + 0x28], r12
xor r9d, r9d
mov rcx, r14
mov qword [rsp + 0x20], rbx
call fcn.180003e90
mov rdx, qword [rsp + 0x30]
test eax, eax
cmovs rdx, rbx
mov qword [rsp + 0x30], rdx
mov rcx, r15
call fcn.180004880
mov rcx, qword [rsp + 0x38]
call fcn.180003db0
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x450]
mov r14, qword [rsp + 0x458]
mov rdi, qword [rsp + 0x468]
mov rsi, qword [rsp + 0x490]
mov rbp, qword [rsp + 0x488]
test rbx, rbx
je 0x1800068d0
mov eax, 1
lock xadd dword [0x180031f24], eax
inc eax
lea rdx, [0x180031f30]
and eax, 0x3f
mov rcx, rbx
xchg qword [rdx + rax*8], rcx
call fcn.180003db0
mov r12, qword [rsp + 0x460]
mov rax, rbx
jmp 0x1800068df
xor ebx, ebx
mov r12, qword [rsp + 0x460]
mov rax, rbx
jmp 0x1800068df
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180001220
add rsp, 0x470
pop rbx
ret
Function at 0x1800066d0
Capabilities:
Query environment variable

Disassembly:
jmp 0x1800066d0
push rbx
sub rsp, 0x470
mov rax, qword [0x1800300a0]
xor rax, rsp
mov qword [rsp + 0x440], rax
mov edx, 0x3d
mov rbx, rcx
call sym.VBoxNetFltNobj.dll_nocrt_strchr
test rax, rax
jne 0x1800068dd
mov qword [rsp + 0x460], r12
cmp rbx, 0x1000
jb 0x1800068ce
movabs rax, 0xffff800000000000
test rax, rbx
jne 0x1800068ce
lea r12, str.C:DevelAntidetect4PersonalVirtualBox_srcVBoxRuntime_r3winenv_win.cpp
mov rcx, rbx
mov r8, r12
lea rdx, [rsp + 0x38]
call fcn.180005c80
xor ebx, ebx
test eax, eax
js 0x1800068d0
mov qword [rsp + 0x488], rbp
xor ecx, ecx
mov qword [rsp + 0x490], rsi
mov ebp, ebx
mov qword [rsp + 0x468], rdi
mov edi, 0x200
mov qword [rsp + 0x458], r14
lea r14, [rsp + 0x40]
mov qword [rsp + 0x450], r15
mov r15d, ebx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
jb 0x180006824
nop dword [rax]
mov rcx, r15
call fcn.180004880
cmp edi, 0x8000
jae 0x180006858
lea r8d, [rsi + rbp]
mov edx, ebp
shl rdx, 9
mov ecx, ebp
shl ecx, 9
mov eax, r8d
cmp rax, rdx
lea rdx, [0x18000d947]
cmovb r8d, ecx
mov ecx, r8d
add rcx, rcx
mov edi, r8d
call fcn.180004820
mov r14, rax
mov r15, rax
test rax, rax
je 0x180006858
xor ecx, ecx
inc ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
mov r8d, edi
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, edi
jae 0x1800067b0
test esi, esi
jne 0x18000682c
test eax, eax
jne 0x180006858
mov edx, esi
lea r8, [rsp + 0x30]
mov qword [rsp + 0x28], r12
xor r9d, r9d
mov rcx, r14
mov qword [rsp + 0x20], rbx
call fcn.180003e90
mov rdx, qword [rsp + 0x30]
test eax, eax
cmovs rdx, rbx
mov qword [rsp + 0x30], rdx
mov rcx, r15
call fcn.180004880
mov rcx, qword [rsp + 0x38]
call fcn.180003db0
mov rbx, qword [rsp + 0x30]
mov r15, qword [rsp + 0x450]
mov r14, qword [rsp + 0x458]
mov rdi, qword [rsp + 0x468]
mov rsi, qword [rsp + 0x490]
mov rbp, qword [rsp + 0x488]
test rbx, rbx
je 0x1800068d0
mov eax, 1
lock xadd dword [0x180031f24], eax
inc eax
lea rdx, [0x180031f30]
and eax, 0x3f
mov rcx, rbx
xchg qword [rdx + rax*8], rcx
call fcn.180003db0
mov r12, qword [rsp + 0x460]
mov rax, rbx
jmp 0x1800068df
xor ebx, ebx
mov r12, qword [rsp + 0x460]
mov rax, rbx
jmp 0x1800068df
xor eax, eax
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180001220
add rsp, 0x470
pop rbx
ret

Function at 0x180008200
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r8, [rax - 1]
cmp r8, 0xfffffffffffffffd
ja 0x180008242
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], 0
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1408020b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140802237
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1408020e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408020c7
add dl, dl
jne 0x1408020ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14080214e
xor eax, eax
add dl, dl
jne 0x1408020fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140802205
add dl, dl
jne 0x14080210e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14080211b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140802128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140802135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140802142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408020d6
mov eax, 1
add dl, dl
jne 0x14080215e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14080216b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140802153
sub eax, ebx
mov ebx, 1
jne 0x1408021a4
mov ecx, 1
add dl, dl
jne 0x140802186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140802193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14080217b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408020d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408021c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408021cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408021b5
cmp eax, 0x7d00
jae 0x1408021f3
cmp eax, 0x500
jb 0x1408021ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408020d6
cmp eax, 0x7f
ja 0x1408021f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408020d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14080222a
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1408020d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000d300
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 0x14000d3a0
jmp 0x14000d38f
jae 0x14000d45f
cmp r8, 0x201
jae 0x14000d3a0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14000d3f7
sub r8, rbx
sub rdi, rbx
cmp r8, rdi
jbe 0x14000d3cf
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.14002efd0
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 0x14000d420
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000d4cb
mov r8d, r13d
cmp r12, r8
jne 0x14000d380
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000d4ff
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000d38f
jmp 0x14000d3a0
cmp r14, r8
jb 0x14000d519
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call fcn.14000fdf0
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 0x14000d4b4
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.140006770
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 0x14000d49f
jmp 0x14000d4b4
lea rcx, str.internal_error:_entered_unreachable_code_b
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.140030380
jmp 0x14000d52e
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.140030730
ud2
Function at 0x140013330
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.14002e2e0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r15, rcx
lea r12, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r12
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r13, [rbp + 0xffc]
lea rbx, [0x140018740]
lea r14, [rbp + 0xfb0]
mov rsi, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r15
mov r8d, 0x1000
mov rcx, r15
mov rdx, r12
call case.0x140018290.237
mov r15, rdx
mov qword [rbp + 0xfd8], rax
mov qword [rbp + 0xfe0], rdx
test rax, rax
jne 0x140013520
test r15, r15
je 0x1400134ec
cmp r15, 0x1000
ja 0x140013542
xor r12d, r12d
nop word cs:[rax + rax]
mov r8d, r15d
sub r8d, r12d
lea rdx, [r12 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r13
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0x1008]
mov r9, r14
call rsi
test eax, eax
je 0x1400134c0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140013450
mov ecx, dword [rbp + 0x1000]
mov eax, dword [rbp + 0x1004]
mov rdx, rcx
shl rdx, 0x20
or rdx, 2
xor r8d, r8d
test ecx, ecx
setne r8b
cmove rdx, rax
mov qword [rbp + 0xfe8], r8
mov qword [rbp + 0xff0], rdx
jne 0x1400134e0
add r12, rax
cmp r12, r15
je 0x1400134b0
jbe 0x140013400
jmp 0x14001352e
mov r15, qword [rbp + 0x1010]
lea r12, [rbp - 0x50]
jmp 0x1400133ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe8], 1
mov qword [rbp + 0xff0], rax
lea rcx, [rbp + 0xff0]
call fcn.1400079c0
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfe0]
call fcn.1400079c0
jmp 0x1400134ec
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r12
mov rdx, r15
call fcn.1400307a0
jmp 0x140013556
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r15
call fcn.140030730
ud2
Function at 0x140016b30
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140033e58]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140016b68
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 0x140016bbf
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x140016bcc
xor edx, edx
xor eax, eax
jmp 0x140016bf6
cmp eax, 0x103
je 0x140016c00
test eax, eax
js 0x140016bdf
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140016bf6
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, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.14000fba0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140008010
mov ecx, 7
int 0x29
ud2

Function at 0x140016c50
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x140033e58]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140016c88
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 0x140016ce6
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140016d13
test eax, eax
js 0x140016cf2
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140016d09
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, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
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.14000fba0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140008010
mov ecx, 7
int 0x29
ud2
Function at 0x140017830
Capabilities:
Create pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x158
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0xc0], xmm6
mov qword [rbp + 0xb8], 0xfffffffffffffffe
mov qword [rbp + 0x70], rcx
mov byte [rbp + 0xb5], dl
movzx eax, dl
mov ecx, 0x40080002
sub ecx, eax
mov dword [rbp + 0x64], ecx
mov r12d, 8
mov sil, 1
xorps xmm6, xmm6
lea rbx, [rbp + 0x20]
mov r13, qword [sym.imp.bcryptprimitives.dll_ProcessPrng]
xor edi, edi
xor eax, eax
mov qword [rbp - 8], rax
nop word cs:[rax + rax]

Function at 0x140018c30
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rdi, rdx
cmp qword [rdx], 0
jne 0x140018d73
mov rsi, rcx
mov rbx, qword [rdi + 0x18]
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp r8, rdx
je 0x140018d48
sub r8, rdx
add rdx, qword [rbx + 8]
mov rax, qword [rdi + 0x10]
mov ecx, 0xffffffff
cmp r8, rcx
cmovae r8, rcx
mov dword [rbp - 0x38], 0
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140018cb0
mov eax, dword [rbp - 0x38]
mov ecx, 2
test rax, rax
je 0x140018cf2
mov qword [rdi], rcx
mov qword [rdi + 8], rax
mov byte [rsi + 1], 1
jmp 0x140018cf6
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x38], rax
movabs rcx, 0xffffffff00000000
and rcx, rax
movabs rdx, 0x6d00000000
cmp rcx, rdx
je 0x140018cfa
movabs rdx, 0x3e500000000
cmp rcx, rdx
jne 0x140018d24
mov rax, rbp
jmp 0x140018d06
mov byte [rsi + 1], 0
xor eax, eax
jmp 0x140018d2a
mov qword [rbp], 1
lea rax, [rbp - 8]
mov qword [rax], 0
lea rcx, [rbp - 0x38]
call fcn.1400079c0
mov rcx, qword [rbp]
mov rax, qword [rbp - 8]
cmp rcx, 2
jne 0x140018d35
mov qword [rsi + 8], rax
mov al, 1
mov byte [rsi], al
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
test rcx, rcx
jne 0x140018c99
mov ecx, 1
jmp 0x140018ca3
test r8, r8
mov ecx, 0x10
mov eax, 1
cmove rax, rcx
mov rcx, rbx
mov rdx, r8
mov r8, rax
call fcn.14002f070
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
jmp 0x140018c61
mov qword [rbp - 0x38], 0
lea rdx, [rbp - 0x38]
mov rcx, rdi
call fcn.14002ef40
int3
Function at 0x14001e3c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.14001fe60
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x20]
movabs r14, 0x8000000000000000
cmp rcx, r14
jne 0x14001e3fe
mov qword [rbp - 8], rax
mov qword [rbp - 0x10], r14
jmp 0x14001e424
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdx
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x40]
call case.0x14000f324.317
mov rdi, qword [rbp - 0x10]
cmp rdi, r14
jne 0x14001e43d
lea rcx, [rbp - 8]
call fcn.1400079c0
mov qword [rsi], r14
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rbx, qword [rbp - 8]
mov r15, qword [rbp]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001e460
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
jmp 0x14001e430
mov qword [rsi], r14
test rdi, rdi
je 0x14001e430
add rdi, rdi
mov r8d, 2
mov rcx, rbx
mov rdx, rdi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
jmp fcn.140006770

Function at 0x14001f980
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x140040141]
mov ecx, 0x10
mov edx, 8
call fcn.140006760
stosb byte [rdi], al
insd dword [rdi], dx
invalid
dec dword [rax - 0x7b]
ror byte [rdi], 0x84
lodsb al, byte [rsi]
add byte [rax], al
invalid
mov rbx, rax
mov qword [rax], r14
xor byte [rax - 0x77], cl
js 0x14001f9d1
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
add dword [rax], eax
lea r8, [0x14001fb20]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
add byte [rax - 0x77], cl
ret 0x8548
test rax, rax
jne 0x14001fa5d
invalid
mov rax, qword [rbx]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x20], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x10], rax
mov rax, qword [rax]
test rax, rax
je 0x14001fa1a
mov rcx, qword [rbp - 0x18]
call rax
mov rcx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
invalid
invalid
mov rdx, qword [rax + 8]
push rax
or byte [rax - 0x7b], cl
invalid
je case.0x140014b6a.277
mov r8, qword [rax + 0x10]
call fcn.140006770
cmp al, 0x6d
invalid
invalid
mov edx, 0x10
mov r8d, 8
add byte [rax], al
add byte [rax - 0x75], cl
loopne case.0x140014b6a.378
sub byte [rbp - 2], ch
invalid
call qword [sym.imp.KERNEL32.dll_GetLastError]
add dword [rax], eax
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
invalid
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
add byte [rax], al
mov edx, 0x10
call fcn.1400301d0
ud2
Function at 0x14002ce40
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 0x14002ceca
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 0x14002cec0
cmp r10, r11
jb 0x14002cf46
cmp r10, rdx
ja 0x14002cf58
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14002cec2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14002cea0
jmp 0x14002cf27
ja 0x14002ceca
mov r11, r10
cmp rax, r8
jne 0x14002ce67
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14002cf2b
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 0x14002cf00
mov r8, r10
sub ecx, r9d
jns 0x14002cf1e
jmp 0x14002cf2d
cmp r10, rdx
je 0x14002cf3a
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14002cf2d
xor al, 1
cmp r8, rdx
jne 0x14002cee0
jmp 0x14002cf2d
xor eax, eax
jmp 0x14002cf2d
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.140030260
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400307a0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140030730
int3

Function at 0x14002e828
Capabilities:
Parse pe header

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