joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ae200
Capabilities:
Get session information
Get session user name

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov rbp, rdx
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8d, 5
mov edx, esi
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x1401ae2f7
or rbx, 0xffffffffffffffff
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x1401ae28b
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, rbp
call fcn.140002560
mov rcx, qword [rsp + 0x78]
call sub.WTSAPI32.dll_WTSFreeMemory
mov qword [rsp + 0x78], 0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140001eb0
nop
mov r8d, 1
lea rdx, [0x14033ff78]
lea rcx, [rsp + 0x30]
call fcn.140002740
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x78]
mov r8d, 7
mov edx, esi
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
jne 0x1401ae2fb
mov rax, qword [rsp + 0x30]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1401ae2f7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
jmp 0x1401ae349
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x1401ae32a
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rcx, r12
call fcn.140002560
mov rcx, qword [rsp + 0x78]
call sub.WTSAPI32.dll_WTSFreeMemory
nop
mov rax, qword [rsp + 0x30]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1401ae347
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x1401aea00
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov r12, r9
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov rdx, qword [r9 + 8]
mov rdx, qword [rdx + 8]
mov rcx, r9
call fcn.14018eda0
mov r11, qword [r12 + 8]
mov qword [r11 + 8], r11
mov rax, qword [r12 + 8]
mov qword [rax], rax
mov rax, qword [r12 + 8]
mov qword [rax + 0x10], rax
xor r13d, r13d
mov qword [r12 + 0x10], r13
mov qword [rbp + 0x1f], r13
mov dword [rbp + 0x27], r13d
mov qword [rbp + 0x2f], r13
or edi, 9
mov r9d, edi
mov r8, qword [rbx]
mov rdx, rsi
lea rcx, [rbp + 0x1f]
call fcn.14000b4d0
test eax, eax
je 0x1401aea9d
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x1401aea96
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x1401aec21
mov dword [rbp + 0x77], r13d
mov dword [rbp + 0x6f], r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rdi, qword [rbp + 0x1f]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1401aeb03
test rdi, rdi
je 0x1401aeafc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x1401aec21
mov ebx, r13d
cmp dword [rbp + 0x77], ebx
jbe 0x1401aec11
nop
mov eax, dword [rbp + 0x6f]
inc eax
mov dword [rbp + 0x7f], eax
lea rcx, [0x14042f270]
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
lea r8, [rax + 0x18]
mov qword [rbp - 9], r8
mov edx, dword [rbp + 0x7f]
inc edx
js 0x1401aec06
mov ecx, 1
sub ecx, dword [r8 - 8]
mov eax, dword [r8 - 0xc]
sub eax, edx
or eax, ecx
jge 0x1401aeb5c
lea rcx, [rbp - 9]
call fcn.140002650
mov r8, qword [rbp - 9]
lea rax, [rbp + 7]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rbp + 0x7f]
mov edx, ebx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov rcx, qword [rbp - 9]
movsxd rdx, dword [rcx - 0xc]
call fcn.140251840
test eax, eax
js 0x1401aebfb
mov rcx, qword [rbp - 9]
cmp eax, dword [rcx - 0xc]
jg 0x1401aebfb
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbp - 9]
mov word [rax + rcx*2], r13w
lea rdx, [rbp - 9]
mov rcx, r12
call fcn.1401adf90
mov r8, rax
xor r9d, r9d
lea rdx, [rbp + 0xf]
mov rcx, r12
call fcn.1401ae000
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401aebea
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
inc ebx
mov rdi, qword [rbp + 0x1f]
cmp ebx, dword [rbp + 0x77]
jb 0x1401aeb10
jmp 0x1401aec11
mov ecx, 0x80070057
call fcn.140001290
int3
mov ecx, 0x80070057
call fcn.140001290
nop
test rdi, rdi
je 0x1401aec1f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401af400
Capabilities:
Check internet connectivity via wininet

Disassembly:
sub rsp, 0x28
lea rcx, [rsp + 0x30]
xor edx, edx
mov dword [rsp + 0x30], 0
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test byte [rsp + 0x30], 7
jne 0x1401af429
test eax, eax
jne 0x1401af429
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret

Function at 0x1401af690
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x170
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x24], 0
mov edx, 0x20
lea r8d, [rdx - 0x1f]
call fcn.1401af490
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov r11d, dword [rsp + 0x44]
cmp r11d, 5
jne 0x1401af711
mov word [rsp + 0x20], 0x78
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140049220
mov r11d, dword [rsp + 0x44]
cmp r11d, 6
jne 0x1401af767
mov eax, dword [rsp + 0x48]
cmp eax, 1
jne 0x1401af741
cmp byte [rsp + 0x15a], al
jne 0x1401af753
mov word [rsp + 0x20], 0x73
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140049220
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1401af753
cmp eax, 1
jne 0x1401af767
cmp byte [rsp + 0x15a], al
je 0x1401af767
mov word [rsp + 0x20], 0x76
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140049220
mov rax, rbx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140250fd0
add rsp, 0x170
pop rbx
ret
Function at 0x1401b61b0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov rdi, rcx
call fcn.1401af9d0
test eax, eax
je 0x1401b62e2
mov rcx, qword [0x140441738]
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x8003
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp qword [rdi + 0x18], 0x10
mov r11, qword [rdi + 0x10]
jb 0x1401b621d
mov rdi, qword [rdi]
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
mov r8d, r11d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x48]
xor edi, edi
lea edx, [rdi + 2]
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov dword [rsp + 0x30], 0x10
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1401b6267
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, 0x10
mov rcx, rbx
mov qword [rsp + 0x48], rdi
call fcn.14019de50
mov r11, rdi
nop dword [rax]
movzx eax, byte [rsp + r11 + 0x38]
mov rcx, qword [rbx]
add r11, 4
mov byte [r11 + rcx - 4], al
movzx eax, byte [rsp + r11 + 0x35]
mov rcx, qword [rbx]
mov byte [rcx + r11 - 3], al
movzx eax, byte [rsp + r11 + 0x36]
mov rcx, qword [rbx]
mov byte [rcx + r11 - 2], al
movzx eax, byte [rsp + r11 + 0x37]
mov rcx, qword [rbx]
mov byte [rcx + r11 - 1], al
cmp r11, 0x10
jl 0x1401b6280
mov rcx, qword [0x140441738]
test rcx, rcx
je 0x1401b62d6
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [0x140441738], rdi
mov eax, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140250fd0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1401b6300
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rdx
mov rsi, rcx
mov qword [r11 - 0x38], rcx
call fcn.1401af9d0
test eax, eax
jne 0x1401b6351
mov rcx, qword [rsi]
test rcx, rcx
je 0x1401b6348
call fcn.140250354
xor edi, edi
xor eax, eax
jmp 0x1401b645e
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rcx, qword [0x140441738]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov r8d, dword [rsi + 8]
sub r8d, dword [rsi]
xor r9d, r9d
mov rdx, qword [rsi]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [rsp + 0x30], 0x10
xor edi, edi
mov dword [rsp + 0x20], edi
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x48]
lea edx, [rdi + 2]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1401b63d2
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rsp + 0x58], rdi
mov edx, 0x10
mov rcx, rbx
call fcn.14019de50
mov r11, rdi
nop word [rax + rax]
mov rcx, qword [rbx]
movzx eax, byte [rsp + r11 + 0x48]
mov byte [r11 + rcx], al
mov rcx, qword [rbx]
movzx eax, byte [rsp + r11 + 0x49]
mov byte [rcx + r11 + 1], al
mov rcx, qword [rbx]
movzx eax, byte [rsp + r11 + 0x4a]
mov byte [rcx + r11 + 2], al
mov rcx, qword [rbx]
movzx eax, byte [rsp + r11 + 0x4b]
mov byte [rcx + r11 + 3], al
add r11, 4
cmp r11, 0x10
jl 0x1401b63f0
mov rcx, qword [0x140441738]
test rcx, rcx
je 0x1401b6445
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov qword [0x140441738], rdi
mov rcx, qword [rsi]
test rcx, rcx
je 0x1401b6459
call fcn.140250354
mov eax, 1
mov qword [rsi + 0x10], rdi
mov qword [rsi + 8], rdi
mov qword [rsi], rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140250fd0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1401b6fe0
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rax, qword [0x14042f270]
lea rcx, [0x14042f270]
mov rsi, rdx
call qword [rax + 0x18]
xor r9d, r9d
xor r8d, r8d
add rax, 0x18
lea edx, [r9 + 0x23]
xor ecx, ecx
mov qword [rsi], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
or rbx, 0xffffffffffffffff
test eax, eax
js 0x1401b7064
xor eax, eax
lea rdi, [rsp + 0x40]
mov rcx, rbx
repne scasw ax, word [rdi]
lea rdx, [rsp + 0x40]
not rcx
lea r8d, [rcx - 1]
mov rcx, rsi
call fcn.140002560
mov rax, qword [0x14042f270]
lea rcx, [0x14042f270]
call qword [rax + 0x18]
mov ecx, 1
sub ecx, dword [rax + 0x10]
lea rdi, [rax + 0x18]
mov eax, dword [rax + 0xc]
mov qword [rsp + 0x30], rdi
sub eax, 0x104
or eax, ecx
jge 0x1401b70a6
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140002650
mov rdi, qword [rsp + 0x30]
mov r8d, 0x104
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movsxd rdx, dword [rdi - 0xc]
mov rcx, rdi
call fcn.140251840
test eax, eax
js 0x1401b7183
cmp eax, dword [rdi - 0xc]
jg 0x1401b7183
xor ecx, ecx
mov dword [rdi - 0x10], eax
cdqe
lea edx, [rcx + 0x5c]
mov word [rdi + rax*2], cx
mov rcx, rdi
call fcn.140252630
test rax, rax
je 0x1401b7143
sub rax, rdi
sar rax, 1
cmp eax, 0xffffffff
je 0x1401b7143
mov r8d, dword [rdi - 0x10]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
sub r8d, eax
call fcn.140002000
mov rcx, rsi
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
call fcn.140002740
mov rdx, qword [rsp + 0x38]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401b713e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdi, qword [rsp + 0x30]
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1401b715b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rsi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140250fd0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80070057
call fcn.140001290
int3
Function at 0x1401b8440
Capabilities:
Create directory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push r12
sub rsp, 0x160
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rsi, r9
mov r12, r8
mov rbx, rdx
mov rdi, rcx
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r8d, r8d
mov rdx, qword [rdi]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
nop
lea r8, [0x14033ff78]
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.14001db30
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000f920
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401b84d2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x20]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1401b7210
nop
mov r8, rsi
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.14006a9c0
lea rcx, [rsp + 0x58]
call fcn.14005eb60
test rax, rax
jne 0x1401b853a
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rcx, [rsp + rcx + 0x50]
mov edx, dword [rcx + 0x10]
or edx, 2
cmp qword [rcx + 0x48], 0
jne 0x1401b8531
or edx, 4
xor r8d, r8d
call fcn.14003d460
nop
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
lea rcx, [rsp + 0x58]
call fcn.14005d3d0
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0xf8], rax
lea rcx, [rsp + 0xf8]
call fcn.140218da8
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1401b85b7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x1401b85c1
lea rcx, [rdi + 8]
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1401ba950
Capabilities:
Set file attributes

Disassembly:
push rbx
sub rsp, 0x1d0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
mov edx, 0x80
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [rsp + 0x20], 1
mov r9d, 0x40
lea r8d, [r9 - 0x3e]
mov rdx, qword [rbx + 0x20]
lea rcx, [rsp + 0xa0]
call fcn.1401b7210
nop
lea rdx, [rbx + 0x58]
mov rax, qword [rdx + 8]
cmp rax, qword [rdx]
je 0x1401ba9be
lea rcx, [rsp + 0x1b0]
call fcn.1401b6750
lea rdx, [rbx + 0x78]
mov rcx, rax
call fcn.1401b6300
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + rcx + 0xa0]
test byte [rax + 0x10], 6
mov ecx, 0
cmovne rax, rcx
test rax, rax
je 0x1401baa34
xor r8d, r8d
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x40]
call fcn.1402252d0
lea r11, vtable.boost::archive::text_oarchive.0
mov qword [rsp + 0x40], r11
mov rdx, rbx
lea rcx, [rsp + 0x51]
call fcn.1401ba410
nop
lea rax, vtable.boost::archive::basic_text_oarchive_class_boost::archive::text_oarchive_.0
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.14021fe20
nop
lea rcx, [rsp + 0x60]
call fcn.140225990
mov edx, 2
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
lea rax, [rsp + 0x148]
mov qword [rsp + 0x1e0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xa0], rax
lea rcx, [rsp + 0xa8]
call fcn.14005d3d0
nop
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0xa0], rax
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x148], rax
lea rcx, [rsp + 0x148]
call fcn.140218da8
add rsp, 0x1d0
pop rbx
ret
Function at 0x1401bd340
Capabilities:
Check os version

Disassembly:
push rdi
sub rsp, 0x160
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140441950]
mov rdi, rcx
mov dword [rsp + 0x20], 0
test al, 1
jne 0x1401bd3a1
or eax, 1
lea rcx, [0x14042f270]
mov dword [0x140441950], eax
mov rax, qword [0x14042f270]
call qword [rax + 0x18]
lea rcx, [0x1402f0850]
add rax, 0x18
mov qword [0x140441948], rax
call fcn.140251298
mov rax, qword [0x140441948]
cmp dword [rax - 0x10], 0
jne 0x1401bd468
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x178], rbx
mov dword [rsp + 0x30], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x34], 5
lea rcx, [0x140441958]
lea rax, [0x140441960]
cmovbe rax, rcx
mov rdx, qword [rax]
mov rax, qword [0x140441948]
lea rbx, [rax - 0x18]
lea rcx, [rdx - 0x18]
cmp rcx, rbx
je 0x1401bd460
cmp dword [rbx + 0x10], 0
jl 0x1401bd449
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1401bd449
mov qword [rsp + 0x180], rsi
call fcn.1400026b0
or ecx, 0xffffffff
mov rsi, rax
lock xadd dword [rbx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1401bd434
mov rcx, qword [rbx]
mov rdx, rbx
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov rsi, qword [rsp + 0x180]
mov qword [0x140441948], rax
jmp 0x1401bd460
mov r8d, dword [rdx - 0x10]
lea rcx, [0x140441948]
call fcn.140002560
mov rax, qword [0x140441948]
mov rbx, qword [rsp + 0x178]
lea rcx, [rax - 0x18]
call fcn.1400026b0
add rax, 0x18
mov qword [rdi], rax
mov rax, rdi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140250fd0
add rsp, 0x160
pop rdi
ret

Function at 0x1401c52d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.1401ce040
nop
lea r8, [0x14033ff78]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14001db30
nop
lea r8, str.defaults_
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14001db30
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401c533f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1401c535e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbx + 0x108]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x40]
call fcn.140002740
mov r8d, 4
lea rdx, str..xml
lea rcx, [rsp + 0x40]
call fcn.140002740
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x1401c53b9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, bl
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1401d2200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 8]
mov rbp, r9
mov rdi, r8
mov rsi, rdx
test rcx, rcx
je 0x1401d2231
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov rcx, qword [rbx + 0x10]
xor r12d, r12d
mov qword [rbx + 8], r12
test rcx, rcx
je 0x1401d2255
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 0x10], r12
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1401d235a
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x1401d235a
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1401d235a
mov edx, esi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1401d235a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x1401d234c
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call fcn.140250b70
mov rcx, qword [rbx + 0x10]
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x40], r12
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1401d2342
mov rcx, qword [rsp + 0x40]
xor edx, edx
call fcn.1401d2110
mov rcx, qword [rsp + 0x40]
mov qword [rbx + 8], rax
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r11, qword [rbx + 8]
test r11, r11
je 0x1401d2342
mov eax, dword [r11 + 0x10]
mov dword [r11 + 0x10], r12d
test eax, eax
jne 0x1401d232b
mov al, 1
jmp 0x1401d235c
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1401d233e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 8], r12
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov qword [rbx + 0x10], r12
xor al, al
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret

Function at 0x1401d68d0
Capabilities:
Check os version

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x150
mov rax, qword [0x140437340]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov r12d, r9d
mov rbp, r8
mov rsi, rdx
mov rdi, rcx
call sym.DriverReviver.exe_private:_static_class_CMsgBoxInfo____ptr64___cdecl_boost::serialization::singleton_class_CMsgBoxInfo_::get_instance_void_
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, rdi
mov r8d, eax
mov rcx, rbx
call fcn.1401d66d0
cmp dword [0x140441d30], 0
jne 0x1401d694a
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor r11d, r11d
cmp dword [rsp + 0x24], 5
seta r11b
inc r11d
mov dword [0x140441d30], r11d
mov r9d, r12d
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140250fd0
add rsp, 0x150
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret