joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040b34
Capabilities:
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
and dword [rsp + 0x70], 0
mov eax, dword [rcx]
mov rcx, qword [rcx + 8]
mov rdi, r9
mov rsi, r8
mov rbx, rdx
cmp eax, 1
jne 0x140040b91
mov rax, qword [rcx + 0x18]
cmp qword [rcx + 0x10], rax
je 0x140040c61
mov qword [r11 - 0x40], r9
mov r9, qword [rbx + 8]
mov rdx, rax
sub rdx, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x10]
mov qword [r11 - 0x48], r8
mov r8, qword [rbx]
call fcn.140040834
mov al, 1
jmp 0x140040c63
cmp qword [rcx], 0
je 0x140040c61
cmp qword [rcx + 8], 0
je 0x140040c61
test eax, eax
jne 0x140040c61
and qword [rsp + 0x30], 0
mov r8, qword [rcx + 8]
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov edx, 0x8009
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140040c4b
xor edx, edx
lea rcx, [rsp + 0x38]
lea r8d, [rdx + 0x28]
call fcn.14009c6c0
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
lea r8, [rsp + 0x38]
lea edx, [r9 + 5]
mov dword [rsp + 0x38], 0x8004
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x140040c4b
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140040c4b
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8, rsi
mov edx, 2
mov dword [rsp + 0x70], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
setne bl
jmp 0x140040c4d
xor bl, bl
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140040c5d
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov al, bl
jmp 0x140040c63
xor al, al
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140040cfc
Capabilities:
Hash data using sha256

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rbx, rcx
call fcn.14009c6c0
movups xmm0, xmmword [0x1400cf810]
movups xmmword [rbx + 0x100], xmm0
movups xmm1, xmmword [0x1400cf820]
movups xmmword [rbx + 0x110], xmm1
add rsp, 0x20
pop rbx
ret
Function at 0x140042900
Capabilities:
Connect pipe

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and dword [rsp + 0x30], 0
cmp byte [rcx + 0x1068], 0
mov rdi, rcx
je 0x140042922
mov byte [rcx + 0x1068], 0
mov rcx, qword [rcx + 0x10a0]
cmp rcx, 0xffffffffffffffff
je 0x140042986
lea rdx, [rdi + 0x1040]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
or dword [rdi + 0x10dc], 2
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140042986
cmp eax, 0xe8
je 0x140042986
cmp eax, 0x217
je 0x140042974
cmp eax, 0x3e5
jne 0x140042986
or dword [rdi + 0x10dc], 4
mov byte [rdi + 0x1068], 1
jmp 0x140042982
or dword [rdi + 0x10dc], 0x10
mov byte [rdi + 0x10d8], 0
mov al, 1
jmp 0x140042988
xor al, al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140042994
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x140
xor edi, edi
mov rbx, rcx
mov dword [rsp + 0x150], edi
cmp byte [rcx + 0x1098], dil
je 0x140042a4c
mov byte [rcx + 0x1098], dil
test rdx, rdx
je 0x140042b56
test r8d, r8d
je 0x140042b56
cmp qword [rcx + 0x10d0], rdi
jne 0x1400429eb
call fcn.140018794
mov rax, qword [rbx + 0x10b0]
mov r8, qword [rbx + 0x10c8]
mov rdx, rdi
test rax, rax
je 0x140042a04
mov rdx, qword [rax]
mov rcx, qword [rdx + 0x10]
mov rax, r8
and r8d, 1
shr rax, 1
dec rcx
and rcx, rax
mov rax, qword [rdx + 8]
mov rax, qword [rax + rcx*8]
mov rcx, qword [rax + r8*8]
dec qword [rbx + 0x10d0]
jne 0x140042a36
mov qword [rbx + 0x10c8], rdi
jmp 0x140042a3d
inc qword [rbx + 0x10c8]
test rcx, rcx
je 0x140042a4c
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
cmp qword [rbx + 0x10d0], rdi
je 0x140042bbd
cmp qword [rbx + 0x10a0], 0xffffffffffffffff
je 0x140042bb2
mov rax, qword [rbx + 0x10b0]
mov r8, qword [rbx + 0x10c8]
mov rdx, rdi
test rax, rax
je 0x140042a80
mov rdx, qword [rax]
mov rcx, qword [rdx + 0x10]
mov rax, r8
and r8d, 1
shr rax, 1
dec rcx
and rcx, rax
mov rax, qword [rdx + 8]
mov rax, qword [rax + rcx*8]
mov rsi, qword [rax + r8*8]
or dword [rbx + 0x10dc], 0x20
cmp byte [rbx + 0x10db], dil
je 0x140042ab5
call fcn.140018794
mov rcx, qword [rbx + 0x10a0]
mov byte [rbx + 0x10db], 1
mov rdx, qword [rsi + 8]
mov r8d, dword [rdx]
lea rax, [rbx + 0x1070]
lea r9, [rsp + 0x160]
add r8, qword [rsi + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140042bb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x3e5
je 0x140042bb6
mov byte [rbx + 0x10db], dil
call fcn.140018da4
mov ebx, 0x100
cmp eax, 2
jg 0x140042b52
lea rdx, str.b:core_srcipcipc_channel_win.cc
lea rcx, [rsp + 0x30]
mov r9d, 2
mov r8d, 0x1ca
mov edi, ebx
call fcn.140018824
lea rdx, str.pipe_error:
lea rcx, [rax + 8]
call fcn.1400013e0
mov edx, esi
mov rcx, rax
call fcn.140007844
test ebx, edi
jmp 0x140042ba6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140018da4
cmp eax, 2
jg 0x140042ba2
mov edi, 8
lea rdx, str.b:core_srcipcipc_channel_win.cc
lea rcx, [rsp + 0x30]
lea r9d, [rdi - 6]
mov r8d, 0x1a4
call fcn.140018824
lea rdx, str.pipe_error:
lea rcx, [rax + 8]
call fcn.1400013e0
mov edx, ebx
mov rcx, rax
call fcn.140007844
test dil, 8
je 0x140042bb2
lea rcx, [rsp + 0x30]
call fcn.1400188b0
xor al, al
jmp 0x140042bbf
mov byte [rbx + 0x1098], 1
mov al, 1
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140045114
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1401cb8c0]
lea rdi, [0x1401cb8c0]
test rax, 0xfffffffffffffffe
jne 0x14004516c
mov rcx, rdi
call fcn.140018754
test al, al
je 0x14004516c
and dword [0x1401cb8c8], 0
lea rcx, [0x1401cb8c8]
call fcn.14002d704
lea r9, [0x1400bffd8]
lea rdx, [0x1401cb8c8]
mov r8, rdi
mov rcx, rdi
call fcn.140018738
mov rax, qword [0x1401cb8c0]
mov ecx, dword [rax]
call sub.KERNEL32.dll_TlsGetValue
mov rbx, rax
test rax, rax
jne 0x1400451f8
mov ecx, 0x80
call fcn.14009bbc0
test rax, rax
je 0x14004519e
mov rcx, rax
call fcn.140044b64
mov rbx, rax
jmp 0x1400451a0
xor ebx, ebx
mov rax, qword [0x1401cb8c0]
test rax, 0xfffffffffffffffe
jne 0x1400451e7
mov rcx, rdi
call fcn.140018754
test al, al
je 0x1400451e7
and dword [0x1401cb8c8], 0
lea rcx, [0x1401cb8c8]
call fcn.14002d704
lea r9, [0x1400bffd8]
lea rdx, [0x1401cb8c8]
mov r8, rdi
mov rcx, rdi
call fcn.140018738
mov rax, qword [0x1401cb8c0]
mov rdx, rbx
mov ecx, dword [rax]
call fcn.14002d72c
inc dword [rbx + 0x74]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14004bf4c
Capabilities:
Read file via mapping

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
and qword [r11 - 0x40], 0
mov r14d, dword [rsp + 0x90]
mov r15d, r9d
lea eax, [r15 + r14]
mov r12, r8
mov r13, rdx
mov rdi, rcx
lea rsi, [rcx + 0x28]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000004
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rcx, rsi
mov rdx, rax
call fcn.1400084d0
mov rbp, qword [rsi]
lea rax, [rbp + 1]
test rax, 0xfffffffffffffffe
jne 0x14004bfc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14004c166
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rsp + 0x70]
mov rcx, rax
mov r8, rbx
mov rdx, rbp
mov dword [rsp + 0x20], 6
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x14004bfbc
mov rcx, qword [rsi]
and qword [rsp + 0x20], 0
xor r9d, r9d
lea edx, [r9 + 6]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
je 0x14004bfbc
lea r8, [r15 + rax]
mov rdx, r14
mov rcx, r12
mov rsi, r14
call fcn.14004bbfc
mov rax, qword [rsp + 0x70]
mov r12d, 8
lea r8, [0x1401cb980]
lea rdx, str.g_shared_section
mov rcx, rdi
mov r9d, r12d
mov qword [0x1401cb980], rax
call fcn.14004c1b0
xor r14d, r14d
mov ecx, eax
mov qword [0x1401cb980], r14
test eax, eax
je 0x14004c07a
mov eax, 1
cmp ecx, eax
jne 0x14004c166
jmp 0x14004bfbc
lea r8, [0x1401cbab0]
lea rdx, str.g_shared_IPC_size
mov r9, r12
mov rcx, rdi
mov qword [0x1401cbab0], r15
call fcn.14004c1b0
mov qword [0x1401cbab0], r14
mov ecx, eax
test eax, eax
jne 0x14004c068
lea r8, [0x1401cbab8]
lea rdx, str.g_shared_policy_size
mov r9, r12
mov rcx, rdi
mov qword [0x1401cbab8], rsi
call fcn.14004c1b0
mov qword [0x1401cbab8], r14
mov ecx, eax
test eax, eax
jne 0x14004c068
lea ecx, [rax + 0x40]
call fcn.14009bbc0
test rax, rax
je 0x14004c107
mov rcx, qword [rdi + 0x40]
mov r9, qword [rdi + 0x30]
mov r8d, dword [rdi + 0x10]
mov rdx, qword [rdi]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.140050394
mov rbx, rax
jmp 0x14004c10a
mov rbx, r14
test rbx, rbx
je 0x14004c115
cmp rbx, qword [rdi + 0x38]
je 0x14004c184
mov rsi, qword [rdi + 0x38]
mov qword [rdi + 0x38], r14
test rsi, rsi
je 0x14004c132
mov rcx, rsi
call fcn.140050450
mov rcx, rsi
call fcn.14009bc2c
mov r9d, 0x400
mov r8d, r15d
mov rdx, rbp
mov rcx, rbx
mov qword [rdi + 0x38], rbx
call fcn.1400506b4
test al, al
jne 0x14004c153
mov eax, r12d
jmp 0x14004c166
mov rcx, rdi
call fcn.140023a9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.14009c998
int3
Function at 0x14004c18c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140023928
test al, al
je 0x14004c1a9
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x20
pop rbx
ret

Function at 0x140051d68
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor edi, edi
mov rsi, rcx
lea ebx, [rdi + 1]
mov dword [rsp + 0x30], edi
test dl, dl
jne 0x140051db2
cmp qword [rcx + 0x10], rdi
jne 0x140051e01
mov eax, ebx
jmp 0x140051f2d
lea rax, [0x14005bfc0]
lea r8, str.NtMapViewOfSection
lea rdx, [0x1400d0420]
mov r9d, ebx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.1400514c0
lea rax, [0x14005c204]
lea r8, str.NtUnmapViewOfSection
lea rdx, [0x1400d0420]
mov r9d, ebx
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call fcn.1400514c0
mov rax, qword [rsi]
xor edx, edx
mov r9d, 0x2000
mov r14, qword [rax]
mov r8d, 0x10000
mov dword [rsp + 0x20], ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, qword [rsi + 0x10]
shl rbp, 6
mov rbx, rax
add rbp, 0x60
mov rcx, rbp
call fcn.1400518d4
mov rcx, 0xfffffffffffff000
lea r8, [rbp + 0xfff]
mov rdx, rax
mov r15, rax
and r8, rcx
and rdx, rcx
mov r9d, 0x1000
mov rcx, r14
add rdx, rbx
and r15d, 0xfff
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x140051e81
call fcn.140018794
add rbx, r15
lea rcx, [0x1401cbaf0]
mov r15d, 0x20
xor edx, edx
mov r8d, 0xc8
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x58], edi
call fcn.14009c6c0
lea r9, [rsp + 0x40]
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call fcn.140051ab4
test al, al
je 0x140051f2b
lea rax, [rsp + 0x38]
lea r8, [rsp + 0x40]
mov r9d, r15d
mov rdx, rbx
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140051f2b
cmp qword [rsp + 0x38], r15
jne 0x140051f2b
lea rax, [rsp + 0x30]
mov r9d, r15d
mov r8, rbp
mov rdx, rbx
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsi]
lea r8, [0x1401cbaf0]
lea rdx, str.g_originals
mov r9d, 0xc8
call fcn.14004c1b0
test eax, eax
sete al
jmp 0x140051f2d
xor al, al
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14009c5b0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400572cc
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [rsp + 0xa0]
mov r10d, r9d
mov r9d, dword [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x98]
mov r11d, r8d
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x90]
mov rbx, rdx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x88]
mov rdi, rcx
mov r8d, r10d
mov edx, r11d
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
or rsi, 0xffffffffffffffff
mov rbx, rax
cmp rax, rsi
jne 0x14005733d
mov rax, rsi
jmp 0x140057377
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 3
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov r8, rdi
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsp + 0x40]
test eax, eax
cmove rcx, rsi
mov rax, rcx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1400581f0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rsi, qword [rsp + 0xc8]
mov r10, r9
mov r9, qword [rsp + 0x98]
mov qword [rax - 0x20], rsi
mov rax, qword [rsp + 0xc0]
mov r11, r8
mov r8, qword [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb0]
mov r15d, edx
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0xa8]
mov r14, rcx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov rdx, r10
mov rcx, r11
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xor edi, edi
test eax, eax
jne 0x140058286
xor eax, eax
jmp 0x140058306
mov ebx, 0x101c01
mov ebp, 0x100c43
test r15d, r15d
je 0x14005829c
mov ebx, 0x1fffff
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsi]
mov r15d, 1
mov dword [rsp + 0x30], r15d
mov r9, rsi
mov r8, r14
mov rcx, rax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1400582d7
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14005827f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsi + 8]
mov dword [rsp + 0x30], r15d
lea r9, [rsi + 8]
mov rcx, rax
mov r8, r14
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne dil
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14005a718
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, rdx
mov rdx, rcx
xor ebx, ebx
or r14, 0xffffffffffffffff
lea rcx, [rbp - 0x48]
mov esi, 7
xor r8d, r8d
mov r9, r14
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x48], bx
call fcn.1400093e4
lea r15d, [rsi - 3]
lea r9, [0x1400d0e20]
lea rcx, [rbp - 0x48]
mov r8d, r15d
xor edx, edx
mov qword [rsp + 0x20], r15
call fcn.1400034bc
test eax, eax
jne 0x14005a7e2
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
mov r9, r14
mov r8d, r15d
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x18], rbx
mov word [rbp - 0x28], bx
call fcn.1400093e4
cmp qword [rbp - 0x30], 8
jb 0x14005a7b9
mov rcx, qword [rbp - 0x48]
call fcn.14009bc2c
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x38], rbx
mov word [rbp - 0x48], bx
call fcn.1400027ac
cmp qword [rbp - 0x10], 8
jb 0x14005a7e2
mov rcx, qword [rbp - 0x28]
call fcn.14009bc2c
lea rcx, [rbp - 0x48]
call fcn.14005a664
test al, al
je 0x14005a7f6
mov byte [rdi], bl
jmp 0x14005a8b8
mov rax, r14
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
mov r9, rax
xor r8d, r8d
mov qword [rbp - 0x10], rsi
mov qword [rbp - 0x18], rbx
mov word [rbp - 0x28], bx
call fcn.1400093e4
cmp qword [rbp - 0x30], 8
jb 0x14005a828
mov rcx, qword [rbp - 0x48]
call fcn.14009bc2c
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x38], rbx
mov word [rbp - 0x48], bx
call fcn.1400027ac
cmp qword [rbp - 0x10], 8
jb 0x14005a851
mov rcx, qword [rbp - 0x28]
call fcn.14009bc2c
cmp qword [rbp - 0x30], 8
lea rcx, [rbp - 0x48]
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14005a883
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
add eax, 0xfffffffe
cmp eax, 1
jbe 0x14005a889
cmp ecx, 0x7b
je 0x14005a889
mov ebx, ecx
jmp 0x14005a8b8
bt eax, 0xa
jb 0x14005a8b5
mov eax, 0x5c
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x48]
lea r9d, [rax - 0x5b]
mov r8, r14
mov word [rbp - 0x50], ax
call fcn.140009644
cmp rax, 2
jbe 0x14005a7ef
jmp 0x14005a7f9
mov byte [rdi], 1
cmp qword [rbp - 0x30], 8
jb 0x14005a8c8
mov rcx, qword [rbp - 0x48]
call fcn.14009bc2c
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.14009c5b0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005ae00
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x40
mov rbx, r9
lea rax, [r11 - 0x18]
mov r14, r8
mov r9d, 8
mov r8, rbx
mov rsi, rdx
mov qword [r11 - 0x28], rax
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor edi, edi
test eax, eax
je 0x14005ae91
lea rax, [rsp + 0x38]
mov r9, rbx
mov r8, r14
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14005ae6c
cmp rbx, qword [rsp + 0x38]
jne 0x14005ae6c
mov dil, 1
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
neg eax
sbb al, al
and al, dil
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14005af04
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rsp + 0x90], rax
and dword [rsp + 0x30], 0
cmp byte [rcx + 0x54], 0
mov r14, rdx
mov rbp, rcx
jne 0x14005af4a
mov eax, 0x3f0
jmp 0x14005b0a9
mov rcx, qword [rcx + 0x48]
and dword [rsp + 0x30], 0
xor r9d, r9d
lea edi, [r9 + 2]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x14005af82
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005b0a9
mov rcx, rax
call fcn.14009b1fc
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rbp + 0x48]
mov rbx, rax
lea rax, [rsp + 0x30]
mov edx, edi
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14005afb9
mov rcx, rbx
call fcn.14009ca30
jmp 0x14005af77
xor edi, edi
cmp dword [rbx], edi
jbe 0x14005b09f
movabs rax, 0x7878787878787879
mov esi, edi
add rsi, rsi
test byte [rbx + rsi*8 + 0x10], 0x20
jne 0x14005b08b
test dword [rbx + rsi*8 + 0x10], 0xc0000000
jne 0x14005b08b
xor r15b, r15b
test r14, r14
je 0x14005b069
mov r8, qword [r14]
mov rcx, qword [r14 + 8]
xor r12d, r12d
sub rcx, r8
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x14005b069
xor r9d, r9d
imul rcx, r9, 0x44
add rcx, r8
call fcn.140006efc
mov rdx, qword [rbx + rsi*8 + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x14005b066
mov r8, qword [r14]
mov rcx, qword [r14 + 8]
inc r12d
sub rcx, r8
movabs rax, 0x7878787878787879
mov r9d, r12d
imul rcx
sar rdx, 5
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp r9, rdx
jb 0x14005b016
jmp 0x14005b069
mov r15b, 1
test r15b, r15b
jne 0x14005b08b
mov rdx, qword [rbx + rsi*8 + 8]
lea rcx, [rsp + 0x40]
call fcn.14005aeac
lea rcx, [rbp + 0x30]
lea rdx, [rsp + 0x40]
call fcn.14005bcb4
inc edi
movabs rax, 0x7878787878787879
cmp edi, dword [rbx]
jb 0x14005afcd
mov rcx, rbx
call fcn.14009ca30
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14009c5b0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14005b4d4
Capabilities:
Get token privileges

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
and dword [rsp + 0x60], 0
cmp byte [rcx + 0x54], 0
mov rsi, rdx
mov rbp, rcx
jne 0x14005b4ff
mov eax, 0x3f0
jmp 0x14005b622
mov rcx, qword [rcx + 0x48]
and dword [rsp + 0x60], 0
xor r9d, r9d
lea edi, [r9 + 3]
lea rax, [rsp + 0x60]
xor r8d, r8d
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rsp + 0x60]
test eax, eax
jne 0x14005b537
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14005b622
mov rcx, rax
call fcn.14009b1fc
mov r9d, dword [rsp + 0x60]
mov rcx, qword [rbp + 0x48]
mov rbx, rax
lea rax, [rsp + 0x60]
mov edx, edi
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14005b56e
mov rcx, rbx
call fcn.14009ca30
jmp 0x14005b52c
xor edi, edi
cmp dword [rbx], edi
jbe 0x14005b618
test rsi, rsi
je 0x14005b5f4
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
xor r14d, r14d
sub rax, rdx
sar rax, 5
test rax, rax
je 0x14005b5f4
xor ecx, ecx
lea r15, [rdi + rdi*2]
and dword [rsp + 0x70], 0
shl rcx, 5
xor eax, eax
add rcx, rdx
mov dword [rsp + 0x74], eax
cmp qword [rcx + 0x18], 8
jb 0x14005b5b5
mov rcx, qword [rcx]
mov rdx, rcx
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [rsp + 0x74]
cmp dword [rbx + r15*4 + 8], eax
jne 0x14005b5db
mov eax, dword [rsp + 0x70]
cmp dword [rbx + r15*4 + 4], eax
je 0x14005b60e
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
inc r14d
sub rax, rdx
mov ecx, r14d
sar rax, 5
cmp rcx, rax
jb 0x14005b599
mov eax, edi
lea rcx, [rdi*2 + 1]
add rcx, rax
lea rdx, [rbx + rcx*4]
lea rcx, [rbp + 0x18]
call fcn.14005bc38
inc edi
cmp edi, dword [rbx]
jb 0x14005b578
mov rcx, rbx
call fcn.14009ca30
xor eax, eax
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret