joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002000
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Resume thread
Self delete

Disassembly:
push rbp
lea rbp, [rsp - 0x320]
sub rsp, 0x420
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rbp + 0x310], rax
mov r8d, 0x104
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1400021d8
mov r8d, 0x104
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x1400021d8
mov r8d, 0x104
lea rdx, [rbp + 0x200]
lea rcx, str.COMSPEC
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400021d8
lea rdx, str.__c_del
mov qword [rsp + 0x430], rbx
lea rcx, [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, str.___nul
lea rcx, [rbp + 0xf0]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x200]
call qword [sym.imp.KERNEL32.dll_lstrcatA]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
xor ebx, ebx
mov dword [rsp + 0x70], 0x68
movups xmmword [rbp - 0x60], xmm0
mov dword [rbp - 0x54], 1
movups xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x50], bx
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x30], rax
movups xmmword [rbp - 0x70], xmm0
mov qword [rsp + 0x60], rax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x100
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea edx, [rbx + 0xf]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x200]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xc
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rbx, qword [rsp + 0x430]
test eax, eax
je 0x1400021b3
mov rcx, qword [rsp + 0x50]
mov edx, 0x40
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov rcx, qword [rsp + 0x58]
mov edx, 0xfffffff1
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x1400021da
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x20
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
mov rcx, qword [rbp + 0x310]
xor rcx, rsp
call fcn.1400030f0
add rsp, 0x420
pop rbp
ret
Function at 0x1400065ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x140007088]
test rax, rax
je 0x1400065f6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400065f6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400065f6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400065f6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400065f6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400065f8
xor al, al
add rsp, 0x28
ret
Function at 0x140011098
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x1400110d6
cmp word [rcx], 0x5a4d
jne 0x1400110d6
movsxd rdx, dword [rcx + 0x3c]
cmp edx, 0x400
jg 0x1400110d6
call fcn.1400075c9
mov rcx, qword [0x140edc830]
mov rbx, rax
call fcn.140015130
cmp byte [rax], 0
jne 0x1400110d6
cmp dword [rbx], 0x4550
je 0x1400110d8
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140014c40
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140edc880]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [0x140edc860]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140014c78
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140014c80
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140014d80
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140edc840]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140014da0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140014da8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140014da0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140014dfd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140014df4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140014da0
add rax, 0x28
cmp rax, r9
jne 0x140014de0
xor eax, eax
ret

Function at 0x140014e00
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140edc840]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140014e1f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140014e28
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140014e1f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140014ec0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140edc840]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140014edf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140014ee8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rbp - 8], rcx
mov r14, qword [rdx]
add r9, r8
mov qword [rbp - 0x30], r8
mov qword [rbp - 0x28], r9
mov word [rbp - 0x20], 0
mov dword [rbp - 0x18], 1
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x30]
call fcn.140001f30
mov dword [rbp + 0x1c], 0x800
mov dword [rbp + 0x18], 0
movzx eax, byte [0x140029181]
mov ecx, 0x800
mov edx, 1
call fcn.140002330
test rax, rax
je 0x140001cc7
mov rbx, rax
mov qword [rbp], 0x800
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rdi, qword [rbp - 0x48]
lea r12, [rbp + 0x18]
mov r13, qword [sym.imp.advapi32.dll_RegQueryValueExW]
mov rsi, qword [rbp]
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x38], rax
sub rsi, rax
nop word cs:[rax + rax]
lea rax, [rbp + 0x1c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9, r12
call r13
mov r15d, eax
cmp eax, 0xea
jne 0x140001bd2
mov r8d, dword [rbp + 0x1c]
cmp rsi, r8
jae 0x140001b90
mov rcx, rbp
mov rdx, qword [rbp - 0x38]
call fcn.14001c7d0
mov rbx, qword [rbp + 8]
jmp 0x140001b72
movabs r14, 0x8000000000000000
test r15d, r15d
jne 0x140001c05
mov eax, dword [rbp + 0x1c]
mov qword [rbp + 0x10], rax
mov eax, dword [rbp + 0x18]
cmp eax, 0xb
jbe 0x140001c40
movabs r15, 0xde00000002
mov rdx, qword [rbp]
test rdx, rdx
jne 0x140001c16
jmp 0x140001c24
shl r15, 0x20
or r15, 2
mov rdx, qword [rbp]
test rdx, rdx
je 0x140001c24
mov r8d, 1
mov rcx, rbx
call fcn.140002340
mov rdx, qword [rbp - 0x50]
test rdx, rdx
je 0x140001c7a
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.140002340
jmp 0x140001c7a
movups xmm0, xmmword [rbp]
movaps xmmword [rbp - 0x30], xmm0
mov rcx, qword [rbp + 0x10]
mov qword [rbp - 0x20], rcx
mov byte [rbp - 0x18], al
mov rsi, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x50]
test rdx, rdx
je 0x140001c71
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.140002340
cmp rsi, r14
jne 0x140001c9c
mov r15, qword [rbp - 0x28]
mov rsi, qword [rbp - 8]
mov qword [rsi + 8], r15
mov qword [rsi], r14
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rdx, [rbp - 0x30]
mov rsi, qword [rbp - 8]
mov rcx, rsi
call fcn.140002910
movabs rax, 0x8000000000000000
cmp qword [rbp - 0x30], rax
je 0x140001c85
lea rcx, [rbp - 0x30]
call fcn.140001780
jmp 0x140001c85
mov ecx, 1
mov edx, 0x800
call fcn.14001d300
ud2
Function at 0x140001dd0
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.140002c80
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.140001f30
movzx r9d, byte [rbp]
mov rdx, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x10]
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 qword [sym.imp.advapi32.dll_RegSetValueExW]
mov edi, eax
mov rdx, qword [rbp - 0x30]
test rdx, rdx
je 0x140001e6e
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 8]
call fcn.140002340
mov rdx, qword [rbp - 0x18]
test rdx, rdx
je 0x140001e85
mov r8d, 1
mov rcx, rsi
call fcn.140002340
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 0x1400058f0
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 0x140005990
jmp 0x14000597f
jae 0x140005a50
cmp r8, 0x201
jae 0x140005990
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x1400059e8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x1400059bf
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14001cb60
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 0x140005a11
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140005ab8
mov r8d, r14d
cmp r15, r8
jne 0x140005970
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140005ae5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000597f
jmp 0x140005990
cmp rsi, r8
jb 0x140005aff
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140007c50
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 0x140005aa1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140002340
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 0x140005a89
jmp 0x140005aa1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.14001d4e0
jmp 0x140005b14
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14001d930
ud2
Function at 0x14000c160
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.14000e310
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
movabs r14, 0x8000000000000000
cmp rax, r14
je 0x14000c1d2
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.14000d020
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
cmp rax, r14
jne 0x14000c1f0
mov qword [rsi + 8], rdx
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 8], rax
mov qword [rbp], rdx
mov r8, qword [rbp + 0x70]
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.14000e310
mov rax, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
cmp rax, r14
je 0x14000c242
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.14000d020
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
cmp rbx, r14
jne 0x14000c273
mov r14, qword [rbp]
mov r15, qword [rbp + 8]
mov qword [rsi + 8], rdi
mov qword [rsi], 1
test r15, r15
je 0x14000c1dd
add r15, r15
mov r8d, 2
mov rcx, r14
mov rdx, r15
call fcn.140002340
jmp 0x14000c1dd
mov qword [rbp - 0x18], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x14000c350]
lea r9, [rbp - 0x18]
mov r14, qword [rbp]
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
mov r15, qword [rbp + 8]
je 0x14000c2c5
mov rax, qword [rbp - 0x18]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rbx, rbx
jne 0x14000c2e7
jmp 0x14000c255
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rbx, rbx
je 0x14000c255
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call fcn.140002340
jmp 0x14000c255
Function at 0x14000c370
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 [0x1400203b8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14000c3b4
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 0x14000c41a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14000c451
test eax, eax
js 0x14000c42b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14000c444
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.140007990
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.140003ba0
mov ecx, 7
int 0x29
ud2
Function at 0x14001ac50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001acca
mov rax, rdx
mov rdx, qword [rsp + 0x70]
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 0x14001acc0
cmp r11, r10
ja 0x14001ad55
cmp r10, rdx
ja 0x14001ad67
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001acc2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001aca0
jmp 0x14001ad37
ja 0x14001acca
mov r11, r10
cmp rax, r8
jne 0x14001ac72
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001ad3b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001ad10
mov r8, r10
sub ecx, r9d
jns 0x14001ad2e
jmp 0x14001ad3d
cmp r10, rdx
je 0x14001ad49
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001ad3d
xor al, 1
cmp r8, rdx
jne 0x14001acf0
jmp 0x14001ad3d
xor eax, eax
jmp 0x14001ad3d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.14001d380
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14001d9b0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14001d930
int3

Function at 0x14001c300
Capabilities:
Parse pe header

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14000f903
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x14000f8ce
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsi]
mov rdx, rsi
mov r9, rax
call fcn.1400146c0
mov rcx, qword [rsi]
call fcn.140014650
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x14000f8fc
mov qword [rsi], rdi
call fcn.140014640
mov r8, qword [rsp + 0x38]
mov rcx, rdi
mov rdx, rsi
mov r9, rax
call fcn.140014680
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov edx, dword [rdx - 0x26]
or eax, 0xaefc368b
popfq
movabs al, byte [0xfefd99291730ee95]
std
invalid
invalid
std
invalid
cmc
push 0xffffffffffffffb2
stosb byte [rdi], al
test dword [rax], 0x30a1b459
and eax, 0xc51f9e98
movabs al, byte [0x992ba54fae87a440]
mov qword [rsi + 0x462d34bd], r9
push rbx
adc al, 0x86
sub esi, dword [0xe9b15cb7]
fimul dword [rsi]
invalid

Function at 0x140010e90
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140065020]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov r8d, 0x104
mov rdx, rdi
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140010eff
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140010e20
test al, al
jne 0x140010f0d
add rbx, 8
cmp rbx, 0x18
jne 0x140010ecd
xor esi, esi
jmp 0x140010f10
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14002a340
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x416c80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x416e0b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00624300]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x416ce5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x416cf4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x416d13
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x416d23
cmp rbx, 0x1000
jae 0x416ceb
jmp 0x416d8d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x416d35
xor edx, edx
jmp 0x416d84
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00624300]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x416d19
jmp 0x416d08
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00624300]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x004e2617]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004e2a9d]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004e4d58]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS
Function at 0x416e40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x417066
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x00624300]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x416eb3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x416ec2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x416ee5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x416ef5
cmp rbx, 0x1000
jae 0x416eb9
nop
jmp 0x416f78
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x416f0d
xor esi, esi
jmp 0x416f6a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x00624300]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x416eeb
jmp 0x416ed6
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00624300]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x417000
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x004e2ab6]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x004e2a9d]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
call sym.runtime.printuint
nop
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004df514]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x416fa0
call sym.runtime.printlock
lea rax, [0x004e2ab6]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x004e2a9d]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x004e4626]
mov ebx, 0x1f
nop dword [rax + rax]
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.runtime.sysUsedOS