joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b29c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14001b2e8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001b2e0
cmp dword [rcx + 0x3c], edx
jl 0x14001b2e0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14001b2e0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14001b2e8
mov rax, rdx
add rsp, 0x18
ret

Function at 0x14093b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14093b1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14093b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14093b06f
add dl, dl
jne 0x14093b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14093b0f6
xor eax, eax
add dl, dl
jne 0x14093b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14093b1ad
add dl, dl
jne 0x14093b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14093b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14093b07e
mov eax, 1
add dl, dl
jne 0x14093b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14093b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14093b0fb
sub eax, ebx
mov ebx, 1
jne 0x14093b14c
mov ecx, 1
add dl, dl
jne 0x14093b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14093b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14093b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14093b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14093b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14093b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14093b15d
cmp eax, 0x7d00
jae 0x14093b19b
cmp eax, 0x500
jb 0x14093b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14093b07e
cmp eax, 0x7f
ja 0x14093b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14093b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14093b1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14093b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001860
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, dword [0x14002e618]
xor ebx, ebx
mov rdi, rcx
test eax, eax
je 0x140001891
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14002e618]
cmp dword [0x14002e61c], ebx
mov esi, 1
je 0x1400018a2
mov ebx, esi
jmp 0x1400018c4
test eax, eax
jne 0x1400018af
call fcn.14000169c
test eax, eax
je 0x1400018c4
mov rcx, qword [0x14002d038]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
cmovne ebx, esi
test ebx, ebx
jne 0x1400018eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, esi
jbe 0x1400018e3
cmp eax, 0x78
je 0x1400018e3
cmp eax, esi
je 0x1400018e3
cmp eax, 0x32
jne 0x1400018eb
mov dword [0x14002e61c], esi
mov ebx, esi
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140001b14
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbx
sub rsp, 0x670
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x660], rax
xor ebx, ebx
cmp qword [0x14002e628], rbx
jne 0x140001be8
lea rax, [rsp + 0x450]
mov dword [rsp + 0x28], 0x104
or r9d, 0xffffffff
mov qword [rsp + 0x20], rax
lea r8, [0x140025ab0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140001bcd
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140001bcd
lea rdx, [rsp + 0x240]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x102
ja 0x140001bcd
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor r8d, r8d
lea rcx, [rsp + 0x450]
call fcn.140001a74
lea rcx, [rsp + 0x240]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp rbx, 0x20
jl 0x140001be8
mov edx, 0x142
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002e628], rax
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.14001f240
add rsp, 0x670
pop rbx
ret
Function at 0x140007770
Capabilities:
Get common file path
Set current directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, qword [0x14002e650]
xor ebx, ebx
mov byte [rsp + 0x30], bl
mov r14, r8
mov rsi, rdx
test rdx, rdx
je 0x140007816
cmp byte [rdx], bl
je 0x140007816
cmp byte [rdx + 1], 0x3a
jne 0x140007816
cmp byte [rdx + 2], 0x5c
jne 0x140007816
lea rdx, [rsp + 0x30]
mov ecx, 0x226
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov cl, byte [rsi]
mov rdx, rsi
jmp 0x1400077f1
cmp cl, 0x5c
mov rax, rdx
mov rcx, rdx
cmovne rax, rbx
mov rbx, rax
call qword [sym.imp.USER32.dll_CharNextA]
mov rdx, rax
mov cl, byte [rax]
test cl, cl
jne 0x1400077d6
mov rax, rbx
lea rdi, [rbx + 1]
sub rax, rsi
cmp rax, 2
cmovne rdi, rbx
mov bl, byte [rdi]
mov byte [rdi], cl
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov byte [rdi], bl
mov rdx, rsi
mov qword [rsp + 0x28], r14
mov rcx, rbp
call fcn.14001cb00
mov ebx, eax
test r14, r14
je 0x140007835
test eax, eax
jns 0x140007835
and qword [r14], 0
cmp byte [rsp + 0x30], 0
je 0x140007847
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001f240
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14000f728
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
mov rbx, rcx
call fcn.14001ba08
cmp dword [rbx], 0
mov rdi, rax
mov rcx, rax
je 0x14000f779
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea r8, [rsp + 0x30]
mov rcx, rsi
mov ebx, eax
lea edx, [rbx + 1]
call fcn.140006490
mov rdx, qword [rsp + 0x30]
lea r8d, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14000f78e
cmp qword [rsi], 0
lea rdx, [0x140026548]
cmovne rdx, qword [rsi]
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140010d5c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
lea edi, [r14 + 1]
mov r9d, edi
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftOffice16.0OutlookInstallRoot
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
lea rax, [0x140024e10]
mov qword [rbp - 0x29], rax
mov rcx, qword [rbp - 0x19]
je 0x140010dc8
mov ecx, r14d
mov qword [rbp - 0x21], rcx
test rcx, rcx
je 0x140010f0d
mov qword [rbp - 0x11], r14
mov qword [rbp - 1], r14
mov eax, 7
mov qword [rbp + 7], rax
mov word [rbp - 0x11], r14w
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x1f], r14
mov qword [rbp + 0x27], rax
lea r9, [rbp + 0xf]
lea r8, [rbp - 0x11]
lea rcx, [rbp - 0x29]
call fcn.140011794
test al, al
je 0x140010e12
cmp qword [rbp - 1], r14
jne 0x140010e15
mov dil, r14b
mov r15d, 0x1000
mov rax, qword [rbp + 0x27]
cmp rax, 8
jb 0x140010e57
lea rax, [rax*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rdx, rcx
cmp rax, r15
jb 0x140010e51
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140010e51
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test dil, dil
je 0x140010ecd
lea rcx, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rcx, qword [rbp - 0x11]
mov r8, rbx
mov rdx, rsi
call fcn.1400123c4
test al, al
je 0x140010ecd
cmp qword [rbx + 0x18], 8
jb 0x140010e83
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rax, qword [rbp + 7]
cmp rax, 8
jb 0x140010ec7
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rdx, rcx
cmp rax, r15
jb 0x140010ec1
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x140010efc
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x21]
jmp 0x140010f10
mov rax, qword [rbp + 7]
cmp rax, 8
jb 0x140010f09
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x11]
mov rdx, rcx
cmp rax, r15
jb 0x140010f03
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140010f03
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x21]
mov bl, r14b
lea rax, [0x140024e10]
mov qword [rbp - 0x29], rax
test rcx, rcx
je 0x140010f26
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14001f240
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140011794
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, r9
mov rbx, r8
mov r14, qword [rcx + 8]
lea rax, [r11 + 0x10]
mov qword [r11 - 0x30], rax
xor r15d, r15d
mov qword [r11 - 0x38], r15
lea r9, [r11 + 8]
xor r8d, r8d
lea rdx, str.Path
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011897
lea ebp, [rax + 1]
cmp dword [rsp + 0x60], ebp
jne 0x140011897
mov ecx, dword [rsp + 0x68]
add rcx, 2
call fcn.1400020dc
mov rdi, rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Path
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001188a
mov ecx, dword [rsp + 0x68]
xor eax, eax
mov word [rcx + rdi], ax
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2], r15w
jne 0x140011836
cmp rdx, qword [rbx + 0x18]
ja 0x140011870
mov rsi, rbx
cmp qword [rbx + 0x18], 8
jb 0x140011853
mov rsi, qword [rbx]
mov qword [rbx + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rsi], r15w
jmp 0x14001187b
mov r9, rdi
mov rcx, rbx
call fcn.140011638
test rdi, rdi
je 0x1400118e8
mov rcx, rdi
call fcn.140001534
jmp 0x1400118e8
test rdi, rdi
je 0x140011897
mov rcx, rdi
call fcn.140001534
cmp rbx, rsi
je 0x1400118e5
mov rdx, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x1400118aa
mov rsi, qword [rsi]
cmp rdx, qword [rbx + 0x18]
ja 0x1400118da
mov rdi, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400118bd
mov rdi, qword [rbx]
mov qword [rbx + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r15w
jmp 0x1400118e5
mov r9, rsi
mov rcx, rbx
call fcn.140011638
mov bpl, r15b
mov al, bpl
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400119ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x140011a5e
lea rax, [rsp + 0x50]
mov edi, 1
mov r9d, edi
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftWindowsInstaller
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
cmove rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x140011a5e
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.EnableAdminTSRemote
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140011a48
cmp dword [rsp + 0x58], 4
jne 0x140011a48
cmp dword [rsp + 0x50], 4
jne 0x140011a48
cmp dword [rsp + 0x60], eax
jne 0x140011a4b
xor dil, dil
test rbx, rbx
je 0x140011a59
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, dil
jmp 0x140011a60
xor al, al
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140011ffc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rdi, rcx
mov edx, 1
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140012117
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140012117
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x140012117
xor r9d, r9d
lea r8, [rsp + 0x60]
xor edx, edx
lea rcx, [0x1400336b8]
call qword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
test eax, eax
jne 0x140012070
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
cmp dword [rsp + 0x60], 0
je 0x1400120b4
xor r8d, r8d
lea rcx, str.version.dll
call fcn.140001a74
mov qword [0x1400336c0], rax
test rax, rax
je 0x14001209e
lea rcx, [0x140012130]
call fcn.14001f498
xor r8d, r8d
lea rcx, [0x1400336b8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_InitOnceComplete]
test eax, eax
je 0x140012124
mov rcx, qword [0x1400336c0]
test rcx, rcx
je 0x140012117
lea rdx, str.VerQueryValueW
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r9, [rsp + 0x68]
mov rcx, rdi
lea r8, [rsp + 0x30]
lea rdx, [0x140026090]
call qword [case.0x140016d37.0]
test eax, eax
je 0x140012117
mov rcx, qword [rsp + 0x30]
mov al, 1
movzx r9d, word [rcx + 0xc]
movzx r8d, word [rcx + 0xe]
movzx edx, word [rcx + 8]
movzx ecx, word [rcx + 0xa]
mov word [rbx + 6], cx
mov word [rbx + 4], dx
mov word [rbx + 2], r8w
mov word [rbx], r9w
jmp 0x140012119
xor al, al
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
call fcn.140020080
int3

Function at 0x1400137f4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
and qword [rcx + 0x30], 0
mov rbx, rcx
and qword [rcx + 0x38], 0
and qword [rcx + 0x40], 0
and qword [rcx + 0x48], 0
and qword [rcx + 0x50], 0
mov ecx, dword [0x14002d8a8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x140013836
mov ecx, dword [0x14002d8a8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140013890
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
or ebx, 0xffffffff
mov eax, dword [0x14002d8a8]
cmp eax, ebx
jne 0x1400138c2
call fcn.140014438
mov dword [0x14002d8a8], eax
cmp eax, ebx
jne 0x1400138c2
xor eax, eax
jmp 0x1400138f6
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x1400138eb
call fcn.140013840
test rax, rax
je 0x1400138e9
mov rcx, rax
call fcn.1400137f4
mov rbx, rax
jmp 0x1400138eb
xor ebx, ebx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140014438
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x140014463
cmp al, 3
ja 0x140014463
cmp ebx, 2
ja 0x140014463
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ebx, eax
jmp 0x140014454
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14001850c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x48]
xor ebp, ebp
test rdi, rdi
jne 0x140018536
cmp qword [rcx + 0x50], rbp
jne 0x140018536
lea eax, [rdi + 1]
jmp 0x1400185a0
mov rsi, qword [rcx + 0x50]
test rdi, rdi
je 0x140018570
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov rcx, rdi
call fcn.140014368
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001856c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
jne 0x140018570
xor eax, eax
jmp 0x1400185a0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, 1
test byte [rax], bl
jne 0x140018588
cmp word [rax + 0xa], bp
je 0x140018590
cmp word [rax + 0xc], bp
je 0x140018590
mov ebx, ebp
test rdi, rdi
je 0x14001859e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001a10c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, rdx
mov rbx, rcx
xor edi, edi
xor esi, esi
call fcn.140014308
lea r8d, [rdi + 5]
mov rdx, rbx
mov rcx, rax
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r15, rax
test rax, rax
je 0x14001a1c4
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14001a1c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r12, rax
test rax, rax
je 0x14001a1bb
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov rax, qword [0x1400336f0]
test rax, rax
je 0x14001a19c
mov ecx, esi
call qword [case.0x140016d37.0]
jmp 0x14001a1a5
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x14001a1bb
mov r8, rsi
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
test r14, r14
je 0x14001a1cc
mov dword [r14], esi
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14001c7a0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rsi, rcx
xor edi, edi
xor ebx, ebx
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x14001c802
mov ecx, 0x202
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14001c824
mov r8d, 0x100
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov r8d, 0x100
mov rdx, rbx
mov rcx, rbp
mov edi, eax
call fcn.140012fec
jmp 0x14001c816
mov r8d, 0x100
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, eax
test rbx, rbx
je 0x14001c824
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001c83c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbp, rcx
xor edi, edi
call qword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x14001c878
mov r8d, 0x100
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
jmp 0x14001c8b8
mov ecx, 0x101
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rsi, rsi
je 0x14001c8aa
mov r8d, 0x100
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rdx, rbx
mov rcx, rsi
mov edi, eax
call fcn.140013088
test rbx, rbx
je 0x14001c8b8
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001d620
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x140033700], 0
jne 0x14001d6be
lea rcx, str.olmapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
test rax, rax
je 0x14001d6be
lea rdx, str.SetGuardValue
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetGuardValue
mov rcx, rbx
mov qword [0x140033720], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.SetExemptValue
mov rcx, rbx
mov qword [0x140033710], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetExemptValue
mov rcx, rbx
mov qword [0x140033718], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.AssertGuardedAPIAllowed
mov rcx, rbx
mov qword [0x140033708], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x140033700], 1
add rsp, 0x20
pop rbx
ret
Function at 0x14001d960
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
mov r8, rcx
or rdi, 0xffffffffffffffff
lea rcx, [rsp + 0x20]
mov r9, rdi
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
lea edx, [rdi + 0x5d]
lea rcx, [rsp + 0x20]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
lea rdx, [rsp + 0x228]
mov r9, rdi
add rax, 2
mov r8, rbx
sub rdx, rax
mov rcx, rax
sar rdx, 1
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor r8d, r8d
lea rcx, [rsp + 0x20]
call fcn.140001a74
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x14001d9e6
mov eax, ebx
jmp 0x14001d9ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x14003372c], eax
test rdi, rdi
je 0x14001d9fb
mov eax, ebx
jmp 0x14001da06
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [0x140033730], eax
cmp eax, 0xffffffff
jne 0x14001da19
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x140033734], ebx
mov rax, rdi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001f240
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret

Function at 0x14001da44
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x14002d008]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebx, ebx
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov rdi, rcx
mov qword [rsp + 0x30], rax
lea r8, str.CommonFilesDir
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x28], rax
lea esi, [rbx + 2]
mov r9d, esi
mov qword [rsp + 0x20], rbx
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersion
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14001daf7
cmp dword [rsp + 0x40], 4
jb 0x14001daf7
mov eax, dword [rsp + 0x40]
lea r8, str.Microsoft_SharedOffice16_
shr rax, 1
lea rcx, [rsp + 0x50]
mov edx, 0x104
cmp word [rsp + rax*2 + 0x4c], 0x5c
cmove ebx, esi
or r9, 0xffffffffffffffff
add r8, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.14001d960
jmp 0x14001daf9
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14001f240
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret