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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d8b55e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d8942d8
mov rax, qword [0x6d8b55e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d89419c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d894225
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d894180
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d89430d
mov rax, qword [0x6d8b55e8]
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 [0x6d8b55e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d8942f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d89421e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d894280
add dword [0x6d8b55e4], 1
cmp edi, 8
jae 0x6d894253
test dil, 4
jne 0x6d8942c4
test edi, edi
je 0x6d894248
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d8942df
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 0x6d894248
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 0x6d89426c
jmp 0x6d894248
add rsi, qword [0x6d8b55e8]
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 0x6d89421e
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 0x6d894248
xor esi, esi
jmp 0x6d8941a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d894248
mov rax, qword [0x6d8b55e8]
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 0x6d894a60
Capabilities:
Get thread local storage value

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

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

Function at 0x6d894d10
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 0x6d894d51
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 0x6d894d48
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d894d53
add rax, 0x28
cmp rax, r9
jne 0x6d894d34
xor eax, eax
ret

Function at 0x6d894df0
Capabilities:
Enumerate pe sections

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

Function at 0x6d894f60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d8b21f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d894f80
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d894f78
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 0x6d894fdd
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 0x6d894fd4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d894fe4
add rax, 0x28
cmp rax, r9
jne 0x6d894fc0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d895000
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d8b21f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d89506e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d89506e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d89506e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d89506e
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 0x6d895065
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d895075
add rcx, 0x28
cmp rcx, rax
jne 0x6d895050
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d895088
jmp 0x6d89506e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d895096
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d89506e
test r9d, r9d
jg 0x6d895080
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d895400
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 0x140004d30
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
sub rsp, 0x108
mov rcx, r9
call fcn.140009e80
test al, al
jne 0x140004e65
mov qword [rsp + 0x110], rbx
call fcn.14003d6a0
lea rdx, str.CHROME_RESTART
mov rbx, rax
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + 0x10]
test al, al
je 0x140004e50
mov qword [rsp + 0x100], rdi
xor edi, edi
lea rdx, [0x1400e8ca8]
lea rcx, [rsp + 0x50]
lea r8d, [rdi + 1]
mov qword [rsp + 0x70], 0xf
mov qword [rsp + 0x68], rdi
mov byte [rsp + 0x58], dil
call fcn.140003ca0
mov r11, qword [rbx]
lea r8, [rsp + 0x50]
lea rdx, str.CHROME_CRASHED
mov rcx, rbx
call qword [r11 + 0x18]
cmp qword [rsp + 0x70], 0x10
jb 0x140004dc9
mov rcx, qword [rsp + 0x58]
call fcn.1400ab7f0
xor edx, edx
lea rcx, [rsp + 0x98]
mov dword [rsp + 0x90], 0x68
lea r8d, [rdx + 0x60]
call fcn.1400ac250
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
mov rdx, rax
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rdi, qword [rsp + 0x100]
test eax, eax
je 0x140004e50
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
mov rbx, qword [rsp + 0x110]
mov al, 1
add rsp, 0x108
ret
Function at 0x140008650
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x140112ac0]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rax, [rsp + 0x34]
mov rbx, r8
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x34], 0x100
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400086a8
xor al, al
jmp 0x1400086e3
cmp dword [rsp + 0x30], 1
jne 0x1400086a4
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x178], rdi
xor eax, eax
lea rdi, [rsp + 0x40]
lea rdx, [rsp + 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.1400041c0
mov rdi, qword [rsp + 0x178]
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400ac220
add rsp, 0x150
pop rbx
ret

Function at 0x140008700
Capabilities:
Check if file exists

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140112ac0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
call fcn.140099f70
mov r9d, 0x20019
mov rdx, rdi
neg al
lea rax, [rsp + 0x30]
sbb rcx, rcx
xor r8d, r8d
mov qword [rsp + 0x20], rax
add rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140008758
xor al, al
jmp 0x14000883e
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rsi
repne scasw ax, word [rdi]
mov rdx, rsi
mov qword [rsp + 0x58], 7
not rcx
mov qword [rsp + 0x50], rax
mov word [rsp + 0x40], ax
lea r8, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.1400041c0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, str.new_chrome.exe
lea rdx, str.new_chrome.exe
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.1400045a0
cmp qword [rsp + 0x58], 8
lea rcx, [rsp + 0x40]
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140008807
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1400f09f8]
mov r8, rbx
call fcn.140008650
test al, al
je 0x140008807
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x58], 8
jb 0x140008803
mov rcx, qword [rsp + 0x40]
call fcn.1400ab7f0
mov al, 1
jmp 0x14000883e
mov rcx, qword [rsp + 0x30]
lea rdx, [0x1400f0a30]
mov r8, rbx
call fcn.140008650
mov rcx, qword [rsp + 0x30]
movzx edi, al
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x58], 8
jb 0x14000883b
mov rcx, qword [rsp + 0x40]
call fcn.1400ab7f0
mov al, dil
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ac220
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140008980
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x130
mov rax, qword [0x140112ac0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rbx, rdx
lea rdx, [rsp + 0x20]
mov r8d, 0x80
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1400089f0
cmp eax, 0x80
jae 0x1400089f0
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x150], rdi
xor eax, eax
lea rdi, [rsp + 0x20]
lea rdx, [rsp + 0x20]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.1400041c0
mov rdi, qword [rsp + 0x150]
mov al, 1
jmp 0x1400089f2
xor al, al
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400ac220
add rsp, 0x130
pop rbx
ret

Function at 0x140008a10
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x140112ac0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rsi, rdx
xor ebp, ebp
lea rdi, str.SoftwareGoogleUpdateClientState
repne scasw ax, word [rdi]
lea rdx, str.SoftwareGoogleUpdateClientState
mov qword [rsp + 0x78], 7
not rcx
mov qword [rsp + 0x70], rbp
mov word [rsp + 0x60], bp
lea r8, [rcx - 1]
lea rcx, [rsp + 0x58]
call fcn.1400041c0
lea r8d, [rbp + 1]
lea rdx, [0x1400e8fe0]
lea rcx, [rsp + 0x58]
call fcn.1400045a0
or rcx, 0xffffffffffffffff
mov rdi, rbx
mov r11, rax
xor eax, eax
mov rdx, rbx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call fcn.1400045a0
cmp qword [rsp + 0x78], 8
mov qword [rsp + 0x40], rbp
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, 0xffffffff80000001
cmovae rdx, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140008b42
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
lea r9d, [rbp + 1]
lea eax, [rax + rax + 2]
lea rdx, [0x1400f0980]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rsp + 0x78], 8
jb 0x140008b3e
mov rcx, qword [rsp + 0x60]
call fcn.1400ab7f0
mov al, 1
jmp 0x140008b56
cmp qword [rsp + 0x78], 8
jb 0x140008b54
mov rcx, qword [rsp + 0x60]
call fcn.1400ab7f0
xor al, al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400ac220
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012150
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
test rcx, rcx
je 0x140012164
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400122c0
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x5c0
mov rdi, rcx
mov rcx, rdx
mov rbp, r9
mov rbx, r8
mov r12, rdx
call fcn.1400ac9d0
mov rcx, rbx
mov qword [rdi + 0x50], rax
call fcn.1400ac9d0
xor r13d, r13d
mov rbx, rax
test rbp, rbp
je 0x140012313
mov rcx, rbp
call fcn.1400ac9d0
mov rsi, rax
jmp 0x140012316
mov rsi, r13
xor edx, edx
lea rcx, [rsp + 0x88]
mov dword [rsp + 0x80], 0x68
lea r8d, [rdx + 0x60]
call fcn.1400ac250
mov r11, qword [rsp + 0x90]
mov rcx, qword [rdi + 0x18]
test rbp, rbp
mov r8, rbx
mov rdx, r12
cmovne r11, rsi
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x90], r11
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x100040c
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x1400123c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rsi
call fcn.1400ac958
mov rcx, rbx
call fcn.1400ac958
mov eax, edi
jmp 0x14001249b
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x140012405
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400123ae
mov rdx, qword [rdi + 0x20]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x1400123d8
mov rcx, qword [rsp + 0x68]
lea rdx, [rsp + 0xf0]
mov dword [rsp + 0x120], 0x10001f
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400123d8
mov rax, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x170]
mov rcx, r12
mov qword [rdi], rax
mov rax, qword [rsp + 0x68]
mov qword [rdi + 8], rax
mov eax, dword [rsp + 0x70]
mov dword [rdi + 0x10], eax
call fcn.140011d70
mov rcx, qword [rsp + 0x600]
mov qword [rdi + 0x48], rax
lea rdx, [rsp + 0x60]
mov rax, qword [rdx]
mov qword [rcx], rax
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx + 0x10]
mov qword [rcx + 0x10], rax
mov rcx, rsi
call fcn.1400ac958
mov rcx, rbx
call fcn.1400ac958
xor eax, eax
lea r11, [rsp + 0x5c0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x140017190
Capabilities:
Compare security identifiers

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x190
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
mov dword [rsp + 0x1b0], ebx
cmp byte [0x1401148b0], bl
je 0x1400171f6
call fcn.14003e110
cmp eax, 3
jg 0x1400171f6
cmp byte [r14 + 0x9c], bl
jne 0x1400171f6
mov ebx, 1
lea rdx, str.._src_restricted_token.cc
lea rcx, [rsp + 0x78]
lea r9d, [rbx + 2]
mov r8d, 0xbf
call fcn.1400403f0
lea rdx, str.Check_failed:_init_.
lea rcx, [rax + 8]
call fcn.140005bd0
test bl, 1
je 0x140017205
lea rcx, [rsp + 0x78]
call fcn.14003feb0
cmp byte [r14 + 0x9c], 0
jne 0x140017220
mov eax, 0x3f0
add rsp, 0x190
pop r14
pop rsi
pop rbx
ret
mov rcx, qword [r14 + 0x90]
xor r9d, r9d
lea rax, [rsp + 0x1b0]
lea edx, [r9 + 2]
xor r8d, r8d
mov dword [rsp + 0x1b0], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r11d, dword [rsp + 0x1b0]
test r11d, r11d
jne 0x14001726e
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x190
pop r14
pop rsi
pop rbx
ret
mov rcx, r11
mov qword [rsp + 0x1c8], r12
call fcn.1400aa13c
mov r9d, dword [rsp + 0x1b0]
mov rcx, qword [r14 + 0x90]
mov r12, rax
lea rax, [rsp + 0x1b0]
mov edx, 2
mov r8, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x1400172c2
mov rcx, r12
call fcn.1400ac33c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400173e6
mov qword [rsp + 0x1b8], rbp
xor ebp, ebp
cmp dword [r12], ebp
jbe 0x1400173d4
mov qword [rsp + 0x1c0], rdi
mov qword [rsp + 0x188], r13
mov qword [rsp + 0x180], r15
movabs r15, 0x7878787878787879
lea rdi, [r12 + 8]
nop dword [rax]
mov eax, dword [rdi + 8]
test al, 0x20
jne 0x1400173ac
test eax, 0xc0000000
jne 0x1400173ac
test rsi, rsi
je 0x140017391
mov rcx, qword [rsi + 0x20]
mov rax, r15
xor r13d, r13d
sub rcx, qword [rsi + 0x18]
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140017391
xor ebx, ebx
nop
cmp rbx, rdx
jb 0x14001734a
call fcn.1400abd34
imul rbx, rbx, 0x44
add rbx, qword [rsi + 0x18]
mov rcx, rbx
call fcn.140017eb0
mov rdx, qword [rdi]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1400173ac
mov rcx, qword [rsi + 0x20]
inc r13d
mov rax, r15
sub rcx, qword [rsi + 0x18]
mov ebx, r13d
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rbx, rdx
jb 0x140017340
mov rdx, qword [rdi]
lea rcx, [rsp + 0x30]
call fcn.140017e80
lea rcx, [r14 + 0x60]
lea rdx, [rsp + 0x30]
call fcn.14000ea40
inc ebp
add rdi, 0x10
cmp ebp, dword [r12]
jb 0x140017300
mov r15, qword [rsp + 0x180]
mov r13, qword [rsp + 0x188]
mov rdi, qword [rsp + 0x1c0]
mov rcx, r12
call fcn.1400ac33c
mov rbp, qword [rsp + 0x1b8]
xor eax, eax
mov r12, qword [rsp + 0x1c8]
add rsp, 0x190
pop r14
pop rsi
pop rbx
ret
Function at 0x1400175f0
Capabilities:
Get token privileges

Disassembly:
push rbx
push rsi
push r15
sub rsp, 0x150
xor ebx, ebx
mov rsi, rdx
mov r15, rcx
mov dword [rsp + 0x170], ebx
cmp byte [0x1401148b0], bl
je 0x140017656
call fcn.14003e110
cmp eax, 3
jg 0x140017656
cmp byte [r15 + 0x9c], bl
jne 0x140017656
mov ebx, 1
lea rdx, str.._src_restricted_token.cc
lea rcx, [rsp + 0x30]
lea r9d, [rbx + 2]
mov r8d, 0x116
call fcn.1400403f0
lea rdx, str.Check_failed:_init_.
lea rcx, [rax + 8]
call fcn.140005bd0
test bl, 1
je 0x140017665
lea rcx, [rsp + 0x30]
call fcn.14003feb0
cmp byte [r15 + 0x9c], 0
jne 0x140017680
mov eax, 0x3f0
add rsp, 0x150
pop r15
pop rsi
pop rbx
ret
mov rcx, qword [r15 + 0x90]
xor r9d, r9d
lea rax, [rsp + 0x170]
lea edx, [r9 + 3]
xor r8d, r8d
mov dword [rsp + 0x170], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r11d, dword [rsp + 0x170]
test r11d, r11d
jne 0x1400176ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x150
pop r15
pop rsi
pop rbx
ret
mov rcx, r11
mov qword [rsp + 0x138], r13
call fcn.1400aa13c
mov r9d, dword [rsp + 0x170]
mov rcx, qword [r15 + 0x90]
mov r13, rax
lea rax, [rsp + 0x170]
mov edx, 3
mov r8, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140017722
mov rcx, r13
call fcn.1400ac33c
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140017880
mov qword [rsp + 0x140], r12
xor r12d, r12d
cmp dword [r13], r12d
jbe 0x14001786e
mov qword [rsp + 0x178], rbp
mov qword [rsp + 0x148], rdi
movabs rax, 0x6666666666666667
mov qword [rsp + 0x130], r14
mov rdi, r13
nop dword [rax]
test rsi, rsi
je 0x140017829
mov rcx, qword [rsi + 0x20]
xor r14d, r14d
xor ebp, ebp
sub rcx, qword [rsi + 0x18]
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x140017829
xor ebx, ebx
nop
xor eax, eax
mov dword [rsp + 0x180], 0
mov dword [rsp + 0x184], eax
cmp rbp, rdx
jb 0x1400177ae
call fcn.1400abd34
mov rax, qword [rsi + 0x18]
cmp qword [rbx + rax + 0x20], 8
jb 0x1400177c1
mov rdx, qword [rbx + rax + 8]
jmp 0x1400177c6
lea rdx, [rbx + rax + 8]
lea r8, [rsp + 0x180]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov r11d, dword [rsp + 0x184]
cmp dword [rdi + 8], r11d
jne 0x1400177f0
mov eax, dword [rsp + 0x180]
cmp dword [rdi + 4], eax
je 0x14001783b
mov rcx, qword [rsi + 0x20]
inc r14d
movabs rax, 0x6666666666666667
sub rcx, qword [rsi + 0x18]
inc rbp
add rbx, 0x28
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov eax, r14d
cmp rax, rdx
jb 0x140017790
lea rcx, [r12 + r12*2]
lea rdx, [r13 + rcx*4 + 4]
lea rcx, [r15 + 0x30]
call fcn.140016980
inc r12d
add rdi, 0xc
movabs rax, 0x6666666666666667
cmp r12d, dword [r13]
jb 0x140017760
mov r14, qword [rsp + 0x130]
mov rdi, qword [rsp + 0x148]
mov rbp, qword [rsp + 0x178]
mov rcx, r13
call fcn.1400ac33c
mov r12, qword [rsp + 0x140]
xor eax, eax
mov r13, qword [rsp + 0x138]
add rsp, 0x150
pop r15
pop rsi
pop rbx
ret
Function at 0x140017f90
Capabilities:
Check os version

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x1f0
mov rax, qword [0x140112ac0]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
cmp qword [rcx], 0
mov ebp, r9d
mov edi, edx
mov rsi, rcx
je 0x140017fc5
mov eax, 0x4df
jmp 0x1400180f6
mov rdx, r8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov qword [rsi], rax
test rax, rax
jne 0x140017fe3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400180f6
mov qword [rsp + 0x218], rbx
lea rcx, [rsp + 0x34]
xor ebx, ebx
xor edx, edx
mov r8d, 0x8c
mov dword [rsp + 0x30], ebx
call fcn.1400ac250
mov dword [rsp + 0x20], ebx
test edi, edi
je 0x140018035
sub edi, 1
je 0x14001802f
sub edi, 1
je 0x140018029
sub edi, 1
je 0x140018054
cmp edi, 1
je 0x14001805e
mov eax, 0xa0
jmp 0x1400180ee
mov eax, dword [rsp + 0x40]
jmp 0x140018042
mov eax, dword [rsp + 0x40]
jmp 0x14001803d
mov eax, dword [rsp + 0x40]
bts eax, 0xa
mov ebx, 0x27
or ebx, 0x10
or eax, 8
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x40], eax
or ebx, 0xc8
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0xc4]
xor edx, edx
mov r8d, 0x110
call fcn.1400ac250
lea rcx, [rsp + 0xc0]
mov dword [rsp + 0xc0], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0xc4], 5
jne 0x1400180a0
cmp dword [rsp + 0xc8], 0
je 0x1400180a6
bts dword [rsp + 0x40], 0xd
mov rcx, qword [rsi]
lea r8, [rsp + 0x30]
mov r9d, 0x90
mov edx, 9
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
je 0x1400180e4
mov rcx, qword [rsi]
mov r9d, 4
lea r8, [rsp + 0x20]
not ebp
mov edx, r9d
and dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
jne 0x1400180ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400180ee
xor eax, eax
mov rbx, qword [rsp + 0x218]
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.1400ac220
add rsp, 0x1f0
pop rdi
pop rsi
pop rbp
ret