joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000eedc
Capabilities:
Write file on windows

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 r13
push r14
push r15
sub rsp, 0x40
mov rdi, r9
mov ebx, r8d
mov rsi, rdx
mov r15d, r8d
call qword [sym.imp.msvcrt.dll__get_osfhandle]
cmp byte [0x14004b0b4], 0
mov rbp, rax
jne 0x14001a96a
mov r13d, 0x2000
lea r14, [0x1400303c0]
cmp ebx, r13d
ja 0x14001a988
test ebx, ebx
je 0x14000ef83
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov r8, rsi
mov ecx, dword [0x14003a844]
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
and qword [rsp + 0x20], 0
mov r9, rdi
mov rdx, r14
mov rcx, rbp
lea ebx, [rax - 1]
mov r8d, ebx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
je 0x14000efaa
cmp dword [rdi], ebx
jne 0x14000efaa
mov dword [rdi], r15d
mov eax, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret
xor eax, eax
jmp 0x14000ef8b
and qword [rsp + 0x20], 0
mov r9, rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
nop
jmp 0x14000ef8b
and qword [rsp + 0x38], 0
mov r9d, 0x1000
and qword [rsp + 0x30], 0
mov r8, rsi
mov ecx, dword [0x14003a844]
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
and qword [rsp + 0x20], 0
lea rdx, [0x1400303c0]
mov r8d, eax
mov r9, rdi
mov rcx, rbp
mov r14d, eax
add rsi, r13
add ebx, 0xffffe000
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_WriteFile]
test eax, eax
je 0x14000efaa
cmp dword [rdi], r14d
jne 0x14000efaa
lea r14, [0x1400303c0]
cmp ebx, r13d
ja 0x14001a988
lea r14, [0x1400303c0]
jmp 0x14000ef31
Function at 0x14000f994
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14002f008]
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_2_1.dll_GetDriveTypeW]
cmp eax, 1
seta bl
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400151c0
add rsp, 0x30
pop rbx
ret
Function at 0x1400115f0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebp, ebp
movsxd rdi, edx
movzx esi, r8w
mov rbx, rcx
test r8w, r8w
jne 0x140011641
mov rdx, rcx
mov ecx, edi
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetCurrentDirectoryW]
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400151c0
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.msvcrt.dll_towupper]
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], 0x3a
mov word [rsp + 0x22], ax
call fcn.1400086f4
test rax, rax
je 0x14001b502
mov rdx, rdi
mov r8, rax
mov rcx, rbx
call fcn.14000dc10
jmp 0x140011627
movzx ecx, si
call qword [sym.imp.msvcrt.dll_towupper]
mov word [rbx], ax
mov eax, 1
mov dword [rbx + 2], 0x5c003a
mov word [rbx + 6], bp
jmp 0x140011629

Function at 0x140011aac
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140011abe
cmp byte [0x140030364], 0
jne 0x140011ac3
add rsp, 0x28
ret
cmp qword [0x140046d30], 0
jne 0x140011abe
jmp 0x14001b630
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_SetConsoleTitleW]
and dword [0x14003033c], 0
jmp 0x140011abe

Function at 0x140011df8
Capabilities:
Get disk information

Disassembly:
push rdi
sub rsp, 0x690
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x680], rax
xor edi, edi
lea r8, [rsp + 0x260]
mov dword [0x140046d88], edi
call fcn.140011d14
test al, al
je 0x140011eb9
lea r8, [rsp + 0x260]
mov edx, 0x106
lea rcx, [rsp + 0x50]
call fcn.14000dc10
lea r8, [0x1400288e0]
mov edx, 0x106
lea rcx, [rsp + 0x50]
call fcn.14000db30
mov dword [rsp + 0x38], 0x106
lea rax, [rsp + 0x470]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeInformationW]
test eax, eax
je 0x14001b75a
lea rdx, [0x1400289e8]
lea rcx, [rsp + 0x470]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14001b748
xor al, al
mov rcx, qword [rsp + 0x680]
xor rcx, rsp
call fcn.1400151c0
add rsp, 0x690
pop rdi
ret
cmp dword [rsp + 0x40], 0xc
jne 0x140011eb9
mov al, 1
jmp 0x140011ebb
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x90
cmove eax, edi
mov dword [0x140046d88], eax
jmp 0x140011eb9
Function at 0x140011f10
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x418]
sub rsp, 0x510
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov edi, dword [0x140046d58]
lea rdx, [rbp + 0x1f0]
xor esi, esi
mov dword [rsp + 0x24], 6
xor eax, eax
mov qword [rsp + 0x28], rsi
mov rbx, rcx
mov dword [rsp + 0x30], esi
lea rcx, str.DIRCMD
mov qword [rsp + 0x38], rax
mov r8d, 0x106
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], esi
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], esi
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], esi
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], rsi
mov byte [rbp - 0x48], sil
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x60], esi
mov dword [rsp + 0x20], 0x8000
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x14001b774
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140010d70
cmp eax, 1
je 0x14001b7a0
mov eax, dword [rsp + 0x20]
test al, 0x40
je 0x140012005
and eax, 0xfffb79fb
mov dword [rsp + 0x20], eax
bt eax, 0xa
jb 0x14001b7aa
xor r8d, r8d
lea rcx, [rbp - 0x20]
mov edx, 0x106
call fcn.1400115f0
cmp dword [rbp - 0x60], esi
je 0x14001b7b8
lea rcx, [rsp + 0x20]
call fcn.140010f68
lea r8, [rbp - 0x20]
mov edx, 0x104
lea rcx, [0x140032600]
mov ebx, eax
call fcn.14000dc10
mov ecx, edi
call fcn.14000bc30
mov eax, ebx
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1400151c0
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x1f0]
call fcn.140010d70
cmp eax, 1
jne 0x140011fde
xor edx, edx
mov ecx, 0x2377
call fcn.1400057e4
nop
jmp 0x140011fde
mov eax, 1
jmp 0x140012053
and eax, 0xfffffdbb
mov dword [rsp + 0x20], eax
jmp 0x14001200f
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x60], 1
call fcn.14000e8a0
mov qword [rbp - 0x58], rax
mov byte [rbp - 0x48], 1
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x40], rsi
jmp 0x140012029
Function at 0x14001339c
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 0x14001c696
inc dword [0x140046d14]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
test dword [rdx + 0x38], 0x4000
jne 0x14001c6eb
test byte [rdx + 0x38], 2
jne 0x14001c6b9
test byte [rdx + 0x38], 4
je 0x14001c6eb
mov eax, dword [0x140046d18]
add eax, 0xfffffffd
cmp eax, 1
ja 0x14001c6eb
mov ecx, ebx
call fcn.14000b708
test eax, eax
jne 0x14001c6eb
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_2_1.dll_WriteFile]
test rdi, rdi
je 0x14001c72f
test byte [rdi + 0x38], 0x80
jne 0x14001c72f
mov ecx, ebx
call fcn.14000b708
test eax, eax
jne 0x14001c72f
mov eax, dword [0x140046d18]
cmp eax, 3
je 0x14001c72f
test rsi, rsi
je 0x14001c72f
cmp eax, 2
je 0x14001c72f
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_2_1.dll_SetFileTime]
mov ecx, ebx
call fcn.140008c50
nop
jmp 0x1400133d3
Function at 0x140013438
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 [0x140030394], 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_2_1.dll_ReadFile]
test eax, eax
je 0x14001c7c4
mov ecx, dword [rsi]
test ecx, ecx
je 0x14001c776
mov rdx, qword [rsp + 0x70]
mov eax, dword [rdx + 0x38]
test eax, 0xc000
jne 0x1400134b8
cmp ecx, 2
jb 0x1400134b1
mov ecx, 0xfeff
cmp word [rbp], cx
je 0x1400134e6
bts eax, 0xf
mov dword [rdx + 0x38], eax
mov eax, dword [rdx + 0x38]
mov ecx, 0x8002
and eax, ecx
mov edi, 1
cmp eax, ecx
je 0x14001c79a
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
bts eax, 0xe
jmp 0x1400134b5
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 0x3e3
je 0x14001c7c4
mov ecx, dword [rsi]
test ecx, ecx
jne 0x140013492
and dword [0x140046d88], ecx
xor eax, eax
jmp 0x1400134d1
mov ebx, dword [rsi]
lea r9, [rsp + 0x30]
mov r8, rsi
mov rdx, rbp
mov ecx, edi
call fcn.1400226d0
mov edx, dword [0x140030394]
cmp ebx, dword [rsi]
cmovne edx, edi
mov dword [0x140030394], edx
jmp 0x1400134cf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, edi
mov dword [0x140046d88], eax
call fcn.140008c50
mov ebx, dword [rsp + 0x78]
mov ecx, ebx
call fcn.14000b708
mov ecx, ebx
test eax, eax
jne 0x14001c7fd
call fcn.140008c50
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_DeleteFileW]
jmp 0x14001c802
call fcn.140008c50
mov ecx, dword [0x140046d88]
mov edx, 1
call fcn.140023ab8
int3

Function at 0x140013a6c
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set current directory

Disassembly:
neg edx
sbb edx, edx
not edx
and edx, 2
jmp fcn.140011280
Function at 0x140014c84
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x280
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov word [rsp + 0x48], cx
xor ebx, ebx
lea rcx, [rsp + 0x48]
mov word [rsp + 0x4e], bx
mov dword [rsp + 0x4a], 0x5c003a
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140014d1e
cmp eax, 2
je 0x140014d03
cmp eax, 5
je 0x140014d03
mov dword [rsp + 0x38], ebx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x28], rbx
lea rcx, [rsp + 0x48]
mov r8d, 0x104
mov qword [rsp + 0x20], rbx
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_GetVolumeInformationW]
test eax, eax
je 0x14001eb94
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400151c0
add rsp, 0x280
pop rbx
ret
mov eax, 1
jmp 0x140014d05
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
cmp eax, 5
je 0x140014d1e
jmp 0x140014d03

Function at 0x140014d2c
Capabilities:
Set environment variable

Disassembly:
test rcx, rcx
je 0x140014e37
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x140014e2d
dec eax
mov dword [rcx + 0x18], eax
mov rdi, qword [rcx + rax*8 + 0xd0]
and qword [rcx + rax*8 + 0xd0], 0
test rdi, rdi
je 0x140014e2d
mov rax, qword [rdi]
movzx ecx, word [rax]
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x14001eba8
cmp word [0x140032600], cx
jne 0x14001ebb1
mov rcx, qword [rdi]
mov edx, 1
call fcn.140011280
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov r8, qword [rdi]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapFree]
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_2_0.dll_SetEnvironmentStringsW]
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov r8, qword [0x140036810]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapFree]
call fcn.14000e2ec
mov qword [0x140036810], rax
mov rbx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov r8, qword [rbx]
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapFree]
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapFree]
mov al, byte [rdi + 0x10]
mov byte [0x140046d39], al
mov al, byte [rdi + 0x11]
mov byte [0x140046d38], al
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
sub cx, 0x20
jmp 0x140014d7c
movzx ecx, cx
sub ecx, 0x40
call fcn.1400247c0
nop
jmp 0x140014d89
Function at 0x14001550c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140015558
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015550
cmp dword [rcx + 0x3c], edx
jl 0x140015550
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140015550
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 0x140015558
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14002062c
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor r12d, r12d
mov r15, rcx
test rdx, rdx
jne 0x140020732
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]
mov edi, eax
test eax, eax
jne 0x14002071f
cmp word [rsp + 0x50], 0x2e
jne 0x1400206ed
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.14002125c
mov rsi, rax
test rax, rax
je 0x140020706
mov rax, rbp
inc rax
cmp word [rsi + rax*2], r12w
jne 0x1400206c0
test rax, rax
je 0x1400206e5
mov r8, rsi
lea rdx, [rsp + 0x50]
lea rcx, str._s_s_r_n
call fcn.14000ed0c
mov edi, eax
mov rcx, rsi
call fcn.14000b4a0
cmp dword [0x14002f70c], r12d
jne 0x140020715
inc r14d
test edi, edi
je 0x140020668
jmp 0x1400207c3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov ecx, eax
xor edx, edx
call fcn.1400057e4
mov eax, 1
jmp 0x1400207c5
cmp eax, 0x103
jne 0x1400207c3
mov edi, r12d
jmp 0x1400207c3
mov rcx, rdx
call fcn.1400088a8
mov rcx, rax
call fcn.140008660
mov rsi, rax
test rax, rax
je 0x140020715
mov edx, 0x20
mov rcx, rax
call fcn.14000e3dc
test rax, rax
je 0x140020760
mov word [rax], r12w
mov rdx, rsi
mov rcx, r15
call fcn.14002125c
mov r14, rax
test rax, rax
je 0x14002079c
or rbp, 0xffffffffffffffff
inc rbp
cmp word [rax + rbp*2], r12w
jne 0x140020777
test rbp, rbp
je 0x14002079c
mov r8, rax
lea rcx, str._s_s_r_n
mov rdx, rsi
call fcn.14000ed0c
mov edi, eax
jmp 0x1400207b3
mov r8, rsi
mov edx, 1
mov ecx, 0x400023a3
call fcn.1400057e4
mov edi, 1
mov rcx, r14
call fcn.14000b4a0
mov rcx, rsi
call fcn.14000b4a0
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400151c0
mov rbp, qword [rsp + 0x2b0]
add rsp, 0x270
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400210d8
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xb0
mov rax, qword [0x14002f008]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor edi, edi
test rcx, rcx
je 0x14002122b
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_2_1.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14002122b
lea r8d, [rdi + 0x40]
mov rcx, rax
lea rdx, [rsp + 0x60]
call fcn.1400213d0
test eax, eax
je 0x140021222
mov eax, 0x5a4d
cmp ax, word [rsp + 0x60]
jne 0x140021222
mov edx, dword [rsp + 0x9c]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_2_1.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x140021222
lea r8d, [rdi + 4]
mov rcx, rsi
lea rdx, [rsp + 0x40]
call fcn.1400213d0
test eax, eax
je 0x140021222
cmp dword [rsp + 0x40], 0x4550
jne 0x140021222
lea r8d, [rdi + 0x14]
mov rcx, rsi
lea rdx, [rsp + 0x48]
call fcn.1400213d0
test eax, eax
je 0x140021222
cmp word [rsp + 0x58], di
jbe 0x140021222
movzx ebx, word [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov r8d, ebx
lea edx, [rdi + 8]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x140021222
movzx r8d, word [rsp + 0x58]
mov rdx, rax
mov rcx, rsi
call fcn.1400213d0
test eax, eax
je 0x14002120e
movzx ecx, word [rsp + 0x48]
mov rdx, rbx
call fcn.140021398
test rax, rax
je 0x14002120e
movzx edi, word [rax]
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_2_0.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
movzx eax, di
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400151c0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14002125c
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 0x1400212ab
cmp word [rdx], r14w
je 0x1400212ab
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]
test eax, eax
je 0x1400212ab
mov ecx, eax
jmp 0x140021347
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]
cmp eax, 2
jne 0x1400212ea
lea rcx, [0x140028958]
call fcn.140008660
mov rbx, rax
mov qword [rsp + 0x38], rax
jmp 0x14002134e
test eax, eax
jne 0x1400212a4
mov ecx, dword [rsp + 0x70]
call fcn.14000b530
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140021342
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]
mov esi, eax
test eax, eax
je 0x14002134e
mov rcx, rbx
call fcn.14000b4a0
mov rbx, r14
mov qword [rsp + 0x38], rbx
mov ecx, esi
jmp 0x140021347
mov ecx, 8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetLastError]
nop
mov rcx, qword [rsp + 0x30]
cmp rdi, rcx
je 0x14002135e
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1400213d0
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_2_1.dll_ReadFile]
test eax, eax
je 0x1400213fd
cmp edi, dword [rsp + 0x58]
je 0x1400213ff
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140021510
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 0x140021601
cmp word [r8], r15w
je 0x140021601
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]
mov ebx, eax
mov dword [rsp + 0xa0], eax
test eax, eax
jne 0x1400215c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x14002157c
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]
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]
test ebx, ebx
jne 0x1400215e1
mov r8, rdi
mov rdx, rsi
lea rcx, str._s_s_r_n
call fcn.14000ed0c
jmp 0x140021689
xor edx, edx
mov ecx, ebx
call fcn.1400057e4
mov r8, rsi
mov edx, 1
mov ecx, 0x235d
call fcn.1400057e4
jmp 0x140021689
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteKeyExW]
mov ebx, eax
mov dword [rsp + 0xa0], eax
test eax, eax
je 0x140021689
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]
mov ebx, eax
mov dword [rsp + 0xa0], eax
test eax, eax
je 0x140021656
cmp eax, 2
je 0x140021689
xor edx, edx
mov ecx, eax
call fcn.1400057e4
jmp 0x140021689
lea rdx, [0x140028958]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov ebx, eax
mov dword [rsp + 0xa0], eax
test eax, eax
je 0x14002167e
xor edx, edx
mov ecx, eax
call fcn.1400057e4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
jne 0x1400216b2
call fcn.1400158e4
test al, al
je 0x1400216a9
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]
jmp 0x1400216b2
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