joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011688
Capabilities:
Set console window title

Disassembly:
test rcx, rcx
je 0x1400116d7
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 r15, rcx
cmp qword [0x14004cbb0], r12
je 0x1400116d9
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 [0x14004cbc8], r12d
jne 0x1400116b9
jmp 0x140026b90
mov ecx, 0x20c
call fcn.140011100
mov rdi, rax
test rax, rax
je 0x1400116b9
mov edx, 0x104
mov rcx, rax
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_GetConsoleTitleW]
nop dword [rax + rax]
test eax, eax
je 0x1400116b9
or r14, 0xffffffffffffffff
mov rcx, r14
inc rcx
cmp word [r15 + rcx*2], r12w
jne 0x140026bc9
add ecx, dword [0x14004cb70]
add eax, ecx
mov rcx, rdi
movsxd rsi, eax
add rsi, 0xa
lea ebp, [rax + 0xa]
lea rdx, [rsi + rsi]
call fcn.14000ef70
mov rbx, rax
test rax, rax
je 0x140026ce1
cmp byte [0x14004cbcc], r12b
mov rdi, rax
je 0x140026c24
mov ecx, dword [0x14004cb70]
mov r8, r15
sub ebp, ecx
mov edx, ebp
lea rcx, [rax + rcx*2]
call fcn.1400158f0
jmp 0x140026cd2
lea rax, [rsi - 1]
cmp rax, 0x7ffffffe
ja 0x140026cac
mov rcx, rsi
mov rax, rbx
cmp word [rax], r12w
je 0x140026c46
add rax, 2
sub rcx, 1
jne 0x140026c36
test rcx, rcx
je 0x140026c53
mov rax, rsi
sub rax, rcx
jmp 0x140026c56
mov rax, r12
test rcx, rcx
je 0x140026cac
mov rdx, rsi
lea rcx, [rbx + rax*2]
sub rdx, rax
je 0x140026c9d
sub rax, rsi
lea r8, [rdx + 0x7ffffffe]
add r8, rax
lea r9, [0x140039920]
sub r9, rcx
test r8, r8
je 0x140026c9d
movzx eax, word [r9 + rcx]
test ax, ax
je 0x140026c9d
mov word [rcx], ax
dec r8
add rcx, 2
sub rdx, 1
jne 0x140026c7e
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r12w
inc r14
cmp word [rbx + r14*2], r12w
jne 0x140026cac
mov r8, r15
mov dword [0x14004cb70], r14d
mov rdx, rsi
mov rcx, rbx
call fcn.1400157fc
mov byte [0x14004cbcc], 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_SetConsoleTitleW]
nop dword [rax + rax]
mov rcx, rdi
call fcn.140014240
nop
jmp 0x1400116b9
Function at 0x1400149d8
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov ebp, 0x2000
lea rdi, [0x1400409a0]
xor esi, esi
mov r8d, ebp
mov rdx, rdi
mov word [0x1400409a0], si
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x140014a33
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
cmp byte [0x14004cbc5], sil
je 0x140014b2c
lea rdx, [0x140037b40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140014b7b
lea rdx, str.ERRORLEVEL
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140014b5d
lea rdx, str.CMDEXTVERSION
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14002723a
lea rdx, str.CMDCMDLINE
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140027245
lea rdx, str.DATE
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140014b8d
lea rdx, str.TIME
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140014b33
lea rdx, str.RANDOM
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140027257
lea rdx, str.HIGHESTNUMANODENUMBER
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x14002726b
xor eax, eax
jmp 0x140014a1d
mov r9d, ebp
mov r8, rdi
mov edx, 1
xor ecx, ecx
call fcn.14000d9a8
movsxd rcx, eax
add rcx, rcx
cmp rcx, 0x4000
jae 0x140014ba1
mov word [rcx + rdi], si
jmp 0x140014a1a
mov r9d, dword [0x14004ca24]
lea r8, [0x1400379c8]
mov rdx, rbp
mov rcx, rdi
call fcn.14000daf0
jmp 0x140014a1a
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call fcn.14001a478
jmp 0x140014a1a
mov r9d, ebp
mov r8, rdi
mov edx, 1
xor ecx, ecx
call fcn.140008f5c
jmp 0x140014b45
call fcn.14001fa58
int3
mov r9d, 2
jmp 0x140014b64
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCommandLineW]
nop dword [rax + rax]
nop
jmp 0x140014a1d
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_rand]
nop dword [rax + rax]
mov r9d, eax
jmp 0x140014b64
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x38], esi
call qword [sym.imp.api_ms_win_core_systemtopology_l1_1_0.dll_GetNumaHighestNodeNumber]
nop dword [rax + rax]
mov r9d, dword [rsp + 0x38]
jmp 0x140014b64
Function at 0x1400176fc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400400b0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], cx
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
mov dword [rsp + 0x22], 0x5c003a
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
cmp eax, 1
seta bl
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001f920
add rsp, 0x30
pop rbx
ret
Function at 0x14001a328
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov byte [0x140050d80], sil
test rdx, rdx
je 0x14001a35b
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], si
jne 0x14001a349
neg rax
sbb rax, rax
and rdx, rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
nop dword [rax + rax]
mov rbx, qword [0x1400449a8]
mov edi, eax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
call fcn.14001a3bc
mov rbx, qword [rsp + 0x30]
test edi, edi
mov qword [0x1400449a8], rax
sete sil
mov eax, esi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14001a3bc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
nop dword [rax + rax]
xor ebp, ebp
mov rbx, rax
mov edi, ebp
test rax, rax
je 0x14001a456
mov rcx, rax
cmp word [rax], bp
je 0x14001a401
movzx eax, word [rcx]
add rcx, 2
test ax, ax
jne 0x14001a3f0
cmp word [rcx], bp
jne 0x14001a3f0
sub rcx, rbx
add rcx, 2
sar rcx, 1
lea esi, [rcx + rcx]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, esi
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14001a447
mov r8d, esi
mov rdx, rbx
mov rcx, rax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001a478
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1400400b0]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebp, ebp
movsxd rdi, edx
movzx esi, r8w
mov rbx, rcx
test r8w, r8w
jne 0x14001a4d0
mov rdx, rcx
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001f920
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov eax, 0x3d
movzx ecx, si
mov word [rsp + 0x20], ax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_towupper]
nop dword [rax + rax]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], 0x3a
mov word [rsp + 0x22], ax
call fcn.1400149d8
test rax, rax
je 0x140027834
mov rdx, rdi
mov r8, rax
mov rcx, rbx
call fcn.1400158f0
jmp 0x14001a4b5
movzx ecx, si
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_towupper]
nop dword [rax + rax]
mov word [rbx], ax
mov eax, 1
mov dword [rbx + 2], 0x5c003a
mov word [rbx + 6], bp
jmp 0x14001a4b7
Function at 0x14001d744
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
xor edi, edi
mov rsi, rcx
bt edx, 0xa
jb 0x140028155
or qword [rbp + 0x77], 0xffffffffffffffff
lea r9, [rbp - 9]
xor r8d, r8d
lea rdx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToRelativeNtPathName_U_WithStatus]
nop dword [rax + rax]
test eax, eax
js 0x140028155
cmp word [rbp - 9], di
ja 0x140028116
mov eax, edi
lea rcx, [rbp - 0x29]
mov qword [rbp + 7], rax
mov qword [rbp + 0x27], rcx
lea r9, [rbp - 0x19]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x5040
lea rcx, [rbp + 0x77]
mov dword [rbp + 0x17], 0x30
lea r8, [rbp + 0x17]
mov qword [rbp + 0x1f], rax
mov edx, 0x10000
mov dword [rbp + 0x2f], 0x40
movdqu xmmword [rbp + 0x37], xmm0
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
lea rcx, [rbp - 9]
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlReleaseRelativeName]
nop dword [rax + rax]
lea rcx, [rbp - 0x29]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop dword [rax + rax]
test ebx, ebx
js 0x140028155
mov rcx, qword [rbp + 0x77]
call fcn.14001d860
mov ebx, 1
test eax, eax
jne 0x140028123
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
je 0x140028155
mov rbx, qword [rsp + 0xc0]
mov eax, edi
add rsp, 0xa0
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbp + 7]
lea rcx, [rbp - 9]
jmp 0x14001d79f
mov rcx, qword [rbp + 0x77]
lea r8, [rbp + 0x6f]
mov r9d, ebx
mov byte [rbp + 0x6f], bl
lea rdx, [rbp - 0x19]
mov dword [rsp + 0x20], 0xd
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
mov ebx, edi
setns bl
jmp 0x14001d82a
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001d842
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14001d842
Function at 0x14001da20
Capabilities:
Enumerate files on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rdi, qword [rsp + 0x70]
mov rax, rdx
xor edx, edx
mov dword [rsp + 0x28], 2
mov r14d, r8d
mov r15, rcx
xor bl, bl
mov r8, rdi
test r9d, r9d
mov rcx, rax
sete dl
and qword [r11 - 0x28], 0
xor r9d, r9d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
nop dword [rax + rax]
mov rsi, qword [rsp + 0x78]
mov ebp, 1
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
jne 0x14001dac1
cmp qword [rsi], 0xffffffffffffffff
jne 0x14001daee
mov bpl, bl
test bl, bl
jne 0x14001daa4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [0x14004cc50], eax
mov al, bpl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
movabs r10, 0xb69dae883e540370
mov edx, r14d
mov rcx, rdi
mov rax, r15
call qword [0x1400374c8]
test eax, eax
je 0x14001db95
and dword [0x14004cc50], 0
mov bl, bpl
jmp 0x14001da85
mov rdi, qword [0x14004cc68]
test rdi, rdi
je 0x14001db21
mov edx, dword [0x14004cc70]
cmp edx, dword [0x14004cc74]
jge 0x14001db54
test rdi, rdi
je 0x14001daa4
mov rax, qword [rsi]
movsxd rcx, edx
add edx, ebp
mov dword [0x14004cc70], edx
mov qword [rdi + rcx*8], rax
jmp 0x14001daa4
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x28]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rdi, rax
mov edx, dword [0x14004cc70]
mov qword [0x14004cc68], rax
jmp 0x14001db08
lea eax, [rdx + 1]
movsxd rbx, eax
shl rbx, 3
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r9, rbx
mov r8, rdi
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapReAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1400298d2
add dword [0x14004cc74], ebp
jmp 0x14001db45
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
je 0x14001dbba
cmp qword [rsi], 0xffffffffffffffff
jne 0x14001dac1
jmp 0x14001da85
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
or qword [rsi], 0xffffffffffffffff
jmp 0x14001da85
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [rsi]
mov dword [0x14004cc50], eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
or qword [rsi], 0xffffffffffffffff
xor al, al
jmp 0x14001daa7
Function at 0x14001e320
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x1400400b0]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r13d, r13d
lea rdx, [rsp + 0x20]
mov r12d, r13d
mov edi, r13d
mov r15, rcx
call fcn.14001e5ac
test eax, eax
jns 0x14001e3cc
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov ecx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
test r15, r15
je 0x14001e4d1
mov rcx, qword [r15 + 0x78]
call fcn.14000fbec
mov rbx, rax
test rax, rax
je 0x14001e4d4
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rax + rsi*2], r13w
jne 0x14001e3a9
mov r14d, 0x104
cmp rsi, r14
jb 0x14001e49a
mov ebp, 1
jmp 0x14001e501
mov eax, dword [rsp + 0x20]
cmp eax, 3
jb 0x14001e3d8
add eax, 0xfffffff0
test eax, eax
jne 0x14001e387
lea r12d, [rax + 1]
mov ecx, 0x40002748
mov ebp, r12d
call fcn.14001e548
mov rdi, rax
test rax, rax
je 0x14001e4e9
or rsi, 0xffffffffffffffff
inc rsi
cmp word [rax + rsi*2], r13w
jne 0x14001e3fd
mov r14d, 0x104
cmp rsi, r14
jae 0x14001e4ee
mov ecx, 0x208
call fcn.140011100
mov rbx, rax
test rax, rax
je 0x14001e4ee
mov r8, rdi
mov edx, r14d
mov rcx, rax
call fcn.1400158f0
test r15, r15
jne 0x14001e4b2
mov edx, r14d
lea rcx, [rsp + 0x30]
lea r15, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_GetConsoleTitleW]
nop dword [rax + rax]
test eax, eax
je 0x14001e4e1
mov rdx, rdi
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll_wcsstr
test rax, rax
je 0x14001e488
add rsi, rsi
add r15, rsi
mov rdx, rdi
mov rcx, r15
call sub.api_ms_win_crt_private_l1_1_0.dll_wcsstr
test rax, rax
jne 0x14001e475
mov r8, r15
mov rdx, r14
mov rcx, rbx
call fcn.1400157fc
test eax, eax
jne 0x14001e4e1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_SetConsoleTitleW]
nop dword [rax + rax]
mov byte [0x14004cbcc], r13b
jmp 0x14001e4d4
mov r8, qword [r15 + 0x78]
test r8, r8
jne 0x14001e4c0
mov ebp, r13d
jmp 0x14001e4e1
mov rdx, r14
mov rcx, rbx
call fcn.1400157fc
test eax, eax
je 0x14001e49a
jmp 0x14001e4e1
mov rbx, r13
mov ebp, r13d
test r12d, r12d
je 0x14001e4e9
test rbx, rbx
je 0x14001e4e9
mov rcx, rbx
call fcn.140014240
test rdi, rdi
je 0x14001e4fd
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
test ebp, ebp
je 0x14001e50b
xor edx, edx
lea ecx, [rdx + 8]
call fcn.140002bfc
mov eax, ebp
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14001f920
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140020184
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x1400201ce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400201ce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400201ce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400201ce
cmp dword [rcx + 0x84], 0xe
jbe 0x1400201ce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400201d0
xor al, al
add rsp, 0x28
ret
Function at 0x140024dd4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x1400400b0]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r14d, 0x104
mov byte [rbp + 0x160], 1
mov dil, dl
mov qword [rbp + 0x168], r14
mov rsi, rcx
xor ebx, ebx
mov r8d, r14d
mov qword [rbp + 0x158], rbx
xor edx, edx
lea rcx, [rsp + 0x50]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov r8d, r14d
mov qword [rbp + 0x378], rbx
xor edx, edx
mov byte [rbp + 0x380], 1
lea rcx, [rbp + 0x170]
mov qword [rbp + 0x388], r14
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rcx, [rsp + 0x50]
call fcn.140035730
test eax, eax
js 0x140024fd0
lea rcx, [rbp + 0x170]
call fcn.140035730
test eax, eax
js 0x140024fd0
cmp qword [rbp + 0x378], rbx
lea rdx, [rbp + 0x170]
mov r8d, dword [rbp + 0x388]
mov rcx, rsi
cmovne rdx, qword [rbp + 0x378]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumePathNameW]
nop dword [rax + rax]
test eax, eax
je 0x140024fd0
cmp qword [rbp + 0x378], rbx
lea rcx, [rbp + 0x170]
cmovne rcx, qword [rbp + 0x378]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
nop dword [rax + rax]
test eax, 0xfffffffb
je 0x140024fd5
cmp qword [rbp + 0x158], rbx
lea rdx, [rsp + 0x50]
mov eax, dword [rbp + 0x168]
lea rcx, [rbp + 0x170]
cmovne rdx, qword [rbp + 0x158]
cmp qword [rbp + 0x378], rbx
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x40]
cmovne rcx, qword [rbp + 0x378]
xor r9d, r9d
mov qword [rsp + 0x30], rdx
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
nop dword [rax + rax]
test eax, eax
je 0x140024fd0
cmp qword [rbp + 0x158], rbx
lea rcx, [rsp + 0x50]
lea rdx, str.NTFS
cmovne rcx, qword [rbp + 0x158]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140024fd0
cmp qword [rbp + 0x158], rbx
lea rcx, [rsp + 0x50]
lea rdx, str.REFS
cmovne rcx, qword [rbp + 0x158]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x140024fd0
test dil, dil
je 0x140024fd5
cmp qword [rbp + 0x158], rbx
lea rcx, [rsp + 0x50]
lea rdx, str.CSVFS
cmovne rcx, qword [rbp + 0x158]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140024fd5
mov ebx, 1
lea rcx, [rbp + 0x170]
call fcn.14001e0bc
lea rcx, [rsp + 0x50]
call fcn.14001e0bc
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.14001f920
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14002d9dc
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1400400b0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r12d, r12d
mov r15, rcx
test rdx, rdx
jne 0x14002daf2
mov r14d, r12d
or rbp, 0xffffffffffffffff
mov qword [rsp + 0x38], r12
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r12
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], r12
mov edx, r14d
mov rcx, r15
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14002dadf
cmp word [rsp + 0x50], 0x2e
jne 0x14002daa7
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.14002e808
mov rdi, rax
test rax, rax
je 0x14002dac0
mov rax, rbp
inc rax
cmp word [rdi + rax*2], r12w
jne 0x14002da7a
test rax, rax
je 0x14002da9f
mov r8, rdi
lea rdx, [rsp + 0x50]
lea rcx, str._s_s_r_n
call fcn.14000dc90
mov ebx, eax
mov rcx, rdi
call fcn.140014240
cmp dword [0x1400449b4], r12d
jne 0x14002dad5
inc r14d
test ebx, ebx
je 0x14002da18
jmp 0x14002db8a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, eax
xor edx, edx
call fcn.140002bfc
mov eax, 1
jmp 0x14002db8c
cmp eax, 0x103
jne 0x14002db8a
mov ebx, r12d
jmp 0x14002db8a
mov rcx, rdx
call fcn.14000fbec
mov rcx, rax
call fcn.14000fcb0
mov rdi, rax
test rax, rax
je 0x14002dad5
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x14002db27
mov word [rax], r12w
mov rdx, rdi
mov rcx, r15
call fcn.14002e808
mov r14, rax
test rax, rax
je 0x14002db63
or rbp, 0xffffffffffffffff
inc rbp
cmp word [rax + rbp*2], r12w
jne 0x14002db3e
test rbp, rbp
je 0x14002db63
mov r8, r14
lea rcx, str._s_s_r_n
mov rdx, rdi
call fcn.14000dc90
mov ebx, eax
jmp 0x14002db7a
mov r8, rdi
mov edx, 1
mov ecx, 0x400023a3
call fcn.140002bfc
mov ebx, 1
mov rcx, r14
call fcn.140014240
mov rcx, rdi
call fcn.140014240
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001f920
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14002e650
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x1400400b0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor edi, edi
test rcx, rcx
je 0x14002e7d8
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14002e7d8
lea r8d, [rdi + 0x40]
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.14002e9a0
test eax, eax
je 0x14002e7c9
mov eax, edi
mov ecx, 0x5a4d
cmp cx, word [rsp + 0x60]
sete al
test eax, eax
je 0x14002e7c9
mov edx, dword [rsp + 0x9c]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14002e7c9
lea r8d, [rdi + 4]
mov rcx, rsi
lea rdx, [rsp + 0x40]
call fcn.14002e9a0
test eax, eax
je 0x14002e7c9
cmp dword [rsp + 0x40], 0x4550
jne 0x14002e7c9
lea r8d, [rdi + 0x14]
mov rcx, rsi
lea rdx, [rsp + 0x48]
call fcn.14002e9a0
test eax, eax
je 0x14002e7c9
cmp word [rsp + 0x58], di
jbe 0x14002e7c9
movzx ebx, word [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8d, ebx
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14002e7c9
movzx r8d, word [rsp + 0x58]
mov rdx, rax
mov rcx, rsi
call fcn.14002e9a0
test eax, eax
je 0x14002e7a9
movzx ecx, word [rsp + 0x48]
mov rdx, rbx
call fcn.14002e968
test rax, rax
je 0x14002e7a9
movzx edi, word [rax]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop dword [rax + rax]
movzx eax, di
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14001f920
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret