joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a3c4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400c7838]
mov r12d, r8d
movzx ebx, dx
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0x48]
or dword [rax + 0x60], 0xffffffff
mov r15, qword [rax]
call fcn.14009a5e8
mov r8d, dword [rbp + 0x48]
mov r9d, r8d
mov dword [rbp + 0x50], r8d
test r12d, r12d
je 0x14009a420
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x48]
call fcn.14009d900
mov r8d, dword [rbp + 0x48]
mov r9d, dword [rbp + 0x50]
test bl, 4
jne 0x14009a43d
mov rax, qword [0x1400c7be8]
cmp dword [rax + 0x186], 0
jne 0x14009a43d
mov r14d, r8d
mov edi, r9d
jmp 0x14009a45d
mov rax, qword [0x1400c7838]
cmp dword [rax + 0x68], 0
je 0x14009a44f
mov ecx, dword [rax + 0x74]
jmp 0x14009a452
mov ecx, dword [rax + 0x70]
mov edi, dword [rax + 0x74]
add edi, dword [rax + 0x70]
sub edi, ecx
mov r14d, edi
mov eax, dword [rbp + 0x58]
mov edx, edi
mov ecx, r14d
mov dword [rsp + 0x20], eax
call fcn.14009ab04
mov rcx, r15
call fcn.1400a861c
call qword [sym.imp.USER32.dll_GetFocus]
cmp rax, r15
jne 0x14009a4fc
mov rcx, r15
call qword [sym.imp.USER32.dll_SetCapture]
mov r9d, 0x20e
mov dword [rsp + 0x20], 3
mov r8d, 0x100
lea rcx, [rbp - 0x30]
mov rdx, r15
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x14009a4c9
movzx eax, word [rbp + 0x40]
movzx ecx, word [rbp + 0x44]
shl ecx, 0x10
or eax, ecx
mov dword [rbp - 0x28], 0x200
cdqe
mov qword [rbp - 0x18], rax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [rbp - 0x28]
mov edx, 0x8000
test dx, ax
jne 0x14009a4e9
cmp ecx, 0x202
jne 0x14009a4f6
sub ecx, 0x200
je 0x14009a50b
cmp ecx, 2
jne 0x14009a48a
call qword [sym.imp.USER32.dll_ReleaseCapture]
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
movzx eax, word [rbp - 0x18]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp - 0x18]
shr rax, 0x10
movzx ecx, ax
mov rax, qword [0x1400c7838]
mov dword [rbp + 0x44], ecx
mov ebx, dword [rax + 0xcc]
sub ebx, ecx
test ebx, ebx
jle 0x14009a538
or ecx, 0xffffffff
jmp 0x14009a547
mov ebx, ecx
sub ebx, dword [rax + 0xd4]
js 0x14009a59b
mov ecx, 1
call fcn.14009b640
mov rax, qword [0x1400c7838]
test byte [rax + 0x10], 4
jne 0x14009a573
xor edx, edx
mov r9d, 1
xor r8d, r8d
lea ecx, [rdx + 2]
call fcn.14009a8f8
mov rax, qword [0x1400c7838]
cmp ebx, dword [rax + 0x1c]
jg 0x14009a59b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jl 0x14009a59b
lea esi, [rbx + 0x64]
cmp eax, esi
jg 0x14009a59b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jge 0x14009a58d
mov rcx, qword [rbp + 0x40]
lea r8, [rbp + 0x58]
lea rdx, [rbp + 0x48]
call fcn.14009a5e8
mov r8d, dword [rbp + 0x48]
mov r9d, r8d
mov dword [rbp + 0x50], r8d
test r12d, r12d
je 0x14009a5d1
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x48]
call fcn.14009d900
mov r8d, dword [rbp + 0x48]
mov r9d, dword [rbp + 0x50]
mov eax, dword [rbp + 0x58]
mov edx, edi
mov ecx, r14d
mov dword [rsp + 0x20], eax
call fcn.14009ab04
jmp 0x14009a48a
Function at 0x1400a2748
Capabilities:
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call fcn.1400a2690
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x1400a27d1
xor ecx, ecx
call fcn.140095154
test eax, eax
je 0x1400a27cf
xor ecx, ecx
call fcn.1400951ac
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, qword [0x1400c74b0]
mov rsi, rax
test rcx, rcx
je 0x1400a27a4
mov rdx, qword [0x1400c6a38]
test rdx, rdx
je 0x1400a27a4
mov r8, rax
call fcn.140092228
mov rcx, rsi
call fcn.1400a3218
mov rdx, rdi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
setne bl
add dword [0x1400c7444], 0xffffffff
jne 0x1400a27cf
call qword [sym.imp.USER32.dll_CloseClipboard]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400a2e5c
Capabilities:
Link many functions at runtime
Log keystrokes via polling

Disassembly:
sub rsp, 0x48
cmp byte [0x1400c74b8], 0
jne 0x1400a2fc3
mov rax, qword [0x1400c7e08]
lea rdx, [0x1400976d0]
mov dword [rsp + 0x38], 8
xor r9d, r9d
mov dword [rsp + 0x30], reloc.ODBC32.dll_SQLGetConnectOption
xor r8d, r8d
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rax
lea ecx, [r9 + 0xa]
call fcn.140018504
mov cl, reloc.ODBC32.dll_SQLDescribeParam
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov rdx, qword [0x1400c7be8]
movsx ecx, ax
movzx eax, cl
mov dword [rdx + 0x15a], eax
mov eax, ecx
shr eax, 1
and ecx, 0x400
and eax, 0x180
or eax, ecx
mov cl, 0x3b
shr eax, 5
mov dword [rdx + 0x15e], eax
call qword [sym.imp.USER32.dll_VkKeyScanA]
mov rdx, qword [0x1400c7be8]
movsx ecx, ax
movzx eax, cl
mov dword [rdx + 0x162], eax
mov eax, ecx
shr eax, 1
and ecx, 0x400
and eax, 0x180
or eax, ecx
shr eax, 5
cmp dword [0x1400c7be0], 0
mov dword [rdx + 0x166], eax
je 0x1400a2fbc
lea rcx, str.IMM32.DLL
call qword [sym.imp.Mso30Win32Client.dll_Ordinal_1706]
mov qword [0x1400c74e8], rax
test rax, rax
je 0x1400a2fbc
lea rdx, str.ImmGetContext
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400c74e8]
lea rdx, str.ImmReleaseContext
mov qword [0x1400c74d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400c74e8]
lea rdx, str.ImmGetDefaultIMEWnd
mov qword [0x1400c74c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400c74e8]
lea rdx, str.ImmGetCompositionStringA
mov qword [0x1400c74e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400c74e8]
lea rdx, str.ImmSetCompositionFontA
mov qword [0x1400c74d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400c74c8], rax
mov byte [0x1400c74b8], 1
add rsp, 0x48
ret
Function at 0x1400a75e0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r10, r9d
mov r11d, edx
add r10, r8
mov rbx, rcx
cmp r10, r8
jbe 0x1400a7614
lea rax, [r10 - 1]
cmp byte [rax], 0x20
jne 0x1400a7611
mov r10, rax
cmp rax, r8
ja 0x1400a7600
cmp r10, r8
jne 0x1400a7629
mov rax, qword [rsp + 0x28]
and dword [rcx], 0
bts dword [rax], 9
xor eax, eax
jmp 0x1400a7712
xor edi, edi
test r11d, r11d
jle 0x1400a7645
cmp r8, r10
jae 0x1400a7648
cmp byte [r8], 0x2d
jne 0x1400a7648
mov edi, 1
inc r8
jmp 0x1400a7648
neg r11d
xor r9d, r9d
cmp r8, r10
jae 0x1400a76ff
mov esi, 0x7fff
mov cl, byte [r8]
inc r8
cmp cl, byte [0x1400c7b61]
je 0x1400a76e5
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400a768c
movzx ecx, cl
lea eax, [r9 + r9*4]
sub ecx, 0x30
imul ecx, r11d
lea r9d, [rcx + rax*2]
cmp r9d, esi
jge 0x1400a76ef
cmp r8, r10
jb 0x1400a7659
jmp 0x1400a76e5
mov rax, qword [rsp + 0x28]
bts dword [rax], 0xa
jmp 0x1400a7622
mov cl, byte [r8]
inc r8
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400a768c
movzx ecx, cl
mov eax, 0x66666667
sub ecx, 0x30
imul ecx, r11d
add ecx, 5
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
add r9d, edx
cmp r9d, esi
jge 0x1400a76ef
lea ecx, [r11 + 5]
mov eax, 0x66666667
imul ecx
mov r11d, edx
sar r11d, 2
mov eax, r11d
shr eax, 0x1f
add r11d, eax
cmp r8, r10
jb 0x1400a7697
cmp r9d, esi
jl 0x1400a76ff
mov rax, qword [rsp + 0x28]
mov dword [rbx], esi
bts dword [rax], 8
jmp 0x1400a7622
mov ecx, r9d
mov eax, 1
neg ecx
test edi, edi
cmovne r9d, ecx
mov dword [rbx], r9d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x1400a7e70
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x80000000
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
test rax, r8
je 0x1400a7eaa
xor ecx, ecx
call fcn.1400a7e1c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov rsi, qword [rsp + 0x38]
add rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a7efc
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 r14
sub rsp, 0x30
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov rdi, rcx
call fcn.1400013fc
call fcn.140001424
mov r8d, 5
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x1400a8053
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400a8053
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x1400a8042
cmp qword [0x1400c6a80], 0
je 0x1400a7f87
call fcn.14001889c
mov rbx, rax
jmp 0x1400a7f8e
mov rbx, qword [0x1400c6a68]
test rbx, rbx
je 0x1400a7fce
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1400a7fc5
mov rcx, qword [0x1400c6010]
call qword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x1400a7fce
mov rcx, qword [0x1400c6010]
mov rdx, rbx
call qword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x1400a7fce
call qword [sym.imp.USER32.dll_GetFocus]
mov rbx, rax
mov edx, 1
xor ecx, ecx
call fcn.140018708
mov rax, qword [rsp + 0x68]
mov r8, rbp
mov r9, qword [rsp + 0x60]
mov rdx, rdi
inc dword [0x1400c7528]
mov rcx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
dec dword [0x1400c7528]
xor edx, edx
xor ecx, ecx
mov rdi, rax
call fcn.140018708
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400a8038
cmp qword [0x1400c6a80], 0
je 0x1400a8031
call fcn.14001889c
mov rbx, rax
jmp 0x1400a8038
mov rbx, qword [0x1400c6a68]
mov rcx, rbx
call fcn.1400a861c
jmp 0x1400a8045
or edi, 0xffffffff
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp edi, 0xffffffff
jne 0x1400a806d
mov r9d, 0x1010
xor r8d, r8d
xor edx, edx
mov ecx, 0x50000
call fcn.14000e620
mov edi, 2
cmp edi, 1
jne 0x1400a8077
call fcn.1400013fc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x1400ac344
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
and qword [rax - 0x18], 0
and qword [rax + 8], 0
cmp dword [0x1400c7530], 0
jne 0x1400ac411
mov eax, dword [0x1400c7538]
test eax, eax
jne 0x1400ac411
xor edi, edi
mov ecx, dword [0x1400c7534]
test ecx, ecx
je 0x1400ac3a2
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1400c7538]
mov ecx, dword [0x1400c7534]
test eax, eax
jne 0x1400ac411
test ecx, ecx
jne 0x1400ac3b8
call fcn.1400ac470
test eax, eax
jne 0x1400ac3b8
lea ebx, [rax + 1]
jmp 0x1400ac3d4
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1400c5638]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ebx, 1
test eax, eax
cmovne edi, ebx
test edi, edi
jne 0x1400ac411
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [rax - 0x7e]
cmp ecx, ebx
jbe 0x1400ac3f3
cmp eax, 0x78
je 0x1400ac3f3
cmp eax, ebx
je 0x1400ac3f3
cmp eax, 0x32
jne 0x1400ac3fb
mov dword [0x1400c7538], ebx
mov edi, ebx
test edi, edi
jne 0x1400ac411
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
lea rcx, str.version.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
mov qword [rsp + 0x20], rax
cmp dword [0x1400c7530], 0
je 0x1400ac438
cmp dword [0x1400c7538], 0
jne 0x1400ac46a
xor edi, edi
test rbx, rbx
sete dil
test edi, edi
je 0x1400ac44f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400ac451
xor esi, esi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x1400ac46a
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x1400ac401
Function at 0x1400ac658
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 8], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov rbx, rcx
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1400b5a28]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ac730
and qword [rbp + 0x28], 0
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400ac720
mov dword [rbp + 0x18], 4
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.InsecureQI
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400ac720
cmp dword [rbp + 0x18], 4
jne 0x1400ac720
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x1400ac720
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400ac71e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x1400ac732
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400ac730
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x1400ac742
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x1400acb28
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
cmp byte [0x1400c7540], 0
je 0x1400acb57
mov eax, dword [0x1400c7544]
jmp 0x1400acc5c
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x1400c7544]
test eax, eax
jne 0x1400acbc3
mov dword [rbp + 0x10], ebx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.CLSIDInterfaceTest
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400acbc3
cmp dword [rbp + 0x10], ebx
je 0x1400acc32
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x1400acbd7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400acc3a
mov dword [rbp + 0x10], ebx
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.CLSIDInterfaceTest
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400acc3a
cmp dword [rbp + 0x10], ebx
jne 0x1400acc3a
mov ebx, dword [0x1400c7544]
jmp 0x1400acc43
and dword [0x1400c7544], 0
xor ebx, ebx
mov byte [0x1400c7540], 1
mov rcx, qword [rbp + 0x18]
test rcx, rcx
je 0x1400acc5a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rbp
ret
Function at 0x1400ad6e4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x1400c1010]
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.1400ad044
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x1400ad767
mov eax, ebx
jmp 0x1400ad76d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1400c7554], eax
test rdi, rdi
je 0x1400ad780
mov dword [0x1400c7550], ebx
jmp 0x1400ad79e
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [0x1400c7550], eax
cmp eax, 0xffffffff
jne 0x1400ad79e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [0x1400c754c], ebx
mov rax, rdi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400af450
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret

Function at 0x1400ad7c8
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 [0x1400c1010]
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 0x1400ad87b
cmp dword [rsp + 0x40], 4
jb 0x1400ad87b
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.1400ad6e4
jmp 0x1400ad87d
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400af450
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400ad8a4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x270
mov rax, qword [0x1400c1010]
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 0x1400ad91b
cmp dword [rsp + 0x40], 4
jb 0x1400ad91b
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400ad6e4
jmp 0x1400ad91d
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400af450
add rsp, 0x270
pop rbx
ret
Function at 0x2fc4f6a90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4f7492
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc51c108]
test eax, eax
je 0x2fc4f752a
lea rax, [0x2fc51c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc51c110]
mov qword [rbp - 8], rax
jmp 0x2fc4f750e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4f7502
cmp qword [rbp - 0x10], 0
je 0x2fc4f7502
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4f74c8
lea rax, [0x2fc51c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4f752b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4f7630
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4f7658
mov eax, 0
jmp 0x2fc4f76a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4f7681
mov eax, 0
jmp 0x2fc4f76a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4f76a1
mov eax, 0
jmp 0x2fc4f76a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4f76ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4f772a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4f7721
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4f7721
mov rax, qword [rbp - 8]
jmp 0x2fc4f773f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4f76f4
mov eax, 0
add rsp, 0x20
pop rbp
ret