joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100044a38
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get startup folder

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1000f6188]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x50], rdx
xor r12d, r12d
mov dword [rsp + 0x20], r12d
mov word [rsp + 0x60], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x62]
call sub.msvcrt.dll_memset
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], r12
lea rbx, [rsi + 8]
mov word [rbx], r12w
xor r8d, r8d
lea rdx, [0x10009df50]
mov rcx, rsi
call fcn.100006330
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8d, [r12 + 0x1a]
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, r12d
je 0x100044bf7
xor eax, eax
or r13, 0xffffffffffffffff
mov rcx, r13
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.100006330
lea rdx, str.Microsoft_
mov rcx, rsi
call fcn.1000453b4
mov r9, r13
xor r8d, r8d
lea rdx, [rbp + 0x28]
mov rcx, rsi
call fcn.100007be0
lea rdx, [0x1000cc908]
mov rcx, rsi
call fcn.1000453b4
cmp qword [rsi + 0x20], 8
jb 0x100044b40
mov rcx, qword [rbx]
jmp 0x100044b43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100044ba6
cmp qword [rsi + 0x20], 8
jb 0x100044b5a
mov rdx, qword [rbx]
jmp 0x100044b5d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp eax, r12d
je 0x100044ba6
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r12
mov word [rsp + 0x30], r12w
mov r9, r13
xor r8d, r8d
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.10000649c
nop
cmp qword [rsp + 0x48], 8
jb 0x100044bf7
mov rcx, qword [rsp + 0x30]
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
jmp 0x100044bf7
cmp qword [rbp + 0x48], 8
jb 0x100044bb3
mov rdx, qword [rbp + 0x30]
jmp 0x100044bb7
lea rdx, [rbp + 0x30]
cmp qword [rsi + 0x20], 8
jb 0x100044bc1
mov rbx, qword [rbx]
lea r9, [rsp + reloc.MFC42u.dll_CDaoException::CDaoException]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
xor r8d, r8d
lea rdx, [0x10009df50]
mov rcx, rsi
call fcn.100006330
lea rdx, [rsp + reloc.MFC42u.dll_CDaoException::CDaoException]
mov rcx, rsi
call fcn.1000453b4
mov rax, rsi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1000011e0
mov rbx, qword [rsp + 0x4d0]
add rsp, 0x490
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1000451a0
Capabilities:
Delete file
Delete registry key

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0xc0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x1000f6188]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rsi, rcx
lea r8, [rcx + 0x28]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionApplets_
lea rcx, [r11 - 0x80]
call fcn.1000077e0
nop
lea r8, str.Recovery_
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.1000477c0
nop
cmp qword [rsp + 0x78], 8
jb 0x100045216
mov rcx, qword [rsp + 0x60]
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
mov r12d, 7
mov qword [rsp + 0x78], r12
xor edi, edi
mov qword [rsp + 0x70], rdi
mov word [rsp + 0x60], di
mov qword [rsp + 0x20], rdi
lea r9, [0x10009df50]
mov r8, qword [rsi + 0x18]
xor edx, edx
mov rcx, rsi
call fcn.100006590
cmp eax, edi
jne 0x10004526a
cmp qword [rsp + 0xb0], 8
jb 0x100045263
mov rcx, qword [rsp + 0x98]
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
xor eax, eax
jmp 0x100045383
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x90]
call fcn.100007be0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, str.RecoveryFilePath
lea rcx, [rsp + 0x30]
call fcn.100006330
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x80]
lea rcx, [rsi + 0x60]
call fcn.1000456d8
mov rbx, qword [rax]
cmp qword [rsp + 0x50], 8
jb 0x1000452d3
mov rcx, qword [rsp + 0x38]
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
cmp rbx, qword [rsi + 0x68]
je 0x100045338
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, str.RecoveryFilePath
lea rcx, [rsp + 0x30]
call fcn.100006330
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsi + 0x60]
call fcn.100045514
cmp qword [rax + 0x20], 8
jb 0x10004531b
mov rcx, qword [rax + 8]
jmp 0x10004531f
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp qword [rsp + 0x50], 8
jb 0x100045338
mov rcx, qword [rsp + 0x38]
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
lea rdx, [rsp + 0x98]
cmp qword [rsp + 0xb0], 8
cmovae rdx, qword [rsp + 0x98]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, 1
cmp eax, edi
cmove edi, ecx
cmp qword [rsp + 0xb0], 8
jb 0x100045381
mov rcx, qword [rsp + 0x98]
call sub.MFC42u.dll_CMonthCalCtrl::SetFirstDayOfWeek
mov eax, edi
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1000011e0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x100047a6c
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1000f6188]
xor rax, rsp
mov qword [rsp + 0x240], rax
and qword [rsp + 0x20], 0
cmp dword [0x1000fc4a4], 0
jne 0x100047aa4
mov eax, 0x80004005
jmp 0x100047bbb
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x100047abf
cmp eax, 0x104
jbe 0x100047ac5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.10004a400
mov ebx, eax
test eax, eax
js 0x100047bac
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100047b15
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100047b15
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x100047bb1
mov rcx, qword [0x1000fc498]
call sub.msvcrt.dll_free
mov qword [0x1000fc498], rdi
lea rcx, [rsp + 0x30]
xor edi, edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test rax, rax
je 0x100047b73
lea r8, str.oPackage
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.1000159d0
test eax, eax
js 0x100047b73
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.10004a400
mov ebx, eax
test eax, eax
js 0x100047bac
mov rdi, qword [rsp + 0x20]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100047b95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 1
cmp eax, 0xb7
cmovne ebx, ecx
mov rcx, qword [0x1000fc498]
call sub.msvcrt.dll_free
mov qword [0x1000fc498], rdi
xor edi, edi
jmp 0x100047bb1
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
call sub.msvcrt.dll_free
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1000011e0
mov rbx, qword [rsp + 0x260]
add rsp, 0x250
pop rdi
ret
Function at 0x10004a90c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea rax, [rcx - 0x18]
lea rdx, [rcx + 8]
neg rax
mov rbx, rcx
sbb rdi, rdi
and rdi, rdx
je 0x10004a93c
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0xcc], 0
je 0x10004aa9b
mov rcx, qword [rbx + 0x78]
and dword [rbx + 0xcc], 0
call sub.msvcrt.dll_free
mov rcx, qword [rbx + 0x98]
test rcx, rcx
je 0x10004a973
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
and qword [rbx + 0x98], 0
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x10004a98d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
and qword [rbx + 0xa0], 0
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x10004a9cf
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
lea rdx, [0x1000d8728]
call qword [rax]
test eax, eax
js 0x10004a9cf
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + SafeArrayCopy]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10004a9cf
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
and qword [rsp + 0x30], 0
mov rcx, qword [rbx + 0xb8]
and qword [rbx + 0xa8], 0
test rcx, rcx
je 0x10004aa19
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
lea rdx, [0x1000d8728]
call qword [rax]
test eax, eax
js 0x10004aa19
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + SafeArrayCopy]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10004aa19
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
and qword [rsp + 0x30], 0
mov rcx, qword [rbx + 0xb0]
and qword [rbx + 0xb8], 0
test rcx, rcx
je 0x10004aa63
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
lea rdx, [0x1000d8728]
call qword [rax]
test eax, eax
js 0x10004aa63
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + SafeArrayCopy]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x10004aa63
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
and qword [rsp + 0x30], 0
mov rcx, qword [rbx + 0xb0]
test rcx, rcx
je 0x10004aa7d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
and qword [rbx + 0xb0], 0
mov rcx, qword [rbx + 0x88]
test rcx, rcx
je 0x10004aa9b
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx + 0x88]
call sub.msvcrt.dll_free
test rdi, rdi
je 0x10004aaaa
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x10004e168
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
lea rax, [rcx - 8]
lea rdx, [rcx + 8]
mov rbx, rcx
neg rax
sbb rdi, rdi
and rdi, rdx
je 0x10004e197
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rbx + 0xf8], 0
je 0x10004e24c
and dword [rbx + 0xf8], 0
cmp dword [rbx + 0x100], 0
je 0x10004e1bf
lea rcx, [rbx - 8]
xor edx, edx
call fcn.10004ee70
mov rcx, qword [rbx + 0xe8]
test rcx, rcx
je 0x10004e1d9
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
and qword [rbx + 0xe8], 0
cmp dword [rbx + 0xfc], 0
je 0x10004e1ef
mov rcx, qword [rbx + 0xf0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [rbx + 0xf0]
call sub.msvcrt.dll_free
mov rcx, qword [rbx + 0xb0]
call sub.msvcrt.dll_free
mov rcx, qword [rbx + 0xc0]
call sub.msvcrt.dll_free
mov rcx, qword [rbx + 0xd8]
test rcx, rcx
je 0x10004e22d
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
and qword [rbx + 0xd8], 0
mov rcx, qword [rbx + 0xe0]
test rcx, rcx
je 0x10004e247
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
and qword [rbx + 0xe0], 0
and qword [rbx + 0x38], 0
test rdi, rdi
je 0x10004e25b
lea rcx, [rdi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x10004e56c
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor ebx, ebx
or r12, 0xffffffffffffffff
lea rdx, [rcx + 0x10]
and dword [rax + 8], ebx
and dword [rax + 0x18], ebx
and dword [rax + 0x10], ebx
mov rax, rcx
mov rdi, rcx
neg rax
sbb rsi, rsi
and rsi, rdx
je 0x10004e5a7
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [rdi + 0x100], ebx
jne 0x10004e5b9
mov ebx, 0x802a0035
jmp 0x10004e76e
mov rcx, qword [rdi + 0xf8]
test rcx, rcx
jne 0x10004e5de
test rsi, rsi
je 0x10004e5d4
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x80004005
jmp 0x10004e788
cmp dword [rdi + 0x104], ebx
jne 0x10004e76e
and qword [rsp + 0x30], rbx
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x10004e647
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10004e63d
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x10004e76e
mov ebx, 0x8000ffff
jmp 0x10004e76e
mov rax, qword [rdi]
lea rdx, [rsp + 0x78]
mov rcx, rdi
call qword [rax + 0x28]
mov edx, 1
mov rcx, rdi
call fcn.10004ee70
mov ebx, eax
test eax, eax
js 0x10004e76e
jmp 0x10004e6c8
mov edx, dword [rdi + 0xd4]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x80]
add rdx, qword [rdi + 0xc8]
mov r8d, ebp
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10004e6b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x10004e76e
mov eax, dword [rsp + 0x80]
add dword [rdi + 0xd8], ebp
add dword [rdi + 0xd4], eax
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.10004ecdc
mov ebp, dword [rsp + 0x70]
test ebp, ebp
jne 0x10004e66e
mov eax, dword [rdi + 0x54]
xor ebx, ebx
mov ecx, 0x802a0021
cmp dword [rdi + 0xd8], eax
cmovne ebx, ecx
test ebx, ebx
js 0x10004e76e
xor edx, edx
mov rcx, rdi
call fcn.10004ee70
mov ebx, eax
test eax, eax
js 0x10004e76e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x78]
mov rcx, qword [rdi + 0xf8]
lea rdx, [rdi + 0xf0]
mov dword [rsp + 0x88], eax
or r12, 0xffffffffffffffff
call fcn.10004953c
mov ebx, eax
test eax, eax
js 0x10004e76e
mov rcx, qword [rdi + 0xf0]
lea rdx, [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov ebx, eax
test eax, eax
js 0x10004e76e
mov eax, dword [rsp + 0x78]
cmp dword [rsp + 0x88], eax
je 0x10004e764
mov ebx, 0x80004005
jmp 0x10004e76e
mov dword [rdi + 0x104], 1
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x10004e786
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
add rsp, 0x40
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10004f074
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov r9d, ecx
mov r10d, r8d
mov r11, rdx
lea rsi, [0x1000d7cd0]
not r9d
cmp r8d, 8
jb 0x10004f16f
mov rbx, r10
shr rbx, 3
movzx ecx, byte [r11]
mov eax, r9d
shr r9d, 8
xor rcx, rax
add r11, 8
add r10d, 0xfffffff8
movzx eax, cl
movzx ecx, byte [r11 - 7]
mov edx, dword [rsi + rax*4]
xor edx, r9d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 6]
mov r8d, dword [rsi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 5]
mov edx, dword [rsi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 4]
mov r8d, dword [rsi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 3]
mov edx, dword [rsi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 2]
mov r8d, dword [rsi + rax*4]
xor r8d, edx
mov eax, r8d
shr r8d, 8
xor rcx, rax
movzx eax, cl
movzx ecx, byte [r11 - 1]
mov edx, dword [rsi + rax*4]
xor edx, r8d
mov eax, edx
shr edx, 8
xor rcx, rax
movzx eax, cl
mov r9d, dword [rsi + rax*4]
xor r9d, edx
sub rbx, 1
jne 0x10004f0a2
test r10d, r10d
je 0x10004f194
movzx ecx, byte [r11]
mov eax, r9d
inc r11
xor rcx, rax
shr eax, 8
movzx edx, cl
mov r9d, dword [rsi + rdx*4]
xor r9d, eax
add r10d, 0xffffffff
jne 0x10004f174
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
not r9d
mov eax, r9d
ret
Function at 0x10004fb20
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov ebp, dword [rcx + 0x38]
mov rdi, rcx
mov edx, dword [rdi + 0x8c]
mov ebx, dword [rdi + 0x50]
mov eax, dword [rdi + 0x94]
sub ebx, edx
sub ebx, eax
jne 0x10004fb62
test edx, edx
jne 0x10004fb71
test eax, eax
jne 0x10004fb71
mov ebx, ebp
jmp 0x10004fbf7
cmp ebx, 0xffffffff
jne 0x10004fb71
mov ebx, 0xfffffffe
jmp 0x10004fbf7
mov eax, dword [rdi + 0x38]
lea ecx, [rbp + rax - 0x106]
cmp edx, ecx
jb 0x10004fbf7
mov rcx, qword [rdi + 0x48]
mov r8, rbp
lea rdx, [rcx + rbp]
call sub.msvcrt.dll_memcpy
mov r9d, dword [rdi + 0x6c]
mov rax, qword [rdi + 0x60]
sub dword [rdi + 0x90], ebp
sub dword [rdi + 0x8c], ebp
sub dword [rdi + 0x7c], ebp
lea r8, [rax + r9*2]
sub r8, 2
xor eax, eax
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
add r9d, 0xffffffff
mov word [r8], ax
jne 0x10004fbaa
mov rax, qword [rdi + 0x58]
mov r9d, ebp
lea r8, [rax + rbp*2]
sub r8, 2
xor eax, eax
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
add r9d, 0xffffffff
mov word [r8], ax
jne 0x10004fbd5
add ebx, ebp
mov rsi, qword [rdi]
cmp dword [rsi + 8], 0
je 0x10004fcb6
mov eax, dword [rdi + 0x8c]
mov r13d, dword [rdi + 0x94]
add r13, rax
mov eax, dword [rsi + 8]
add r13, qword [rdi + 0x48]
cmp eax, ebx
mov r12d, eax
cmova r12d, ebx
test r12d, r12d
je 0x10004fc62
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
cmp dword [rax + 0x2c], 0
jne 0x10004fc4a
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.100052680
mov dword [rsi + 0x4c], eax
mov rdx, qword [rsi]
mov r8d, r12d
mov rcx, r13
mov ebx, r12d
call sub.msvcrt.dll_memcpy
add qword [rsi], rbx
add dword [rsi + 0xc], r12d
add dword [rdi + 0x94], r12d
mov r9d, dword [rdi + 0x94]
cmp r9d, 3
jb 0x10004fca0
mov eax, dword [rdi + 0x8c]
mov rdx, qword [rdi + 0x48]
mov ecx, dword [rdi + 0x78]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x68], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x74]
mov dword [rdi + 0x68], r8d
cmp r9d, 0x106
jae 0x10004fcb6
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x10004fb3e
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x100052680
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
shr ecx, 0x10
mov r10, rdx
test rdx, rdx
jne 0x1000527b9
lea eax, [rdx + 1]
ret
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x10005277d
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [r10]
add r10, 0x10
add r9d, eax
movzx eax, byte [r10 - 0xf]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 1]
add ecx, r9d
add r9d, eax
add ecx, r9d
sub r11, 1
jne 0x1000526c0
test edx, edx
je 0x100052793
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
sub edx, 1
jne 0x100052781
mov eax, 0x80078071
mul r9d
mov eax, 0x80078071
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
test r8d, r8d
jne 0x100052697
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x10005f9b0
Capabilities:
Delete file

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov r12, rcx
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDaoIndexFieldInfo::CDaoIndexFieldInfo
nop
cmp dword [0x1000fb1f4], 0
je 0x10005fa2d
mov al, byte [0x1000fb1f8]
cmp al, 4
jae 0x10005f9f3
test al, al
je 0x10005f9f3
movabs rdi, 0x8000000000000000
jmp 0x10005fa37
movabs rdi, 0x8000000000000000
test qword [0x1000fb1e0], rdi
je 0x10005fa37
mov rcx, qword [0x1000fb1e8]
mov rax, rcx
and rax, rdi
cmp rax, rcx
jne 0x10005fa37
lea rdx, [0x1000ccf78]
mov rcx, qword [0x1000fc250]
call fcn.100054630
jmp 0x10005fa37
movabs rdi, 0x8000000000000000
mov r8, qword [r12 + 0x130]
add r8, 0xb8
lea rdx, [r12 + 0x160]
lea rcx, [rsp + 0x78]
call fcn.10005baac
mov dword [rsp + 0x60], eax
test eax, eax
jns 0x10005fa75
mov dword [rsp + 0x30], eax
lea rdx, [0x1000d8f88]
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll__CxxThrowException
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_AfxDeleteObject
mov rcx, qword [rsp + 0x78]
call sub.msvcrt.dll_free
and dword [rsp + 0x68], 0
and dword [rsp + 0x6c], 0
lea rdx, [rsp + 0x68]
mov rcx, r12
call fcn.10005f888
lea rdx, [rsp + 0x6c]
mov rcx, r12
call fcn.10005f8cc
cmp dword [rsp + 0x68], 0
je 0x10005fac7
cmp dword [rsp + 0x6c], 0
je 0x10005fac7
mov eax, 1
jmp 0x10005fac9
xor eax, eax
mov rcx, qword [r12 + 0x130]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rcx + 0xd0]
call fcn.10008961c
mov esi, eax
mov dword [rsp + 0x60], eax
test eax, eax
jns 0x10005fb0d
mov dword [rsp + 0x34], eax
lea rdx, [0x1000d8f88]
lea rcx, [rsp + 0x34]
call sub.msvcrt.dll__CxxThrowException
mov rax, qword [r12]
xor edx, edx
mov rcx, r12
call qword [rax + 0xb0]
nop
jmp 0x10005fb2d
mov rcx, qword [rsp + 0x70]
cmp dword [rcx - 8], 0
je 0x10005fb3e
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x1000fb1f4], 0
je 0x10005fb84
mov al, byte [0x1000fb1f8]
cmp al, 4
jae 0x10005fb55
test al, al
jne 0x10005fb84
test qword [0x1000fb1e0], rdi
je 0x10005fb84
mov rdx, qword [0x1000fb1e8]
mov rcx, rdx
and rcx, rdi
cmp rcx, rdx
jne 0x10005fb84
lea rdx, [0x1000ccf88]
mov rcx, qword [0x1000fc250]
call fcn.100054630
nop
lea rcx, [rsp + 0x70]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, esi
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x1000767c8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1000f6188]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
call fcn.10007624c
mov r9d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x20]
lea edx, [r9 + 0x48]
mov ecx, COleDropTarget::XDropTarget::AddRef
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, 1
test eax, eax
je 0x10007681f
mov eax, 0x800
mov byte [0x1000fd210], dil
test word [rsp + 0x2e], ax
jne 0x100076826
mov byte [0x1000fd210], 0
lea rax, [rbx + 0xc0]
lea rcx, [0x1000fd2e0]
mov qword [0x1000fd2f0], rax
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea r8, [0x1000fce28]
mov r9d, 2
mov edx, 0x20001009
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov ecx, dword [0x1000fce28]
test eax, eax
cmove ecx, edi
cmp byte [0x1000fd210], 0
mov dword [0x1000fce28], ecx
je 0x1000768d0
test byte [0x1000fd22a], dil
je 0x1000768d0
mov rcx, qword [0x1000fd2f0]
mov edx, 0xffffffec
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
bt rax, 0x16
jb 0x1000768d0
mov rcx, qword [0x1000fd2f0]
mov edx, 0xffffffec
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
mov rcx, qword [0x1000fd2f0]
mov edx, 0xffffffec
mov rcx, qword [rcx + 0x40]
or rax, 0x7000
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
lea rcx, [0x1000764d8]
mov r8d, edi
mov edx, COleDropTarget::XDropTarget::AddRef
call qword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
lea rcx, [0x1000764d8]
mov edx, COleDropTarget::XDropTarget::AddRef
mov r8d, 2
call qword [sym.imp.KERNEL32.dll_EnumDateFormatsExW]
lea rcx, [0x1000765ac]
xor r8d, r8d
mov edx, COleDropTarget::XDropTarget::AddRef
call qword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
and qword [0x1000fd2f0], 0
mov rcx, qword [rbx + 0x100]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x186
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1000011e0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret