joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002cdc
Capabilities:
Access the windows event log

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x348]
sub rsp, reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400398a8]
xor rax, rsp
mov qword [rbp + 0x320], rax
mov edi, ecx
mov dword [rsp + 0x50], ecx
lea r8, [rsp + 0x50]
lea rdx, str.Heartbeat_exception_thrown:__d
mov ecx, 2
call fcn.140001e6c
mov eax, edi
mov ecx, reloc.Mso20Win32Client.dll_Ordinal_255
and eax, ecx
cmp eax, ecx
je reloc.Mso20Win32Client.dll_Ordinal_255
mov ebx, 0x17
jmp reloc.Mso20Win32Client.dll_Ordinal_255
movzx ebx, di
mov eax, 0xba
cmp ebx, eax
cmovge ebx, eax
mov dword [rsp + 0x50], edi
lea r8, [rsp + 0x50]
lea rdx, str.Subscription_licensing_service_failed:__d
lea rcx, [rsp + 0x68]
call fcn.140001444
nop
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
mov qword [rsp + 0x58], rax
mov r14d, 1
xor r8d, r8d
mov edx, r14d
xor esi, esi
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], esi
mov word [rsp + 0x28], r14w
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov rcx, qword [0x140049430]
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
test edi, edi
jns reloc.Mso20Win32Client.dll_Ordinal_255
mov dword [rbp - 0x70], ebx
mov dword [rbp + 0x194], r14d
mov word [rbp + 0x298], si
mov word [rbp + 0x198], si
mov word [rbp - 0x6c], si
lea rdx, [0x140043670]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
xor r8d, r8d
mov dl, r14b
lea rcx, [rsp + 0x68]
call fcn.140003208
mov rcx, qword [rbp + 0x320]
xor rcx, rsp
call fcn.140003dd0
lea r11, [rsp + 0x430]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140003cd4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x1400398a8]
movabs rdi, reloc.Mso20Win32Client.dll_Ordinal_255
test rax, rax
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, qword [0x1400398a8]
cmp rax, rdi
jne reloc.Mso20Win32Client.dll_Ordinal_255
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rbx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
lea rcx, [rsp + 0x40]
xor rbx, rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xor rbx, qword [rsp + 0x40]
lea r9, [rsp + 0x30]
mov edx, 8
lea rcx, [0x1400398a8]
lea r8d, [rdx + 0x38]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
test rbx, rbx
lea rcx, [0x1400398a8]
mov edx, 8
cmovne rdi, rbx
mov qword [0x1400398a8], rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, 8
lea rcx, [0x1400398a8]
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov rax, qword [0x1400398a8]
not rax
mov qword [0x140049200], rax
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x1400042e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, reloc.Mso20Win32Client.dll_Ordinal_255
cmp word [0x140000000], ax
jne reloc.Mso20Win32Client.dll_Ordinal_255
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, reloc.Mso20Win32Client.dll_Ordinal_255
cmp word [rcx + 0x18], ax
jne reloc.Mso20Win32Client.dll_Ordinal_255
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je reloc.Mso20Win32Client.dll_Ordinal_255
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb reloc.Mso20Win32Client.dll_Ordinal_255
add rdx, 0x28
jmp reloc.Mso20Win32Client.dll_Ordinal_255
xor edx, edx
test rdx, rdx
jne reloc.Mso20Win32Client.dll_Ordinal_255
xor al, al
jmp reloc.Mso20Win32Client.dll_Ordinal_255
test dword [rdx + 0x24], 0x80000000
je reloc.Mso20Win32Client.dll_Ordinal_255
xor al, al
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov al, 1
jmp reloc.Mso20Win32Client.dll_Ordinal_255
xor al, al
jmp reloc.Mso20Win32Client.dll_Ordinal_255
add rsp, 0x18
ret
Function at 0x140004590
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, reloc.Mso20Win32Client.dll_Ordinal_255
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x1400092d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
movzx r11d, word [rdx]
xor ebx, ebx
mov r9d, ebx
mov r10, rdx
mov eax, reloc.Mso20Win32Client.dll_Ordinal_255
jmp reloc.Mso20Win32Client.dll_Ordinal_255
inc r9d
cmp r9d, r8d
ja reloc.Mso20Win32Client.dll_Ordinal_255
add eax, eax
mov edx, eax
movzx ecx, ax
sar edx, 0x10
mov eax, edx
or eax, ecx
movzx ecx, r11w
xor eax, ecx
add r10, 2
movzx r11d, word [r10]
test r11w, r11w
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov rbx, qword [rsp + 8]
ret

Function at 0x14000bb20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, qword [0x1400398a8]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, reloc.Mso20Win32Client.dll_Ordinal_255
xor ebx, ebx
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov word [rdi], bx
lea r8d, [rbx + 0x2b]
xor ecx, ecx
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je reloc.Mso20Win32Client.dll_Ordinal_255
cmp word [rsp + 0x20], bx
je reloc.Mso20Win32Client.dll_Ordinal_255
mov r9, rsi
lea rdx, str.Microsoft_Shared
mov r8, rdi
lea rcx, [rsp + 0x20]
call fcn.14000b9a4
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140003dd0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000bc20
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r15d, r15d
lea rax, [rbp - 8]
mov r14, r9
mov qword [rbp - 8], r15
mov rsi, r8
mov dword [rbp - 0x10], r15d
mov r9d, reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [r11 - 0x38], rax
xor r8d, r8d
mov ebx, r15d
mov edi, 0x16
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0xc]
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov ecx, dword [rbp - 0x10]
cmp rcx, qword [rbp + 0x40]
ja reloc.Mso20Win32Client.dll_Ordinal_255
add rcx, rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0xc]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, dword [rbp - 0x10]
mov r8, rbx
mov rdx, qword [rbp + 0x40]
mov rcx, r14
shr rax, 1
mov word [rbx + rax*2 - 2], r15w
mov r9d, dword [rbp - 0x10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
mov edi, eax
mov rcx, qword [rbp - 8]
test rcx, rcx
je reloc.Mso20Win32Client.dll_Ordinal_255
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 8], r15
test rbx, rbx
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret

Function at 0x14000bd38
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, qword [0x1400398a8]
xor rax, rsp
mov qword [rsp + 0x360], 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 reloc.Mso20Win32Client.dll_Ordinal_255
cmp dword [rsp + 0x38], ebx
jne reloc.Mso20Win32Client.dll_Ordinal_255
xor edx, edx
lea rcx, [rsp + 0x150]
mov r8d, reloc.Mso20Win32Client.dll_Ordinal_255
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x150]
mov qword [rsp + 0x20], 0x104
lea r8, str.CurrentVersion
mov rcx, reloc.Mso20Win32Client.dll_Ordinal_255
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
call fcn.14000bc20
lea rdx, [0x140042050]
lea rcx, [rsp + 0x150]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
setne bl
jmp reloc.Mso20Win32Client.dll_Ordinal_255
cmp dword [rsp + 0x38], 2
jae reloc.Mso20Win32Client.dll_Ordinal_255
cmp dword [rsp + 0x34], 6
jbe reloc.Mso20Win32Client.dll_Ordinal_255
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.140003dd0
add rsp, reloc.Mso20Win32Client.dll_Ordinal_255
pop rbx
ret
Function at 0x14000c88c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x30
and dword [rax + 0x10], 0
mov rbx, rcx
and qword [rax + 0x20], 0
mov r9d, reloc.Mso20Win32Client.dll_Ordinal_255
mov dword [rax + 0x18], 4
lea rax, [rax + 0x20]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftOfficeSoftwareProtectionPlatform
mov rcx, reloc.Mso20Win32Client.dll_Ordinal_255
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx edx, ax
or edx, reloc.Mso20Win32Client.dll_Ordinal_255
test eax, eax
cmovle edx, eax
test edx, edx
js reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.ReferralData
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, reloc.Mso20Win32Client.dll_Ordinal_255
test eax, eax
cmovle edx, eax
test edx, edx
js reloc.Mso20Win32Client.dll_Ordinal_255
mov ecx, dword [rsp + 0x48]
mov dword [rbx], ecx
mov eax, edx
add rsp, 0x30
pop rbx
ret
Function at 0x14000fccc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x60
and dword [rax - 0x40], 0
mov ebx, 2
and qword [rax - 0x48], 0
xor r9d, r9d
mov dword [rax - 0x50], 0x80
xor r8d, r8d
mov edx, reloc.Mso20Win32Client.dll_Ordinal_255
mov dword [rax - 0x58], ebx
call sub.Mso20Win32Client.dll_Ordinal_1013
mov rdi, rax
cmp rax, reloc.Mso20Win32Client.dll_Ordinal_255
je reloc.Mso20Win32Client.dll_Ordinal_255
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x30]
mov r8d, ebx
mov word [rbp + 0x28], 0xfeff
lea rdx, [rbp + 0x28]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, reloc.Mso20Win32Client.dll_Ordinal_255
jmp reloc.Mso20Win32Client.dll_Ordinal_255
and qword [rbp + 0x38], 0
lea rdx, str.__xml_version_1.0__encoding_UTF_16____r_n_HeartbeatCache__
lea rcx, [rbp + 0x38]
call fcn.140011244
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x30]
mov r8d, eax
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne reloc.Mso20Win32Client.dll_Ordinal_255
test rbx, rbx
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [0x140039ac0]
mov edx, 0x2d
mov qword [rbp - 0x20], rax
lea r9, str.HeartbeatAdapter::CreateEmptyCacheFile
lea rax, str.Information
mov ecx, reloc.Mso20Win32Client.dll_Ordinal_255
mov qword [rbp - 0x18], rax
lea rax, str.Successfully_created_empty_cache_file
mov qword [rbp - 0x10], rax
lea r8d, [rdx + 5]
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
call fcn.140006d50
test rbx, rbx
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
add rsp, 0x60
pop rdi
pop rbx
pop rbp
ret
Function at 0x140011534
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rdx
test rdx, rdx
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov dword [0], 1
xor ecx, ecx
int 0x29
and dword [rsp + 0x38], 0
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], Ordinal_134
mov edx, reloc.Mso20Win32Client.dll_Ordinal_255
mov dword [rsp + 0x20], 3
call sub.Mso20Win32Client.dll_Ordinal_1013
or rcx, reloc.Mso20Win32Client.dll_Ordinal_255
mov rbx, rax
cmp rax, rcx
jne reloc.Mso20Win32Client.dll_Ordinal_255
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp reloc.Mso20Win32Client.dll_Ordinal_255
and dword [rsp + 0x70], 0
lea rdx, [rsp + 0x70]
xor eax, eax
mov rcx, rbx
mov dword [rsp + 0x74], eax
call sub.Mso20Win32Client.dll_Ordinal_889
test eax, eax
jne reloc.Mso20Win32Client.dll_Ordinal_255
test rbx, rbx
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rbx
jmp reloc.Mso20Win32Client.dll_Ordinal_255
cmp qword [rsp + 0x70], 1
jle reloc.Mso20Win32Client.dll_Ordinal_255
mov eax, reloc.Mso20Win32Client.dll_Ordinal_255
cmp qword [rsp + 0x70], rax
jg reloc.Mso20Win32Client.dll_Ordinal_255
mov esi, dword [rsp + 0x70]
xor edx, edx
mov ecx, esi
call sub.Mso20Win32Client.dll_Ordinal_1378
mov rdi, rax
test rax, rax
je reloc.Mso20Win32Client.dll_Ordinal_255
and dword [rsp + 0x68], 0
lea r9, [rsp + 0x68]
and qword [rsp + 0x20], 0
mov r8d, esi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rdi
call sub.Mso20Win32Client.dll_Ordinal_118
jmp reloc.Mso20Win32Client.dll_Ordinal_255
cmp dword [rsp + 0x68], esi
jne reloc.Mso20Win32Client.dll_Ordinal_255
cmp byte [rdi], 0xff
jne reloc.Mso20Win32Client.dll_Ordinal_255
cmp byte [rdi + 1], 0xfe
jne reloc.Mso20Win32Client.dll_Ordinal_255
lea edx, [rsi - 2]
shr edx, 1
lea rcx, [rdi + 2]
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rcx, rax
neg rcx
sbb edx, edx
not edx
and edx, reloc.Mso20Win32Client.dll_Ordinal_255
jge reloc.Mso20Win32Client.dll_Ordinal_255
test rax, rax
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rdi
mov qword [r14], rax
call sub.Mso20Win32Client.dll_Ordinal_118
test rbx, rbx
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x140011684
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rbx, rcx
and qword [rbp + 0x48], 0
lea rcx, [rbp + 0x48]
call fcn.140011c8c
mov edi, eax
test eax, eax
js reloc.Mso20Win32Client.dll_Ordinal_255
lea r14, [0x140039ac0]
mov qword [rbp - 0x30], r14
lea rax, str.CacheFile
mov qword [rbp - 0x28], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], r14
lea r15, str.Information
mov qword [rbp - 0x10], r15
lea rax, str.Saving_updated_cache_file
mov qword [rbp - 8], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r9, str.HeartbeatAdapter::SaveCacheFile
mov edx, 0x2d
mov ecx, reloc.Mso20Win32Client.dll_Ordinal_255
lea r8d, [rdx + 5]
call fcn.140006de0
and qword [rbp - 0x40], 0
mov rcx, qword [rbx]
test rcx, rcx
jne reloc.Mso20Win32Client.dll_Ordinal_255
mov edi, reloc.Mso20Win32Client.dll_Ordinal_255
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov rax, qword [rcx]
call qword [rax + 0x70]
mov r8, qword [rax]
lea rdx, [rbp - 0x40]
mov rcx, rax
call qword [r8 + 0xb8]
mov edi, eax
test eax, eax
js reloc.Mso20Win32Client.dll_Ordinal_255
and dword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_134
mov edi, 2
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, qword [rbp + 0x48]
call sub.Mso20Win32Client.dll_Ordinal_1013
mov rbx, rax
cmp rax, reloc.Mso20Win32Client.dll_Ordinal_255
je reloc.Mso20Win32Client.dll_Ordinal_255
mov word [rbp + 0x38], 0xfeff
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x40]
mov r8d, edi
lea rdx, [rbp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rdi, qword [rbp - 0x40]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov r8d, eax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x40]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r15
lea rax, str.Successfully_saved_the_updated_cache
mov qword [rbp - 8], rax
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
lea r9, str.HeartbeatAdapter::SaveCacheFile
mov edx, 0x2d
mov ecx, reloc.Mso20Win32Client.dll_Ordinal_255
lea r8d, [rdx + 5]
call fcn.140006d50
jmp reloc.Mso20Win32Client.dll_Ordinal_255
mov edi, reloc.Mso20Win32Client.dll_Ordinal_255
jmp reloc.Mso20Win32Client.dll_Ordinal_255
xor edi, edi
test rbx, rbx
je reloc.Mso20Win32Client.dll_Ordinal_255
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je reloc.Mso20Win32Client.dll_Ordinal_255
and qword [rbp - 0x40], 0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je reloc.Mso20Win32Client.dll_Ordinal_255
and qword [rbp + 0x48], 0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rbx
pop rbp
ret
Function at 0x14001dc30
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400bc190]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea r11, [rbx + 0x2c]
mov qword [rsp + 0x28], r11
xor esi, esi
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x14001de70]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x14001de39
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], sil
lea r8d, [rsi + 0xd]
lea rdx, str.Thread::Start
lea rcx, [rsp + 0x40]
call fcn.1400050b0
nop
lea rcx, [rbp - 0x70]
call fcn.140057a14
nop
lea r12, vtable.BaseException.0
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x40], 0xf
mov qword [rbp - 0x48], rsi
mov byte [rbp - 0x58], sil
xor r8d, r8d
lea rdx, [0x14009b802]
lea rcx, [rbp - 0x58]
call fcn.1400050b0
nop
lea r13, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x18], 0xf
mov qword [rbp - 0x20], rsi
mov byte [rbp - 0x30], sil
cmp qword [rsp + 0x50], rsi
jbe 0x14001dd7d
lea r8, [0x14009c634]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140008610
nop
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.140004f10
nop
cmp qword [rbp - 0x80], 0x10
jb 0x14001dd6b
mov rcx, qword [rsp + 0x68]
call fcn.140058288
mov qword [rbp - 0x80], 0xf
mov qword [rsp + 0x78], rsi
mov byte [rsp + 0x68], 0
lea rdi, vtable.Exception.0
mov qword [rbp - 0x70], rdi
lea rdx, str.CreateThreadfailed__error
lea rcx, [rbp - 0x70]
call fcn.14001e670
mov rcx, rax
lea rdx, [rsp + 0x34]
call fcn.14001e4c0
mov rcx, rax
call fcn.14001e820
mov rcx, rax
call fcn.14000ff90
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.14001e4c0
mov rbx, rax
mov rdx, rax
lea rcx, [rbp]
call fcn.140057c1c
nop
mov qword [rbp], r12
mov qword [rbp + 0x30], 0xf
mov qword [rbp + 0x28], rsi
mov byte [rbp + 0x18], 0
lea rdx, [rbx + 0x18]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0x18]
call fcn.140004fa0
nop
mov qword [rbp], r13
mov qword [rbp + 0x58], 0xf
mov qword [rbp + 0x50], rsi
mov byte [rbp + 0x40], 0
lea rdx, [rbx + 0x40]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0x40]
call fcn.140004fa0
nop
mov qword [rbp], rdi
lea rdx, [0x1400b9790]
lea rcx, [rbp]
call fcn.14005a4ec
nop
mov rcx, rbx
call fcn.14001e0e0
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400579a0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x140023aa0
Capabilities:
Identify system language via api

Disassembly:
sub rsp, 0x28
cmp byte [0x1400c63fe], 0
je 0x140023ab8
mov eax, dword [0x1400c6400]
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edx, ax
mov ecx, edx
and ecx, 0x3ff
sub ecx, 7
je 0x140023b15
sub ecx, 3
je 0x140023af7
sub ecx, 0xb
je 0x140023aed
dec ecx
je 0x140023ae3
xor eax, eax
add rsp, 0x28
ret
mov eax, 2
add rsp, 0x28
ret
mov eax, 5
add rsp, 0x28
ret
and edx, 0xfffffc00
mov eax, 3
mov ecx, 1
cmp edx, 0x800
cmovne eax, ecx
add rsp, 0x28
ret
mov eax, 4
add rsp, 0x28
ret
Function at 0x14002cc80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400bc190]
xor rax, rsp
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov r9, rcx
xor eax, eax
xor ecx, ecx
mov qword [rsp], r8
mov qword [rsp + 8], r8
cpuid
mov dword [rsp + 0x10], 0x756e6547
mov dword [rsp + 0x14], 0x6c65746e
mov dword [rsp], eax
mov dword [rsp + 4], ebx
mov dword [rsp + 8], ecx
mov dword [rsp + 0xc], edx
mov dword [rsp + 0x18], 0x49656e69
nop word [rax + rax]
mov eax, dword [rsp + r8 + 0x10]
cmp dword [rsp + r8 + 4], eax
jne 0x14002cd88
add r8, 4
cmp r8, 0xc
jl 0x14002cce0
xor ecx, ecx
mov eax, 1
cpuid
mov dword [rsp + 4], ebx
mov dword [rsp + 8], ecx
mov ebx, eax
mov r8d, eax
mov r10d, eax
mov ecx, eax
sar ebx, 8
mov r11d, eax
sar r8d, 4
sar r10d, 0xc
sar ecx, 0x10
sar eax, 0x14
and ebx, 0xf
and r11d, 0xf
and r8d, 0xf
and r10d, 3
and ecx, 0xf
mov dword [rsp + 0xc], edx
movzx edx, al
cmp ebx, 0xf
je 0x14002cd53
mov edx, ebx
cmp ebx, 6
je 0x14002cd56
mov ecx, r8d
jmp 0x14002cd5c
add edx, 0xf
shl ecx, 4
add ecx, r8d
mov dword [r9 + 8], ebx
mov dword [r9 + 0x14], edx
mov dword [r9 + 0x10], ecx
mov dword [r9 + 4], r8d
mov dword [r9 + 0xc], r10d
mov dword [r9], r11d
mov al, 1
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1400579a0
add rsp, 0x30
pop rbx
ret
xor al, al
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.1400579a0
add rsp, 0x30
pop rbx
ret