joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004cf00
Capabilities:
Create thread

Disassembly:
jmp 0x14004cf00
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 [0x140141038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.14009e668
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x140143bc8]
jne 0x14004cf6d
mov rcx, r15
call fcn.140079e00
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, [0x14004d390]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14004d065
test r14, r14
je 0x14004cfda
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14009fb90
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 0x14004cfb4
mov eax, dword [0x14015b640]
mov ecx, dword [0x14014fde0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004d0b4
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.14003c150
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x14004d029
and r8d, 0x7f
jmp 0x14004d033
mov r8, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
call fcn.1400607e0
mov rcx, qword [0x14015b638]
mov rdx, r14
call fcn.1400442b0
cmp byte [rsp + 0x4f], 0
jns 0x14004d08a
mov rcx, qword [rsp + 0x38]
call fcn.14009e6a4
jmp 0x14004d08a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14004d082
mov ebp, eax
cmp eax, 0x5af
je 0x14004d082
cmp ebp, 0xe
jne 0x14004cfe5
mov rcx, rbx
call fcn.1400f1c30
test rsi, rsi
je 0x14004cfb4
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x140143bc8]
jne 0x14004d0a7
call fcn.140079f40
mov rcx, rsi
call fcn.14009e6a4
jmp 0x14004cfb4
lea rcx, [0x14015b640]
call fcn.14009e7c0
cmp dword [0x14015b640], 0xffffffff
jne 0x14004d00a
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140044290
mov qword [0x14015b638], rax
lea rcx, [0x14015b640]
call fcn.14009e858
jmp 0x14004d00a
Function at 0x14004e150
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea r8, [rsp + 0x38]
mov dword [r8], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004e1d8
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14004e1c2
cmp dword [rsp + 0x38], 4
jne 0x14004e1c2
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14009fb90
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x14004e1c2

Function at 0x14004e1e0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14009fb30
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400a1ce0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004e293
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14004e297
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.140028050
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14009fb90
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14004e274
cmp eax, 2
jne 0x14004e2df
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a1ce0
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14004e2e6
lea rdx, [rsp + 0x40]
jmp 0x14004e26a
mov edi, 0x3f4
jmp 0x14004e274
mov edi, 0xea
jmp 0x14004e274
Function at 0x14004f030
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x14004f181
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14011c230]
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 [0x14016c008]
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 [0x14016c008]
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 [0x14016c008]
test r14, r14
je 0x14004f113
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x14004f103
lea r14, [rsi + 0xf8]
mov ecx, 1
call fcn.140087d90
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x14004f185
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x14004f152
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.14009fb90
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x14004f164
bt eax, 9
jae 0x14004f1a5
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x14004f152
lea rcx, [0x140004520]
jmp 0x14004f14f
call fcn.1400fb540
lea rax, [0x1400fbd40]
test r14, r14
je 0x14004f152
lea rcx, [0x1400fb420]
jmp 0x14004f14f
Function at 0x14004f760
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14004f770
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 0x14004f791
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14004f7b1
cmp byte [r14 + 0x50], 0
jne 0x14004f83c
or edi, 0x20000000
test dil, 8
jne 0x14004f847
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14004f7cf
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14004f7e0
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x14004f86e
cmp byte [r14 + 0x18], 0
jne 0x14004f87f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14004f88f
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 0x14004f864
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 0x14004f7b1
cmp byte [r14 + 0x68], 0
je 0x14004f859
or edi, 0x40000000
jmp 0x14004f7bb
or edi, 0x10000000
jmp 0x14004f7bb
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004f827
lea rcx, [r14 + 0x20]
call fcn.14003dee0
mov r15, rax
jmp 0x14004f7eb
mov rcx, r14
call fcn.14003dee0
mov r9, rax
jmp 0x14004f7f9
cmp ebx, 4
jne 0x14004f89e
mov edx, 6
jmp 0x14004f806
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14004f8b0
mov edx, 7
jmp 0x14004f806
cmp ebx, 1
jne 0x14004f8bf
mov edx, 4
jmp 0x14004f806
xor edx, edx
jmp 0x14004f806
Function at 0x14004f770
Capabilities:
Inspect section memory permissions

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp 0x14004f770
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 0x14004f791
mov rsi, qword [rsi]
mov edi, r9d
and edi, 0xfffffff
test r9b, 4
je 0x14004f7b1
cmp byte [r14 + 0x50], 0
jne 0x14004f83c
or edi, 0x20000000
test dil, 8
jne 0x14004f847
xor r15d, r15d
cmp byte [r14 + 0x60], 0
mov r12d, 0
je 0x14004f7cf
mov r12, qword [r14 + 0x58]
cmp byte [r14 + 0x48], 0
mov r13d, 0
je 0x14004f7e0
mov r13, qword [r14 + 0x40]
cmp byte [r14 + 0x38], 0
jne 0x14004f86e
cmp byte [r14 + 0x18], 0
jne 0x14004f87f
xor r9d, r9d
mov edx, 1
test ebx, ebx
jne 0x14004f88f
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 0x14004f864
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 0x14004f7b1
cmp byte [r14 + 0x68], 0
je 0x14004f859
or edi, 0x40000000
jmp 0x14004f7bb
or edi, 0x10000000
jmp 0x14004f7bb
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004f827
lea rcx, [r14 + 0x20]
call fcn.14003dee0
mov r15, rax
jmp 0x14004f7eb
mov rcx, r14
call fcn.14003dee0
mov r9, rax
jmp 0x14004f7f9
cmp ebx, 4
jne 0x14004f89e
mov edx, 6
jmp 0x14004f806
lea eax, [rbx - 2]
cmp eax, 2
jae 0x14004f8b0
mov edx, 7
jmp 0x14004f806
cmp ebx, 1
jne 0x14004f8bf
mov edx, 4
jmp 0x14004f806
xor edx, edx
jmp 0x14004f806

Function at 0x14004f8d0
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 0x14004f908
cmp byte [r15 + 0x50], 0
jne 0x14004f99f
or edi, 0x20000000
test dil, 8
jne 0x14004f9aa
xor r14d, r14d
cmp byte [r15 + 0x60], 0
mov r12d, 0
je 0x14004f926
mov r12, qword [r15 + 0x58]
cmp byte [r15 + 0x48], 0
mov r13d, 0
je 0x14004f937
mov r13, qword [r15 + 0x40]
cmp byte [r15 + 0x38], 0
jne 0x14004f9d1
cmp byte [r15 + 0x18], 0
jne 0x14004f9e2
xor r9d, r9d
cmp ebx, 4
jne 0x14004f990
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 0x14004f9c7
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 0x14004f9f2
mov edx, 7
jmp 0x14004f95a
or edi, 0x80000000
jmp 0x14004f908
cmp byte [r15 + 0x68], 0
je 0x14004f9bc
or edi, 0x40000000
jmp 0x14004f912
or edi, 0x10000000
jmp 0x14004f912
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004f97b
lea rcx, [r15 + 0x20]
call fcn.14003dee0
mov r14, rax
jmp 0x14004f942
mov rcx, r15
call fcn.14003dee0
mov r9, rax
jmp 0x14004f950
mov edx, 1
test ebx, ebx
je 0x14004f95a
cmp ebx, 1
jne 0x14004fa0e
mov edx, 4
jmp 0x14004f95a
xor edx, edx
jmp 0x14004f95a
Function at 0x140050780
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 [0x140141038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400509c0
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140143c90], rax
jne 0x1400509c3
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, [0x14012b9a0]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x14012b9f0]
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, [0x14012b188]
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 0x140050958
mov rax, qword [r15]
mov rbx, qword [rax]
test rbx, rbx
je 0x140050965
mov byte [rsp + 0x3f], 0
mov r8, qword [rbx]
test r8, r8
je 0x140050951
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 0x1400509cd
mov edx, ecx
and edx, 0x1fc000
je 0x1400509cd
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.140089530
mov ecx, dword [0x14015b720]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14014fde0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x150], rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14009fb90
mov rax, rbx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x1400508b2
mov rcx, rdi
call fcn.14008a300
jmp 0x14005085c
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.14008b620
test rax, rax
je 0x1400509c6
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 0x1400508cc
int3
int3
xor ebx, ebx
jmp 0x1400508f6
movaps xmm0, xmmword [0x14011c230]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
lea rdx, str.first
mov rcx, rsi
call fcn.1400f8aa0
mov rcx, rsi
call fcn.140018990
mov rcx, r14
call fcn.1401001e0
int3
Function at 0x1400537c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140141038]
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 0x140053820
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140053829
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14009fb90
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x140053809
int3
mov rcx, qword [rcx + 8]
jmp 0x1400537c0

Function at 0x140053830
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 [0x140141038]
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 0x1400538d6
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1400538c2
cmp eax, 0xffffffff
je 0x1400538d3
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14009fb90
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 0x140053871
mov eax, dword [rsp + 0x2c]
jmp 0x1400538a2
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x1400538a4

Function at 0x140053dc0
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140053cc0
test rax, rax
jne 0x140053dff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x140053e1b
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14009fb90
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140078f00
test al, al
jne 0x140053e2d
xor esi, esi
jmp 0x140053dff
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.1400f2390
lea rcx, [rsp + 0x40]
lea rdx, [0x14012c922]
mov r8d, 0xc
call fcn.1400d4ed0
mov rcx, rsi
call fcn.1400f2410
jmp 0x140053e29

Function at 0x140054300
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140141038]
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 0x140053820
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140053829
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14009fb90
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x140053809
int3
mov rcx, qword [rcx + 8]
jmp 0x1400537c0
Function at 0x140056e50
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 [0x140141038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140056e20]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x14015c5b0]
lea rdx, [0x140056cc0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140056f48
cmp dword [0x14015c5b8], 0
jne 0x140056f55
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14015c5bc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140056efc
mov ecx, 1
mov edx, 0x28
call fcn.1400757d0
test rax, rax
je 0x140056f55
mov r14, rax
mov ecx, dword [0x14015c5bc]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140056f4d
lea r15, [0x14015c5c0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x14015c5d0]
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.14009fb90
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400b7470
mov rcx, r14
call fcn.140075730
mov rcx, rsi
mov rax, rdi
call qword [0x14016c008]
xor esi, esi
jmp 0x140056f2c

Function at 0x140058c10
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14015c608], 0
jne 0x140058c4d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140058c40
mov dword [rdi], eax
mov dword [0x14015c610], eax
mov qword [0x14015c608], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x14005cb50
Capabilities:
Reference processor manufacturer constants

Disassembly:
push rsi
push rdi
mov r8, rcx
xor edi, edi
xor eax, eax
xor ecx, ecx
xchg rbx, r9
cpuid
xchg rbx, r9
test eax, eax
jle 0x14005cc71
mov r10d, eax
xor ecx, ecx
mov eax, 1
xchg rbx, r9
cpuid
xchg rbx, r9
mov r9d, ecx
mov r11d, edx
mov esi, eax
cmp r10d, 7
jb 0x14005ccad
mov eax, 7
xor ecx, ecx
xchg rbx, rdi
cpuid
xchg rbx, rdi
mov r10d, ecx
and edi, 0x20
shr edi, 5
shr r10b, 4
and r10b, 1
mov dword [r8], esi
mov eax, esi
and eax, 0xf
mov dword [r8 + 8], eax
shr esi, 0xc
and esi, 3
mov dword [r8 + 4], esi
mov eax, r11d
shr eax, 0x17
and al, 1
mov byte [r8 + 0xc], al
mov eax, r11d
shr eax, 0x19
and al, 1
mov byte [r8 + 0xd], al
shr r11d, 0x1a
and r11b, 1
mov byte [r8 + 0xe], r11b
mov eax, r9d
and al, 1
mov byte [r8 + 0xf], al
mov eax, r9d
shr eax, 9
and al, 1
mov byte [r8 + 0x10], al
mov eax, r9d
shr eax, 0x13
and al, 1
mov byte [r8 + 0x11], al
mov eax, r9d
shr eax, 0x14
and al, 1
mov byte [r8 + 0x12], al
mov eax, r9d
shr eax, 0x17
and al, 1
mov byte [r8 + 0x13], al
mov eax, r9d
shr eax, 0x1f
mov byte [r8 + 0x1a], al
mov eax, r9d
not eax
test eax, 0x1c000000
jne 0x14005ccb5
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
mov byte [r8 + 0x14], al
mov ecx, r9d
shr ecx, 0x19
and cl, 1
mov byte [r8 + 0x17], cl
shr r9d, 0xc
and r9b, 1
mov byte [r8 + 0x15], r9b
test al, al
setne al
and al, dil
mov byte [r8 + 0x16], al
mov byte [r8 + 0x18], r10b
xor ecx, ecx
mov eax, 0x80000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp eax, 0x80000006
jle 0x14005cca7
xor ecx, ecx
mov eax, 0x80000007
xchg rbx, r9
cpuid
xchg rbx, r9
shr edx, 8
and dl, 1
mov byte [r8 + 0x19], dl
test dl, dl
je 0x14005ccb9
pop rdi
pop rsi
ret
mov dl, byte [r8 + 0x19]
jmp 0x14005cca0
xor r10d, r10d
jmp 0x14005cbaf
xor eax, eax
jmp 0x14005cc44
cmp byte [r8 + 0x1a], 0
je 0x14005cca4
xor ecx, ecx
mov eax, 0x40000000
xchg rbx, r9
cpuid
xchg rbx, r9
cmp r9d, 0x7263694d
jne 0x14005cca4
cmp ecx, 0x666f736f
jne 0x14005cca4
cmp edx, 0x76482074
jne 0x14005cca4
mov byte [r8 + 0x19], 1
jmp 0x14005cca4
Function at 0x14005cd60
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 [0x14014fd30]
cmp ecx, 0xffffffff
je 0x14005cd82
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14005cd87
call fcn.14005ceb0
mov eax, dword [0x140161940]
mov ecx, dword [0x14014fde0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005ce40
mov rbx, qword [0x140161938]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005ce89
mov rcx, qword [0x140160128]
inc rcx
xor edx, edx
lea rax, [0x140160130]
lea r8d, [rcx + rdx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
mov r10d, r9d
cmp dword [rax + r10*8], 0
jne 0x14005ce96
lea rcx, [rax + r10*8]
mov dword [rcx], 1
mov ecx, r9d
mov qword [rax + rcx*8 + 8], rdi
mov edx, dword [0x140161930]
inc edx
mov dword [0x140161930], edx
mov dword [rax + rcx*8 + 0x14], edx
mov qword [0x140160128], r8
mov qword [rsi], r8
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14005ce86
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140161940]
call fcn.14009e7c0
cmp dword [0x140161940], 0xffffffff
jne 0x14005cdac
mov ecx, 8
call fcn.14009e668
mov rbx, rax
mov rcx, rax
call fcn.14007a990
mov qword [0x140161938], rbx
lea rcx, [0x140161940]
call fcn.14009e858
jmp 0x14005cdac
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14005cdc4
inc rdx
cmp rdx, 0x100
jne 0x14005cdd7
jmp 0x14005ce26

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14009fb30
sub rsp, rax
mov rax, qword [0x140141038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14014fd30]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14005cf64
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14005cfa2
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400a1ce0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14009e6dc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400a1630
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.14009fb90
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14005fb20
test al, al
je 0x14005cfa5
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14005cfa8
mov eax, 0xffffffff
lock cmpxchg dword [0x14014fd30], ecx
je 0x14005cee8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14014fd30]
mov dword [rsp + 0x2c], ecx
jmp 0x14005cee8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.14005fb20
test al, al
je 0x14005cfcd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14005cfcd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14005cf7b
int3