joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f8e90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov eax, dword [0x14038e378]
mov ecx, dword [0x14037df2c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400f8f11
lea rcx, [0x14038e368]
call fcn.140175540
test rax, rax
jne 0x1400f8efe
mov ecx, 4
call fcn.14018dfc4
mov rdi, rax
mov dword [rax], 0
lea rbx, [0x14038e368]
mov rcx, rbx
call fcn.140175540
mov rsi, rax
mov rcx, rbx
mov rdx, rdi
call fcn.1400f5890
test rsi, rsi
jne 0x1400f8f54
lea rcx, [0x14038e368]
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140175540
lea rcx, [0x14038e378]
call fcn.14018e120
cmp dword [0x14038e378], 0xffffffff
jne 0x1400f8eb8
xorps xmm0, xmm0
movups xmmword [0x14038e368], xmm0
lea rcx, [0x14038e368]
lea rdx, [0x14002d070]
call fcn.1400f58e0
lea rcx, [0x14038e378]
call fcn.14018e1b8
jmp 0x1400f8eb8
mov rcx, rsi
call fcn.14018e000
jmp 0x1400f8efe

Function at 0x1400fbf70
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rsi, rcx
mov rax, qword [0x14036c038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400fc020]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 8], rax
test rax, rax
je 0x1400fbfcb
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14018f840
nop
add rsp, 0x68
pop rdi
pop rsi
ret
lea rdx, str.Start
lea r8, str....._third_partycrashpadcrashpadutil_thread_thread_win.cc
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov r9d, 0x1b
call fcn.14013d790
lea rdi, [rsp + 0x58]
mov rcx, rdi
mov rdx, rsi
call fcn.140201cb0
lea rdx, [0x14030b7da]
mov rcx, rdi
call fcn.140212330
mov rcx, rdi
call fcn.140201ce0
jmp 0x1400fbfb6
Function at 0x14010f210
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14010f225
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x14010f270
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14010f2ac
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14010f2b6
add rdi, rbx
sub rsi, rbx
jne 0x14010f28a
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x14011dc10
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14011dc58
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14011dc61
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14011dc48
mov qword [rdi], rsi
call fcn.14013d7b0
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14013d7b0
mov rcx, qword [rdi]
call fcn.14012a160
mov qword [rdi], 0
jmp 0x14011dc36
Function at 0x140123cf0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x140123dee
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x140300410]
nop dword [rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x140123d60
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x140300420]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x140123e7d
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x140123e53
movdqa xmm1, xmmword [0x140300420]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x140300430], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x14012a560
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, ecx
mov rax, qword [0x14036c038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x140383310]
mov ecx, dword [0x14037df2c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14012a74c
mov rsi, qword [0x140383308]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14012a792
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x1403832b8], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor ebp, ebp
add ebx, dword [0x1403832bc]
mov dword [0x1403832bc], ebx
cmovne ebp, ecx
mov eax, dword [0x1403832c0]
cmp ebp, eax
je 0x14012a72b
test eax, eax
je 0x14012a6bc
mov rax, qword [0x14036f830]
lea rcx, [0x14012a840]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x14012a7b0
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x14012a80a
imul rax, rcx, 0xf4240
cqo
idiv qword [0x140383328]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x140383318]
xor edx, edx
cmp rax, rcx
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
sub rax, rcx
cmovo rax, r8
movabs rdx, 0x8000000000000001
lea r8, [rax + rdx]
mov rcx, qword [0x1403832c8]
cmp r8, 2
jb 0x14012a7c1
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x1403832c8], rax
mov ecx, dword [0x1403832c0]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x1403832c0], ebp
test ebx, ebx
je 0x14012a72b
mov rax, qword [0x14036f830]
lea rcx, [0x14012a840]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x14012a79f
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rdi]
movabs rax, 0x8637bd05af7
cmp rcx, rax
jge 0x14012a7d9
imul rax, rcx, 0xf4240
cqo
idiv qword [0x140383328]
mov qword [0x140383318], rax
mov ecx, dword [0x1403832c0]
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14018f840
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140383310]
call fcn.14018e120
cmp dword [0x140383310], 0xffffffff
jne 0x14012a59e
mov ecx, 8
call fcn.14018dfc4
mov rsi, rax
mov rcx, rax
call fcn.14012ac60
mov qword [0x140383308], rsi
lea rcx, [0x140383310]
call fcn.14018e1b8
jmp 0x14012a59e
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14012a5b6
mov rcx, rdi
call qword [0x1403a9008]
mov rax, qword [rdi]
jmp 0x14012a718
mov rcx, rdi
call qword [0x1403a9008]
mov rax, qword [rdi]
jmp 0x14012a650
cmp rcx, rax
je 0x14012a6a9
add rcx, rdx
cmp rcx, 1
ja 0x14012a6a9
jmp 0x14012a83b
mov r8, qword [0x140383328]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x14012a718
mov r8, qword [0x140383328]
mov rax, rcx
cqo
idiv r8
imul r9, rax, 0xf4240
imul rax, r8
sub rcx, rax
imul rax, rcx, 0xf4240
cqo
idiv r8
add rax, r9
jmp 0x14012a64b
int3
Function at 0x14012a8e0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x14036c038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.14012ac30
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1403832d8]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14012a93e
jnp 0x14012a9a4
ucomisd xmm0, xmm6
jne 0x14012a946
jnp 0x14012a9a0
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1403070f0]
subpd xmm1, xmmword [0x140307100]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140307110]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14018f840
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14012a978
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1403832e8]
mov ecx, dword [0x14037df2c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14012aab9
mov eax, dword [0x1403832f8]
mov ecx, dword [0x14037df2c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14012aaf3
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x1403832f0]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1403070e8]
ucomisd xmm2, xmm1
ja 0x14012a93e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x1403832e0]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1403070f0]
subpd xmm0, xmmword [0x140307100]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x1403832d8], xmm0
jmp 0x14012a93e
lea rcx, [0x1403832e8]
call fcn.14018e120
cmp dword [0x1403832e8], 0xffffffff
jne 0x14012a9ed
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1403832e0], rdx
lea rcx, [0x1403832e8]
call fcn.14018e1b8
jmp 0x14012a9ed
lea rcx, [0x1403832f8]
call fcn.14018e120
cmp dword [0x1403832f8], 0xffffffff
jne 0x14012aa12
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x1403832f0], rax
lea rcx, [0x1403832f8]
call fcn.14018e1b8
jmp 0x14012aa12
Function at 0x14012b370
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
movzx eax, byte [0x140383360]
test al, 1
je 0x14012b3a3
call fcn.14014bc50
mov rcx, rdi
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14014c180
test rsi, rsi
je 0x14012b3d0
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14012b3da
add rdi, rbx
sub rsi, rbx
jne 0x14012b3ae
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x14012f7f0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14036c038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x60]
mov qword [r12 + 0x40], r13
movaps xmm0, xmmword [0x1402fa4a0]
movaps xmmword [r12 + 0x30], xmm0
movaps xmmword [r12 + 0x20], xmm0
movaps xmmword [r12 + 0x10], xmm0
movaps xmmword [r12], xmm0
lea rdx, str.Read
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x42
call fcn.14013d790
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.1401329b0
mov ebp, 0xffffffff
test r14, r14
js 0x14012f8f3
test esi, esi
js 0x14012f8f3
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], 0
call fcn.14014fbb0
test al, al
jne 0x14012f93b
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14012f923
mov ebp, dword [rsp + 0x2c]
test ebp, ebp
js 0x14012f936
lea rcx, [rsp + 0x30]
call fcn.14014fc40
lea rcx, [rsp + 0x60]
call fcn.140132bf0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14018f840
mov eax, ebp
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0x26
setne bpl
neg ebp
jmp 0x14012f8e9
int3
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14025f4e0
jmp 0x14012f8ab
Function at 0x14012f960
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14036c038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x40], r12
movaps xmm0, xmmword [0x1402fa4a0]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x5f
call fcn.14013d790
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1401329b0
test esi, esi
js 0x14012fa71
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.14014fbb0
test al, al
jne 0x14012fa90
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14012fa7d
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x14012fa78
lea rcx, [rsp + 0x30]
call fcn.14014fc40
lea rcx, [rsp + 0x50]
call fcn.140132bf0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14018f840
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14012fa44
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14012fa3a
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14025f4e0
jmp 0x14012fa0a

Function at 0x14012fab0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14036c038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x60]
mov qword [r12 + 0x40], r13
movaps xmm0, xmmword [0x1402fa4a0]
movaps xmmword [r12 + 0x30], xmm0
movaps xmmword [r12 + 0x20], xmm0
movaps xmmword [r12 + 0x10], xmm0
movaps xmmword [r12], xmm0
lea rdx, str.Write
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x7f
call fcn.14013d790
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.1401329b0
mov ebp, 0xffffffff
test r14, r14
js 0x14012fbb0
test esi, esi
js 0x14012fbb0
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], 0
call fcn.14014fbb0
test al, al
jne 0x14012fbe0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ebp, ebp
cmp eax, 1
sbb ebp, ebp
or ebp, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.14014fc40
lea rcx, [rsp + 0x60]
call fcn.140132bf0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14018f840
mov eax, ebp
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, esi
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14025f4e0
jmp 0x14012fb67
Function at 0x140140500
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.14012f6b0
mov qword [rsi], 0
test rax, rax
je 0x140140553
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140140587
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14014054b
mov qword [rsi], rbx
call fcn.14013d7b0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.14013e020
lea rcx, [rsi + 0x20]
call fcn.14014fbd0
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.14013d7b0
mov rcx, qword [rsi]
call fcn.14012a160
mov qword [rsi], 0
jmp 0x140140539
Function at 0x140140cf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rax, qword [0x14036c038]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [0x140383618]
and eax, 1
neg rax
cmp rax, 0xfffffffffffffffd
je 0x140140e4d
mov rsi, rcx
lea r14, [0x140308520]
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x1402fa4a0]
lea rbx, [rsp + 0x30]
xor r12d, r12d
mov rax, r12
shl rax, 4
mov qword [rsp + 0x40], r15
movaps xmmword [rsp + 0x30], xmm6
mov rdx, qword [rax + r14]
test rdx, rdx
je 0x140140e5f
mov r13, qword [rax + r14 + 8]
mov byte [rsp + 0x47], r13b
cmp rbx, rdx
ja 0x140140d8c
lea rax, [rsp + r13*2]
add rax, 0x30
cmp rax, rdx
ja 0x140140e8b
lea r8, [r13*2]
mov rcx, rbx
call fcn.1401912e0
mov word [rsp + r13*2 + 0x30], 0
movzx eax, byte [rsp + 0x47]
mov edx, eax
and edx, 0x7f
test al, al
mov rcx, qword [rsp + 0x30]
mov r8, rbx
cmovs rdx, qword [rsp + 0x38]
cmovs r8, rcx
mov r9, qword [rsi + 8]
cmp r9, rdx
mov r10, rdx
cmovb r10, r9
test r10, r10
js 0x140140e5c
cmp rdx, r9
ja 0x140140e32
mov bpl, 1
test rdx, rdx
je 0x140140e51
mov r9, qword [rsi]
xor r10d, r10d
movzx r11d, word [r9 + r10*2]
cmp r11w, word [r8 + r10*2]
jne 0x140140e32
inc r10
cmp rdx, r10
jne 0x140140dec
mov rdi, rdx
test al, al
js 0x140140e55
test bpl, bpl
je 0x140140e36
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14018f840
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x140140e03
inc r12
movzx eax, byte [0x140383618]
xor rax, 3
cmp r12, rax
jb 0x140140d4e
xor edi, edi
jmp 0x140140e0c
xor edi, edi
jmp 0x140140e03
call fcn.14018e000
jmp 0x140140e07
int3
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x136
call fcn.1401cd590
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1__n
mov r8d, 0x138
call fcn.1401cd590
int3
Function at 0x140149b80
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 r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x140149c1a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140149c04
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140149be1
mov qword [rsi], rdi
call fcn.14013d7b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x140149c1e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14013d7b0
mov rcx, qword [rsi]
call fcn.14012a160
mov qword [rsi], 0
jmp 0x140149bcf
mov byte [rsi + 8], 0
int3

Function at 0x140149e20
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14036c038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140385a70]
mov ecx, dword [0x14037df2c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140149e80
mov rsi, qword [0x140385a68]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14018f840
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140385a70]
call fcn.14018e120
cmp dword [0x140385a70], 0xffffffff
jne 0x140149e5c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140191990
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14018dfc4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140385ab8]
mov ecx, dword [0x14037df2c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140149f40
lea r8, [0x140385a88]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.1400aed50
mov qword [0x140385a68], rsi
lea rcx, [0x140385a70]
call fcn.14018e1b8
jmp 0x140149e5c
lea rcx, [0x140385ab8]
call fcn.14018e120
cmp dword [0x140385ab8], 0xffffffff
jne 0x140149f11
xorps xmm0, xmm0
movups xmmword [0x140385aa8], xmm0
movups xmmword [0x140385a98], xmm0
movups xmmword [0x140385a88], xmm0
lea rcx, [0x140385a88]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140385ab8]
call fcn.14018e1b8
jmp 0x140149f11
Function at 0x14014be90
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
cmp rdx, r9
mov r10, r9
cmovb r10, rdx
xor eax, eax
test r10, r10
je 0x14014bef5
xor r11d, r11d
mov rdi, qword [r8 + r11*8]
mov rsi, qword [rcx + r11*8]
mov rbx, rsi
xor rbx, rdi
mov r14d, eax
lea rax, [rbx - 1]
mov r15, rsi
sub r15, rdi
xor r15, rsi
or r15, rbx
not rbx
and rax, rbx
sar rax, 0x3f
xor r15, rsi
sar r15, 0x3f
or r15, 1
and r14d, eax
not rax
and rax, r15
or rax, r14
inc r11
cmp r10, r11
jne 0x14014beab
cmp rdx, r9
jb 0x14014bf04
ja 0x14014bf28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
xor ecx, ecx
or rcx, qword [r8 + rdx*8]
inc rdx
cmp r9, rdx
jne 0x14014bf06
mov rdx, rcx
not rdx
dec rcx
and rcx, rdx
sar rcx, 0x3f
not ecx
or eax, ecx
jmp 0x14014befc
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rdx, r9
jne 0x14014bf2b
mov rcx, r8
not rcx
dec r8
and r8, rcx
sar r8, 0x3f
xor eax, 1
and eax, r8d
xor eax, 1
jmp 0x14014befc