joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a4760
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rdi, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x1400a4788
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400a47b7
test al, 0x10
jne 0x1400a4811
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.1400a4940
xor edi, edi
jmp 0x1400a4919
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx ecx, byte [rdi + 0x17]
mov rax, rdi
test cl, cl
jns 0x1400a47da
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400a4877
lea r9, [rax + rcx*2]
lea rcx, [0x1401dac46]
movzx edx, word [r9 - 2]
add r9, 0xfffffffffffffffe
xor ebp, ebp
cmp word [rbp + rcx], dx
je 0x1400a482f
add rbp, 2
cmp rbp, 4
jne 0x1400a47f9
cmp r9, rax
jne 0x1400a47ee
jmp 0x1400a4877
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.1400a4940
mov dil, 1
jmp 0x1400a4919
sub r9, rax
cmp r9, 0xfffffffffffffffe
je 0x1400a4877
sar r9, 1
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.14006b4f0
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.1400a4760
test al, al
je 0x1400a48fa
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1400a4908
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x1400a48e6
lea rbp, [rsp + 0x28]
mov rcx, rbp
mov rdx, rsi
call fcn.140004f50
xor r14d, r14d
cmp byte [rbp + 0x17], r14b
jns 0x1400a48b6
mov rbp, qword [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne al
and ebp, 0x10
shr ebp, 4
and bpl, al
cmp byte [rsp + 0x3f], r14b
jns 0x1400a48e1
mov rcx, qword [rsp + 0x28]
call fcn.140190860
test bpl, bpl
jne 0x1400a4908
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.1400a4940
jmp 0x1400a4906
lea rcx, [0x1401dac4c]
call fcn.1400a4940
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x1400a4919
mov rcx, qword [rsp + 0x40]
call fcn.140190860
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140190ca0
mov eax, edi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x1400a4940
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.140027ed0
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x1403496b0]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.140195110
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140190ca0
nop
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x1400a5570
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400a55df
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.1400a54f0
test al, al
jne 0x1400a55ed
add rbx, 8
cmp rbx, 0x18
jne 0x1400a55ad
xor esi, esi
jmp 0x1400a55f0
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.140190ca0
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400a5c60
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov r13, rdx
mov r14, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [0x140349eb0]
test rdx, rdx
jne 0x1400a5d72
mov ecx, 0x18
call fcn.140190820
mov rbx, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
xor esi, esi
mov qword [rax + 0x10], rsi
mov qword [0x140349eb0], rax
mov ecx, 0x18
call fcn.140190820
mov rdi, rax
movups xmmword [rax], xmm6
mov qword [rax + 0x10], rsi
mov qword [0x140349eb8], rax
call fcn.1400f34c0
mov rax, qword [rax + 8]
mov r15, qword [rax + 0x10]
lea rdx, str.user_data_dir
lea r12, [rsp + 0x38]
mov rcx, r12
call fcn.140004f50
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov rdx, rax
call fcn.140004f50
lea rbp, [rsp + 0x50]
mov rcx, rbp
mov rdx, rsi
mov r8, r12
call fcn.1400a37d0
mov rcx, rbp
mov rdx, r15
mov r8, rbx
mov r9, rdi
call fcn.1400a57e0
mov ebx, eax
cmp byte [rbp + 0x17], 0
jns 0x1400a5d45
mov rcx, qword [rsp + 0x50]
call fcn.140190860
cmp byte [rsp + 0x37], 0
jns 0x1400a5d56
mov rcx, qword [rsp + 0x20]
call fcn.140190860
cmp byte [rsp + 0x4f], 0
jns 0x1400a5d67
mov rcx, qword [rsp + 0x38]
call fcn.140190860
test bl, bl
je 0x1400a5d93
mov rdx, qword [0x140349eb0]
mov rcx, r14
call fcn.14006b5e0
mov dil, 1
test r13, r13
je 0x1400a5d95
mov rdx, qword [0x140349eb8]
mov rcx, r13
call fcn.14006b5e0
jmp 0x1400a5d95
xor edi, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140190ca0
mov eax, edi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400a5e00
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, [0x1400a5e30]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
add rsp, 0x38
ret

Function at 0x1400a5f10
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 0x1400a5f30
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rdx, rcx
mov rcx, qword [0x140349ec0]
test rcx, rcx
je 0x1400a5f5c
call fcn.1400f5b60
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 0x1400a6f60
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push rsi
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov rcx, r9
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0xd8], rax
call fcn.1400f6690
test al, al
jne 0x1400a7029
call fcn.14002fb40
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x28]
test al, al
je 0x1400a7029
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
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x48], rcx
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 0x1400a7029
mov rcx, qword [rsp + 0x58]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0x60]
call rsi
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140190ca0
mov al, 1
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rsi
ret
Function at 0x1400bbdd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov r13, rdx
mov rdi, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov r8, r9
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400bbe65
lea r12, [rsp + 0x28]
mov qword [rsp + 0x20], r12
mov rcx, rdi
mov rdx, r13
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
setne al
cmp qword [r12], rsi
sete bl
and bl, al
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov rcx, rdi
mov rdx, r13
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
setne sil
and sil, bl
jmp 0x1400bbe67
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140190ca0
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400c2930
Capabilities:
Create pipe

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x98], rax
lea rdx, [rsp + 0x60]
call fcn.1400c2a90
mov rsi, 0xffffffffffffffff
test al, al
je 0x1400c2a52
movabs rdi, 0x7fffffffffffffef
lea rcx, [rsp + 0x60]
call fcn.1401b33b0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
cmp rax, rdi
ja 0x1400c2a70
mov rsi, rax
cmp rax, 0xb
jae 0x1400c29ac
lea rax, [rsp + 0x40]
mov byte [rax + 0x17], sil
test rsi, rsi
jne 0x1400c29d9
jmp 0x1400c29ef
lea rbx, [rsi + 8]
and rbx, 0xfffffffffffffff8
js 0x1400c2a7c
lea rcx, [rbx + rbx]
call fcn.140190820
mov qword [rsp + 0x40], rax
add rdi, 0x11
or rdi, rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rsi
xor ecx, ecx
movsx edx, byte [rsp + rcx + 0x60]
mov word [rax], dx
add rax, 2
inc rcx
cmp rsi, rcx
jne 0x1400c29db
mov word [rax], 0
xor edi, edi
cmp byte [rsp + 0x57], dil
jns 0x1400c2a04
mov rcx, qword [rsp + 0x40]
jmp 0x1400c2a09
lea rcx, [rsp + 0x40]
mov eax, 0x1000
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x3e8
mov edx, 0x80003
mov r8d, 1
mov r9d, 0xff
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
cmp byte [rsp + 0x57], dil
jns 0x1400c2a52
mov rcx, qword [rsp + 0x40]
call fcn.140190860
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140190ca0
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x40]
call fcn.14006a820
ud2
call fcn.1401a6a70
ud2
Function at 0x1400c3170
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 r14, rdx
mov r12, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, 0xffffffff
xor ecx, ecx
lea r15, [rsp + 0x34]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
mov rsi, rcx
cmp rcx, rdi
jae 0x1400c31ec
mov r8, rdi
sub r8, rsi
cmp r8, rbx
cmovae r8d, ebx
lea rdx, [r14 + rsi]
mov qword [rsp + 0x20], 0
mov rcx, r12
mov r9, r15
call r13
test eax, eax
mov ecx, dword [rsp + 0x34]
cmove ecx, eax
add rcx, rsi
test eax, eax
jne 0x1400c31aa
test rsi, rsi
cmove rsi, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140190ca0
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400c3210
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 r14, rdx
mov r12, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, 0xffffffff
xor ecx, ecx
lea r15, [rsp + 0x34]
mov r13, qword [sym.imp.KERNEL32.dll_ReadFile]
mov rsi, rcx
cmp rcx, rdi
jae 0x1400c328c
mov r8, rdi
sub r8, rsi
cmp r8, rbx
cmovae r8d, ebx
lea rdx, [r14 + rsi]
mov qword [rsp + 0x20], 0
mov rcx, r12
mov r9, r15
call r13
test eax, eax
mov ecx, dword [rsp + 0x34]
cmove ecx, eax
add rcx, rsi
test eax, eax
jne 0x1400c324a
test rsi, rsi
cmove rsi, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140190ca0
mov eax, esi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400c3640
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 [0x140324948]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
call fcn.14010edb0
test eax, eax
je 0x1400c36c6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x30], 0
lea rdx, [rsp + 0x3c]
mov rcx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov r15d, 0xffffffff
test eax, eax
je 0x1400c37b4
test byte [rsp + 0x3c], 1
jne 0x1400c36dc
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
xor r9d, r9d
call fcn.1400c37e0
mov r15d, eax
jmp 0x1400c37b4
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15d, 0xffffffff
jmp 0x1400c37b4
mov r12, qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
lea r14, [rsp + 0x38]
mov rcx, rbx
xor edx, edx
call r12
test eax, eax
jne 0x1400c36e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1400c3732
cmp eax, 0x218
jne 0x1400c37b4
mov dword [rsp + 0x38], 0
test sil, 1
jne 0x1400c37b4
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
jmp 0x1400c36e8
mov dword [rsp + 0x38], 0
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
xor r9d, r9d
mov r13, qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
call r13
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
mov r9b, 1
call fcn.1400c37e0
mov ebp, 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 r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
cmp ebp, 0xffffffff
jne 0x1400c37b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x1400c37b1
test sil, 1
je 0x1400c36e8
mov ecx, 0x218
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r15d, ebp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140190ca0
mov eax, r15d
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400c40e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400a12f0
mov rsi, rax
test rax, rax
je 0x1400c413d
mov rcx, rsi
mov rdx, rdi
call fcn.14010eff0
test eax, eax
jne 0x1400c4133
mov ecx, 2
call fcn.140194930
lea rcx, str.NaClLog_module_internal_error:_GioFileRefCtor_failed_n
mov edx, 0x35
mov r8d, 1
mov r9, rax
call fcn.1401adae0
call fcn.1400c4b30
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, str.NaClLogSetFile
call fcn.1401aeff0
mov ecx, 2
call fcn.140194930
lea rcx, str.No_memory_for_log_buffers_n
mov edx, 0x1a
mov r8d, 1
mov r9, rax
call fcn.1401adae0
call fcn.1400c4b30
jmp 0x1400c40fb
sub rsp, 0x28
lea rcx, [0x1401dce98]
call fcn.1401adf20
test rax, rax
je 0x1400c427f
mov rcx, rax
call fcn.1400c4180
jmp 0x1400c4291
mov ecx, 2
call fcn.140194930
mov rcx, rax
call fcn.1400c42a0
mov rcx, rax
add rsp, 0x28
jmp 0x1400c40e0
Function at 0x1400c4180
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x20
mov edx, 0x109
mov r8d, 0x1ff
call fcn.1401a55b0
mov esi, eax
cmp eax, 0xffffffff
je 0x1400c41bb
lea rdx, [0x1401ca73a]
mov ecx, esi
call fcn.1401a1e00
mov rsi, rax
test rax, rax
je 0x1400c41f2
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, str.NaClLogSetFile
call fcn.1401aeff0
mov ecx, 2
call fcn.140194930
lea rcx, str.Could_not_create_log_file_n
mov edx, 0x1a
mov r8d, 1
mov r9, rax
call fcn.1401adae0
call fcn.1400c4b30
jmp 0x1400c419c
lea rcx, str.NaClLogSetFile
call fcn.1401aeff0
mov ecx, 2
call fcn.140194930
lea rcx, str.Could_not_fdopen_log_stream_n
mov edx, 0x1c
mov r8d, 1
mov r9, rax
call fcn.1401adae0
call fcn.1400c4b30
jmp 0x1400c41b2

