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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r14, r9
mov rdi, r8
mov rsi, rdx
mov rbp, rcx
mov rcx, qword [0x140226b10]
lea r12, [0x140226b10]
cmp rcx, r12
je 0x14001f85e
test byte [rcx + 0x1c], 1
je 0x14001f85e
cmp byte [rcx + 0x19], 4
jb 0x14001f85e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401e0448]
mov edx, 0x13
call fcn.14001f000
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.14001e780
mov ebx, dword [rbp + 0x34]
mov rcx, r14
mov rdx, qword [rax]
imul rdx, rbx
mov qword [rsp + 0x38], rdx
lea rdx, [rsp + 0x30]
call fcn.14001e790
mov edx, dword [rsp + 0x38]
lea r8, [rsp + 0x3c]
mov rcx, qword [rbp + 0x88]
xor r9d, r9d
imul rbx, qword [rax]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
mov r15d, 0xffffffff
mov dword [rsp + 0x38], eax
cmp eax, r15d
jne 0x14001f901
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x14001f901
mov rax, qword [0x140226b10]
cmp rax, r12
je 0x14001f8fa
test byte [rax + 0x1c], 1
je 0x14001f8fa
cmp byte [rax + 0x19], 2
jb 0x14001f8fa
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x140226b10]
lea r8, [0x1401e0448]
mov r9d, eax
mov edx, 0x14
mov rcx, qword [rcx + 0x10]
call fcn.14001f030
mov eax, 0x57
jmp 0x14001f94e
cmp rbx, qword [rdi]
cmova rbx, qword [rdi]
test rbx, rbx
je 0x14001f94c
xor r14d, r14d
mov rcx, qword [rbp + 0x88]
lea r9, [rsp + 0x30]
mov r8d, ebx
mov dword [rsp + 0x30], r14d
cmp rbx, r15
mov qword [rsp + 0x20], r14
mov rdx, rsi
cmova r8d, r15d
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
mov eax, dword [rsp + 0x30]
je 0x14001f96a
sub qword [rdi], rax
add rsi, rax
sub rbx, rax
jne 0x14001f910
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400eb3e0
add rsp, 0x50
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
sub qword [rdi], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x14001f94e
Function at 0x140034190
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rdx
lea rax, [rsp + 0x68]
mov rdx, qword [rcx]
mov r14, rcx
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x68], rbx
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14003420f
mov rdx, qword [r14 + 8]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
cmove ebx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
jne 0x14003422d
cmp ebx, 3
jbe 0x14003423d
cmp ebx, 7
je 0x14003423d
mov edi, 0x57
mov eax, edi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov dword [rsi], ebx
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140034260
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x30
mov rsi, rdx
lea rax, [rsp + 0x68]
mov rdx, qword [rcx]
mov r14, rcx
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x68], rbx
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x1400342df
mov rdx, qword [r14 + 8]
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
cmove ebx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test edi, edi
jne 0x1400342f8
cmp ebx, 3
jb 0x140034308
mov edi, 0x57
mov eax, edi
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov dword [rsi], ebx
xor eax, eax
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140034670
Capabilities:
Set registry value

Disassembly:
jmp 0x140034680
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov rdx, qword [rcx]
lea rax, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x40], 0
mov r9d, 0x20006
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400346ed
mov rdx, qword [rdi + 8]
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140034680
Capabilities:
Set registry value

