joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004580
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbx, rcx
xor r12d, r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov byte [rcx + 0x10], r12b
lea rsi, [rcx + 0x18]
mov qword [rsi], r12
lea r14, [rcx + 0x20]
mov qword [r14], r12
lea edx, [r12 + 2]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x1400045d8
cmp eax, 0x80010106
jne 0x140004785
jmp 0x1400045dc
mov byte [rbx + 0x10], 1
mov qword [rsp + 0x20], rsi
lea r9, [0x1401857b8]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1401857c8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140004775
lfence
mov r15, qword [rsi]
mov rax, qword [r15]
mov rbp, qword [rax + 0x18]
mov ecx, 0x18
call fcn.1401219f8
mov rdi, rax
mov qword [rsp + 0x88], rax
test rax, rax
je 0x140004652
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov qword [rdi + 8], r12
mov dword [rdi + 0x10], 1
lea rcx, str.ROOTCIMV2
call fcn.1401216a0
mov qword [rdi], rax
jmp 0x140004655
mov rdi, r12
mov qword [rsp + 0x88], rdi
test rdi, rdi
je 0x1400047a1
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, r15
mov rax, rbp
call qword [case.0x14000aed8.0]
mov ebp, eax
mov ecx, 0xffffffff
lock xadd dword [rdi + 0x10], ecx
cmp ecx, 1
jne 0x1400046d5
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400046b6
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi], r12
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400046c8
call fcn.1401219f0
mov qword [rdi + 8], r12
mov edx, 0x18
mov rcx, rdi
call fcn.1401219f0
test ebp, ebp
jns 0x1400046fd
cmp qword [rsi], 0
je 0x1400046fb
lfence
mov rcx, qword [rsi]
mov qword [rsi], r12
test rcx, rcx
je 0x1400046fb
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000aed8.0]
nop
jmp 0x140004775
lfence
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x140004785
cmp qword [rsi], 0
je 0x140004753
lfence
mov rcx, qword [rsi]
mov qword [rsi], r12
test rcx, rcx
je 0x140004753
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000aed8.0]
nop
cmp qword [r14], 0
je 0x140004775
lfence
mov rcx, qword [r14]
mov qword [r14], r12
test rcx, rcx
je 0x140004775
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14000aed8.0]
nop
cmp byte [rbx + 0x10], 0
je 0x140004785
call qword [sym.imp.ole32.dll_CoUninitialize]
mov byte [rbx + 0x10], 0
mov rax, rbx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x8007000e
call fcn.140121690
int3
Function at 0x14000e960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [rcx]
mov rsi, r9
mov rdi, rcx
cmp rax, qword [rcx + 8]
je 0x14000e97b
mov qword [rcx + 8], rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14000ea8a
mov rdx, rax
mov qword [rsp + 0x28], rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x14000ea85
lfence
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14000ea85
mov qword [rsp + 0x20], r14
lfence
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14000ea80
mov rdx, qword [rdi]
mov esi, ebp
mov rbp, qword [rdi + 8]
mov rcx, rbp
sub rcx, rdx
cmp rsi, rcx
jae 0x14000e9fa
lea rax, [rdx + rsi]
jmp 0x14000ea2f
jbe 0x14000ea33
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rsi, rax
jbe 0x14000ea18
lfence
mov rdx, rsi
mov rcx, rdi
call fcn.140011930
jmp 0x14000ea33
mov rbx, rsi
xor edx, edx
sub rbx, rcx
mov rcx, rbp
mov r8, rbx
call fcn.140152f80
lea rax, [rbx + rbp]
mov qword [rdi + 8], rax
mov rcx, qword [rdi]
mov r8, qword [rdi + 8]
sub r8, rcx
test rsi, rsi
je 0x14000ea80
test rcx, rcx
jne 0x14000ea54
call fcn.14012d4b0
mov dword [rax], socket
jmp 0x14000ea7b
cmp r8, rsi
jb 0x14000ea69
lfence
mov r8, rsi
mov rdx, r14
call fcn.1401528e0
jmp 0x14000ea80
xor edx, edx
call fcn.140152f80
call fcn.14012d4b0
mov dword [rax], 0x22
call fcn.14012dcd0
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rax, qword [rdi + 8]
sub rax, qword [rdi]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001cd80
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0xa0], rax
test cl, cl
jne 0x14001ce6b
lea rcx, [rsp + 0x60]
call fcn.140025970
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movdqa xmm1, xmmword [0x14019b860]
movdqu xmmword [rsp + 0x30], xmm1
xor eax, eax
mov word [rsp + 0x20], ax
movups xmmword [rsp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x90], xmm1
lea r8d, [rax + 6]
lea rdx, str.adppid
lea rcx, [rsp + 0x80]
call fcn.14000c1a0
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x80]
call fcn.14001b670
nop
lea rcx, [rsp + 0x80]
call fcn.140009880
nop
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140024af0
cmp qword [rax + 0x18], 7
jbe 0x14001ce37
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
lea rcx, [rsp + 0x40]
call fcn.140009810
nop
lea rcx, [rsp + 0x20]
call fcn.140009810
nop
lea rcx, [rsp + 0x60]
call fcn.140009810
movzx eax, bl
jmp 0x14001ce6e
movzx eax, cl
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401219d0
add rsp, 0xb0
pop rbx
ret
Function at 0x14001ced0
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, rcx
lea rax, vtable.LogTargetFile.0
mov qword [rcx], rax
xor ebp, ebp
cmp qword [rcx + 0x28], rbp
je 0x14001cff0
lea ecx, [rbp + 1]
call fcn.140027930
test rax, rax
je 0x14001cff0
mov dword [rsp + 0x20], 1
lea r9, str.Logger
lea r8d, [rbp + 1]
lea rdx, [0x14001ccd0]
mov rcx, rax
call fcn.140027c40
mov rbx, rax
test rax, rax
je 0x14001cff0
lea r8d, [rbp + 4]
lea rdx, str._______________________________________Summary_______________________________________
mov rcx, rax
call fcn.14001e610
lea rdx, [rbx + 0x48]
cmp qword [rbx + 0x60], 0xf
jbe 0x14001cf73
mov rdx, qword [rbx + 0x48]
mov r8d, 4
mov rcx, rbx
call fcn.14001e610
mov eax, dword [rbx + 0x90]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 0x8c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbx + 0x88]
lea r8, str.____d_fatal_error_s____d_error_s____d_warning_s_
mov edx, 4
mov rcx, rbx
call fcn.14001ef20
cmp qword [rbx + 0x58], rbp
je 0x14001cfcb
mov r8d, 4
lea rdx, str.Please_search_the_above_error_warning_string_s__to_find_when_the_error_occurred.
mov rcx, rbx
call fcn.14001e610
lea rax, [rbx + 0x48]
cmp qword [rbx + 0x60], 0xf
jbe 0x14001cfda
mov rax, qword [rbx + 0x48]
mov qword [rbx + 0x58], rbp
mov byte [rax], bpl
xor eax, eax
mov qword [rbx + 0x88], rax
mov dword [rbx + 0x90], eax
lea rcx, [rsp + 0x70]
call fcn.140025970
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x14019b860]
movdqu xmmword [rsp + 0x40], xmm1
mov word [rsp + 0x30], bp
movups xmmword [rsp + 0x90], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0xa0], xmm1
mov r8d, 6
lea rdx, str.adppid
lea rcx, [rsp + 0x90]
call fcn.14000c1a0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x90]
call fcn.14001b670
lea rcx, [rsp + 0x90]
call fcn.140009880
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140024af0
cmp qword [rax + 0x18], 7
jbe 0x14001d081
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete bl
lea rcx, [rsp + 0x50]
call fcn.140009810
lea rcx, [rsp + 0x30]
call fcn.140009810
lea rcx, [rsp + 0x70]
call fcn.140009810
mov byte [rdi + 0x30], bl
xor edx, edx
mov rcx, rdi
call fcn.14001d110
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14001d0ca
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x38], rbp
lea rcx, [rdi + 8]
call fcn.140009810
mov rcx, rdi
call fcn.14001f120
nop
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401219d0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14001dc40
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xb0
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov edi, 4
test ecx, ecx
cmovns edi, ecx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
cmp eax, 1
jne 0x14001dc89
mov eax, 6
jmp 0x14001ddc9
lea rcx, [rbp + 0x27]
call fcn.140025970
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x14019b860]
movdqu xmmword [rbp - 0x29], xmm1
xor esi, esi
mov word [rbp - 0x39], si
movups xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
lea r8d, [rsi + 8]
lea rdx, str.adpdebug
lea rcx, [rbp + 7]
call fcn.14000c1a0
nop
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.14001b670
nop
lea rcx, [rbp + 7]
call fcn.140009880
nop
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x27]
call fcn.140024af0
cmp qword [rax + 0x18], 7
jbe 0x14001dd01
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
lea rcx, [rbp - 0x19]
call fcn.140009810
nop
lea rcx, [rbp - 0x39]
call fcn.140009810
mov eax, 5
cmp ebx, 1
cmove edi, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
movdqa xmm1, xmmword [0x14019b860]
movdqu xmmword [rbp - 0x29], xmm1
mov word [rbp - 0x39], si
movups xmmword [rbp + 7], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x17], xmm1
mov esi, 6
mov r8d, esi
lea rdx, str.adpdev
lea rcx, [rbp + 7]
call fcn.14000c1a0
nop
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.14001b670
nop
lea rcx, [rbp + 7]
call fcn.140009880
nop
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 0x27]
call fcn.140024af0
cmp qword [rax + 0x18], 7
jbe 0x14001dd9a
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, eax
lea rcx, [rbp - 0x19]
call fcn.140009810
nop
lea rcx, [rbp - 0x39]
call fcn.140009810
cmp ebx, 1
cmove edi, esi
lea rcx, [rbp + 0x27]
call fcn.140009810
mov eax, edi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1401219d0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1400222b0
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
movzx edi, dl
mov rbx, rcx
xor r14d, r14d
mov dword [rbp - 0x48], r14d
cmp qword [rcx + 0x18], 7
jbe 0x1400222ed
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140022328
and eax, 0x410
cmp eax, 0x410
jne 0x140022328
cmp qword [rbx + 0x18], 7
jbe 0x14002230e
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
mov eax, dword [rbp - 0x48]
jne 0x140022472
jmp 0x140022470
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140022335
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140022461
test al, 0x10
je 0x140022461
test dil, dil
je 0x140022457
lea rax, [rbp - 0x48]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], 1
lea rax, [0x1400220f0]
mov qword [rbp - 0x40], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov byte [rbp - 0x18], 0
mov rax, r14
test rsi, rsi
je 0x1400223ab
mov ecx, 0x30
call fcn.1401219f8
mov qword [rbp - 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
mov rdx, rsi
mov rcx, rax
call fcn.140031220
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x40]
call fcn.140023ba0
mov byte [rbp - 0x18], 1
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.140026f60
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1400223f0
cmp byte [rbp - 0x18], 0
je 0x1400223ec
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 8]
call qword [case.0x14000aed8.0]
mov qword [rbp - 0x28], r14
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140022415
cmp byte [rbp - 0x18], 0
je 0x140022411
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax + 8]
call qword [case.0x14000aed8.0]
mov qword [rbp - 0x20], r14
mov byte [rbp - 0x18], 0
cmp dword [rbp - 0x30], 3
jne 0x140022457
mov rdi, qword [rbp - 0x40]
test rdi, rdi
je 0x140022457
cmp qword [rdi + 0x38], 0
je 0x14002244a
mov rcx, qword [rdi + 0x38]
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
mov rax, qword [rax + 0x20]
call qword [case.0x14000aed8.0]
mov qword [rdi + 0x38], r14
mov edx, 0x40
mov rcx, rdi
call fcn.1401219f0
mov rcx, rbx
call fcn.140025e20
jmp 0x140022469
mov rcx, rbx
call fcn.140026750
test al, al
mov eax, dword [rbp - 0x48]
je 0x140022472
inc eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1401219d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140022b70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x8a0
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0x890], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x48], rdx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x140022baf
mov rdx, qword [rcx]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rbp
mov qword [rdi + 0x18], rbp
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], bp
jne 0x140022bd0
mov rcx, rdi
call fcn.14000c0c0
mov dword [rsp + 0x20], 1
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140022bf7
mov rcx, qword [rsi]
call qword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
cmp eax, 1
jne 0x140022c9c
mov word [rsp + 0x70], bp
lea rdx, [rsp + 0x70]
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
lea rax, [rsp + 0x70]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140022c31
mov r8, rbx
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x28]
call fcn.14000c0c0
mov dword [rsp + 0x20], 3
mov r8, rsi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x28]
call fcn.140024af0
nop
cmp rdi, rax
je 0x140022c87
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x140022c7b
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.14000a690
nop
lea rcx, [rsp + 0x50]
call fcn.140009810
nop
lea rcx, [rsp + 0x28]
call fcn.140009810
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140025bf0
nop
cmp rdi, rax
je 0x140022cc9
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 7
jbe 0x140022cbd
mov rax, qword [rax]
mov rdx, rax
mov rcx, rdi
call fcn.14000a690
nop
lea rcx, [rsp + 0x50]
call fcn.140009810
mov rax, rdi
mov rcx, qword [rsp + 0x890]
xor rcx, rsp
call fcn.1401219d0
mov rbx, qword [rsp + 0x8d0]
add rsp, 0x8a0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140023000
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rdx
xor esi, esi
mov dword [rsp + 0x30], esi
lea rbp, [rsi - 1]
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov dword [rsp + 0x30], 1
cmp qword [rcx + 0x18], 7
jbe 0x140023057
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140023066
test al, 0x10
jne 0x140023071
mov rcx, rbx
call fcn.1400267d0
mov rbp, rax
lea rdx, [0x140190ac0]
mov rcx, rbx
call fcn.140026c60
mov r14, rax
test rax, rax
je 0x14002314d
lfence
mov qword [rsp + 0x40], rsi
xor r9d, r9d
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test rbp, rbp
jle 0x140023144
mov r15, qword [rdi + 8]
mov rdx, qword [rdi]
mov rcx, r15
sub rcx, rdx
cmp rbp, rcx
jae 0x1400230cd
lea rax, [rdx + rbp]
mov qword [rdi + 8], rax
jmp 0x140023106
jbe 0x140023106
mov rax, qword [rdi + 0x10]
sub rax, rdx
cmp rbp, rax
jbe 0x1400230e8
mov rdx, rbp
mov rcx, rdi
call fcn.140011930
jmp 0x140023103
mov rbx, rbp
sub rbx, rcx
mov r8, rbx
xor edx, edx
mov rcx, r15
call fcn.140152f80
lea rax, [rbx + r15]
mov qword [rdi + 8], rax
mov rdx, qword [rdi]
test rdx, rdx
je 0x14002312d
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002312d
mov esi, dword [rsp + 0x40]
mov rax, qword [rdi]
mov rcx, qword [rdi + 8]
sub rcx, rax
cmp rsi, rcx
jae 0x140023144
lea rcx, [rax + rsi]
mov qword [rdi + 8], rcx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401219d0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140024a50
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 7
mov rbx, rcx
jbe 0x140024a63
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov rcx, qword [rbx + 0x18]
cmp eax, 1
jne 0x140024a9d
cmp rcx, 7
jbe 0x140024a7b
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140024a95
test al, 0x10
je 0x140024a95
mov al, 1
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rdi
mov rdx, rbx
cmp rcx, 7
jbe 0x140024aae
mov rdx, qword [rbx]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
sete dil
test eax, eax
jne 0x140024ad4
mov edx, dword [0x1401c73d0]
xor r8d, r8d
mov rcx, rbx
call fcn.140026260
movzx eax, dil
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret

Function at 0x140025370
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rax, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x18], 7
mov word [rcx], di
mov dword [rsp + 0x20], 1
mov qword [rsp + 0x50], rdi
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140025457
mov rax, qword [rsp + 0x50]
lea rdx, [0x140190230]
test rax, rax
cmovne rdx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x40], rdi
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140025403
lea rcx, [rsp + 0x28]
call fcn.14000c0c0
nop
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x140025442
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 7
cmova rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14000a690
nop
lea rcx, [rsp + 0x28]
call fcn.140009810
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401219d0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140025970
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x30]
xor edx, edx
mov r8d, 0x208
call fcn.140152f80
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rbx + 0x18], 0
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400259e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000c0c0
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401219d0
add rsp, 0x250
pop rbx
ret

Function at 0x140025e20
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x18], 7
mov rbx, rcx
jbe 0x140025e37
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete dil
je 0x140025e94
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x140025e94
xor r8d, r8d
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.140026260
mov edx, dword [0x1401c73d0]
xor r8d, r8d
mov rcx, rbx
call fcn.140026260
cmp qword [rbx + 0x18], 7
jbe 0x140025e7a
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, 1
sete al
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
movzx eax, dil
add rsp, 0x20
pop rdi
ret

Function at 0x140026130
Capabilities:
Compare security identifiers

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x1401c6780]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x80], rbp
mov esi, 0xffffffff
xor ebp, ebp
cmp qword [rcx + 0x18], 7
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x50], rbp
jbe 0x140026168
mov rcx, qword [rcx]
xor r9d, r9d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
lea edx, [r9 + 1]
mov qword [rsp + 0x20], rbp
lea r8d, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
jne 0x140026231
xor ecx, ecx
mov qword [rsp + 0x88], rdi
call fcn.140026060
mov rdi, rax
test rax, rax
je 0x140026229
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x78], rbx
mov ebx, ebp
cmp bp, word [rcx + 4]
jae 0x14002621b
nop dword [rax + rax]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x48], rbp
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_GetAce]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x140026202
cmp byte [rdx], bpl
jne 0x140026202
add rdx, 8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140026213
mov rcx, qword [rsp + 0x40]
inc ebx
movzx eax, word [rcx + 4]
cmp ebx, eax
jl 0x1400261d0
jmp 0x14002621b
mov rax, qword [rsp + 0x48]
mov esi, dword [rax + 4]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov rbx, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x80]
test rcx, rcx
je 0x140026249
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401219d0
add rsp, 0x60
pop rsi
ret