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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d7f75e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7d65c8
mov rax, qword [0x6d7f75e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7d648c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7d6515
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7d6470
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7d65fd
mov rax, qword [0x6d7f75e8]
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 [0x6d7f75e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7d65e0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7d650e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7d6570
add dword [0x6d7f75e4], 1
cmp edi, 8
jae 0x6d7d6543
test dil, 4
jne 0x6d7d65b4
test edi, edi
je 0x6d7d6538
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7d65cf
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 0x6d7d6538
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 0x6d7d655c
jmp 0x6d7d6538
add rsi, qword [0x6d7f75e8]
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 0x6d7d650e
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 0x6d7d6538
xor esi, esi
jmp 0x6d7d6497
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7d6538
mov rax, qword [0x6d7f75e8]
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 0x6d7d6d50
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d7f78c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d7f78a0]
test rbx, rbx
je 0x6d7d6da4
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 0x6d7d6d9b
test rsi, rsi
je 0x6d7d6d9b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7d6d80
lea rcx, [0x6d7f78c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7d6fe0
Capabilities:
Parse pe header

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

Function at 0x6d7d7000
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 0x6d7d7041
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 0x6d7d7038
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7d7043
add rax, 0x28
cmp rax, r9
jne 0x6d7d7024
xor eax, eax
ret

Function at 0x6d7d70e0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f41f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7d714d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d714d
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 0x6d7d714d
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 0x6d7d7144
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d714f
add rax, 0x28
cmp rax, r9
jne 0x6d7d7130
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7d7250
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d7f41f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7d7270
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d7268
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 0x6d7d72cd
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 0x6d7d72c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7d72d4
add rax, 0x28
cmp rax, r9
jne 0x6d7d72b0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7d72f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d7f41f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7d735e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7d735e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7d735e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7d735e
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 0x6d7d7355
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7d7365
add rcx, 0x28
cmp rcx, rax
jne 0x6d7d7340
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7d7378
jmp 0x6d7d735e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7d7386
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7d735e
test r9d, r9d
jg 0x6d7d7370
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7d76c0
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 0x1400012f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
xor eax, eax
mov r9d, 0x101
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000137c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea rdx, str.EulaAccepted
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x40]
jne 0x14000137c
cmp dword [rsp + 0x60], 0
je 0x14000137c
mov eax, 1
add rsp, 0x48
ret
xor eax, eax
add rsp, 0x48
ret

Function at 0x140001390
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x268
mov rax, qword [0x140056fb0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r9, rcx
lea r8, str.SoftwareSysinternals
lea rdx, str._s_s
lea rcx, [rsp + 0x40]
call fcn.14000aecc
lea rdx, str.SoftwareSysinternals
mov rcx, 0xffffffff80000002
call fcn.1400012f0
test eax, eax
jne 0x1400014a4
lea rdx, str.SoftwareSysinternals
mov rcx, 0xffffffff80000001
call fcn.1400012f0
test eax, eax
jne 0x1400014a4
xor eax, eax
lea rdx, [rsp + 0x40]
mov r9d, 0x101
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000148a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea rdx, str.EulaAccepted
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x260], rbx
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
mov rbx, qword [rsp + 0x260]
jne 0x14000148a
cmp dword [rsp + 0x30], 0
jne 0x1400014a4
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000b260
add rsp, 0x268
ret
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000b260
add rsp, 0x268
ret
Function at 0x140001570
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x140056fb0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
lea r8, [rsp + 0x38]
lea rdx, str.SoftwareMicrosoftwindows_ntcurrentversion
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140001613
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [0x140025940]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140001608
lea rdx, [rsp + 0x50]
lea rcx, str.iotuap
call fcn.14000a6dc
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000b260
add rsp, 0x270
pop rbx
ret

Function at 0x140001630
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
lea r8, [rsp + 0x58]
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionServerServerLevels
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400016ba
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rdx, str.NanoServer
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400016af
cmp dword [rsp + 0x40], 4
jne 0x1400016af
mov eax, 1
cmp dword [rsp + 0x48], eax
cmove ebx, eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x1400019c0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov r14, r8
mov rdi, rdx
mov r12, rcx
mov r15d, ebp
test rdx, rdx
je 0x140001aae
test r8, r8
je 0x140001aae
mov qword [rsp + 0x50], rbx
mov ebx, ebp
mov qword [rsp + 0x60], r13
lea r13d, [rbp + 1]
cmp dword [rdx], ebx
jle 0x140001a7d
mov qword [rsp + 0x58], rsi
mov esi, ebp
nop dword [rax + rax]
mov rcx, qword [r14 + rsi*8]
lea rdx, [0x1400258a8]
call fcn.14000a6dc
test eax, eax
je 0x140001a43
mov rcx, qword [r14 + rsi*8]
lea rdx, str._accepteula
call fcn.14000a6dc
test eax, eax
je 0x140001a43
inc ebx
inc rsi
cmp ebx, dword [rdi]
jl 0x140001a10
jmp 0x140001a78
mov eax, dword [rdi]
mov r15d, r13d
dec eax
cmp ebx, eax
jge 0x140001a76
lea rdx, [r14 + rsi*8]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx + 8]
inc ebx
lea rdx, [rdx + 8]
mov qword [rdx - 8], rax
mov eax, dword [rdi]
dec eax
cmp ebx, eax
jl 0x140001a60
dec dword [rdi]
mov rsi, qword [rsp + 0x58]
mov edx, r15d
mov rcx, r12
call fcn.140001b90
mov rbx, qword [rsp + 0x50]
test eax, eax
cmovne r15d, r13d
mov r13, qword [rsp + 0x60]
test r15d, r15d
setne bpl
mov eax, ebp
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor r8d, r8d
xor edx, edx
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rbp
jmp 0x140001fc0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov r14, r8
mov rdi, rdx
mov r12, rcx
lea r13d, [rbp + 1]
mov r15d, ebp
test rdx, rdx
je 0x140001ff3
test r8, r8
jne 0x140002034
lea rcx, str.Shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.CommandLineToArgvW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400020bd
lea rdi, [0x140058aa0]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rdi
mov rcx, rax
call rbx
mov r14, rax
mov ebx, ebp
cmp dword [rdi], ebx
jle 0x1400020bd
mov qword [rsp + 0x50], rsi
mov rsi, rbp
nop word [rax + rax]
mov rcx, qword [r14 + rsi*8]
lea rdx, [0x1400258a8]
call fcn.14000a6dc
test eax, eax
je 0x140002083
mov rcx, qword [r14 + rsi*8]
lea rdx, str._accepteula
call fcn.14000a6dc
test eax, eax
je 0x140002083
inc ebx
inc rsi
cmp ebx, dword [rdi]
jl 0x140002050
jmp 0x1400020b8
mov eax, dword [rdi]
mov r15d, r13d
dec eax
cmp ebx, eax
jge 0x1400020b6
lea rdx, [r14 + rsi*8]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx + 8]
inc ebx
lea rdx, [rdx + 8]
mov qword [rdx - 8], rax
mov eax, dword [rdi]
dec eax
cmp ebx, eax
jl 0x1400020a0
dec dword [rdi]
mov rsi, qword [rsp + 0x50]
mov edx, r15d
mov rcx, r12
call fcn.140001b90
mov rbx, qword [rsp + 0x58]
test eax, eax
cmovne r15d, r13d
test r15d, r15d
setne bpl
mov eax, ebp
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001fc0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov r14, r8
mov rdi, rdx
mov r12, rcx
mov r15d, ebp
test rdx, rdx
je 0x140001aae
test r8, r8
je 0x140001aae
mov qword [rsp + 0x50], rbx
mov ebx, ebp
mov qword [rsp + 0x60], r13
lea r13d, [rbp + 1]
cmp dword [rdx], ebx
jle 0x140001a7d
mov qword [rsp + 0x58], rsi
mov esi, ebp
nop dword [rax + rax]
mov rcx, qword [r14 + rsi*8]
lea rdx, [0x1400258a8]
call fcn.14000a6dc
test eax, eax
je 0x140001a43
mov rcx, qword [r14 + rsi*8]
lea rdx, str._accepteula
call fcn.14000a6dc
test eax, eax
je 0x140001a43
inc ebx
inc rsi
cmp ebx, dword [rdi]
jl 0x140001a10
jmp 0x140001a78
mov eax, dword [rdi]
mov r15d, r13d
dec eax
cmp ebx, eax
jge 0x140001a76
lea rdx, [r14 + rsi*8]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx + 8]
inc ebx
lea rdx, [rdx + 8]
mov qword [rdx - 8], rax
mov eax, dword [rdi]
dec eax
cmp ebx, eax
jl 0x140001a60
dec dword [rdi]
mov rsi, qword [rsp + 0x58]
mov edx, r15d
mov rcx, r12
call fcn.140001b90
mov rbx, qword [rsp + 0x50]
test eax, eax
cmovne r15d, r13d
mov r13, qword [rsp + 0x60]
test r15d, r15d
setne bpl
mov eax, ebp
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor r8d, r8d
xor edx, edx
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rbp
jmp 0x140001fc0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor ebp, ebp
mov r14, r8
mov rdi, rdx
mov r12, rcx
lea r13d, [rbp + 1]
mov r15d, ebp
test rdx, rdx
je 0x140001ff3
test r8, r8
jne 0x140002034
lea rcx, str.Shell32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.CommandLineToArgvW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400020bd
lea rdi, [0x140058aa0]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rdi
mov rcx, rax
call rbx
mov r14, rax
mov ebx, ebp
cmp dword [rdi], ebx
jle 0x1400020bd
mov qword [rsp + 0x50], rsi
mov rsi, rbp
nop word [rax + rax]
mov rcx, qword [r14 + rsi*8]
lea rdx, [0x1400258a8]
call fcn.14000a6dc
test eax, eax
je 0x140002083
mov rcx, qword [r14 + rsi*8]
lea rdx, str._accepteula
call fcn.14000a6dc
test eax, eax
je 0x140002083
inc ebx
inc rsi
cmp ebx, dword [rdi]
jl 0x140002050
jmp 0x1400020b8
mov eax, dword [rdi]
mov r15d, r13d
dec eax
cmp ebx, eax
jge 0x1400020b6
lea rdx, [r14 + rsi*8]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rdx + 8]
inc ebx
lea rdx, [rdx + 8]
mov qword [rdx - 8], rax
mov eax, dword [rdi]
dec eax
cmp ebx, eax
jl 0x1400020a0
dec dword [rdi]
mov rsi, qword [rsp + 0x50]
mov edx, r15d
mov rcx, r12
call fcn.140001b90
mov rbx, qword [rsp + 0x58]
test eax, eax
cmovne r15d, r13d
test r15d, r15d
setne bpl
mov eax, ebp
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400022d0
Capabilities:
Get file version info

