joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001aba4
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, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.14002c91c
mov rdi, rax
test rax, rax
je 0x14001ac20
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x14001ac1b
cmp dword [rbx], 0x40
jb 0x14001ac1b
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14001ac1b
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x14001ac24
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001eba8
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x70
mov edi, r9d
mov rsi, r8
mov r14, rdx
mov r15d, ecx
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
xor ebx, ebx
mov eax, dword [0x14007b3c0]
test eax, eax
je 0x14001ebfa
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14007b3c0]
test eax, eax
jne 0x14001ec03
call fcn.14001503c
test eax, eax
je 0x14001ec1f
lea rdx, [rsp + 0x60]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x14001ec2a
xor eax, eax
jmp 0x14001ecd8
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xb8]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x20], eax
mov r9d, edi
mov r8, rsi
mov rdx, r14
mov ecx, r15d
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
mov qword [rsp + 0x68], rax
xor ebx, ebx
test rsi, rsi
sete bl
test ebx, ebx
je 0x14001ecba
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14001ecbc
xor edi, edi
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14001ecd5
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x14001ecf4
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
mov r14, rcx
and dword [rax - 0x18], 0
and qword [rax + 0x20], 0
xor ebx, ebx
mov eax, dword [0x14007b3c0]
test eax, eax
je 0x14001ed3e
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14007b3c0]
test eax, eax
jne 0x14001ed47
call fcn.14001503c
test eax, eax
je 0x14001ed63
lea rdx, [rsp + 0x58]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x14001ed6b
xor eax, eax
jmp 0x14001edb2
mov r8, rdi
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.USER32.dll_GetClassInfoExW]
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14001ed95
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14001ed97
xor esi, esi
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14001edb0
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret

Function at 0x14001edc8
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x14007e7b8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14007b3c0]
test eax, eax
je 0x14001ee13
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14007b3c0]
test eax, eax
jne 0x14001ee1c
call fcn.14001503c
test eax, eax
je 0x14001ee38
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14001ee40
xor eax, eax
jmp 0x14001eea5
test rbx, rbx
jne 0x14001ee60
lea rcx, str.InitCommonControlsEx
call fcn.14001eb14
mov rbx, rax
test rax, rax
je 0x14001ee73
mov qword [0x14007e7b8], rax
mov rcx, rbx
call fcn.140037bb8
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14001ee88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14001ee8a
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14001eea3
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14001effc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, rcx
xor r14d, r14d
mov word [rax - 0x18], r14w
mov qword [rax + 0x10], r14
mov ebx, r14d
mov eax, dword [0x14007b3c0]
test eax, eax
je 0x14001f044
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14007b3c0]
test eax, eax
jne 0x14001f04d
call fcn.14001503c
test eax, eax
je 0x14001f069
lea rdx, [rsp + 0x48]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x14001f073
movzx eax, r14w
jmp 0x14001f0bb
mov rcx, rdi
call qword [sym.imp.USER32.dll_RegisterClassW]
movzx ebx, ax
mov word [rsp + 0x20], ax
mov edi, r14d
test bx, bx
sete dil
test edi, edi
je 0x14001f09c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14001f09f
mov esi, r14d
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14001f0b8
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, bx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1400294dc
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
je 0x14002954f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140029563
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140029563
mov rcx, rax
call fcn.140037bb8
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, rbp
call rdi
jmp 0x140029568
cmp dword [rcx + 8], 0
je 0x140029563
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140029568
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14002e8dc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movzx r14d, r8w
mov r15, rdx
mov r12, rcx
or r13d, 0xffffffff
movzx esi, r13w
mov word [rax - 0x38], r13w
mov rbx, qword [0x14007ef38]
and qword [rax + 0x20], 0
xor edi, edi
mov eax, dword [0x14007b3c0]
test eax, eax
je 0x14002e93a
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14007b3c0]
test eax, eax
jne 0x14002e943
call fcn.14001503c
test eax, eax
je 0x14002e95f
lea rdx, [rsp + 0x78]
mov rcx, qword [section..data]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne edi, ecx
test edi, edi
jne 0x14002e969
movzx eax, r13w
jmp 0x14002e9da
test rbx, rbx
jne 0x14002e989
lea rcx, str.GetFileTitleW
call fcn.14002e848
mov rbx, rax
test rax, rax
je 0x14002e9a5
mov qword [0x14007ef38], rax
mov rcx, rbx
call fcn.140037bb8
movzx r8d, r14w
mov rdx, r15
mov rcx, r12
call rbx
movzx esi, ax
mov word [rsp + 0x20], ax
xor ebx, ebx
cmp si, r13w
sete bl
test ebx, ebx
je 0x14002e9bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14002e9be
xor edi, edi
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14002e9d7
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, si
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14002f690
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 0x14002f70a
xor r8d, r8d
call fcn.14002f950
mov rsi, rax
test rax, rax
jne 0x14002f6c6
mov eax, edi
jmp 0x14002f720
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
cmove edi, dword [rsp + 0x30]
jmp 0x14002f6c2
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 0x14002fa8c
Capabilities:
Set registry value

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
xor edi, edi
mov rbx, r9
mov r12, r8
mov r15, rdx
mov rsi, rcx
cmp qword [rcx + 0xb0], rdi
je 0x14002fb0e
xor r8d, r8d
call fcn.14002f950
mov rsi, rax
test rax, rax
je 0x14002fba7
mov ecx, dword [rsp + 0x70]
mov r9d, 3
mov dword [rsp + 0x28], ecx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rbx
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete dil
mov eax, edi
jmp 0x14002fba7
mov ebp, dword [rsp + 0x70]
mov eax, 2
lea ecx, [rbp*2 + 1]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140015264
mov r14, rax
mov r8d, edi
test ebp, ebp
je 0x14002fb72
mov rdx, rax
mov r8d, ebp
mov r9d, ebp
mov al, byte [rbx]
and al, 0xf
movzx ecx, al
add cx, 0x41
mov word [rdx], cx
lea rdx, [rdx + 4]
mov al, byte [rbx]
inc rbx
shr al, 4
movzx ecx, al
add cx, 0x41
mov word [rdx - 2], cx
sub r9, 1
jne 0x14002fb47
lea eax, [r8 + r8]
mov word [r14 + rax*2], di
mov rax, qword [rsi]
mov rbx, qword [rax + 0x110]
mov rcx, rbx
call fcn.140037bb8
mov r9, r14
mov r8, r12
mov rdx, r15
mov rcx, rsi
call rbx
mov rcx, r14
mov ebx, eax
call fcn.14001525c
mov eax, ebx
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 0x14003192c
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 0x14003195e
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003195e
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.140035244
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140031970
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14003199b
mov r8, rdx
mov rdx, qword [rdi]
call fcn.1400294dc
jmp 0x140031a13
cmp byte [0x14007ef58], 0
jne 0x1400319e2
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400319d2
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x14007ef50], rax
jmp 0x1400319d9
mov rbx, qword [0x14007ef50]
mov byte [0x14007ef58], 1
jmp 0x1400319e9
mov rbx, qword [0x14007ef50]
test rbx, rbx
je 0x140031a07
mov rcx, rbx
call fcn.140037bb8
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
call rbx
jmp 0x140031a13
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400425a0
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x140042374
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140042374
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140042374
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140042374
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140042374
cmp dword [rcx + 0x84], 0xe
jbe 0x140042374
cmp dword [rcx + 0xf8], esi
je 0x140042374
mov ecx, r14d
call fcn.1400424bc
mov ecx, 2
call fcn.140046c1c
nop
cmp byte [0x14007fac0], 0
jne 0x14004243e
mov r15d, 1
mov eax, r15d
xchg dword [0x14007fab4], eax
test ebx, ebx
jne 0x1400423e7
mov rdi, qword [0x140079698]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x14007fab8]
cmp rcx, rax
je 0x1400423de
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400018c0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x14007fad0]
jmp 0x1400423f3
cmp ebx, r15d
jne 0x1400423f9
lea rcx, [0x14007fae8]
call fcn.140042ad8
nop
test ebx, ebx
jne 0x140042410
lea rdx, [0x140052ba8]
lea rcx, [0x140052b88]
call fcn.140042234
lea rdx, [0x140052bb8]
lea rcx, [0x140052bb0]
call fcn.140042234
movzx eax, byte [0x14007fac0]
test esi, esi
cmove eax, r15d
mov byte [0x14007fac0], al
jmp 0x14004243e
mov ecx, 2
call fcn.140046c70
test esi, esi
jne 0x140042455
mov ecx, r14d
call fcn.140042470
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x140042304
Function at 0x140045c64
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x140045b04
call fcn.14003bbdc
mov dword [rax], 0x16
call fcn.14003babc
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x140045aec
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x140045aec
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x140045b36
lock or dword [rax + 0x14], 0x10
jmp 0x140045aec
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x140045b53
mov rcx, qword [rbp + 0x10]
call fcn.14004c5f0
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400448b4
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.14004553c
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x140045baa
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x140045aec
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x140045c16
mov rcx, qword [rbp + 0x10]
call fcn.1400448b4
cmp eax, 0xffffffff
je 0x140045bfd
mov rcx, qword [rbp + 0x10]
call fcn.1400448b4
cmp eax, 0xfffffffe
je 0x140045bfd
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1400448b4
movsxd rdi, eax
lea rsi, [0x14007fb20]
mov rcx, rbx
sar rdi, 6
call fcn.1400448b4
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x140045c04
lea rax, [0x140079980]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140045c16
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x140045c4c
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x140045c48
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x140045c48
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x140045aef
jmp 0x140045abc
Function at 0x1400044b0
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, 0x30
mov rax, qword [0x140049090]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, qword [0x14004c478]
lea r8, [0x140040ea0]
mov rcx, rbx
mov edx, 0x81
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x140004631
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test eax, eax
je 0x140004631
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x140004631
mov edx, esi
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x140004631
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140004628
mov r8d, esi
mov rdx, rbp
mov rcx, rax
call fcn.1400114c0
xor ebp, ebp
lea r8, [rsp + 0x20]
xor edx, edx
mov qword [rsp + 0x20], rbp
mov rcx, rbx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x14000461f
mov rsi, qword [rsp + 0x20]
lea ecx, [rbp + 0x18]
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rdi, rax
test rax, rax
je 0x1400045c3
mov qword [rax + 0x10], rbp
lea rdx, [rdi + 8]
lea rax, vtable.Gdiplus::Image.0
mov qword [rdx], rbp
mov rcx, rsi
mov qword [rdi], rax
call qword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [rdi + 0x10], eax
jmp 0x1400045c6
mov rdi, rbp
mov rcx, qword [rsp + 0x20]
mov qword [0x14004c888], rdi
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [0x14004c888]
test rcx, rcx
je 0x14000461f
mov eax, dword [rcx + 0x10]
mov dword [rcx + 0x10], ebp
test eax, eax
jne 0x140004602
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x140004676
mov rcx, qword [0x14004c888]
test rcx, rcx
je 0x140004618
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [0x14004c888], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
lea rbx, str.D:GitScreenXpertScreenXpert3AsusFoldableSwitcherAsusFoldableSwitcherAsusFoldableSwitcher.cpp
mov edx, 0x5c
mov rcx, rbx
call fcn.140011298
test rax, rax
je 0x14000465b
mov edx, 0x5c
mov rcx, rbx
call fcn.140011298
lea rbx, [rax + 1]
lea r9, str._InitLoadImg_fail:_imgIconClose
mov edx, 0x40a
lea r8, str.InitLoadImg
mov rcx, rbx
call fcn.14000ac30
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14000eef0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14000a410
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x58
mov rax, qword [0x140049090]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14004cb00], eax
jle 0x14000a539
lea rcx, [0x14004cb00]
call fcn.14000f338
cmp dword [0x14004cb00], 0xffffffff
jne 0x14000a539
mov rax, qword [0x140049c98]
lea r9, [0x140049cb0]
xorps xmm1, xmm1
lea r8, [0x140049c90]
lea rdx, section..text
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax - 0x10]
movdqu xmmword [0x140049cb8], xmm1
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.ADVAPI32.dll_EventRegister]
test eax, eax
jne 0x14000a4b6
mov r8, qword [0x140049c98]
lea edx, [rax + 2]
mov rcx, qword [0x140049cb0]
movzx r9d, word [r8]
call qword [sym.imp.ADVAPI32.dll_EventSetInformation]
cmp dword [0x140049c90], 0
jbe 0x14000a4e1
lea rax, str.TraceLoggerInit__
mov qword [rsp + 0x30], rax
lea rdx, [0x1400435b9]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call fcn.140001070
lea r8, [0x1400416c8]
lea rdx, str.C:ProgramData_hs.log
lea rcx, [0x14004c8c0]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [0x14004c8c0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14000a521
lea rcx, [0x14004cac8]
mov byte [0x14004c894], 1
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140030780]
call fcn.14000f184
lea rcx, [0x14004cb00]
call fcn.14000f2d8
lea rax, [0x14004caf1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000eef0
add rsp, 0x58
ret
Function at 0x14000bb60
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140049090]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, 0xffff
movzx esi, dx
mov rbx, rcx
cmp di, dx
jne 0x14000bb91
xor eax, eax
jmp 0x14000bcdf
mov rax, qword [rcx + 0x40]
mov r8, qword [rax]
test r8, r8
je 0x14000bbce
mov r9, qword [rcx + 0x58]
movsxd r10, dword [r9]
lea rdx, [r8 + r10*2]
cmp r8, rdx
jae 0x14000bbce
lea ecx, [r10 - 1]
movzx eax, si
mov dword [r9], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 2]
mov qword [rdx], rcx
mov word [r8], si
jmp 0x14000bcdf
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xb0], rbp
je 0x14000bcd4
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000bc15
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
mov qword [r8], rcx
sub rdx, rcx
mov rax, qword [rbx + 0x38]
sar rdx, 1
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14000bc3e
movzx ecx, si
mov rdx, qword [rbx + 0x80]
call fcn.140017d74
cmp ax, di
je 0x14000bcd4
movzx edi, si
jmp 0x14000bcd4
lea r8, [rsp + 0x40]
mov word [rsp + 0x50], si
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x52]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + 0x38]
test eax, eax
je 0x14000bc94
sub eax, 1
je 0x14000bc94
cmp eax, 2
jne 0x14000bcd4
movzx ecx, word [rsp + 0x50]
jmp 0x14000bc21
mov rbp, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbp, rax
je 0x14000bcc1
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbp
mov edx, 1
call fcn.1400187f0
cmp rbp, rax
jne 0x14000bcd4
lea rax, [rsp + 0x50]
mov byte [rbx + 0x72], 1
cmp qword [rsp + 0x48], rax
movzx eax, si
jne 0x14000bcd7
movzx eax, di
mov rbp, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14000eef0
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret