joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140013ebc
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
sub rsp, 0x30
mov rbx, rdx
mov edx, 2
call fcn.140013d3c
xor edi, edi
mov rsi, rax
test rax, rax
je 0x140013f1a
lea r9d, [rdi + 4]
xor r8d, r8d
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], r9d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dil
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140013f2c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rbp + 0x390], rax
and qword [rsp + 0x58], 0
and qword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x140013f7c
xor ebx, ebx
jmp 0x140014054
mov rcx, qword [0x1400543a0]
lea rdx, [rsp + 0x70]
call fcn.140008910
test rax, rax
je 0x140013f75
mov r9d, dword [rsp + 0x50]
lea rax, [rsp + 0x70]
lea r8, str._d:_s
mov qword [rsp + 0x20], rax
or rdx, 0xffffffffffffffff
lea rcx, [rbp + 0x180]
call fcn.14000fe80
lea rdx, [rsp + 0x58]
lea rcx, [0x140043f28]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_60862]
test eax, eax
jne 0x140013f75
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
lea rdx, [rbp + 0x180]
mov qword [rsp + 0x38], rax
xor r9d, r9d
and qword [rsp + 0x30], 0
xor r8d, r8d
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140013f75
lea rcx, [0x140054370]
call fcn.14000381c
mov rcx, qword [rsp + 0x60]
mov r9d, 3
mov qword [rsp + 0x68], rax
xor r8d, r8d
lea rax, [rsp + 0x68]
mov dword [rsp + 0x28], 8
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140014064
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140014074
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.140038c60
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x4a0
pop rbp
ret
Function at 0x140014098
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x478
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x460], rax
and qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x140014144
mov rcx, qword [0x1400543a0]
lea rdx, [rsp + 0x40]
call fcn.140008910
test rax, rax
je 0x140014134
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x40]
lea r8, str._d:_s
mov qword [rsp + 0x20], rax
or rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x250]
call fcn.14000fe80
lea rdx, [rsp + 0x38]
lea rcx, [0x140043f28]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_55346]
test eax, eax
jne 0x140014134
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x250]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140014144
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140038c60
add rsp, 0x478
ret

Function at 0x140015690
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
test rdx, rdx
je 0x1400156e2
cmp dword [rdx + 8], 0x100
jne 0x1400156e2
cmp qword [rdx + 0x10], 0x75
je 0x1400156de
mov ecx, SafeArrayGetLBound
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x1400156e2
mov rax, qword [rbx + 0x10]
sub rax, 9
je 0x1400156de
sub rax, 0x43
je 0x1400156de
sub rax, 2
je 0x1400156de
cmp rax, 1
jne 0x1400156e2
xor eax, eax
jmp 0x1400156e7
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140016a38
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
mov eax, 0x2060
call fcn.14003a3b0
sub rsp, rax
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x2050], rax
mov rbx, rdx
mov r12, rcx
call fcn.1400169f4
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_30726]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140016bd3
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov ebx, 0x2000
lea rdx, [rsp + 0x50]
mov rcx, rax
mov dword [rsp + 0x40], ebx
lea r8d, [rbx - 1]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140016bc4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x40]
or rbp, 0xffffffffffffffff
test eax, eax
je 0x140016bd3
cmp rax, rbx
jae 0x140016c09
mov byte [rsp + rax + 0x50], 0
lea rdi, [rsp + 0x50]
mov bl, byte [rdi]
cmp bl, 0xa
je 0x140016bae
cmp bl, 0xd
je 0x140016bae
lea eax, [rbx + 0x45]
cmp al, 0x34
ja 0x140016b31
movabs rcx, 0x10000000000011
bt rcx, rax
jb 0x140016bae
test bl, bl
je 0x140016bbd
mov rsi, rdi
cmp bl, 0xd
je 0x140016b53
test bl, bl
je 0x140016b51
inc rsi
mov bl, byte [rsi]
cmp bl, 0xa
jne 0x140016b3c
jmp 0x140016b53
xor bl, bl
mov r14d, esi
mov edx, 1
sub r14d, edi
inc r14d
movsxd r15, r14d
mov rcx, r15
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_52497]
test rax, rax
je 0x140016bb6
mov qword [rsp + 0x48], rax
test r14d, r14d
jle 0x140016b8f
or r9, 0xffffffffffffffff
mov r8, rdi
mov rdx, r15
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
lea rdx, [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_42225]
cmp eax, 0xffffffff
je 0x140016bc4
test bl, bl
je 0x140016bbd
mov rdi, rsi
jmp 0x140016b06
inc rdi
jmp 0x140016b06
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_59938]
int3
mov eax, 1
jmp 0x140016bdd
cmp rbp, 0xffffffffffffffff
je 0x140016bd3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call fcn.1400169f4
xor eax, eax
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.140038c60
lea r11, [rsp + 0x2060]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
call fcn.140039118
int3
Function at 0x140019774
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
and qword [rax - 0x18], 0
xor r9d, r9d
and qword [rdx], 0
mov r14, r8
and dword [rax - 0x20], 0
mov rsi, rdx
mov edx, 0x80000000
mov dword [rax - 0x28], 3
lea r8d, [r9 + 1]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_30726]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140019819
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [r14], eax
cmp eax, 0xffffffff
jne 0x1400197dc
mov ebx, 0x80004005
jmp 0x140019822
mov ecx, eax
xor edx, edx
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_52497]
mov qword [rsi], rax
test rax, rax
je 0x1400197d5
mov r8d, dword [r14]
lea r9, [rsp + 0x58]
and qword [rsp + 0x20], 0
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400197d5
mov eax, dword [r14]
xor ebx, ebx
cmp dword [rsp + 0x58], eax
je 0x14001981e
jmp 0x1400197d5
mov ebx, 0x80004005
test ebx, ebx
je 0x140019834
mov rcx, qword [rsi]
test rcx, rcx
je 0x140019834
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_53248]
and qword [rsi], 0
lea rcx, [rdi - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140019847
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
shr ebx, 0x1f
xor bl, 1
mov al, bl
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r14
ret

Function at 0x14001b1a4
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x14005469c], 0
mov rdi, rcx
mov ecx, dword [0x140054698]
je 0x14001b1c8
call qword [sym.imp.KERNEL32.dll_FlsGetValue]
jmp 0x14001b1ce
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x14001b221
cmp byte [rax + 0x20], 0
jne 0x14001b208
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14001b203
or eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14001b203
mov rax, qword [rcx]
mov edx, 1
mov rax, qword [rax]
call qword [case.0x140033a70.0]
and qword [rbx + 0x10], 0
mov rcx, qword [rdi]
mov rdx, rbx
mov rax, qword [rcx + 0x18]
mov rcx, rdi
call qword [case.0x140033a70.0]
mov al, 1
mov byte [rbx + 0x20], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b8b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
lea rdx, str.CLSID
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001b97d
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001b96e
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.InsecureQI
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001b96e
cmp dword [rbp + 0x18], 4
jne 0x14001b96e
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x14001b96e
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14001b97f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001b97f
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14001b97d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14001b98e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x14001bd64
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 [0x14005d6ec], 0
je 0x14001bd8a
mov eax, dword [0x14005d6f0]
jmp 0x14001be8f
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, [0x14005d6f0]
test eax, eax
jne 0x14001bdf6
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001bdf6
cmp dword [rbp + 0x10], ebx
je 0x14001be65
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x14001be0a
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 0x14001be6d
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001be6d
cmp dword [rbp + 0x10], ebx
jne 0x14001be6d
mov ebx, dword [0x14005d6f0]
jmp 0x14001be76
and dword [0x14005d6f0], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov al, 1
mov byte [0x14005d6ec], al
test rcx, rcx
je 0x14001be8d
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
Function at 0x14001eab8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xa0
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor esi, esi
mov rbx, rcx
cmp byte [rcx + 0x140], sil
jne 0x14001ec8a
mov rcx, qword [rcx + 0x138]
test rcx, rcx
je 0x14001ec8a
xor r8d, r8d
lea rdx, [rbp - 0x21]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_40362]
test eax, eax
jne 0x14001ec8a
mov rcx, qword [rbx + 8]
lea rdx, [rbp - 0x19]
mov dword [rbp - 0x19], 0x2c
call qword [sym.imp.USER32.dll_GetWindowPlacement]
test eax, eax
je 0x14001ec8a
mov eax, dword [rbp + 0xb]
lea r14d, [rsi + 4]
sub eax, dword [rbp + 3]
cmp eax, 0x32
jl 0x14001ec37
mov eax, dword [rbp + 0xf]
sub eax, dword [rbp + 7]
cmp eax, 0x32
jl 0x14001ec37
lea edx, [rsi + 2]
lea rcx, [rbp + 3]
call qword [sym.imp.USER32.dll_MonitorFromRect]
lea rdx, [rbp + 0x17]
mov dword [rbp + 0x17], 0x28
mov rcx, rax
call qword [sym.imp.USER32.dll_GetMonitorInfoW]
mov ecx, dword [rbp + 3]
lea rax, [rbp - 0x29]
mov ebx, dword [rbp + 0x2b]
lea rdx, str.WindowPosLeft
sub ebx, dword [rbp + 0x1b]
mov r9d, r14d
mov edi, dword [rbp + 0x2f]
add ecx, ebx
sub edi, dword [rbp + 0x1f]
xor r8d, r8d
mov dword [rbp - 0x29], ecx
mov rcx, qword [rbp - 0x21]
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [rbp + 7]
lea rax, [rbp - 0x29]
add ecx, edi
mov dword [rsp + 0x28], r14d
mov dword [rbp - 0x29], ecx
lea rdx, str.WindowPosTop
mov rcx, qword [rbp - 0x21]
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [rbp + 0xb]
lea rax, [rbp - 0x29]
add ecx, ebx
mov dword [rsp + 0x28], r14d
mov dword [rbp - 0x29], ecx
lea rdx, str.WindowPosRight
mov rcx, qword [rbp - 0x21]
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [rbp + 0xf]
lea rax, [rbp - 0x29]
add ecx, edi
mov dword [rsp + 0x28], r14d
mov dword [rbp - 0x29], ecx
lea rdx, str.WindowPosBottom
mov rcx, qword [rbp - 0x21]
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [rbp - 0x11]
mov eax, ecx
and eax, 3
cmp al, 3
jne 0x14001ec4c
mov dword [rbp - 0x29], 1
jmp 0x14001ec5b
or eax, 0xffffffff
and cl, 6
cmp cl, 6
cmove esi, eax
mov dword [rbp - 0x29], esi
mov rcx, qword [rbp - 0x21]
lea rax, [rbp - 0x29]
mov dword [rsp + 0x28], r14d
lea rdx, str.WindowMode
mov r9d, r14d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140038c60
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x140022a20
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
mov ecx, edx
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret
Function at 0x140022f40
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea rcx, [rsp + 0x50]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetKeyboardState]
movzx ecx, word [rdi + 2]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x50]
and dword [rsp + 0x28], 0
xor edx, edx
mov word [rsp + 0x40], cx
mov dword [rsp + 0x20], 1
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
setne al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140038c60
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret

Function at 0x14002ccc0
Capabilities:
Check mutex on windows
Read file via mapping

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, 0x30
mov rdi, qword [rsp + 0x70]
xor ebx, ebx
mov rbp, r9
mov r15b, r8b
mov r12b, dl
mov r14, rcx
test rdi, rdi
je 0x14002ccf8
mov qword [rdi], rbx
cmp qword [rcx], rbx
jne 0x14002cd04
xor al, al
jmp 0x14002cd84
mov r8, qword [rcx + 0x10]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
test rax, rax
je 0x14002cd82
mov edx, 0x1f4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14002cd70
mov rcx, qword [r14]
lea edx, [rax + 6]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rax
test rax, rax
je 0x14002cd70
test rdi, rdi
je 0x14002cd56
mov rax, qword [rax]
mov qword [rdi], rax
test r12b, r12b
jne 0x14002cd65
test r15b, r15b
je 0x14002cd68
cmp qword [rcx], rbx
jne 0x14002cd68
mov qword [rcx], rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov bl, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x1400365dc
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140054040]
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]
lea rcx, [rsp + 0x20]
call fcn.140036554
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x14003665f
mov eax, ebx
jmp 0x140036665
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x14005d80c], eax
test rdi, rdi
je 0x140036674
mov eax, ebx
jmp 0x14003667f
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [0x14005d808], eax
cmp eax, 0xffffffff
jne 0x140036692
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x14005d804], ebx
mov rax, rdi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140038c60
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret

Function at 0x1400366bc
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 [0x140054040]
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 0x14003676f
cmp dword [rsp + 0x40], 4
jb 0x14003676f
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.1400365dc
jmp 0x140036771
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140038c60
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140036798
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x30], rax
lea rdx, str.SoftwareMicrosoftOffice16.0CommonFilesPaths
lea rax, [rsp + 0x50]
mov rbx, rcx
mov r8, rcx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r9d, 2
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x14003680f
cmp dword [rsp + 0x40], 4
jb 0x14003680f
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400365dc
jmp 0x140036811
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140038c60
add rsp, 0x270
pop rbx
ret
Function at 0x140039720
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003976a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003976a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003976a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003976a
cmp dword [rcx + 0x84], 0xe
jbe 0x14003976a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003976c
xor al, al
add rsp, 0x28
ret

Function at 0x140039dbc
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x140039e34
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140039e34
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x140039e34
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140039e28
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140039e46
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140039e16
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x140039e36