joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dd730
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movups xmm0, xmmword [rdx]
movaps xmmword [rsp + 0x20], xmm0
movzx eax, byte [r8 + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [r8]
cmovns rax, r8
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
cmovs rcx, qword [r8 + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x70]
mov rcx, rsi
call fcn.140148610
cmp byte [rsi + 0x17], 0
jns 0x1400dd790
mov rsi, qword [rsp + 0x70]
movaps xmm0, xmmword [rsp + 0x20]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x48]
mov rcx, rdi
call fcn.140148610
cmp byte [rdi + 0x17], 0
jns 0x1400dd7b5
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [rsp + 0x5f], 0
jns 0x1400dd7d4
mov rcx, qword [rsp + 0x48]
call fcn.1401a0fa4
cmp byte [rsp + 0x87], 0
jns 0x1400dd7e8
mov rcx, qword [rsp + 0x70]
call fcn.1401a0fa4
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401a2750
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400dd890
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movups xmm0, xmmword [rcx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x58]
mov rcx, rdi
call fcn.140148610
cmp byte [rdi + 0x17], 0
jns 0x1400dd8d1
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
cmp byte [rsp + 0x6f], 0
jns 0x1400dd8f2
mov rcx, qword [rsp + 0x58]
call fcn.1401a0fa4
test rsi, rsi
je 0x1400dd999
test edi, edi
je 0x1400dd999
mov ecx, edi
add rcx, rcx
call fcn.1401a0fdc
mov rbx, rax
movups xmm0, xmmword [r14]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea r14, [rsp + 0x58]
mov rcx, r14
call fcn.140148610
cmp byte [r14 + 0x17], 0
jns 0x1400dd935
mov r14, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x1400dd955
mov rcx, qword [rsp + 0x58]
call fcn.1401a0fa4
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x1400dd9c1
mov rcx, rbx
call fcn.1401ca674
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.140148ac0
cmp byte [rsi + 0x17], 0
js 0x1400dd9b7
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsi], xmm0
mov rcx, rbx
call fcn.1401a0fe4
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1401a2750
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsi]
call fcn.1401a0fa4
jmp 0x1400dd980
int3
Function at 0x1400e25e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1403b92a8], 0
jne 0x1400e261d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400e2610
mov dword [rdi], eax
mov dword [0x1403b92b0], eax
mov qword [0x1403b92a8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x1400e5250
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 0x1400e536b
lea r12, [rdi + 0x30]
mov rcx, qword [rdi + 0x30]
test rcx, rcx
jne 0x1400e5351
mov qword [rsp + 0x20], r12
lea rcx, [0x1402f9368]
lea r9, [0x14037d9d0]
xor edx, edx
mov r8d, 0x17
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov r15, qword [r12]
test eax, eax
js 0x1400e539d
mov rcx, qword [r14]
test rcx, rcx
jne 0x1400e5384
mov rax, qword [r15]
mov rax, qword [rax + 0x90]
mov rcx, r15
mov rdx, r14
call qword [0x1403d6008]
test eax, eax
js 0x1400e53c1
cmp rdi, rbx
je 0x1400e5303
cmp byte [rdi + 0x17], 0
movzx r8d, byte [rbx + 0x17]
js 0x1400e5332
test r8b, r8b
jns 0x1400e5322
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
mov rcx, rdi
call fcn.14005c9d0
add rdi, 0x18
mov rcx, rdi
mov rdx, rsi
call fcn.1401524a0
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 0x1400e5303
test r8b, r8b
js 0x1400e533d
and r8d, 0x7f
jmp 0x1400e5344
mov r8, qword [rbx + 8]
mov rbx, qword [rbx]
mov rcx, rdi
mov rdx, rbx
call fcn.14005c8e0
jmp 0x1400e5303
mov qword [r12], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1403d6008]
jmp 0x1400e5288
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1403d6008]
jmp 0x1400e5277
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1403d6008]
jmp 0x1400e52c1
test r15, r15
je 0x1400e53ba
mov qword [r12], 0
mov rax, qword [r15]
mov rax, qword [rax + 0x10]
mov rcx, r15
call qword [0x1403d6008]
xor eax, eax
jmp 0x1400e5314
mov rcx, qword [r14]
test rcx, rcx
je 0x1400e53ba
mov qword [r14], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
jmp 0x1400e53b4
Function at 0x1400edef0
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x14032ae20]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x1400edfdc
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.1401a48a0
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 0x1400edfe3
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.1400ee040
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x1400edfe3
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x1400edfec
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.1401a2750
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400efd10
Capabilities:
Read http header

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, r9
mov rbx, r8
mov ebp, edx
mov r14, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x5c]
mov dword [rax], 0
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
xor r9d, r9d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r15d, 0x80004005
cmovne r15d, ecx
cmp r15d, 0x8007007a
jne 0x1400efe81
mov qword [rsp + 0x38], rsi
movaps xmm0, xmmword [0x14032ae20]
movaps xmmword [rsp + 0x40], xmm0
mov esi, dword [rsp + 0x5c]
cmp rsi, 2
jb 0x1400efec2
mov r13, rsi
shr r13, 1
mov r12d, esi
and r12d, 0xfffffffe
mov rcx, r12
call fcn.1401a0f68
mov rdi, rax
mov qword [rsp + 0x40], rax
lea r15, [rax + r12]
mov qword [rsp + 0x50], r15
xor eax, eax
mov rcx, rdi
add rcx, rax
je 0x1400efeee
mov word [rcx], 0
add rax, 2
cmp r12, rax
jne 0x1400efdce
mov qword [rsp + 0x48], r15
cmp esi, 1
jbe 0x1400efec2
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
mov rcx, r14
mov edx, ebp
mov r8, rbx
mov r9, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1400efea2
mov edx, dword [rsp + 0x5c]
shr rdx, 1
cmp edx, r13d
ja 0x1400efe40
mov rcx, qword [rsp + 0x38]
jae 0x1400efe5c
lea r15, [rdi + rdx*2]
mov qword [rsp + 0x48], r15
jmp 0x1400efe5c
sub rdx, r13
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.140049b90
mov rdi, qword [rbx]
mov r15, qword [rbx + 8]
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
mov r8, r15
call fcn.1400eff20
xor r15d, r15d
mov rdi, qword [rsp + 0x40]
test rdi, rdi
je 0x1400efe81
mov qword [rsp + 0x48], rdi
mov rcx, rdi
call fcn.1401a0fa4
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401a2750
mov eax, r15d
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov r15d, 0x80004005
cmovne r15d, ecx
jmp 0x1400efe6f
lea rax, str.front___called_on_an_empty_vector
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_vector
lea r9, str._empty__
mov r8d, 0x236
call fcn.1401e43d0
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1401e43d0
int3
Function at 0x1400f0190
Capabilities:
Read http header

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x38], rax
or edx, 0x20000000
lea rax, [rsp + 0x34]
mov dword [rax], 4
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor esi, esi
test eax, eax
jne 0x1400f01eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov esi, 0x80004005
cmovne esi, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401a2750
mov eax, esi
add rsp, 0x40
pop rsi
ret

Function at 0x1400f07d0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400f07e0
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 0x1400f0801
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400f0821
cmp byte [r14 + 0x68], 0
jne 0x1400f08a3
or edi, 0x20000000
test dil, 8
jne 0x1400f08d7
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x1400f083f
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x1400f0850
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x1400f08b8
cmp byte [r14], 0
jne 0x1400f08c6
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400f08f7
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 0x1400f08ae
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 0x1400f0821
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400f088e
lea rcx, [r14 + 0x30]
call fcn.140048a50
mov r15, rax
jmp 0x1400f0857
add r14, 8
mov rcx, r14
call fcn.140048a50
mov r9, rax
jmp 0x1400f0860
cmp byte [r14 + 0x88], 0
je 0x1400f08ec
or edi, 0x40000000
jmp 0x1400f082b
or edi, 0x10000000
jmp 0x1400f082b
cmp ebx, 4
jne 0x1400f0906
mov edx, 6
jmp 0x1400f086d
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400f0918
mov edx, 7
jmp 0x1400f086d
cmp ebx, 1
jne 0x1400f0927
mov edx, 4
jmp 0x1400f086d
xor edx, edx
jmp 0x1400f086d
Function at 0x1400f07e0
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x1400f07e0
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 0x1400f0801
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x1400f0821
cmp byte [r14 + 0x68], 0
jne 0x1400f08a3
or edi, 0x20000000
test dil, 8
jne 0x1400f08d7
xor r15d, r15d
cmp byte [r14 + 0x70], 0
mov r12d, 0
je 0x1400f083f
mov r12, qword [r14 + 0x78]
cmp byte [r14 + 0x50], 0
mov r13d, 0
je 0x1400f0850
mov r13, qword [r14 + 0x58]
cmp byte [r14 + 0x28], 0
jne 0x1400f08b8
cmp byte [r14], 0
jne 0x1400f08c6
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x1400f08f7
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 0x1400f08ae
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 0x1400f0821
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400f088e
lea rcx, [r14 + 0x30]
call fcn.140048a50
mov r15, rax
jmp 0x1400f0857
add r14, 8
mov rcx, r14
call fcn.140048a50
mov r9, rax
jmp 0x1400f0860
cmp byte [r14 + 0x88], 0
je 0x1400f08ec
or edi, 0x40000000
jmp 0x1400f082b
or edi, 0x10000000
jmp 0x1400f082b
cmp ebx, 4
jne 0x1400f0906
mov edx, 6
jmp 0x1400f086d
lea eax, [rbx - 2]
cmp eax, 2
jae 0x1400f0918
mov edx, 7
jmp 0x1400f086d
cmp ebx, 1
jne 0x1400f0927
mov edx, 4
jmp 0x1400f086d
xor edx, edx
jmp 0x1400f086d

Function at 0x1400f0930
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 0x1400f0968
cmp byte [r15 + 0x68], 0
jne 0x1400f09f6
or edi, 0x20000000
test dil, 8
jne 0x1400f0a2d
xor r14d, r14d
cmp byte [r15 + 0x70], 0
mov r12d, 0
je 0x1400f0986
mov r12, qword [r15 + 0x78]
cmp byte [r15 + 0x50], 0
mov r13d, 0
je 0x1400f0997
mov r13, qword [r15 + 0x58]
cmp byte [r15 + 0x28], 0
jne 0x1400f0a0b
cmp byte [r15], 0
jne 0x1400f0a19
xor r9d, r9d
cmp ebx, 4
jne 0x1400f09e7
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 0x1400f0a01
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 0x1400f0a4d
mov edx, 7
jmp 0x1400f09b1
or edi, 0x80000000
jmp 0x1400f0968
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400f09d2
lea rcx, [r15 + 0x30]
call fcn.140048a50
mov r14, rax
jmp 0x1400f099e
add r15, 8
mov rcx, r15
call fcn.140048a50
mov r9, rax
jmp 0x1400f09a7
cmp byte [r15 + 0x88], 0
je 0x1400f0a42
or edi, 0x40000000
jmp 0x1400f0972
or edi, 0x10000000
jmp 0x1400f0972
mov edx, 1
test ebx, ebx
je 0x1400f09b1
cmp ebx, 1
jne 0x1400f0a69
mov edx, 4
jmp 0x1400f09b1
xor edx, edx
jmp 0x1400f09b1
Function at 0x1400f2c90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14039c038]
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 0x1400f2cf0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400f2cf9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401a2750
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400f2cd9
int3
mov rcx, qword [rcx + 8]
jmp 0x1400f2c90

Function at 0x1400f2d00
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 [0x14039c038]
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 0x1400f2da3
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1400f2d92
cmp eax, 0xffffffff
je 0x1400f2db7
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401a2750
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 0x1400f2d41
mov eax, dword [rsp + 0x2c]
jmp 0x1400f2d72
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x1400f2d74
int3

Function at 0x1400f3280
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.1400f3180
test rax, rax
jne 0x1400f32bf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x1400f32db
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401a2750
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140151850
test al, al
jne 0x1400f32ed
xor esi, esi
jmp 0x1400f32bf
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.140215d50
lea rcx, [rsp + 0x40]
lea rdx, [0x1403802d3]
mov r8d, ntohl
call fcn.1401e2360
mov rcx, rsi
call fcn.140215dd0
jmp 0x1400f32e9

Function at 0x1400f37d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14039c038]
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 0x1400f2cf0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400f2cf9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401a2750
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400f2cd9
int3
mov rcx, qword [rcx + 8]
jmp 0x1400f2c90
Function at 0x1400f6ac0
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 [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400f6a90]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x1403ba300]
lea rdx, [0x1400f68e0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400f6bd0
cmp dword [0x1403ba308], 0
jne 0x1400f6bc0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1403ba30c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1400f6b6c
mov ecx, 1
mov edx, 0x28
call fcn.1401444a0
test rax, rax
je 0x1400f6bc0
mov r14, rax
mov ecx, dword [0x1403ba30c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400f6bb8
lea r15, [0x1403ba310]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1403ba320]
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.1401a2750
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.140144400
mov rcx, rsi
mov rax, rdi
call qword [0x1403d6008]
xor esi, esi
jmp 0x1400f6b9c
call fcn.1401bb720
int3

Function at 0x1400f74f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400f752c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x1400f7536
add rdi, rbx
sub rsi, rbx
jne 0x1400f750a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401bb720
int3
Function at 0x14010ee80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1403adde8]
cmp ecx, 0xffffffff
je 0x14010ef5a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14010ef5a
mov eax, dword [0x1403bc160]
mov ecx, dword [0x1403adeec]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14010ef64
mov rbx, qword [0x1403bc158]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14010efaa
mov rax, qword [0x1403ba940]
inc rax
xor ecx, ecx
lea rdx, [0x1403ba950]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14010efb7
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1403bc150]
inc ecx
mov dword [0x1403bc150], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1403ba940], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14010efcc
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14010efd0
jmp 0x14010eeaa
lea rcx, [0x1403bc160]
call fcn.1401a10c0
cmp dword [0x1403bc160], 0xffffffff
jne 0x14010eecf
mov ecx, 8
call fcn.1401a0f68
mov rbx, rax
mov rcx, rax
call fcn.14013ef80
mov qword [0x1403bc158], rbx
lea rcx, [0x1403bc160]
call fcn.1401a1158
jmp 0x14010eecf
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14010eee7
inc rcx
cmp rcx, 0x100
jne 0x14010eefa
jmp 0x14010ef40
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1401a26f0
sub rsp, rax
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1403adde8]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14010f084
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14010f0e7
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1401a48a0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1401a0fdc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1401a41f0
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.1401a2750
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140125390
test al, al
je 0x14010f0ea
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14010f0c2
mov eax, 0xffffffff
lock cmpxchg dword [0x1403adde8], ecx
je 0x14010f008
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1403adde8]
mov dword [rsp + 0x2c], ecx
jmp 0x14010f008
lea rcx, [rsp + 0x2c]
call fcn.140125390
test al, al
je 0x14010f0ed
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14010f0ed
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14010f09b
int3
int3
int3