joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d8c8ab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8e95e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8c8c38
mov rax, qword [0x6d8e95e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d8c8afc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d8c8b85
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d8c8ae0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d8c8c6d
mov rax, qword [0x6d8e95e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d8e95e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8c8c50
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d8c8b7e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d8c8be0
add dword [0x6d8e95e4], 1
cmp edi, 8
jae 0x6d8c8bb3
test dil, 4
jne 0x6d8c8c24
test edi, edi
je 0x6d8c8ba8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8c8c3f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d8c8ba8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d8c8bcc
jmp 0x6d8c8ba8
add rsi, qword [0x6d8e95e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d8c8b7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d8c8ba8
xor esi, esi
jmp 0x6d8c8b07
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d8c8ba8
mov rax, qword [0x6d8e95e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d8c93c0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d8e98c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d8e98a0]
test rbx, rbx
je 0x6d8c9414
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d8c940b
test rsi, rsi
je 0x6d8c940b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d8c93f0
lea rcx, [0x6d8e98c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d8c9650
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d8c9660
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d8c9670
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d8c96b1
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d8c96a8
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d8c96b3
add rax, 0x28
cmp rax, r9
jne 0x6d8c9694
xor eax, eax
ret

Function at 0x6d8c9750
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8e61f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d8c97bd
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8c97bd
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8c97bd
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8c97b4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8c97bf
add rax, 0x28
cmp rax, r9
jne 0x6d8c97a0
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d8c98c0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8e61f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d8c98e0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8c98d8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d8c993d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d8c9934
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d8c9944
add rax, 0x28
cmp rax, r9
jne 0x6d8c9920
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d8c9960
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8e61f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d8c99ce
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d8c99ce
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d8c99ce
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d8c99ce
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d8c99c5
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d8c99d5
add rcx, 0x28
cmp rcx, rax
jne 0x6d8c99b0
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d8c99e8
jmp 0x6d8c99ce
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d8c99f6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d8c99ce
test r9d, r9d
jg 0x6d8c99e0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d8c9d60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x14001c410
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], 8
jb 0x14001c42a
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001c4ec
bt eax, 0xa
jae 0x14001c4ec
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14001c450
mov rdx, qword [rbx]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14001c460
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], ax
lea rcx, [rsp + 0x20]
call fcn.140012c10
nop
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 8
cmovae rcx, qword [rsp + 0x20]
call fcn.14002dfec
shr rax, 0x20
test eax, eax
jne 0x14001c528
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x14001c4ec
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c4e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001c535
call fcn.1400556a0
cmp qword [rbx + 0x18], 8
jb 0x14001c4f6
mov rbx, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001c517
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14001c517
xor al, al
jmp 0x14001c51d
mov al, 1
jmp 0x14001c51d
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
lea r8, [rsp + 0x20]
mov edx, eax
call fcn.14001bad0
nop
call fcn.14005efd0
int3
Function at 0x14001fb30
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400bb230]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001fc12
cmp byte [rcx + 0x72], 0
je 0x14001fc12
mov rax, qword [rcx]
mov qword [rsp + 0x78], rdi
mov edi, 0xffff
mov edx, edi
mov rax, qword [rax + 0x18]
call qword [0x140097528]
cmp di, ax
je 0x14001fc0e
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [0x140097528]
test eax, eax
je 0x14001fbd4
sub eax, 1
je 0x14001fbd8
cmp eax, 2
jne 0x14001fc0e
mov byte [rbx + 0x72], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140055680
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x72], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001fc05
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.140063b28
cmp rdi, rax
jne 0x14001fc0e
cmp byte [rbx + 0x72], 0
sete al
jmp 0x14001fbbc
xor al, al
jmp 0x14001fbbc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140055680
add rsp, 0x60
pop rbx
ret

Function at 0x1400208b0
Capabilities:
Get session information
Get session user name
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1400bb230]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [rsp + 0x38], rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov qword [rcx], rdi
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
lea r8d, [rdi + 7]
lea rdx, str.UNKNOWN
call fcn.140012c10
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], edi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
jne 0x14002091e
lea rcx, str.Error_retrieving_session_id_for_generating_log_name.
jmp 0x140020993
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x40]
mov r8d, 5
mov edx, eax
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x14002098c
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14002098c
mov eax, dword [rsp + 0x48]
cmp eax, 2
jbe 0x140020972
mov r8d, eax
shr r8, 1
dec r8
mov rcx, rbx
call fcn.140012c10
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x140020999
lea rcx, str.WTSQuerySessionInformation_failed_to_retrieve_the_size_of_the_current_user_name_for_the_log_name.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x140020999
lea rcx, str.WTSQuerySessionInformation_failed_to_retrieve_current_user_name_for_the_log_name.
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140055680
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140026750
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400bb230]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov eax, r8d
mov edi, r8d
xor edi, 8
and al, 8
cmove edi, r8d
test rcx, rcx
jne 0x140026789
xor eax, eax
jmp 0x14002682f
xor ebp, ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14009bed8]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rbx
test eax, eax
jns 0x1400267b8
mov edi, ebp
jmp 0x14002681e
mov r9, rsi
mov r8, rbx
lea rdx, str._s_s
lea rcx, [rsp + 0x30]
call fcn.1400265e0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14002680b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
call fcn.140014dd0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
test rbx, rbx
je 0x14002682c
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140055680
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
xor edx, edx
jmp 0x140026750

Function at 0x140026850
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400bb230]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rsi, rcx
mov eax, r8d
mov edi, r8d
xor edi, 8
and al, 8
cmove edi, r8d
test rcx, rcx
jne 0x140026789
xor eax, eax
jmp 0x14002682f
xor ebp, ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x14009bed8]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rbx
test eax, eax
jns 0x1400267b8
mov edi, ebp
jmp 0x14002681e
mov r9, rsi
mov r8, rbx
lea rdx, str._s_s
lea rcx, [rsp + 0x30]
call fcn.1400265e0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14002680b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
call fcn.140014dd0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], bp
test rbx, rbx
je 0x14002682c
mov rcx, rbx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140055680
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor r8d, r8d
xor edx, edx
jmp 0x140026750

Function at 0x140026910
Capabilities:
Delete registry key

Disassembly:
lea rax, vtable.CoreTech::internal::CRegKeyImpl.0
mov qword [rcx], rax
jmp fcn.140026970
Function at 0x140026970
Capabilities:
Delete registry key

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x1400269b8
cmp byte [rbx + 0x14], 0
je 0x14002699d
lea rdx, [0x1400ad29c]
call qword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov rcx, qword [rbx + 8]
mov byte [rbx + 0x14], 0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbx + 8], 0
mov dword [rbx + 0x10], 0
add rsp, 0x20
pop rbx
ret
xor eax, eax
mov dword [rbx + 0x10], eax
add rsp, 0x20
pop rbx
ret

Function at 0x140026c70
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 8], 0
mov rdi, rdx
mov rbx, rcx
je 0x140026d17
test rdx, rdx
je 0x140026d17
cmp byte [0x1400c3044], 0
jne 0x140026cdf
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140026ccf
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c3048], rax
mov byte [0x1400c3044], 1
jmp 0x140026ce6
mov rax, qword [0x1400c3048]
mov byte [0x1400c3044], 1
jmp 0x140026ce6
mov rax, qword [0x1400c3048]
mov rcx, qword [rbx + 8]
mov rdx, rdi
test rax, rax
je 0x140026d06
mov r8d, dword [rbx + 0x10]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
mov eax, 0x57
add rsp, 0x20
pop rdi
ret

Function at 0x140026d70
Capabilities:
Query or enumerate registry key

Disassembly:
sub rsp, 0x48
mov rcx, qword [rcx + 8]
mov r10d, edx
test rcx, rcx
jne 0x140026d88
lea eax, [rcx + 0x57]
add rsp, 0x48
ret
mov rax, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
test rax, rax
cmovne rdx, rax
xor eax, eax
mov qword [rsp + 0x38], rdx
mov edx, r10d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add rsp, 0x48
ret

Function at 0x140027710
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
mov rax, qword [rsp + 0x60]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret
Function at 0x140027790
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400bb230]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx + 8]
test rbx, rbx
jne 0x1400277c8
lea eax, [rbx + 0x57]
jmp 0x1400278b8
lea rcx, [rsp + 0x48]
call fcn.140026880
nop
mov r9d, dword [rdi + 0x10]
or r9d, 0x2001f
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140027150
mov ebx, eax
test eax, eax
jne 0x1400278ac
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140027891
nop word [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140027790
mov ebx, eax
test eax, eax
jne 0x1400278ac
mov dword [rsp + 0x40], 0x100
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140027840
lea rcx, [rsp + 0x48]
call fcn.140026970
mov rax, qword [rdi]
mov rdx, rsi
mov rcx, rdi
call qword [rax + 0xd0]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.140026910
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140055680
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140027aa0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x1400bb230]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov ebp, r8d
mov rsi, rdx
mov r12, rcx
mov edx, ebp
mov rcx, rsi
mov r8, r9
mov r14, r9
call qword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
mov r15d, dword [rsp + 0x2d0]
test r15d, r15d
je 0x140027bdc
test eax, eax
jne 0x140027bdc
mov qword [rsp + 0x278], rbx
mov qword [rsp + 0x270], rdi
mov qword [rsp + 0x268], r13
xor r13d, r13d
mov edi, r13d
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x200
call fcn.140057f90
mov qword [rsp + 0x38], r13
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r13
lea r8, [rsp + 0x50]
mov qword [rsp + 0x28], r13
mov edx, edi
mov rcx, rsi
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov ebx, eax
test eax, eax
jne 0x140027bad
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r13
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140027bb4
mov rdx, qword [rsp + 0x48]
mov r9, r14
mov r8d, ebp
mov dword [rsp + 0x20], r15d
mov rcx, r12
call fcn.140027aa0
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140027bb4
cmp eax, 0x103
je 0x140027bc2
inc edi
test ebx, ebx
je 0x140027b13
mov eax, ebx
jmp 0x140027bc4
xor eax, eax
mov rdi, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x278]
mov r13, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140055680
add rsp, 0x280
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret

Function at 0x140027c80
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
test r9, r9
je 0x140027cb0
mov eax, dword [rsp + 0x60]
cmp eax, 1
jb 0x140027cb0
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r9
mov r9d, r8d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
mov eax, 0x57
add rsp, 0x38
ret
Function at 0x14002a360
Capabilities:
Get file version info

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x20
cmp byte [rcx + 0x20], 0
mov rbx, rdx
mov rsi, rcx
jne 0x14002a430
cmp qword [rdx + 0x18], 8
mov rcx, rdx
mov dword [rsp + 0x50], 0
jb 0x14002a38d
mov rcx, qword [rdx]
lea rdx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebp, eax
test eax, eax
je 0x14002a430
mov r9, qword [rsi + 0x10]
mov edx, ebp
mov r8, qword [rsi + 8]
mov rcx, r9
sub rcx, r8
mov qword [rsp + 0x48], rdi
mov byte [rsp + 0x40], 0
cmp rbp, rcx
jae 0x14002a3c6
lea rax, [r8 + rbp]
jmp 0x14002a3f3
jbe 0x14002a3f7
mov rax, qword [rsi + 0x18]
sub rax, r8
cmp rdx, rax
jbe 0x14002a3e4
lea r8, [rsp + 0x40]
lea rcx, [rsi + 8]
call fcn.140029b40
jmp 0x14002a3f7
sub rdx, rcx
lea r8, [rsi + 8]
mov rcx, r9
call fcn.140029c50
mov qword [rsi + 0x10], rax
mov rcx, qword [rsi + 8]
call fcn.1400151e0
cmp qword [rbx + 0x18], 8
mov rdi, qword [rsp + 0x48]
jb 0x14002a40f
mov rbx, qword [rbx]
mov r9, rax
mov r8d, ebp
xor edx, edx
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
sete al
mov byte [rsi + 0x20], al
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
xor al, al
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007359c
Capabilities:
Read 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 r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1400732c2
call fcn.14005f700
mov dword [rax], 0x16
call fcn.14005efb0
jmp 0x14007340d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14007340d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14007340d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400732f1
lock or dword [rcx + 0x14], 0x10
jmp 0x14007340d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x140073305
call fcn.1400739c4
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x140073315
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x140073318
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.140070d70
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.14007cef0
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1400733fb
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1400733a9
mov rcx, rbx
call fcn.140070d70
cmp eax, 0xffffffff
je 0x140073394
mov rcx, rbx
call fcn.140070d70
cmp eax, 0xfffffffe
je 0x140073394
mov rcx, rbx
call fcn.140070d70
movsxd rdi, eax
lea r14, [0x1400c4900]
mov rcx, rbx
sar rdi, 6
call fcn.140070d70
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x14007339b
lea rdx, [0x1400bb5e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1400733a9
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1400733cd
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1400733cd
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1400733cd
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1400733eb
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1400733f6
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x140073412
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x14007328c