joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400253c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400253de
mov al, 1
jmp 0x14002543e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400253ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002543c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140020100
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002543c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14002543c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002543c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002543e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140026f10
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, [0x140055970]
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 0x140026f67
cmp word [rdx], r13w
jne 0x140026f67
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140026f6c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140027091
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400270b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140026fa5
mov rdx, r9
mov word [rbx], cx
jmp 0x140026fcc
cmp r9, r8
jae 0x140026fdc
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 0x140026f86
jmp 0x140027091
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 0x140027086
cmp dword [rsp + 0x80], esi
je 0x140027086
lea r8, [0x140055970]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002705e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14002702e
mov word [rbx], r13w
jmp 0x14002708e
mov ecx, 0xd
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 0x14002703b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002708e
cmp word [rsp + 0x70], r13w
jne 0x14002706b
cmp rbx, r14
je 0x140027028
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140026e30
cmp word [rsp + 0x70], r13w
je 0x140027091
mov ecx, 0xd
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, [0x140055970]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14002708b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140027091
Function at 0x140028b7c
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.140026e30
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140026e30
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ccc
cmp rax, 0xffffffffffffffff
je 0x140028ccc
xor edi, edi
test rbp, rbp
jle 0x140028c77
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001b9cc
mov rbx, rax
test rax, rax
jne 0x140028c04
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028c6d
mov edx, 0x8000
mov ecx, r14d
call fcn.14001af40
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.140020b38
cmp eax, 0xffffffff
je 0x140028c4d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028c14
mov edx, r15d
mov ecx, r14d
call fcn.14001af40
jmp 0x140028c6d
cmp byte [rsi + 0x38], dil
je 0x140028c64
cmp dword [rsi + 0x34], 5
jne 0x140028c64
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028c6d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001c11c
jmp 0x140028ce0
jns 0x140028ce0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140026e30
cmp rax, 0xffffffffffffffff
jne 0x140028c98
cmp byte [rsi + 0x30], dil
je 0x140028ce0
mov edi, dword [rsi + 0x2c]
jmp 0x140028ce0
mov ecx, r14d
call fcn.140020100
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ce0
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 0x140028ce0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028cd9
mov eax, dword [rsi + 0x2c]
jmp 0x140028cde
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140026e30
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 0x140029a30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029a58
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029a58
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001000
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
xor eax, eax
lea rcx, [rbp - 0x19]
mov rbx, r8
mov qword [rbp - 0x39], rax
xor edx, edx
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
lea r8d, [rax + 0x68]
call fcn.180003630
mov dword [rbp - 0x19], 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x41]
mov edx, 0xb
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800010ff
mov rcx, qword [rbp - 0x41]
lea rax, [rbp - 0x49]
mov qword [rsp + 0x40], rax
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
and dword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea edx, [r9 + 2]
call qword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
je 0x1800010f5
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x39]
mov qword [rsp + 0x50], rax
xor r9d, r9d
lea rax, [rbp - 0x19]
mov r8, rbx
mov qword [rsp + 0x48], rax
xor edx, edx
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x10
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1800010eb
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x110]
add rsp, 0x100
pop rbp
ret
Function at 0x140004884
Capabilities:
Delete directory

Disassembly:
push rbp
push r15
xor rax, rax
push rax
push rax
sub rsp, 0x28
call fcn.140012b50
mov r15, qword [0x140020514]
cmp r15, 1
jne 0x140004953
push qword [0x140020604]
pop rcx
call fcn.14000dd04
mov r15, rax
and r15, r15
jle 0x1400048e9
mov rcx, qword [0x140020604]
call fcn.14000dd0c
mov rcx, qword [0x140020604]
call fcn.14000dd20
or rax, rax
je 0x1400048e9
mov rbp, qword [0x14002060c]
push qword [rbp + 0x10]
pop rcx
call fcn.14000e1bc
jmp 0x1400048c6
push qword [0x1400205f4]
pop rcx
call fcn.14000dd04
mov qword [rsp + 0x28], rax
mov r15, qword [rsp + 0x28]
and r15, r15
jle 0x140004953
push 5
push 0
push 1
push qword [0x1400205f4]
pop rcx
pop rdx
pop r8
pop r9
call fcn.140009060
mov rcx, qword [0x1400205f4]
call fcn.14000dd0c
mov rcx, qword [0x1400205f4]
call fcn.14000dd20
or rax, rax
je 0x140004953
mov rbp, qword [0x1400205fc]
push qword [rbp + 0x14]
pop rcx
call sub.KERNEL32.dll_RemoveDirectoryW
jmp 0x140004930
mov rax, 1
jmp 0x14000495f
add rsp, 0x38
pop r15
pop rbp
ret

Function at 0x140006b38
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
call sub.KERNEL32.dll_GetLastError
mov qword [rsp + 0x38], rax
mov rcx, qword [0x14001f190]
call sub.KERNEL32.dll_TlsGetValue
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_SetLastError
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
retf 0x35bb
sbb ah, ah
mov esp, ebp
invalid
sub bh, byte [rsi + 0x3e79f903]
stosd dword [rdi], eax
cld
xchg ebx, eax
pushfq
ja 0x14003f73d
add al, 0xa2
adc al, 0x3c
cmpsd dword [rsi], dword [rdi]
pop rbx
xlatb
xchg esi, eax
cmp dword [rbx + rax*4 + 0x1d], 0xddfcb7d3
movsb byte [rdi], byte [rsi]
mov byte [rbx + 0x37], r12b
jb 0x14003f6dc
in eax, 7
neg byte [rdi + 0x64270635]
invalid
invalid
lahf
xor eax, 0xc5642706
cli
mov cl, 0x28
xor dword [rbx - 0x49], ecx
add cl, ah
invalid
xchg ecx, eax
jge case.0x140007272.6
jbe 0x14003f6ba
invalid
mov esp, 0x20d5d9bc
xchg edi, eax
mov ecx, 0xb60d2bc
or ebp, dword [rbx]
invalid
call 0xf7cd42fb
invalid
invalid
sbb bh, byte [rsi - 0xc]
pop rsp
pop rdx
cmpsb byte [rsi], byte [rdi]
sar byte [rdx - 0x15], cl
movabs al, byte [0x6b7123002dfc58b9]
clc
and al, 0x7a
push rsp
sbb eax, 0xae6ad690
invalid
Function at 0x140004014
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x10
lea r10, [0x140080800]
xor ebx, ebx
mov r8, r10
mov edx, ebx
mov r9d, 8
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
mov edx, ecx
xor edx, eax
sub r9, 1
jne 0x14000402e
mov dword [r8], edx
inc ebx
add r8, 4
cmp ebx, 0x100
jb 0x140004026
lea rbx, [0x140080c00]
mov r8d, 0x700
mov edx, dword [rbx - 0x400]
movzx ecx, dl
shr edx, 8
xor edx, dword [r10 + rcx*4]
mov dword [rbx], edx
lea rbx, [rbx + 4]
sub r8, 1
jne 0x140004067
xor ecx, ecx
lea rax, [0x140004160]
mov qword [0x1400807f8], rax
mov r11d, 0xf00
xor eax, eax
cpuid
mov r8d, ebx
mov r9d, ecx
mov r10d, edx
xor ecx, ecx
mov eax, 1
cpuid
mov ebx, eax
mov ecx, eax
shr ebx, 8
and eax, 0xf0
mov edx, ebx
and ecx, r11d
and edx, 0xff000
and ebx, r11d
or ebx, eax
or edx, ecx
shr edx, 8
lea rax, [0x1400481f0]
shr ebx, 4
xor ecx, ecx
cmp dword [rax - 8], r8d
jne 0x1400040ed
cmp dword [rax - 4], r10d
jne 0x1400040ed
cmp dword [rax], r9d
je 0x1400040fa
inc ecx
add rax, 0xc
cmp ecx, 3
jae 0x140004151
jmp 0x1400040dc
test ecx, ecx
je 0x140004127
sub ecx, 1
je 0x140004114
cmp ecx, 1
jne 0x140004151
cmp edx, 6
jb 0x140004151
jne 0x140004143
cmp ebx, 0xf
jmp 0x140004141
cmp edx, 5
jb 0x140004151
jne 0x140004143
cmp ebx, 6
jb 0x140004151
cmp ebx, 0xa
je 0x140004151
jmp 0x140004143
cmp edx, 6
jb 0x140004151
jne 0x140004143
cmp ebx, 0x36
ja 0x140004143
movabs rcx, 0x6000c010000000
bt rcx, rbx
jb 0x140004151
lea rax, [0x140004230]
mov qword [0x1400807f8], rax
add rsp, 0x10
pop rbx
ret

Function at 0x140005314
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x140005382
and qword [r8], 0
mov r15d, 0x400000
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
mov r8d, ebx
cmp rbx, r15
mov rdx, rsi
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x140005398
test edx, edx
je 0x140005382
test rbx, rbx
jne 0x140005342
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140005384
Function at 0x1400053a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, qword [r8]
mov rdi, r8
mov rsi, rdx
mov r14, rcx
test rbx, rbx
je 0x14000540e
and qword [r8], 0
mov r15d, 0x400000
and dword [rsp + 0x60], 0
lea r9, [rsp + 0x60]
mov rcx, qword [r14]
mov r8d, ebx
cmp rbx, r15
mov rdx, rsi
cmova r8d, r15d
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [rsp + 0x60]
add qword [rdi], rdx
add rsi, rdx
sub rbx, rdx
test eax, eax
je 0x140005424
test edx, edx
je 0x14000540e
test rbx, rbx
jne 0x1400053ce
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140005410
Function at 0x140009a5c
Capabilities:
Check if file exists

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x260
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov r15, r8
xor r13d, r13d
mov qword [r8], r13
mov r9d, 0x104
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x140009ad1
movzx eax, word [rcx + rdx]
test ax, ax
je 0x140009ad1
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x140009aaf
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r13w
lea r8, [0x14004b840]
lea rcx, [rsp + 0x40]
call fcn.140007fec
lea r8, [rsp + 0x40]
xor edx, edx
mov ebx, 0x1f0003
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rdi, rax
mov qword [rsp + 0x28], rax
test rax, rax
setne r12b
test rax, rax
jne 0x140009b40
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x140009c33
mov rcx, qword [rbp + 0x188]
mov edx, 0xc9
call fcn.1400098a4
mov esi, eax
jmp 0x140009c36
mov dword [rsp + 0x24], r13d
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x24]
mov rcx, rdi
call fcn.14000991c
mov esi, eax
test eax, eax
jns 0x140009b76
mov rcx, qword [rbp + 0x188]
mov r9d, eax
mov edx, 0xcf
call fcn.140009884
jmp 0x140009c36
lea r8, [0x14004b848]
lea rcx, [rsp + 0x40]
call fcn.140007fec
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
setne r14b
test rax, rax
jne 0x140009bbf
mov rcx, qword [rbp + 0x188]
mov edx, 0xd5
call fcn.1400098a4
mov esi, eax
jmp 0x140009be7
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000991c
mov esi, eax
test eax, eax
jns 0x140009c06
mov rcx, qword [rbp + 0x188]
mov r9d, eax
mov edx, 0xd7
call fcn.140009884
nop
test r14b, r14b
je 0x140009c36
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x188]
test eax, eax
je 0x140009c8c
jmp 0x140009c36
test r14b, r14b
je 0x140009c1f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x188]
test eax, eax
je 0x140009c97
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r15], rax
mov esi, r13d
test r12b, r12b
je 0x140009c4f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x188]
test eax, eax
je 0x140009c81
mov eax, esi
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14003fd00
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov edx, 0x93e
call fcn.1400098c0
nop
mov edx, 0x93e
call fcn.1400098c0
nop
mov edx, 0x93e
call fcn.1400098c0
int3
Function at 0x14000bd6c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x250
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor ebp, ebp
mov rsi, rcx
xor eax, eax
lock cmpxchg dword [0x140080360], ebp
mov ecx, eax
jne 0x14000bde3
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14000bdd6
lea rdx, str.RemoveDllDirectory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [rbp + 2]
test rax, rax
jne 0x14000bddb
mov ecx, 1
mov eax, ecx
xchg dword [0x140080360], eax
cmp ecx, 1
jne 0x14000be55
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000bec9
cmp word [rsp + 0x20], bp
je 0x14000bec9
lea rcx, [rsp + 0x20]
call fcn.14000a384
mov rdi, rax
test rax, rax
je 0x14000bec9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14000be6d
xor edx, edx
lea rcx, str.User32.dll
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rbx, rbx
je 0x14000bec9
mov rcx, rsi
call qword [sym.imp.USER32.dll_IsWindow]
mov rcx, rbx
test eax, eax
je 0x14000be9f
lea rdx, str.GetDpiForWindow
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000bec9
mov rcx, rsi
call qword [case.0x1400178c5.0]
jmp 0x14000beb7
lea rdx, str.GetDpiForSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000bec9
call qword [case.0x1400178c5.0]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140053110]
jmp 0x14000bf00
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
mov edx, 0x58
mov rbx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rdx, rbx
xor ecx, ecx
movd xmm6, eax
cvtdq2pd xmm6, xmm6
call qword [sym.imp.USER32.dll_ReleaseDC]
divsd xmm6, qword [0x140053110]
movaps xmm0, xmm6
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14003fd00
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rdi
ret
Function at 0x140017190
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
mov r15d, 1
xor r9d, r9d
mov edx, r15d
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov r14, rax
xor ebx, ebx
test rax, rax
jne 0x1400171e8
or eax, 0xffffffff
jmp 0x14001727c
cmp dword [rsi + 0x50], ebx
jne 0x140017271
lea rcx, [rsi + 0x28]
call qword [sym.imp.Cmmlib.dll_public:_wchar_t_const____ptr64___cdecl_Cmm::CStringT_wchar_t_::c_str_void_const___ptr64]
mov rcx, rax
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 0x1388
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
mov r9d, 0xff
xor r8d, r8d
mov edx, 0x40000003
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001735d
mov qword [rbp - 0x29], r14
lea rdx, [rbp - 0x41]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140017265
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1400172a4
cmp eax, 0x3e5
je 0x1400172c6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or ebx, 0xffffffff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14003fd00
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x140017265
jmp 0x1400172c6
mov edx, 0x32
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400172cf
mov eax, dword [rsi + 0x50]
test eax, eax
je 0x1400172b4
jmp 0x14001733d
mov eax, r15d
inc r15d
mov dword [rbp - 0x59], eax
mov qword [rbp - 0x51], rdi
mov qword [rbp - 0x49], rsi
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_7f68b6e091607ea3bcac2b399d286e91___void___.0
mov qword [rbp - 0x19], rax
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rbp - 0x11], xmm0
movsd xmm1, qword [rbp - 0x49]
movsd qword [rbp - 1], xmm1
lea rax, [rbp - 0x19]
mov qword [rbp + 0x1f], rax
lea rcx, [rsi + 0x58]
lea r8, [rbp - 0x19]
xor edx, edx
call qword [sym.imp.zUnifyWebView.dll_public:_void___cdecl_TaskSyncWindow::HandTask_int__class_std::function_void____cdecl___void___const____ptr64____ptr64]
nop
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x140017336
mov rax, qword [rcx]
lea rdx, [rbp - 0x19]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400178c5.0]
or rdi, 0xffffffffffffffff
mov eax, dword [rsi + 0x50]
test eax, eax
je 0x1400171f1
cmp rdi, 0xffffffffffffffff
je 0x140017271
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140017271
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400171e0
Function at 0x14001e6e0
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x140071010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r14, rdx
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x250
call sub.VCRUNTIME140.dll_memset
or rbx, 0xffffffffffffffff
xor r15d, r15d
mov rdi, rbx
test rbp, rbp
je 0x14001e86b
mov rax, rbx
inc rax
cmp word [rbp + rax*2], r15w
jne 0x14001e733
test rax, rax
je 0x14001e86b
lea r8, [0x14004bb64]
mov rcx, rbp
call fcn.14001e4d4
mov rsi, rax
test rax, rax
jne 0x14001e76c
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001e85b
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, rbx
je 0x14001e847
test byte [rsp + 0x20], 0x10
je 0x14001e7bd
lea rdx, [0x14004d328]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14001e831
lea rdx, [0x14004d340]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14001e831
lea r8, [rsp + 0x4c]
mov rcx, rbp
call fcn.14001e4d4
mov rbx, rax
test rax, rax
je 0x14001e831
test byte [rsp + 0x20], 0x10
mov rcx, rax
je 0x14001e80c
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001e7f3
and eax, 0x410
cmp eax, 0x410
je 0x14001e801
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call fcn.14001e6e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14001e81d
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rax, r14
call qword [case.0x1400178c5.0]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14001e786
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x14001e878
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14003fd00
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret