joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14012bd00
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 [0x1402ef038]
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.140195590
cmp byte [rdi + 0x17], 0
jns 0x14012bd47
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 0x14012bd68
mov rcx, qword [rsp + 0x68]
call fcn.1401d40d8
test rsi, rsi
je 0x14012be0f
test edi, edi
je 0x14012be0f
mov ecx, edi
add rcx, rcx
call fcn.1401d411c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x68]
mov rcx, r14
call fcn.140195590
cmp byte [r14 + 0x17], 0
jns 0x14012bdab
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 0x14012bdcb
mov rcx, qword [rsp + 0x68]
call fcn.1401d40d8
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x14012be3d
mov rcx, rbx
call fcn.1401fc5f4
lea rdx, [rsp + 0x30]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x68]
call fcn.140195aa0
cmp byte [rsi + 0x17], 0
js 0x14012be33
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.1401d4124
test edi, edi
setne bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401d5680
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.1401d40d8
jmp 0x14012bdf6
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.140215d40
int3
Function at 0x14012c770
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov rsi, rcx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x14012c798
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14012c7d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14012c7f3
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1401d5680
mov rcx, rsi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
jmp fcn.14012c8d0
mov sil, 1
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.1401d5680
mov eax, esi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14019eda0
test al, al
jne 0x14012c805
xor esi, esi
jmp 0x14012c7d6
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, 0x266
mov r9d, 2
call fcn.14024b3d0
lea rcx, [rsp + 0x68]
lea rdx, str.CreateDirectory
mov r8d, reloc.WS2_32.dll_recv
call fcn.140213790
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14012c855
and r8d, 0x7f
jmp 0x14012c85c
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140161670
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov rdx, rbx
call fcn.140195aa0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14012c88c
and r8d, 0x7f
jmp 0x14012c896
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.140213790
cmp byte [rsp + 0x57], 0
jns 0x14012c8b2
mov rcx, qword [rsp + 0x40]
call fcn.1401d40d8
lea rcx, [rsp + 0x58]
call fcn.14024b450
jmp 0x14012c801
Function at 0x14012c8d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1b0
mov rsi, rcx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x1a8], rax
cmp byte [rcx + 0x17], 0
jns 0x14012c8f8
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14012c927
mov dil, 1
test al, 0x10
je 0x14012c93d
mov rcx, qword [rsp + 0x1a8]
xor rcx, rsp
call fcn.1401d5680
mov eax, edi
add rsp, 0x1b0
pop rbx
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14019eda0
test al, al
jne 0x14012ca13
xor edi, edi
jmp 0x14012c90a
mov ecx, 2
call fcn.14019eda0
test al, al
je 0x14012c939
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x68]
mov r8d, 0x255
mov r9d, 2
call fcn.140108830
lea rcx, [rsp + 0x78]
lea rdx, str.GetFileAttributes
mov r8d, shutdown
call fcn.140213790
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14012c992
and r8d, 0x7f
jmp 0x14012c999
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140161670
lea rsi, [rsp + 0x50]
mov rcx, rsi
mov rdx, rbx
call fcn.140195aa0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14012c9c9
and r8d, 0x7f
jmp 0x14012c9d3
mov r8, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, rsi
call fcn.140213790
lea rdx, str.:_not_a_directory
mov r8d, reloc.WS2_32.dll_recvfrom
mov rcx, rax
call fcn.140213790
cmp byte [rsp + 0x67], 0
jns 0x14012ca04
mov rcx, qword [rsp + 0x50]
call fcn.1401d40d8
lea rcx, [rsp + 0x68]
call fcn.140108d60
jmp 0x14012c939
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x68]
mov r8d, 0x251
mov r9d, 2
call fcn.14024b3d0
lea rcx, [rsp + 0x78]
lea rdx, str.GetFileAttributes
mov r8d, shutdown
call fcn.140213790
mov rdi, rax
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14012ca63
and r8d, 0x7f
jmp 0x14012ca6a
mov r8, qword [rsi + 8]
mov rsi, qword [rsi]
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov rdx, rsi
call fcn.140161670
lea rsi, [rsp + 0x50]
mov rcx, rsi
mov rdx, rbx
call fcn.140195aa0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
js 0x14012ca9a
and r8d, 0x7f
jmp 0x14012caa4
mov r8, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rcx, rdi
mov rdx, rsi
call fcn.140213790
cmp byte [rsp + 0x67], 0
jns 0x14012cac0
mov rcx, qword [rsp + 0x50]
call fcn.1401d40d8
lea rcx, [rsp + 0x68]
call fcn.14024b450
jmp 0x14012c939
Function at 0x14012e090
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.14012cb60
mov rax, qword [rsi]
test rax, rax
je 0x14012e107
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x14012e10e
lea rcx, [rsp + 0x28]
call fcn.14012d710
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401d5680
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x14012e0e0
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 0
je 0x14012e126
add rbx, 0x70
cmp rbx, r15
je 0x14012e0e0
jmp 0x14012e115
cmp byte [rbx + 0x27], 0
js 0x14012e132
lea rcx, [rbx + 0x10]
jmp 0x14012e136
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
jne 0x14012e11b
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
je 0x14012e15c
mov rcx, r14
mov rdx, rbx
call fcn.14012efe0
add r14, 0x68
mov qword [rdi + 8], r14
jmp 0x14012e11b
mov rcx, rdi
mov rdx, rbx
call fcn.14012ee10
jmp 0x14012e11b

Function at 0x14012e170
Capabilities:
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rdi, rdx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x30], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x28]
mov qword [rsi], rax
mov rdx, rsi
call fcn.14012cb60
mov rax, qword [rsi]
test rax, rax
je 0x14012e1e7
mov rbx, qword [rax + 0x50]
mov r15, qword [rax + 0x58]
xor esi, esi
cmp rbx, r15
jne 0x14012e1ee
lea rcx, [rsp + 0x28]
call fcn.14012d710
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401d5680
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 3
jmp 0x14012e1c0
mov r12, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [rbx + 0x68], 2
jne 0x14012e22f
cmp byte [rbx + 0x27], 0
js 0x14012e207
lea rcx, [rbx + 0x10]
jmp 0x14012e20b
mov rcx, qword [rbx + 0x10]
call r12
test al, 0x10
jne 0x14012e22f
mov r14, qword [rdi + 8]
cmp r14, qword [rdi + 0x10]
je 0x14012e23a
mov rcx, r14
mov rdx, rbx
call fcn.14012efe0
add r14, 0x68
mov qword [rdi + 8], r14
add rbx, 0x70
cmp rbx, r15
je 0x14012e1c0
jmp 0x14012e1f5
mov rcx, rdi
mov rdx, rbx
call fcn.14012ee10
jmp 0x14012e22f
Function at 0x140133a80
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1402bb8f0]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x140133b6c
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.1401d77d0
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 0x140133b73
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.140133bd0
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x140133b73
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x140133b7c
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.1401d5680
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140135c30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140135c00]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14030d278]
lea rdx, [0x140135aa0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140135d40
cmp dword [0x14030d280], 0
jne 0x140135d30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14030d284]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140135cdc
mov ecx, 1
mov edx, 0x28
call fcn.140169200
test rax, rax
je 0x140135d30
mov r14, rax
mov ecx, dword [0x14030d284]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140135d28
lea r15, [0x14030d288]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14030d290]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401d5680
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.140169160
mov rcx, rsi
mov rax, rdi
call qword [0x140320008]
xor esi, esi
jmp 0x140135d0c
call fcn.1401ed7b0
int3
Function at 0x140136aa0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140136ab0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140136ad1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140136af1
cmp byte [r14 + 0x68], 0
jne 0x140136b73
or edi, 0x20000000
test dil, 8
jne 0x140136ba7
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x140136b0f
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x140136b20
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x140136b88
cmp byte [r14], 0
jne 0x140136b96
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x140136bc7
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x140136b7e
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x140136af1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140136b5e
lea rcx, [r14 + 0x30]
call fcn.1400fe670
mov r15, rax
jmp 0x140136b27
add r14, 8
mov rcx, r14
call fcn.1400fe670
mov r9, rax
jmp 0x140136b30
cmp byte [r14 + 0x88], 0
je 0x140136bbc
or edi, 0x40000000
jmp 0x140136afb
or edi, 0x10000000
jmp 0x140136afb
cmp ebx, 4
jne 0x140136bd6
mov edx, 6
jmp 0x140136b3d
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140136be8
mov edx, 7
jmp 0x140136b3d
cmp ebx, 1
jne 0x140136bf7
mov edx, 4
jmp 0x140136b3d
xor edx, edx
jmp 0x140136b3d
Function at 0x140136ab0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140136ab0
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r14, rcx
cmp byte [rdx + 0x17], 0
jns 0x140136ad1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140136af1
cmp byte [r14 + 0x68], 0
jne 0x140136b73
or edi, 0x20000000
test dil, 8
jne 0x140136ba7
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x140136b0f
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x140136b20
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x140136b88
cmp byte [r14], 0
jne 0x140136b96
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x140136bc7
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
test eax, eax
jne 0x140136b7e
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
or edi, 0x80000000
jmp 0x140136af1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140136b5e
lea rcx, [r14 + 0x30]
call fcn.1400fe670
mov r15, rax
jmp 0x140136b27
add r14, 8
mov rcx, r14
call fcn.1400fe670
mov r9, rax
jmp 0x140136b30
cmp byte [r14 + 0x88], 0
je 0x140136bbc
or edi, 0x40000000
jmp 0x140136afb
or edi, 0x10000000
jmp 0x140136afb
cmp ebx, 4
jne 0x140136bd6
mov edx, 6
jmp 0x140136b3d
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140136be8
mov edx, 7
jmp 0x140136b3d
cmp ebx, 1
jne 0x140136bf7
mov edx, 4
jmp 0x140136b3d
xor edx, edx
jmp 0x140136b3d

Function at 0x140136c00
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x40
mov ebx, r8d
mov rsi, rdx
mov r15, rcx
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x140136c38
cmp byte [r15 + 0x68], 0
jne 0x140136cc6
or edi, 0x20000000
test dil, 8
jne 0x140136cfd
xor r14d, r14d
cmp byte [r15 + 0x70], 0
mov r12d, 0
je 0x140136c56
mov r12, qword [r15 + 0x78]
cmp byte [r15 + 0x50], 0
mov r13d, 0
je 0x140136c67
mov r13, qword [r15 + 0x58]
cmp byte [r15 + 0x28], 0
jne 0x140136cdb
cmp byte [r15], 0
jne 0x140136ce9
xor r9d, r9d
cmp ebx, 4
jne 0x140136cb7
mov edx, 6
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
mov rcx, rsi
mov r8d, edi
call qword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov esi, eax
test eax, eax
jne 0x140136cd1
test esi, esi
sete al
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea eax, [rbx - 2]
cmp eax, 2
jae 0x140136d1d
mov edx, 7
jmp 0x140136c81
or edi, 0x80000000
jmp 0x140136c38
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140136ca2
lea rcx, [r15 + 0x30]
call fcn.1400fe670
mov r14, rax
jmp 0x140136c6e
add r15, 8
mov rcx, r15
call fcn.1400fe670
mov r9, rax
jmp 0x140136c77
cmp byte [r15 + 0x88], 0
je 0x140136d12
or edi, 0x40000000
jmp 0x140136c42
or edi, 0x10000000
jmp 0x140136c42
mov edx, 1
test ebx, ebx
je 0x140136c81
cmp ebx, 1
jne 0x140136d39
mov edx, 4
jmp 0x140136c81
xor edx, edx
jmp 0x140136c81
Function at 0x1401402d0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1401402e5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140140dd0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1402ef038]
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 0x140140e30
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140140e39
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401d5680
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x140140e19
int3
mov rcx, qword [rcx + 8]
jmp 0x140140dd0

Function at 0x140140e40
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 [0x1402ef038]
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 0x140140ee3
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140140ed2
cmp eax, 0xffffffff
je 0x140140ef7
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401d5680
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 0x140140e81
mov eax, dword [rsp + 0x2c]
jmp 0x140140eb2
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140140eb4
int3

Function at 0x1401413d0
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.1401412d0
test rax, rax
jne 0x14014140f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14014142b
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401d5680
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14019eda0
test al, al
jne 0x14014143d
xor esi, esi
jmp 0x14014140f
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, 0xfb
mov r9d, 2
call fcn.14024b3d0
lea rcx, [rsp + 0x40]
lea rdx, [0x1402d8fb2]
mov r8d, recvfrom
call fcn.140213790
mov rcx, rsi
call fcn.14024b450
jmp 0x140141439
Function at 0x140141920
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1402ef038]
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 0x140140e30
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140140e39
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401d5680
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x140140e19
int3
mov rcx, qword [rcx + 8]
jmp 0x140140dd0
Function at 0x14014be10
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x30
mov rax, rcx
mov rcx, qword [0x1402ef038]
xor rcx, rsp
mov qword [rsp + 0x28], rcx
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x14014be93
cmp byte [rax + 0x90], 0
jne 0x14014be93
mov sil, 1
cmp byte [rax + 0x91], 0
jne 0x14014be7e
lea rdx, [rsp + 0x27]
mov byte [rdx], 0xaa
mov r8d, 1
mov r9d, 2
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
je 0x14014be93
cmp esi, 0xffffffff
setne cl
cmp eax, 0x2733
sete sil
or sil, cl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401d5680
mov eax, esi
add rsp, 0x30
pop rsi
ret
xor esi, esi
jmp 0x14014be7e

Function at 0x14014bea0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rbx, [rsp + 0x28]
mov r8d, 0x90
mov rcx, rbx
mov dl, 0xaa
call fcn.1401d77d0
mov rcx, rbx
call fcn.14014b110
lea r8, [rsp + 0xa8]
mov rdx, qword [r8 + 8]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14014bf3a
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, rsi
call fcn.140117e90
xor ecx, ecx
test al, al
mov esi, 0xffffff94
cmovne esi, ecx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1401d5680
mov eax, esi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14014adf0
mov esi, eax
jmp 0x14014bf1d
Function at 0x140150050
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x14030d478]
mov ecx, dword [0x1402ffa30]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401500d1
lea rcx, [0x14030d468]
call fcn.1401aff60
test rax, rax
jne 0x1401500be
mov ecx, 4
call fcn.1401d4088
mov rdi, rax
mov dword [rax], 0
lea rbx, [0x14030d468]
mov rcx, rbx
call fcn.1401aff60
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.140126e70
test rsi, rsi
jne 0x140150114
lea rcx, [0x14030d468]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1401aff60
lea rcx, [0x14030d478]
call fcn.1401d4200
cmp dword [0x14030d478], 0xffffffff
jne 0x140150078
xorps xmm0, xmm0
movups xmmword [0x14030d468], xmm0
lea rcx, [0x14030d468]
lea rdx, [0x140102b20]
call fcn.140126ec0
lea rcx, [0x14030d478]
call fcn.1401d4298
jmp 0x140150078
mov rcx, rsi
call fcn.1401d40d8
jmp 0x1401500be

Function at 0x140154270
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x1402ef038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140154320]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 8], rax
test rax, rax
je 0x1401542cb
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401d5680
nop
add rsp, 0x68
pop rdi
pop rsi
ret
lea rdx, str.Start
lea r8, str....._third_partycrashpadcrashpadutil_thread_thread_win.cc
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov r9d, 0x1b
call fcn.14019f4e0
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov rdx, rsi
call fcn.14024cb30
lea rdx, [0x1402cf0df]
mov rcx, rdi
call fcn.14024f150
mov rcx, rdi
call fcn.14024cb60
jmp 0x1401542b6