joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003ef10
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x14003ef40
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x14003ef4e
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140039ad0
lea rax, [rdx - 1]
test rdx, rax
jne 0x14003ef64
mov rdi, rdx
jmp 0x14003ef25
jae 0x14003f04a
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x14003ef71
cvtsi2ss xmm0, rax
jmp 0x14003ef86
mov rcx, rdx
call fcn.14005ab50
mov rdi, rax
jmp 0x14003ef25
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.1400b3560
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x1400fdfc4]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rbx, 3
jb 0x14003f032
mov rcx, rbx
shr rcx, 1
movabs r8, 0x5555555555555555
and r8, rcx
mov rdx, rbx
sub rdx, r8
movabs r8, 0x3333333333333333
mov rcx, rdx
shr rcx, 2
and rdx, r8
and rcx, r8
add rcx, rdx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rdx
movabs rdx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x14003f032
cmp rax, 2
jb 0x14003f03a
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x14003f03a
mov rcx, rax
call fcn.14005ab50
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x14003ef2e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x140042060
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 [0x140117028]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x140042094
mov rax, qword [r12 + 8]
test rax, rax
je 0x14004218c
mov eax, ebx
not eax
test eax, 0x300
je 0x14004218c
cmp edi, 2
lea rax, [0x14012c7e0]
lea rcx, [0x14012c9e0]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14004218c
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 0x14004218c
cmp byte [0x14012c7d0], 0
setne al
bt ebx, 8
jb 0x14004218c
shr ebx, 9
and ebx, 1
or bl, al
je 0x14004218c
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx r13d, byte [r12 + 0x17]
test r13b, r13b
jns 0x1400421e5
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 0x140042179
mov rdx, qword [rsi]
mov rcx, rbx
mov r8, rdi
call fcn.14009b8a4
test eax, eax
je 0x1400421ab
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x14004215b
cmp dword [rsp + 0x2c], 0
jne 0x1400421ed
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140081fb0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movzx ecx, word [rbx + rdi*2]
cmp ecx, 0x5c
je 0x1400421b8
test ecx, ecx
jne 0x140042179
lea rax, [rbx + rdi*2]
mov edx, dword [rsi + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x140042219
cmp dword [rsp + 0x2c], 2
jne 0x14004222a
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14004222a
mov rbx, r12
jmp 0x14004213c
cmp byte [r12 + 0x17], 0
mov rax, r12
jns 0x1400421fc
mov rax, qword [r12]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.140027670
jmp 0x14004218c
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rbx
cmp cx, 0x5c
jne 0x140042243
lea rbx, [rax + 2]
dec rbp
cmp word [rax + 2], 0x5c
mov rax, rbx
je 0x140042230
jmp 0x140042246
mov rbx, rax
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
xor r15d, r15d
mov r13, rbp
jmp 0x140042180
Function at 0x140044030
Capabilities:
Check if file exists
Create directory

Disassembly:
push rsi
push rdi
sub rsp, 0x198
mov rsi, rcx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x190], rax
cmp byte [rcx + 0x17], 0
jns 0x140044057
mov rcx, qword [rsi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140044091
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400440b0
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140081fb0
mov rcx, rsi
add rsp, 0x198
pop rdi
pop rsi
jmp fcn.140044180
mov sil, 1
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140081fb0
mov eax, esi
add rsp, 0x198
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140067d40
test al, al
jne 0x1400440c2
xor esi, esi
jmp 0x140044094
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x50]
mov r8d, 0x266
mov r9d, 2
call fcn.1400d1950
lea rcx, [rsp + 0x60]
lea rdx, str.CreateDirectory
mov r8d, 0x10
call fcn.1400b44d0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x38]
mov rcx, rsi
call fcn.1400610f0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140044148
mov r8, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
jmp 0x14004414c
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1400b44d0
cmp byte [rsp + 0x4f], 0
jns 0x140044168
mov rcx, qword [rsp + 0x38]
call fcn.140080ca8
lea rcx, [rsp + 0x50]
call fcn.1400d19d0
jmp 0x1400440be
Function at 0x140044180
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x1a8
mov rsi, rcx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
cmp byte [rcx + 0x17], 0
jns 0x1400441a7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400441d9
mov dil, 1
test al, 0x10
je 0x140044278
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.140081fb0
mov eax, edi
add rsp, 0x1a8
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140067d40
test al, al
je 0x140044286
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x251
mov r9d, 2
call fcn.1400d1950
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400b44d0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x38]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.1400610f0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x14004430a
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
jmp 0x14004430e
mov ecx, 2
call fcn.140067d40
test al, al
jne 0x14004428d
xor edi, edi
jmp 0x1400441bd
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0x60]
mov r8d, 0x255
mov r9d, 2
call fcn.140038a50
lea rcx, [rsp + 0x70]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.1400b44d0
mov rdi, rax
movzx eax, byte [rsi + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsi]
cmovns rax, rsi
lea rdx, [rsp + 0x28]
mov qword [rdx], rax
cmovs rcx, qword [rsi + 8]
mov qword [rdx + 8], rcx
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.1400610f0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x140044339
mov r8, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
jmp 0x14004433d
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1400b44d0
cmp byte [rsp + 0x5f], 0
jns 0x14004432a
mov rcx, qword [rsp + 0x48]
call fcn.140080ca8
lea rcx, [rsp + 0x60]
call fcn.1400d19d0
jmp 0x140044286
and r8d, 0x7f
mov rcx, rdi
mov rdx, rsi
call fcn.1400b44d0
lea rdx, str.:_not_a_directory
mov r8d, 0x11
mov rcx, rax
call fcn.1400b44d0
cmp byte [rsp + 0x5f], 0
jns 0x14004436e
mov rcx, qword [rsp + 0x48]
call fcn.140080ca8
lea rcx, [rsp + 0x60]
call fcn.140038f40
jmp 0x140044286
Function at 0x140046490
Capabilities:
Set environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rax, qword [0x140117028]
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.140060d00
cmp byte [rsi + 0x17], 0
jns 0x1400464f0
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.140060d00
cmp byte [rdi + 0x17], 0
jns 0x140046515
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 0x140046534
mov rcx, qword [rsp + 0x48]
call fcn.140080ca8
cmp byte [rsp + 0x87], 0
jns 0x140046548
mov rcx, qword [rsp + 0x70]
call fcn.140080ca8
test esi, esi
setne bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140081fb0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400465f0
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x78
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x140117028]
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.140060d00
cmp byte [rdi + 0x17], 0
jns 0x140046631
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 0x140046652
mov rcx, qword [rsp + 0x58]
call fcn.140080ca8
test r14, r14
je 0x1400466f9
test edi, edi
je 0x1400466f9
mov ecx, edi
add rcx, rcx
call fcn.140080cdc
mov rbx, rax
movups xmm0, xmmword [rsi]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rsi, [rsp + 0x58]
mov rcx, rsi
call fcn.140060d00
cmp byte [rsi + 0x17], 0
jns 0x140046693
mov rsi, qword [rsp + 0x58]
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [rsp + 0x6f], 0
jns 0x1400466b3
mov rcx, qword [rsp + 0x58]
call fcn.140080ca8
mov qword [rsp + 0x20], rbx
test rbx, rbx
je 0x140046717
mov rcx, rbx
call fcn.1400a0400
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rcx, [rsp + 0x58]
call fcn.1400610f0
cmp byte [r14 + 0x17], 0
js 0x14004671a
mov rax, qword [rsp + 0x68]
mov qword [r14 + 0x10], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [r14], xmm0
mov rcx, rbx
call fcn.140080ce4
test edi, edi
setne bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140081fb0
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
mov rcx, qword [r14]
call fcn.140080ca8
jmp 0x1400466df
Function at 0x140046730
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14012ce48]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004676b
movzx eax, word [0x14012ce18]
cmp eax, 9
jne 0x1400467b3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14012ce48]
call fcn.140080dc0
cmp dword [0x14012ce48], 0xffffffff
jne 0x140046755
xorps xmm0, xmm0
movups xmmword [0x14012ce38], xmm0
movups xmmword [0x14012ce28], xmm0
movups xmmword [0x14012ce18], xmm0
lea rcx, [0x14012ce18]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14012ce48]
call fcn.140080e58
jmp 0x140046755
test eax, eax
je 0x140046766
cmp eax, 6
jne 0x1400467c3
mov eax, 2
jmp 0x140046766
cmp eax, 0xc
jne 0x1400467cf
mov eax, 3
jmp 0x140046766
mov eax, 4
jmp 0x140046766
Function at 0x1400472f0
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1400fdb10]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x1400473db
lea r14, [rsp + 0x6c]
xor ebx, ebx
mov r8d, 0x110
mov rcx, r14
xor edx, edx
call fcn.1400840e0
mov dword [r14 - 0xc], 0x11c
mov rdi, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 1
mov r8b, 3
call rdi
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rdi
mov qword [r14 - 8], 6
mov word [r14 + 0x108], 0
lea rcx, [rsp + 0x60]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x1400473e2
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.140047440
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x1400473e2
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x1400473eb
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.140081fb0
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140048f20
Capabilities:
Query or enumerate registry value

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

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140081f50
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.1400840e0
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], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140049063
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140049067
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.140027570
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140081fb0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140049044
cmp eax, 2
jne 0x1400490af
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.1400840e0
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x1400490b6
lea rdx, [rsp + 0x40]
jmp 0x14004903a
mov edi, 0x3f4
jmp 0x140049044
mov edi, 0xea
jmp 0x140049044

Function at 0x140049220
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1401269c0]
cmp ecx, 0xffffffff
je 0x140049245
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 0x140049240
Function at 0x140049250
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 [0x1401269c0]
cmp ecx, 0xffffffff
je 0x140049320
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140049320
mov eax, dword [0x14012f358]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004932a
mov rbx, qword [0x14012f350]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140049370
mov rax, qword [0x14012db40]
inc rax
xor ecx, ecx
lea rdx, [0x14012db50]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x14004937d
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x14012db40], rdi
mov qword [r15], rdi
mov eax, dword [rax + 0x10]
mov dword [r15 + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [r15], 0x100
jae 0x140049392
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400493a0
jmp 0x14004927e
lea rcx, [0x14012f358]
call fcn.140080dc0
cmp dword [0x14012f358], 0xffffffff
jne 0x1400492a3
mov ecx, 8
call fcn.140080c6c
mov rbx, rax
mov rcx, rax
call fcn.140062450
mov qword [0x14012f350], rbx
lea rcx, [0x14012f358]
call fcn.140080e58
jmp 0x1400492a3
mov rcx, rbx
call fcn.140062460
jmp 0x1400492bb
inc rcx
cmp rcx, 0x100
jne 0x1400492ce
jmp 0x140049302
int3

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

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140081f50
sub rsp, rax
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401269c0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140049454
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140049492
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400840e0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140080cdc
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140083a30
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.140081fb0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140050900
test al, al
je 0x140049495
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140049498
mov eax, 0xffffffff
lock cmpxchg dword [0x1401269c0], ecx
je 0x1400493d8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401269c0]
mov dword [rsp + 0x2c], ecx
jmp 0x1400493d8
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140050900
test al, al
je 0x1400494bd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400494bd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14004946b
int3
Function at 0x14004a6d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14012f3c8]
cmp rdi, 1
jbe 0x14004a6f9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140070110
lea rcx, [0x14012f3c8]
call fcn.140049140
test al, al
je 0x14004a73e
xorps xmm0, xmm0
movups xmmword [0x14012f3d0], xmm0
lea rbx, [0x14012f3c8]
lea rdi, [0x14012f3d0]
mov rcx, rdi
xor edx, edx
call fcn.1400495b0
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400491e0
jmp 0x14004a6e7
mov rdi, qword [0x14012f3c8]
jmp 0x14004a6e7

Function at 0x14004b5a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.14004c900
test al, al
jne 0x14004b628
call fcn.14004c8d0
movzx edx, al
mov ecx, esi
call fcn.14003cad0
mov eax, dword [0x14012f418]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004b5f7
movsxd rdx, esi
inc rdx
lea rcx, [0x14012f408]
add rsp, 0x20
pop rsi
jmp fcn.140070110
lea rcx, [0x14012f418]
call fcn.140080dc0
cmp dword [0x14012f418], 0xffffffff
jne 0x14004b5e0
lea rcx, [0x14012f408]
xor edx, edx
call fcn.1400495b0
lea rcx, [0x14012f418]
call fcn.140080e58
jmp 0x14004b5e0
mov edx, 3
jmp 0x14004b5b8

Function at 0x14004b630
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.14003cad0
mov eax, dword [0x14012f418]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004b674
movsxd rdx, esi
inc rdx
lea rcx, [0x14012f408]
add rsp, 0x20
pop rsi
jmp fcn.140070110
lea rcx, [0x14012f418]
call fcn.140080dc0
cmp dword [0x14012f418], 0xffffffff
jne 0x14004b65d
lea rcx, [0x14012f408]
xor edx, edx
call fcn.1400495b0
lea rcx, [0x14012f418]
call fcn.140080e58
jmp 0x14004b65d

Function at 0x14004ee20
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140117028]
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 0x14004ee80
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14004ee89
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140081fb0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14004ee69
int3
mov rcx, qword [rcx + 8]
jmp 0x14004ee20
Function at 0x14004ee90
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 [0x140117028]
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 0x14004ef33
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x14004ef22
cmp eax, 0xffffffff
je 0x14004ef47
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140081fb0
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 0x14004eed1
mov eax, dword [rsp + 0x2c]
jmp 0x14004ef02
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x14004ef04
int3

Function at 0x14004f410
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.14004f330
test rax, rax
jne 0x14004f44f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x14004f46b
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140081fb0
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140067d40
test al, al
jne 0x14004f47d
xor esi, esi
jmp 0x14004f44f
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.1400d1950
lea rcx, [rsp + 0x40]
lea rdx, [0x140106d80]
mov r8d, 0xc
call fcn.1400b44d0
mov rcx, rsi
call fcn.1400d19d0
jmp 0x14004f479

Function at 0x14004f950
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140117028]
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 0x14004ee80
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x14004ee89
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140081fb0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x14004ee69
int3
mov rcx, qword [rcx + 8]
jmp 0x14004ee20

Function at 0x140050190
Capabilities:
Allocate thread local storage

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