joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001be20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
test rdx, rdx
mov rbx, rcx
mov rsi, rdx
je 0x14001bf48
cmp eax, 1
je 0x14001be7b
call fcn.14001ada0
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14001a720
mov r12d, dword [rbx]
test r12d, r12d
je 0x14001be90
cmp r12d, 1
jne 0x14001bf20
mov rcx, rbp
call fcn.14001aa10
test rdi, rdi
je 0x14001be7b
mov rcx, rdi
call fcn.14001b140
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x14001b220]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x14001bf88
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call r12
test rax, rax
je 0x14001bf70
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call r12
test rax, rax
je 0x14001bf60
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x14001be66
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, r12d
mov r8, rbx
lea rdx, [0x140e23812]
mov rcx, rax
call fcn.14001a1f0
jmp 0x14001be66
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14001b550
test rax, rax
jne 0x14001bf09
jmp 0x14001ff15
call fcn.14001b550
test rax, rax
jne 0x14001bee5
jmp 0x14001ff2e
call fcn.14001b550
test rax, rax
jne 0x14001bebf
jmp 0x14001ff24
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x14001c210
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c288
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.14001e820
cmp esi, dword [rbx + 0x48]
jae 0x14001c263
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x14001c263
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.14001e860
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.14001b550
mov rbx, rax
jmp 0x14001c23d
Function at 0x14001c2a0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c3b0
lea r14, [rbx + 0x68]
mov rcx, r14
call fcn.14001e820
cmp esi, dword [rbx + 0x48]
jae 0x14001c330
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r14
mov byte [rax + rsi], 1
call fcn.14001e860
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rbx + 0x50]
lea r15d, [rsi + 1]
movsxd r13, r15d
lea rdx, [r13*8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
test rax, rax
mov rdi, rax
je 0x14001c3bd
mov rcx, qword [rbx + 0x58]
mov rdx, r13
movq xmm6, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
movq xmm0, rax
test rax, rax
mov r13, rax
punpcklqdq xmm6, xmm0
je 0x14001c3bd
mov eax, dword [rbx + 0x48]
mov edx, r15d
lea rcx, [rdi + rax*8]
sub edx, eax
lea r8, [rdx*8]
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov edx, dword [rbx + 0x48]
mov r8d, r15d
lea rcx, [r13 + rdx]
sub r8d, edx
xor edx, edx
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
movaps xmmword [rbx + 0x50], xmm6
mov dword [rbx + 0x48], r15d
jmp 0x14001c2f4
call fcn.14001b550
mov rbx, rax
jmp 0x14001c2df
mov rcx, r14
call fcn.14001e860
mov eax, 0xc
jmp 0x14001c312

Function at 0x14001c440
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c468
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.14001b550
test rax, rax
jne 0x14001c45a
add rsp, 0x28
ret

Function at 0x14001c4d0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c4f8
add rax, 0x18
add rsp, 0x28
ret
call fcn.14001b550
test rax, rax
jne 0x14001c4ea
jmp 0x14001c4ee

Function at 0x14001c610
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140e29658]
test eax, eax
jne 0x14001c628
xor eax, eax
add rsp, 0x28
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c658
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x14001c61e
test byte [rax + 0x40], 3
je 0x14001c61e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x14001c620
call fcn.14001b550
test rax, rax
jne 0x14001c63e
jmp 0x14001c61e
Function at 0x14001c670
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c6b0
test ebx, ebx
jle 0x14001c6a0
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.14001b550
test rax, rax
jne 0x14001c68d
add rsp, 0x20
pop rbx
ret

Function at 0x14001c7a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x140e29658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1
Function at 0x14001c860
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c818
test byte [rbx + 0x40], 0xc
jne 0x14001c7cf
mov eax, dword [0x140e29658]
test eax, eax
jne 0x14001c7e0
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001a720
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x14001c803
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x14001c803
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x14001c82c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.14001aa10
call fcn.14001b550
test rax, rax
mov rbx, rax
jne 0x14001c7bf
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, qword [rbx + 0x30]
and eax, 0xfffffff3
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x14001c84a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.14001aa10
call fcn.14001c6c0
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x14001c8d0
call fcn.14001d9b0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x14001c908
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c960
test esi, esi
je 0x14001c8e6
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c940
mov edx, edi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14001c950
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.14001b4a0
mov ecx, dword [0x140020678]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
jne 0x14001c8a5
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c8be
call fcn.14001b550
jmp 0x14001c8e6
call fcn.14001b550
mov rbx, rax
jmp 0x14001c8a1

Function at 0x14001c970
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.14001b4a0
mov ecx, dword [0x140020678]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x14001c9e0
test esi, esi
je 0x14001c9c0
call fcn.14001c7a0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14001c9f0
mov edx, esi
call fcn.14001da60
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001c7a0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.14001c7a0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14001b550
mov rbx, rax
jmp 0x14001c991
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c9aa
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, [0x140048200]
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 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, [0x14004b850]
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, [0x14004b858]
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.140040100
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.0x1400179b5.0]
jmp 0x14000beb7
lea rdx, str.GetDpiForSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000bec9
call qword [case.0x1400179b5.0]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x140053290]
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 [0x140053290]
movaps xmm0, xmm6
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140040100
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 0x140017280
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 0x1400172d8
or eax, 0xffffffff
jmp 0x14001736c
cmp dword [rsi + 0x50], ebx
jne 0x140017361
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 0x14001744d
mov qword [rbp - 0x29], r14
lea rdx, [rbp - 0x41]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x140017355
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x140017394
cmp eax, 0x3e5
je 0x1400173b6
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.140040100
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 0x140017355
jmp 0x1400173b6
mov edx, 0x32
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1400173bf
mov eax, dword [rsi + 0x50]
test eax, eax
je 0x1400173a4
jmp 0x14001742d
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 0x140017426
mov rax, qword [rcx]
lea rdx, [rbp - 0x19]
cmp rcx, rdx
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x1400179b5.0]
or rdi, 0xffffffffffffffff
mov eax, dword [rsi + 0x50]
test eax, eax
je 0x1400172e1
cmp rdi, 0xffffffffffffffff
je 0x140017361
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140017361
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400172d0
Function at 0x14001e7d0
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 0x14001e95b
mov rax, rbx
inc rax
cmp word [rbp + rax*2], r15w
jne 0x14001e823
test rax, rax
je 0x14001e95b
lea r8, [0x14004bb74]
mov rcx, rbp
call fcn.14001e5c4
mov rsi, rax
test rax, rax
jne 0x14001e85c
lea ecx, [rax + 0xe]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001e94b
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, rbx
je 0x14001e937
test byte [rsp + 0x20], 0x10
je 0x14001e8ad
lea rdx, [0x14004d3a8]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14001e921
lea rdx, [0x14004d3c0]
lea rcx, [rsp + 0x4c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x14001e921
lea r8, [rsp + 0x4c]
mov rcx, rbp
call fcn.14001e5c4
mov rbx, rax
test rax, rax
je 0x14001e921
test byte [rsp + 0x20], 0x10
mov rcx, rax
je 0x14001e8fc
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001e8e3
and eax, 0x410
cmp eax, 0x410
je 0x14001e8f1
xor r8d, r8d
mov rdx, r14
mov rcx, rbx
call fcn.14001e7d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x14001e90d
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rax, r14
call qword [case.0x1400179b5.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 0x14001e876
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 0x14001e968
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140040100
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x280
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret