joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012b3d0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea r9, [0x14012b400]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
add rsp, 0x38
ret

Function at 0x14012b4e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 1
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14012b500
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rdx, rcx
mov rcx, qword [0x1403e3290]
test rcx, rcx
je 0x14012b52c
call fcn.140182c46
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
add rsp, 0x28
ret
Function at 0x14012c480
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov rcx, r9
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0xd8], rax
call fcn.1401836d4
test al, al
jne 0x14012c56c
call fcn.1400a76ac
mov rcx, qword [rax]
mov rdx, qword [rcx + 0x28]
mov rcx, rax
mov rax, rdx
call qword [case.0x1400f45b0.0]
test al, al
je 0x14012c56c
xorps xmm6, xmm6
lea rsi, [rsp + 0x70]
movaps xmmword [rsi], xmm6
movaps xmmword [rsi + 0x50], xmm6
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
mov qword [rsi + 0x60], 0
mov dword [rsi], 0x68
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14026fe30]
movaps xmmword [rdi], xmm0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rsi
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], 0
xor ecx, ecx
mov rdx, rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14012c56c
mov rcx, qword [rsp + 0x50]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0x58]
call rsi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140203460
mov al, 1
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rdi
pop rsi
ret
Function at 0x14012cc50
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x14012cebe
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1403b0400], rax
jne 0x14012cec1
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x1402889d0]
movzx ecx, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x140288a20]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, reloc.WS2_32.dll_recv
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x14012cd2e
mov rcx, rdi
call fcn.14012dea0
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x14012ce20
mov byte [rsp + 0x3f], 0
mov r8, qword [rbx]
test r8, r8
je 0x14012cd7f
lea rdx, [rsi + 0x48]
mov rcx, r8
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rbx
cmp rdx, 0x1fffff
ja 0x14012ce87
mov edx, ecx
and edx, 0x1fc000
je 0x14012ce87
prefetcht0 byte [rcx]
jmp 0x14012cd81
xor ecx, ecx
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
mov rdx, rsi
call fcn.14012cee0
mov ecx, dword [0x1403e32dc]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1403bcfc0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x1b0], rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140203460
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.14017e7b0
test rax, rax
je 0x14012ceb7
mov rbx, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x14012cd9b
movaps xmm0, xmmword [0x14026fe30]
movaps xmmword [rsp + 0x40], xmm0
lea rdx, str.first
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.14011ae90
mov rcx, rsi
call sym.nacl64.exe__ovly_debug_event
mov rcx, r14
call fcn.14011af10
xor ebx, ebx
jmp 0x14012cdc5
int3
int3
Function at 0x14014af57
Capabilities:
Create pipe

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14026fe30]
lea rdx, [rsp + 0x60]
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
mov dword [rdx + 0x2f], 0xaaaaaaaa
call fcn.14014b039
mov rsi, 0xffffffffffffffff
test al, al
je 0x14014b01c
lea rdi, [rsp + 0x60]
mov rcx, rdi
call fcn.14022dda0
lea r8, [rsp + rax]
add r8, 0x60
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov rdx, rdi
call fcn.14014bf32
cmp byte [rsi + 0x17], 0
jns 0x14014afd0
mov rsi, qword [rsp + 0x48]
mov eax, 0x1000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x3e8
mov rcx, rsi
mov edx, 0x80003
mov r8d, 1
mov r9d, 0xff
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
cmp byte [rsp + 0x5f], 0
jns 0x14014b01c
mov rcx, qword [rsp + 0x48]
call fcn.1402021a8
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140203460
mov rax, rsi
add rsp, 0xa8
pop rdi
pop rsi
ret
Function at 0x14014b096
Capabilities:
Connect pipe
Create pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x14026fe30]
lea rdi, [rsp + 0x60]
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov dword [rdi + 0x2f], 0xaaaaaaaa
lea rbx, str._s_u._lu
lea r14, str..pipechrome.nacl.
lea r15, [rsp + 0x48]
mov ebp, 0x1000
mov r13, qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r12d, 1
lock xadd dword [0x1403e4510], r12d
inc r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
mov edx, gethostbyname
mov rcx, rdi
mov r8, rbx
mov r9, r14
call fcn.14014b29e
mov rcx, rdi
call fcn.14022dda0
lea r8, [rsp + rax]
add r8, 0x60
mov rcx, r15
mov rdx, rdi
call fcn.14014bf32
cmp byte [rsp + 0x5f], 0
mov rcx, r15
jns 0x14014b159
mov rcx, qword [rsp + 0x48]
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x3e8
mov edx, 0x80003
xor r8d, r8d
mov r9d, 1
call r13
mov qword [rsi], rax
cmp byte [rsp + 0x5f], 0
jns 0x14014b19a
mov rcx, qword [rsp + 0x48]
call fcn.1402021a8
mov rax, qword [rsi]
cmp rax, 0xffffffffffffffff
jne 0x14014b1bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14014b1bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x14014b273
cmp qword [rsi], 0xffffffffffffffff
je 0x14014b0fb
lea rbx, [rsp + 0x60]
mov rcx, rbx
call fcn.14022dda0
lea r8, [rsp + rax]
add r8, 0x60
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov rdx, rbx
call fcn.14014bf32
cmp byte [rdi + 0x17], 0
jns 0x14014b1f6
mov rdi, qword [rsp + 0x48]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
mov rcx, rdi
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 8], rax
cmp byte [rsp + 0x5f], 0
jns 0x14014b23c
mov rcx, qword [rsp + 0x48]
call fcn.1402021a8
mov rax, qword [rsi + 8]
mov rcx, qword [rsi]
cmp rax, 0xffffffffffffffff
je 0x14014b26d
xor edi, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14014b278
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x14014b278
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xffffffff
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140203460
mov eax, edi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14014b60c
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov r12d, 0xffffffff
lea r15, [rsp + 0x34]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, rcx
cmp rcx, rdi
jae 0x14014b691
mov dword [rsp + 0x34], 0xaaaaaaaa
mov r8, rdi
sub r8, rsi
cmp r8, r12
cmovae r8, r12
lea rdx, [rbx + rsi]
mov qword [rsp + 0x20], 0
mov rcx, r14
mov r9, r15
call r13
mov ecx, dword [rsp + 0x34]
add rcx, rsi
test eax, eax
jne 0x14014b647
xor eax, eax
cmp rsi, 1
sbb eax, eax
or eax, esi
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140203460
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14014b6b0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov r12d, 0xffffffff
lea r15, [rsp + 0x34]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
mov rsi, rcx
cmp rcx, rdi
jae 0x14014b735
mov dword [rsp + 0x34], 0xaaaaaaaa
mov r8, rdi
sub r8, rsi
cmp r8, r12
cmovae r8, r12
lea rdx, [rbx + rsi]
mov qword [rsp + 0x20], 0
mov rcx, r14
mov r9, r15
call r13
mov ecx, dword [rsp + 0x34]
add rcx, rsi
test eax, eax
jne 0x14014b6eb
xor eax, eax
cmp rsi, 1
sbb eax, eax
or eax, esi
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140203460
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14014b754
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
cmp dword [rcx + 0x18], 9
jae 0x14014b889
mov rbx, r8
mov ebp, edx
mov rdi, rcx
call fcn.14019c8a0
test eax, eax
je 0x14014b889
movaps xmm0, xmmword [0x14026fe30]
lea rdx, [rsp + 0x60]
movaps xmmword [rdx + 0x20], xmm0
movaps xmmword [rdx + 0x10], xmm0
movaps xmmword [rdx], xmm0
mov dword [rdx + 0x2f], 0xaaaaaaaa
mov rcx, rbx
call fcn.14014b039
mov esi, 0xffffffff
test al, al
je 0x14014b899
mov qword [rsp + 0x40], rbx
mov r14d, 0xa
lea r15, [rsp + 0x60]
lea r12, [rsp + 0x48]
mov rsi, qword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, 0x3e8
mov rcx, r15
call fcn.14022dda0
lea r8, [rsp + rax]
add r8, 0x60
mov rcx, r12
mov rdx, r15
call fcn.14014bf32
cmp byte [rsp + 0x5f], 0
mov rcx, r12
jns 0x14014b816
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rsi
mov r13, rax
cmp byte [rsp + 0x5f], 0
jns 0x14014b850
mov rcx, qword [rsp + 0x48]
call fcn.1402021a8
cmp r13, 0xffffffffffffffff
jne 0x14014b9a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x14014b8bf
test bpl, 1
jne 0x14014b9bf
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_Sleep]
add r14d, r14d
cmp r14d, ebx
cmovge r14d, ebx
jmp 0x14014b7ec
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 0xffffffff
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140203460
mov eax, esi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov esi, 0xffffffff
jne 0x14014b899
mov rbx, qword [rsp + 0x40]
test rbx, rbx
je 0x14014b9c9
movsx ecx, byte [rbx]
call fcn.1402282b0
test eax, eax
je 0x14014b9c9
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x1c
lea r8, str._s_.s
lea r9, str..pipegoogle_nacl_
lea r14, [rsp + 0x60]
mov edx, gethostbyname
mov rcx, r14
call fcn.14014b29e
mov rcx, r14
call fcn.14022dda0
lea r8, [rsp + rax]
add r8, 0x60
lea rbx, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.14014bf32
cmp byte [rbx + 0x17], 0
jns 0x14014b945
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
mov rcx, rbx
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp byte [rsp + 0x5f], 0
jns 0x14014b986
mov rcx, qword [rsp + 0x48]
call fcn.1402021a8
cmp r13, 0xffffffffffffffff
jne 0x14014b9a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r13, 0xffffffffffffffff
cmp eax, 0xe7
jne 0x14014b899
mov rcx, r13
mov rdx, rdi
call fcn.14014b33c
mov esi, eax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14014b899
mov ecx, 0x218
jmp 0x14014b88e
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14014b899
Function at 0x14014b9d9
Capabilities:
Connect pipe

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
call fcn.14019c8a0
test eax, eax
je 0x14014ba5e
lea rdx, [rsp + 0x3c]
mov dword [rdx], 0xaaaaaaaa
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x30], 0
mov rcx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov r15d, 0xffffffff
test eax, eax
je 0x14014ba6f
test byte [rsp + 0x3c], 1
jne 0x14014ba90
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
xor r9d, r9d
call fcn.14014bb67
mov r15d, eax
jmp 0x14014ba6f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15d, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140203460
mov eax, r15d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r12, qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbp, qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
lea r14, [rsp + 0x38]
mov rcx, rbx
xor edx, edx
call r12
test eax, eax
jne 0x14014baaa
call r13
cmp eax, 0x217
je 0x14014bae5
cmp eax, 0x218
jne 0x14014ba69
mov dword [rsp + 0x38], 0
test sil, 1
jne 0x14014ba69
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call rbp
jmp 0x14014baaa
mov dword [rsp + 0x38], 0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call rbp
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
mov r9b, 1
call fcn.14014bb67
mov r15d, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov dword [rsp + 0x38], 1
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
cmp r15d, 0xffffffff
jne 0x14014ba6f
call r13
cmp eax, 0x6d
jne 0x14014ba6f
test sil, 1
je 0x14014baaa
mov ecx, 0x218
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14014ba6f
Function at 0x14014c77f
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rsi, rcx
mov rax, qword [0x1403ac028]
xor rax, rsp
mov qword [rsp + 0x40], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x38]
mov qword [r15], rax
lea rcx, [rsp + 0x30]
mov qword [rcx], rax
lea rcx, [rsp + 0x28]
mov qword [rcx], rax
lea rcx, [rsp + 0x20]
mov qword [rcx], rax
lea rdx, str.Entered_NaClCalibrateWindowsClockQpc_n
mov ecx, 5
call fcn.14014fd13
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r12d, dword [r15]
mov r13d, dword [r15 + 4]
mov rax, r13
shl rax, 0x20
or rax, r12
movabs rdi, 0x346dc5d63886594b
mul rdi
mov r15, rdx
shr r15, 0xb
add r15, 0x3e8
mov r14, qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbx, qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea rcx, [rsp + 0x28]
call r14
xor ebp, ebp
test eax, eax
je 0x14014c8fb
lea rcx, [rsp + 0x30]
call rbx
lea rcx, [rsp + 0x20]
call r14
test eax, eax
je 0x14014c8fb
mov r8, qword [rsp + 0x20]
mov r9, qword [rsp + 0x28]
mov r10, r8
sub r10, r9
imul rax, r10, 0x3e8
cqo
idiv qword [rsi + 0x48]
mov rcx, rax
mov edx, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
mov r11d, eax
xor r11d, r13d
mov ebp, edx
xor ebp, r12d
or ebp, r11d
setne r11b
test r10, r10
js 0x14014c892
cmp rcx, 4
jg 0x14014c892
test r11b, r11b
jne 0x14014c8b8
test r11b, r11b
cmovne r13d, eax
cmovne r12d, edx
shl rax, 0x20
or rax, rdx
mul rdi
shr rdx, 0xb
cmp rdx, r15
jb 0x14014c81f
xor ebp, ebp
jmp 0x14014c8cb
shl rax, 0x20
or rax, rdx
mul rdi
shr rdx, 0xb
mov ebp, 1
mov qword [rsi + 0x28], rdx
mov rax, r10
shr rax, 0x3f
add rax, r10
sar rax, 1
add rax, r9
mov qword [rsi + 0x50], rax
mov qword [rsi + 0x58], r8
lea rdx, str.Leaving_NaClCalibrateWindowsClockQpc_:__d_n
mov ecx, 5
mov r8d, ebp
call fcn.14014fd13
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140203460
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14014cec4
Capabilities:
Resume thread

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, rcx
mov rcx, r9
shr rcx, 0x20
je 0x14014cef3
call fcn.14021a540
mov r8d, dword [rax]
lea rdx, str.NaClThreadCtor:__beginthreadex_failed__stack_request_out_of_range_n
mov ecx, 0xfffffffd
call fcn.14014fd13
xor esi, esi
jmp 0x14014cf4a
mov rax, r8
mov r8, rdx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
xor esi, esi
xor ecx, ecx
mov edx, r9d
mov r9, rax
call fcn.14021639c
test rax, rax
je 0x14014cf31
mov qword [rdi], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, 1
jmp 0x14014cf4a
call fcn.14021a540
mov r8d, dword [rax]
lea rdx, str.NaClThreadCtor:__beginthreadex_failed__errno__d_n
mov ecx, 0xfffffffd
call fcn.14014fd13
mov eax, esi
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x14014ec63
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call fcn.1402169b4
test eax, eax
je 0x14014ec80
call fcn.14021a540
mov ecx, dword [rax]
call fcn.14014fdbc
neg eax
jmp 0x14014ec82
xor eax, eax
add rsp, 0x28
ret
Function at 0x14014efd5
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
xor esi, esi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14014f034
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14014f05b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rdx, str.NaClHostDescTruncate:_could_not_truncate_file:_last_error__d._n
mov ecx, 0xfffffffd
mov r8d, eax
call fcn.14014fd13
cmp esi, 0x4c8
jne 0x14014f050
lea rdx, str.NaClHostDescTruncate:_this_is_due_to_an_existing_mapping_of_the_same_file._n
mov ecx, 0xfffffffd
call fcn.14014fd13
jmp 0x14014f050
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea rdx, str.NaClHostDescTruncate:_SetFilePointerEx_failed:_last_error__d._n
mov ecx, 0xfffffffd
mov r8d, eax
call fcn.14014fd13
mov ecx, esi
call fcn.14014c058
mov esi, eax
neg esi
mov eax, esi
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1401545a7
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov r14, qword [0x1403e4a70]
test r14, r14
je 0x1401545f3
mov rdi, rcx
mov r12, qword [0x1403e4a78]
xor r15d, r15d
xor esi, esi
xor ebx, ebx
mov rdx, qword [r12 + r15]
mov rcx, rdi
call fcn.14022dbf0
test eax, eax
je 0x140154607
inc rbx
add rsi, 0x10
add r15, 0x28
cmp r14, rbx
jne 0x1401545d3
xor edi, edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str.NaClFaultInject:_found__s_n
mov ecx, 6
mov r8, rdi
call fcn.14014fd13
xor edi, edi
cmp qword [0x1403e4a70], rbx
je 0x1401545f5
mov r12, qword [0x1403e4a78]
cmp dword [r12 + r15 + 8], 0
je 0x140154714
lea rdx, str.NaClFaultInject:_thread_specific_counter_n
mov ecx, 6
call fcn.14014fd13
cmp qword [0x1403e4a70], rbx
ja 0x14015467d
lea rax, str.counter_ix___gNaClNumFaultInjectInfo
mov qword [rsp + 0x20], rax
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea r8, str....._native_client_src_trusted_fault_injection_fault_injection.c
mov ecx, 0xfffffffc
mov r9d, 0x168
call fcn.14014fd13
cmp dword [0x1403e4a68], 0
je 0x1401545f5
mov ecx, dword [0x1403e4a84]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x14015473b
mov r14, qword [0x1403e4a70]
mov rcx, r14
shl rcx, 4
call fcn.1400fe9f0
mov rbx, rax
test rax, rax
jne 0x1401546ee
lea rax, str.NULL___counters
mov qword [rsp + 0x20], rax
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
lea r8, str....._native_client_src_trusted_fault_injection_fault_injection.c
mov ecx, 0xfffffffc
mov r9d, 0x177
call fcn.14014fd13
mov r14, qword [0x1403e4a70]
test r14, r14
je 0x140154704
shl r14, 4
mov rcx, rbx
xor edx, edx
mov r8, r14
call fcn.1402055c0
mov ecx, dword [0x1403e4a84]
mov rdx, rbx
call fcn.14015480e
jmp 0x14015473b
lea rdx, str.NaClFaultInject:_global_counter_n
mov ecx, 6
call fcn.14014fd13
mov rcx, qword [0x1403e4a60]
add rcx, rsi
call fcn.14014f628
mov rbx, qword [0x1403e4a58]
mov rax, rbx
add rax, rsi
je 0x1401545f5
mov r8, qword [rbx + rsi]
mov r9, qword [rbx + rsi + 8]
lea rdx, str.NaClFaultInject:_counter__I64x__I64x__n
mov ecx, 6
call fcn.14014fd13
mov rax, qword [rbx + rsi]
xor edi, edi
cmp rax, qword [r12 + r15 + 0x18]
jae 0x1401547cc
mov r14, qword [r12 + r15 + 0x10]
lea r13, [rax + rax*2]
xor edi, edi
cmp dword [r14 + r13*8], 0
jne 0x1401547ab
mov r8, qword [r14 + r13*8 + 8]
lea rdx, str.NaClFaultInject:_should_fail__value__I64x_n
mov ecx, 6
call fcn.14014fd13
mov rdx, qword [r14 + r13*8 + 8]
mov ecx, dword [0x1403e4a88]
call fcn.14015480e
mov edi, 1
mov rax, qword [rbx + rsi + 8]
inc rax
mov qword [rbx + rsi + 8], rax
cmp rax, qword [r14 + r13*8 + 0x10]
jb 0x1401547cc
mov qword [rbx + rsi + 8], 0
inc qword [rbx + rsi]
cmp dword [r12 + r15 + 8], 0
jne 0x1401545f5
add rsi, qword [0x1403e4a60]
mov rcx, rsi
call fcn.14014f64f
jmp 0x1401545f5

Function at 0x1401547ec
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x1403e4a68], 0
je 0x140154807
mov ecx, dword [0x1403e4a88]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x140154809
xor eax, eax
add rsp, 0x28
ret