joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140017ff8
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 0x14002033f
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 0x14002033f
cmp word [rbp - 9], di
ja 0x140020300
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 0x14002033f
mov rcx, qword [rbp + 0x77]
call fcn.140018114
mov ebx, 1
test eax, eax
jne 0x14002030d
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 0x14002033f
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 0x140018053
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 0x1400180de
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 0x1400180f6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x1400180f6
Function at 0x14001823c
Capabilities:
Enumerate files on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rdi
mov qword [r11 + 0x20], r14
push r15
sub rsp, 0x30
mov rax, rdx
mov dword [rsp + 0x28], 2
xor edx, edx
mov ebp, r8d
mov r8, qword [rsp + 0x60]
mov r14, rcx
xor bl, bl
mov rcx, rax
test r9d, r9d
sete dl
and qword [r11 - 0x18], 0
xor r9d, r9d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
nop dword [rax + rax]
mov rdi, qword [rsp + 0x68]
or r15, 0xffffffffffffffff
mov qword [rdi], rax
cmp rax, r15
jne 0x1400182cd
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov dword [0x140045ba8], eax
mov al, bl
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
mov rcx, qword [rsp + 0x60]
mov edx, ebp
mov rax, r14
call qword [0x140033e78]
test eax, eax
je 0x140018365
and dword [0x140045ba8], 0
mov bl, 1
mov rax, qword [rdi]
cmp rax, r15
je 0x140018329
mov r8, qword [0x140045bc0]
test r8, r8
je 0x140018332
mov edx, dword [0x140045bc8]
cmp edx, dword [0x140045bcc]
jge 0x14001838b
test r8, r8
je 0x140018327
mov rax, qword [rdi]
movsxd rcx, edx
inc edx
mov dword [0x140045bc8], edx
mov qword [r8 + rcx*8], rax
mov bl, 1
test bl, bl
jne 0x1400182af
jmp 0x14001829d
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 r8, rax
mov edx, dword [0x140045bc8]
mov qword [0x140045bc0], rax
jmp 0x140018310
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
je 0x1400183d0
cmp qword [rdi], r15
jne 0x1400182cd
jmp 0x14001829d
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 r8, qword [0x140045bc0]
mov r9, rbx
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 r8, rax
test rax, rax
je 0x1400250f8
inc dword [0x140045bcc]
jmp 0x140018356
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
mov rax, r15
mov qword [rdi], r15
jmp 0x1400182f1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov rcx, qword [rdi]
mov dword [0x140045ba8], eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
nop dword [rax + rax]
xor al, al
mov qword [rdi], r15
jmp 0x1400182b1
Function at 0x1400186f0
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 [0x14003d0f8]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor r12d, r12d
lea rdx, [rsp + 0x20]
mov r15d, r12d
mov ebp, r12d
mov r13, rcx
call fcn.1400188c0
test eax, eax
js 0x14002517c
mov eax, dword [rsp + 0x20]
cmp eax, 3
jae 0x1400251e8
test eax, eax
jne 0x140025198
lea r15d, [rax + 1]
mov ecx, 0x40002748
mov esi, r15d
call fcn.14001885c
mov rbp, rax
test rax, rax
je 0x1400251d8
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], r12w
jne 0x140018775
mov r14d, 0x104
cmp rdi, r14
jae 0x1400187ff
mov ecx, 0x208
call fcn.14000cd90
mov rbx, rax
test rax, rax
je 0x1400187ff
mov r8, rbp
mov edx, r14d
mov rcx, rax
call fcn.1400113e0
test r13, r13
je 0x1400251f0
mov r8, qword [r13 + 0x78]
test r8, r8
je 0x14001884f
mov edx, r14d
mov rcx, rbx
call fcn.140011300
test eax, eax
jne 0x1400187f2
test rbx, rbx
je 0x1400187ea
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_SetConsoleTitleW]
nop dword [rax + rax]
mov byte [0x140045b2c], r12b
mov esi, r12d
test r15d, r15d
je 0x1400187ff
test rbx, rbx
je 0x1400187ff
mov rcx, rbx
call fcn.14000ff70
test rbp, rbp
je 0x140018813
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
test esi, esi
jne 0x1400251d8
mov eax, esi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140018f80
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
mov esi, r12d
jmp 0x1400187f2
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 r13, r13
je 0x140025265
mov rcx, qword [r13 + 0x78]
call fcn.1400109f4
mov rbx, rax
test rax, rax
je 0x1400187ea
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], r12w
jne 0x1400251ba
mov r14d, 0x104
cmp rdi, r14
jb 0x1400187cf
mov esi, 1
xor edx, edx
lea ecx, [rdx + 8]
call fcn.140003278
nop
jmp 0x14001881b
add eax, 0xfffffff0
jmp 0x14001874c
mov edx, r14d
lea rcx, [rsp + 0x30]
lea r12, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_console_l2_2_0.dll_GetConsoleTitleW]
nop dword [rax + rax]
test eax, eax
je 0x1400187f2
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
je 0x140025247
add rdi, rdi
add r12, rdi
mov rdx, rbp
mov rcx, r12
call qword [sym.imp.msvcrt.dll_wcsstr]
nop dword [rax + rax]
test rax, rax
jne 0x14002522d
mov r8, r12
mov rdx, r14
mov rcx, rbx
call fcn.140011300
xor r12d, r12d
test eax, eax
jne 0x1400187f2
jmp 0x1400187cf
mov rbx, r12
jmp 0x1400187cf
Function at 0x1400193dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140019428
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140019420
cmp dword [rcx + 0x3c], edx
jl 0x140019420
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140019420
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140019428
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14002711c
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x14003d0f8]
xor rax, rsp
mov qword [rbp + 0x140], rax
xor r15d, r15d
mov r14, r8
mov qword [r8], r15
mov ebx, 0x104
mov r8, rcx
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400113e0
mov ecx, ebx
lea rax, [rsp + 0x30]
cmp word [rax], r15w
je 0x140027183
add rax, 2
sub rcx, 1
jne 0x140027173
test rcx, rcx
je 0x140027190
mov rax, rbx
sub rax, rcx
jmp 0x140027193
mov rax, r15
test rcx, rcx
je 0x1400271ed
mov rdx, rbx
lea rcx, [rsp + 0x30]
lea rcx, [rcx + rax*2]
sub rdx, rax
je 0x1400271de
lea r8, [rax + 0x7ffffefa]
add r8, rdx
lea rax, [0x140035d48]
sub rax, rcx
test r8, r8
je 0x1400271de
movzx r9d, word [rax + rcx]
test r9w, r9w
je 0x1400271de
mov word [rcx], r9w
dec r8
add rcx, 2
sub rdx, 1
jne 0x1400271bd
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14002723a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
je 0x140027372
mov edx, 0xc9
mov rcx, qword [rbp + 0x168]
call fcn.140026cfc
mov esi, eax
jmp 0x140027375
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], r15d
mov rcx, rdi
mov dword [rsp + 0x20], r15d
call fcn.14002627c
mov esi, eax
test eax, eax
jns 0x140027277
mov rcx, qword [rbp + 0x168]
lea r8, [0x140035d40]
mov r9d, eax
mov edx, 0xcf
call fcn.140026d1c
jmp 0x140027375
mov rcx, rbx
lea rax, [rsp + 0x30]
cmp word [rax], r15w
je 0x14002728f
add rax, 2
sub rcx, 1
jne 0x14002727f
test rcx, rcx
je 0x14002729c
mov rax, rbx
sub rax, rcx
jmp 0x14002729f
mov rax, r15
test rcx, rcx
je 0x1400272f4
lea rdx, [rsp + 0x30]
lea rdx, [rdx + rax*2]
sub rbx, rax
je 0x1400272e5
lea rcx, [rax + 0x7ffffefa]
add rcx, rbx
lea r8, [0x140035d50]
sub r8, rdx
test rcx, rcx
je 0x1400272e5
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400272e5
mov word [rdx], ax
dec rcx
add rdx, 2
sub rbx, 1
jne 0x1400272c6
test rbx, rbx
lea rax, [rdx - 2]
cmovne rax, rdx
mov word [rax], r15w
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14002731e
mov edx, 0xd5
jmp 0x140027227
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14002627c
mov esi, eax
test eax, eax
jns 0x140027356
mov rcx, qword [rbp + 0x168]
lea r8, [0x140035d40]
mov r9d, eax
mov edx, 0xd7
call fcn.140026d1c
mov rcx, rbx
call fcn.140025740
jmp 0x140027375
mov rcx, rbx
call fcn.140025740
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov esi, r15d
test rdi, rdi
je 0x140027382
mov rcx, rdi
call fcn.140025740
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140018f80
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002992c
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 [0x14003d0f8]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r12d, r12d
mov r15, rcx
test rdx, rdx
jne 0x140029a42
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 0x140029a2f
cmp word [rsp + 0x50], 0x2e
jne 0x1400299f7
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.14002a73c
mov rdi, rax
test rax, rax
je 0x140029a10
mov rax, rbp
inc rax
cmp word [rdi + rax*2], r12w
jne 0x1400299ca
test rax, rax
je 0x1400299ef
mov r8, rdi
lea rdx, [rsp + 0x50]
lea rcx, str._s_s_r_n
call fcn.140013448
mov ebx, eax
mov rcx, rdi
call fcn.14000ff70
cmp dword [0x140041924], r12d
jne 0x140029a25
inc r14d
test ebx, ebx
je 0x140029968
jmp 0x140029ada
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.140003278
mov eax, 1
jmp 0x140029adc
cmp eax, 0x103
jne 0x140029ada
mov ebx, r12d
jmp 0x140029ada
mov rcx, rdx
call fcn.1400109f4
mov rcx, rax
call fcn.14000b900
mov rdi, rax
test rax, rax
je 0x140029a25
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
test rax, rax
je 0x140029a77
mov word [rax], r12w
mov rdx, rdi
mov rcx, r15
call fcn.14002a73c
mov r14, rax
test rax, rax
je 0x140029ab3
or rbp, 0xffffffffffffffff
inc rbp
cmp word [rax + rbp*2], r12w
jne 0x140029a8e
test rbp, rbp
je 0x140029ab3
mov r8, r14
lea rcx, str._s_s_r_n
mov rdx, rdi
call fcn.140013448
mov ebx, eax
jmp 0x140029aca
mov r8, rdi
mov edx, 1
mov ecx, 0x400023a3
call fcn.140003278
mov ebx, 1
mov rcx, r14
call fcn.14000ff70
mov rcx, rdi
call fcn.14000ff70
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140018f80
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14002a58c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x14003d0f8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor edi, edi
test rcx, rcx
je 0x14002a70d
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 0x14002a70d
lea r8d, [rdi + 0x40]
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.14002a8d4
test eax, eax
je 0x14002a6fe
mov eax, 0x5a4d
cmp ax, word [rsp + 0x60]
jne 0x14002a6fe
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 0x14002a6fe
lea r8d, [rdi + 4]
mov rcx, rsi
lea rdx, [rsp + 0x40]
call fcn.14002a8d4
test eax, eax
je 0x14002a6fe
cmp dword [rsp + 0x40], 0x4550
jne 0x14002a6fe
lea r8d, [rdi + 0x14]
mov rcx, rsi
lea rdx, [rsp + 0x48]
call fcn.14002a8d4
test eax, eax
je 0x14002a6fe
cmp word [rsp + 0x58], di
jbe 0x14002a6fe
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 0x14002a6fe
movzx r8d, word [rsp + 0x58]
mov rdx, rax
mov rcx, rsi
call fcn.14002a8d4
test eax, eax
je 0x14002a6de
movzx ecx, word [rsp + 0x48]
mov rdx, rbx
call fcn.14002a89c
test rax, rax
je 0x14002a6de
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.140018f80
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002a73c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rdi, rcx
xor r14d, r14d
mov ebx, r14d
mov dword [r11 + 0x18], r14d
mov qword [r11 - 0x28], rcx
test rdx, rdx
je 0x14002a791
cmp word [rdx], r14w
je 0x14002a791
lea rax, [r11 - 0x28]
mov qword [r11 - 0x38], rax
lea r9d, [r14 + 1]
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14002a791
mov ecx, eax
jmp 0x14002a839
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
cmp eax, 2
jne 0x14002a7d6
lea rcx, [0x1400347c0]
call fcn.14000b900
mov rbx, rax
mov qword [rsp + 0x38], rax
jmp 0x14002a846
test eax, eax
jne 0x14002a78a
mov ecx, dword [rsp + 0x70]
call fcn.14000cd90
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14002a834
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x78]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
mov esi, eax
test eax, eax
je 0x14002a846
mov rcx, rbx
call fcn.14000ff70
mov rbx, r14
mov qword [rsp + 0x38], rbx
mov ecx, esi
jmp 0x14002a839
mov ecx, 8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
nop
mov rcx, qword [rsp + 0x30]
cmp rdi, rcx
je 0x14002a85c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x14002a8d4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov edi, r8d
mov ebx, 1
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x14002a907
cmp edi, dword [rsp + 0x58]
je 0x14002a909
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14002aa30
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rdi, r8
mov rsi, rdx
mov r14, rcx
xor r15d, r15d
test r8, r8
je 0x14002ab33
cmp word [r8], r15w
je 0x14002ab33
mov qword [r11 - 0x48], r15
lea rax, [r11 + 0x20]
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x58], r15
mov dword [rsp + 0x28], 2
mov dword [r11 - 0x68], r15d
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0xa0], eax
test eax, eax
jne 0x14002aaf8
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x14002aaa2
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0xa0], eax
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x14002ab13
mov r8, rdi
mov rdx, rsi
lea rcx, str._s_s_r_n
call fcn.140013448
jmp 0x14002abd7
xor edx, edx
mov ecx, ebx
call fcn.140003278
mov r8, rsi
mov edx, 1
mov ecx, 0x235d
call fcn.140003278
jmp 0x14002abd7
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0xa0], eax
test eax, eax
je 0x14002abd7
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x2000000
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0xa0], eax
test eax, eax
je 0x14002ab98
cmp eax, 2
je 0x14002abd7
xor edx, edx
mov ecx, eax
call fcn.140003278
jmp 0x14002abd7
lea rdx, [0x1400347c0]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
mov ebx, eax
mov dword [rsp + 0xa0], eax
test eax, eax
je 0x14002abc6
xor edx, edx
mov ecx, eax
call fcn.140003278
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
test ebx, ebx
jne 0x14002ac06
call fcn.1400197bc
test al, al
je 0x14002abfd
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x8000000
call qword [sym.imp.ext_ms_win_cmd_util_l1_1_0.dll_DoSHChangeNotify]
nop dword [rax + rax]
jmp 0x14002ac06
mov eax, ebx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14002d878
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x30
mov rsi, rcx
mov r14d, r8d
mov ecx, dword [rcx]
mov r15, r9
mov rbp, rdx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FlushFileBuffers]
nop dword [rax + rax]
mov ecx, dword [rsi]
call fcn.14000d208
xor edx, edx
mov rcx, rbp
call fcn.140007420
mov dword [rsi], eax
cmp eax, 0xffffffff
je 0x14002d99d
mov ebx, r14d
mov ecx, eax
neg ebx
call qword [sym.imp.msvcrt.dll__get_osfhandle]
nop dword [rax + rax]
mov r9d, 2
xor r8d, r8d
mov rcx, rax
mov edx, ebx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
nop dword [rax + rax]
mov ecx, dword [rsi]
call qword [sym.imp.msvcrt.dll__get_osfhandle]
nop dword [rax + rax]
mov rdx, qword [rsp + 0x70]
lea r9, [rsp + 0x50]
and qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, r14d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x14002d993
cmp dword [rsp + 0x50], r14d
jne 0x14002d993
mov rdx, qword [rsp + 0x70]
mov r8d, r14d
mov rcx, r15
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14002d993
mov ecx, dword [rsi]
call fcn.14000d208
mov edx, 1
mov rcx, rbp
call fcn.140007420
mov dword [rsi], eax
cmp eax, 0xffffffff
je 0x14002d99d
mov ecx, eax
call qword [sym.imp.msvcrt.dll__get_osfhandle]
nop dword [rax + rax]
mov r9d, 2
xor r8d, r8d
mov rcx, rax
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
nop dword [rax + rax]
xor eax, eax
jmp 0x14002d9b4
mov ecx, dword [rsi]
call fcn.14000d208
or dword [rsi], 0xffffffff
mov r8, rbp
mov edx, 1
mov ecx, 0x4000271f
call fcn.140003278
mov eax, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rsi
ret