joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140035600
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x14012d038]
xor rax, rsp
mov qword [rsp + 0x80], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x68]
mov rcx, rdi
call fcn.140068c40
cmp byte [rdi + 0x17], 0
jns 0x140035647
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x7f], 0
jns 0x140035668
mov rcx, qword [rsp + 0x68]
call fcn.14008f5a0
test rsi, rsi
je 0x14003570f
test edi, edi
je 0x14003570f
mov ecx, edi
add rcx, rcx
call fcn.14008f5dc
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x68]
mov rcx, r14
call fcn.140068c40
cmp byte [r14 + 0x17], 0
jns 0x1400356ab
mov r14, qword [rsp + 0x68]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x7f], 0
jns 0x1400356cb
mov rcx, qword [rsp + 0x68]
call fcn.14008f5a0
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x14003573d
mov rcx, rbx
call fcn.1400ad228
lea rdx, [rsp + 0x30]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x68]
call fcn.140068c70
cmp byte [rsi + 0x17], 0
js 0x140035733
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.14008f5e4
test edi, edi
setne bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140090b60
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.14008f5a0
jmp 0x1400356f6
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.1400c4630
int3
Function at 0x140035cf0
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x14012d038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x140142110]
test rdi, rdi
jne 0x140035da3
mov ecx, 0x50
call fcn.14008f564
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.14008f564
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140035dc5
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x140142110], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140035df1
mov rcx, rax
call fcn.1400ad228
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140035e20
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140090b60
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.1400c4630
lea rax, str.null_pointer_passed_to_non_null_argument_of_char_traits_..._::length
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_string_view
lea r9, str.__s___nullptr
mov r8d, 0x109
call fcn.1400c4630
int3
Function at 0x140035e20
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14012d038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.14002de40
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140035fb0
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, [0x140112c08]
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140036049
lea rdx, [0x140112c58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003602d
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x14015a008]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x14003603f
test r12d, r12d
js 0x140036035
shl r12, 3
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.14008f564
mov rbx, rax
mov qword [rsp + 0x30], rax
add r15, rax
mov qword [rsp + 0x40], r15
xor r13d, r13d
xor r15d, r15d
mov rcx, rbx
add rcx, r13
je 0x140035fd5
mov rdx, qword [r14 + r15]
call fcn.1400c5300
add r15, 8
add r13, 0x18
cmp r12, r15
jne 0x140035f22
mov r15, rbx
add r15, r13
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140035a20
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140035f76
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x140035fb0
cmp r15, rbx
je 0x140035fa8
add r15, 0xffffffffffffffe8
jmp 0x140035f9a
mov rcx, qword [r15]
call fcn.14008f5a0
lea rax, [r15 - 0x18]
cmp r15, rbx
mov r15, rax
je 0x140035fa8
test r15, r15
je 0x140036001
cmp byte [r15 + 0x17], 0
jns 0x140035f8e
jmp 0x140035f86
mov rcx, rbx
call fcn.14008f5a0
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140090b60
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x28
call fcn.1400c4630
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x44
call fcn.1400c4630
xor r14d, r14d
jmp 0x140035ed4
lea rcx, [rsp + 0x30]
call fcn.1400c45a0
xor r15d, r15d
xor ebx, ebx
jmp 0x140035f4f
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140035ed1
Function at 0x140043530
Capabilities:
Create thread

Disassembly:
jmp 0x140043530
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x14012d038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.14008f564
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x14012f1c8]
jne 0x14004359d
mov rcx, r15
call fcn.140071380
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x1400439c0]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140043695
test r14, r14
je 0x14004360a
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140090b60
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400435e4
mov eax, dword [0x140142580]
mov ecx, dword [0x14013bda0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400436e4
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.140031aa0
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x140043659
and r8d, 0x7f
jmp 0x140043663
mov r8, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
call fcn.140058ec0
mov rcx, qword [0x140142578]
mov rdx, r14
call fcn.140043b90
cmp byte [rsp + 0x4f], 0
jns 0x1400436ba
mov rcx, qword [rsp + 0x38]
call fcn.14008f5a0
jmp 0x1400436ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1400436b2
mov ebp, eax
cmp eax, 0x5af
je 0x1400436b2
cmp ebp, 0xe
jne 0x140043615
mov rcx, rbx
call fcn.1400e2dd0
test rsi, rsi
je 0x1400435e4
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x14012f1c8]
jne 0x1400436d7
call fcn.1400714c0
mov rcx, rsi
call fcn.14008f5a0
jmp 0x1400435e4
lea rcx, [0x140142580]
call fcn.14008f6c0
cmp dword [0x140142580], 0xffffffff
jne 0x14004363a
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140043b70
mov qword [0x140142578], rax
lea rcx, [0x140142580]
call fcn.14008f758
jmp 0x14004363a
Function at 0x140044590
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x14012d038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400445b8
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400445f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140044613
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140090b60
mov rcx, rsi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
jmp fcn.1400446f0
mov sil, 1
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140090b60
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14006d720
test al, al
jne 0x140044625
xor esi, esi
jmp 0x1400445f6
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x265
mov r9d, 2
call fcn.1400deac0
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400c3c00
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x140044675
and r8d, 0x7f
jmp 0x14004467c
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140058ec0
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.140068c70
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x1400446ac
and r8d, 0x7f
jmp 0x1400446b6
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.1400c3c00
cmp byte [rsp + 0x57], 0
jns 0x1400446d2
mov rcx, qword [rsp + 0x40]
call fcn.14008f5a0
lea rcx, [rsp + 0x58]
call fcn.1400deb40
jmp 0x140044621

Function at 0x1400446f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rsi, rcx
mov rax, qword [0x14012d038]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp byte [rcx + 0x17], 0
jns 0x140044717
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140044755
mov dil, 1
test al, 0x10
je 0x140044745
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140090b60
mov eax, edi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14006d720
test al, al
je 0x140044763
jmp 0x1400447bc
mov ecx, 2
call fcn.14006d720
test al, al
jne 0x140044767
xor edi, edi
jmp 0x140044729
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x251
mov r9d, 2
call fcn.1400deac0
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400c3c00
mov rcx, rax
mov rdx, rsi
call fcn.1400df7f0
mov rcx, rdi
call fcn.1400deb40
jmp 0x140044763
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x255
mov r9d, 2
call fcn.140032940
lea rcx, [rsp + 0x40]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400c3c00
mov rcx, rax
mov rdx, rsi
call fcn.1400df7f0
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1400c3c00
mov rcx, rdi
call fcn.140032f90
jmp 0x140044763
Function at 0x140047000
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 [0x14012d038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x140047240
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14012fc70], rax
jne 0x140047243
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, [0x14011b150]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x14011b1a0]
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, [0x14011a930]
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]
mov eax, r12d
lea r15, [rsi + rax*8]
add r15, 0x48
lea rdi, [rsi + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400471d8
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400471e5
mov byte [rsp + 0x3f], 0
mov r8, qword [rbx]
test r8, r8
je 0x1400471d1
lea rdx, [rsi + 0x48]
mov r9d, r12d
mov rcx, r8
bswap rcx
mov r14d, dword [rdx + r9*8 + 0x18]
mov rdx, rcx
xor rdx, rbx
cmp rdx, 0x1fffff
ja 0x14004724d
mov edx, ecx
and edx, 0x1fc000
je 0x14004724d
prefetcht0 byte [rcx]
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.1400787a0
mov ecx, dword [0x1401425cc]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14013bda0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x158], rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140090b60
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140047132
mov rcx, rdi
call fcn.140079570
jmp 0x1400470dc
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.1400887b0
test rax, rax
je 0x140047246
mov rbx, rax
and rax, 0xffffffffffe00000
mov ecx, ebx
shr ecx, 9
and ecx, 0xfe0
add rax, rcx
add rax, 0x1000
movzx ecx, byte [rax + 0x1e]
and ecx, 0x3f
shl ecx, 5
sub rax, rcx
jmp 0x14004714c
int3
int3
xor ebx, ebx
jmp 0x140047176
movaps xmm0, xmmword [0x14010c370]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
lea rdx, str.first
mov rcx, rsi
call fcn.1400e9460
mov rcx, rsi
call fcn.140018990
mov rcx, r14
call fcn.1400f1010
int3
Function at 0x14004a430
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x14012d038]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x14010c370]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x14004a51c
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.140092cb0
mov dword [rdi - 0xc], 0x11c
mov r14, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
mov qword [rdi - 8], 6
mov word [rdi + 0x108], 0
lea rcx, [rsp + 0x64]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x14004a523
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.14004a580
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14004a523
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14004a52c
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140090b60
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14004c740
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14012d038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x14004c891
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14010c370]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x14015a008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x14015a008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x14015a008]
test r14, r14
je 0x14004c823
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x14004c813
lea r14, [rsi + 0xf8]
mov ecx, 1
call fcn.140080e20
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x14004c895
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x14004c862
lea rcx, section..text
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140090b60
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x14004c874
bt eax, 9
jae 0x14004c8b5
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x14004c862
lea rcx, [0x140004520]
jmp 0x14004c85f
call fcn.1400eb2b0
lea rax, [0x1400ebab0]
test r14, r14
je 0x14004c862
lea rcx, [0x1400eb190]
jmp 0x14004c85f

Function at 0x14004feb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14012d038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004ff10
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14004ff19
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140090b60
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14004fef9
int3
mov rcx, qword [rcx + 8]
jmp 0x14004feb0
Function at 0x14004ff20
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14012d038]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x14004ffc6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14004ffb2
cmp eax, 0xffffffff
je 0x14004ffc3
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140090b60
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x14004ff61
mov eax, dword [rsp + 0x2c]
jmp 0x14004ff92
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14004ff94

Function at 0x1400504b0
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x14012d038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.1400503b0
test rax, rax
jne 0x1400504ef
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14005050b
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140090b60
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14006d720
test al, al
jne 0x14005051d
xor esi, esi
jmp 0x1400504ef
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfc
mov r9d, 2
call fcn.1400deac0
lea rcx, [rsp + 0x40]
lea rdx, [0x14011c4b2]
mov r8d, 0xc
call fcn.1400c3c00
mov rcx, rsi
call fcn.1400deb40
jmp 0x140050519

Function at 0x1400509f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14012d038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14004ff10
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14004ff19
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140090b60
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14004fef9
int3
mov rcx, qword [rcx + 8]
jmp 0x14004feb0

Function at 0x140050cd0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14014aa20], 0
jne 0x140050d0d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140050d00
mov dword [rdi], eax
mov dword [0x14014aa28], eax
mov qword [0x14014aa20], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3