Disassembly:
test ecx, ecx
jne 0x140002457
mov r11, rsp
sub rsp, 0x278
mov rax, qword [0x140056fb0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
lea rdx, [rsp + 0x50]
mov r8d, 0x208
xor ecx, ecx
mov qword [r11 - 8], r14
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, eax
mov ebx, eax
call fcn.14000ac7c
lea rcx, [rsp + 0x50]
mov r8d, ebx
mov r9, rax
xor edx, edx
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea rdx, [0x140025b88]
mov rcx, rdi
call fcn.1400024f0
lea rdx, [0x140025ba8]
mov rcx, rdi
mov rbx, rax
call fcn.1400024f0
lea rdx, [0x140025bc0]
mov rcx, rdi
mov rsi, rax
call fcn.1400024f0
lea rdx, [0x140025be0]
mov rcx, rdi
mov rbp, rax
call fcn.1400024f0
lea rdx, [0x140025c00]
mov rcx, rdi
mov r14, rax
call fcn.1400024f0
mov rdi, rax
call fcn.1400016d0
test eax, eax
je 0x1400023e0
call fcn.14000bb04
mov qword [rsp + 0x30], rdi
lea rdx, str._n_s_v_s____s_n_s_n_s_n_n
lea rcx, [rax + 0x30]
mov r9, rsi
mov r8, rbx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbp
call fcn.14000bf20
call fcn.14000bb04
lea rcx, [rax + 0x30]
jmp 0x140002413
call fcn.14000bb04
mov qword [rsp + 0x30], rdi
lea rdx, str._n_s_v_s____s_n_s_n_s_n_n
lea rcx, [rax + 0x60]
mov r9, rsi
mov r8, rbx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbp
call fcn.14000bf20
call fcn.14000bb04
lea rcx, [rax + 0x60]
call fcn.14000bcec
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x280]
mov r14, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000b260
add rsp, 0x278
ret
Function at 0x1400022d8
Capabilities:
Get file version info

Disassembly:
test ecx, ecx
jne 0x140002457
mov r11, rsp
sub rsp, 0x278
mov rax, qword [0x140056fb0]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
lea rdx, [rsp + 0x50]
mov r8d, 0x208
xor ecx, ecx
mov qword [r11 - 8], r14
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ecx, eax
mov ebx, eax
call fcn.14000ac7c
lea rcx, [rsp + 0x50]
mov r8d, ebx
mov r9, rax
xor edx, edx
mov rdi, rax
call sub.VERSION.dll_GetFileVersionInfoW
lea rdx, [0x140025b88]
mov rcx, rdi
call fcn.1400024f0
lea rdx, [0x140025ba8]
mov rcx, rdi
mov rbx, rax
call fcn.1400024f0
lea rdx, [0x140025bc0]
mov rcx, rdi
mov rsi, rax
call fcn.1400024f0
lea rdx, [0x140025be0]
mov rcx, rdi
mov rbp, rax
call fcn.1400024f0
lea rdx, [0x140025c00]
mov rcx, rdi
mov r14, rax
call fcn.1400024f0
mov rdi, rax
call fcn.1400016d0
test eax, eax
je 0x1400023e0
call fcn.14000bb04
mov qword [rsp + 0x30], rdi
lea rdx, str._n_s_v_s____s_n_s_n_s_n_n
lea rcx, [rax + 0x30]
mov r9, rsi
mov r8, rbx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbp
call fcn.14000bf20
call fcn.14000bb04
lea rcx, [rax + 0x30]
jmp 0x140002413
call fcn.14000bb04
mov qword [rsp + 0x30], rdi
lea rdx, str._n_s_v_s____s_n_s_n_s_n_n
lea rcx, [rax + 0x60]
mov r9, rsi
mov r8, rbx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbp
call fcn.14000bf20
call fcn.14000bb04
lea rcx, [rax + 0x60]
call fcn.14000bcec
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x288]
mov rbx, qword [rsp + 0x280]
mov r14, qword [rsp + 0x270]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14000b260
add rsp, 0x278
ret

