joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140135020
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x1402ea038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140135053
mov rax, qword [rsi + 8]
test rax, rax
je 0x14013514c
bt ebx, 8
jae 0x14013506f
mov eax, ebx
and eax, 0x200
jne 0x14013514c
cmp edi, 2
lea rax, [0x140307640]
lea rcx, [0x140307840]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14013514c
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x14013514c
cmp byte [0x140307c40], 0
setne al
bt ebx, 8
jb 0x14013514c
shr ebx, 9
and ebx, 1
or bl, al
je 0x14013514c
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx r13d, byte [rsi + 0x17]
test r13b, r13b
jns 0x14013516b
mov r14, qword [rsi]
mov r13, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov rbp, r13
sub rbp, r15
jb 0x140135139
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.1401ca23c
test eax, eax
je 0x140135196
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x140135119
cmp dword [rsp + 0x2c], 0
jne 0x140135170
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401ad700
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x1401350fc
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x14013517c
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.14021c9e0
jmp 0x14013514c
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x1401351a4
test ecx, ecx
jne 0x140135139
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x1401351d3
cmp dword [rsp + 0x2c], 2
jne 0x1401351e4
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x1401351e4
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x1401351fd
lea r14, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x1401351ea
jmp 0x140135200
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov r13, rbp
jmp 0x140135140
Function at 0x140135d40
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rax, qword [0x1402ea038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x30], xmm0
movzx eax, byte [r8 + 0x17]
test al, al
js 0x140135d72
and eax, 0x7f
jmp 0x140135d79
mov rax, qword [r8 + 8]
mov r8, qword [r8]
mov qword [rsp + 0x70], r8
mov qword [rsp + 0x78], rax
test rax, rax
js 0x140135e3a
test r8, r8
jne 0x140135d9a
test rax, rax
jne 0x140135e66
lea rsi, [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140183b70
cmp byte [rsi + 0x17], 0
jns 0x140135dbd
mov rsi, qword [rsp + 0x80]
movaps xmm0, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.140183b70
cmp byte [rdi + 0x17], 0
jns 0x140135de2
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x6f], 0
jns 0x140135e01
mov rcx, qword [rsp + 0x58]
call fcn.1401abf3c
cmp byte [rsp + 0x97], 0
jns 0x140135e18
mov rcx, qword [rsp + 0x80]
call fcn.1401abf3c
test esi, esi
setne bl
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401ad700
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
lea rax, str.string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type
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.__len___static_cast_size_type__numeric_limits_difference_type_::max___
mov r8d, 0x13a
call fcn.1401f6bb0
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
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.__len__0____s___nullptr
mov r8d, 0x13c
call fcn.1401f6bb0
int3
Function at 0x140135f20
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 [0x1402ea038]
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.140183b70
cmp byte [rdi + 0x17], 0
jns 0x140135f67
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 0x140135f88
mov rcx, qword [rsp + 0x68]
call fcn.1401abf3c
test rsi, rsi
je 0x14013602f
test edi, edi
je 0x14013602f
mov ecx, edi
add rcx, rcx
call fcn.1401abf7c
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x68]
mov rcx, r14
call fcn.140183b70
cmp byte [r14 + 0x17], 0
jns 0x140135fcb
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 0x140135feb
mov rcx, qword [rsp + 0x68]
call fcn.1401abf3c
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x14013605d
mov rcx, rbx
call fcn.1401cfa44
lea rdx, [rsp + 0x30]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x68]
call fcn.140183fd0
cmp byte [rsi + 0x17], 0
js 0x140136053
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.1401abf84
test edi, edi
setne bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1401ad700
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.1401abf3c
jmp 0x140136016
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.1401f6bb0
int3
Function at 0x14013ad40
Capabilities:
Access firewall policy via inetfwpolicy2

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
lea r14, [rcx + 0x38]
mov rcx, qword [rcx + 0x38]
test rcx, rcx
jne 0x14013ae74
lea r12, [rdi + 0x30]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
jne 0x14013ae41
mov qword [rsp + 0x20], r12
lea rcx, [0x1402a2978]
lea r9, [0x1402cffa0]
xor edx, edx
mov r8d, 0x17
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r15, qword [r12]
test eax, eax
js 0x14013ae8d
mov rcx, qword [r14]
test rcx, rcx
jne 0x14013ae5b
mov rax, qword [r15]
mov rax, qword [rax + 0x90]
mov rcx, r15
mov rdx, r14
call qword [0x14031b008]
test eax, eax
js 0x14013aeb1
cmp rdi, rbx
je 0x14013adf3
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rbx + 0x17]
js 0x14013ae22
test r8b, r8b
jns 0x14013ae12
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
mov rcx, rdi
call fcn.1400d9670
add rdi, 0x18
mov rcx, rdi
mov rdx, rsi
call fcn.14018d6c0
mov al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rax, qword [rbx + 0x10]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rbx]
movups xmmword [rdi], xmm0
jmp 0x14013adf3
test r8b, r8b
jns 0x14013ae30
mov r8, qword [rbx + 8]
mov rbx, qword [rbx]
jmp 0x14013ae34
and r8d, 0x7f
mov rcx, rdi
mov rdx, rbx
call fcn.1400d9580
jmp 0x14013adf3
mov qword [r12], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14031b008]
jmp 0x14013ad78
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14031b008]
jmp 0x14013adb1
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x14031b008]
jmp 0x14013ad67
test r15, r15
je 0x14013aeaa
mov qword [r12], 0
mov rax, qword [r15]
mov rax, qword [rax + 0x10]
mov rcx, r15
call qword [0x14031b008]
xor eax, eax
jmp 0x14013ae04
mov rcx, qword [r14]
test rcx, rcx
je 0x14013aeaa
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
jmp 0x14013aea4
Function at 0x14013cf30
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x1402ea038]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1402af0f0]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x14013d01c
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.1401af840
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 0x14013d023
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.14013d080
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14013d023
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14013d02c
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.1401ad700
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140140680
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140140690
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 0x1401406b1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1401406d1
cmp byte [r14 + 0x50], 0
jne 0x140140754
or edi, 0x20000000
test dil, 8
jne 0x140140784
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x1401406ef
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x140140700
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x140140769
cmp byte [r14 + 0x18], 0
jne 0x140140777
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1401407a1
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 0x14014075f
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 0x1401406d1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14014073f
lea rcx, [r14 + 0x20]
call fcn.1400c1d10
mov r15, rax
jmp 0x140140707
mov rcx, r14
call fcn.1400c1d10
mov r9, rax
jmp 0x140140711
cmp byte [r14 + 0x68], 0
je 0x140140796
or edi, 0x40000000
jmp 0x1401406db
or edi, 0x10000000
jmp 0x1401406db
cmp ebx, 4
jne 0x1401407b0
mov edx, 6
jmp 0x14014071e
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1401407c2
mov edx, 7
jmp 0x14014071e
cmp ebx, 1
jne 0x1401407d1
mov edx, 4
jmp 0x14014071e
xor edx, edx
jmp 0x14014071e
Function at 0x140140690
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x140140690
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 0x1401406b1
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1401406d1
cmp byte [r14 + 0x50], 0
jne 0x140140754
or edi, 0x20000000
test dil, 8
jne 0x140140784
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x1401406ef
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x140140700
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x140140769
cmp byte [r14 + 0x18], 0
jne 0x140140777
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1401407a1
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 0x14014075f
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 0x1401406d1
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14014073f
lea rcx, [r14 + 0x20]
call fcn.1400c1d10
mov r15, rax
jmp 0x140140707
mov rcx, r14
call fcn.1400c1d10
mov r9, rax
jmp 0x140140711
cmp byte [r14 + 0x68], 0
je 0x140140796
or edi, 0x40000000
jmp 0x1401406db
or edi, 0x10000000
jmp 0x1401406db
cmp ebx, 4
jne 0x1401407b0
mov edx, 6
jmp 0x14014071e
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1401407c2
mov edx, 7
jmp 0x14014071e
cmp ebx, 1
jne 0x1401407d1
mov edx, 4
jmp 0x14014071e
xor edx, edx
jmp 0x14014071e

Function at 0x1401407e0
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 0x140140818
cmp byte [r15 + 0x50], 0
jne 0x1401408a7
or edi, 0x20000000
test dil, 8
jne 0x1401408d7
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x140140836
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x140140847
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 0
jne 0x1401408bc
cmp byte [r15 + 0x18], 0
jne 0x1401408ca
xor r9d, r9d
cmp ebx, 4
jne 0x140140898
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 0x1401408b2
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 0x1401408f4
mov edx, 7
jmp 0x140140862
or edi, 0x80000000
jmp 0x140140818
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140140883
lea rcx, [r15 + 0x20]
call fcn.1400c1d10
mov r14, rax
jmp 0x14014084e
mov rcx, r15
call fcn.1400c1d10
mov r9, rax
jmp 0x140140858
cmp byte [r15 + 0x68], 0
je 0x1401408e9
or edi, 0x40000000
jmp 0x140140822
or edi, 0x10000000
jmp 0x140140822
mov edx, 1
test ebx, ebx
je 0x140140862
cmp ebx, 1
jne 0x140140910
mov edx, 4
jmp 0x140140862
xor edx, edx
jmp 0x140140862
Function at 0x140141890
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1402ea038]
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 0x1401418f0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1401418f9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401ad700
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1401418d9
int3
mov rcx, qword [rcx + 8]
jmp 0x140141890

Function at 0x140141900
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 [0x1402ea038]
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 0x1401419a3
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140141992
cmp eax, 0xffffffff
je 0x1401419b7
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401ad700
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 0x140141941
mov eax, dword [rsp + 0x2c]
jmp 0x140141972
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140141974
int3

Function at 0x140141e90
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x1402ea038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140141d90
test rax, rax
jne 0x140141ecf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x140141eeb
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401ad700
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14018cad0
test al, al
jne 0x140141efd
xor esi, esi
jmp 0x140141ecf
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.1402274c0
lea rcx, [rsp + 0x40]
lea rdx, [0x1402d1903]
mov r8d, ntohl
call fcn.1401e9050
mov rcx, rsi
call fcn.140227540
jmp 0x140141ef9

Function at 0x1401423e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1402ea038]
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 0x1401418f0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1401418f9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401ad700
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1401418d9
int3
mov rcx, qword [rcx + 8]
jmp 0x140141890
Function at 0x1401436a0
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 [0x1402ea038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140143670]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140307e18]
lea rdx, [0x140143510]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1401437b0
cmp dword [0x140307e20], 0
jne 0x1401437a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140307e24]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14014374c
mov ecx, 1
mov edx, 0x28
call fcn.14016eed0
test rax, rax
je 0x1401437a0
mov r14, rax
mov ecx, dword [0x140307e24]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140143798
lea r15, [0x140307e28]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140307e30]
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.1401ad700
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.14016ee30
mov rcx, rsi
mov rax, rdi
call qword [0x14031b008]
xor esi, esi
jmp 0x14014377c
call fcn.1401c6400
int3

Function at 0x140146070
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 0x140146085
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x140155af0
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x1402ea038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x140155ba0]
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 0x140155b4b
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401ad700
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.14018d210
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov rdx, rsi
call fcn.1402297b0
lea rdx, [0x1402c7161]
mov rcx, rdi
call fcn.140236e80
mov rcx, rdi
call fcn.1402297e0
jmp 0x140155b36
Function at 0x14016a600
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14016a648
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14016a651
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14016a638
mov qword [rdi], rsi
call fcn.14018d230
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14018d230
mov rcx, qword [rdi]
call fcn.14017db10
mov qword [rdi], 0
jmp 0x14016a626
Function at 0x140176760
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x14017685e
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1402b8120]
nop dword [rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x1401767d0
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x1402b8130]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x1401768ed
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x1401768c3
movdqa xmm1, xmmword [0x1402b8130]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x1402b8140], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret