joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005f1d4
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x218]
sub rsp, 0x318
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rax, qword [rbp + 0x2a8]
mov rsi, qword [rbp + 0x2b0]
mov r10, qword [rbp + 0x298]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x290]
mov r12, rdx
mov rdx, qword [rbp + 0x2a0]
mov rbx, r9
mov r9, qword [rbp + 0x280]
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x288]
mov r15, r8
mov r11, rcx
mov r8, rbx
mov rdx, r15
mov rcx, r12
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x68], rsi
call r11
xor edi, edi
test eax, eax
je 0x14005f277
lea eax, [rdi + 1]
jmp 0x14005f301
call fcn.140048aec
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, rax
call fcn.14004ac48
test al, al
je 0x14005f2ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x18
mov rcx, rsi
lea r8d, [rdx - 0x17]
mov r13d, eax
call fcn.1400502c0
test al, al
je 0x14005f2f6
call fcn.14004fed0
mov rbx, rax
test rax, rax
je 0x14005f2f6
mov rsi, rdi
mov r14, rdi
test r15, r15
je 0x14005f2d7
mov rcx, r15
call fcn.14004fc0c
mov rsi, rax
test rax, rax
je 0x14005f2f6
test r12, r12
je 0x14005f324
mov rcx, r12
call fcn.14004fc0c
mov r14, rax
test rax, rax
jne 0x14005f324
xor edx, edx
mov rcx, rsi
call fcn.14004f950
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14009c5b0
add rsp, 0x318
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test rsi, rsi
je 0x14005f334
mov rax, qword [rsi + 8]
mov qword [rsp + 0x50], rax
jmp 0x14005f339
mov qword [rsp + 0x50], rdi
test r14, r14
je 0x14005f349
mov rax, qword [r14 + 8]
mov qword [rsp + 0x58], rax
jmp 0x14005f34e
mov qword [rsp + 0x58], rdi
lea rdx, [rbp - 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rbp - 0x10]
mov rdx, rbx
dec eax
cmp eax, 0x102
cmova rcx, rdi
mov qword [rsp + 0x60], rcx
lea rcx, [rbp - 0x80]
call fcn.14004f6ec
xor edx, edx
lea rcx, [rbp - 0x6c]
lea r8d, [rdx + 0x54]
mov dword [rbp - 0x70], edi
call fcn.14009c6c0
mov rax, qword [rsp + 0x68]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x78], rax
lea rax, [rbp - 0x70]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov edx, reloc.WS2_32.dll_listen
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], 0x18
call fcn.14005ef70
xor edx, edx
mov rcx, rsi
mov ebx, eax
call fcn.14004f950
xor edx, edx
mov rcx, r14
call fcn.14004f950
test ebx, ebx
jne 0x14005f2f6
mov ecx, dword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rbp - 0x68], edi
sete dil
mov eax, edi
jmp 0x14005f301
Function at 0x14005f40c
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x218]
sub rsp, 0x318
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rax, qword [rbp + 0x298]
mov r10, qword [rbp + 0x290]
mov r11, qword [rbp + 0x288]
mov r15, qword [rbp + 0x2a0]
mov r14, r9
mov r9, qword [rbp + 0x270]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x280]
mov qword [rsp + 0x38], r10
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x28], eax
mov eax, dword [rbp + 0x278]
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x50], r8
mov r8, r14
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x20], eax
call rbx
xor ebx, ebx
test eax, eax
je 0x14005f4af
lea eax, [rbx + 1]
jmp 0x14005f5a5
call fcn.140048aec
mov rcx, rax
mov rdx, qword [rax]
call qword [rdx + reloc.WS2_32.dll_recv]
mov rcx, rax
call fcn.14004ac48
test al, al
je 0x14005f5a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 1
mov rcx, r15
lea r14d, [r8 + 0x17]
mov esi, eax
mov edx, r14d
call fcn.1400502c0
test al, al
je 0x14005f59b
call fcn.14004fed0
mov rdi, rax
test rax, rax
je 0x14005f59b
lea rdx, [rbp - 0x10]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rcx, [rbp - 0x10]
mov rdx, rdi
dec eax
cmp eax, 0x102
cmova rcx, rbx
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x78]
call fcn.14004f6ec
lea r8d, [r14 + 0x3c]
lea rcx, [rbp - 0x6c]
xor edx, edx
mov dword [rbp - 0x70], ebx
call fcn.14009c6c0
lea rax, [rbp - 0x70]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x68]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea edx, [r14 - 0xb]
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x68], r14d
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x20], rax
call fcn.14005ef70
test eax, eax
jne 0x14005f59b
mov ecx, dword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rbp - 0x68], ebx
sete bl
mov eax, ebx
jmp 0x14005f5a5
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14009c5b0
add rsp, 0x318
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140061a78
Capabilities:
Terminate process

Disassembly:
cmp r8, 0x10
jne 0x140061bac
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0x17], rax
or qword [rsp + 0x30], 0xffffffffffffffff
mov qword [rsp + 0x38], rdx
mov r13, rcx
xor r15d, r15d
xor ebx, ebx
xor r12d, r12d
call fcn.140063e44
mov rdi, rax
lea rcx, [rsp + 0x40]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x140061b58
mov eax, dword [rsp + 0x40]
mov esi, 0x10002
dec eax
je 0x140061bb4
dec eax
je 0x140061bad
dec eax
je 0x140061b35
dec eax
je 0x140061b24
dec eax
je 0x140061b19
dec eax
jne 0x140061c0f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140061c0f
mov r15d, 1
jmp 0x140061c0f
mov edx, dword [rsp + 0x48]
mov rcx, rdi
call fcn.140063ee4
jmp 0x140061c0f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rbp - 0x79]
mov edx, dword [rsp + 0x48]
mov rcx, rdi
call fcn.140063f7c
test eax, eax
jne 0x140061c0f
mov ebx, 1
mov rcx, rdi
call fcn.140063e90
mov rcx, qword [rsp + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x140061b76
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140061b86
or edx, 0xffffffff
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14009c5b0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8, qword [rsp + 0x50]
jmp 0x140061b44
mov edx, dword [rsp + 0x48]
mov rcx, rdi
mov esi, 0x80010001
call fcn.140063f44
cmp rax, 0xffffffffffffffff
je 0x140061b58
mov r14, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x48]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x38]
mov r9, rax
mov rdx, r13
mov dword [rsp + 0x20], r14d
call fcn.140061694
test eax, eax
jne 0x140061c0a
cmp r14d, 0x80000003
jne 0x140061c0f
test r12d, r12d
jne 0x140061c0f
lea r12d, [rax + 1]
mov esi, 0x10002
mov edx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
test eax, eax
je 0x140061b5d
test r15d, r15d
jne 0x140061b5d
jmp 0x140061aca
Function at 0x140061a82
Capabilities:
Terminate process

Disassembly:
cmp r8, 0x10
jne 0x140061bac
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rbp + 0x17], rax
or qword [rsp + 0x30], 0xffffffffffffffff
mov qword [rsp + 0x38], rdx
mov r13, rcx
xor r15d, r15d
xor ebx, ebx
xor r12d, r12d
call fcn.140063e44
mov rdi, rax
lea rcx, [rsp + 0x40]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x140061b58
mov eax, dword [rsp + 0x40]
mov esi, 0x10002
dec eax
je 0x140061bb4
dec eax
je 0x140061bad
dec eax
je 0x140061b35
dec eax
je 0x140061b24
dec eax
je 0x140061b19
dec eax
jne 0x140061c0f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140061c0f
mov r15d, 1
jmp 0x140061c0f
mov edx, dword [rsp + 0x48]
mov rcx, rdi
call fcn.140063ee4
jmp 0x140061c0f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rbp - 0x79]
mov edx, dword [rsp + 0x48]
mov rcx, rdi
call fcn.140063f7c
test eax, eax
jne 0x140061c0f
mov ebx, 1
mov rcx, rdi
call fcn.140063e90
mov rcx, qword [rsp + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x140061b76
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140061b86
or edx, 0xffffffff
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14009c5b0
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8, qword [rsp + 0x50]
jmp 0x140061b44
mov edx, dword [rsp + 0x48]
mov rcx, rdi
mov esi, 0x80010001
call fcn.140063f44
cmp rax, 0xffffffffffffffff
je 0x140061b58
mov r14, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x48]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x38]
mov r9, rax
mov rdx, r13
mov dword [rsp + 0x20], r14d
call fcn.140061694
test eax, eax
jne 0x140061c0a
cmp r14d, 0x80000003
jne 0x140061c0f
test r12d, r12d
jne 0x140061c0f
lea r12d, [rax + 1]
mov esi, 0x10002
mov edx, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x44]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
test eax, eax
je 0x140061b5d
test r15d, r15d
jne 0x140061b5d
jmp 0x140061aca
Function at 0x140061c38
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov eax, dword [r9 + 0x2d4]
mov r14, rdx
lea rdx, [r8 + 0x2d4]
mov rsi, r9
inc eax
mov edi, 4
lea r8, [rsp + 0x70]
mov r9d, edi
mov rbp, rcx
mov dword [rsp + 0x70], eax
call fcn.140061d2c
xor ebx, ebx
test eax, eax
jne 0x140061c86
xor eax, eax
jmp 0x140061d16
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x88]
mov r9, rdi
add rdx, 0x100
mov rcx, rbp
call fcn.140061d2c
test eax, eax
je 0x140061c7f
cmp qword [rsi + 0x2d8], 0xffffffffffffffff
je 0x140061c7f
mov rdi, qword [rsp + 0x90]
cmp qword [rdi], 0xffffffffffffffff
jne 0x140061cf4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsi + 0x2d8]
mov dword [rsp + 0x30], 2
mov r8, rax
mov r9, rdi
mov rcx, rbp
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140061c7f
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x140061c7f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x1400621c8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call fcn.140061df0
test eax, eax
je 0x1400621e4
mov ecx, 1
call fcn.14007e6b8
mov rcx, rbx
call fcn.14006238c
mov ecx, eax
add rsp, 0x20
pop rbx
jmp fcn.14007e6b8

Function at 0x140062b20
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov r9d, edx
mov rsi, rcx
mov r8, rcx
lea rdx, str.NaClAppShutdown:_nap_0x_I64x__exit_status__d_n
mov ecx, 4
call fcn.14007e6c4
lea rbx, [rsi + 0xb0]
mov rcx, rbx
call fcn.14007f4c0
mov rcx, rbx
mov dword [rsi + 0x1b0], edi
call fcn.14007f4e8
mov rax, qword [rsi + 0x288]
test rax, rax
je 0x140062b77
call qword [rax + reloc.WS2_32.dll_recv]
xor ecx, ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14007e6b8
Function at 0x1400635d0
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
mov rsi, rcx
lea r14, [0x1400d4a40]
xor ebx, ebx
mov rcx, qword [rbx + r14 + 8]
call fcn.1400a2f40
mov rbp, rax
test rax, rax
je 0x14006367a
mov r8, qword [rbx + r14 + 8]
lea rdx, str.getenv__s______s_n
mov r9, rax
mov ecx, 4
call fcn.14007e6c4
mov r9d, dword [rbx + r14 + 0x14]
mov r8d, dword [rbx + r14 + 0x10]
lea rcx, [rsi + 0xf8]
mov rdx, rbp
call fcn.140065a14
lea rdx, str._NaClResourceOpen_returned__I64x_n
mov ecx, 4
mov r8, rax
mov rbp, rax
call fcn.14007e6c4
test rbp, rbp
je 0x14006367a
lea rdx, str.Setting_descriptor__d_n
mov r8d, edi
mov ecx, 4
call fcn.14007e6c4
mov r8, rbp
mov edx, edi
mov rcx, rsi
call fcn.1400629b4
jmp 0x14006369e
cmp dword [rsi + 0x110], 0
jne 0x14006369e
mov ecx, dword [rbx + r14]
call fcn.1400a30d4
mov r8d, dword [rbx + r14 + 0x10]
mov r9d, edi
mov edx, eax
mov rcx, rsi
call fcn.1400624b4
add rbx, 0x18
inc rdi
cmp rbx, 0x48
jb 0x1400635f7
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140063e10
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x28
lea rcx, str.NACL_CRASH_TEST
call fcn.1400a2f40
test rax, rax
je 0x140063e3c
lea rcx, str._CRASH_TEST__Causing_crash_in_NaCl_trusted_code..._n
call fcn.140063cc4
mov dword [1], 0
add rsp, 0x28
ret

Function at 0x140068a94
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rdi, qword [rcx + 0xc8]
mov ebx, edx
mov r9d, edx
mov rsi, r8
mov qword [rsp + 0x20], r8
mov r8, rcx
lea rdx, str.Entered_NaClSysSysconf__08I64xx___d__0x_08I64x__n
mov ecx, 3
call fcn.14007e6c4
dec ebx
je 0x140068b0c
dec ebx
je 0x140068b02
sub ebx, 0x3e6
je 0x140068afa
dec ebx
je 0x140068af2
dec ebx
je 0x140068aea
mov eax, 0xffffffea
jmp 0x140068b4e
mov eax, dword [rdi + 0x1e0]
jmp 0x140068b2b
mov eax, dword [rdi + 0x1dc]
jmp 0x140068b2b
mov eax, dword [0x1401e4390]
jmp 0x140068b2b
mov dword [rsp + 0x78], 0x10000
jmp 0x140068b2f
mov eax, dword [0x1401e4394]
test eax, eax
jne 0x140068b2b
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x50]
mov dword [0x1401e4394], eax
mov dword [rsp + 0x78], eax
lea r8, [rsp + 0x78]
mov r9d, 4
mov rdx, rsi
mov rcx, rdi
call fcn.140070208
neg eax
sbb eax, eax
not eax
and eax, 0xfffffff2
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14006f6d0
Capabilities:
Get system information on windows

Disassembly:
and qword [rcx], 0
jmp fcn.14006f6dc
Function at 0x14006f6dc
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbx, qword [rcx]
mov rsi, rdx
mov r8, rdx
mov r14, rcx
lea rdx, str.NaClPageAlloc___0x_I64x__n
mov ecx, 3
call fcn.14007e6c4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r8d, dword [rsp + 0x24]
mov r9d, 0x1000
cmp r8d, r9d
je 0x14006f742
lea rdx, str.page_size_is_0x_x__expected_0x_x_n
mov ecx, 2
call fcn.14007e6c4
mov r8d, dword [rsp + 0x48]
mov r12d, 0x10000
cmp r8d, r12d
je 0x14006f766
lea rdx, str.allocation_granularity_is_0x_x__expected_0x_x_n
mov r9d, r12d
mov ecx, 0xfffffffd
call fcn.14007e6c4
add rsi, 0xffff
and rsi, 0xffffffffffff0000
xor ebp, ebp
mov r9d, 1
mov r8d, 0x2000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rsi
mov rbx, rax
test rax, rax
je 0x14006f866
lea rdx, str.NaClPageAlloc:__VirtualAlloc__0x_I64x__succeeded__0x_016I64x__releasing_and_re_allocating_in_64K_chunks...._n
mov r9, rax
mov ecx, 3
call fcn.14007e6c4
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea r15, [rbx + rsi]
mov rdi, rbx
cmp rdi, r15
jae 0x14006f84b
mov r9d, 1
mov r8d, 0x2000
mov rdx, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x14006f7f0
add rdi, r12
jmp 0x14006f7c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.NaClPageAlloc:_re_allocation_failed_at_0x_016I64x__error__d_n
mov r8, rdi
mov r9d, eax
mov ecx, 0xfffffffd
call fcn.14007e6c4
jmp 0x14006f823
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
add rbx, r12
cmp rbx, rdi
jb 0x14006f80f
lea rdx, str.NaClPageAllocAtAddr:_retrying_w_o_hint_n
mov ecx, 2
call fcn.14007e6c4
inc ebp
xor ebx, ebx
cmp ebp, 0x100
jl 0x14006f776
jmp 0x14006f877
lea rdx, str.NaClPageAlloc:_p__0x_016I64x__returning_success._n
mov r8, rbx
mov ecx, 2
call fcn.14007e6c4
mov qword [r14], rbx
xor eax, eax
jmp 0x14006f87c
lea rdx, str.NaClPageAlloc:_VirtualAlloc__0x_I64x__failed_n
mov ecx, 0xfffffffd
call fcn.14007e6c4
mov eax, 0xfffffff4
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14007443c
Capabilities:
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [rcx + 0x100]
mov r8, rcx
test eax, eax
je 0x1400744d4
mov dword [rdx], eax
and dword [rcx + 0x100], 0
mov rcx, qword [rcx + 0xc8]
or eax, 0xffffffff
lock xadd dword [rcx + 0x2d4], eax
mov rcx, r8
call fcn.140074310
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140074497
lea rdx, str.NaClAppThreadUnblockIfFaulted:_ResumeThread___call_failed_n
mov ecx, 0xfffffffc
call fcn.14007e6c4
cmp dword [0x1401e4490], 0
je 0x1400744cf
cmp ebx, 2
jae 0x1400744cf
lea rax, str.previous_suspend_count___2
lea r8, str.b:core_src_native_client_src_trusted_service_runtimewin_thread_suspension.c
lea rdx, str.Fatal_error_in_file__s__line__d:____s__n
mov r9d, 0x93
mov ecx, 0xfffffffc
mov qword [rsp + 0x20], rax
call fcn.14007e6c4
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140074524
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rbx, rcx
add rcx, 0xe0
mov edi, edx
call fcn.14007f4c0
cmp dword [rbx + 0xf0], 1
jne 0x1400745fc
mov rcx, rbx
call fcn.140074310
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x140074590
lea rdx, str.NaClUntrustedThreadSuspend:_SuspendThread___call_failed_n
mov ecx, 0xfffffffc
call fcn.14007e6c4
test edi, edi
je 0x1400745d3
cmp qword [rbx + 0xf8], 0
jne 0x1400745c3
mov ecx, 0x4d0
call fcn.1400a26ec
mov qword [rbx + 0xf8], rax
test rax, rax
jne 0x1400745c3
lea rdx, str.NaClUntrustedThreadSuspend:_malloc___failed_n
lea ecx, [rax - 4]
call fcn.14007e6c4
mov rdx, qword [rbx + 0xf8]
mov dword [rdx + 0x30], 0x100003
jmp 0x1400745e0
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100001
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1400745fc
lea rdx, str.NaClUntrustedThreadSuspend:_GetThreadContext___failed_n
lea ecx, [rax - 4]
call fcn.14007e6c4
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.14009c5b0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140074e64
Capabilities:
Query environment variable

Disassembly:
mov dword [0x1401e4398], 0x10000
jmp 0x140075f20
sub rsp, 0x28
lea rcx, [0x1401e43a0]
call fcn.14007f49c
lea rcx, str.NACL_SRPC_DEBUG
call fcn.1400a2f40
and dword [0x1401e43b0], 0
test rax, rax
je 0x140075f66
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400a3d94
mov ecx, dword [0x1401e43b0]
test eax, eax
cmovns ecx, eax
mov dword [0x1401e43b0], ecx
mov eax, 1
add rsp, 0x28
ret

Function at 0x140075f20
Capabilities:
Query environment variable

Disassembly:
mov dword [0x1401e4398], 0x10000
jmp 0x140075f20
sub rsp, 0x28
lea rcx, [0x1401e43a0]
call fcn.14007f49c
lea rcx, str.NACL_SRPC_DEBUG
call fcn.1400a2f40
and dword [0x1401e43b0], 0
test rax, rax
je 0x140075f66
xor r8d, r8d
xor edx, edx
mov rcx, rax
call fcn.1400a3d94
mov ecx, dword [0x1401e43b0]
test eax, eax
cmovns ecx, eax
mov dword [0x1401e43b0], ecx
mov eax, 1
add rsp, 0x28
ret
Function at 0x140079030
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x14007ca44
sub rsp, 0x1d8
mov rax, qword [0x1401c76e0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rdx, [rsp + 0x20]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x14007ca96
movzx eax, word [rsp + 0x20]
shr ax, 8
cmp al, 2
jne 0x14007cab3
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14009c5b0
add rsp, 0x1d8
ret
lea rdx, str.WSAStartup_failed_with_error:__d_n
mov r8d, eax
mov ecx, 0xfffffffd
call fcn.14007e6c4
or ecx, 0xffffffff
call fcn.14009d354
int3
lea rdx, str.Could_not_find_a_usable_version_of_Winsock.dll_n
mov ecx, 0xfffffffd
call fcn.14007e6c4
call qword [sym.imp.WS2_32.dll_WSACleanup]
or ecx, 0xffffffff
call fcn.14009d354
int3

Function at 0x140079164
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WS2_32.dll_accept]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400791e1
mov r8d, 1
lea r9, [rsp + 0x40]
mov rcx, rax
lea edx, [r8 + 5]
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
xor ebx, ebx
test eax, eax
je 0x1400791bf
lea rdx, str.Failed_to_set_TCP_NODELAY_option._n
lea ecx, [rbx - 2]
call fcn.14007e6c4
mov ecx, 0x28
call fcn.14009bbc0
test rax, rax
je 0x1400791dc
mov rdx, rdi
mov rcx, rax
call fcn.140079038
mov rbx, rax
mov rax, rbx
jmp 0x1400791e3
xor eax, eax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret