joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008b770
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
mov eax, dword [rcx]
mov r10d, dword [rcx + 4]
test rdx, rdx
je 0x14008b7cb
xor r11d, r11d
nop word cs:[rax + rax]
nop dword [rax + rax]
add eax, 1
movzx eax, al
mov esi, dword [rcx + rax*4 + 8]
add r10d, esi
movzx r10d, r10b
mov edi, dword [rcx + r10*4 + 8]
mov dword [rcx + rax*4 + 8], edi
mov dword [rcx + r10*4 + 8], esi
add edi, esi
movzx esi, dil
movzx ebx, byte [r8 + r11]
xor bl, byte [rcx + rsi*4 + 8]
mov byte [r9 + r11], bl
add r11, 1
cmp rdx, r11
jne 0x14008b790
mov dword [rcx], eax
mov dword [rcx + 4], r10d
pop rbx
pop rdi
pop rsi
ret

Function at 0x14009233a
Capabilities:
Create process on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x120
mov rsi, rcx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x118], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
xor eax, eax
mov qword [rsp + 0x110], rax
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
movaps xmmword [rsp + 0xd0], xmm0
movaps xmmword [rsp + 0xc0], xmm0
mov dword [rsp + 0xb0], 0x68
mov qword [rsp + 0xa0], rax
movaps xmmword [rsp + 0x90], xmm0
mov dword [rsp + 0xec], 1
mov word [rsp + 0xf0], 1
cmp byte [rcx + 0x47], 0
js 0x1400923e6
lea rax, [rsi + 0x30]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x80], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x70], xmm0
jmp 0x1400923f8
mov rdx, qword [rsi + 0x30]
mov r8, qword [rsi + 0x38]
lea rcx, [rsp + 0x70]
call fcn.140044b92
cmp byte [rsp + 0x87], 0
jns 0x140092409
mov rcx, qword [rsp + 0x70]
jmp 0x14009240e
lea rcx, [rsp + 0x70]
call fcn.14014e650
mov rbx, rax
add rsi, 0x18
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov rdx, rsi
call fcn.140050560
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x140092438
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor eax, eax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov rdx, rbx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov rcx, rdi
call fcn.1400506a0
cmp byte [rsp + 0x87], 0
jns 0x140092491
mov rcx, qword [rsp + 0x70]
call fcn.140136864
test esi, esi
je 0x1400924b0
mov rcx, qword [rsp + 0x90]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0x98]
call rsi
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.140137110
nop
add rsp, 0x120
pop rbx
pop rdi
pop rsi
ret
Function at 0x140092540
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor ebx, ebx
test edx, edx
sete bl
xor ecx, ecx
mov edx, ebx
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x1400925d7
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x1400925a1
call fcn.1400661b0
mov rcx, qword [rsi]
call fcn.1400be660
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400925b3
mov qword [rsi], rdi
call fcn.1400661b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 1
add rax, 1
cmp rax, 1
jbe 0x1400925de
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 8], 1
int3
int3
Function at 0x140095804
Capabilities:
Get storage device properties

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x468
mov r14, rdx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
lea rcx, str..PhysicalDrive0
xor esi, esi
xor edx, edx
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140095902
mov rbx, rax
xor esi, esi
lea r15, [rsp + 0x50]
mov dword [r15 + 8], esi
mov qword [r15], rsi
lea r12, [rsp + 0x4c]
mov dword [r12], esi
lea rdi, [rsp + 0x60]
mov r8d, 0x400
mov rcx, rdi
xor edx, edx
call fcn.140139f20
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0x400
mov rcx, rbx
mov edx, 0x2d1400
mov r8, r15
mov r9d, reloc.WS2_32.dll_inet_ntoa
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400958f9
mov edi, dword [rsp + 0x70]
movsx ecx, byte [rsp + rdi + 0x60]
call fcn.140151160
test eax, eax
je 0x1400958f9
lea rdx, [rsp + rdi]
add rdx, 0x60
mov rcx, r14
call fcn.140043f86
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x140095902
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140137110
mov eax, esi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140095ef0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x34]
mov r8d, 0x118
xor edx, edx
call fcn.140139f20
mov dword [rsp + 0x30], 0x11c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x2c], 0
mov ecx, dword [rsp + 0x34]
mov edx, dword [rsp + 0x38]
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140136828
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x1401ae720]
mov ecx, dword [0x1401a759c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140095fbc
lea r8, [0x1401ae6f0]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140096160
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140137110
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401ae720]
call fcn.140136980
cmp dword [0x1401ae720], 0xffffffff
jne 0x140095f88
xorps xmm0, xmm0
movups xmmword [0x1401ae710], xmm0
movups xmmword [0x1401ae700], xmm0
movups xmmword [0x1401ae6f0], xmm0
lea rcx, [0x1401ae6f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401ae720]
call fcn.140136a18
jmp 0x140095f88
Function at 0x140096070
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401ae720]
mov ecx, dword [0x1401a759c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400960d3
movzx ecx, word [0x1401ae6f0]
cmp rcx, 0xc
ja case.0x1400960b2.1
xor eax, eax
lea rdx, [0x140096120]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov eax, 2
jmp case.0x1400960b2.0
mov eax, 4
jmp case.0x1400960b2.0
mov eax, 1
jmp case.0x1400960b2.0
mov eax, 3
add rsp, 0x28
ret
lea rcx, [0x1401ae720]
call fcn.140136980
cmp dword [0x1401ae720], 0xffffffff
jne 0x140096095
xorps xmm0, xmm0
movups xmmword [0x1401ae710], xmm0
movups xmmword [0x1401ae700], xmm0
movups xmmword [0x1401ae6f0], xmm0
lea rcx, [0x1401ae6f0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401ae720]
call fcn.140136a18
jmp 0x140096095

Function at 0x140099370
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
mov eax, 0xffffffff
cmovae r8d, eax
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400993c1
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
jne 0x1400993c8
int3
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140137110
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x140099370

Function at 0x1400993df
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 [0x14019e018]
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 0x140099487
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140099462
mov rcx, rdi
call r12
cmp eax, 3
je 0x140099425
mov eax, dword [rsp + 0x2c]
jmp 0x140099467
cmp eax, 0xffffffff
je 0x14009949b
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140137110
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140099469
int3
Function at 0x140099b10
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140099a3f
test rax, rax
jne 0x140099ba7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
jne 0x140099ba7
mov ecx, 2
call fcn.14006d9d0
test al, al
je 0x140099ba5
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.14006ea90
lea rcx, [rsp + 0x40]
lea rdx, [0x140183ffb]
mov r8d, reloc.WS2_32.dll_inet_ntoa
call fcn.14001df3c
mov rcx, rsi
call fcn.14006eb80
xor esi, esi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140137110
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret

Function at 0x14009a0f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
mov eax, 0xffffffff
cmovae r8d, eax
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400993c1
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
jne 0x1400993c8
int3
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140137110
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x140099370
Function at 0x14009a8a0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x1401ae748]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x14009aa0f
jp 0x14009aa0f
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebp, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1401ae758]
mov ecx, dword [0x1401a759c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009aa2e
mov eax, dword [0x1401ae768]
mov ecx, dword [0x1401a759c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009aa68
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rsi, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rsi, qword [0x1401ae760]
movq xmm1, rsi
punpckldq xmm1, xmmword [0x140175f70]
subpd xmm1, xmmword [0x140175f80]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x20]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x140184080]
ucomisd xmm1, xmm0
ja 0x14009aa0f
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x1401ae750]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x140175f70]
subpd xmm1, xmmword [0x140175f80]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x1401ae748], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140137110
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1401ae758]
call fcn.140136980
cmp dword [0x1401ae758], 0xffffffff
jne 0x14009a921
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1401ae750], rdx
lea rcx, [0x1401ae758]
call fcn.140136a18
jmp 0x14009a921
lea rcx, [0x1401ae768]
call fcn.140136980
cmp dword [0x1401ae768], 0xffffffff
jne 0x14009a946
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x1401ae760], rax
lea rcx, [0x1401ae768]
call fcn.140136a18
jmp 0x14009a946
Function at 0x14009b8d0
Capabilities:
Get memory capacity

Disassembly:
push rsi
sub rsp, 0x70
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [0x140175f60]
movaps xmmword [rsp + 0x20], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rcx, qword [rsp + 0x28]
movabs rdx, 0x7fffffffffffffff
cmp rcx, rdx
cmovb rdx, rcx
xor esi, esi
test eax, eax
cmovne rsi, rdx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140137110
mov rax, rsi
add rsp, 0x70
pop rsi
ret

Function at 0x14009c110
Capabilities:
Create thread

Disassembly:
mov r9d, r8d
xor r8d, r8d
jmp fcn.14009bf40

Function at 0x14009ebc0
Capabilities:
Get thread local storage value

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

Function at 0x14009ebf0
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 [0x1401a00ec]
cmp ecx, 0xffffffff
je 0x14009ec16
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14009ec1b
call fcn.14009ed30
mov eax, dword [0x1401b0008]
mov ecx, dword [0x1401a759c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009ece2
mov rbx, qword [0x1401b0000]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14009ecd5
mov rcx, qword [0x1401ae7f0]
add rcx, 1
xor edx, edx
lea rax, [0x1401ae800]
nop dword [rax]
lea edi, [rcx + rdx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14009ec90
add rdx, 1
cmp rdx, 0x100
jne 0x14009ec70
jmp 0x14009ecb1
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
mov qword [rax + rsi*8 + 8], r14
mov qword [0x1401ae7f0], rdi
mov dword [r15], edi
mov eax, dword [rax + rsi*8 + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x14009ed28
cmp eax, 0x100
jge 0x14009ed2b
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
call fcn.14008a1b0
jmp 0x14009ec58
lea rcx, [0x1401b0008]
call fcn.140136980
cmp dword [0x1401b0008], 0xffffffff
jne 0x14009ec40
mov ecx, 8
call fcn.140136828
mov rbx, rax
mov rcx, rax
call fcn.14008a1a0
mov qword [0x1401b0000], rbx
lea rcx, [0x1401b0008]
call fcn.140136a18
jmp 0x14009ec40
int3
int3
Function at 0x14009ed30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1401370b0
sub rsp, rax
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1401a00ec]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x14009edcc
lea rcx, [rsp + 0x2c]
call fcn.1400e9af0
test al, al
je 0x14009ee47
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x14009edae
lea rcx, [rsp + 0x2c]
call fcn.1400e9af0
test al, al
je 0x14009ee4a
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14009ee4a
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x1401a00ec], ecx
je 0x14009edcc
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1401a00ec]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14009ee44
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140139f20
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14013689c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140139870
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.140137110
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
int3
int3
int3

Function at 0x14009ef30
Capabilities:
Get thread local storage value

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

Function at 0x14009ef70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1401a00ec]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x14009ef98
test rdi, rdi
je 0x14009efb1
call fcn.14009ed30
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

Function at 0x14009f0b0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401b0018]
mov ecx, dword [0x1401a759c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009f0e5
lea rcx, [0x1401b0010]
add rsp, 0x28
jmp fcn.14009ef30
lea rcx, [0x1401b0018]
call fcn.140136980
cmp dword [0x1401b0018], 0xffffffff
jne 0x14009f0d5
mov qword [0x1401b0010], 0
lea rcx, [0x1401b0010]
xor edx, edx
call fcn.14009efc0
lea rcx, [0x1401b0018]
call fcn.140136a18
jmp 0x14009f0d5
Function at 0x1400a00b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx + 0x30]
lea rdx, [rsi + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x90]
call qword [0x1401c1010]
mov byte [rsi + 0x431], 1
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [0x1401c1010]
test rax, rax
je 0x1400a0122
mov eax, dword [0x1401b0018]
mov ecx, dword [0x1401a759c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400a0129
lea rcx, [0x1401b0010]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14009ef70
nop
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401b0018]
call fcn.140136980
cmp dword [0x1401b0018], 0xffffffff
jne 0x1400a010e
mov qword [0x1401b0010], 0
lea rcx, [0x1401b0010]
xor edx, edx
call fcn.14009efc0
lea rcx, [0x1401b0018]
call fcn.140136a18
jmp 0x1400a010e
Function at 0x1400a5ec0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r13, rcx
mov rsi, qword [rcx + 0x10]
cmp rsi, qword [rcx + 0x18]
jne 0x1400a5fe5
mov r15, qword [r13]
mov rdi, qword [r13 + 8]
mov rax, rdi
sub rax, r15
jbe 0x1400a5f44
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
add rax, 1
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, rdi
sub r15, rax
sub rsi, rdi
je 0x1400a5f30
mov rcx, r15
mov rdx, rdi
mov r8, rsi
call fcn.140139870
mov rdi, qword [r13 + 8]
add rsi, r15
mov qword [r13 + 0x10], rsi
lea rax, [rdi + r12*8]
mov qword [r13 + 8], rax
jmp 0x1400a5fe5
mov rax, rsi
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov ebx, 1
cmovne rbx, rcx
mov rax, rbx
shr rax, 0x3d
jne 0x1400a6000
mov r12, rbx
shr r12, 2
lea rcx, [rbx*8]
call fcn.140136828
lea r9, [rax + r12*8]
lea r8, [rax + rbx*8]
mov r10, r9
sub rsi, rdi
je 0x1400a5fc1
mov rbx, rsi
sar rbx, 3
and rsi, 0xfffffffffffffff8
mov r10, rsi
add r10, r9
shl rbx, 3
lea rsi, [rax + r12*8]
xor ecx, ecx
nop dword [rax]
mov rdx, qword [rdi + rcx]
mov qword [rsi + rcx], rdx
add rcx, 8
cmp rbx, rcx
jne 0x1400a5fb0
mov qword [r13], rax
mov qword [r13 + 8], r9
mov qword [r13 + 0x10], r10
mov qword [r13 + 0x18], r8
mov rsi, r10
test r15, r15
je 0x1400a5fe5
mov rcx, r15
call fcn.140136864
mov rsi, qword [r13 + 0x10]
mov rax, qword [r14]
mov qword [rsi], rax
add qword [r13 + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14014b720
int3

Function at 0x1400a6010
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x1400a6037
mov r14, rbx
jmp 0x1400a6134
mov r15, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r15, rax
jae 0x1400a608d
sub rax, r15
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r12, [rax + rcx]
add r12, 1
sar r12, 1
lea r14, [r15 + r12*8]
mov r8, r15
sub r8, rbx
je 0x1400a607c
sub r14, r8
mov rcx, r14
mov rdx, rbx
call fcn.140139870
mov r15, qword [rsi + 0x10]
mov qword [rsi + 8], r14
lea rax, [r15 + r12*8]
mov qword [rsi + 0x10], rax
jmp 0x1400a6134
sub rax, rbx
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x1400a6151
lea r12, [r13 + 3]
shr r12, 2
lea rcx, [r13*8]
call fcn.140136828
lea r14, [rax + r12*8]
lea r8, [rax + r13*8]
mov r9, r14
sub r15, rbx
je 0x1400a6114
mov r10, rdi
mov rcx, r15
sar rcx, 3
and r15, 0xfffffffffffffff8
mov r9, r15
add r9, r14
shl rcx, 3
lea rdx, [rax + r12*8]
xor edi, edi
nop word cs:[rax + rax]
nop
mov rbp, qword [rbx + rdi]
mov qword [rdx + rdi], rbp
add rdi, 8
cmp rcx, rdi
jne 0x1400a6100
mov rdi, r10
mov qword [rsi], rax
mov qword [rsi + 8], r14
mov qword [rsi + 0x10], r9
mov qword [rsi + 0x18], r8
test rbx, rbx
je 0x1400a6134
mov rcx, rbx
call fcn.140136864
mov r14, qword [rsi + 8]
mov rax, qword [rdi]
mov qword [r14 - 8], rax
add qword [rsi + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.14014b720
int3
Function at 0x1400aa478
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x1a0
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x14019e018]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400aa4a2
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400aa4cb
mov edi, eax
test bl, bl
jne 0x1400aa4c0
mov eax, edi
and eax, 0x400
jne 0x1400aa582
and edi, 0x10
shr edi, 4
jmp 0x1400aa584
mov ecx, 2
call fcn.14006d9d0
test al, al
je 0x1400aa582
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_filesystem_win.cc
lea rcx, [rsp + 0x58]
mov r8d, 0x82
mov r9d, 2
call fcn.14006ea90
lea rcx, [rsp + 0x68]
lea rdx, str.GetFileAttributes
mov r8d, 0x12
call fcn.14001df3c
mov rdi, rax
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
lea rdx, [rsp + 0x30]
mov qword [rdx], rcx
cmovs rax, qword [rsi + 8]
mov qword [rdx + 8], rax
lea rsi, [rsp + 0x40]
mov rcx, rsi
call fcn.14004af80
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400aa55c
mov r8, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rcx, rdi
mov rdx, rsi
call fcn.14001df3c
cmp byte [rsp + 0x57], 0
jns 0x1400aa578
mov rcx, qword [rsp + 0x40]
call fcn.140136864
lea rcx, [rsp + 0x58]
call fcn.14006eb80
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140137110
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret