joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ffa80
Capabilities:
Encode data using base64

Disassembly:
push rbx
push rdi
push r13
push r14
sub rsp, 0x28
mov r13, r9
mov rdi, r8
mov r14d, edx
mov rbx, rcx
test r8, r8
je 0x1400ffc94
test r9, r9
je 0x1400ffc94
mov ecx, edx
call fcn.1400ff9f0
cmp dword [r13], eax
jl 0x1400ffc94
mov qword [rsp + 0x50], rbp
xor r8d, r8d
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], r15
mov eax, 0x55555556
mov esi, r8d
lea r10d, [r8 + 0x13]
mov r9d, r8d
imul r14d
mov r15d, edx
mov eax, 0x6bca1af3
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_..Base64Encoding.cpp
shr r15d, 0x1f
add r15d, edx
lea r12d, [r15*4]
imul r12d
mov r11d, edx
sar r11d, 5
mov eax, r11d
shr eax, 0x1f
add r11d, eax
js 0x1400ffbda
cmp r8d, r11d
jne 0x1400ffb34
imul ecx, r11d, 0x4c
mov eax, r12d
sub eax, ecx
cdq
and edx, 3
lea r10d, [rdx + rax]
sar r10d, 2
test r10d, r10d
jle 0x1400ffbc3
mov ebp, r10d
lea r12, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_..Base64Encoding.cpp
nop word [rax + rax]
movzx eax, byte [rbx + 2]
movzx ecx, byte [rbx + 1]
movzx edx, byte [rbx]
shl edx, 8
add rdi, 4
add rbx, 3
or edx, ecx
shl edx, 8
or edx, eax
shl edx, 8
mov eax, edx
shl edx, 6
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r12]
mov byte [rdi - 4], al
mov eax, edx
shl edx, 6
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r12]
mov byte [rdi - 3], al
mov eax, edx
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + r12]
mov byte [rdi - 2], al
mov eax, edx
shr eax, 0x14
and eax, 0x3f
movzx eax, byte [rax + r12]
mov byte [rdi - 1], al
dec rbp
jne 0x1400ffb50
lea r12d, [r15*4]
inc r9d
lea esi, [rsi + r10*4]
cmp r9d, r11d
jle 0x1400ffb1d
lea rbp, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_..Base64Encoding.cpp
mov r12, qword [rsp + 0x60]
lea eax, [r15 + r15*2]
mov r15, qword [rsp + 0x20]
sub r14d, eax
je 0x1400ffc76
lea r9d, [r14 + 1]
test r9d, r9d
je 0x1400ffc76
test r14d, r14d
jle 0x1400ffc0a
movzx r8d, byte [rbx]
inc rbx
shl r8d, 8
cmp r14d, 1
jle 0x1400ffc1d
movzx eax, byte [rbx]
or r8d, eax
inc rbx
shl r8d, 8
cmp r14d, 2
jle 0x1400ffc2d
movzx eax, byte [rbx]
or r8d, eax
shl r8d, 8
test r9d, r9d
jle 0x1400ffc5c
mov edx, r9d
nop dword [rax]
mov eax, r8d
inc rdi
shl r8d, 6
shr eax, 0x1a
movzx ecx, al
movzx eax, byte [rcx + rbp]
mov byte [rdi - 1], al
dec rdx
jne 0x1400ffc40
mov edx, 4
add esi, r9d
sub edx, r9d
test edx, edx
jle 0x1400ffc74
mov ecx, edx
mov eax, 0x3d
rep stosb byte [rdi], al
add esi, edx
mov rbp, qword [rsp + 0x50]
mov dword [r13], esi
mov rsi, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x28
pop r14
pop r13
pop rdi
pop rbx
ret
xor eax, eax
add rsp, 0x28
pop r14
pop r13
pop rdi
pop rbx
ret
Function at 0x140100ab0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rbx, rdx
lea rdi, [rcx + 8]
mov rcx, qword [rdi]
xor esi, esi
test rcx, rcx
je 0x140100ae3
mov qword [rdi], rsi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsp + 0x20], rdi
lea r9, [0x140147648]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140147668]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rdi]
mov qword [rsp + 0x50], rsi
test rcx, rcx
je 0x140100b30
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x1401476c8]
call qword [rax]
mov rcx, qword [rsp + 0x50]
test eax, eax
cmovs rcx, rsi
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jne 0x140100b41
mov ebx, 0x80004002
jmp 0x140100b59
cmp qword [rbx + 0x18], 8
jb 0x140100b4b
mov rbx, qword [rbx]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, rbx
call qword [rax + 0x28]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140100b69
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000c39c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000c3e8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000c3e0
cmp dword [rcx + 0x3c], edx
jl 0x14000c3e0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14000c3e0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14000c3e8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x14000fddc
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 r14
push r15
lea rbp, [rax - 0x168]
sub rsp, 0x250
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov r14, r8
xor r15d, r15d
mov qword [r8], r15
mov esi, 0x104
mov r9d, esi
lea rdx, [rsp + 0x30]
lea rax, [rsp + 0x30]
sub rcx, rax
lea rax, [r9 + 0x7ffffefa]
test rax, rax
je 0x14000fe4f
movzx eax, word [rcx + rdx]
test ax, ax
je 0x14000fe4f
mov word [rdx], ax
add rdx, 2
sub r9, 1
jne 0x14000fe2d
lea rax, [rdx - 2]
test r9, r9
cmovne rax, rdx
mov word [rax], r15w
lea r8, [0x1400b98d0]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000fb80
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14000ff93
mov dword [rsp + 0x24], r15d
mov dword [rsp + 0x20], r15d
lea rdx, [rsp + 0x24]
mov rcx, rax
call fcn.14000ea04
mov edi, eax
test eax, eax
jns 0x14000fed8
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xcf
call fcn.14000f3c4
nop
mov rcx, rbx
call fcn.14000de9c
nop
mov eax, edi
jmp 0x14000ffb9
lea r8, [0x1400b98d8]
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000fb80
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x14000ff72
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.14000ea04
mov esi, eax
test eax, eax
jns 0x14000ff4a
mov rcx, qword [rbp + 0x168]
mov r9d, eax
mov edx, 0xd7
call fcn.14000f3c4
nop
mov rcx, rdi
call fcn.14000de9c
nop
mov rcx, rbx
call fcn.14000de9c
nop
mov eax, esi
jmp 0x14000ffb9
mov rcx, rdi
call fcn.14000de9c
nop
movsxd rcx, dword [rsp + 0x20]
shl rcx, 0x1f
movsxd rax, dword [rsp + 0x24]
or rax, rcx
mov qword [r14], rax
mov rcx, rbx
call fcn.14000de9c
nop
jmp 0x14000ffa4
mov rcx, qword [rbp + 0x168]
mov edx, 0xd5
call fcn.14000f3a4
mov edi, eax
mov rcx, rbx
call fcn.14000de9c
nop
jmp 0x14000fed1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
cmp eax, 2
jne 0x14000ffa8
xor eax, eax
jmp 0x14000ffb9
mov rcx, qword [rbp + 0x168]
mov edx, 0xc9
call fcn.14000f3a4
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14000bdb0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14002f280
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo]
nop dword [rax + rax]
nop
test byte [0x1400fdac0], 4
je 0x14002f2d9
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [0x1400b9b10]
call fcn.14001b510
mov r8, qword [rdi + 0x120]
add r8, 0x98
lea rdx, [rdi + 0x150]
lea rcx, [rsp + 0x30]
call fcn.14002bb5c
mov dword [rsp + 0x38], eax
test eax, eax
js 0x14002f443
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_AfxDeleteObject]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
xor ecx, ecx
mov qword [rsp + 0x30], rcx
xor eax, eax
mov rdx, qword [rdi + 0x128]
cmp dword [rdx + 0x130], 0x4d7
jne 0x14002f37d
mov r8d, dword [rdx + 0x150]
test r8b, 1
je 0x14002f35e
mov ecx, dword [rdx + 0x154]
mov dword [rsp + 0x30], ecx
test r8b, 2
je 0x14002f36e
mov eax, dword [rdx + 0x158]
mov dword [rsp + 0x34], eax
test ecx, ecx
je 0x14002f37d
test eax, eax
je 0x14002f37d
mov ecx, 1
jmp 0x14002f37f
xor ecx, ecx
mov rax, qword [rdi + 0x120]
mov dword [rsp + 0x20], ecx
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rax + 0xb0]
call fcn.140002fe8
mov ebx, eax
mov dword [rsp + 0x38], eax
test eax, eax
js 0x14002f458
mov rax, qword [rdi]
movabs r10, 0xebb526f81adb7970
xor edx, edx
mov rcx, rdi
mov rax, qword [rax + 0xb0]
call qword [case.0x140063541.0]
nop
jmp 0x14002f3d7
mov rcx, qword [rsp + 0x40]
cmp dword [rcx - 8], 0
je 0x14002f3ee
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test byte [0x1400fdac0], 4
je 0x14002f414
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea rdx, [0x1400b9c28]
call fcn.14001b510
nop
lea rcx, [rsp + 0x40]
call qword [sym.imp.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14000bdb0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov dword [rsp + 0x48], eax
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x48]
call sub.msvcrt.dll__CxxThrowException
mov dword [rsp + 0x4c], eax
lea rdx, [0x1400f1698]
lea rcx, [rsp + 0x4c]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140036b5c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
cmp qword [rcx + 0x10], 7
jne 0x140036b93
cmp qword [rcx + 0x18], 8
jb 0x140036b73
mov rax, qword [rcx]
jmp 0x140036b76
mov rax, rcx
cmp word [rax], 0x23
jne 0x140036b93
cmp qword [rcx + 0x18], 8
jb 0x140036b86
mov rcx, qword [rcx]
add rcx, 2
add rsp, 0x28
jmp fcn.14006be70
cmp qword [rcx + 0x18], 8
jb 0x140036b9d
mov rcx, qword [rcx]
mov r9, rcx
lea rdx, str.COdtAttributeParser::OdtColorRefFromColor
lea rcx, str.Error:_Func__s_Line__d:_invalid_value__ws
mov r8d, 0xd6
call fcn.14006ca60
mov eax, 0x80070057
add rsp, 0x28
ret
Function at 0x140049780
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
call fcn.140049320
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x20]
mov ecx, COleDropTarget::XDropTarget::AddRef
lea edx, [r9 + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
nop dword [rax + rax]
mov edi, 1
test eax, eax
je 0x1400497db
mov eax, 0x800
test word [rsp + 0x2e], ax
je 0x1400497db
mov al, dil
jmp 0x1400497dd
xor al, al
mov byte [0x1400fdb58], al
lea rcx, [0x1400fdc20]
lea rax, [rbx + 0xc0]
mov qword [0x1400fe420], rax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
nop dword [rax + rax]
mov r9d, 2
lea r8, [0x1400fc204]
mov edx, 0x20001009
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
nop dword [rax + rax]
mov ecx, dword [0x1400fc204]
test eax, eax
cmove ecx, edi
cmp byte [0x1400fdb58], 0
mov dword [0x1400fc204], ecx
je 0x1400498ab
test byte [0x1400fdb6a], dil
je 0x1400498ab
mov rcx, qword [0x1400fe420]
mov edx, 0xffffffec
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
nop dword [rax + rax]
bt rax, 0x16
jb 0x1400498ab
mov rcx, qword [0x1400fe420]
mov edx, 0xffffffec
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
nop dword [rax + rax]
mov rcx, qword [0x1400fe420]
mov edx, 0xffffffec
or rax, 0x7000
mov r8, rax
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
nop dword [rax + rax]
mov r8d, edi
lea rcx, [0x1400495e0]
mov edx, COleDropTarget::XDropTarget::AddRef
call qword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
nop dword [rax + rax]
mov edx, COleDropTarget::XDropTarget::AddRef
lea rcx, [0x1400495e0]
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
nop dword [rax + rax]
xor r8d, r8d
lea rcx, [0x140049950]
mov edx, COleDropTarget::XDropTarget::AddRef
call qword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
nop dword [rax + rax]
mov rcx, qword [rbx + 0x100]
xor r9d, r9d
and qword [0x1400fe420], 0
xor r8d, r8d
mov edx, 0x186
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000bdb0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140049b48
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r14
sub rsp, 0xc0
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, r8
mov rbp, rcx
call qword [sym.imp.MFC42u.dll_RFX_Date_Bulk]
nop dword [rax + rax]
xor r14d, r14d
mov rsi, rax
cmp dword [rbp], r14d
je 0x140049c0c
lea r8d, [r14 + 0x40]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowTextW]
nop dword [rax + rax]
cmp word [rsp + 0x30], r14w
je 0x140049c04
mov r8, rbx
lea rdx, [rsp + 0x30]
call fcn.140062aec
test eax, eax
jne 0x140049be2
or r8d, 0xffffffff
lea edx, [rax + 0x40]
lea ecx, [rax + 0x67]
call qword [sym.imp.MFC42u.dll_Ordinal_1498]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.MFC42u.dll_CGopherFileFind::FindFile]
nop dword [rax + rax]
mov r9d, dword [rbx]
lea rdx, [rsp + 0x30]
mov r8d, 0x40
call fcn.140062cdc
mov r8, rbx
lea rdx, [rsp + 0x30]
call fcn.140062aec
jmp 0x140049c3b
mov dword [rbx], 0x7fffffff
jmp 0x140049c3b
cmp dword [rbx], 0x7fffffff
je 0x140049c3b
mov r9d, dword [rbx]
lea rdx, [rsp + 0x30]
mov r8d, 0x40
call fcn.140062cdc
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.USER32.dll_SetWindowTextW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000bdb0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r14
pop rsi
pop rbp
ret

Function at 0x14004a39c
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor esi, esi
cmp dword [0x1400fe428], esi
jne 0x14004a49d
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, CSocketFile::CSocketFile
call sub.msvcrt.dll_memset
mov edi, esi
lea rbx, [0x1400fcaa8]
cmp dword [rbx - 8], esi
jne 0x14004a47f
cmp qword [rbx], rsi
je 0x14004a47f
mov r8d, 0x104
lea rdx, [rsp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x14004a460
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
nop dword [rax + rax]
test rax, rax
je 0x14004a460
mov word [rax], si
lea rcx, [rsp + 0x20]
mov r8, qword [rbx]
mov edx, 0x104
call fcn.14000fb80
movzx edi, ax
test edi, edi
jne 0x14004a47c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov edi, eax
and edi, 0x10
test edi, edi
jne 0x14004a47c
movsxd rdx, dword [rbx + 8]
lea r8, [rsp + 0x20]
mov rcx, qword [rbx]
call fcn.14000fc44
movzx edi, ax
test edi, edi
je 0x14004a47f
mov qword [rbx], rsi
add rbx, 0x50
lea rax, [0x1400fcf58]
cmp rbx, rax
jl 0x14004a3e9
mov dword [0x1400fe428], 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000bdb0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x1400639a4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rax + 0x10], ebx
test rcx, rcx
je 0x140063a4b
mov qword [rax - 0x18], rbx
lea r8d, [rbx + 3]
mov dword [rax - 0x20], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x28], r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140063a4b
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], rbx
lea r8d, [rbx + 2]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop dword [rax + rax]
test eax, eax
je 0x140063a38
cmp dword [rsp + 0x58], 2
jne 0x140063a38
mov eax, 0xfeff
cmp word [rsp + 0x50], ax
je 0x140063a33
mov eax, 0xfffe
cmp word [rsp + 0x50], ax
jne 0x140063a38
mov ebx, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov eax, ebx
jmp 0x140063a4d
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140069290
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r15, rdx
mov rbx, rcx
mov rcx, r15
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ebp, ebp
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
nop dword [rax + rax]
mov rcx, rbx
mov r14d, eax
call fcn.140002d04
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x30]
and dword [rsp + 0x3c], ebp
xor r8d, r8d
mov edx, 0x434
mov dword [rsp + 0x38], eax
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
xor edi, edi
test r14d, r14d
je 0x1400693c2
mov r9d, 0x104
lea r8, [rsp + 0x40]
mov edx, edi
mov rcx, r15
call qword [sym.imp.SHELL32.dll_DragQueryFileW]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0x10
je 0x1400693b7
mov eax, dword [rsp + 0x34]
lea r9, [rsp + 0x30]
mov rcx, qword [rbx + 0x40]
xor r8d, r8d
mov edx, CObList::AddTail
mov dword [rsp + 0x30], eax
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
lea rcx, [rsp + 0x40]
mov esi, 1
call fcn.14006c874
test eax, eax
je 0x140069396
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x40]
mov r8, qword [rsp + 0x38]
mov r9d, esi
mov rcx, rbx
call fcn.140002fe8
mov esi, eax
cmp r14d, 1
jne 0x1400693a6
xor ebp, ebp
test esi, esi
sete bpl
jmp 0x1400693b7
test esi, esi
je 0x1400693b7
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140002e08
inc edi
cmp edi, r14d
jb 0x140069310
mov rcx, qword [rbx + 0x40]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, CObList::AddTail
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov eax, ebp
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14000bdb0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006c1c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x1400fc1e8]
xor rax, rsp
mov qword [rsp + 0x230], rax
and qword [rdx], 0
mov rbx, rcx
mov ecx, CSocketFile::CSocketFile
mov rsi, rdx
call fcn.14000b9b8
mov rdi, rax
test rax, rax
jne 0x14006c22a
lea r9, [0x1400ba6e0]
mov r8d, 0x2df
lea rdx, str.GetTempDirFile
lea rcx, str.Error:_Func__s_Line__d:_Out_of_memory_for_temp_file_name
call fcn.14006ca60
mov eax, 0x8007000e
jmp 0x14006c2d9
lea rdx, [rsp + 0x20]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPath2W]
nop dword [rax + rax]
dec eax
cmp eax, 0x103
ja 0x14006c282
mov r9, rdi
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
nop dword [rax + rax]
test eax, eax
jne 0x14006c2d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str.Error:_Func__s_Line__d:_GetTempFileName_failed
mov r8d, 0x2ec
jmp 0x14006c29b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea rcx, str.Error:_Func__s_Line__d:_GetTempPath_failed
mov r8d, 0x2e7
lea r9, [0x1400ba6e0]
mov ebx, eax
lea rdx, str.GetTempDirFile
call fcn.14006ca60
test ebx, ebx
je 0x14006c2d4
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
test ebx, ebx
jle 0x14006c2d0
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
jmp 0x14006c2d9
mov qword [rsi], rdi
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14000bdb0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140071bfc
Capabilities:
Inspect section memory permissions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r9
mov rbx, rcx
xor r15d, r15d
call fcn.140071758
mov rdi, rax
mov rcx, rax
call fcn.14006a074
test eax, eax
js 0x140071dd8
mov qword [rsp + 0x50], r15
mov rcx, qword [rdi + 0xa0]
mov rdx, qword [rcx]
mov rax, qword [rdx]
movabs r10, 0xdee01e7974d59970
lea r8, [rsp + 0x50]
lea rdx, [0x1400be2d8]
call qword [case.0x140063541.0]
mov esi, eax
mov dword [rsp + 0x48], r15d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140071c9b
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x90]
movabs r10, 0xf63526225edfd170
lea rdx, [rsp + 0x48]
call qword [case.0x140063541.0]
mov rcx, qword [rsp + 0x50]
cmp dword [rbx + 0x1a0], r15d
jne 0x140071ced
mov dword [rbx + 0x1a0], 5
mov rcx, rbx
call fcn.14007209c
mov esi, eax
test eax, eax
jns 0x140071ccc
mov rcx, rbx
call fcn.140070c14
mov rcx, rdi
call fcn.140069a98
xor r9d, r9d
mov edx, 0x43f
lea r8d, [r9 + 1]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x50]
test esi, esi
js 0x140071d8b
mov ecx, dword [rbx + 0x1a0]
cmp ecx, 1
je 0x140071d41
cmp ecx, 2
je 0x140071d3a
cmp ecx, 3
je 0x140071d33
cmp ecx, 4
je 0x140071d28
cmp ecx, 5
jne 0x140071d7e
mov dword [r14], VarDecFromR4
mov r9, r14
xor r8d, r8d
mov edx, 0x447
jmp 0x140071d6e
mov eax, 0x4000000
cmovne eax, r15d
jmp 0x140071d46
mov eax, 0x40000000
jmp 0x140071d46
mov eax, 0x80000000
jmp 0x140071d46
mov eax, 0x20000000
mov dword [4], eax
mov eax, dword [rbx + 0x120]
cmp dword [rbx + 0x11c], eax
je 0x140071d7e
mov dword [r15], 0x74
xor r9d, r9d
mov edx, 0x444
lea r8d, [r9 + 1]
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
nop dword [rax + rax]
mov rcx, rdi
call fcn.140069a98
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140071dbb
cmp dword [rsp + 0x48], r15d
je 0x140071dbb
mov rax, qword [rcx]
movabs r10, 0xc4dc17047cd92270
lea rdx, [rsp + 0x48]
mov rax, qword [rax + 0x98]
call qword [case.0x140063541.0]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140071dd8
mov rax, qword [rcx]
movabs r10, 0xbaac1f10365eb170
mov rax, qword [rax + 0x10]
call qword [case.0x140063541.0]
nop
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14007ac74
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 0x18], 0
mov rax, rdx
and qword [rbp - 0x10], 0
lea rdx, [rbp - 0x10]
and dword [r8], 0
mov rsi, rcx
mov rcx, rax
mov rdi, r8
call qword [sym.imp.ole32.dll_StringFromCLSID]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x14007ad31
mov rdx, qword [rbp - 0x10]
lea rax, [rbp - 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
je 0x14007ace3
mov ebx, 1
jmp 0x14007ad31
mov rcx, qword [rbp - 0x18]
lea rax, [rbp - 0x20]
and dword [rbp + 0x30], 0
lea r9, [rbp + 0x30]
and dword [rbp + 0x38], 0
lea rdx, str.Compatibility_Flags
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp + 0x38]
mov dword [rbp - 0x20], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14007ad31
cmp dword [rbp + 0x30], 4
jne 0x14007ad31
mov eax, dword [rbp + 0x38]
mov dword [rdi], eax
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14007ad46
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14007ad5b
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret