joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140082260
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x370
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
cmp dword [rsp + 0x34], 6
jne 0x14008230e
cmp dword [rsp + 0x38], ebx
jne 0x140082302
mov edi, 0x104
lea rcx, [rsp + 0x150]
xor edx, edx
mov r8d, edi
call sub.MSVCR100.dll_memset
lea r9, [rsp + 0x150]
lea r8, str.CurrentVersion
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rdi
call fcn.14008213c
lea ecx, [rbx + 4]
lea rsi, [rsp + 0x150]
lea rdi, [0x140109df0]
repe cmpsw word [rsi], word [rdi]
setne bl
jmp 0x140082315
cmp dword [rsp + 0x38], 2
jae 0x140082310
cmp dword [rsp + 0x34], 6
jbe 0x140082315
mov ebx, 1
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400056f0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140082690
Capabilities:
Reference public rsa key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
call fcn.140082668
test eax, eax
je 0x14008273d
cmp dword [rdi + 8], ebx
jne 0x14008273d
lea rsi, [rdi + 0x50]
cmp qword [rsi], 0xffffffffffffffff
je 0x1400826cd
cmp qword [rsi], rbx
jne 0x14008273d
mov rax, qword [0x14017cd48]
test rax, rax
je 0x1400826e4
mov rcx, rsi
call rax
mov ebx, eax
test eax, eax
jns 0x140082719
mov rcx, qword [rdi + 0x468]
mov edx, 4
call fcn.140083c6c
mov ebx, eax
test eax, eax
js 0x14008273d
mov rax, qword [0x14017cd48]
test rax, rax
jne 0x14008270e
mov ebx, 0x800701e7
jmp 0x14008273d
mov rcx, rsi
call rax
mov ebx, eax
test eax, eax
js 0x14008273d
mov rdx, qword [rsi]
test rdx, rdx
je 0x14008273d
mov r8d, dword [0x140178480]
lea rcx, [rdi + 0x470]
lea r9, [0x140178490]
call fcn.140083000
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rbp
ret
Function at 0x140084b0c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x30
and dword [rax + 0x10], 0
and qword [rax + 0x20], 0
mov dword [rax + 0x18], 4
lea rax, [rax + 0x20]
mov rbx, rcx
lea rdx, str.SoftwareMicrosoftOfficeSoftwareProtectionPlatform
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
test edx, edx
js 0x140084baa
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea rdx, str.ReferralData
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
test edx, edx
js 0x140084baa
mov ecx, dword [rsp + 0x48]
mov dword [rbx], ecx
mov eax, edx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rbp
ret
Function at 0x140084f50
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x478
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x50], rax
xor eax, eax
mov rsi, rcx
mov r13, r8
mov r14d, edx
mov edi, 0x206
lea rcx, [rsp + 0x42]
mov r8d, edi
xor edx, edx
mov r12, r9
mov ebx, eax
mov r15d, eax
mov qword [rsp + 0x30], rax
mov word [rsp + 0x40], ax
call sub.MSVCR100.dll_memset
xor eax, eax
lea rcx, [rsp + 0x252]
mov r8d, edi
xor edx, edx
mov word [rsp + 0x250], ax
call sub.MSVCR100.dll_memset
xor eax, eax
mov edi, 1
test rsi, rsi
je 0x140084fd2
test r14d, r14d
jne 0x140084fd4
mov edi, eax
lea r8, str.SoftwareMicrosoftOffice15.0Registration_
lea rcx, [rsp + 0x40]
or r9, 0xffffffffffffffff
mov edx, 0x104
call qword [sym.imp.MSVCR100.dll_wcsncpy_s]
cmp eax, 0x50
je 0x140085155
cmp r13, 0xffffffff80000001
jne 0x14008506d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x250]
mov dword [rsp + 0x38], 0x104
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x140085155
lea r8, [rsp + 0x250]
lea rcx, [rsp + 0x40]
or r9, 0xffffffffffffffff
mov edx, 0x104
call qword [sym.imp.MSVCR100.dll_wcsncat_s]
cmp eax, 0x50
je 0x140085155
lea r8, [0x1400c7f9c]
lea rcx, [rsp + 0x40]
or r9, 0xffffffffffffffff
mov edx, 0x104
call qword [sym.imp.MSVCR100.dll_wcsncat_s]
cmp eax, 0x50
je 0x140085155
test edi, edi
je 0x1400850e3
cmp word [rsi], 0x7b
mov edi, 0x104
je 0x1400850a3
lea r8, [0x14010a120]
lea rcx, [rsp + 0x40]
or r9, 0xffffffffffffffff
mov edx, edi
mov r15d, 1
call qword [sym.imp.MSVCR100.dll_wcsncat_s]
cmp eax, 0x50
je 0x140085155
lea rcx, [rsp + 0x40]
mov r9, r14
mov r8, rsi
mov rdx, rdi
call qword [sym.imp.MSVCR100.dll_wcsncat_s]
cmp eax, 0x50
je 0x140085155
test r15d, r15d
je 0x1400850e3
lea r8, [0x140109bb4]
lea rcx, [rsp + 0x40]
or r9, 0xffffffffffffffff
mov rdx, rdi
call qword [sym.imp.MSVCR100.dll_wcsncat_s]
cmp eax, 0x50
je 0x140085155
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, 0x80070000
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
test ecx, ecx
js 0x140085155
xor ecx, ecx
test r12, r12
jne 0x140085123
lea ebx, [rcx + 1]
jmp 0x140085155
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ecx, ax
or ecx, edi
test eax, eax
cmovle ecx, eax
mov eax, 1
test ecx, ecx
cmovns ebx, eax
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140085165
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp - 0x50]
xor rcx, rsp
call fcn.1400056f0
add rsp, 0x478
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14008840c
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
push rbp
mov rbp, rsp
sub rsp, 0x90
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov dword [rsp + 0x38], 1
xor esi, esi
mov qword [r11 - 0x68], rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [fcn.14008b238]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140088568
mov word [rsp + 0x40], 0xfeff
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x44]
lea r8d, [rsi + 2]
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400884a9
mov eax, 0x80004005
jmp 0x14008856a
mov qword [rsp + 0x48], rsi
lea rdx, str.__xml_version_1.0__encoding_UTF_16____r_n_HeartbeatCache__
lea rcx, [rsp + 0x48]
call fcn.1400857ac
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov r8d, eax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x44]
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400884fa
test rbx, rbx
je 0x14008849f
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x14008849f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rsi
mov word [rsp + 0x58], si
mov r8d, 0x38
lea rdx, str.HeartbeatAdapter:_Successfully_created_empty_cache_file.
lea rcx, [rsp + 0x58]
call fcn.140001a28
lea rdx, [rsp + 0x58]
mov ecx, 2
call qword [fcn.14002a800]
cmp qword [rsp + 0x70], 8
jb 0x14008855a
mov rcx, qword [rsp + 0x58]
call qword [fcn.14002d25c]
nop
test rbx, rbx
je 0x140088568
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400056f0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140088590
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x490
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor esi, esi
mov rbx, rcx
test rcx, rcx
jne 0x1400885cc
mov eax, 0x80004003
jmp 0x1400886ee
mov qword [rcx], rsi
mov edi, 0x206
lea rcx, [rsp + 0x272]
xor edx, edx
mov r8d, edi
mov word [rsp + 0x270], si
call sub.MSVCR100.dll_memset
lea rcx, [rsp + 0x62]
mov r8d, edi
xor edx, edx
mov word [rsp + 0x60], si
call sub.MSVCR100.dll_memset
mov r9d, 1
lea rdx, [rsp + 0x270]
lea r8d, [r9 + 0x22]
xor ecx, ecx
mov qword [rsp + 0x30], rsi
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x14008862f
mov eax, 0x80004005
jmp 0x1400886ee
lea rax, [rsp + 0x270]
or rdi, 0xffffffffffffffff
lea r9, str._sMicrosoftOfficeHeartbeat
lea rcx, [rsp + 0x60]
mov edx, 0x104
mov r8, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR100.dll__snwprintf_s]
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14008867e
cmp dword [rsp + 0x38], 0xffffffff
je 0x140088625
test byte [rsp + 0x38], 0x10
je 0x140088625
lea rax, [rsp + 0x270]
lea r9, str._sMicrosoftOfficeHeartbeatHeartbeatCache.xml
lea rcx, [rsp + 0x60]
mov r8, rdi
mov edx, 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCR100.dll__snwprintf_s]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.1400857ac
mov edi, eax
test eax, eax
jns 0x1400886ce
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400886ca
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
jmp 0x1400886ee
mov rax, qword [rsp + 0x30]
lea r8, [rsp + 0x60]
lea rdx, str.HeartbeatAdapter:_Cache_file_location:__s
mov ecx, 2
mov qword [rbx], rax
call fcn.1400888ec
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400056f0
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140088fb4
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [r11 - 0x18], 0
lea rax, [r11 - 0x18]
mov rbx, rcx
lea rdx, str.CLSID
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [r11 - 0x28], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008909f
mov rcx, qword [rsp + 0x30]
and qword [rsp + 0x68], 0
lea rax, [rsp + 0x68]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008908f
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
lea rdx, str.InsecureQI
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14008908f
cmp dword [rsp + 0x58], 4
jne 0x14008908f
mov ebx, dword [rsp + 0x60]
cmp ebx, 3
ja 0x14008908f
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14008907b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14008908b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400890b1
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14008909f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400890af
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x1400894f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x14017ce34], 0
je 0x14008951e
mov eax, dword [0x14017ce38]
jmp 0x14008964e
and qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x14017ce38]
test eax, eax
jne 0x1400895b4
mov rdx, qword [str.CLSIDInterfaceTest]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400895b4
cmp dword [rsp + 0x40], ebx
jne 0x1400895b4
mov rcx, qword [rsp + 0x48]
mov ebx, dword [0x14017ce38]
mov byte [0x14017ce34], 1
test rcx, rcx
je 0x1400895ad
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14008964e
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x48], 0
test rcx, rcx
je 0x1400895ca
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x48]
lea rdx, str.SoftwareMicrosoftSecurity
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14008962e
mov rdx, qword [str.CLSIDInterfaceTest]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14008962e
cmp dword [rsp + 0x40], ebx
je 0x140089590
mov rcx, qword [rsp + 0x48]
and dword [0x14017ce38], 0
mov byte [0x14017ce34], 1
test rcx, rcx
je 0x14008964c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret
Function at 0x140089f3c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
push rdi
push r15
sub rsp, 0x40
mov edi, ecx
lea r9, [rsp + 0x30]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerAdvanced
xor ebx, ebx
mov r8d, 0x20019
mov rcx, 0xffffffff80000001
and qword [rsp + 0x30], rbx
call fcn.14008f150
test eax, eax
jne 0x14008a08e
lea r15d, [rbx + 1]
test r15b, dil
je 0x140089fd7
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x68], ebx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
lea rdx, str.HideFileExt
xor r8d, r8d
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140089fcf
cmp dword [rsp + 0x78], 4
jne 0x140089fcf
mov eax, dword [rsp + 0x68]
jmp 0x140089fd1
xor eax, eax
test eax, eax
cmove ebx, r15d
test dil, 2
je 0x14008a033
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x68], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
lea rdx, str.Hidden
xor r8d, r8d
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14008a029
cmp dword [rsp + 0x78], 4
jne 0x14008a029
mov eax, dword [rsp + 0x68]
jmp 0x14008a02b
xor eax, eax
cmp eax, r15d
jne 0x14008a033
or ebx, 2
test dil, 4
je 0x14008a08e
mov rcx, qword [rsp + 0x30]
and dword [rsp + 0x68], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x78]
lea rdx, str.ShowSuperHidden
xor r8d, r8d
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14008a085
cmp dword [rsp + 0x78], 4
jne 0x14008a085
mov eax, dword [rsp + 0x68]
jmp 0x14008a087
xor eax, eax
test eax, eax
je 0x14008a08e
or ebx, 4
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14008a0a4
and qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop rdi
pop rbp
ret

Function at 0x14008a3c0
Capabilities:
Access the windows event log

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x48]
mov qword [rsp + 0x38], rax
mov eax, dword [rbp + 0x40]
mov dword [rsp + 0x30], eax
movzx eax, word [rbp + 0x38]
mov word [rsp + 0x28], ax
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
add rsp, 0x50
pop rbp
ret

Function at 0x14008b28c
Capabilities:
Get file size

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
add rsp, 0x20
pop rbp
jmp qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
Function at 0x14008b324
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
mov rbp, rsp
push rdi
push r14
sub rsp, 0x30
mov r14, rdx
lea rdx, [rsp + 0x68]
mov rsi, rcx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x14008b3c2
mov ecx, edi
xor edx, edx
call fcn.14002d1f4
mov rbx, rax
test rax, rax
je 0x14008b3c2
mov r9, rax
mov r8d, edi
xor edx, edx
mov rcx, rsi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14008b3ba
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x20]
lea rdx, [0x1400c7f9c]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14008b3ba
cmp dword [rsp + 0x60], 0
je 0x14008b3ba
mov rdx, qword [rsp + 0x20]
mov rcx, r14
mov r8d, 0x34
call sub.MSVCR100.dll_memcpy
mov rcx, rbx
call fcn.14002d25c
mov eax, 1
jmp 0x14008b3c4
mov rcx, rbx
call fcn.14002d25c
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rbp
ret

Function at 0x14008cd10
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x20
xor r14d, r14d
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
test r8d, r8d
jne 0x14008cd42
call fcn.14002d1b0
int3
mov word [rdx], r14w
mov rcx, rdi
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x14008cd59
xor eax, eax
jmp 0x14008cd84
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call fcn.14000b700
lea ecx, [rbx - 1]
lea rcx, [rdi + rcx*2]
cmp rax, rcx
jb 0x14008cd7f
mov ecx, 0x206611
call fcn.14002cdf4
jmp 0x14008cd55
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret

Function at 0x14008cdc8
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
mov rbp, rsp
push rdi
push r14
sub rsp, 0xa30
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x20], rax
mov rbx, rcx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x200
call sub.MSVCR100.dll_memset
xor esi, esi
lea rcx, [rsp + 0x220]
or r9, 0xffffffffffffffff
mov r8, rbx
mov edx, 0x400
mov edi, esi
call qword [sym.imp.MSVCR100.dll_wcsncpy_s]
mov ebx, esi
lea r14d, [rsi + 0x5c]
lea rcx, [rsp + 0x220]
mov edx, r14d
call qword [sym.imp.MSVCR100.dll_wcsrchr]
test rax, rax
je 0x14008ce4a
mov qword [rsp + rbx*8 + 0x20], rax
inc edi
mov word [rax], si
inc rbx
cmp rbx, 0x40
jge 0x14008ce66
test rax, rax
je 0x14008ce66
lea rcx, [rsp + 0x220]
call fcn.14008a2d0
test eax, eax
js 0x14008ce27
cmp edi, 0x40
jl 0x14008ce8f
xor eax, eax
jmp 0x14008ce9a
mov rax, qword [rsp + rbx*8 + 0x18]
dec rbx
lea rcx, [rsp + 0x220]
xor edx, edx
mov word [rax], r14w
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14008ce6b
cmp rbx, 1
jg 0x14008ce6f
mov eax, 1
mov rcx, qword [rbp - 0x20]
xor rcx, rsp
call fcn.1400056f0
lea r11, [rsp + 0xa30]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14008cec0
Capabilities:
Check if file exists
Delete directory
Delete file

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dl, 1
add rsp, 0x20
pop rbp
jmp 0x14008ced4
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
mov rbp, rsp
push rdi
push r12
push r14
push r15
sub rsp, 0x2a0
mov rax, qword [0x1400c8590]
xor rax, rsp
mov qword [rbp - 0x30], rax
mov r15b, dl
mov rdi, rcx
mov esi, 1
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008d08c
test al, 0x10
je 0x14008d08c
xor r12d, r12d
test rdi, rdi
jne 0x14008d052
mov ebx, r12d
lea rcx, [rsp + 0x70]
mov r8, rdi
mov edx, 0x10a
call qword [sym.imp.MSVCR100.dll_wcscpy_s]
mov eax, 0x5c
cmp word [rsp + rbx*2 + 0x6e], ax
je 0x14008cf56
mov word [rsp + rbx*2 + 0x70], ax
add rbx, rsi
lea rdi, [rbx + rbx]
lea r14, [rsp + 0x70]
lea r8, [0x14010b170]
add r14, rdi
mov edx, 4
mov rcx, r14
call qword [sym.imp.MSVCR100.dll_wcscpy_s]
lea rbx, [rbx*2 + 8]
cmp rbx, 0x214
jae 0x14008d0be
xor edx, edx
lea rcx, [rsp + 0x38]
mov word [rsp + rbx + 0x70], r12w
lea r8d, [rdx + 0x30]
call sub.MSVCR100.dll_memset
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov eax, 0x614
mov qword [rsp + 0x30], r12
mov word [rsp + 0x50], ax
mov dword [rsp + 0x38], 3
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x14008cffa
mov dword [rsp + 0x28], eax
xor edx, edx
lea rax, [rsp + 0x70]
lea r9, str.Recursively_deleting_the_converter_output_directory__ls_failed__err___d
lea r8d, [rdx + 0x14]
mov ecx, 0x20660e
mov qword [rsp + 0x20], rax
call fcn.140056e9c
mov sil, r12b
test r15b, r15b
je 0x14008d04d
cmp rdi, 0x214
jae 0x14008d0b6
lea rcx, [rsp + 0x70]
mov word [r14], r12w
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14008d04d
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
lea r9, str.Removing_the_converter_output_directory__ls_failed__err___d
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x70]
lea r8d, [rdx + 0x14]
mov ecx, 0x20660f
mov qword [rsp + 0x20], rax
call fcn.140056e9c
mov sil, r12b
mov al, sil
jmp 0x14008d08e
mov r14d, 0x105
mov rcx, rdi
mov edx, r14d
call qword [sym.imp.MSVCR100.dll_wcsnlen]
mov rbx, rax
cmp rax, r14
jne 0x14008cf2f
xor edx, edx
lea r9, str.Path_is_too_long:__s
mov ecx, 0x20660d
lea r8d, [rdx + 0x14]
mov qword [rsp + 0x20], rdi
call fcn.140056e9c
xor al, al
mov rcx, qword [rbp - 0x30]
xor rcx, rsp
call fcn.1400056f0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
xor ecx, ecx
call fcn.140005dc4
int3
xor ecx, ecx
call fcn.140005dc4
int3