Disassembly:
jmp 0x140034680
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x30
mov rdx, qword [rcx]
lea rax, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x40], 0
mov r9d, 0x20006
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1400346ed
mov rdx, qword [rdi + 8]
lea rax, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140036180
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov r15, r8
mov rbp, rdx
mov r14, rcx
xor esi, esi
mov dword [rsp + 0x88], esi
cmp qword [rdx + 8], rsi
jne 0x1400363fe
lea r12, [0x140226b10]
mov rcx, qword [0x140226b10]
cmp rcx, r12
je 0x1400361ed
test byte [rcx + 0x1c], 8
je 0x1400361ed
cmp byte [rcx + 0x19], 4
jb 0x1400361ed
lea edx, [rsi + 0x2e]
lea r8, [0x1401b6018]
mov rcx, qword [rcx + 0x10]
call fcn.14001f000
rdtsc
shl rdx, 0x20
or rax, rdx
mov rbx, rax
lea rcx, [r14 + 0x6f0]
mov r8, r15
lea rdx, [rsp + 0x30]
call fcn.1400327c0
nop
mov rdx, rax
mov rcx, rbp
call fcn.14001e810
nop
lea rcx, [rsp + 0x30]
call fcn.14001ecf0
rdtsc
shl rdx, 0x20
or rax, rdx
lea rcx, [r14 + 0x568]
mov r9, qword [rcx]
mov r8, rax
mov rdx, rbx
call qword [r9 + 0x38]
mov rdi, qword [0x140226b10]
cmp rdi, r12
je 0x1400362ab
test byte [rdi + 0x1c], 8
je 0x1400362ab
cmp byte [rdi + 0x19], 3
jb 0x1400362ab
lea rdx, [rsp + 0x98]
mov rcx, rbp
call fcn.14001e790
mov rbx, rax
lea rdx, [rsp + 0x88]
mov rcx, rbp
call fcn.14001e780
mov esi, 3
lea edx, [rsi + 0x2c]
mov qword [rsp + 0x28], r15
mov r8, qword [rbx]
mov qword [rsp + 0x20], r8
mov r9, qword [rax]
lea r8, [0x1401b6018]
mov rcx, qword [rdi + 0x10]
call fcn.140036b10
mov rdi, qword [0x140226b10]
test sil, 2
je 0x1400362c8
and esi, 0xfffffffd
lea rcx, [rsp + 0x88]
call fcn.14001e7d0
mov rdi, qword [0x140226b10]
test sil, 1
je 0x1400362e2
lea rcx, [rsp + 0x98]
call fcn.14001e7d0
mov rdi, qword [0x140226b10]
cmp qword [rbp + 8], 0
jne 0x14003631d
cmp rdi, r12
je 0x140036313
test byte [rdi + 0x1c], 8
je 0x140036313
cmp byte [rdi + 0x19], 3
jb 0x140036313
lea r9, [r14 + 0x10]
mov edx, 0x30
lea r8, [0x1401b6018]
mov rcx, qword [rdi + 0x10]
call fcn.140020990
mov eax, 0x70
jmp 0x140036400
lea rdx, [rsp + 0x98]
mov rcx, qword [r14 + 0x6d8]
call fcn.14002b200
mov rbx, rax
lea rdx, [rsp + 0x88]
mov rcx, rbp
call fcn.14001e780
mov rcx, qword [rbx]
cmp qword [rax], rcx
jle 0x140036365
mov r8d, 0x1c2
lea rdx, str.sourcecommonmigrationVolumeSegment.cpp
lea rcx, str.freeRange.start_cluster_____volume_.GetVolumeClustersNumber__
call fcn.14011eac4
lea rcx, [rsp + 0x88]
call fcn.14001e7d0
lea rcx, [rsp + 0x98]
call fcn.14001e7d0
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.14001e790
mov rdi, rax
lea rdx, [rsp + 0x98]
mov rcx, rbp
call fcn.14001e780
mov rbx, rax
lea rdx, [rsp + 0x88]
mov rcx, qword [r14 + 0x6d8]
call fcn.14002b200
mov rcx, qword [rdi]
add rcx, qword [rbx]
cmp rcx, qword [rax]
jle 0x1400363da
mov r8d, 0x1c4
lea rdx, str.sourcecommonmigrationVolumeSegment.cpp
lea rcx, str._freeRange.start_cluster____freeRange.length______volume_.GetVolumeClustersNumber__
call fcn.14011eac4
lea rcx, [rsp + 0x88]
call fcn.14001e7d0
lea rcx, [rsp + 0x98]
call fcn.14001e7d0
lea rcx, [rsp + 0x30]
call fcn.14001e7d0
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14003c7a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [r8], 0
mov rdi, r8
mov r14, rdx
mov rsi, rcx
jbe 0x14003c881
xor r15d, r15d
cmp dword [rdi], 6
jb 0x14003c8cb
lea r9, [rsp + 0x80]
mov dword [rsp + 0x80], r15d
mov r8d, 6
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14003c808
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x14003c883
jmp 0x14003c811
mov eax, dword [rsp + 0x80]
sub dword [rdi], eax
mov edx, dword [rdi]
mov r8d, dword [rsp + 0x32]
lea rcx, [rdx + 6]
cmp r8, rcx
ja 0x14003c8b5
movzx ecx, word [rsp + 0x30]
lea eax, [r8 - 6]
sub edx, eax
mov dword [rsp + 0x88], eax
mov dword [rdi], edx
call fcn.14003ea30
mov rbx, rax
test rax, rax
je 0x14003c8b5
mov r9, qword [rax]
lea r8, [rsp + 0x88]
mov rdx, r14
mov rcx, rax
call qword [r9 + 0x30]
mov ebp, eax
test eax, eax
jne 0x14003c894
mov rax, qword [rsi + 0x28]
test rax, rax
je 0x14003c870
mov qword [rax + 0x18], rbx
jmp 0x14003c874
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x28], rbx
cmp dword [rdi], r15d
ja 0x14003c7c6
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax + 0x18]
mov eax, ebp
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, 0xd
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, 0x452
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14003cf00
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x30], 0
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
je 0x14003cf34
mov eax, 0x4df
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ecx, dword [r8]
shr ecx, 1
inc ecx
mov qword [rdi + 0x38], rcx
add rcx, rcx
call fcn.14014317c
mov qword [rdi + 0x30], rax
test rax, rax
jne 0x14003cf65
mov eax, 0xe
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov r8d, dword [rbx]
lea r9, [rsp + 0x40]
xor ecx, ecx
mov rdx, rax
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14003cf9e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x40]
sub dword [rbx], eax
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14003cfc0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov r9, r8
mov qword [rsp + 0x20], 0
mov r8d, dword [rcx + 0x38]
mov rax, rdx
mov rdx, qword [rcx + 0x30]
mov rcx, rax
lea r8d, [r8*2 + 2]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14003cffb
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret

Function at 0x14003d5f0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x40], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14003d631
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
add rsp, 0x30
pop rbx
ret
mov eax, dword [rsp + 0x40]
sub dword [rbx], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14003d640
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14003d675
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret

Function at 0x14003de20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp dword [r8], 6
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
jae 0x14003de53
mov eax, 0x452
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
xor eax, eax
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x50], eax
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea r8d, [rax + 6]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14003de93
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x14003de99
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, dword [rsp + 0x50]
sub dword [rbx], eax
mov edx, dword [rsp + 0x58]
cmp dx, 0xc
je 0x14003deb8
mov eax, 0xd
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, dword [rbx]
mov eax, dword [rsp + 0x5a]
add rcx, 6
cmp rax, rcx
ja 0x14003dea3
movzx eax, word [rsp + 0x5c]
mov r8, rbx
mov dword [rdi + 0x12], edx
mov rcx, rdi
mov rdx, rsi
mov word [rdi + 0x16], ax
call fcn.14003c750
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14003e480
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14003e4b5
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret
Function at 0x14003e4c0
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x40], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14003e501
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
add rsp, 0x30
pop rbx
ret
mov eax, dword [rsp + 0x40]
sub dword [rbx], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14003e6c0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14003e6f5
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret

Function at 0x14003e700
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x40], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 8
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14003e741
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
add rsp, 0x30
pop rbx
ret
mov eax, dword [rsp + 0x40]
sub dword [rbx], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14003ec80
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, r8
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rax, rdx
mov dword [rsp + 0x40], r8d
lea rdx, [rcx + 0x30]
mov qword [rsp + 0x20], r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
jne 0x14003ecc1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
add rsp, 0x30
pop rbx
ret
mov eax, dword [rsp + 0x40]
sub dword [rbx], eax
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14003ecd0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, rdx
mov qword [rsp + 0x20], 0
lea rdx, [rcx + 0x30]
mov r9, r8
mov rcx, rax
mov r8d, 0x10
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x14003ed05
add rsp, 0x38
jmp qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400405c0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [0x140226b10]
lea rsi, [0x140226b10]
cmp rcx, rsi
je 0x140040618
test byte [rcx + 0x1c], 2
je 0x140040618
cmp byte [rcx + 0x19], 4
jb 0x140040618
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b77f0]
mov edx, 0x22
call fcn.14001f000
mov r8, qword [rbx]
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.14003ef40
cmp qword [rax + 0x18], 8
jb 0x140040632
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
mov r8, qword [rsp + 0x38]
test eax, eax
sete bl
cmp r8, 8
jb 0x14004065d
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
inc r8
call fcn.14000c3a0
test bl, bl
je 0x1400406be
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
cmp eax, 2
jne 0x14004068a
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x1400406eb
test byte [rcx + 0x1c], al
je 0x1400406eb
cmp byte [rcx + 0x19], 5
jb 0x1400406eb
lea edx, [rax + 0x21]
jmp 0x1400406db
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x1400406ba
test byte [rcx + 0x1c], 2
je 0x1400406ba
cmp byte [rcx + 0x19], 5
jb 0x1400406ba
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b77f0]
mov edx, 0x24
mov r9d, ebx
call fcn.14001f220
mov eax, ebx
jmp 0x1400406ed
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x1400406eb
test byte [rcx + 0x1c], 2
je 0x1400406eb
cmp byte [rcx + 0x19], 5
jb 0x1400406eb
mov edx, 0x25
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b77f0]
call fcn.14001f000
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400eb3e0
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x140040710
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rcx, qword [0x140226b10]
lea rsi, [0x140226b10]
cmp rcx, rsi
je 0x140040756
test byte [rcx + 0x1c], 2
je 0x140040756
cmp byte [rcx + 0x19], 4
jb 0x140040756
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b77f0]
mov edx, 0x3e
call fcn.14001f000
lea rax, [rsp + 0x30]
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesiaStorAfsService
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
je 0x1400407c5
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x1400407b3
test byte [rcx + 0x1c], 2
je 0x1400407b3
cmp byte [rcx + 0x19], 2
jb 0x1400407b3
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b77f0]
mov edx, 0x3f
mov r9d, eax
call fcn.14001f220
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], 0
lea rdx, str.BootMigrationPhase
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x140040845
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x140040828
test byte [rcx + 0x1c], 2
je 0x140040828
cmp byte [rcx + 0x19], 2
jb 0x140040828
mov edx, 0x40
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b77f0]
mov r9d, ebx
call fcn.14001f220
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
cmp dword [rsp + 0x68], 4
jne 0x1400408f9
cmp dword [rsp + 0x60], 4
jne 0x1400408f9
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.BootMigrationPhase
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x1400408ac
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x140040828
test byte [rcx + 0x1c], 2
je 0x140040828
cmp byte [rcx + 0x19], 2
jb 0x140040828
mov edx, 0x42
jmp 0x140040815
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x1400408e7
test byte [rcx + 0x1c], 2
je 0x1400408e7
cmp byte [rcx + 0x19], 5
jb 0x1400408e7
mov r9d, dword [rdi]
lea r8, [0x1401b77f0]
mov rcx, qword [rcx + 0x10]
mov edx, 0x43
call fcn.14001f220
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [0x140226b10]
cmp rcx, rsi
je 0x140040926
test byte [rcx + 0x1c], 2
je 0x140040926
cmp byte [rcx + 0x19], 2
jb 0x140040926
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b77f0]
mov edx, 0x41
call fcn.14001f000
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, qword [rsp + 0x50]
mov eax, 0x70c
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140042820
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov rcx, qword [0x140226b10]
lea rax, [0x140226b10]
cmp rcx, rax
je 0x14004285c
test byte [rcx + 0x1c], 2
je 0x14004285c
cmp byte [rcx + 0x19], 4
jb 0x14004285c
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401b77f0]
mov edx, 0x48
call fcn.14001f000
lea rax, [rsp + 0x50]
mov r9d, 0x1000b
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMCurrentControlSetServicesiaStorAfsService
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400428e3
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 4
lea rdx, str.DumpMemoryLevel
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x30], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
test eax, eax
je 0x1400428d6
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x38
ret
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x38
ret