Function at 0x1400025b0
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
or dword [rdx], 0x60000
xor ebx, ebx
mov rdi, rdx
cmp qword [0x140058b00], rbx
mov qword [rsp + 0x58], rbx
je 0x140002656
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140002656
cmp bx, word [rcx + 4]
jae 0x140002656
nop dword [rax]
lea r8, [rsp + 0x20]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_GetAce]
mov rcx, qword [rsp + 0x20]
cmp byte [rcx], 0
jne 0x140002632
test byte [rcx + 1], 8
jne 0x140002632
mov rdx, qword [0x140058b00]
add rcx, 8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14000264c
mov rcx, qword [rsp + 0x58]
inc ebx
movzx eax, word [rcx + 4]
cmp ebx, eax
jl 0x140002600
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [rsp + 0x20]
mov ecx, dword [rax + 4]
and dword [rdi], ecx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140002920
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r14, qword [rsp + 0xe0]
xor esi, esi
mov r15, rcx
lea edx, [rsi + 0x16]
mov rcx, r14
mov r13, r9
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
call qword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
mov r12, qword [rsp + 0xd8]
mov rbp, qword [rsp + 0xd0]
neg eax
lea rdx, [rsp + 0x50]
mov rcx, rbp
sbb r8d, r8d
add r12, 8
and r8d, 5
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x60], r8d
lea r8, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetEffectiveRightsFromAclW]
mov ebx, eax
cmp eax, 5
jne 0x140002a2a
lea edx, [rsi + 0x16]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_IsWellKnownSid]
test eax, eax
je 0x140002a2e
mov qword [rsp + 0xb0], rdi
mov ebx, esi
mov edi, esi
cmp si, word [rbp + 4]
jae 0x140002a18
nop word [rax + rax]
lea r8, [rsp + 0x48]
mov edx, edi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_GetAce]
mov rdx, qword [rsp + 0x48]
mov rcx, r14
add rdx, 8
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x140002a0e
mov rax, qword [rsp + 0x48]
test byte [rax + 1], 8
jne 0x140002a0e
cmp byte [rax], 0
jne 0x140002a0b
or esi, dword [rax + 4]
jmp 0x140002a0e
or ebx, dword [rax + 4]
movzx eax, word [rbp + 4]
inc edi
cmp edi, eax
jl 0x1400029d0
mov rdi, qword [rsp + 0xb0]
not ebx
and ebx, esi
mov dword [rsp + 0x40], ebx
jmp 0x140002a61
test eax, eax
je 0x140002a5d
cmp byte [0x140058b13], sil
jne 0x140002a8e
lea rcx, str._s_n___Error_getting_security:_n
mov rdx, r15
call fcn.14000adf8
mov ecx, ebx
call fcn.140005190
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
mov ebx, dword [rsp + 0x40]
mov r9, qword [rsp + 0xc0]
mov r8, qword [rsp + 0xb8]
mov dword [rsp + 0x30], ebx
lea rcx, [0x1400265f0]
mov rdx, r15
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r13
call fcn.140005200
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret