joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140094620
Capabilities:
Create service

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
mov r15, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rax, qword [rdx + 0x28]
xor esi, esi
cmp rax, qword [rdx + 0x30]
cmovne rsi, rax
cmp byte [rdx + 0x27], 0
jns 0x140094662
mov r14, qword [rdx + 0x10]
jmp 0x140094666
lea r14, [rdx + 0x10]
mov r13d, dword [rdx + 0xc]
mov r12d, dword [rdx + 4]
mov ebp, dword [rdx + 8]
lea rbx, [rsp + 0x68]
mov rcx, r15
mov rdx, rbx
call fcn.140093080
cmp byte [rbx + 0x17], 0
jns 0x14009468c
mov rbx, qword [rsp + 0x68]
lea r8, [r15 + 0x20]
cmp byte [r15 + 0x37], 0
jns 0x14009469a
mov r8, qword [r8]
lea rdx, str._ls___ls_
lea rdi, [rsp + 0x1a8]
mov rcx, rdi
mov r9, rbx
call fcn.14004e470
cmp byte [rsp + 0x7f], 0
jns 0x1400946c5
mov rcx, qword [rsp + 0x68]
call fcn.1401109f8
cmp byte [rsp + 0x1bf], 0
jns 0x1400946d7
mov rdi, qword [rsp + 0x1a8]
lea rbx, [rsp + 0x68]
mov rcx, r15
mov rdx, rbx
call fcn.140093080
cmp byte [rbx + 0x17], 0
jns 0x1400946f2
mov rbx, qword [rsp + 0x68]
mov rcx, qword [r15 + 0xc8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x50], rsi
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r12d
mov rdx, rbx
mov r8, rdi
mov r9d, 0x10003
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x14009474d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400e8390
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x7f], 0
jns 0x14009475e
mov rcx, qword [rsp + 0x68]
call fcn.1401109f8
cmp byte [rsp + 0x1bf], 0
jns 0x140094775
mov rcx, qword [rsp + 0x1a8]
call fcn.1401109f8
test rdi, rdi
je 0x1400947c9
call fcn.1400e8390
cmp qword [r15 + 0xd0], rdi
je 0x140094868
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp qword [r15 + 0xd0], 0
je 0x1400947b0
call fcn.1400e8390
mov rcx, qword [r15 + 0xd0]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [r15 + 0xd0], rdi
call fcn.1400e8390
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140094868
mov ecx, 1
call fcn.1400e83a0
test al, al
je 0x140094868
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_util_install_service_work_item_impl.cc
lea rcx, [rsp + 0x68]
mov r8d, 0x247
mov r9d, 1
call fcn.14015f200
lea rcx, [rsp + 0x78]
lea rdx, str.Failed_to_create_service
mov r8d, 0x19
call fcn.1400dd7e0
mov r14, rax
lea rbx, [rsp + 0x1a8]
mov rcx, r15
mov rdx, rbx
call fcn.140093080
cmp byte [rbx + 0x17], 0
jns 0x14009483c
mov rbx, qword [rsp + 0x1a8]
mov rcx, r14
mov rdx, rbx
call fcn.14015f330
cmp byte [rsp + 0x1bf], 0
jns 0x14009485e
mov rcx, qword [rsp + 0x1a8]
call fcn.1401109f8
lea rcx, [rsp + 0x68]
call fcn.14015f280
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140111870
mov eax, ebx
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400948a0
Capabilities:
Modify service

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1b8
mov rsi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x28]
xor ebx, ebx
cmp rax, qword [rdx + 0x30]
cmovne rbx, rax
cmp byte [rdx + 0x27], 0
jns 0x1400948db
mov rdi, qword [rdx + 0x10]
jmp 0x1400948df
lea rdi, [rdx + 0x10]
mov r9d, dword [rdx + 0xc]
mov eax, dword [rdx + 4]
mov r8d, dword [rdx + 8]
mov rcx, qword [rsi + 0xd0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], rbx
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x50], 0
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov edi, eax
test eax, eax
jne 0x1400949b9
mov ecx, 1
call fcn.1400e83a0
test al, al
je 0x1400949b9
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_util_install_service_work_item_impl.cc
lea rcx, [rsp + 0x70]
mov r8d, 0x25a
mov r9d, 1
call fcn.14015f200
lea rcx, [rsp + 0x80]
lea rdx, str.Failed_to_change_service_config
mov r8d, 0x20
call fcn.1400dd7e0
mov r14, rax
lea rbx, [rsp + 0x58]
mov rcx, rsi
mov rdx, rbx
call fcn.140093080
cmp byte [rbx + 0x17], 0
jns 0x140094993
mov rbx, qword [rsp + 0x58]
mov rcx, r14
mov rdx, rbx
call fcn.14015f330
cmp byte [rsp + 0x6f], 0
jns 0x1400949af
mov rcx, qword [rsp + 0x58]
call fcn.1401109f8
lea rcx, [rsp + 0x70]
call fcn.14015f280
test edi, edi
setne bl
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140111870
mov eax, ebx
add rsp, 0x1b8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400954a0
Capabilities:
Check os version
Create pipe

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x58], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1401e90c0]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x14009551a
call qword [sym.imp.KERNEL32.dll_GetVersion]
and eax, 0xfe
mov edi, 0x80003
cmp eax, 6
jb 0x14009551f
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.140095580
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x140095521
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14009552a
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 + 0x58]
xor rcx, rsp
call fcn.140111870
mov rax, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret

Function at 0x140097bc0
Capabilities:
Check os version

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov rsi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x168], rax
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, 0xfe
cmp ecx, 6
jb 0x140097c9c
and eax, 0xfeff
cmp eax, 6
je 0x140097c9c
mov eax, dword [0x140226608]
mov ecx, dword [0x14021ef3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140097c63
lea rcx, [0x140226608]
call fcn.140110b10
cmp dword [0x140226608], 0xffffffff
jne 0x140097c63
lea rcx, [0x1401ef616]
lea rdx, str.::InitializeCriticalSectionEx
mov r8b, 1
call fcn.140098380
mov qword [0x140226600], rax
lea rcx, [0x140226608]
call fcn.140110ba8
mov rcx, rsi
xor edx, edx
mov r8d, 0x10000000
call qword [0x140226600]
mov esi, eax
test eax, eax
je 0x140097ca9
test esi, esi
setne bl
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.140111870
mov eax, ebx
add rsp, 0x170
pop rbx
pop rdi
pop rsi
ret
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov bl, 1
jmp 0x140097c7f
mov ecx, 2
call fcn.1400e83a0
test al, al
je 0x140097c7a
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_critical_section_with_debug_info.cc
lea rdi, [rsp + 0x28]
mov rcx, rdi
mov r8d, 0x21
mov r9d, 2
call fcn.14015f200
lea rcx, [rsp + 0x38]
lea rdx, [0x1401fecac]
mov r8d, 0x1b
call fcn.1400dd7e0
mov rcx, rdi
call fcn.14015f280
jmp 0x140097c7a
Function at 0x140098480
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
mov eax, 0xffffffff
cmovb eax, r8d
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400984e8
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400984f1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140111870
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400984d1
int3
mov rcx, qword [rcx + 8]
jmp 0x140098480

Function at 0x140098500
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 [0x14021b038]
xor rax, rsp
mov ecx, 0xffffffff
cmp r8, rcx
mov ebx, 0xffffffff
cmovb ebx, r8d
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 0x1400985a8
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140098597
cmp eax, 0xffffffff
je 0x1400985bc
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140111870
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 0x140098546
mov eax, dword [rsp + 0x2c]
jmp 0x140098577
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140098579
int3

Function at 0x140098a70
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140098990
test rax, rax
jne 0x140098aaf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x140098acb
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140111870
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400e83a0
test al, al
je 0x140098b21
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.14015f200
lea rcx, [rsp + 0x40]
lea rdx, [0x1401ff0c2]
mov r8d, ntohl
call fcn.1400dd7e0
mov rcx, rsi
call fcn.14015f280
xor esi, esi
jmp 0x140098aaf
Function at 0x140098fb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
mov eax, 0xffffffff
cmovb eax, r8d
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400984e8
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400984f1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140111870
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400984d1
int3
mov rcx, qword [rcx + 8]
jmp 0x140098480

Function at 0x14009c320
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140226648]
cmp rdi, 1
jbe 0x14009c349
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140100810
lea rcx, [0x140226648]
call fcn.14008ba60
test al, al
je 0x14009c38f
mov qword [0x140226650], 0
lea rbx, [0x140226648]
lea rdi, [0x140226650]
mov rcx, rdi
xor edx, edx
call fcn.14009cb70
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14008bb00
jmp 0x14009c337
mov rdi, qword [0x140226648]
jmp 0x14009c337

Function at 0x14009c7d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x14021eb08]
cmp ecx, 0xffffffff
je 0x14009c7f5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x14009c7f0

Function at 0x14009c800
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x14021eb08]
cmp ecx, 0xffffffff
je 0x14009c8de
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14009c8de
mov eax, dword [0x140227ea8]
mov ecx, dword [0x14021ef3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009c8e8
mov rbx, qword [0x140227ea0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14009c92e
mov rax, qword [0x140226698]
inc rax
xor ecx, ecx
lea rdx, [0x1402266a0]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x14009c93b
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x140226698], rdi
mov dword [r15], edi
mov eax, dword [rax + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x14009c950
cmp eax, 0x100
jge 0x14009c953
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14009c960
jmp 0x14009c82e
lea rcx, [0x140227ea8]
call fcn.140110b10
cmp dword [0x140227ea8], 0xffffffff
jne 0x14009c853
mov ecx, 8
call fcn.1401109bc
mov rbx, rax
mov rcx, rax
call fcn.1400f3b60
mov qword [0x140227ea0], rbx
lea rcx, [0x140227ea8]
call fcn.140110ba8
jmp 0x14009c853
mov rcx, rbx
call fcn.1400f3b70
jmp 0x14009c86b
inc rcx
cmp rcx, 0x100
jne 0x14009c87e
jmp 0x14009c8b2
int3
int3
Function at 0x14009c960
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140111800
sub rsp, rax
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14021eb08]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14009ca14
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14009ca52
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140114200
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140110a2c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140113df0
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.140111870
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1400b6a50
test al, al
je 0x14009ca55
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14009ca58
mov eax, 0xffffffff
lock cmpxchg dword [0x14021eb08], ecx
je 0x14009c998
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14021eb08]
mov dword [rsp + 0x2c], ecx
jmp 0x14009c998
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.1400b6a50
test al, al
je 0x14009ca7d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14009ca7d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14009ca2b
int3

Function at 0x1400a2620
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r14, r8
mov ebx, edx
mov rdi, rcx
mov esi, dword [0x140229568]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test ebp, ebp
jne 0x1400a2732
cmp rsi, 1
je 0x1400a272e
mov eax, dword [rdi + 0x1518]
test eax, eax
jne 0x1400a272e
mov eax, 1
lock xadd dword [rdi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x1400a273f
mov rcx, rdi
call fcn.1400a2a40
lock dec dword [rdi + 0x1518]
mov rdi, rax
inc qword [rax + 0x5a0]
cmp word [0x14021eb0c], bx
jb 0x1400a2720
movzx edx, bx
mov rsi, rdx
shl rsi, 4
mov rbx, rdi
add rbx, rsi
mov rax, qword [rdi + rsi]
test rax, rax
jne 0x1400a2742
inc qword [rdi + 0x5b8]
inc qword [rdi + 0x5b0]
mov rcx, rdi
call fcn.140105740
mov rax, qword [rbx]
test rax, rax
je 0x1400a272e
mov rcx, qword [rax]
test rcx, rcx
je 0x1400a274b
mov rdx, rcx
not rdx
cmp qword [rax + 8], rdx
jne 0x1400a274f
bswap rcx
prefetcht0 byte [rcx]
dec byte [rdi + rsi + 8]
mov qword [rbx], rcx
movzx ecx, word [rdi + rsi + 0xa]
mov qword [r14], rcx
movzx ecx, word [rdi + rsi + 0xa]
sub qword [rdi + 0x590], rcx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
inc qword [rdi + 0x5c0]
inc qword [rdi + 0x5b0]
xor eax, eax
jmp 0x1400a2715
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400a2653
int3
inc qword [rdi + 0x5a8]
jmp 0x1400a26e0
xor ecx, ecx
jmp 0x1400a26fa
call fcn.140141530
int3
Function at 0x1400a2a40
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x1400a2b6f
mov rsi, rcx
mov byte [rsp + 0x3f], 0xaa
lea rbx, [rcx + 0x858]
lea r14, [rcx + 8]
mov edi, 1
xor ebp, ebp
mov r15, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call r15
test al, al
jne 0x1400a2ab9
jmp 0x1400a2b60
pause
dec eax
jne 0x1400a2a94
add ebp, edi
add edi, edi
cmp edi, 0x40
mov eax, 0x40
cmovge edi, eax
cmp ebp, 0x3e8
jl 0x1400a2a85
mov rcx, r14
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov rax, qword [rbx]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400a2b1a
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
jne 0x1400a2b49
xor ecx, ecx
mov qword [rax], rcx
inc word [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.140105590
mov ecx, dword [0x140229568]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140111870
mov rax, rdi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov r9d, 0x610
mov rcx, rbx
mov rdx, rsi
mov r8d, 2
call fcn.1400dccb0
mov rdi, rax
jmp 0x1400a2ada
mov rdx, rcx
not rdx
cmp qword [rdi + 8], rdx
jne 0x1400a2b72
bswap rcx
prefetcht0 byte [rcx]
jmp 0x1400a2ad3
mov eax, edi
test edi, edi
jg 0x1400a2a94
jmp 0x1400a2a9c
int3
call fcn.140141530
int3

Function at 0x1400a2b80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, dword [0x140229568]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test edi, edi
jne 0x1400a2bb7
cmp rsi, 2
jb 0x1400a2bc1
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140105bc0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400a2ba3
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x1400b4740
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov eax, dword [0x140229fa8]
mov ecx, dword [0x14021ef3c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400b47a3
cmp rdi, rsi
je 0x1400b4799
mov eax, 0xffffffff
lea rcx, [0x140229ba8]
movzx edx, byte [rdi]
movzx ebx, al
xor ebx, edx
shr eax, 8
xor eax, dword [rcx + rbx*4]
inc rdi
cmp rsi, rdi
jne 0x1400b477f
not eax
jmp 0x1400b479b
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140229fa8]
call fcn.140110b10
cmp dword [0x140229fa8], 0xffffffff
jne 0x1400b476e
lea rbx, [0x140229ba8]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.140114200
xor eax, eax
mov r8d, 0xedb88320
mov edx, eax
shr edx, 1
mov ecx, eax
and ecx, 1
neg ecx
and ecx, r8d
xor ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, r8d
xor edx, ecx
shr edx, 1
and ecx, 1
neg ecx
and ecx, r8d
xor ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, r8d
xor edx, ecx
shr edx, 1
and ecx, 1
neg ecx
and ecx, r8d
xor ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, r8d
xor edx, ecx
shr edx, 1
and ecx, 1
neg ecx
and ecx, r8d
xor ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, r8d
xor edx, ecx
mov dword [rbx], edx
inc rax
add rbx, 4
cmp rax, 0x100
jne 0x1400b47d7
lea rcx, [0x140229fa8]
call fcn.140110ba8
jmp 0x1400b476e

Function at 0x1400b6a50
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 0x1400b6a65
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x1400b6fd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140229ff0]
cmp rdi, 1
jbe 0x1400b6ff9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140100810
lea rcx, [0x140229ff0]
call fcn.14008ba60
test al, al
je 0x1400b703f
mov qword [0x140229ff8], 0
lea rbx, [0x140229ff0]
lea rdi, [0x140229ff8]
mov rcx, rdi
xor edx, edx
call fcn.14009cb70
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14008bb00
jmp 0x1400b6fe7
mov rdi, qword [0x140229ff0]
jmp 0x1400b6fe7

Function at 0x1400ba1d0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14022a068], 0
jne 0x1400ba20d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400ba200
mov dword [rdi], eax
mov dword [0x14022a070], eax
mov qword [0x14022a068], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x1400bd9d0
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x14021b038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400bda70]
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 0x1400bda29
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140111870
nop
add rsp, 0x40
pop rsi
ret
lea rdx, str..._.._third_party_crashpad_crashpad_util_thread_thread_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x1b
call fcn.14017dc60
mov rcx, rsi
call fcn.14017db90
lea rdx, [0x1401f5f36]
mov r8d, ntohl
mov rcx, rax
call fcn.1400dd7e0
mov rcx, rsi
call fcn.14017dba0
jmp 0x1400bda15
Function at 0x1400ddb70
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400ddbb9
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
add rax, 1
cmp rax, 2
jae 0x1400ddbc2
lea rax, [rsi + 1]
cmp rax, 2
jb 0x1400ddba9
mov qword [rdi], rsi
call fcn.1400e8390
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.1400e8390
mov rcx, qword [rdi]
call fcn.1400f0600
mov qword [rdi], 0
jmp 0x1400ddb97