joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401087d0
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 [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x14024a8a8]
mov ecx, dword [0x14023c288]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401089bc
mov rsi, qword [0x14024a8a0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140108a02
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x14024a850], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor ebp, ebp
add ebx, dword [0x14024a854]
mov dword [0x14024a854], ebx
cmovne ebp, ecx
mov eax, dword [0x14024a858]
cmp ebp, eax
je 0x14010899b
test eax, eax
je 0x14010892c
mov rax, qword [0x14023c0e0]
lea rcx, [0x140108ab0]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x140108a0f
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 0x140108a7a
imul rax, rcx, 0xf4240
cqo
idiv qword [0x14024a8c0]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x14024a8b0]
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 [0x14024a860]
cmp r8, 2
jb 0x140108a31
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x14024a860], rax
mov ecx, dword [0x14024a858]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x14024a858], ebp
test ebx, ebx
je 0x14010899b
mov rax, qword [0x14023c0e0]
lea rcx, [0x140108ab0]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x140108a20
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 0x140108a49
imul rax, rcx, 0xf4240
cqo
idiv qword [0x14024a8c0]
mov qword [0x14024a8b0], rax
mov ecx, dword [0x14024a858]
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.140152880
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x14024a8a8]
call fcn.140151da0
cmp dword [0x14024a8a8], 0xffffffff
jne 0x14010880e
mov ecx, 8
call fcn.140151c20
mov rsi, rax
mov rcx, rax
call fcn.140101100
mov qword [0x14024a8a0], rsi
lea rcx, [0x14024a8a8]
call fcn.140151e38
jmp 0x14010880e
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140108826
mov rcx, rdi
call qword [0x14025e008]
mov rax, qword [rdi]
jmp 0x1401088c0
mov rcx, rdi
call qword [0x14025e008]
mov rax, qword [rdi]
jmp 0x140108988
cmp rcx, rax
je 0x140108919
add rcx, rdx
cmp rcx, 1
ja 0x140108919
jmp 0x140108aab
mov r8, qword [0x14024a8c0]
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 0x140108988
mov r8, qword [0x14024a8c0]
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 0x1401088bb
int3
Function at 0x140108b50
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 [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140108ea0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x14024a870]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x140108bae
jnp 0x140108c14
ucomisd xmm0, xmm6
jne 0x140108bb6
jnp 0x140108c10
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x140203670]
subpd xmm1, xmmword [0x140203680]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1402027e0]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140152880
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 0x140108be8
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 [0x14024a880]
mov ecx, dword [0x14023c288]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140108d29
mov eax, dword [0x14024a890]
mov ecx, dword [0x14023c288]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140108d63
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 [0x14024a888]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x140212418]
ucomisd xmm2, xmm1
ja 0x140108bae
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x14024a878]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x140203670]
subpd xmm0, xmmword [0x140203680]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x14024a870], xmm0
jmp 0x140108bae
lea rcx, [0x14024a880]
call fcn.140151da0
cmp dword [0x14024a880], 0xffffffff
jne 0x140108c5d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x14024a878], rdx
lea rcx, [0x14024a880]
call fcn.140151e38
jmp 0x140108c5d
lea rcx, [0x14024a890]
call fcn.140151da0
cmp dword [0x14024a890], 0xffffffff
jne 0x140108c82
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x14024a888], rax
lea rcx, [0x14024a890]
call fcn.140151e38
jmp 0x140108c82
Function at 0x140109130
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 0x1401091ca
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1401091b4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140109191
mov qword [rsi], rdi
call fcn.14011f3f0
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 0x1401091ce
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14011f3f0
mov rcx, qword [rsi]
call fcn.140107f20
mov qword [rsi], 0
jmp 0x14010917f
mov byte [rsi + 8], 0
int3
Function at 0x14011f1f0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14011f21a
call fcn.14011f3f0
cmp qword [rsi], r14
je 0x14011f249
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14011f268
cmp r15, 2
jb 0x14011f241
mov qword [rsi], r14
call fcn.14011f3f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [rdi + 8]
movups xmm1, xmmword [rdi + 0x18]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14011f3f0
mov rcx, qword [rsi]
call fcn.140107f20
mov qword [rsi], 0
jmp 0x14011f233

Function at 0x140124280
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov dword [rcx], eax
mov qword [rcx + 8], rax
mov ecx, dword [rdx]
mov dword [rsi], ecx
mov dword [rdx], eax
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x1401242b1
call fcn.14011f3f0
cmp qword [rsi + 8], rbx
je 0x1401242e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1401242f0
cmp r14, 2
jb 0x1401242db
mov qword [rsi + 8], rbx
call fcn.14011f3f0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14011f3f0
mov rcx, qword [rsi + 8]
call fcn.140107f20
mov qword [rsi + 8], 0
jmp 0x1401242cc

Function at 0x140124310
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov dword [rdx], 0
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], 0
lea r14, [rbx + 1]
cmp r14, 2
jb 0x140124341
call fcn.14011f3f0
cmp qword [rsi + 8], rbx
je 0x140124373
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140124380
cmp r14, 2
jb 0x14012436b
mov qword [rsi + 8], rbx
call fcn.14011f3f0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14011f3f0
mov rcx, qword [rsi + 8]
call fcn.140107f20
mov qword [rsi + 8], 0
jmp 0x14012435c
Function at 0x1401243a0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov dword [rcx], 1
xor eax, eax
mov qword [rcx + 8], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x1401243d2
call fcn.14011f3f0
cmp qword [rsi + 8], r14
je 0x140124404
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14012441f
cmp r15, 2
jb 0x1401243fc
mov qword [rsi + 8], r14
call fcn.14011f3f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140124437
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14011f3f0
mov rcx, qword [rsi + 8]
call fcn.140107f20
mov qword [rsi + 8], 0
jmp 0x1401243ed
call fcn.14011f3f0
mov rcx, qword [rdi]
call fcn.140107f20
mov qword [rdi], 0
jmp 0x140124410
Function at 0x140126150
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x14012629d
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1401fd270]
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 [0x14025e008]
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 [0x14025e008]
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 [0x14025e008]
test r14, r14
je 0x140126233
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x140126223
lea r14, [rsi + 0xf8]
mov eax, dword [0x14024aeb4]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1401262a1
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x14012626e
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.140152880
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x140126280
bt eax, 9
jae 0x1401262c1
call fcn.140004350
lea rax, [0x140004820]
test r14, r14
je 0x14012626e
lea rcx, [0x140004520]
jmp 0x14012626b
call fcn.1401d6c40
lea rax, [0x1401d7440]
test r14, r14
je 0x14012626e
lea rcx, [0x1401d6b00]
jmp 0x14012626b
Function at 0x140133270
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14013329b
xor ecx, ecx
lea r9, [0x140217c80]
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 0x140133280
ret
Function at 0x1401363c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400cb8d0]
mov qword [rsp + 0x20], rax
lea rcx, [0x14024b120]
lea rdx, [0x1400cb770]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140136454
cmp dword [0x14024b128], 0
jne 0x140136450
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14024b12c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140136450
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140152880
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140136438
call fcn.14016c3a0
int3
Function at 0x14014ee90
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov byte [rcx], 0
mov eax, dword [0x14023c288]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x1f8]
mov qword [rsi + 8], rcx
mov rcx, qword [rax + 0x1f8]
mov qword [rax + 0x1f8], rsi
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x38], 0
mov dword [rsi + 0x40], 0
mov byte [rsi + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x60], r9
test byte [0x14023b2c0], 9
jne 0x14014ef25
mov byte [rsi + 0x30], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140152880
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov byte [rsi + 0x30], 1
mov rax, qword [rdx]
mov rax, qword [rax + 8]
lea rdi, [rsp + 0x28]
mov rcx, rdx
mov rdx, rdi
call qword [0x14025e008]
mov rax, qword [rdi]
mov qword [rsi + 0x20], rax
jmp 0x14014ef0e

Function at 0x140152b30
Capabilities:
Parse pe header

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

Function at 0x140152fbc
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 0x140153034
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140153034
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 0x140153034
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140153028
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140153046
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140153016
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 0x140153036
Function at 0x140165f28
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 0x140165f5f
call fcn.1401693e8
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14016aa80
xor eax, eax
jmp 0x140165fed
mov rdx, r9
mov rcx, r8
call fcn.140166010
mov rbx, rax
test rax, rax
je 0x140165fea
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140166080]
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 0x140165fd7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140169428
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140165fbe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140165fcd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400e68b0
jmp 0x140165fea
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140165fe7
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 0x140166580
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.14016b2f8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14016b2f8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401666d0
cmp rax, 0xffffffffffffffff
je 0x1401666d0
xor edi, edi
test rbp, rbp
jle 0x14016667b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400e6950
mov rbx, rax
test rax, rax
jne 0x140166608
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140166671
mov edx, 0x8000
mov ecx, r14d
call fcn.14016c478
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.14016fc90
cmp eax, 0xffffffff
je 0x140166651
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140166618
mov edx, r15d
mov ecx, r14d
call fcn.14016c478
jmp 0x140166671
cmp byte [rsi + 0x38], dil
je 0x140166668
cmp dword [rsi + 0x34], 5
jne 0x140166668
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x140166671
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e68b0
jmp 0x1401666e4
jns 0x1401666e4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14016b2f8
cmp rax, 0xffffffffffffffff
jne 0x14016669c
cmp byte [rsi + 0x30], dil
je 0x1401666e4
mov edi, dword [rsi + 0x2c]
jmp 0x1401666e4
mov ecx, r14d
call fcn.14016983c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401666e4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1401666e4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401666dd
mov eax, dword [rsi + 0x2c]
jmp 0x1401666e2
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14016b2f8
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

Function at 0x140169e2c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14022c038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140169e76
call fcn.140169408
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.1401693e8
mov dword [rax], SafeArrayDestroy
call fcn.14016aa80
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140152880
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140169e81
lea eax, [rbx + 1]
jmp 0x140169e63
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x140169e61
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140169e63
Function at 0x14016c05c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14023d270]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14016c0b3
cmp word [rdx], r13w
jne 0x14016c0b3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14016c0b8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14016c1dd
mov r11d, SafeArrayDestroy
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14016c1fe
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14016c0f1
mov rdx, r9
mov word [rbx], cx
jmp 0x14016c118
cmp r9, r8
jae 0x14016c128
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14016c0d2
jmp 0x14016c1dd
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14016c1d2
cmp dword [rsp + 0x80], esi
je 0x14016c1d2
lea r8, [0x14023d270]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14016c1aa
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14016c17a
mov word [rbx], r13w
jmp 0x14016c1da
mov ecx, SafeArrayDestroy
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14016c187
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14016c1da
cmp word [rsp + 0x70], r13w
jne 0x14016c1b7
cmp rbx, r14
je 0x14016c174
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14016b2f8
cmp word [rsp + 0x70], r13w
je 0x14016c1dd
mov ecx, SafeArrayDestroy
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14023d270]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14016c1d7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14016c1dd