joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003afd8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edx, ecx
mov edi, 0x104
mov ecx, edi
call fcn.140046670
mov rdx, rax
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ebp, ebp
movsxd rbx, eax
test eax, eax
je 0x14003b027
lea edx, [rbx - 1]
movsxd r8, edx
lea eax, [rbp + 0x5c]
cmp word [rsi + r8*2], ax
je 0x14003b027
mov word [rsi + rbx*2], ax
inc ebx
sub edi, ebx
mov ecx, edi
call fcn.140046700
movsxd rax, ebx
mov rbx, qword [rsp + 0x30]
mov word [rsi + rax*2], bp
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14003b04c
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x14017e9b8], 0
jne 0x14003b0b2
lea rcx, [0x14017e9b8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14003b09e
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x14017e9c0]
imul qword [0x14017e9b8]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x14017e9b8], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x14017e9b8], 0
jne 0x14003b0b2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x14003b0d8
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x14017e9c0]
cqo
idiv qword [0x14017e9b8]
add rsp, 0x28
ret

Function at 0x14003d81c
Capabilities:
Get file size
Read file on windows

Disassembly:
xor r8d, r8d
jmp 0x14003d824
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, rdx
xor ebx, ebx
mov r14, rcx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], pe_nt_image_headers64
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14003d8e7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x14017cc88]
xor edx, edx
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14003d8de
lea r9, [rsp + 0x78]
mov qword [rsp + 0x20], rbx
mov r8d, edi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003d8cc
cmp dword [rsp + 0x78], edi
jne 0x14003d8cc
mov r8d, edi
mov rdx, rsi
mov rcx, r14
call fcn.14003ee24
mov rbx, rax
mov rcx, qword [0x14017cc88]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140043b74
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
test rcx, rcx
je 0x140043be9
call qword [rcx + 0xb0]
mov edx, dword [rbx + 0xf4]
mov rdi, rax
mov dword [rbx + 0x108], edx
mov edx, dword [rbx + 0xf8]
mov dword [rbx + 0x10c], edx
test rax, rax
jne 0x140043be9
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140043bc1
xor edx, edx
mov rcx, rbx
call rax
mov rcx, qword [0x14017cc88]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1401806e0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140180700], 0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x140043c30
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1401806e0], eax
add rsp, 0x28
ret

Function at 0x140043d2c
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x140180700]
test rbx, rbx
je 0x140043d85
mov rcx, rbx
call qword [rbx + 0xb8]
mov rax, qword [rbx + 0xe0]
test rax, rax
je 0x140043d5d
mov edx, 1
mov rcx, rbx
call rax
mov rcx, qword [0x14017cc88]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [0x1401806e0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
and qword [0x140180700], 0
add rsp, 0x20
pop rbx
ret
Function at 0x140045380
Capabilities:
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x14017cc88]
mov edx, 8
mov r8d, 0x1c0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [0x1401806e0]
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov qword [0x140180700], rbx
and dword [rbx + 0x11c], 0
or eax, 0xffffffff
mov dword [rbx + 0x118], 0xffffff
mov dword [rbx + 0x120], eax
mov dword [rbx + 0x124], eax
lea rax, [0x140043f30]
mov qword [rbx], rax
lea rax, [0x140043f60]
mov qword [rbx + 8], rax
lea rax, [0x1400450b4]
mov qword [rbx + 0x10], rax
lea rax, [0x140044008]
mov qword [rbx + 0x18], rax
lea rax, [0x1400446f8]
mov qword [rbx + 0x20], rax
lea rax, [0x140044680]
mov qword [rbx + 0x28], rax
lea rax, [0x1400446d0]
mov qword [rbx + 0x30], rax
lea rax, [0x1400446e4]
mov qword [rbx + 0x38], rax
lea rax, [fcn.14004476c]
mov qword [rbx + 0x40], rax
lea rax, [0x140044264]
mov qword [rbx + 0x48], rax
lea rax, [fcn.14004427c]
mov qword [rbx + 0x50], rax
lea rax, [0x140044100]
mov qword [rbx + 0x58], rax
lea rax, [0x1400445dc]
mov qword [rbx + 0x60], rax
lea rax, [0x1400444e8]
mov qword [rbx + 0x68], rax
lea rax, [0x140044804]
mov qword [rbx + 0x70], rax
lea rax, [0x14004493c]
mov qword [rbx + 0x78], rax
lea rax, [0x140044a1c]
mov qword [rbx + 0x80], rax
lea rax, [0x140044ad4]
mov qword [rbx + 0x88], rax
lea rax, [0x140044c2c]
mov qword [rbx + 0x90], rax
lea rax, [0x140044cac]
mov qword [rbx + 0x98], rax
lea rax, [0x140044da0]
mov qword [rbx + 0xa0], rax
lea rax, [0x140044fc4]
mov qword [rbx + 0xa8], rax
lea rax, [0x14004513c]
mov qword [rbx + 0xb0], rax
lea rax, [0x140045224]
mov qword [rbx + 0xb8], rax
lea rax, [0x1400452c0]
mov qword [rbx + 0xc0], rax
lea rax, [0x14004531c]
mov qword [rbx + 0xc8], rax
mov rax, rbx
mov dword [rbx + 0xe8], 1
mov dword [rbx + 0xec], 7
add rsp, 0x20
pop rbx
ret
Function at 0x140050ef0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
movsxd r10, ecx
mov rdi, r9
mov ebp, r10d
mov r9d, edx
imul ebp, edx
xor r14d, r14d
mov ebx, edx
mov r12, r8
mov qword [rsp + 0x10], r9
mov r11, r10
lea rsi, [r10*4]
mov dword [rsp], ebp
movsxd r8, ebp
test edx, edx
jle 0x140050f92
lea eax, [r10 + r10]
mov rdx, r12
movsxd r15, eax
lea rbp, [r10*8]
dec r15
mov r13d, r9d
lea r15, [rdi + r15*4]
movss xmm0, dword [rdx + r8*4]
lea eax, [r14 + r14]
addss xmm0, dword [rdx]
movsxd rcx, eax
add r14d, r10d
movss dword [rdi + rcx*4], xmm0
movss xmm0, dword [rdx]
subss xmm0, dword [rdx + r8*4]
add rdx, rsi
movss dword [r15], xmm0
add r15, rbp
sub r13, 1
jne 0x140050f59
mov ebp, dword [rsp]
jmp 0x140050f97
mov qword [rsp + 0x10], r9
cmp r10d, 2
jl 0x14005113e
je 0x1400510f7
test ebx, ebx
jle 0x1400510f1
mov r9, qword [rsp + 0xa0]
lea rax, [r10 + r10]
mov rdx, r10
mov qword [rsp + 0x38], rax
neg rdx
mov qword [rsp + 8], rbx
shl rdx, 2
lea r14, [r10*8]
xor r15d, r15d
lea r13, [rdi - 4]
mov rcx, r12
lea rbp, [r14 + rdi]
sub rcx, rdi
mov rax, rbx
cmp r11, 2
jle 0x1400510c2
lea rax, [r9 + 4]
mov r14, r13
mov qword [rsp + 0x28], rax
mov rax, r8
mov r10, qword [rsp + 0x28]
sub rax, r15
shl rax, 2
sub rax, rdi
add rax, r12
mov qword [rsp + 0x30], rax
lea rax, [r11 - 3]
mov rbx, qword [rsp + 0x30]
mov r11, rbp
shr rax, 1
inc rax
movss xmm2, dword [rbx + r14 + 0xc]
add r14, 8
movaps xmm3, xmm2
sub r11, 8
mulss xmm2, dword [r10 - 4]
movss xmm1, dword [rbx + r14]
mulss xmm3, dword [r10]
movaps xmm0, xmm1
mulss xmm0, dword [r10 - 4]
mulss xmm1, dword [r10]
add r10, 8
addss xmm3, xmm0
subss xmm2, xmm1
movaps xmm0, xmm2
addss xmm0, dword [rcx + r14 + 4]
movss dword [r14 + 4], xmm0
movaps xmm0, xmm3
subss xmm2, dword [rcx + r14 + 4]
movss dword [r11], xmm2
addss xmm0, dword [rcx + r14]
movss dword [r14], xmm0
movss xmm1, dword [rcx + r14]
subss xmm1, xmm3
movss dword [r11 - 4], xmm1
sub rax, 1
jne 0x14005102d
movsxd r10, dword [rsp + 0x80]
mov rax, qword [rsp + 8]
mov r11, r10
lea r14, [r10*8]
add r15, qword [rsp + 0x38]
add r13, r14
add rbp, r14
add rcx, rdx
add r8, r11
sub rax, 1
mov qword [rsp + 8], rax
jne 0x140050feb
mov ebx, dword [rsp + 0x88]
mov r9, qword [rsp + 0x10]
mov ebp, dword [rsp]
test r10b, 1
jne 0x14005113e
lea eax, [r10 - 1]
test ebx, ebx
jle 0x14005113e
add eax, ebp
lea rbx, [r11*8]
movsxd rcx, eax
lea rdx, [rsi + rdi]
movsxd r11, r10d
sub r11, rcx
lea r8, [r12 + rcx*4]
movss xmm0, dword [r8]
xorps xmm0, xmmword [0x1401354c0]
movss dword [rdx], xmm0
mov eax, dword [r8 + r11*4 - 4]
add r8, rsi
mov dword [rdx - 4], eax
add rdx, rbx
sub r9, 1
jne 0x14005111a
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14005dd40
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r9d, r8d
mov r10, rdx
lea rbx, [0x140143be0]
cmp r8d, 8
jl 0x14005de12
mov r11d, r9d
shr r11, 3
mov eax, r11d
neg eax
lea r9d, [r9 + rax*8]
nop dword [rax]
movzx eax, byte [r10 + 1]
movzx r8d, byte [r10]
shl r8, 8
or r8, rax
movzx eax, byte [r10 + 2]
shl r8, 8
or r8, rax
movzx eax, byte [r10 + 3]
shl r8, 8
or r8, rax
mov eax, ecx
xor r8, rax
mov rax, r8
shr rax, 0x10
movzx ecx, al
mov rax, r8
shr rax, 8
movzx edx, al
mov rax, r8
shr rax, 0x18
mov ecx, dword [rbx + rcx*4 + 0x1800]
xor ecx, dword [rbx + rdx*4 + 0x1400]
xor ecx, dword [rbx + rax*4 + 0x1c00]
movzx eax, byte [r10 + 6]
xor ecx, dword [rbx + rax*4 + 0x400]
movzx eax, byte [r10 + 5]
xor ecx, dword [rbx + rax*4 + 0x800]
movzx eax, byte [r10 + 4]
xor ecx, dword [rbx + rax*4 + 0xc00]
movzx eax, byte [r10 + 7]
add r10, 8
xor ecx, dword [rbx + rax*4]
movzx eax, r8b
xor ecx, dword [rbx + rax*4 + 0x1000]
sub r11, 1
jne 0x14005dd70
test r9d, r9d
je 0x14005de3d
nop word [rax + rax]
movzx eax, byte [r10]
lea r10, [r10 + 1]
mov edx, ecx
shr rdx, 0x18
xor rdx, rax
shl ecx, 8
xor ecx, dword [rbx + rdx*4]
sub r9d, 1
jne 0x14005de20
mov rbx, qword [rsp + 8]
mov eax, ecx
ret
Function at 0x1400b1a60
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15, r8
mov ebp, edx
mov r14, rcx
test rcx, rcx
je 0x1400b1c7a
test rbx, rbx
je 0x1400b1c7a
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x78]
test rdi, rdi
je 0x1400b1ab4
mov rax, qword [rdi + 8]
test rax, rax
je 0x1400b1ac6
mov rdx, qword [rdi]
mov ecx, 0x30
call rax
jmp 0x1400b1abe
mov ecx, 0x30
call fcn.1400d65e0
mov rsi, rax
test rax, rax
jne 0x1400b1ae4
mov eax, 0xfffffffc
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
mov rax, qword [rsp + 0x70]
mov qword [rsi + 8], rax
lea rax, [rsi + 0x10]
mov qword [rsi], rbx
xor ebx, ebx
test rax, rax
je 0x1400b1b5d
test rdi, rdi
je 0x1400b1b39
cmp qword [rdi], rbx
jne 0x1400b1b17
cmp qword [rdi + 0x18], rbx
jne 0x1400b1b1d
cmp qword [rdi + 8], rbx
jne 0x1400b1b17
cmp qword [rdi + 0x10], rbx
je 0x1400b1b39
cmp qword [rdi + 0x18], rbx
je 0x1400b1b5d
cmp qword [rdi + 8], rbx
jne 0x1400b1b29
cmp qword [rdi + 0x10], rbx
je 0x1400b1b5d
movups xmm0, xmmword [rdi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x10], xmm1
jmp 0x1400b1b5d
mov qword [rax], rbx
lea rcx, [0x140062650]
mov qword [rax + 8], rcx
lea rcx, [0x140062660]
mov qword [rax + 0x10], rcx
lea rcx, [0x1400625d0]
mov qword [rax + 0x18], rcx
lea rax, [rsp + 0x50]
mov r9, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400b1da0]
mov rdx, r15
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r14], rax
mov r8, rax
test rax, rax
jne 0x1400b1bcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ac1c0
mov ebx, eax
test eax, eax
je 0x1400b1c73
test rdi, rdi
je 0x1400b1bc0
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x1400b1bc8
mov rdx, qword [rdi]
mov rcx, rsi
call r8
mov eax, ebx
jmp 0x1400b1acb
mov rcx, rsi
call fcn.1400d65e8
mov eax, ebx
jmp 0x1400b1acb
lea eax, [rbp + 5]
cmp eax, 6
ja case.0x1400b1bee.2
lea rdx, [0x140000000]
cdqe
mov ecx, dword [rdx + rax*4 + 0xb1c90]
add rcx, rdx
jmp rcx
mov ebx, 0xfffffff1
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400b1acb
mov ebx, 0xfffffffe
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400b1acb
mov ebx, 0xffffffff
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400b1acb
mov ebx, 1
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400b1acb
mov ebx, 2
mov rcx, r8
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400b1acb
mov ebx, 0xf
mov edx, ebx
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
jmp 0x1400b1acb
mov rbx, qword [rsp + 0x68]
mov eax, 0xfffffffe
add rsp, 0x30
pop r15
pop r14
pop rbp
ret
Function at 0x1400d64f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400d6518
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400d6518
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400f6ad4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400d6380
sub rsp, rax
mov rax, qword [0x1401785a8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001d8c8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400f6b23
mov rax, rbp
jmp 0x1400f6c2b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x17daf0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140021294
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x17daf0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400f6c27
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400f6c27
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140021294
test rax, rax
js 0x1400f6c27
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400f6c27
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400f6c19
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400f6c19
cmp byte [rcx], 0xd
jne 0x1400f6bff
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400f6c0e
cmp byte [rcx + 1], 0xa
jne 0x1400f6c0e
inc rcx
jmp 0x1400f6c0e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x178ea0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400f6be1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400f6c2b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400d5f20
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x140108f20
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140108f36
mov al, 1
jmp 0x140108f96
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140108f47
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140108f94
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000de2c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140108f94
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140108f94
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140108f94
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140108f96
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14010dd8c
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.14002129c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002129c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14010dedc
cmp rax, 0xffffffffffffffff
je 0x14010dedc
xor edi, edi
test rbp, rbp
jle 0x14010de87
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400097fc
mov rbx, rax
test rax, rax
jne 0x14010de14
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14010de7d
mov edx, 0x8000
mov ecx, r14d
call fcn.140004598
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.14001e784
cmp eax, 0xffffffff
je 0x14010de5d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14010de24
mov edx, r15d
mov ecx, r14d
call fcn.140004598
jmp 0x14010de7d
cmp byte [rsi + 0x38], dil
je 0x14010de74
cmp dword [rsi + 0x34], 5
jne 0x14010de74
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14010de7d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140008fc4
jmp 0x14010def0
jns 0x14010def0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002129c
cmp rax, 0xffffffffffffffff
jne 0x14010dea8
cmp byte [rsi + 0x30], dil
je 0x14010def0
mov edi, dword [rsi + 0x2c]
jmp 0x14010def0
mov ecx, r14d
call fcn.14000de2c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14010def0
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 0x14010def0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14010dee9
mov eax, dword [rsi + 0x2c]
jmp 0x14010deee
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002129c
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 0x140001640
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x14000165f
lea ecx, [rbx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x20
pop rbx
ret
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140001674
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000168e
and eax, 0x410
cmp eax, 0x410
je 0x14000169d
lea rdx, [0x1400011d0]
mov rcx, rbx
call fcn.1400012c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x20
pop rbx
ret

Function at 0x1400016c0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebx, ebx
xor eax, eax
lock cmpxchg dword [0x140027058], ebx
mov ecx, eax
jne 0x140001722
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140001715
lea rdx, str.RemoveDllDirectory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [rbx + 2]
test rax, rax
jne 0x14000171a
mov ecx, 1
mov eax, ecx
xchg dword [0x140027058], eax
cmp ecx, 1
jne 0x1400018b0
mov qword [rsp + 0x260], rbp
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x268], rsi
xor edx, edx
mov qword [rsp + 0x270], rdi
mov r8d, 0x208
mov qword [rsp + 0x248], r14
mov qword [rsp + 0x240], r15
call fcn.140007690
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1400018ac
cmp word [rsp + 0x20], bx
je 0x1400018ac
mov ebp, ebx
lea rax, [rsp + 0x20]
mov rsi, rbx
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], bx
jne 0x1400017a0
mov r15d, 0x5c
test rdi, rdi
je 0x1400017d3
movzx eax, word [rsp + rdi*2 + 0x1e]
mov rbx, rdi
cmp r15w, ax
je 0x1400017d3
mov ecx, 0x2f
cmp cx, ax
je 0x1400017d3
lea ebp, [rcx - 0x2e]
lea rbx, [rdi + 1]
add rbx, 0xc
je 0x1400018ac
lea rbx, [rbx*2 + 2]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1400018ac
test rdi, rdi
je 0x140001821
lea r8, [rdi + rdi]
mov rcx, rax
lea rdx, [rsp + 0x20]
call fcn.140009d30
mov rsi, rdi
test ebp, ebp
je 0x14000182d
mov word [r14 + rsi*2], r15w
inc rsi
movups xmm0, xmmword [str.Wtsapi32.dll]
mov rcx, r14
movups xmmword [r14 + rsi*2], xmm0
movsd xmm1, qword [0x140020988]
movsd qword [r14 + rsi*2 + 0x10], xmm1
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, rbx
mov r14, qword [rsp + 0x248]
mov rdi, qword [rsp + 0x270]
mov rsi, qword [rsp + 0x268]
mov rbp, qword [rsp + 0x260]
mov r15, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400059f0
add rsp, 0x250
pop rbx
ret
xor eax, eax
jmp 0x14000186b
xor edx, edx
lea rcx, str.Wtsapi32.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x140001893
Function at 0x140002bd0
Capabilities:
Check if file exists
Create directory
Delete directory
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x240
mov rax, qword [0x140025008]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20a
call fcn.140007690
xor ebp, ebp
lea rdx, [rsp + 0x20]
xor r9d, r9d
xor ecx, ecx
mov ebx, ebp
lea r8d, [rbp + 0x26]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140002d9d
lea rdx, str.Zoom_bin
lea rcx, [rsp + 0x20]
call fcn.140004a10
mov rdi, rax
test rax, rax
je 0x140002d9d
lea rdx, str.Zoom.exe
mov qword [rsp + 0x250], rsi
mov rcx, rax
call fcn.140004a10
mov rsi, rax
test rax, rax
je 0x140002d1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002d1c
test al, 0x10
jne 0x140002d1c
mov rcx, rsi
call fcn.1400055a0
test eax, eax
je 0x140002d1c
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rdx, str.temp
mov rcx, rdi
call fcn.140004a10
mov rbx, rax
test rax, rax
je 0x140002d1c
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140002cf8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002ce0
and eax, 0x410
cmp eax, 0x410
je 0x140002cef
lea rdx, [0x1400011d0]
mov rcx, rbx
call fcn.1400012c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140002d12
mov rcx, rbx
call fcn.14000c8e4
mov rbx, rbp
mov rcx, rdi
call fcn.14000c8e4
jmp 0x140002d29
mov rcx, rdi
call fcn.14000c8e4
test rsi, rsi
je 0x140002d31
mov rcx, rsi
call fcn.14000c8e4
mov rsi, qword [rsp + 0x250]
test rbx, rbx
je 0x140002d9d
mov rcx, qword [0x140027008]
test rcx, rcx
je 0x140002d90
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bp
jne 0x140002d51
cmp rax, 4
jb 0x140002d90
lea rcx, [rcx + rax*2]
mov r8d, 4
add rcx, 0xfffffffffffffff8
lea rdx, str..msi
call fcn.14000c4a0
test eax, eax
jne 0x140002d90
lea rdx, str.temp.msi
mov rcx, rbx
call fcn.140004a10
mov rbp, rax
mov rcx, rbx
call fcn.14000c8e4
mov rax, rbp
jmp 0x140002d9f
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400059f0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret