joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140020e80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [rcx - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [rbp - 1]
vmovups xmm15, xmmword [rcx - 0x70]
lea r12, [rcx - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x140020fa0
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x140020ee0
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x140020ee0
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rdi]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rdi + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rdi + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rdi + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rdi + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rdi + 0x50]
lea rdi, [rdi + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rsi], xmm9
vmovups xmmword [rsi + 0x10], xmm10
vmovups xmmword [rsi + 0x20], xmm11
vmovups xmmword [rsi + 0x30], xmm12
vmovups xmmword [rsi + 0x40], xmm13
vmovups xmmword [rsi + 0x50], xmm14
lea rsi, [rsi + 0x60]
repz ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x140020ee0
Function at 0x14002e8c0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14002e909
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002e927
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002e901
mov qword [rsi], rdi
call fcn.14003e3b0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov word [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x14002e95a
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14003e3b0
mov r14, qword [rsi]
mov rcx, qword [0x14013bd18]
test rcx, rcx
je 0x14002e94c
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x14002e8ef
call fcn.1400b6d10
mov rcx, qword [0x14013bd18]
jmp 0x14002e93b
int3
Function at 0x140031750
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14013d440], 0
jne 0x14003178d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140031780
mov dword [rdi], eax
mov dword [0x14013d448], eax
mov qword [0x14013d440], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x14003d5f0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov qword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140137758]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14003d647
jnp 0x14003d6ac
ucomisd xmm0, xmm6
jne 0x14003d653
jnp 0x14003d7e6
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x140111f60]
subpd xmm1, xmmword [0x140111f70]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140117e58]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079ea0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov r12d, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140137768]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003d7ed
mov eax, dword [0x140137778]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003d827
rdtsc
mov r14, rax
mov r15, rdx
xor edi, edi
lea rbx, [rsp + 0x30]
mov qword [rbx], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rbp, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rbx], rdi
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rbp, qword [0x140137770]
movq xmm0, rbp
punpckldq xmm0, xmmword [0x140111f60]
subpd xmm0, xmmword [0x140111f70]
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
addsd xmm1, xmm0
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140117e50]
ucomisd xmm2, xmm1
ja 0x14003d647
shl r15, 0x20
or r14, r15
sub r14, qword [0x140137760]
movq xmm2, r14
punpckldq xmm2, xmmword [0x140111f60]
subpd xmm2, xmmword [0x140111f70]
movapd xmm0, xmm2
unpckhpd xmm0, xmm2
addsd xmm0, xmm2
divsd xmm0, xmm1
movsd qword [0x140137758], xmm0
jmp 0x14003d647
xor eax, eax
jmp 0x14003d685
lea rcx, [0x140137768]
call fcn.140076f64
cmp dword [0x140137768], 0xffffffff
jne 0x14003d6f6
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140137760], rdx
lea rcx, [0x140137768]
call fcn.140076f04
jmp 0x14003d6f6
lea rcx, [0x140137778]
call fcn.140076f64
cmp dword [0x140137778], 0xffffffff
jne 0x14003d71b
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140137770], rax
lea rcx, [0x140137778]
call fcn.140076f04
jmp 0x14003d71b
Function at 0x14003ede0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14013bc90]
cmp rdi, 1
jbe 0x14003ee3d
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003ee26
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rcx, qword [rsi]
test rcx, rcx
je 0x14003ee35
lock sub dword [rcx + 8], 1
je 0x14003ee92
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14013bc90]
call fcn.1400498e0
test al, al
je 0x14003ee86
mov qword [0x14013bc98], 0
lea rbx, [0x14013bc90]
lea rdi, [0x14013bc98]
mov rcx, rdi
xor edx, edx
call fcn.14003f000
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400498c0
jmp 0x14003edf7
mov rdi, qword [0x14013bc90]
jmp 0x14003edf7
add rcx, 8
add rcx, 0xfffffffffffffff8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14003eeb0
Function at 0x14003f000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
mov eax, 0x1040
call fcn.140079e30
sub rsp, rax
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x1038], rax
mov eax, 0xffffffff
mov qword [rcx], rax
mov ecx, dword [0x140134758]
cmp ecx, 0xffffffff
je 0x14003f049
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14003f0c4
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140134758]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14003f1b1
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14003f273
lea rbx, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call fcn.14007c4d0
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
mov rsi, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rsi
mov ecx, 0x1000
call fcn.140077350
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rbx
call fcn.14007be20
mov ecx, dword [rsp + 0x2c]
or rdi, 3
mov rdx, rdi
call rsi
mov eax, dword [0x14013bb68]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003f21a
mov rbx, qword [0x14013bb60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14003f260
mov rcx, qword [0x14013a358]
inc rcx
mov edx, 0x100
lea rax, [0x14013a360]
nop word [rax + rax]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14003f14a
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14003f14a
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x14003f120
jmp 0x14003f16f
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x14013a358], rdi
mov dword [r15], edi
mov eax, dword [rax + rcx*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 0x14003f26d
cmp eax, 0x100
jge 0x14003f270
mov rcx, qword [rsp + 0x1038]
xor rcx, rsp
call fcn.140079ea0
mov rax, r15
add rsp, 0x1040
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [rsp + 0x2c]
call fcn.1400a6f90
test al, al
je 0x14003f276
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14003f1f4
mov eax, 0xffffffff
lock cmpxchg dword [0x140134758], ecx
je 0x14003f064
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [0x140134758]
mov dword [rsp + 0x2c], ecx
jmp 0x14003f064
lea rcx, [rsp + 0x2c]
call fcn.1400a6f90
test al, al
je 0x14003f279
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14003f279
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsFree]
mov ecx, dword [rsp + 0x2c]
jmp 0x14003f1cc
lea rcx, [0x14013bb68]
call fcn.140076f64
cmp dword [0x14013bb68], 0xffffffff
jne 0x14003f0e9
mov ecx, 8
call fcn.140076ec8
mov rdi, rax
mov rcx, rax
call fcn.1400587c0
mov qword [0x14013bb60], rdi
lea rcx, [0x14013bb68]
call fcn.140076f04
jmp 0x14003f0e9
mov rcx, rbx
call fcn.14003e480
jmp 0x14003f101
int3
int3
int3
int3
int3
Function at 0x14003f280
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov qword [rcx], rdx
test rdx, rdx
je 0x14003f296
lock inc dword [rdx + 8]
mov qword [rsi + 8], rdx
mov rdi, qword [0x14013bc90]
cmp rdi, 1
jbe 0x14003f325
lea rbx, [rsi + 8]
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003f3bb
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rbx
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rdi, qword [0x14013bca8]
cmp rdi, 1
jbe 0x14003f372
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14003f3ce
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x14013bc90]
call fcn.1400498e0
test al, al
je 0x14003f3e1
mov qword [0x14013bc98], 0
lea rbx, [0x14013bc90]
lea rdi, [0x14013bc98]
mov rcx, rdi
xor edx, edx
call fcn.14003f000
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400498c0
jmp 0x14003f2a7
lea rcx, [0x14013bca8]
call fcn.1400498e0
test al, al
je 0x14003f3ed
mov qword [0x14013bcb0], 0
lea rbx, [0x14013bca8]
lea rdi, [0x14013bcb0]
mov rcx, rdi
xor edx, edx
call fcn.14003f000
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400498c0
jmp 0x14003f2eb
test rbx, rbx
je 0x14003f2da
call fcn.140006d10
jmp 0x14003f2c1
test rsi, rsi
je 0x14003f31a
call fcn.140006d10
jmp 0x14003f301
mov rdi, qword [0x14013bc90]
jmp 0x14003f2a7
mov rdi, qword [0x14013bca8]
jmp 0x14003f2eb

Function at 0x140040060
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x14013d410]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400400c2
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400400fe
movsxd rcx, dword [0x14013d408]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14013d40c]
jne 0x1400400fe
mov rax, qword [rax + rcx]
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14013d410]
call fcn.140076f64
cmp dword [0x14013d410], 0xffffffff
jne 0x140040089
mov qword [0x14013d408], 0
lea rcx, [0x14013d408]
xor edx, edx
call fcn.14003f000
lea rcx, [0x14013d410]
call fcn.140076f04
jmp 0x140040089
xor eax, eax
jmp 0x1400400b6
Function at 0x140041380
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x14013bd50]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14004145c
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004149f
movsxd rcx, dword [0x14013bd48]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14013bd4c]
jne 0x14004149f
mov rdi, qword [rax + rcx]
cmp byte [rsi], 0
jne 0x1400413f1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
mov rax, qword [rdi]
test rax, rax
js 0x1400414a6
cmp dword [rdi + 0x14], 1
jne 0x1400414b0
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x1400414ef
movabs rax, 0xbfffffffffffffff
lock and qword [rdi], rax
mov rsi, qword [rsi + 8]
mov rcx, qword [rdi + 8]
test rcx, rcx
jne 0x14004150d
mov rax, qword [rdi]
movabs rcx, 0x6000000000000000
and rcx, rax
movabs rax, 0xffffffffffffff
and rsi, rax
or rsi, rcx
mov qword [rdi], rsi
add dword [rdi + 0x14], 0xffffffff
jmp 0x1400413e9
lea rcx, [0x14013bd50]
call fcn.140076f64
cmp dword [0x14013bd50], 0xffffffff
jne 0x1400413af
mov qword [0x14013bd48], 0
lea rcx, [0x14013bd48]
xor edx, edx
call fcn.14003f000
lea rcx, [0x14013bd50]
call fcn.140076f04
jmp 0x1400413af
xor edi, edi
jmp 0x1400413e4
call fcn.1400f8060
jmp 0x1400413fd
cmp byte [rsi + 0x10], 0
je 0x140041422
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400414dc
mov rbx, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rbx
or rcx, rax
mov qword [rdi], rcx
movabs rax, 0x4000000000000000
lock or qword [rdi], rax
jmp 0x140041422
mov rbx, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rbx
or rcx, rax
mov qword [rdi], rcx
jmp 0x140041414
mov rbx, qword [rdi]
call qword [rcx + 8]
movabs rcx, 0xff00000000000000
and rcx, rbx
or rcx, rax
mov qword [rdi], rcx
jmp 0x140041433
Function at 0x140048350
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xd0
movaps xmmword [rsp + 0xc0], xmm6
mov edi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x60]
mov qword [rbx + 0x50], r13
movaps xmm6, xmmword [0x1401146a0]
movaps xmmword [rbx + 0x40], xmm6
movaps xmmword [rbx + 0x30], xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
lea rdx, str.WriteAtCurrentPos
lea r8, str..._.._base_files_file_win.cc
lea r12, [rsp + 0x40]
mov rcx, r12
mov r9d, 0x88
call fcn.1400498a0
xor esi, esi
mov rcx, rbx
mov rdx, r12
xor r8d, r8d
call fcn.140048980
test edi, edi
js 0x14004849a
lea rbx, [rsp + 0x40]
mov dword [rbx], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
mov rdx, r14
mov r8d, edi
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [rbx]
test byte [0x140133270], 0x19
jne 0x140048458
lea rcx, [rsp + 0x60]
call fcn.140043ae0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140079ea0
mov eax, esi
movaps xmm6, xmmword [rsp + 0xc0]
add rsp, 0xd0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], r13
movaps xmmword [rdi], xmm6
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x30], 0
lea r8, [0x140133270]
lea r9, [0x140118c76]
mov rcx, rdi
mov dl, 0x45
call fcn.1400371b0
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x140048421
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140048421
mov esi, 0xffffffff
jmp 0x140048418
Function at 0x14004fef0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [rcx + 0x18], 0
je 0x14004ffb1
mov eax, dword [0x14013d928]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140050015
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [0x14013d928]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140050058
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14004ffa5
movsxd rcx, dword [0x14013d920]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x14013d924]
movsxd rdx, dword [0x14013d920]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rbx, qword [rsi]
mov rdi, qword [rsi + 8]
cmp rbx, rdi
jne 0x14004ffcf
cmp qword [rsi], 0
jne 0x140050003
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140079ea0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
lea r14, [rsp + 0x28]
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rbx + 0x28], 0
mov rax, qword [rcx]
lea rdx, [rbx + 8]
mov r8, r14
call qword [rax]
add rbx, 0x38
cmp rbx, rdi
je 0x14004ffb1
jmp 0x14004ffd4
mov rcx, rsi
call fcn.1400adf30
mov rcx, qword [rsi]
call fcn.140076eb8
jmp 0x14004ffb7
lea rcx, [0x14013d928]
call fcn.140076f64
cmp dword [0x14013d928], 0xffffffff
jne 0x14004ff3a
mov qword [0x14013d920], 0
lea rcx, [0x14013d920]
xor edx, edx
call fcn.14003f000
lea rcx, [0x14013d928]
call fcn.140076f04
jmp 0x14004ff3a
lea rcx, [0x14013d928]
call fcn.140076f64
cmp dword [0x14013d928], 0xffffffff
jne 0x14004ff6b
mov qword [0x14013d920], 0
lea rcx, [0x14013d920]
xor edx, edx
call fcn.14003f000
lea rcx, [0x14013d928]
call fcn.140076f04
jmp 0x14004ff6b
Function at 0x140053ba0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov eax, dword [0x1401376f8]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140053c03
mov rax, qword [0x1401376f0]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140079ea0
mov eax, esi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401376f8]
call fcn.140076f64
cmp dword [0x1401376f8], 0xffffffff
jne 0x140053bdd
lea rsi, [rsp + 0x6c]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14007c4d0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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.140076ec8
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140137730]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140053cbc
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r8d, edi
call fcn.140006120
mov qword [0x1401376f0], rsi
lea rcx, [0x1401376f8]
call fcn.140076f04
jmp 0x140053bdd
lea rcx, [0x140137730]
call fcn.140076f64
cmp dword [0x140137730], 0xffffffff
jne 0x140053c94
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movups xmmword [0x140137720], xmm2
movups xmmword [0x140137710], xmm1
movups xmmword [0x140137700], xmm0
lea rcx, [0x140137730]
call fcn.140076f04
jmp 0x140053c94
Function at 0x14005a6f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005a72e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14005a727
call fcn.140006d10
jmp 0x14005a70e

Function at 0x14005da00
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov eax, dword [0x1401376f8]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005da62
mov rsi, qword [0x1401376f0]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.140079ea0
mov rax, rsi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1401376f8]
call fcn.140076f64
cmp dword [0x1401376f8], 0xffffffff
jne 0x14005da3d
lea rsi, [rsp + 0x6c]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14007c4d0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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.140076ec8
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140137730]
mov ecx, dword [0x140134a78]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005db1b
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r8d, edi
call fcn.140006120
mov qword [0x1401376f0], rsi
lea rcx, [0x1401376f8]
call fcn.140076f04
jmp 0x14005da3d
lea rcx, [0x140137730]
call fcn.140076f64
cmp dword [0x140137730], 0xffffffff
jne 0x14005daf3
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movups xmmword [0x140137720], xmm2
movups xmmword [0x140137710], xmm1
movups xmmword [0x140137700], xmm0
lea rcx, [0x140137730]
call fcn.140076f04
jmp 0x14005daf3

Function at 0x14005e720
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140134758]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005e754
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x14005e754
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14005e74e
Function at 0x140062800
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x140131038]
xor rax, rsp
mov qword [rsp + 0x28], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
mov edx, 8
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140062851
mov rsi, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140079ea0
mov rax, rsi
add rsp, 0x30
pop rsi
ret
int3