joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001c68c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, r8
mov rbx, rdx
mov r15, rcx
xor edi, edi
call fcn.1400202e4
lea r8d, [rdi + 5]
mov rdx, rbx
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14001c6e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r14
mov rdx, rdi
mov rcx, r15
call fcn.14001c720
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14001da64
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x14001dacc
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x14001dab6
cmp qword [rcx + 0x18], 0
jne 0x14001dab1
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x14001dad2
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x14001dacc
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.1400218a8
call fcn.14000ec78
int3
call fcn.14000ec78
int3
Function at 0x14001ea70
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, r9
mov r14, r8
and qword [r9], 0
mov rbx, qword [rbp + 0x40]
and dword [rbx], 0
cmp qword [rcx + 0xb0], 0
je 0x14001eb4f
xor r8d, r8d
call fcn.14001eef4
mov rsi, rax
test rax, rax
je 0x14001ec0b
mov qword [rbp - 0x18], rsi
and dword [rbp - 0x10], 0
and qword [rbp - 8], 0
and dword [rbp + 0x20], 0
and dword [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp + 0x40]
mov dword [rbx], ecx
test eax, eax
jne 0x14001eb33
call fcn.14000b9bc
mov qword [rdi], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001eb33
lea ebx, [rax + 1]
jmp 0x14001eb41
mov rcx, qword [rdi]
call fcn.14000b9b4
and qword [rdi], 0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001ec09
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
mov r9, r14
mov r8, rdx
lea rdx, [rbp + 0x38]
mov rax, qword [rax + 0x108]
call qword [case.0x140048382.0]
nop
mov rax, qword [rbp + 0x38]
mov esi, dword [rax - 0x10]
test esi, esi
jne 0x14001eb7f
xor ebx, ebx
jmp 0x14001ebe8
mov ecx, esi
shr ecx, 1
mov dword [rbx], ecx
call fcn.14000b9bc
mov qword [rdi], rax
xor edx, edx
lea ebx, [rdx + 1]
test esi, esi
jle 0x14001ebe4
xor r9d, r9d
mov r10d, ebx
test r10, r10
js 0x14001ec20
mov rax, qword [rbp + 0x38]
cmp edx, dword [rax - 0x10]
jge 0x14001ec20
movzx r8d, word [r9 + rax + 2]
test edx, edx
js 0x14001ec20
shl r8b, 4
sub r8b, 0x51
add r8b, byte [r9 + rax]
mov eax, edx
test edx, edx
jns 0x14001ebc9
lea eax, [rbx + rdx]
sar eax, 1
movsxd rcx, eax
mov rax, qword [rdi]
mov byte [rcx + rax], r8b
add edx, 2
add r10, 2
add r9, 4
cmp edx, esi
jl 0x14001eb9c
mov rax, qword [rbp + 0x38]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001ec09
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048382.0]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140003370
int3
Function at 0x14001ec2c
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14001eca7
xor r8d, r8d
call fcn.14001eef4
mov rsi, rax
test rax, rax
je 0x14001eca3
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14001eca3
mov eax, dword [rsp + 0x30]
jmp 0x14001ecbd
mov eax, edi
jmp 0x14001ecbd
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14001f874
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14001f8db
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001f8ef
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001f8ef
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x140048382.0]
jmp 0x14001f8f4
cmp dword [rcx + 8], 0
je 0x14001f8ef
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14001f8f4
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140020668
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x30
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
movsxd rsi, r8d
mov rbx, rdx
mov rdi, rcx
xor ebp, ebp
cmp qword [rcx + 0xd0], rbp
jne 0x1400206aa
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14002074e
call fcn.14000f428
mov rcx, rax
test rax, rax
je 0x140020769
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x140048382.0]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rdi + 0xd0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
mov rax, qword [rax + 0x118]
call qword [case.0x140048382.0]
mov rdx, rsi
or rdi, 0xffffffffffffffff
mov r9, rdi
mov r8, qword [rsp + 0x40]
mov rcx, rbx
call fcn.1401a5534
test eax, eax
je 0x140020712
cmp eax, 0xc
je 0x140020763
cmp eax, 0x50
jne 0x140020774
test rbx, rbx
jne 0x14002071b
mov ebx, ebp
jmp 0x140020726
mov rcx, rbx
call fcn.1401a51b8
mov rbx, rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, edi
lock xadd dword [rdx + 0x10], ecx
add ecx, edi
test ecx, ecx
jg 0x14002074c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140048382.0]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.14000ec9c
nop
mov ecx, 0x80004005
call fcn.140003370
nop
call fcn.14000ec78
int3
Function at 0x140023278
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov r15, r8
movsxd rsi, edx
mov rdi, rcx
lea r14, [rcx + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
jle 0x1400233b0
cmp esi, dword [rdi + 0xc]
jge 0x1400233b0
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x1400232e3
cmp esi, dword [rax + 0x10]
jl 0x14002339e
test r15, r15
je 0x14002339e
jmp 0x140023318
mov ecx, 0x20
call fcn.140022bb8
mov rbx, rax
test rbx, rbx
je 0x1400232ff
lea rax, vtable.CThreadData.0
mov qword [rbx], rax
and dword [rbx + 0x10], 0
and qword [rbx + 0x18], 0
mov rcx, qword [rdi + 0x20]
mov rax, qword [rdi + 0x18]
mov qword [rbx + rcx], rax
mov qword [rdi + 0x18], rbx
mov eax, dword [rdi + 0xc]
shl rax, 3
mov edx, dword [rsp + 0x58]
mov ecx, 0xffffffff
cmp qword [rbx + 0x18], 0
jne 0x140023345
cmp rax, rcx
cmovbe edx, eax
ja 0x1400233cd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x140023361
cmp rax, rcx
cmovbe edx, eax
ja 0x1400233de
mov r8d, 2
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov rcx, rax
test rax, rax
je 0x1400233ef
mov qword [rbx + 0x18], rcx
mov eax, dword [rdi + 0xc]
sub eax, dword [rbx + 0x10]
movsxd r8, eax
shl r8, 3
movsxd rax, dword [rbx + 0x10]
lea rcx, [rcx + rax*8]
xor edx, edx
call fcn.14019edd0
mov eax, dword [rdi + 0xc]
mov dword [rbx + 0x10], eax
mov rdx, rbx
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400233b0
cmp esi, dword [rbx + 0x10]
jge 0x1400233b0
mov qword [rcx + rsi*8], r15
mov rcx, r14
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp rcx, rax
sbb ecx, ecx
and ecx, 0x80070216
call fcn.140003370
int3
cmp rcx, rax
sbb ecx, ecx
and ecx, 0x80070216
call fcn.140003370
int3
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.14000ec9c
int3

Function at 0x140028298
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x1400282ca
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400282ca
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.14006c198
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1400282dc
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140028302
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14001f874
jmp 0x14002836d
cmp byte [0x1402719f0], 0
jne 0x140028346
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140028336
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402719e8], rax
jmp 0x14002833d
mov rax, qword [0x1402719e8]
mov byte [0x1402719f0], 1
jmp 0x14002834d
mov rax, qword [0x1402719e8]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140028367
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x140048382.0]
jmp 0x14002836d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140039470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r15, rcx
test r8, r8
jne 0x1400394a1
call fcn.1400202e4
mov rdi, qword [rax + 0x18]
lea r8, [0x1401d3ce0]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14003950a
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14003950a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1400394fd
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r14
mov rcx, r15
mov r8d, eax
call fcn.140039528
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
jmp 0x14003950c
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x140053208
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140053358
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x14005339a
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x1400537bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14005388e
test rbx, rbx
je 0x14005388e
test r9, r9
je 0x14005388e
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005388a
cmp dword [rsp + 0x48], 3
jne 0x14005388a
test eax, eax
jne 0x14005388a
cmp dword [rdi], eax
je 0x14005388a
mov ecx, dword [rdi]
call fcn.14000b9bc
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005387e
cmp dword [rsp + 0x48], 3
jne 0x14005387e
test eax, eax
jne 0x14005387e
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
call fcn.14000b9b4
and qword [rbx], 0
xor eax, eax
jmp 0x140053869
call fcn.14000ec78
int3
Function at 0x140053c70
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140053c81
xor eax, eax
jmp 0x140053caf
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140053cb8
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140053cc9
xor eax, eax
jmp 0x140053ced
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400679c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, qword [rdx + 0x10]
mov rdi, rdx
mov rbp, rcx
jne 0x140067a37
mov rcx, qword [rdi + 8]
mov r8d, 5
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140067a07
call fcn.14000c6e8
mov rcx, qword [rdi + 8]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
jne 0x140067a21
call fcn.14000c6e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
jne 0x140067a37
call fcn.14000c6e8
call fcn.1400202e4
cmp qword [rax + 0x68], 0
je 0x140067a51
mov rdx, rbx
mov rcx, rbp
call fcn.140066e84
mov rbx, rax
mov edx, esi
mov rcx, rbx
call fcn.140067cac
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x140067a78
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x140067a87
mov rbx, rsi
mov qword [rbp + 0xf8], rsi
or dword [rdi + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14006a9b4
Capabilities:
Get graphical window text

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, 0x20
mov rdi, r8
mov rbx, rcx
call fcn.14006aaf4
xor r14d, r14d
mov esi, 1
mov rbp, rax
mov dword [rbx + 0x14], esi
mov rcx, rax
cmp dword [rbx], r14d
je 0x14006aa6a
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
movsxd rbx, eax
test eax, eax
js 0x14006aa8d
mov rdx, qword [rdi]
mov ecx, dword [rdx - 0xc]
sub esi, dword [rdx - 8]
sub ecx, ebx
or esi, ecx
jge 0x14006aa1b
mov edx, ebx
mov rcx, rdi
call fcn.140003170
mov rdx, qword [rdi]
cmp ebx, dword [rdx - 0xc]
jg 0x14006aa8d
mov dword [rdx - 0x10], ebx
lea r8d, [rbx + 1]
mov rax, qword [rdi]
mov rcx, rbp
mov word [rax + rbx*2], r14w
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14006aa45
mov eax, r14d
jmp 0x14006aa52
movsxd rdx, dword [rcx - 0xc]
call fcn.1401a52e4
test eax, eax
js 0x14006aa8d
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x14006aa8d
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], r14w
jmp 0x14006aa72
mov rdx, qword [rdi]
call fcn.1400218a8
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 0x80070057
call fcn.140003370
int3
Function at 0x14010a504
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
lea rdx, [0x14010a6cc]
mov ebp, r8d
lea rcx, [0x140275a20]
call fcn.14002307c
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x14010a6ad
cmp word [rax + 0x10], bx
jne 0x14010a65c
lea rcx, str.comctl32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
test rax, rax
je 0x14010a5f8
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x14010a5b6
lea rcx, str.MS_UI_Gothic
call fcn.14010a714
test eax, eax
je 0x14010a5b6
mov eax, ebp
lea edx, [rbx + 5]
neg eax
mov r9d, 0xfc11
mov rcx, rsi
sbb r8, r8
and r8d, 0xe
add r8, 0x3ee
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
jne 0x14010a5d9
neg ebp
mov r8d, 5
mov rcx, rsi
sbb rdx, rdx
and edx, 0xe
add rdx, 0x3ee
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14010a5f8
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14010a5f8
mov r8, r14
mov rdx, r15
mov rcx, rax
call fcn.1400684e4
mov rax, qword [r15]
mov edx, 0xffffffff
mov ecx, dword [rsp + 0x58]
mov eax, dword [rax - 0x10]
inc eax
add rax, rax
cmp rax, rdx
cmovbe ecx, eax
ja 0x14010a6b3
mov edx, ecx
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov qword [rdi + 8], rax
test rax, rax
je 0x14010a6c4
mov r8, qword [r15]
mov ecx, dword [r8 - 0x10]
inc ecx
movsxd rdx, ecx
mov rcx, rax
call fcn.1401a54bc
test eax, eax
je 0x14010a654
cmp eax, 0xc
je 0x14010a6c4
cmp eax, 0x50
jne 0x14010a6ad
movzx eax, word [r14]
mov word [rdi + 0x10], ax
mov rsi, qword [rdi + 8]
test rsi, rsi
jne 0x14010a669
mov eax, ebx
jmp 0x14010a671
mov rcx, rsi
call fcn.1401a51b8
mov r8d, eax
mov rdx, rsi
mov rcx, r15
call fcn.14000e558
movzx ecx, word [rdi + 0x10]
mov eax, 0xffff
mov rbp, qword [rsp + 0x48]
cmp cx, ax
mov rsi, qword [rsp + 0x50]
setne bl
mov word [r14], cx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
call fcn.14000ec78
int3
cmp rdx, rax
sbb ecx, ecx
and ecx, 0x80070216
call fcn.140003370
int3
call fcn.14000ec9c
int3
Function at 0x14012af18
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax - 0x18], 0
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401aefe4
test eax, eax
jne 0x14012af7c
mov eax, dword [rsp + 0x30]
lea r8, str._s_s_X.tmp
mov dword [rsp + 0x28], eax
mov r9, rsi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.14001f514
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14012af8e
jmp 0x14012af3c
mov r9, rbx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14013c324
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x30
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x48], r13
mov rax, qword [0x1402688f8]
xor rax, rbp
mov qword [rbp], rax
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r13, rcx
test rdx, rdx
je 0x14013c490
test r8, r8
je 0x14013c490
call fcn.1400202e4
mov r8, rdi
mov rdx, rsi
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14013c490
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14013c490
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14013c4b8
mov rcx, rax
call fcn.1401a5640
lea r15d, [rax + 1]
lea ecx, [r15 + r15]
movsxd rdx, ecx
lea rcx, [rdx + 0x10]
cmp rdx, rcx
sbb rdx, rdx
and rdx, rcx
je 0x14013c438
cmp rdx, 0x400
ja 0x14013c41c
lea rax, [rdx + 0xf]
cmp rax, rdx
ja 0x14013c3fa
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14019d540
sub rsp, rax
lea rdi, [rsp + 0x20]
test rdi, rdi
je 0x14013c4b8
mov dword [rdi], 0xcccc
jmp 0x14013c432
mov rcx, rdx
call fcn.1401a51a8
mov rdi, rax
test rax, rax
je 0x14013c43b
mov dword [rax], 0xdddd
add rdi, 0x10
jmp 0x14013c43b
mov rdi, rbx
test rdi, rdi
je 0x14013c4b8
mov r8d, r15d
mov rdx, r14
mov rcx, rdi
call fcn.14000f3e4
mov r14, rax
test rax, rax
je 0x14013c472
mov rcx, rax
call fcn.1401a51b8
mov r8d, eax
lea rcx, [r13 + 8]
mov rdx, r14
call fcn.14000e558
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
lea rcx, [rdi - 0x10]
cmp dword [rcx], 0xdddd
jne 0x14013c48c
call fcn.1401a5194
mov eax, ebx
jmp 0x14013c492
xor eax, eax
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.14019cf10
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
mov r13, qword [rbp + 0x48]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop rbp
ret
call fcn.14000ec78
int3