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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x50], r12
movaps xmm0, xmmword [0x1403aa440]
movaps xmmword [r14 + 0x40], xmm0
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x5b
call fcn.1401de830
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401ea620
test esi, esi
js 0x1400f377e
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.140204180
test al, al
jne 0x1400f3785
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400f37a1
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x1400f37b4
lea rcx, [rsp + 0x30]
call fcn.140204210
lea rcx, [rsp + 0x50]
call fcn.1401ea680
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140242430
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400f3751
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140302ce0
jmp 0x1400f3717
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x1400f3747
int3

Function at 0x1400f37c0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x50], r12
movaps xmm0, xmmword [0x1403aa440]
movaps xmmword [r14 + 0x40], xmm0
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x93
call fcn.1401de830
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401ea620
test esi, esi
js 0x1400f38cf
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.140204180
test al, al
jne 0x1400f38d6
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.140204210
lea rcx, [rsp + 0x50]
call fcn.1401ea680
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140242430
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x1400f38a2
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.140302ce0
jmp 0x1400f3867
Function at 0x1400f3900
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r14, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r14
movaps xmm0, xmmword [0x1403aa440]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0xa8
call fcn.1401de830
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1401ea620
mov qword [rbx + 8], r14
mov qword [rbx], 0
call fcn.140204180
test al, al
jne 0x1400f39e4
lea rdi, [rsp + 0x28]
mov qword [rdi], r14
mov rcx, qword [rsi]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
xor esi, esi
cmp eax, 1
sbb rsi, rsi
or rsi, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.140204210
lea rcx, [rsp + 0x50]
call fcn.1401ea680
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140242430
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rdx, str.File::GetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
xor r9d, r9d
call fcn.140302ce0
jmp 0x1400f3991

Function at 0x1400f3a00
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], r15
movaps xmm0, xmmword [0x1403aa440]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.SetLength
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0xb5
call fcn.1401de830
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1401ea620
mov qword [r14 + 8], r15
mov qword [r14], 0
call fcn.140204180
test al, al
jne 0x1400f3b2c
lea r8, [rsp + 0x28]
mov qword [r8], r15
mov rcx, qword [rsi]
xor ebx, ebx
xor edx, edx
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400f3af7
mov rcx, qword [rsi]
xor ebx, ebx
mov rdx, rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400f3af7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400f3b48
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
setne bl
lea rcx, [rsp + 0x30]
call fcn.140204210
lea rcx, [rsp + 0x50]
call fcn.1401ea680
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140242430
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rdx, str.File::SetLength
lea rcx, [rsp + 0x30]
mov r8, rsi
mov r9, rdi
call fcn.140302ce0
jmp 0x1400f3a9a
xor ebx, ebx
jmp 0x1400f3af7
Function at 0x1400f3e10
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x50], rax
movaps xmm0, xmmword [0x1403aa440]
movaps xmmword [r14 + 0x40], xmm0
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x16f
call fcn.1401de830
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401ea620
mov eax, edi
and eax, 1
neg eax
and eax, 3
test dil, 2
mov edx, 1
cmove edx, eax
test dil, 4
mov ecx, 4
cmovne edx, ecx
test dil, 8
mov r8d, 2
cmove r8d, edx
test dil, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x1400f4077
mov edx, edi
and edx, 0x40
shl edx, 0x18
test dil, 0x80
cmove ecx, edx
mov edx, edi
rol edx, 0x1a
mov r8d, edi
shl r8d, 0xb
and r8d, 0x20000000
mov r9d, edi
shr r9d, 4
and r9d, 0x10000
and edx, 0x80000100
or edx, r8d
or edx, r9d
or edx, ecx
mov ecx, edi
shr ecx, 8
and ecx, 3
mov r8d, edi
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r14d, edi
and r14d, 0x400
mov ecx, r14d
shl ecx, 0x14
mov r9d, edi
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, edi
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r9d, edi
shl r9d, 0xd
and r9d, 0x4000000
or r9d, ecx
mov ecx, edi
shl ecx, 8
and ecx, 0xa000000
or ecx, r9d
cmp byte [rbx + 0x17], 0
jns 0x1400f3f8c
mov rbx, qword [rbx]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [rsi], rax
je 0x1400f3fe8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400f405e
mov rax, rbx
inc rax
cmp rax, 2
jb 0x1400f3fdd
mov qword [rsi], rbx
call fcn.1401de850
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsi]
inc rbx
cmp rbx, 2
jb 0x1400f403b
shr r14d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r14b
test dil, 4
jne 0x1400f404d
test dil, 0xa
je 0x1400f4010
mov byte [rsi + 0x28], 1
lea rcx, [rsp + 0x60]
call fcn.1401ea680
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140242430
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400f3ca0
mov dword [rsi + 0x24], eax
jmp 0x1400f4010
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x1400f4010
call fcn.1401de850
mov rcx, qword [rsi]
call fcn.1401f05b0
mov qword [rsi], 0
jmp 0x1400f3fc9
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
jmp 0x1400f4010
Function at 0x1400f4180
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400f41c8
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400f41d1
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400f41b8
mov qword [rdi], rsi
call fcn.1401de850
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401de850
mov rcx, qword [rdi]
call fcn.1401f05b0
mov qword [rdi], 0
jmp 0x1400f41a6

Function at 0x1400f4220
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x50]
mov qword [rbx + 0x50], rax
movaps xmm0, xmmword [0x1403aa440]
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.MapImageToMemory
lea r8, str....._base_filesmemory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1b
call fcn.1401de830
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.1401ea620
mov rcx, rsi
call fcn.1400f34c0
test al, al
je 0x1400f43a6
mov rcx, rsi
call fcn.1400a9140
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x1400f431f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x1400f43cf
mov rax, rdi
inc rax
cmp rax, 2
jb 0x1400f4313
mov qword [rsi + 0x40], rdi
call fcn.1401de850
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400f43ea
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
mov rcx, qword [rsi + 0x30]
mov rax, qword [0x14041b9a0]
and rax, rcx
cmp rax, qword [0x14041b988]
je 0x1400f43ee
mov rax, qword [0x14041b9a0]
and rax, rdi
cmp rax, qword [0x14041b988]
je 0x1400f43f8
mov qword [rsi + 0x30], rdi
test rdi, rdi
je 0x1400f43ea
lea rax, fcn.1402902e0
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
mov qword [rcx + 8], rdi
call fcn.140144ac0
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov dil, 1
lea rcx, [rsp + 0x50]
call fcn.1401ea680
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140242430
mov eax, edi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401de850
mov rcx, qword [rsi + 0x40]
call fcn.1401f05b0
mov qword [rsi + 0x40], 0
jmp 0x1400f42fe
xor edi, edi
jmp 0x1400f43a6
call fcn.1401e0920
jmp 0x1400f4368
mov rcx, rdi
call fcn.1401e07d0
jmp 0x1400f437b
Function at 0x1400f4aa0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.140143240
mov byte [rsi + 8], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
lea rax, [0x1403a7c88]
mov qword [rsi], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x1400f4b15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x1400f4b20
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400f4b0d
mov qword [rsi + 0x18], rdi
call fcn.1401de850
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1401de850
mov rcx, qword [rsi + 0x18]
call fcn.1401f05b0
mov qword [rsi + 0x18], 0
jmp 0x1400f4afa
Function at 0x1400f57b0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x20], 0
test rdx, rdx
je 0x1400f585d
mov rdi, rdx
lea rbx, [rsp + 0x40]
mov qword [rbx], 0xffffffffffffffff
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov r14, rax
call r15
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 0x400
mov rcx, rax
mov rdx, rdi
mov r8, r14
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rbx, qword [rbx]
cmp qword [rsi], rbx
je 0x1400f585d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400f5879
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400f5855
mov qword [rsi], rbx
call fcn.1401de850
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140242430
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1401de850
mov rcx, qword [rsi]
call fcn.1401f05b0
mov qword [rsi], 0
jmp 0x1400f5843

Function at 0x1400f5890
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x1400f58ba
call fcn.1401de850
mov qword [rsi], 0
test r14, r14
je 0x1400f58f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400f5915
cmp r15, 2
jb 0x1400f58e8
mov qword [rsi], r14
call fcn.1401de850
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400f592b
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1401de850
mov rcx, qword [rsi]
call fcn.1401f05b0
mov qword [rsi], 0
jmp 0x1400f58da
call fcn.1401de850
mov rcx, qword [rdi]
call fcn.1401f05b0
mov qword [rdi], 0
jmp 0x1400f5906
Function at 0x1400f7700
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.140240cd8
mov rsi, rax
mov rax, qword [0x14041b9a0]
and rax, r15
cmp rax, qword [0x14041b988]
je 0x1400f77c4
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x1400f7bf0]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1400f77ce
test r14, r14
je 0x1400f7819
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140242430
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r15
call fcn.1401e07d0
jmp 0x1400f775d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1400f77e7
mov ebp, eax
cmp eax, 0x5af
je 0x1400f77e7
cmp ebp, 0xe
jne 0x1400f7827
mov rcx, rbx
call fcn.140305620
test rsi, rsi
je 0x1400f77a0
mov rcx, qword [rsi]
mov rax, qword [0x14041b9a0]
and rax, rcx
cmp rax, qword [0x14041b988]
jne 0x1400f780f
call fcn.1401e0920
mov rcx, rsi
call fcn.140240d14
jmp 0x1400f77a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400f77a0
mov eax, dword [0x14042e810]
mov ecx, dword [0x14042a04c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400f789f
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, ebp
call fcn.1400eb610
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
cmovs rcx, qword [rbx + 8]
lea rdx, [rsp + 0x48]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov rcx, qword [0x14042e808]
call fcn.1402052b0
cmp byte [rbx + 0x17], 0
jns 0x1400f77ef
mov rcx, qword [rsp + 0x30]
call fcn.140240d14
jmp 0x1400f77ef
lea rcx, [0x14042e810]
call fcn.140240e30
cmp dword [0x14042e810], 0xffffffff
jne 0x1400f7848
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140138280
mov qword [0x14042e808], rax
lea rcx, [0x14042e810]
call fcn.140240ec8
jmp 0x1400f7848

Function at 0x1400f80e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rcx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
add rsp, 0x38
ret
Function at 0x1400f8190
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor ebp, ebp
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x1400f8203
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140242430
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x90]
mov qword [rax], 0
mov r9d, esi
or r9d, 8
mov qword [rsp + 0x20], rax
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
je 0x1400f81d5
mov ebp, eax
test eax, eax
jne 0x1400f81d5
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x70]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [0x1403aa440]
movaps xmmword [r14], xmm0
mov rcx, r14
mov rdx, rdi
call fcn.14027e510
movzx eax, byte [r14 + 0x17]
test al, al
jns 0x1400f8273
mov rax, qword [rsp + 0x78]
jmp 0x1400f8276
and eax, 0x7f
test rax, rax
je 0x1400f828f
lea rcx, [rsp + 0x70]
call fcn.1400c7110
cmp word [rax], 0x5c
jne 0x1400f83b7
movzx r15d, byte [rsp + 0x87]
test r15b, r15b
jns 0x1400f82a4
mov r15, qword [rsp + 0x78]
jmp 0x1400f82a8
and r15d, 0x7f
xorps xmm6, xmm6
lea r12, [rsp + 0x50]
movaps xmmword [r12], xmm6
mov qword [r12 + 0x10], 0
lea r13, [rsp + 0x4c]
mov rbp, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [rsp + 0x4c], 0x104
mov edx, 0x104
mov rcx, r12
call fcn.1400f6fd0
mov rcx, qword [rsp + 0x90]
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
xor edx, edx
mov r8, rax
mov r9, r13
call rbp
test eax, eax
jne 0x1400f8367
mov edx, dword [rsp + 0x4c]
mov rcx, r12
xor r8d, r8d
call fcn.1401dc480
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401dc480
movzx r8d, byte [rsp + 0x67]
test r8b, r8b
jns 0x1400f8333
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
jmp 0x1400f833a
and r8d, 0x7f
mov rdx, r12
mov rcx, r14
call fcn.1400c9200
cmp byte [rsp + 0x87], 0
mov rdx, r14
jns 0x1400f8354
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
mov r8d, esi
call fcn.1400f8190
test eax, eax
je 0x1400f82ca
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebp, eax
cmp byte [rsp + 0x67], 0
jns 0x1400f839a
mov rcx, qword [rsp + 0x50]
call fcn.140240d14
cmp byte [rsp + 0x87], 0
jns 0x1400f81d5
mov rcx, qword [rsp + 0x70]
call fcn.140240d14
jmp 0x1400f81d5
lea rcx, [rsp + 0x70]
mov dx, 0x5c
call fcn.1401dc180
jmp 0x1400f828f
Function at 0x1400f83e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400f8468
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400f8452
cmp dword [rsp + 0x38], 4
jne 0x1400f8452
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140242430
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x1400f8452

Function at 0x1400f8470
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1402423d0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140244560
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400f8533
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400f8537
lea rcx, [rsp + 0x840]
call fcn.140268c14
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.1400c8e50
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140242430
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400f8514
cmp eax, 2
jne 0x1400f858c
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140244560
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x1400f8593
lea rcx, [rsp + 0x40]
call fcn.140268c14
lea rdx, [rsp + 0x40]
jmp 0x1400f8507
mov edi, 0x3f4
jmp 0x1400f8514
mov edi, 0xea
jmp 0x1400f8514

Function at 0x1400f85a0
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140418038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140242430
mov eax, esi
add rsp, 0x40
pop rsi
ret

Function at 0x1400f8600
Capabilities:
Set registry value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rcx, r8
call fcn.140268c14
add eax, eax
add eax, 2
mov rcx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret