joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003dc20
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rsi, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x14003dc53
mov rax, qword [rsi + 8]
test rax, rax
je 0x14003dd47
bt ebx, 8
jae 0x14003dc6f
mov eax, ebx
and eax, 0x200
jne 0x14003dd47
cmp edi, 2
lea rax, [0x140124660]
lea rcx, [0x140124860]
cmove rcx, rax
cmp word [rcx], 0
jne 0x14003dd47
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [r14], 0
je 0x14003dd47
cmp byte [0x140124c60], 0
setne al
bt ebx, 8
jb 0x14003dd47
shr ebx, 9
and ebx, 1
or bl, al
je 0x14003dd47
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea r12, str.SOFTWARE
cmove r12, rax
movzx ebp, byte [rsi + 0x17]
test bpl, bpl
jns 0x14003dd66
mov r14, qword [rsi]
mov rbp, qword [rsi + 8]
mov edi, 1
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov r15, qword [r12 + 8]
mov r13, rbp
sub r13, r15
jb 0x14003dd34
mov rdx, qword [r12]
mov rcx, r14
mov r8, r15
call fcn.14009009c
test eax, eax
je 0x14003dd91
add r12, 0x28
inc rbx
cmp rbx, rdi
jb 0x14003dd14
cmp dword [rsp + 0x2c], 0
jne 0x14003dd6b
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140079a20
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14, rsi
jmp 0x14003dcf7
cmp byte [rsi + 0x17], 0
mov rax, rsi
jns 0x14003dd77
mov rax, qword [rsi]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, rsi
mov r8, qword [rsp + 0x38]
call fcn.1400cd020
jmp 0x14003dd47
movzx ecx, word [r14 + r15*2]
cmp ecx, 0x5c
je 0x14003dd9f
test ecx, ecx
jne 0x14003dd34
lea rax, [r14 + r15*2]
mov edx, dword [r12 + 0x10]
mov dword [rsp + 0x2c], edx
cmp edx, 1
je 0x14003ddce
cmp dword [rsp + 0x2c], 2
jne 0x14003dddf
lea rdx, str.WOW6432Node
mov qword [rsp + 0x38], rdx
mov rdx, rax
mov qword [rsp + 0x30], rax
jmp 0x14003dddf
lea rdx, str.WOW6432Node_
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], r14
cmp cx, 0x5c
jne 0x14003ddf8
lea r14, [rax + 2]
dec r13
cmp word [rax + 2], 0x5c
mov rax, r14
je 0x14003dde5
jmp 0x14003ddfb
mov r14, rax
mov rdi, qword [r12 + 0x20]
mov r12, qword [r12 + 0x18]
xor ebx, ebx
mov rbp, r13
jmp 0x14003dd3b
Function at 0x1400408d0
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 [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400408a0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140124de0]
lea rdx, [0x140040740]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400409e0
cmp dword [0x140124de8], 0
jne 0x1400409d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140124dec]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x14004097c
mov ecx, 1
mov edx, 0x28
call fcn.14004ba20
test rax, rax
je 0x1400409d0
mov r14, rax
mov ecx, dword [0x140124dec]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400409c8
lea r15, [0x140124df0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140124e00]
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.140079a20
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, r14
call fcn.14004b980
mov rcx, rsi
mov rax, rdi
call qword [0x140130008]
xor esi, esi
jmp 0x1400409ac
call fcn.14008d260
int3

Function at 0x140040e30
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 [0x14011b6e0]
cmp ecx, 0xffffffff
je 0x140040f0a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140040f0a
mov eax, dword [0x140126650]
mov ecx, dword [0x14011b748]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140040f14
mov rbx, qword [0x140126648]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140040f5a
mov rax, qword [0x140124e38]
inc rax
xor ecx, ecx
lea rdx, [0x140124e40]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140040f67
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x140126640]
inc ecx
mov dword [0x140126640], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140124e38], 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 0x140040f7c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140040f80
jmp 0x140040e5a
lea rcx, [0x140126650]
call fcn.14007865c
cmp dword [0x140126650], 0xffffffff
jne 0x140040e7f
mov ecx, 8
call fcn.1400785d4
mov rbx, rax
mov rcx, rax
call fcn.140056620
mov qword [0x140126648], rbx
lea rcx, [0x140126650]
call fcn.140078710
jmp 0x140040e7f
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140040e97
inc rcx
cmp rcx, 0x100
jne 0x140040eaa
jmp 0x140040ef0
int3
Function at 0x140040f80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400799c0
sub rsp, rax
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x14011b6e0]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140041034
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140041097
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14007bb70
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14007864c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14007b4d0
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.140079a20
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140044750
test al, al
je 0x14004109a
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140041072
mov eax, 0xffffffff
lock cmpxchg dword [0x14011b6e0], ecx
je 0x140040fb8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x14011b6e0]
mov dword [rsp + 0x2c], ecx
jmp 0x140040fb8
lea rcx, [rsp + 0x2c]
call fcn.140044750
test al, al
je 0x14004109d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x14004109d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x14004104b
int3
int3
int3

Function at 0x1400410b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14011b6e0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400410ee
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 0x1400410e7
call fcn.140040f80
jmp 0x1400410ce

Function at 0x140044750
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 0x140044765
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1400562d0
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 [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140056600
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140124250]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14005632e
jnp 0x140056394
ucomisd xmm0, xmm6
jne 0x140056336
jnp 0x140056390
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1400f1460]
subpd xmm1, xmmword [0x1400f1470]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1400f6298]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079a20
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 0x140056368
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 [0x140124260]
mov ecx, dword [0x14011b748]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400564a9
mov eax, dword [0x140124270]
mov ecx, dword [0x14011b748]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400564e3
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 [0x140124268]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1400f6290]
ucomisd xmm2, xmm1
ja 0x14005632e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x140124258]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1400f1460]
subpd xmm0, xmmword [0x1400f1470]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140124250], xmm0
jmp 0x14005632e
lea rcx, [0x140124260]
call fcn.14007865c
cmp dword [0x140124260], 0xffffffff
jne 0x1400563dd
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140124258], rdx
lea rcx, [0x140124260]
call fcn.140078710
jmp 0x1400563dd
lea rcx, [0x140124270]
call fcn.14007865c
cmp dword [0x140124270], 0xffffffff
jne 0x140056402
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140124268], rax
lea rcx, [0x140124270]
call fcn.140078710
jmp 0x140056402
Function at 0x140061640
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140124468]
mov ecx, dword [0x14011b748]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400616a0
mov rsi, qword [0x140124460]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140079a20
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140124468]
call fcn.14007865c
cmp dword [0x140124468], 0xffffffff
jne 0x14006167c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14007bb70
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.1400785d4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1401244b0]
mov ecx, dword [0x14011b748]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140061760
lea r8, [0x140124480]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140037e40
mov qword [0x140124460], rsi
lea rcx, [0x140124468]
call fcn.140078710
jmp 0x14006167c
lea rcx, [0x1401244b0]
call fcn.14007865c
cmp dword [0x1401244b0], 0xffffffff
jne 0x140061731
xorps xmm0, xmm0
movups xmmword [0x1401244a0], xmm0
movups xmmword [0x140124490], xmm0
movups xmmword [0x140124480], xmm0
lea rcx, [0x140124480]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401244b0]
call fcn.140078710
jmp 0x140061731
Function at 0x140062b10
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r9, 0x30
ja 0x140062be6
mov rsi, rcx
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
movups xmm2, xmmword [rdx + 0x20]
movaps xmmword [rsp + 0x40], xmm2
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
test r9, r9
jne 0x140062bea
xor eax, eax
lea rcx, [0x1400f9e20]
mov dl, byte [rax + rcx]
xor byte [rsp + rax + 0x20], dl
inc rax
cmp rax, 0x30
jne 0x140062b5e
lea rdi, [rsi + 0xf8]
mov ecx, 1
call fcn.140062170
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140062c02
call fcn.140003260
lea rax, [0x140001d60]
test rdi, rdi
je 0x140062bad
lea rcx, section..text
mov qword [rdi], rcx
mov qword [rsi + 0x100], rax
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x108], xmm0
mov qword [rsi + 0x118], 1
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140079a20
mov eax, esi
add rsp, 0x58
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140062bd0
xor eax, eax
mov cl, byte [r8 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r9, rax
je 0x140062b55
jmp 0x140062bec
bt eax, 9
jae 0x140062c22
call fcn.140004350
lea rax, [0x140004820]
test rdi, rdi
je 0x140062bad
lea rcx, [0x140004520]
jmp 0x140062baa
call fcn.1400d86b0
lea rax, [0x1400d8eb0]
test rdi, rdi
je 0x140062bad
lea rcx, [0x1400d8590]
jmp 0x140062baa
Function at 0x140062c50
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x140062da1
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1400f0930]
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 [0x140130008]
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 [0x140130008]
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 [0x140130008]
test r14, r14
je 0x140062d33
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x140062d23
lea r14, [rsi + 0xf8]
mov ecx, 1
call fcn.140062170
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x140062da5
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x140062d72
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.140079a20
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x140062d84
bt eax, 9
jae 0x140062dc5
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x140062d72
lea rcx, [0x140004520]
jmp 0x140062d6f
call fcn.1400d86b0
lea rax, [0x1400d8eb0]
test r14, r14
je 0x140062d72
lea rcx, [0x1400d8590]
jmp 0x140062d6f
Function at 0x140069c20
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 0x140069cba
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140069ca4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140069c81
mov qword [rsi], rdi
call fcn.14005c3b0
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 0x140069cbe
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14005c3b0
mov rcx, qword [rsi]
call fcn.140056080
mov qword [rsi], 0
jmp 0x140069c6f
mov byte [rsi + 8], 0
int3

Function at 0x14006d910
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400408a0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140124de0]
lea rdx, [0x140040740]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14006d9a4
cmp dword [0x140124de8], 0
jne 0x14006d9a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140124dec]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14006d9a0
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140079a20
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14006d988
call fcn.14008d260
int3

Function at 0x14006dc40
Capabilities:
Get thread local storage value

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

Function at 0x14006edd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14006edfb
xor ecx, ecx
lea r9, [0x1400fc590]
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 0x14006ede0
ret
Function at 0x140078f64
Capabilities:
Parse pe header

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

Function at 0x14007922c
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 0x1400792a4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400792a4
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 0x1400792a4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140079298
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400792b6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140079286
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 0x1400792a6

Function at 0x140087f18
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 0x140087f4f
call fcn.14008b1e4
mov dword [rax], 0x16
call fcn.14009b7f4
xor eax, eax
jmp 0x140087fdd
mov rdx, r9
mov rcx, r8
call fcn.140088000
mov rbx, rax
test rax, rax
je 0x140087fda
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140088070]
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 0x140087fc7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14008b224
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140087fae
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140087fbd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14004b980
jmp 0x140087fda
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140087fd7
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
Function at 0x140088570
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14009d144
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009d144
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400886c0
cmp rax, 0xffffffffffffffff
je 0x1400886c0
xor edi, edi
test rbp, rbp
jle 0x14008866b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14004ba20
mov rbx, rax
test rax, rax
jne 0x1400885f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140088661
mov edx, 0x8000
mov ecx, r14d
call fcn.14008d338
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400906d4
cmp eax, 0xffffffff
je 0x140088641
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140088608
mov edx, r15d
mov ecx, r14d
call fcn.14008d338
jmp 0x140088661
cmp byte [rsi + 0x38], dil
je 0x140088658
cmp dword [rsi + 0x34], 5
jne 0x140088658
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140088661
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14004b980
jmp 0x1400886d4
jns 0x1400886d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009d144
cmp rax, 0xffffffffffffffff
jne 0x14008868c
cmp byte [rsi + 0x30], dil
je 0x1400886d4
mov edi, dword [rsi + 0x2c]
jmp 0x1400886d4
mov ecx, r14d
call fcn.14008b63c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400886d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400886d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400886cd
mov eax, dword [rsi + 0x2c]
jmp 0x1400886d2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009d144
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret