joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001baa0
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
test cl, cl
jne 0x14001bbce
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.1400ec680
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], bx
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], bx
jne 0x14001bb10
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x40]
call fcn.1400088b0
nop
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], 7
mov word [rsp + 0x20], bx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x80], 0
mov r8d, 6
lea rdx, str.adppid
lea rcx, [rbp - 0x80]
call fcn.140008ab0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.14001a690
nop
lea rcx, [rbp - 0x80]
call fcn.140008a50
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.140025150
cmp qword [rax + 0x18], 8
jb 0x14001bb9a
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
lea rcx, [rsp + 0x60]
call fcn.140008840
nop
lea rcx, [rsp + 0x20]
call fcn.140008840
nop
lea rcx, [rsp + 0x40]
call fcn.140008840
movzx eax, bl
jmp 0x14001bbd1
movzx eax, cl
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400e9d60
mov rbx, qword [rsp + 0x2d0]
add rsp, 0x2c0
pop rbp
ret
Function at 0x14001ca60
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov edi, 4
test ecx, ecx
cmovns edi, ecx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
jne 0x14001caaf
mov eax, 6
jmp 0x14001cc52
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.1400ec680
lea rdx, [rbp - 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xor esi, esi
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], si
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], si
jne 0x14001caf0
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.1400088b0
nop
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], 7
mov word [rsp + 0x60], si
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x40], 0
mov r8d, 8
lea rdx, str.adpdebug
lea rcx, [rsp + 0x40]
call fcn.140008ab0
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14001a690
nop
lea rcx, [rsp + 0x40]
call fcn.140008a50
nop
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140025150
cmp qword [rax + 0x18], 8
jb 0x14001cb7e
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140008840
nop
lea rcx, [rsp + 0x60]
call fcn.140008840
mov eax, 5
cmp ebx, 1
cmove edi, eax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], si
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x60], 0
mov esi, 6
mov r8d, esi
lea rdx, str.adpdev
lea rcx, [rsp + 0x60]
call fcn.140008ab0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14001a690
nop
lea rcx, [rsp + 0x60]
call fcn.140008a50
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
lea rcx, [rbp - 0x80]
call fcn.140025150
cmp qword [rax + 0x18], 8
jb 0x14001cc21
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.140008840
nop
lea rcx, [rsp + 0x40]
call fcn.140008840
cmp ebx, 1
cmove edi, esi
lea rcx, [rbp - 0x80]
call fcn.140008840
mov eax, edi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400e9d60
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140023510
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rdx
mov rbx, rcx
lea r8, str..saving
lea rcx, [rsp + 0x40]
call fcn.1400246a0
nop
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.1400244a0
nop
lea rcx, [rsp + 0x40]
call fcn.140008840
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140022bf0
test eax, eax
je 0x1400235c2
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140024f90
nop
mov rcx, rax
call fcn.1400250c0
nop
lea rcx, [rsp + 0x20]
call fcn.140008840
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
cmp qword [rbx + 0x18], 8
jb 0x1400235ae
mov rbx, qword [rbx]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14002369c
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.140022bf0
test eax, eax
je 0x1400236a0
mov rcx, rdi
cmp qword [rdi + 0x18], 8
jb 0x1400235e4
mov rcx, qword [rdi]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400235fa
movzx edx, al
mov rcx, rdi
call fcn.140022800
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.140024f90
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140023617
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rbx + 0x18]
cmp eax, 1
jne 0x14002363a
cmp rcx, 8
jb 0x14002362f
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x140023664
mov rdx, rbx
cmp rcx, 8
jb 0x140023646
mov rdx, qword [rbx]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x140023664
mov edx, dword [0x140177b90]
mov rcx, rbx
call fcn.1400262d0
nop
lea rcx, [rsp + 0x20]
call fcn.140008840
cmp qword [rdi + 0x18], 8
jb 0x140023678
mov rdi, qword [rdi]
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
mov r8d, 2
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400236a0
xor bl, bl
jmp 0x1400236a2
mov bl, 1
lea rcx, [rsp + 0x60]
call fcn.140008840
movzx eax, bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400e9d60
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
ret
Function at 0x140023910
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0x98
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp - 1], rax
mov r12, r9
mov r15, r8
mov r13, rdx
mov r14, rcx
mov rax, qword [rbp + 0x77]
mov rdi, qword [rbp + 0x7f]
xor ecx, ecx
mov qword [rbp - 0x11], rcx
mov qword [rbp - 9], 7
mov word [rbp - 0x21], cx
test rax, rax
je 0x1400239bb
lea r8, str..saving
cmp word [rax], cx
cmovne r8, rax
mov rdx, r14
lea rcx, [rbp - 0x49]
call fcn.1400246a0
nop
mov rdx, rax
lea rcx, [rbp - 0x69]
call fcn.1400244a0
nop
lea rdx, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae rdx, qword [rbp - 0x69]
mov r8, qword [rbp - 0x59]
lea rcx, [rbp - 0x21]
call fcn.1400088b0
nop
lea rcx, [rbp - 0x69]
call fcn.140008840
nop
lea rcx, [rbp - 0x49]
call fcn.140008840
xor ecx, ecx
lea rbx, [rbp - 0x21]
cmp qword [rbp - 0x11], 0
cmove rbx, r14
test rdi, rdi
je 0x1400239d7
test r15, r15
js 0x1400239d7
xor sil, sil
jmp 0x1400239df
mov sil, 1
test rdi, rdi
je 0x1400239ed
mov rcx, qword [rdi]
mov qword [rbp - 0x29], rcx
test rcx, rcx
jne 0x140023a5a
jmp 0x1400239f1
mov qword [rbp - 0x29], rcx
lea rdx, [rbp - 0x49]
mov rcx, r14
call fcn.140024f90
nop
mov rcx, rax
call fcn.1400250c0
nop
lea rcx, [rbp - 0x49]
call fcn.140008840
cmp qword [rbx + 0x18], 8
jb 0x140023a1a
mov rbx, qword [rbx]
lea r8, [0x14014c7d4]
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.1400f74e0
mov rcx, qword [rbp - 0x29]
test rdi, rdi
je 0x140023a39
mov qword [rdi], rcx
test rcx, rcx
je 0x140023a5a
test r12, r12
jns 0x140023a4b
xor edx, edx
lea r8d, [rdx + 2]
jmp 0x140023a51
xor r8d, r8d
mov rdx, r12
call fcn.1400f80fc
mov rcx, qword [rbp - 0x29]
xor bl, bl
test rcx, rcx
je 0x140023ab2
test r15, r15
js 0x140023a83
mov r9, rcx
mov r8, r15
mov edx, 1
mov rcx, r13
call fcn.1400f72d4
test rax, rax
setne bl
mov rcx, qword [rbp - 0x29]
test sil, sil
je 0x140023ad4
call fcn.1400f75d0
test bl, bl
jne 0x140023a96
test eax, eax
sete bl
mov edx, dword [0x140177b90]
mov rcx, r14
call fcn.1400262d0
test rdi, rdi
je 0x140023ab7
mov qword [rdi], 0
jmp 0x140023ab7
test sil, sil
je 0x140023ad4
test bl, bl
je 0x140023ad4
cmp qword [rbp - 0x11], 0
je 0x140023ad4
mov r8b, 1
mov rdx, r14
lea rcx, [rbp - 0x21]
call fcn.1400269c0
movzx ebx, al
lea rcx, [rbp - 0x21]
call fcn.140008840
movzx eax, bl
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.1400e9d60
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140026790
Capabilities:
Check if file exists
Get disk size
Get file attributes
Get file size

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rcx
mov rsi, 0xffffffffffffffff
mov qword [rbp + 7], rsi
cmp qword [rcx + 0x18], 8
jb 0x1400267d0
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14002695c
test al, 0x10
je 0x14002695c
xor r14d, r14d
mov qword [rbp + 7], r14
lea rdx, [rbp + 0x17]
mov rcx, rdi
call fcn.140025730
nop
mov rdx, rdi
lea rcx, [rbp + 0x17]
call fcn.140022bf0
test eax, eax
jne 0x14002683b
xor eax, eax
mov qword [rbp + 0xf], rax
lea rcx, [rbp + 0x17]
cmp qword [rbp + 0x2f], 8
cmovae rcx, qword [rbp + 0x17]
xor r9d, r9d
lea r8, [rbp + 0xf]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov rax, qword [rbp + 0xf]
mov qword [rbp + 7], rax
jmp 0x14002692b
lea rax, [rbp + 7]
mov qword [rbp - 0x41], rax
mov dword [rbp - 0x39], 1
lea rax, [0x140026770]
mov qword [rbp - 0x49], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x31], xmm0
mov byte [rbp - 0x21], 0
xor edx, edx
xor ecx, ecx
call fcn.140023fa0
mov rbx, rax
xor edx, edx
xor ecx, ecx
call fcn.140023fa0
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.1400241d0
mov byte [rbp - 0x21], 1
cmp qword [rdi + 0x18], 8
jb 0x140026893
mov rdi, qword [rdi]
lea rdx, [0x14014ce5c]
test rdi, rdi
cmovne rdx, rdi
mov qword [rbp - 9], r14
mov qword [rbp - 1], 7
mov word [rbp - 0x19], r14w
inc rsi
cmp word [rdx + rsi*2], 0
jne 0x1400268b2
mov r8, rsi
lea rcx, [rbp - 0x19]
call fcn.1400088b0
nop
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x49]
call fcn.140026ef0
nop
lea rcx, [rbp - 0x19]
call fcn.140008840
nop
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1400268ff
cmp byte [rbp - 0x21], 0
je 0x1400268fb
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp - 0x31], r14
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14002691d
cmp byte [rbp - 0x21], 0
je 0x140026919
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp - 0x29], r14
mov byte [rbp - 0x21], 0
lea rcx, [rbp - 0x49]
call fcn.14001b870
nop
lea rcx, [rbp + 0x17]
call fcn.140008840
mov rax, qword [rbp + 7]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400e9d60
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
cmp qword [rdi + 0x18], 8
jb 0x140026966
mov rdi, qword [rdi]
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 7]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, rsi
je 0x140026934
xor eax, eax
mov qword [rbp + 0xf], rax
lea rdx, [rbp + 0xf]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp + 0xf]
jmp 0x140026938
Function at 0x1400269c0
Capabilities:
Check if file exists
Create directory
Get file attributes
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
movzx edi, r8b
mov rbx, rdx
mov rsi, rcx
call fcn.140022bf0
test eax, eax
jne 0x1400269f4
mov al, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
test dil, dil
je 0x140026a1c
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140026a06
mov rcx, qword [rbx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140026a1c
movzx edx, al
mov rcx, rbx
call fcn.140022800
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140024f90
mov rdi, rax
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140026a39
mov rcx, qword [rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rdi + 0x18]
cmp eax, 1
jne 0x140026a5c
cmp rcx, 8
jb 0x140026a51
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x140026a86
mov rdx, rdi
cmp rcx, 8
jb 0x140026a68
mov rdx, qword [rdi]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
jne 0x140026a86
mov edx, dword [0x140177b90]
mov rcx, rdi
call fcn.1400262d0
nop
lea rcx, [rsp + 0x20]
call fcn.140008840
cmp qword [rbx + 0x18], 8
jb 0x140026a9a
mov rbx, qword [rbx]
cmp qword [rsi + 0x18], 8
jb 0x140026aa4
mov rsi, qword [rsi]
mov r8d, 2
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne al
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14002c420
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0xb0
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x30], rdx
mov rsi, qword [rdx]
test rsi, rsi
jne 0x14002c46f
mov rax, qword [rcx + 8]
xor edi, edi
mov qword [rdx], rdi
mov qword [rdx + 8], rdi
mov dword [rdx + 0x10], edi
jmp 0x14002c5c9
mov r14, qword [rcx + 8]
test r14, r14
je 0x14002c489
xor edi, edi
cmp dword [rdx + 0x10], 3
jne 0x14002c5bc
jmp 0x14002c595
mov qword [rcx + 8], 0xffffffffffffffff
mov ecx, 0x30
call fcn.1400e9d8c
mov qword [rsp + 0x38], rax
xor edi, edi
mov qword [rax + 8], rdi
mov dword [rax + 0x10], 1
mov qword [rax], rdi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x28], rdi
mov qword [rbp + 0x10], rax
mov qword [rax + 0x20], rbp
mov rdx, rbx
mov rcx, qword [rbp + 0x10]
call fcn.14002cb80
mov rax, qword [rbp + 0x10]
mov qword [rax + 0x18], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0x70], xmm1
mov qword [rsp + 0x88], rdi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x90], rdi
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rax, qword [rbp + 0x10]
lea rcx, [rsp + 0x50]
mov qword [rax + 0x28], rcx
mov dword [rsp + 0x40], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, qword [rbp + 0x10]
lea r8, [0x14002c600]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbp + 0x18], rax
mov r14d, dword [rsp + 0x40]
mov qword [rbp + 8], r14
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x14002c57f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x80], rdi
cmp dword [rbx + 0x10], 3
jne 0x14002c5bc
mov rsi, qword [rbx]
test rsi, rsi
je 0x14002c5bc
mov rcx, qword [rsi + 0x38]
test rcx, rcx
je 0x14002c5af
cmp rcx, rsi
mov r8, qword [rcx]
setne dl
call qword [r8 + 0x20]
mov qword [rsi + 0x38], rdi
mov edx, 0x40
mov rcx, rsi
call fcn.1400e9d84
mov rax, r14
mov dword [rbx + 0x10], edi
mov qword [rbx + 8], rdi
mov qword [rbx], rdi
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400e9d60
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140065220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, rdx
mov rdi, rcx
cmp qword [rdx + 0x10], 0
jne 0x140065252
xor al, al
jmp 0x14006530e
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.140023070
nop
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1400652a1
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006529c
test al, 0x10
jne 0x1400652a1
xor dil, dil
jmp 0x140065300
lea rbx, [rdi + 0x40]
mov qword [rsp + 0x20], rbx
mov edx, 0xffffffff
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete sil
test eax, eax
jne 0x1400652ce
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rbx + 8], rax
mov byte [rsp + 0x28], sil
lea rcx, [rdi + 0x30]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call fcn.140066bb0
mov dil, 1
test sil, sil
je 0x140065300
mov qword [rbx + 8], 0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
nop
lea rcx, [rsp + 0x40]
call fcn.140008840
movzx eax, dil
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400e9d60
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140066000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbp, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140066ae0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov ecx, 0x40
call fcn.1400e9d8c
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x30], rax
lea rbx, [rsi + 0x40]
mov qword [rsp + 0x20], rbx
mov edx, 0xffffffff
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete dil
test eax, eax
jne 0x14006607f
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
mov qword [rbx + 8], rax
mov byte [rsp + 0x28], dil
lea rdx, [rsi + 0x30]
lea rcx, [rsp + 0x30]
call fcn.140066a20
nop
test dil, dil
je 0x1400660a9
mov qword [rbx + 8], 0
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rbx, qword [rsp + 0x30]
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
jne 0x140066169
nop dword [rax + rax]
lea rcx, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x1400660cf
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x140066109
lea rcx, [rbx + 0x20]
cmp qword [rbx + 0x38], 8
jb 0x1400660e9
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140066109
test al, 0x10
je 0x140066109
lea r8, [rbx + 0x20]
lea rdx, [rsp + 0x20]
mov rcx, rbp
call fcn.140066bb0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x140066138
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140066133
nop dword [rax]
cmp rbx, qword [rax + 0x10]
jne 0x140066133
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140066120
mov rbx, rax
jmp 0x14006615f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14006615f
nop dword [rax]
nop dword [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140066150
cmp byte [rbx + 0x19], 0
je 0x1400660c0
mov ebx, dword [rbp + 8]
lea rcx, [rsp + 0x30]
call fcn.14002b790
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400e9d60
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006ad40
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140177090]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rdx
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], 7
mov word [rbp - 0x80], ax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x60], al
lea r8d, [rax + 8]
lea rdx, str.pia.json
lea rcx, [rbp - 0x60]
call fcn.140008ab0
nop
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x60]
call fcn.14001a690
nop
lea rcx, [rbp - 0x60]
call fcn.140008a50
nop
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x20]
mov rcx, rbx
call fcn.140025150
nop
lea rcx, [rbp - 0x80]
call fcn.140008840
lea rcx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rcx, qword [rbp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x14006af1f
cmp qword [rbp + 0x30], 0
je 0x14006af1f
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rax
lea r9, [rbp - 0x50]
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x20]
call fcn.140025380
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x10], rax
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x18]
call fcn.1400f8b8c
xor ecx, ecx
call fcn.1400f884c
mov qword [rbp + 0x18], rax
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x40]
call fcn.1400f8b8c
xor ecx, ecx
call fcn.140027840
mov dword [rsp + 0x20], 1
lea r9, str.Logger
xor r8d, r8d
lea rdx, [0x14001ba40]
mov rcx, rax
call fcn.140027a90
mov rsi, rax
mov r10d, dword [rbp - 0x34]
inc r10d
mov r8d, dword [rbp - 0x30]
inc r8d
mov edx, dword [rbp - 0x2c]
add edx, 0x76c
mov edi, dword [rbp - 0xc]
inc edi
mov ebx, dword [rbp - 8]
inc ebx
mov r11d, dword [rbp - 4]
add r11d, 0x76c
mov ecx, dword [rbp - 0x40]
mov dword [rsp + 0x78], ecx
mov eax, dword [rbp - 0x3c]
mov dword [rsp + 0x70], eax
mov eax, dword [rbp - 0x38]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], r10d
mov dword [rsp + 0x58], r8d
mov dword [rsp + 0x50], edx
mov eax, dword [rbp - 0x18]
mov dword [rsp + 0x48], eax
mov eax, dword [rbp - 0x14]
mov dword [rsp + 0x40], eax
mov eax, dword [rbp - 0x10]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], r11d
lea r9, str.pia.json
lea r8, str._s_last_modify_time_is__d._d._d__d:_d:_d__and_system_time_is__d._d._d__d:_d:_d
mov edx, 5
mov rcx, rsi
call fcn.14001de90
mov eax, dword [rbp - 0x2c]
cmp dword [rbp - 4], eax
jne 0x14006af1f
mov eax, dword [rbp - 0x30]
cmp dword [rbp - 8], eax
jne 0x14006af1f
mov eax, dword [rbp - 0x34]
cmp dword [rbp - 0xc], eax
jne 0x14006af1f
mov bl, 1
jmp 0x14006af21
xor bl, bl
lea rcx, [rbp + 0x20]
call fcn.140008840
movzx eax, bl
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.1400e9d60
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret