joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004d220
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x140134038]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x140116fc0]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x14004d30c
lea rdi, [rsp + 0x70]
xor ebx, ebx
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.140099740
mov dword [rdi - 0xc], 0x11c
mov r14, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call r14
mov rcx, rax
mov edx, 1
mov r8b, 3
call r14
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call r14
mov qword [rdi - 8], 6
mov word [rdi + 0x108], 0
lea rcx, [rsp + 0x64]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x14004d313
xorps xmm0, xmm0
lea rbx, [rsp + 0x40]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov dword [rbx], 0x18
xor ecx, ecx
call fcn.14004d370
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], 1
jmp 0x14004d313
mov edi, 3
xor ebx, ebx
cmp byte [rsi + 0x17], 0
jns 0x14004d31c
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rbx
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400975f0
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140051190
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x140134038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400512dd
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x140116fc0]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x14015e008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x14015e008]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x14015e008]
test r14, r14
je 0x140051273
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x140051263
lea r14, [rsi + 0xf8]
mov eax, dword [0x1401521b4]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400512e1
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x1400512ae
lea rcx, section..text
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400975f0
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400512c0
bt eax, 9
jae 0x140051301
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x1400512ae
lea rcx, [0x140004520]
jmp 0x1400512ab
call fcn.1400fdbc0
lea rax, [0x1400fe3c0]
test r14, r14
je 0x1400512ae
lea rcx, [0x1400fda80]
jmp 0x1400512ab

Function at 0x140054680
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140134038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400546e0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400546e9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400975f0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400546c9
int3
mov rcx, qword [rcx + 8]
jmp 0x140054680
Function at 0x1400546f0
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 [0x140134038]
xor rax, rsp
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x140054793
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140054782
cmp eax, 0xffffffff
je 0x1400547a7
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400975f0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x140054731
mov eax, dword [rsp + 0x2c]
jmp 0x140054762
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140054764
int3

Function at 0x140054c80
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x140134038]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.140054b80
test rax, rax
jne 0x140054cbf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x140054cdb
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400975f0
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.140077f80
test al, al
jne 0x140054ced
xor esi, esi
jmp 0x140054cbf
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.1400ed8b0
lea rcx, [rsp + 0x40]
lea rdx, [0x1401225c2]
mov r8d, 0xc
call fcn.1400c9730
mov rcx, rsi
call fcn.1400ed930
jmp 0x140054ce9

Function at 0x1400551c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x140134038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400546e0
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400546e9
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400975f0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400546c9
int3
mov rcx, qword [rcx + 8]
jmp 0x140054680
Function at 0x1400580c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140134038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140058090]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140152238]
lea rdx, [0x140057f30]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400581d0
cmp dword [0x140152240], 0
jne 0x1400581c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140152244]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14005816c
mov ecx, 1
mov edx, 0x28
call fcn.140064da0
test rax, rax
je 0x1400581c0
mov r14, rax
mov ecx, dword [0x140152244]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400581b8
lea r15, [0x140152248]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140152250]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400975f0
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.140064d00
mov rcx, rsi
mov rax, rdi
call qword [0x14015e008]
xor esi, esi
jmp 0x14005819c
call fcn.1400ab9f0
int3

Function at 0x14005c670
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140143d20]
cmp ecx, 0xffffffff
je 0x14005c74a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x14005c74a
mov eax, dword [0x140153af0]
mov ecx, dword [0x140143db8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005c754
mov rbx, qword [0x140153ae8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14005c79a
mov rax, qword [0x1401522d0]
inc rax
xor ecx, ecx
lea rdx, [0x1401522e0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x14005c7a7
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140153ae0]
inc ecx
mov dword [0x140153ae0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x1401522d0], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x14005c7bc
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14005c7c0
jmp 0x14005c69a
lea rcx, [0x140153af0]
call fcn.140096060
cmp dword [0x140153af0], 0xffffffff
jne 0x14005c6bf
mov ecx, 8
call fcn.140095ee8
mov rbx, rax
mov rcx, rax
call fcn.14006df80
mov qword [0x140153ae8], rbx
lea rcx, [0x140153af0]
call fcn.1400960f8
jmp 0x14005c6bf
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x14005c6d7
inc rcx
cmp rcx, 0x100
jne 0x14005c6ea
jmp 0x14005c730
int3
Function at 0x14005c7c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140097590
sub rsp, rax
mov rax, qword [0x140134038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140143d20]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x14005c874
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14005c8d7
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140099740
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140095f7c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140099090
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.1400975f0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.14005cb30
test al, al
je 0x14005c8da
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x14005c8b2
mov eax, 0xffffffff
lock cmpxchg dword [0x140143d20], ecx
je 0x14005c7f8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140143d20]
mov dword [rsp + 0x2c], ecx
jmp 0x14005c7f8
lea rcx, [rsp + 0x2c]
call fcn.14005cb30
test al, al
je 0x14005c8dd
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14005c8dd
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14005c88b
int3
int3
int3

Function at 0x14005c8f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x140134038]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, dword [0x140143d20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
je 0x14005c939
and rax, 0xfffffffffffffffc
je 0x14005c96c
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x14005c96c
mov rsi, qword [rax + rcx]
jmp 0x14005c96e
lea rdx, [0x140125db2]
lea r8, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r9d, 0x1f6
call fcn.1400781f0
movabs rdx, 0x141dd76000
mov rcx, rsi
call fcn.1400f7910
xor esi, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400975f0
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x14005c990
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140143d20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14005c9ce
mov rcx, qword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 8]
mov rdx, qword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x14005c9c7
call fcn.14005c7c0
jmp 0x14005c9ae

Function at 0x14005cb30
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 0x14005cb45
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x14006d970
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140134038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140151780]
mov ecx, dword [0x140143db8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006d9d0
mov rsi, qword [0x140151778]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400975f0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140151780]
call fcn.140096060
cmp dword [0x140151780], 0xffffffff
jne 0x14006d9ac
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140099740
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.140095ee8
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401517c8]
mov ecx, dword [0x140143db8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006da90
lea r8, [0x140151798]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140032e50
mov qword [0x140151778], rsi
lea rcx, [0x140151780]
call fcn.1400960f8
jmp 0x14006d9ac
lea rcx, [0x1401517c8]
call fcn.140096060
cmp dword [0x1401517c8], 0xffffffff
jne 0x14006da61
xorps xmm0, xmm0
movups xmmword [0x1401517b8], xmm0
movups xmmword [0x1401517a8], xmm0
movups xmmword [0x140151798], xmm0
lea rcx, [0x140151798]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401517c8]
call fcn.1400960f8
jmp 0x14006da61
Function at 0x14006dae0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140134038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140151780]
mov ecx, dword [0x140143db8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006db41
mov rax, qword [0x140151778]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400975f0
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140151780]
call fcn.140096060
cmp dword [0x140151780], 0xffffffff
jne 0x14006db1c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140099740
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.140095ee8
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401517c8]
mov ecx, dword [0x140143db8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14006dc01
lea r8, [0x140151798]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140032e50
mov qword [0x140151778], rsi
lea rcx, [0x140151780]
call fcn.1400960f8
jmp 0x14006db1c
lea rcx, [0x1401517c8]
call fcn.140096060
cmp dword [0x1401517c8], 0xffffffff
jne 0x14006dbd2
xorps xmm0, xmm0
movups xmmword [0x1401517b8], xmm0
movups xmmword [0x1401517a8], xmm0
movups xmmword [0x140151798], xmm0
lea rcx, [0x140151798]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401517c8]
call fcn.1400960f8
jmp 0x14006dbd2

Function at 0x14006dd40
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 0x14006ddda
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14006ddc4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14006dda1
mov qword [rsi], rdi
call fcn.140078210
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 0x14006ddde
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140078210
mov rcx, qword [rsi]
call fcn.14006dc50
mov qword [rsi], 0
jmp 0x14006dd8f
mov byte [rsi + 8], 0
int3
Function at 0x14007c030
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 [0x140134038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.14007c750
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140151a38]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14007c08e
jnp 0x14007c0f4
ucomisd xmm0, xmm6
jne 0x14007c096
jnp 0x14007c0f0
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x140118d00]
subpd xmm1, xmmword [0x140118d10]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x14011efe8]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400975f0
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 0x14007c0c8
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 [0x140151a48]
mov ecx, dword [0x140143db8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007c209
mov eax, dword [0x140151a58]
mov ecx, dword [0x140143db8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14007c243
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 [0x140151a50]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x14011efe0]
ucomisd xmm2, xmm1
ja 0x14007c08e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x140151a40]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x140118d00]
subpd xmm0, xmmword [0x140118d10]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140151a38], xmm0
jmp 0x14007c08e
lea rcx, [0x140151a48]
call fcn.140096060
cmp dword [0x140151a48], 0xffffffff
jne 0x14007c13d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140151a40], rdx
lea rcx, [0x140151a48]
call fcn.1400960f8
jmp 0x14007c13d
lea rcx, [0x140151a58]
call fcn.140096060
cmp dword [0x140151a58], 0xffffffff
jne 0x14007c162
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140151a50], rax
lea rcx, [0x140151a58]
call fcn.1400960f8
jmp 0x14007c162
Function at 0x14008f0f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14008f11b
xor ecx, ecx
lea r9, [0x140122150]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x14008f100
ret

Function at 0x1400900e0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140134038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140058090]
mov qword [rsp + 0x20], rax
lea rcx, [0x140152238]
lea rdx, [0x140057f30]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140090174
cmp dword [0x140152240], 0
jne 0x140090170
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140152244]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140090170
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400975f0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140090158
call fcn.1400ab9f0
int3
Function at 0x140096970
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400969ba
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400969ba
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400969ba
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400969ba
cmp dword [rcx + 0x84], 0xe
jbe 0x1400969ba
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400969bc
xor al, al
add rsp, 0x28
ret

Function at 0x140096dfc
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140096e74
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140096e74
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140096e74
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140096e68
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140096e86
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140096e56
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140096e76

Function at 0x1400a5ae8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400a5b1f
call fcn.1400a8e14
mov dword [rax], 0x16
call fcn.1400aa68c
xor eax, eax
jmp 0x1400a5bad
mov rdx, r9
mov rcx, r8
call fcn.1400a5bd0
mov rbx, rax
test rax, rax
je 0x1400a5baa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400a5c40]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400a5b97
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a8e54
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400a5b7e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400a5b8d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140064d00
jmp 0x1400a5baa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400a5ba7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret