joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e4d38
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x78]
sub rsp, 0x160
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rsi, rcx
mov dword [rsp + 0x40], edx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r14d, eax
sub eax, dword [rsi + 0xc8]
cqo
xor rax, rdx
sub rax, rdx
cmp rax, 0x36ee80
jle 0x1400e4ec0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsi + 0xcc]
mov dword [rsp + 0x48], eax
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.StreamPercent:_d_StreamTime:_d
lea rcx, [rbp - 0x68]
call fcn.1400dafb8
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1400e4dca
mov rdi, qword [rax]
lea rcx, [rbp - 0x40]
call fcn.1400f6db0
mov rbx, rax
lea rcx, [rsi + 8]
lea rdx, [rbp - 0x78]
call fcn.14005f104
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400584e0
lea rcx, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rsp + 0x50], rcx
lea rcx, str.ContextData
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r9, str.TaskStream::SendHeartbeat
mov edx, 0x3ac
mov ecx, 0x5605c8
mov r8d, 0x32
call fcn.1400573a0
nop
mov rbx, qword [rbp - 0x80]
test rbx, rbx
je 0x1400e4e72
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
add eax, edi
jne 0x1400e4e72
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
add eax, edi
jne 0x1400e4e72
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x30]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x10]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x38]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x68]
call fcn.140007eb8
mov dword [rsi + 0xc8], r14d
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140022430
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400eab54
Capabilities:
Get disk size

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rsp + 0x48], rax
and dword [rsp + 0x20], 0
xor eax, eax
mov dword [rsp + 0x24], eax
movsxd rdi, edx
call fcn.140045480
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1400493c8
cmp qword [rax + 0x18], 8
jb 0x1400eab97
mov rax, qword [rax]
xor r9d, r9d
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
xor r8d, r8d
lea rcx, [rsp + 0x28]
mov dl, 1
mov ebx, eax
call fcn.140007eb8
test ebx, ebx
je 0x1400eabd2
mov rcx, rdi
shl rcx, 0x14
cmp qword [rsp + 0x20], rcx
jae 0x1400eabd2
mov al, 1
jmp 0x1400eabd4
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400eb1b8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
lea rbp, [rax - 0x38]
sub rsp, 0x120
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov rcx, rdi
call fcn.1400eb918
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
mov dword [rsp + 0x30], eax
cmp qword [rsi + 0x18], 8
jb 0x1400eb210
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rsi
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, str._s.Approximate_duration_:__d_milliseconds.
lea rcx, [rsp + 0x60]
call fcn.140049d1c
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x1400eb23d
mov rbx, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.1400f6db0
lea rcx, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rsp + 0x40], rcx
lea rcx, str.ContextData
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.MonitoredScope::ExecuteUnderStopWatch
mov edx, 0x3b0
mov ecx, 0x51054a
mov r8d, 0x32
call fcn.140014654
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140007eb8
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400f7c7c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rdi, rcx
mov rsi, r8
mov rcx, qword [rcx + 0x30]
mov rbx, rdx
test rcx, rcx
je 0x1400f7d7f
and dword [rsp + 0x34], 0
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x30], 3
jb 0x1400f7cd1
mov rdx, qword [rdx]
lea rax, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
je 0x1400f7d5b
cmp dword [rsp + 0x30], 3
jne 0x1400f7d5b
test eax, eax
jne 0x1400f7daa
mov edx, dword [rsp + 0x34]
mov rcx, rsi
call fcn.140022114
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
neg rax
sbb rcx, rcx
and rcx, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x1400f7d2b
mov rdx, qword [rbx]
jmp 0x1400f7d2e
mov rdx, rbx
lea rax, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400f7dde
mov al, 1
jmp 0x1400f7d5d
xor al, al
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0x418]
add rsp, 0x3e0
pop rdi
pop rsi
pop rbp
ret
mov r9, rdx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_value._The_tregistry_key_is_closed_or_not_set
mov edx, 0x3a
lea rcx, [rsp + 0x40]
call fcn.140008ed8
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, [rdi + 0x10]
mov r9, rbx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
mov qword [rsp + 0x20], rax
mov edx, 0x2b
lea rcx, [rsp + 0x40]
call fcn.1400f541c
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rax, [rdi + 0x10]
mov r9, rbx
lea r8, str.ORegistryKey.GetValue_failure:_Cannot_get_the_binary_value___s__in_registry_key__s.
mov qword [rsp + 0x20], rax
mov edx, 0x2b
lea rcx, [rsp + 0x40]
call fcn.1400f541c
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1400feaa8
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov rdi, rdx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov rcx, qword [rdi]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
lea r14, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
lea r15, str.ContextData
test al, al
je 0x1400febde
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi]
call fcn.14008e688
nop
cmp qword [rax + 0x18], 8
jb 0x1400feb1d
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
lea rdx, str.Watcher_is_running_successfully._WatcherName:_s
lea rcx, [rbp + 0x10]
call fcn.1400097cc
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1400feb44
mov rdi, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.1400f6db0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rdi
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.Watcher::Watch
mov edx, 0x3b0
mov ecx, 0x71d70b
mov r8d, 0x32
call fcn.140014654
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x10]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140007eb8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
mov dword [rsp + 0x30], eax
cmp qword [rbx + 0x18], 8
jb 0x1400febf4
mov rbx, qword [rbx]
mov qword [rsp + 0x50], rbx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x50]
lea rdx, str._s.Approximate_duration_:__d_milliseconds.
lea rcx, [rsp + 0x60]
call fcn.140049d1c
mov rbx, rax
cmp qword [rax + 0x18], 8
jb 0x1400fec21
mov rbx, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.1400f6db0
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rbx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, str.MonitoredScope::ExecuteUnderStopWatch
mov edx, 0x3b0
mov ecx, 0x51054a
mov r8d, 0x32
call fcn.140014654
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x10]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140007eb8
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x78]
call fcn.140007eb8
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x60]
call fcn.140007eb8
mov eax, dword [rsp + 0x30]
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0x180]
add rsp, 0x140
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401054f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
push r15
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rdi, r8
mov r14, rdx
mov rsi, rcx
mov r9, qword [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x140105528
mov r8, qword [r8]
movabs rcx, 0xcbf29ce484222325
xor edx, edx
add r9, r9
je 0x140105557
movzx eax, byte [r8 + rdx]
xor rcx, rax
movabs r10, 0x100000001b3
imul rcx, r10
inc rdx
cmp rdx, r9
jb 0x140105539
mov r15, qword [rsi + 0x30]
and r15, rcx
add r15, r15
mov rbx, qword [rsi + 0x18]
mov rbx, qword [rbx + r15*8]
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x18]
cmp qword [rcx + r15*8], rax
je 0x14010557f
mov rax, qword [rcx + r15*8 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x1401055e8
lea rcx, [rbx + 0x10]
mov rax, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 8
jb 0x140105598
mov r9, qword [rdi]
jmp 0x14010559b
mov r9, rdi
mov qword [rsp + 0x20], rax
mov r8, qword [rcx + 0x10]
xor edx, edx
call fcn.140012c50
nop
test eax, eax
je 0x1401055b5
mov rbx, qword [rbx]
jmp 0x140105569
lea r9, [rbx + 0x10]
mov rax, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x1401055c7
mov r9, qword [r9]
mov qword [rsp + 0x20], rax
mov r8, qword [rdi + 0x10]
xor edx, edx
mov rcx, rdi
call fcn.140012c50
nop
test eax, eax
je 0x1401055e3
mov rbx, qword [rsi + 8]
mov qword [r14], rbx
jmp 0x1401055ef
mov rax, qword [rsi + 8]
mov qword [r14], rax
mov rax, r14
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
add rsp, 0x40
pop r15
ret
Function at 0x14011ace0
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rsi, rdx
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rdi, rcx
call fcn.14011d21c
xor r15d, r15d
lea rcx, [rsp + 0x38]
cmp qword [rax + 8], r15
sete bl
call fcn.14011cb00
test bl, bl
je 0x14011ad44
xor eax, eax
jmp 0x14011ae63
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14011d21c
mov r12d, 0x200
lea rcx, [rsp + 0x70]
mov edx, r12d
mov r8, qword [rax + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x38]
call fcn.14011cb00
mov r14d, 1
movzx ebx, r14w
cmp r14w, word [rdi]
jae 0x14011add1
lea r8, [0x1401d2590]
mov rdx, r12
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
movzx r8d, bx
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14011d21c
mov rdx, r12
lea rcx, [rsp + 0x70]
mov r8, qword [rax + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rcx, [rsp + 0x38]
call fcn.14011cb00
add bx, r14w
cmp bx, word [rdi]
jb 0x14011ad86
lea r8, str.__TrueType_
mov rdx, r12
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rax, [rsp + 0x30]
mov r9d, 0x20006
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14011ae60
mov rcx, qword [rsp + 0x30]
lea rdx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rsi + rcx*2], r15w
jne 0x14011ae25
lea ecx, [rcx*2 + 2]
mov r9d, r14d
mov dword [rsp + 0x28], ecx
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, r14d
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140022430
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x14011c2f4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
call fcn.14011c260
mov dword [rsp + 0x38], 1
xor r9d, r9d
and qword [rsp + 0x30], 0
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call sub.Mso20Win32Client.dll_Ordinal_1345
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14011c348
xor al, al
jmp 0x14011c38f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
mov dword [rdi], eax
call qword [0x1402794e0]
mov qword [rdi + 8], rax
test rax, rax
je 0x14011c39a
mov r8d, dword [rdi]
lea r9, [rsp + 0x68]
and qword [rsp + 0x20], 0
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14011c3bc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call fcn.14011c260
lea rdx, [0x1401e5a18]
mov dword [rsp + 0x60], 0x1003
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov rcx, rdi
call fcn.14011c260
lea rdx, [0x1401e5a18]
mov dword [rsp + 0x60], 0x100b
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x14011c3e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, rdx
mov dword [rsp + 0x38], 1
and qword [rsp + 0x30], 0
mov rbx, rcx
mov r8d, 2
mov dword [rsp + 0x28], 0x80
mov rcx, rax
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov edx, 0x40000000
call sub.Mso20Win32Client.dll_Ordinal_1345
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14011c42e
xor al, al
jmp 0x14011c45b
mov r8d, dword [rbx]
lea r9, [rsp + 0x60]
mov rdx, qword [rbx + 8]
mov rcx, rax
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
mov rcx, rdi
sbb bl, bl
and bl, 1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14011d270
Capabilities:
Get common file path
Get file version info

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x158]
sub rsp, 0x250
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov ebx, dword [0x1402741bc]
cmp ebx, 0xffffffff
jne 0x14011d389
mov edi, 0x104
lea rcx, [rsp + 0x30]
mov edx, edi
mov ebx, 0x409
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14011d383
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rsp + rcx*2 + 0x2e], 0x5c
je 0x14011d2f7
lea r8, [0x14017c6c4]
mov edx, edi
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, str.fontext.dll
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea rdx, [rsp + 0x24]
lea rcx, [rsp + 0x30]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test eax, eax
je 0x14011d383
mov edx, esi
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14011d383
mov edx, dword [rsp + 0x24]
lea rcx, [rsp + 0x30]
mov r9, rax
mov r8d, esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14011d37a
lea r9, [rsp + 0x20]
mov rcx, rdi
lea r8, [rsp + 0x28]
lea rdx, str.VarFileInfoTranslation
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14011d37a
cmp dword [rsp + 0x20], 4
jb 0x14011d37a
mov rax, qword [rsp + 0x28]
movzx ebx, word [rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x1402741bc], ebx
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140022430
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14011db94
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor edi, edi
mov dword [rbp - 0x49], edi
mov r8b, 1
mov edx, 0x3e8
lea rcx, [rbp - 1]
call fcn.14011de0c
nop
cmp qword [rbp + 0xf], rdi
sete al
test al, al
je 0x14011dd87
mov r8b, 1
mov edx, 0xbb9
lea rcx, [rbp + 0x1f]
call fcn.14011de0c
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rdi
lea ebx, [rdi + 7]
mov qword [rbp - 9], rbx
mov qword [rbp - 0x11], rdi
mov word [rbp - 0x21], di
lea r8d, [rdi + 1]
lea rdx, [0x140197240]
lea rcx, [rbp - 0x21]
call fcn.1400083f8
nop
lea r8, [rbp - 0x21]
lea rdx, [rbp - 0x41]
lea rcx, [rbp + 0x1f]
call fcn.1400332d0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.140007eb8
mov rax, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x41]
sub rax, rcx
sar rax, 5
cmp rax, 3
jb 0x14011dd6f
lea esi, [rdi + 1]
dec rax
cmp rsi, rax
jae 0x14011dd6f
lea r15d, [rdi + 0x20]
lea rdx, [rcx + r15]
mov qword [rbp - 9], rbx
mov qword [rbp - 0x11], rdi
mov word [rbp - 0x21], di
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x21]
call fcn.1400082c0
nop
mov r8, qword [rbp - 0x11]
test r8, r8
sete al
test al, al
jne 0x14011dcec
mov r14, rdi
test r8, r8
je 0x14011dcec
lea rax, [rbp - 0x21]
cmp qword [rbp - 9], 8
cmovae rax, qword [rbp - 0x21]
lea rbx, [rbp - 0x21]
cmovae rbx, qword [rbp - 0x21]
movzx ecx, word [rax + r14*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_towlower]
mov word [rbx + r14*2], ax
inc r14
mov r8, qword [rbp - 0x11]
cmp r14, r8
jb 0x14011dcb4
mov ebx, 7
mov qword [rsp + 0x20], rbx
lea r9, [0x14017ead0]
xor edx, edx
lea rcx, [rbp - 0x21]
call fcn.140012c50
test eax, eax
je 0x14011dd3a
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.140007eb8
add rsi, 2
add r15, 0x40
mov rax, qword [rbp - 0x39]
mov rcx, qword [rbp - 0x41]
sub rax, rcx
sar rax, 5
dec rax
cmp rsi, rax
jb 0x14011dc7d
jmp 0x14011dd6f
lea rdx, [rsi + 1]
shl rdx, 5
add rdx, qword [rbp - 0x41]
lea rax, [rbp - 1]
cmp rax, rdx
je 0x14011dd60
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 1]
call fcn.1400082c0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x21]
call fcn.140007eb8
nop
lea rcx, [rbp - 0x41]
call fcn.14002adb4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x1f]
call fcn.140007eb8
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rcx, qword [rbp - 1]
mov r9d, 2
lea r8, [rbp - 0x49]
mov edx, 0x20000070
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, dword [rbp - 0x49]
test eax, eax
je 0x14011ddcf
sub eax, 1
je 0x14011ddcc
sub eax, 1
je 0x14011ddcf
cmp eax, 1
je 0x14011ddcc
mov ecx, 0x3413a3
call fcn.140013b28
jmp 0x14011ddcf
mov dil, 1
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 1]
call fcn.140007eb8
mov al, dil
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140022430
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1401231d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x140198858]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r10, qword [rcx + 0x30]
cmp r10, 0xffffffffffffffff
je 0x140123261
xor ebx, ebx
cmp qword [rdx + 0x18], 8
mov dword [rsp + 0x30], ebx
jb 0x140123212
mov rax, qword [rdx]
jmp 0x140123215
mov rax, rdx
mov rcx, qword [rdx + 0x10]
mov edx, 0xffffffff
cmp rcx, rdx
ja 0x140123289
lea r8d, [rcx + rcx]
mov qword [rsp + 0x20], rbx
mov rcx, r10
lea r9, [rsp + 0x30]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1401232bc
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140022430
mov rbx, qword [rsp + 0x400]
add rsp, 0x3e0
pop rbp
ret
lea r8, str.trying_to_write_to_a_file_thats_not_open
mov edx, 0x15
lea rcx, [rsp + 0x40]
call fcn.140031bb0
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, [0x1401e5908]
mov dword [rsp + 0x40], 0x5d
lea rcx, [rsp + 0x40]
mov dword [rbp + 0x144], ebx
mov word [rbp + 0x248], bx
mov word [rbp + 0x148], bx
mov word [rsp + 0x44], bx
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.write_to_file_failed
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.14002f8c0
lea rdx, [0x1401e5908]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140126608
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 [0x140279604], 0
je 0x14012662e
mov eax, dword [0x140279608]
jmp 0x140126732
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x140279608]
test eax, eax
jne 0x14012669a
mov rdx, qword [str.CLSIDInterfaceTest]
lea rax, [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14012669a
cmp dword [rbp + 0x10], ebx
je 0x140126709
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x1401266ae
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140126711
mov rdx, qword [str.CLSIDInterfaceTest]
lea rax, [rbp + 0x10]
mov rcx, qword [rbp + 0x18]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140126711
cmp dword [rbp + 0x10], ebx
jne 0x140126711
mov ebx, dword [0x140279608]
jmp 0x14012671a
and dword [0x140279608], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov byte [0x140279604], 1
test rcx, rcx
je 0x140126730
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret