joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008b430
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 0x14008b48b
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 0x14008b450
mov dword [rcx], eax
mov dword [rcx + 4], r10d
pop rbx
pop rdi
pop rsi
ret

Function at 0x140091ffa
Capabilities:
Create process on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x120
mov rsi, rcx
mov rax, qword [0x14019d018]
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 0x1400920a6
lea rax, [rsi + 0x30]
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x80], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x70], xmm0
jmp 0x1400920b8
mov rdx, qword [rsi + 0x30]
mov r8, qword [rsi + 0x38]
lea rcx, [rsp + 0x70]
call fcn.140044ac2
cmp byte [rsp + 0x87], 0
jns 0x1400920c9
mov rcx, qword [rsp + 0x70]
jmp 0x1400920ce
lea rcx, [rsp + 0x70]
call fcn.14014e310
mov rbx, rax
add rsi, 0x18
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov rdx, rsi
call fcn.140050490
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x1400920f8
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.1400505d0
cmp byte [rsp + 0x87], 0
jns 0x140092151
mov rcx, qword [rsp + 0x70]
call fcn.140136524
test esi, esi
je 0x140092170
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.140136dd0
nop
add rsp, 0x120
pop rbx
pop rdi
pop rsi
ret
Function at 0x140092200
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 0x140092297
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x140092261
call fcn.140065e80
mov rcx, qword [rsi]
call fcn.1400be320
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140092273
mov qword [rsi], rdi
call fcn.140065e80
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 0x14009229e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 8], 1
int3
int3
Function at 0x1400954c4
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 [0x14019d018]
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 0x1400955c2
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.140139be0
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 0x1400955b9
mov edi, dword [rsp + 0x70]
movsx ecx, byte [rsp + rdi + 0x60]
call fcn.140150e20
test eax, eax
je 0x1400955b9
lea rdx, [rsp + rdi]
add rdx, 0x60
mov rcx, r14
call fcn.140043eb6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 1
jmp 0x1400955c2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140136dd0
mov eax, esi
add rsp, 0x468
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140095bb0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rcx, [rsp + 0x34]
mov r8d, 0x118
xor edx, edx
call fcn.140139be0
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.1401364e8
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x1401ad6e0]
mov ecx, dword [0x1401a659c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140095c7c
lea r8, [0x1401ad6b0]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140095e20
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140136dd0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1401ad6e0]
call fcn.140136640
cmp dword [0x1401ad6e0], 0xffffffff
jne 0x140095c48
xorps xmm0, xmm0
movups xmmword [0x1401ad6d0], xmm0
movups xmmword [0x1401ad6c0], xmm0
movups xmmword [0x1401ad6b0], xmm0
lea rcx, [0x1401ad6b0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401ad6e0]
call fcn.1401366d8
jmp 0x140095c48
Function at 0x140095d30
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401ad6e0]
mov ecx, dword [0x1401a659c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140095d93
movzx ecx, word [0x1401ad6b0]
cmp rcx, 0xc
ja case.0x140095d72.1
xor eax, eax
lea rdx, [0x140095de0]
movsxd rcx, dword [rdx + rcx*4]
add rcx, rdx
jmp rcx
mov eax, 2
jmp case.0x140095d72.0
mov eax, 4
jmp case.0x140095d72.0
mov eax, 1
jmp case.0x140095d72.0
mov eax, 3
add rsp, 0x28
ret
lea rcx, [0x1401ad6e0]
call fcn.140136640
cmp dword [0x1401ad6e0], 0xffffffff
jne 0x140095d55
xorps xmm0, xmm0
movups xmmword [0x1401ad6d0], xmm0
movups xmmword [0x1401ad6c0], xmm0
movups xmmword [0x1401ad6b0], xmm0
lea rcx, [0x1401ad6b0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401ad6e0]
call fcn.1401366d8
jmp 0x140095d55

Function at 0x140099030
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14019d018]
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 0x140099081
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
jne 0x140099088
int3
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140136dd0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x140099030

Function at 0x14009909f
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 [0x14019d018]
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 0x140099147
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140099122
mov rcx, rdi
call r12
cmp eax, 3
je 0x1400990e5
mov eax, dword [rsp + 0x2c]
jmp 0x140099127
cmp eax, 0xffffffff
je 0x14009915b
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140136dd0
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 0x140099129
int3
Function at 0x1400997d0
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.1400996ff
test rax, rax
jne 0x140099867
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
jne 0x140099867
mov ecx, 2
call fcn.14006d690
test al, al
je 0x140099865
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.14006e750
lea rcx, [rsp + 0x40]
lea rdx, [0x140182feb]
mov r8d, reloc.WS2_32.dll_inet_ntoa
call fcn.14001df3c
mov rcx, rsi
call fcn.14006e840
xor esi, esi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140136dd0
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret

Function at 0x140099db0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14019d018]
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 0x140099081
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
jne 0x140099088
int3
mov rsi, 0xffffffffffffffff
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140136dd0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rcx, qword [rcx + 8]
jmp 0x140099030
Function at 0x14009a560
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 [0x14019d018]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x1401ad708]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x14009a6cf
jp 0x14009a6cf
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 [0x1401ad718]
mov ecx, dword [0x1401a659c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009a6ee
mov eax, dword [0x1401ad728]
mov ecx, dword [0x1401a659c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009a728
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 [0x1401ad720]
movq xmm1, rsi
punpckldq xmm1, xmmword [0x140174f70]
subpd xmm1, xmmword [0x140174f80]
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 [0x140183070]
ucomisd xmm1, xmm0
ja 0x14009a6cf
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x1401ad710]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x140174f70]
subpd xmm1, xmmword [0x140174f80]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x1401ad708], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140136dd0
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1401ad718]
call fcn.140136640
cmp dword [0x1401ad718], 0xffffffff
jne 0x14009a5e1
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1401ad710], rdx
lea rcx, [0x1401ad718]
call fcn.1401366d8
jmp 0x14009a5e1
lea rcx, [0x1401ad728]
call fcn.140136640
cmp dword [0x1401ad728], 0xffffffff
jne 0x14009a606
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x1401ad720], rax
lea rcx, [0x1401ad728]
call fcn.1401366d8
jmp 0x14009a606
Function at 0x14009b590
Capabilities:
Get memory capacity

Disassembly:
push rsi
sub rsp, 0x70
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0x68], rax
movaps xmm0, xmmword [0x140174f60]
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.140136dd0
mov rax, rsi
add rsp, 0x70
pop rsi
ret

Function at 0x14009bdd0
Capabilities:
Create thread

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

Function at 0x14009e880
Capabilities:
Get thread local storage value

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

Function at 0x14009e8b0
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 [0x14019f0ec]
cmp ecx, 0xffffffff
je 0x14009e8d6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14009e8db
call fcn.14009e9f0
mov eax, dword [0x1401aefc8]
mov ecx, dword [0x1401a659c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009e9a2
mov rbx, qword [0x1401aefc0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14009e995
mov rcx, qword [0x1401ad7b0]
add rcx, 1
xor edx, edx
lea rax, [0x1401ad7c0]
nop dword [rax]
lea edi, [rcx + rdx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14009e950
add rdx, 1
cmp rdx, 0x100
jne 0x14009e930
jmp 0x14009e971
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
mov qword [rax + rsi*8 + 8], r14
mov qword [0x1401ad7b0], 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 0x14009e9e8
cmp eax, 0x100
jge 0x14009e9eb
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
call fcn.140089e70
jmp 0x14009e918
lea rcx, [0x1401aefc8]
call fcn.140136640
cmp dword [0x1401aefc8], 0xffffffff
jne 0x14009e900
mov ecx, 8
call fcn.1401364e8
mov rbx, rax
mov rcx, rax
call fcn.140089e60
mov qword [0x1401aefc0], rbx
lea rcx, [0x1401aefc8]
call fcn.1401366d8
jmp 0x14009e900
int3
int3
Function at 0x14009e9f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140136d70
sub rsp, rax
mov rax, qword [0x14019d018]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14019f0ec]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x14009ea8c
lea rcx, [rsp + 0x2c]
call fcn.1400e97b0
test al, al
je 0x14009eb07
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x14009ea6e
lea rcx, [rsp + 0x2c]
call fcn.1400e97b0
test al, al
je 0x14009eb0a
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14009eb0a
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x14019f0ec], ecx
je 0x14009ea8c
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14019f0ec]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14009eb04
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140139be0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14013655c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140139530
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.140136dd0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
int3
int3
int3

Function at 0x14009ebf0
Capabilities:
Get thread local storage value

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

Function at 0x14009ec30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14019f0ec]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x14009ec58
test rdi, rdi
je 0x14009ec71
call fcn.14009e9f0
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 0x14009ed70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1401aefd8]
mov ecx, dword [0x1401a659c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009eda5
lea rcx, [0x1401aefd0]
add rsp, 0x28
jmp fcn.14009ebf0
lea rcx, [0x1401aefd8]
call fcn.140136640
cmp dword [0x1401aefd8], 0xffffffff
jne 0x14009ed95
mov qword [0x1401aefd0], 0
lea rcx, [0x1401aefd0]
xor edx, edx
call fcn.14009ec80
lea rcx, [0x1401aefd8]
call fcn.1401366d8
jmp 0x14009ed95
Function at 0x14009fd70
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 [0x1401c0010]
mov byte [rsi + 0x431], 1
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [0x1401c0010]
test rax, rax
je 0x14009fde2
mov eax, dword [0x1401aefd8]
mov ecx, dword [0x1401a659c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14009fde9
lea rcx, [0x1401aefd0]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14009ec30
nop
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1401aefd8]
call fcn.140136640
cmp dword [0x1401aefd8], 0xffffffff
jne 0x14009fdce
mov qword [0x1401aefd0], 0
lea rcx, [0x1401aefd0]
xor edx, edx
call fcn.14009ec80
lea rcx, [0x1401aefd8]
call fcn.1401366d8
jmp 0x14009fdce
Function at 0x1400a5b80
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 0x1400a5ca5
mov r15, qword [r13]
mov rdi, qword [r13 + 8]
mov rax, rdi
sub rax, r15
jbe 0x1400a5c04
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 0x1400a5bf0
mov rcx, r15
mov rdx, rdi
mov r8, rsi
call fcn.140139530
mov rdi, qword [r13 + 8]
add rsi, r15
mov qword [r13 + 0x10], rsi
lea rax, [rdi + r12*8]
mov qword [r13 + 8], rax
jmp 0x1400a5ca5
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 0x1400a5cc0
mov r12, rbx
shr r12, 2
lea rcx, [rbx*8]
call fcn.1401364e8
lea r9, [rax + r12*8]
lea r8, [rax + rbx*8]
mov r10, r9
sub rsi, rdi
je 0x1400a5c81
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 0x1400a5c70
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 0x1400a5ca5
mov rcx, r15
call fcn.140136524
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.14014b3e0
int3

Function at 0x1400a5cd0
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 0x1400a5cf7
mov r14, rbx
jmp 0x1400a5df4
mov r15, qword [rsi + 0x10]
mov rax, qword [rsi + 0x18]
cmp r15, rax
jae 0x1400a5d4d
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 0x1400a5d3c
sub r14, r8
mov rcx, r14
mov rdx, rbx
call fcn.140139530
mov r15, qword [rsi + 0x10]
mov qword [rsi + 8], r14
lea rax, [r15 + r12*8]
mov qword [rsi + 0x10], rax
jmp 0x1400a5df4
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 0x1400a5e11
lea r12, [r13 + 3]
shr r12, 2
lea rcx, [r13*8]
call fcn.1401364e8
lea r14, [rax + r12*8]
lea r8, [rax + r13*8]
mov r9, r14
sub r15, rbx
je 0x1400a5dd4
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 0x1400a5dc0
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 0x1400a5df4
mov rcx, rbx
call fcn.140136524
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.14014b3e0
int3
Function at 0x1400aa138
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 [0x14019d018]
xor rax, rsp
mov qword [rsp + 0x198], rax
cmp byte [rcx + 0x17], 0
jns 0x1400aa162
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400aa18b
mov edi, eax
test bl, bl
jne 0x1400aa180
mov eax, edi
and eax, 0x400
jne 0x1400aa242
and edi, 0x10
shr edi, 4
jmp 0x1400aa244
mov ecx, 2
call fcn.14006d690
test al, al
je 0x1400aa242
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.14006e750
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.14004aeb0
movzx r8d, byte [rsi + 0x17]
test r8b, r8b
jns 0x1400aa21c
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 0x1400aa238
mov rcx, qword [rsp + 0x40]
call fcn.140136524
lea rcx, [rsp + 0x58]
call fcn.14006e840
xor edi, edi
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140136dd0
mov eax, edi
add rsp, 0x1a0
pop rbx
pop rdi
pop rsi
ret