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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x30
mov eax, dword [rcx + 0x50]
xor ebp, ebp
mov rsi, rdx
mov rbx, rcx
lea r12d, [rbp + 1]
cmp eax, 3
je 0x10000b53a
cmp eax, 5
je 0x10000b53a
cmp eax, 4
je 0x10000b53a
mov edi, ebp
cmp eax, 6
jne 0x10000b53d
mov edi, r12d
cmp dword [0x100080330], ebp
je 0x10000b56d
cmp edi, ebp
je 0x10000b560
cmp dword [0x100080390], ebp
jne 0x10000b559
cmp dword [0x10008038c], ebp
je 0x10000b560
mov edx, 0x11f9
jmp 0x10000b565
mov edx, 0x1069
xor r8d, r8d
call fcn.10000fbb4
cmp dword [0x100080354], ebp
jne 0x10000b713
cmp edi, ebp
je 0x10000b713
cmp dword [0x100080390], ebp
je 0x10000b66f
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.10000aeac
cmp dword [0x100080460], ebp
jne 0x10000b5aa
mov rax, qword [0x10001e160]
jmp 0x10000b5c1
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, rbp
cmove rax, qword [0x10001e160]
mov rcx, rax
call fcn.1000116d4
mov r8d, dword [0x100080388]
mov dword [rsp + 0x20], ebp
mov r9d, 0x23a3
mov rdx, rsi
mov rcx, rbx
cmp dword [0x1000803a4], ebp
je 0x10000b638
call fcn.100015554
cmp eax, ebp
jne 0x10000b63f
lea rdx, [0x10001e200]
mov r8d, r12d
mov rcx, rbx
call fcn.10000adac
cmp dword [0x100080460], ebp
jne 0x10000b614
mov rax, qword [0x10001e160]
jmp 0x10000b62b
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, rbp
cmove rax, qword [0x10001e160]
mov rcx, rax
call fcn.10001172c
jmp 0x10000b725
call fcn.100015690
jmp 0x10000b5ed
cmp dword [0x100080460], ebp
jne 0x10000b650
mov rax, qword [0x10001e160]
jmp 0x10000b667
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, rbp
cmove rax, qword [0x10001e160]
mov rcx, rax
call fcn.10001172c
cmp dword [0x10008038c], ebp
je 0x10000b713
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.10000aeac
cmp dword [0x100080460], ebp
jne 0x10000b698
mov rax, qword [0x10001e160]
jmp 0x10000b6af
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, rbp
cmove rax, qword [0x10001e160]
mov rcx, rax
call fcn.1000116d4
mov r11d, dword [0x10001e15c]
mov r8d, dword [0x10001e138]
mov r9d, 0x2397
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x20], r11d
call fcn.100014358
cmp eax, ebp
je 0x10000b5f1
cmp dword [0x100080460], ebp
jne 0x10000b6f4
mov rax, qword [0x10001e160]
jmp 0x10000b70b
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, rbp
cmove rax, qword [0x10001e160]
mov rcx, rax
call fcn.10001172c
lea rdx, [0x10001e1e8]
mov r8d, r12d
mov rcx, rbx
call fcn.10000adac
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x10000bf00
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rdx, rcx
lea r8, [0x10002eff0]
lea rcx, [0x10000bd78]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWork]
test rax, rax
jne 0x10000bf6b
lea r8d, [rax + 1]
lea rdx, [0x10001e200]
mov rcx, rbx
call fcn.10000adac
cmp dword [0x100080460], 0
jne 0x10000bf4a
mov rax, qword [0x10001e160]
jmp 0x10000bf61
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
cmove rax, qword [0x10001e160]
mov rcx, rax
call fcn.10001172c
jmp 0x10000bf74
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SubmitThreadpoolWork]
add rsp, 0x20
pop rbx
ret

Function at 0x10000bf80
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x10001e178], eax
cmp eax, 0xffffffff
je 0x10000c047
mov edx, 1
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10000c047
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x10001e17c], eax
cmp eax, 0xffffffff
je 0x10000c047
call fcn.10000bb58
test al, al
je 0x10000c047
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThreadpool]
mov qword [0x100080450], rax
test rax, rax
je 0x10000c047
mov edx, dword [0x100080464]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadpoolThreadMaximum]
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolCleanupGroup]
mov r11, rax
mov qword [0x100080458], rax
test rax, rax
je 0x10000c047
mov rax, qword [0x100080450]
and qword [0x10002f008], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [0x10002eff8], rax
mov qword [0x10002f000], r11
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x10006f468], rax
test rax, rax
je 0x10000c047
cmp rax, 0xffffffffffffffff
je 0x10000c047
xor eax, eax
jmp 0x10000c04d
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x28
ret

Function at 0x10000c058
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
cmp dword [0x100080460], edi
je 0x10000c08f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x10001e178]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
cmp rax, rdi
sete dil
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1000100d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x100080460], 0
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
jne 0x1000100fa
mov rax, qword [0x10001e160]
jmp 0x100010111
mov ecx, dword [0x10001e17c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
cmove rax, qword [0x10001e160]
mov rcx, rax
call fcn.1000117c0
movabs r8, 0x8000000000000000
movsd xmm4, qword [0x1000035b0]
movsd xmm1, qword [0x1000035a8]
pxor xmm0, xmm0
movd xmm3, eax
xor eax, eax
cvtsi2sd xmm0, qword [0x10001e1e0]
cvtdq2pd xmm3, xmm3
movapd xmm2, xmm0
divsd xmm3, xmm4
divsd xmm2, xmm3
comisd xmm2, xmm1
jbe 0x100010169
subsd xmm2, xmm1
comisd xmm2, xmm1
jae 0x100010169
mov rax, r8
divsd xmm3, qword [0x1000035a0]
mulsd xmm0, qword [0x100003598]
cvttsd2si rdx, xmm2
xor ecx, ecx
add rdx, rax
divsd xmm0, xmm3
comisd xmm0, xmm1
movapd xmm2, xmm0
jbe 0x10001019e
subsd xmm2, xmm1
comisd xmm2, xmm1
jae 0x10001019e
mov rcx, r8
cvttsd2si rax, xmm2
pxor xmm1, xmm1
mov qword [rsi], rdx
add rax, rcx
cvtsi2sd xmm1, rax
mov qword [rdi], rax
jns 0x1000101bf
addsd xmm1, qword [0x100003590]
mov rsi, qword [rsp + 0x38]
subsd xmm0, xmm1
mulsd xmm0, xmm4
cvttsd2si eax, xmm0
mov dword [rbx], eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x100011b88
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x10001e110]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov r14d, r8d
mov r13, rcx
mov r15d, dword [0x10001e15c]
movsxd rbp, dword [0x10008042c]
lea rdx, [rsp + 0x20]
call fcn.10001330c
nop
xor edi, edi
mov r12d, edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, edi
jne 0x100011c0b
cmp esi, edi
jbe 0x100011c5b
test sil, 0x10
je 0x100011c10
cmp eax, 0x57
jne 0x100011c1d
mov ebx, 0x10b
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 0x10b
je 0x100011d1c
cmp ebx, 0x7b
je 0x100011d1c
cmp ebx, 0x43
jne 0x100011c40
cmp rbp, rdi
je 0x100011d1c
cmp ebx, 0x56
je 0x100011d1c
cmp ebx, 2
je 0x100011d1c
cmp ebx, 3
je 0x100011d1c
lea r8, [0x100001c40]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_AfxThrowOleException
lea rdx, [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
cmp rbx, 0xffffffffffffffff
jne 0x100011d01
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100011cee
cmp eax, 0x10b
je 0x100011cec
cmp eax, 0x7b
je 0x100011cec
cmp eax, 0x43
jne 0x100011cb3
cmp rbp, rdi
je 0x100011cec
cmp eax, 0x56
je 0x100011cec
cmp eax, 5
je 0x100011cec
cmp eax, 3
je 0x100011cec
inc r12d
mov r9d, r12d
mov r8d, r15d
mov edx, r14d
mov rcx, r13
call fcn.100009c24
cmp eax, edi
jne 0x100011be0
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x100011d28
jmp 0x100011cf3
mov edi, 1
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, edi
jmp 0x100011d28
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100011d28
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.100018470
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x100011d5c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov ebp, edx
mov rsi, rcx
lea rdx, [rax - 0x30]
call fcn.10001330c
nop
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100011ead
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0xb7
jne 0x100011dce
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x100011e76
mov ebx, dword [rsp + 0x20]
cmp edi, 0x10b
je 0x100011e9f
cmp edi, 0x7b
je 0x100011e9f
cmp edi, 0x43
jne 0x100011df0
test ebp, ebp
je 0x100011e9f
cmp edi, 0x56
je 0x100011e9f
cmp edi, 5
je 0x100011e9f
cmp edi, 3
jne 0x100011e53
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x100011e8d
mov r9d, dword [rsp + 0x78]
mov r8d, dword [rsp + 0x70]
mov edx, ebp
call fcn.100011d5c
test eax, eax
je 0x100011e89
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100011e82
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100011e53
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100011e7b
inc ebx
mov dword [rsp + 0x20], ebx
mov r9d, ebx
mov r8d, dword [rsp + 0x78]
mov edx, dword [rsp + 0x70]
mov rcx, rsi
call fcn.100009c24
test eax, eax
je 0x100011e91
jmp 0x100011d90
and ebx, 0x10
jmp 0x100011eb2
and eax, 0x10
mov ebx, eax
jmp 0x100011eb2
mov ebx, 1
jmp 0x100011eb2
xor ebx, ebx
jmp 0x100011eb2
xor ebx, ebx
jmp 0x100011eb2
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x100011ebe
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x100011ebe
mov ebx, 1
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x100011ed4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov rbx, rdx
mov rdi, rcx
mov ebp, dword [0x10001e15c]
mov esi, dword [0x10008042c]
lea rdx, [rsp + 0x58]
call fcn.10001330c
nop
bt dword [rbx + 0x20], 0xa
jae 0x100011f2e
mov r9d, ebp
mov r8d, 0x2394
mov edx, esi
mov rcx, rdi
call fcn.100011d5c
mov ebx, eax
jmp 0x10001204a
xor r12d, r12d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100012045
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x100011f69
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10001200c
cmp ebx, 0x10b
je 0x100012037
cmp ebx, 0x7b
je 0x100012037
cmp ebx, 0x43
jne 0x100011f8b
test esi, esi
je 0x100012037
cmp ebx, 0x56
je 0x100012037
cmp ebx, 5
je 0x100012037
cmp ebx, 3
jne 0x100011fed
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x100012025
mov r9d, ebp
mov r8d, 0x2394
mov edx, esi
call fcn.100011d5c
test eax, eax
je 0x100012021
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10001201a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x100011fed
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100012013
inc r12d
mov r9d, r12d
mov r8d, ebp
mov edx, 0x2394
mov rcx, rdi
call fcn.100009c24
test eax, eax
je 0x100012029
jmp 0x100011f31
and eax, 0x10
mov ebx, eax
jmp 0x10001204a
and eax, 0x10
mov ebx, eax
jmp 0x10001204a
mov ebx, 1
jmp 0x10001204a
xor ebx, ebx
jmp 0x10001204a
xor ebx, ebx
jmp 0x10001204a
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x100012056
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x100012056
mov ebx, 1
lea rcx, [rsp + 0x58]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x100012070
Capabilities:
Set file attributes

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov dword [r11 + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov r12, rdx
mov rbp, rcx
mov eax, dword [0x10001e15c]
mov dword [rsp + 0x80], eax
mov ebx, dword [0x1000803fc]
mov edi, dword [0x1000803f8]
mov dword [rsp + 0x88], edi
lea rdx, [r11 + 8]
mov rcx, r12
call fcn.10001330c
nop
xor r13d, r13d
mov r15d, ebx
not r15d
mov esi, edi
or esi, ebx
mov r14d, esi
and r14d, 0x4000
and esi, 0x800
mov ebx, edi
or ebx, dword [rbp + 0x20]
and ebx, r15d
btr ebx, 0xa
mov edx, ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1000121a2
test r14d, r14d
je 0x100012168
mov edi, ebx
and edi, 0x4000
je 0x100012124
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x100012131
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_DecryptFileW]
test eax, eax
je 0x10001219b
test edi, edi
jne 0x10001221c
test esi, esi
je 0x10001220b
and ebx, 0x800
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.100014570
test eax, eax
jne 0x1000121f7
mov edi, dword [rsp + 0x88]
jmp 0x1000121a2
test esi, esi
je 0x10001224f
and ebx, 0x800
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.100014570
test eax, eax
jne 0x10001223e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x10001222d
jmp 0x1000121a2
mov edi, dword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1000121b9
cmp qword [r12 + 8], 0
je 0x100012260
cmp eax, 0x7b
je 0x10001227f
cmp eax, 2
je 0x10001227f
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
inc r13d
mov r9d, r13d
mov r8d, dword [rsp + 0x80]
mov edx, 0x239c
mov rcx, r12
call fcn.100009c24
test eax, eax
je 0x100012271
jmp 0x1000120e7
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100012299
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100012299
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100012299
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100012299
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100012299
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100012299
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100012299
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x100012299
mov rdx, rbp
mov ecx, 0x239c
call fcn.10000e808
nop
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10001260c
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push r12
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov ebp, r8d
mov rsi, rcx
movsxd rbx, dword [0x10008042c]
lea rdx, [rax - 0x18]
call fcn.10001330c
nop
xor r12d, r12d
mov edi, r12d
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
cmove eax, r12d
and eax, 0xfffffff8
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp eax, r12d
jne 0x1000126de
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
je 0x1000126d0
cmp eax, 0x10b
je 0x1000126d0
cmp eax, 0x7b
je 0x1000126d0
cmp eax, 0x43
jne 0x1000126a0
cmp rbx, r12
je 0x1000126d0
cmp eax, 0x56
je 0x1000126d0
cmp eax, 5
je 0x1000126d0
inc edi
mov r9d, edi
or r8d, 0xffffffff
mov edx, ebp
mov rcx, rsi
call fcn.100009c24
cmp eax, r12d
jne 0x10001264b
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x1000126ed
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x1000126ed
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
Function at 0x1000134bc
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov rbx, r9
mov r13, r8
mov r12d, edx
mov rbp, rcx
lea rdx, [rax + 0x18]
call fcn.100013480
nop
xor r8d, r8d
mov r14, qword [rsp + 0xa8]
mov dword [r14], r8d
mov r15, qword [rsp + 0xa0]
mov dword [r15], r8d
mov dword [rbx], r8d
mov rax, r13
mov rsi, qword [rsp + 0xb0]
mov rdx, rsi
sub rdx, r13
mov ecx, 0x104
lea edi, [r8 + 2]
mov word [rdx + rax], r8w
mov word [rax], r8w
add rax, rdi
sub rcx, 1
jne 0x10001352d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x38], 0x104
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r14
mov r9, rbx
mov r8d, 0x104
mov rdx, r13
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ebx, eax
xor r14d, r14d
mov word [rsi + 0x206], r14w
mov word [r13 + 0x206], r14w
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, r14d
jne 0x1000135ac
mov rdx, rbp
mov ecx, r12d
call fcn.10000e808
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
jmp 0x1000135df
or r9d, 0xffffffff
mov dword [rsp + 0x28], r9d
lea rax, [0x1000029b0]
mov qword [rsp + 0x20], rax
mov r8, rsi
lea edx, [r9 + 2]
lea ecx, [rdx + 0x7e]
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, edi
jne 0x1000135dc
mov edi, 1
jmp 0x1000135df
mov edi, r14d
lea rcx, [rsp + 0x90]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x100013b30
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rdx
cmp r8d, esi
je 0x100013b54
mov ebx, dword [rcx + 0x58]
and ebx, 0x3127
jmp 0x100013b70
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov ebx, eax
cmove ebx, esi
and ebx, 0x3127
test bl, 7
je 0x100013b7e
mov rcx, qword [rdi]
mov edx, ebx
and edx, 0xfffffff8
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rdi
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x100013ba0
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, r8d
mov rdi, rdx
test r8b, 7
je 0x100013bd6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi]
mov edx, esi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
Function at 0x100014630
Capabilities:
Set file attributes

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov rdi, rdx
mov rbp, rcx
mov eax, dword [0x10001e15c]
mov dword [rsp + 0x98], eax
mov esi, dword [0x1000803fc]
mov r15d, dword [0x1000803f8]
lea rdx, [r11 - 0x50]
call fcn.10001417c
mov rbx, rax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.10001330c
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x80]
call sub.MFC42u.dll_AfxThrowNotSupportedException
nop
lea rcx, [rsp + 0x20]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
nop
lea rcx, [rsp + 0x28]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor edi, edi
mov r14d, esi
not r14d
mov r12d, r15d
or r12d, esi
mov r13d, r12d
and r13d, 0x4000
and r12d, 0x800
mov ebx, r15d
or ebx, dword [rbp + 0x58]
and ebx, r14d
mov edx, ebx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10001478a
test r13d, r13d
je 0x100014755
mov esi, ebx
and esi, 0x4000
je 0x100014715
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_EncryptFileW]
jmp 0x100014725
xor edx, edx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_DecryptFileW]
test eax, eax
je 0x10001478a
test esi, esi
jne 0x1000147ff
test r12d, r12d
je 0x1000147e8
and ebx, 0x800
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.100014570
test eax, eax
jne 0x1000147d1
jmp 0x10001478a
test r12d, r12d
je 0x10001483b
and ebx, 0x800
mov edx, ebx
lea rcx, [rsp + 0x80]
call fcn.100014570
test eax, eax
jne 0x100014827
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 1
je 0x100014813
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
je 0x100014860
cmp eax, 2
je 0x100014860
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
inc edi
mov r9d, edi
mov r8d, dword [rsp + 0x98]
mov edx, 0x239c
mov rcx, rbp
call fcn.100009c64
test eax, eax
je 0x10001484f
jmp 0x1000146d5
lea rcx, [rsp + 0x80]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100014884
lea rcx, [rsp + 0x80]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100014884
lea rcx, [rsp + 0x80]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100014884
lea rcx, [rsp + 0x80]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100014884
lea rcx, [rsp + 0x80]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100014884
lea rcx, [rsp + 0x80]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, 1
jmp 0x100014884
lea rcx, [rsp + 0x80]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
jmp 0x100014884
lea r9d, [rdi + 1]
xor r8d, r8d
mov edx, 0x239c
mov rcx, rbp
call fcn.100009c64
nop
lea rcx, [rsp + 0x80]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret