joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002e390
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov r15, rdx
mov r14, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002e3f3
mov ebx, eax
mov r12d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x1400f2f80]
movaps xmmword [rsp + 0x20], xmm0
cmp ebx, 0xa
ja 0x14002e407
lea rsi, [rsp + 0x20]
mov byte [rsi + 0x17], bl
jmp 0x14002e430
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x14002e4c2
lea rdi, [r12 + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
int3
lea r8, [r12 + r12]
mov rcx, rsi
xor edx, edx
call fcn.14007eec0
mov word [rsi + r12*2], 0
cmp byte [rsp + 0x37], 0
jns 0x14002e453
mov rdx, qword [rsp + 0x20]
jmp 0x14002e458
lea rdx, [rsp + 0x20]
mov rcx, r15
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002e4a1
mov edx, eax
movzx eax, byte [rsp + 0x37]
mov rcx, rax
test al, al
jns 0x14002e47b
mov rcx, qword [rsp + 0x28]
cmp rcx, rdx
jbe 0x14002e4a5
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor r8d, r8d
call fcn.14005b360
mov rax, qword [rsi + 0x10]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
jmp 0x14002e4c2
mov al, byte [rsp + 0x37]
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
test al, al
jns 0x14002e4c2
mov rcx, qword [rsp + 0x20]
call fcn.14007b788
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007c600
mov rax, r14
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x14002ea20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov rdi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x14002ea4c
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002ea7f
test al, 0x10
jne 0x14002eb79
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
int3
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx r9d, byte [rdi + 0x17]
mov rax, rdi
test r9b, r9b
jns 0x14002eaa4
mov rax, qword [rdi]
mov r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x14002eb07
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp cx, 0x5c
je 0x14002eac2
cmp cx, 0x2f
jne 0x14002eaa7
cmp r9, 0xfffffffffffffffe
je 0x14002eb07
sar r9, 1
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140026930
movups xmm0, xmmword [rbx]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx], xmm0
mov rax, qword [rbx + 0x10]
mov qword [rcx + 0x10], rax
call fcn.14002ea20
test al, al
je 0x14002eb97
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x14002ec3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
jne 0x14002ec28
movabs rbp, 0x7fffffffffffffef
mov rcx, rsi
call fcn.1400952c0
cmp rax, rbp
ja 0x14002ec79
mov rbx, rax
cmp rax, 0xb
jae 0x14002eba8
lea r15, [rsp + 0x28]
mov byte [r15 + 0x17], bl
cmp rbx, 3
jne 0x14002ec6b
movzx eax, word [rsi + 4]
mov word [rsp + 0x2c], ax
mov eax, dword [rsi]
mov dword [rsp + 0x28], eax
jmp 0x14002ebe3
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
int3
lea rcx, str.Failed_to_create_one_of_the_parent_directories
int3
lea r12, [rbx + 8]
and r12, 0xfffffffffffffff8
lea rcx, [r12 + r12]
int3
mov r8, rbx
add r8, rbx
mov rcx, r15
mov rdx, rsi
call fcn.14007eab0
mov word [r15 + rbx*2], 0
cmp byte [rsp + 0x3f], 0
jns 0x14002ebf8
mov rcx, qword [rsp + 0x28]
jmp 0x14002ebfd
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
cmp byte [rsp + 0x3f], 0
jns 0x14002ec24
mov rcx, qword [rsp + 0x28]
call fcn.14007b788
test bl, bl
jne 0x14002ec3c
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, r14d
int3
cmp byte [rsp + 0x57], 0
jns 0x14002ec4d
mov rcx, qword [rsp + 0x40]
call fcn.14007b788
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007c600
mov eax, edi
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
test rbx, rbx
je 0x14002ebe3
jmp 0x14002ebd2
lea rcx, [rsp + 0x28]
int3
Function at 0x14002fbc0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14007eec0
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14002fc4c
mov ebx, eax
sub rbx, 1
jb 0x14002fc4c
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14002fc1c
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002fc36
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
int3
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x103
jae 0x14002fca6
mov ebx, eax
sub rbx, 1
jb 0x14002fca6
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14002fc76
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002fc90
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
int3
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14002fd00
mov ebx, eax
sub rbx, 1
jb 0x14002fd00
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14002fcd0
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14002fcea
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
int3
xor edi, edi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14007c600
mov eax, edi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003f950
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 r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x14003f984
mov rax, qword [r12 + 8]
test rax, rax
je 0x14003fa7c
mov eax, ebx
not eax
test eax, 0x300
je 0x14003fa7c
cmp edi, 2
lea rax, [0x140116990]
lea rcx, [0x140116b90]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14003fa7c
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x14003fa7c
cmp byte [0x140116980], 0
setne al
bt ebx, 8
jb 0x14003fa7c
shr ebx, 9
and ebx, 1
or bl, al
je 0x14003fa7c
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx r13d, byte [r12 + 0x17]
test r13b, r13b
jns 0x14003fad7
mov rbx, qword [r12]
mov r13, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rdi, qword [rsi + 8]
mov rbp, r13
sub rbp, rdi
jb 0x14003fa69
mov rdx, qword [rsi]
mov rcx, rbx
mov r8, rdi
int3
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x14003fa4b
cmp dword [rsp + 0x2c], 0
jne 0x14003fadf
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14007c600
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, r12
jmp 0x14003fa2c
cmp byte [r12 + 0x17], 0
js 0x14003fb47
mov rax, r12
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.140026a00
jmp 0x14003fa7c
mov rax, qword [r12]
jmp 0x14003faea
Function at 0x140041a20
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140041a47
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140041a81
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140041aa0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14007c600
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140041b60
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.14007c600
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400621e0
test al, al
je 0x140041b57
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x25d
mov r9d, 2
int3
xor esi, esi
jmp 0x140041a84

Function at 0x140041b60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x140041b87
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140041bb9
mov dil, 1
test al, 0x10
je 0x140041c75
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14007c600
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400621e0
test al, al
je 0x140041d38
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x248
mov r9d, 2
int3
mov ecx, 2
call fcn.1400621e0
test al, al
je 0x140041d38
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x24c
mov r9d, 2
call fcn.140035120
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
int3
xor edi, edi
jmp 0x140041b9d
Function at 0x1400443c0
Capabilities:
Read pipe
Write pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x190
mov r14, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov r15, qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400443fc
mov rcx, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call r15
cmp rax, 0xffffffffffffffff
je 0x1400444c7
mov rsi, rax
lea rdx, [rsp + 0x44]
mov dword [rdx], 2
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x140044549
lea rax, [rsp + 0x40]
mov dword [rax], 0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0xc
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x24
mov r9, r14
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x140044598
mov dil, 1
cmp dword [rsp + 0x40], 0xc
jne 0x1400445f5
mov rcx, rsi
call fcn.140044cc0
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.14007c600
mov eax, edi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140044675
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400444e4
mov rcx, qword [rdi]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x1400443f0
mov ecx, 2
call fcn.1400621e0
test al, al
je 0x1400446cb
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x6b
mov r9d, 2
int3
mov ecx, 2
call fcn.1400621e0
test al, al
je 0x1400445ee
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, 0x74
mov r9d, 2
int3
mov ecx, 2
call fcn.1400621e0
test al, al
je 0x1400445ee
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, 0x82
mov r9d, 2
int3
xor edi, edi
jmp 0x14004449e
mov ecx, 2
call fcn.1400621e0
test al, al
je 0x1400445ee
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rdi, [rsp + 0x48]
mov rcx, rdi
mov r8d, 0x86
mov r9d, 2
call fcn.140035120
lea rcx, [rsp + 0x58]
lea rdx, str.TransactNamedPipe:_expected
mov r8d, 0x1c
int3
mov ecx, 2
call fcn.1400621e0
test al, al
je 0x1400446cb
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x66
mov r9d, 2
int3
xor edi, edi
jmp 0x1400444a6
Function at 0x140044d50
Capabilities:
Check os version

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x170
mov rsi, rcx
mov rax, qword [0x14010e038]
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 0x140044e2c
and eax, 0xfeff
cmp eax, 6
je 0x140044e2c
mov eax, dword [0x140116fc8]
mov ecx, dword [0x1401116a4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140044df3
lea rcx, [0x140116fc8]
int3
mov rcx, rsi
xor edx, edx
mov r8d, 0x10000000
call qword [0x140116fc0]
mov esi, eax
test eax, eax
je 0x140044e39
test esi, esi
setne bl
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.14007c600
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 0x140044e0f
mov ecx, 2
call fcn.1400621e0
test al, al
je 0x140044e0a
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
int3

Function at 0x140046130
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140111508]
cmp ecx, 0xffffffff
je 0x140046155
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 0x140046150

Function at 0x140046160
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 [0x140111508]
cmp ecx, 0xffffffff
je 0x14004623e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14004623e
mov eax, dword [0x140118848]
mov ecx, dword [0x1401116a4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140046248
mov rbx, qword [0x140118840]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14004628e
mov rax, qword [0x140117038]
inc rax
xor ecx, ecx
lea rdx, [0x140117040]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x14004629b
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x140117038], 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 0x1400462b0
cmp eax, 0x100
jge 0x1400462b3
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400462c0
jmp 0x14004618e
lea rcx, [0x140118848]
int3
mov rcx, rbx
int3
inc rcx
cmp rcx, 0x100
jne 0x1400461de
jmp 0x140046212
int3
int3
Function at 0x140047650
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140118860]
cmp rdi, 1
jbe 0x140047679
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14006d8f0
lea rcx, [0x140118860]
call fcn.140046050
test al, al
je 0x1400476bf
mov qword [0x140118868], 0
lea rbx, [0x140118860]
lea rdi, [0x140118868]
mov rcx, rdi
xor edx, edx
call fcn.1400464d0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400460f0
jmp 0x140047667
mov rdi, qword [0x140118860]
jmp 0x140047667

Function at 0x14004c260
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 [0x140118b20]
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 0x14004c372
cmp rsi, 1
je 0x14004c36e
mov eax, dword [rdi + 0x1518]
test eax, eax
jne 0x14004c36e
mov eax, 1
lock xadd dword [rdi + 0x1518], eax
cmp eax, 0x7fffffff
je 0x14004c37f
mov rcx, rdi
int3
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x14004c355
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004c293
int3

Function at 0x14004c7c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, dword [0x140118b20]
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 0x14004c7f7
cmp rsi, 2
jb 0x14004c801
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400721e0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14004c7e3
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14004df50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14010e038]
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 0x14004dfb8
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14004dfc1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007c600
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14004dfa1
int3
mov rcx, qword [rcx + 8]
jmp 0x14004df50
Function at 0x14004dfd0
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 [0x14010e038]
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 0x14004e078
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14004e067
cmp eax, 0xffffffff
je 0x14004e08c
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007c600
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 0x14004e016
mov eax, dword [rsp + 0x2c]
jmp 0x14004e047
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14004e049
int3

Function at 0x14004e540
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x14010e038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.14004e460
test rax, rax
jne 0x14004e57f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14004e59b
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14007c600
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.1400621e0
test al, al
je 0x14004e5f1
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
int3
xor esi, esi
jmp 0x14004e57f

Function at 0x14004ea80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14010e038]
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 0x14004dfb8
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14004dfc1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14007c600
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14004dfa1
int3
mov rcx, qword [rcx + 8]
jmp 0x14004df50

Function at 0x14004f9a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140118c58]
cmp rdi, 1
jbe 0x14004f9c9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14006d8f0
lea rcx, [0x140118c58]
call fcn.140046050
test al, al
je 0x14004fa0f
mov qword [0x140118c60], 0
lea rbx, [0x140118c58]
lea rdi, [0x140118c60]
mov rcx, rdi
xor edx, edx
call fcn.1400464d0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400460f0
jmp 0x14004f9b7
mov rdi, qword [0x140118c58]
jmp 0x14004f9b7
Function at 0x140052a20
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14011a1f0], 0
jne 0x140052a5d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140052a50
mov dword [rdi], eax
mov dword [0x14011a1f8], eax
mov qword [0x14011a1f0], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3

Function at 0x14006c7a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov edi, dword [0x140118b20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
test esi, esi
jne 0x14006c7cd
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14006c7c3

Function at 0x14006d8b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140111508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14006d8e4
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14006d8e4
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14006d8de

Function at 0x14006d8f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140111508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14006d92e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14006d927
call fcn.1400462c0
jmp 0x14006d90e

Function at 0x14006dde0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14006de0c
xor ecx, ecx
lea r9, [0x1400fbd20]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
add rcx, 1
cmp r8, rcx
jne 0x14006ddf0
ret