Function at 0x1400c4260
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rcx
mov ecx, reloc.WS2_32.dll_recv
call fcn.1400a12f0
mov rsi, rax
test rax, rax
je 0x1400c413d
mov rcx, rsi
mov rdx, rdi
call fcn.14010eff0
test eax, eax
jne 0x1400c4133
mov ecx, 2
call fcn.140194930
lea rcx, str.NaClLog_module_internal_error:_GioFileRefCtor_failed_n
mov edx, 0x35
mov r8d, 1
mov r9, rax
call fcn.1401adae0
call fcn.1400c4b30
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, str.NaClLogSetFile
call fcn.1401aeff0
mov ecx, 2
call fcn.140194930
lea rcx, str.No_memory_for_log_buffers_n
mov edx, 0x1a
mov r8d, 1
mov r9, rax
call fcn.1401adae0
call fcn.1400c4b30
jmp 0x1400c40fb
sub rsp, 0x28
lea rcx, [0x1401dce98]
call fcn.1401adf20
test rax, rax
je 0x1400c427f
mov rcx, rax
call fcn.1400c4180
jmp 0x1400c4291
mov ecx, 2
call fcn.140194930
mov rcx, rax
call fcn.1400c42a0
mov rcx, rax
add rsp, 0x28
jmp 0x1400c40e0
Function at 0x1400c44e0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rbx, r8
mov rdi, rdx
mov ebp, ecx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [0x14034d4d4], 0
je 0x1400c4575
mov ecx, 2
call fcn.140194930
lea rcx, str.POST_ABORT:
mov edx, ntohs
mov r8d, 1
mov r9, rax
call fcn.1401adae0
mov ecx, 2
call fcn.140194930
mov rsi, rax
call fcn.140027ed0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdx, rsi
mov r8, rdi
xor r9d, r9d
call fcn.1401952e0
mov ecx, 2
call fcn.140194930
mov rcx, rax
call fcn.1401ac910
jmp 0x1400c4615
mov rsi, qword [0x14034d4e0]
test rsi, rsi
jne 0x1400c45ac
mov ecx, 2
call fcn.140194930
mov rcx, rax
call fcn.1400c42a0
lea rsi, [0x14034d4e8]
mov rcx, rsi
mov rdx, rax
call fcn.14010eff0
mov qword [0x14034d4e0], rsi
cmp byte [0x14034d4d0], 1
jne 0x1400c45fe
test byte [0x14034d4dc], 1
jne 0x1400c45fe
call sub.KERNEL32.dll_GetCurrentProcessId
mov r14d, eax
lea rcx, [rsp + 0x30]
mov edx, 0x80
call fcn.14010f010
mov r15, rax
call sub.KERNEL32.dll_GetCurrentThreadId
mov qword [rsp + 0x20], r15
lea rdx, str.__d__u:_s_
mov rcx, rsi
mov r8d, r14d
mov r9d, eax
call fcn.14010f1c0
mov byte [0x14034d4d0], 0
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call fcn.14010f0a0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
cmp ebp, 0xfffffffc
jne 0x1400c4620
inc dword [0x14034d4d4]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140190ca0
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov ebx, ecx
mov eax, dword [0x140324890]
cmp eax, 0x7fffffff
jne 0x1400c4677
call fcn.1400c4230
mov dword [0x140324890], eax
cmp eax, ebx
jge 0x1400c4683
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov ecx, ebx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400c44e0
Function at 0x1400c4650
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rbx, r8
mov rdi, rdx
mov ebp, ecx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0xb0], rax
cmp dword [0x14034d4d4], 0
je 0x1400c4575
mov ecx, 2
call fcn.140194930
lea rcx, str.POST_ABORT:
mov edx, ntohs
mov r8d, 1
mov r9, rax
call fcn.1401adae0
mov ecx, 2
call fcn.140194930
mov rsi, rax
call fcn.140027ed0
mov rcx, qword [rax]
mov qword [rsp + 0x20], rbx
mov rdx, rsi
mov r8, rdi
xor r9d, r9d
call fcn.1401952e0
mov ecx, 2
call fcn.140194930
mov rcx, rax
call fcn.1401ac910
jmp 0x1400c4615
mov rsi, qword [0x14034d4e0]
test rsi, rsi
jne 0x1400c45ac
mov ecx, 2
call fcn.140194930
mov rcx, rax
call fcn.1400c42a0
lea rsi, [0x14034d4e8]
mov rcx, rsi
mov rdx, rax
call fcn.14010eff0
mov qword [0x14034d4e0], rsi
cmp byte [0x14034d4d0], 1
jne 0x1400c45fe
test byte [0x14034d4dc], 1
jne 0x1400c45fe
call sub.KERNEL32.dll_GetCurrentProcessId
mov r14d, eax
lea rcx, [rsp + 0x30]
mov edx, 0x80
call fcn.14010f010
mov r15, rax
call sub.KERNEL32.dll_GetCurrentThreadId
mov qword [rsp + 0x20], r15
lea rdx, str.__d__u:_s_
mov rcx, rsi
mov r8d, r14d
mov r9d, eax
call fcn.14010f1c0
mov byte [0x14034d4d0], 0
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call fcn.14010f0a0
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
cmp ebp, 0xfffffffc
jne 0x1400c4620
inc dword [0x14034d4d4]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140190ca0
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov ebx, ecx
mov eax, dword [0x140324890]
cmp eax, 0x7fffffff
jne 0x1400c4677
call fcn.1400c4230
mov dword [0x140324890], eax
cmp eax, ebx
jge 0x1400c4683
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov ecx, ebx
mov rdx, rdi
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp 0x1400c44e0

Function at 0x1400c6300
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call fcn.1401a4f90
test eax, eax
je 0x1400c631d
call fcn.1401a1ce0
mov ecx, dword [rax]
call fcn.1400c3f10
neg eax
jmp 0x1400c631f
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400c6360
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call fcn.14019ef50
test eax, eax
je 0x1400c637d
call fcn.1401a1ce0
mov ecx, dword [rax]
call fcn.1400c3f10
neg eax
jmp 0x1400c637f
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400c6470
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call fcn.1401b1a40
test eax, eax
je 0x1400c648d
call fcn.1401a1ce0
mov ecx, dword [rax]
call fcn.1400c3f10
neg eax
jmp 0x1400c648f
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400c6740
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 0x1400c679f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400c67c6
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.1400c46f0
cmp esi, 0x4c8
jne 0x1400c67bb
lea rdx, str.NaClHostDescTruncate:_this_is_due_to_an_existing_mapping_of_the_same_file._n
mov ecx, 0xfffffffd
call fcn.1400c46f0
jmp 0x1400c67bb
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.1400c46f0
mov ecx, esi
call fcn.1400c7a80
mov esi, eax
neg esi
mov eax, esi
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x1400c7010
Capabilities:
Create thread
Resume thread

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rdi, rcx
mov rcx, r9
shr rcx, 0x20
je 0x1400c703f
call fcn.1401a1ce0
mov r8d, dword [rax]
lea rdx, str.NaClThreadCtor:__beginthreadex_failed__stack_request_out_of_range_n
mov ecx, 0xfffffffd
call fcn.1400c46f0
xor esi, esi
jmp 0x1400c7096
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.14019e8b0
test rax, rax
je 0x1400c707d
mov qword [rdi], rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov esi, 1
jmp 0x1400c7096
call fcn.1401a1ce0
mov r8d, dword [rax]
lea rdx, str.NaClThreadCtor:__beginthreadex_failed__errno__d_n
mov ecx, 0xfffffffd
call fcn.1400c46f0
mov eax, esi
add rsp, 0x38
pop rdi
pop rsi
ret