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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x14010d0f8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rdi, r9
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
nop dword [rax + rax]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140014453
call fcn.140012a84
mov ebx, eax
jmp 0x14001459c
xor r9d, r9d
lea r8d, [r9 + 0x65]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x14001447e
call fcn.140012a84
jmp 0x14001458a
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140014474
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x1400144dc
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400144d2
lea rcx, [rsp + 0x70]
call fcn.140012a14
nop
mov eax, 0x8007000e
jmp 0x1400145b5
mov ecx, eax
test eax, eax
je 0x140014513
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400145da
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140014513
lea rcx, [rsp + 0x70]
call fcn.140012a4c
mov rax, qword [rsp + 0x70]
jmp 0x14001451d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140014534
test rax, rax
jne 0x140014540
mov ebx, 0x8007000e
jmp 0x14001458c
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
nop dword [rax + rax]
test eax, eax
je 0x140014474
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.14001420c
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1400145b3
lea rcx, [rsp + 0x70]
call fcn.140012a14
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1400e6ab0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.140013490
int3
Function at 0x14001647c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor edx, edx
mov rcx, qword [rcx + 0x1f0]
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x140066f27.0]
mov rcx, qword [rbx + 0x208]
xor edx, edx
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x140066f27.0]
mov rcx, rbx
call fcn.140025cf4
cmp dword [rbx + 0x1424], 0
jne 0x140016513
mov edx, 1
mov rcx, rbx
mov r8d, edx
call fcn.140018280
and dword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov rcx, qword [rbx + 0x13b8]
lea rdx, str.EnableBalloon
mov r9d, 4
mov dword [rbx + 0x1424], 1
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
cmp byte [0x140114ecc], 0
je 0x140016533
mov edx, 0xe9c
lea rcx, [0x14010d510]
mov r8d, 1
call fcn.140037034
add rsp, 0x30
pop rbx
ret
Function at 0x140018280
Capabilities:
Inspect load icon resource

Disassembly:
cmp edx, 2
ja 0x140018446
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rax, qword [0x14010d0f8]
xor rax, rsp
mov qword [rbp + 0x300], rax
and qword [rsp + 0x20], 0
mov edi, edx
mov rsi, rcx
mov edx, 0xc9
lea rcx, [rsp + 0x20]
mov r14d, r8d
call fcn.14001fd54
and qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
mov edx, 0xca
call fcn.14001fd54
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x3d0
call sub.msvcrt.dll_memset
mov rax, qword [rsi + 8]
test r14d, r14d
mov qword [rsp + 0x38], rax
mov edx, 0x12d
mov eax, 7
mov dword [rsp + 0x30], 0x3d0
lea ecx, [rax + 0x10]
cmovne eax, ecx
mov rcx, qword [0x14010ce60]
mov dword [rsp + 0x44], eax
call qword [sym.imp.USER32.dll_LoadIconW]
nop dword [rax + rax]
mov r8, qword [rsp + 0x20]
lea rcx, [rsp + 0x58]
mov edx, 0x40
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x3039
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
test r14d, r14d
je 0x14001839f
mov r8, qword [rsp + 0x20]
lea rcx, [rbp + 0x264]
mov edx, 0x40
mov dword [rbp + 0x2e4], 1
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov r8, qword [rsp + 0x28]
lea rcx, [rbp + 0x60]
mov edx, 0x100
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
lea rdx, [rsp + 0x30]
mov dword [rbp + 0x260], 3
mov ecx, edi
mov dword [rsp + 0x48], 0x401
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
nop dword [rax + rax]
test edi, edi
je 0x1400183e4
cmp edi, 2
jne 0x140018402
mov rcx, qword [rsi + 8]
mov edx, 0x2711
call qword [sym.imp.USER32.dll_KillTimer]
nop dword [rax + rax]
jmp 0x140018402
mov rcx, qword [rsi + 8]
xor r9d, r9d
mov edx, 0x2711
mov r8d, 0xea60
call qword [sym.imp.USER32.dll_SetTimer]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.1400e6ab0
mov rsi, qword [rsp + 0x440]
add rsp, 0x410
pop r14
pop rdi
pop rbp
ret
Function at 0x14001bd9c
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov rbx, rcx
and qword [rcx + 8], 0
and qword [rcx + 0x20], 0
and qword [rcx + 0x18], 0
and qword [rcx + 0x10], 0
and dword [rcx + 0x28], 0
and dword [rcx + 0x30], 0
lea rsi, [rcx + 0x3c]
mov dword [rsi], 1
and qword [r11 + 0x20], 0
lea rax, [r11 + 0x20]
mov qword [r11 - 0x38], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftOle
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001be77
mov rdi, qword [rsp + 0x78]
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.EnableATLEnumClassLock
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001be5c
cmp dword [rsp + 0x70], 4
jne 0x14001be5c
test eax, eax
je 0x14001be62
mov dword [rsi], 1
test rdi, rdi
je 0x14001be77
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
lea rax, [0x1400ea398]
mov qword [rbx], rax
mov rcx, qword [0x140114448]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140066f27.0]
nop
mov rax, rbx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret

Function at 0x14001da08
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x40
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov rbx, rcx
and qword [rcx + 8], 0
and qword [rcx + 0x20], 0
and qword [rcx + 0x18], 0
and qword [rcx + 0x10], 0
and dword [rcx + 0x28], 0
and dword [rcx + 0x30], 0
lea rsi, [rcx + 0x3c]
mov dword [rsi], 1
and qword [r11 + 0x20], 0
lea rax, [r11 + 0x20]
mov qword [r11 - 0x38], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftOle
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001dae3
mov rdi, qword [rsp + 0x78]
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, str.EnableATLEnumClassLock
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14001dac8
cmp dword [rsp + 0x70], 4
jne 0x14001dac8
test eax, eax
je 0x14001dace
mov dword [rsi], 1
test rdi, rdi
je 0x14001dae3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
lea rax, [0x1400ea358]
mov qword [rbx], rax
mov rcx, qword [0x140114448]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140066f27.0]
nop
mov rax, rbx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140020708
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
lea rax, [r11 + 0x18]
and dword [rsp + 0x40], 0
lea r9, [r11 + 0x20]
mov qword [r11 - 0x10], rax
mov rbx, rdx
lea rax, [r11 + 8]
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [r11 - 0x18], rax
lea rdx, str.Handedness
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002076c
cmp dword [rsp + 0x58], 4
jne 0x14002076c
test eax, eax
jne 0x14002076c
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 1]
cmp eax, 1
ja 0x14002076c
mov dword [rbx], ecx
jmp 0x140020772
mov dword [rbx], 2
mov al, 1
add rsp, 0x30
pop rbx
ret

Function at 0x140020784
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], edx
xor ebx, ebx
xor r8d, r8d
lea rdx, str.Handedness
lea r9d, [rbx + 4]
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
movzx ecx, bl
lea edx, [rbx + 1]
test eax, eax
cmove ecx, edx
mov al, cl
add rsp, 0x30
pop rbx
ret

Function at 0x1400207d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
lea rax, [r11 + 0x18]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
lea rax, [r11 + 8]
mov dword [rsp + 0x50], 4
mov rdi, rdx
mov qword [r11 - 0x18], rax
xor ebx, ebx
lea rdx, str.ClearAfterInsert
xor r8d, r8d
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002083c
cmp dword [rsp + 0x58], 4
jne 0x14002083c
mov eax, ebx
test eax, eax
jne 0x14002083c
cmp dword [rsp + 0x40], ebx
setne bl
jmp 0x140020841
mov ebx, 1
mov dword [rdi], ebx
mov al, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140020858
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
lea rax, [r11 + 0x18]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
lea rax, [r11 + 8]
mov dword [rsp + 0x50], 4
mov rdi, rdx
mov qword [r11 - 0x18], rax
xor ebx, ebx
lea rdx, str.EnableGrid
xor r8d, r8d
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x1400208bc
cmp dword [rsp + 0x58], 4
jne 0x1400208bc
mov eax, ebx
test eax, eax
jne 0x1400208bc
cmp dword [rsp + 0x40], ebx
setne bl
jmp 0x1400208c1
mov ebx, 1
mov dword [rdi], ebx
mov al, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400208d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
lea rax, [r11 + 0x18]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
lea rax, [r11 + 8]
mov dword [rsp + 0x50], 4
mov rdi, rdx
mov qword [r11 - 0x18], rax
xor ebx, ebx
lea rdx, str.ShowSoftKeys
xor r8d, r8d
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x14002093a
cmp dword [rsp + 0x58], 4
jne 0x14002093a
mov eax, ebx
test eax, eax
jne 0x14002093a
cmp dword [rsp + 0x40], ebx
setne bl
mov dword [rdi], ebx
mov al, 1
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140024d2c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x10], dx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rcx
mov r9d, 1
mov rax, qword [rbp + 0x40]
mov dword [rax], r9d
xor ebx, ebx
mov qword [rbp + 0x38], rbx
movzx edx, r8w
sub edx, 0x91
je 0x140024de9
sub edx, r9d
je 0x140024dd8
sub edx, r9d
je 0x140024dd1
sub edx, r9d
je 0x140024dae
cmp edx, r9d
jne 0x140024e39
mov dword [rbp + 0x28], ebx
lea rsi, [rcx + 0x13b8]
lea rdx, [rbp + 0x28]
mov rcx, rsi
call fcn.1400208d8
test al, al
je 0x140024e39
lea rdx, str.ShowSoftKeys
jmp 0x140024e0a
mov dword [rbp + 0x28], ebx
lea rsi, [rcx + 0x13b8]
lea rdx, [rbp + 0x28]
mov rcx, rsi
call fcn.140020858
test al, al
je 0x140024e39
lea rdx, str.EnableGrid
jmp 0x140024e0a
mov edx, 2
jmp 0x140024ddb
mov edx, r9d
add rcx, 0x13b8
call fcn.140020784
jmp 0x140024e39
mov dword [rbp + 0x28], ebx
lea rsi, [rcx + 0x13b8]
lea rdx, [rbp + 0x28]
mov rcx, rsi
call fcn.1400207d8
test al, al
je 0x140024e39
lea rdx, str.ClearAfterInsert
mov r9d, 4
cmp dword [rbp + 0x28], ebx
mov dword [rsp + 0x28], r9d
lea rax, [rbp + 0x28]
sete bl
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x28], ebx
xor r8d, r8d
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov rcx, rdi
call fcn.140018d8c
nop
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400251e8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rcx, qword [0x1401145e0]
test rcx, rcx
jne 0x14002520e
call fcn.1400252d0
test eax, eax
je 0x140025255
mov rcx, qword [0x1401145e0]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
nop dword [rax + rax]
xor ecx, ecx
test rax, rax
je 0x140025233
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 0x10], ecx
mov word [rax + 0x14], cx
jmp 0x1400252bb
mov edx, 0x1000
mov r9d, 0x40
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x140025259
xor eax, eax
jmp 0x1400252bb
mov eax, dword [rax]
mov rcx, qword [0x1401145e0]
call qword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x140025292
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop dword [rax + rax]
mov rax, rdi
jmp 0x1400252bb
lea rdi, [rbx + 0xfe0]
mov rcx, qword [0x1401145e0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
nop dword [rax + rax]
add rbx, 0x20
cmp rbx, rdi
jb 0x140025299
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140025bc0
Capabilities:
Hide graphical window

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
cmp dword [rcx + 0x88], 0
mov rbx, rcx
jne 0x140025cc4
xor edi, edi
mov dword [rcx + 0x88], 1
cmp dword [rcx + 0x58], edi
jle 0x140025c57
xor esi, esi
test rsi, rsi
js 0x140025ce2
cmp edi, dword [rbx + 0x58]
jge 0x140025ce2
mov rax, qword [rbx + 0x50]
mov r14, qword [rsi + rax]
test r14, r14
je 0x140025c4c
mov rcx, qword [rbx + 0x118]
xor ebp, ebp
test rcx, rcx
je 0x140025c3a
mov edx, dword [r14 + 0x74]
call fcn.140031ae0
test rax, rax
je 0x140025c3a
mov ebp, dword [rax + 0x70]
mov rax, qword [r14]
mov edx, ebp
mov rcx, r14
mov rax, qword [rax + 0x68]
call qword [case.0x140066f27.0]
inc edi
add rsi, 8
cmp edi, dword [rbx + 0x58]
jl 0x140025bfc
mov rcx, qword [rbx + 8]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
cmp qword [rbx + 0x70], 0
jne 0x140025c7b
mov rcx, rbx
call fcn.14002935c
lea rdi, [rbx + 0x68]
cmp qword [rdi], 0
jne 0x140025ca8
mov rcx, rdi
call fcn.1400101cc
test eax, eax
js 0x140025ca8
mov rcx, qword [rdi]
lea rax, [rbx + 0x60]
cmp qword [rcx + 0x10], 0
je 0x140025ca4
test rax, rax
jne 0x140025ca8
mov qword [rcx + 0x10], rax
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x140025cc4
mov rdx, qword [rdi]
test rdx, rdx
je 0x140025cc4
mov r8d, 0x800a
call fcn.14002b774
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov ecx, 0xc000008c
call fcn.140012ac8
int3
Function at 0x140048fac
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop dword [rax + rax]
mov qword [rdi + 0x90], rbx
mov dword [rdi + 0x98], eax
test rbx, rbx
je 0x140049153
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140049153
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rdi + 0x28], rax
test rax, rax
je 0x140049153
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rdi + 0x30], rax
test rax, rax
je 0x140049153
lea ebx, [rsi + 1]
xor r9d, r9d
mov edx, ebx
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rdi + 0x48], rax
test rax, rax
je 0x140049153
lea rax, [rdi + 0x18]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x14004a3f0]
xor edx, edx
mov dword [rsp + 0x20], 4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop dword [rax + rax]
mov qword [rdi + 0x10], rax
test rax, rax
je 0x140049153
mov edx, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
nop dword [rax + rax]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rdi + 0x58], rax
test rax, rax
je 0x140049153
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rdi + 0x50], rax
test rax, rax
je 0x140049153
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov qword [rdi + 0x38], rax
test rax, rax
je 0x140049153
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
nop dword [rax + rax]
mov ecx, 0x80004005
mov qword [rdi + 0x40], rax
test rax, rax
cmove esi, ecx
mov ecx, esi
jmp 0x140049158
mov ecx, 0x80004005
mov rbx, qword [rsp + 0x40]
mov eax, ecx
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140052ac4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14010d0f8]
xor rax, rsp
mov qword [rsp + 0x40], rax
test byte [0x140114440], 1
mov rbx, rcx
je 0x140052b10
lea rax, [r11 - 0x48]
mov r9d, 1
lea rdx, [0x1400f2060]
mov qword [r11 - 0x58], rax
call fcn.140011cfc
xor r12d, r12d
cmp dword [rbx + 0x18], r12d
jne 0x140052c92
mov rcx, qword [0x14010ce58]
lea r8d, [r12 + 0xa]
mov edx, 0x7724
call qword [sym.imp.KERNEL32.dll_FindResourceW]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140052c61
mov rcx, qword [0x14010ce60]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
nop dword [rax + rax]
mov rcx, qword [0x14010ce60]
mov edi, 0xc8
shr eax, 2
mov rdx, rsi
cmp eax, edi
cmovb edi, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x140052c61
test edi, edi
je 0x140052c61
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x140052c52
mov ebp, edi
test edi, edi
je 0x140052c52
mov edi, r12d
cmp word [rsi + rdi*4], r12w
je 0x140052c52
mov eax, dword [rbx + 0x18]
mov r8d, 2
mov rcx, qword [rbx + 8]
inc eax
movzx r15d, word [rsi + rdi*4 + 2]
movsxd rdx, eax
call qword [0x1400ea018]
nop dword [rax + rax]
test rax, rax
je 0x140052c46
mov rcx, qword [rbx + 0x10]
mov r8d, 4
mov qword [rbx + 8], rax
mov eax, dword [rbx + 0x18]
inc eax
movsxd rdx, eax
call qword [0x1400ea018]
nop dword [rax + rax]
test rax, rax
je 0x140052c46
movsxd rdx, dword [rbx + 0x18]
mov rcx, qword [rbx + 8]
mov qword [rbx + 0x10], rax
lea r8, [rcx + rdx*2]
test r8, r8
je 0x140052c37
movzx eax, word [rsi + rdi*4]
mov word [r8], ax
mov rax, qword [rbx + 0x10]
lea rax, [rax + rdx*4]
test rax, rax
je 0x140052c43
mov dword [rax], r15d
inc dword [rbx + 0x18]
inc rdi
cmp rdi, rbp
jl 0x140052bbb
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeResource]
nop dword [rax + rax]
cmp dword [rbx + 0x18], r12d
jle 0x140052c6d
mov dword [rbx], 1
test byte [0x140114440], 1
je 0x140052c92
lea rax, [rsp + 0x30]
mov r9d, 1
lea rdx, [0x1400f1f98]
mov qword [rsp + 0x20], rax
call fcn.140011cfc
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400e6ab0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x1400680c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
sub rsp, 0x38
xor ebx, ebx
lea esi, [rbx + 2]
cmp dword [0x140114870], esi
jne 0x1400680e1
cmp dword [0x140114868], 5
jae 0x140068167
mov ecx, dword [0x140114874]
and ecx, 0x3ff
cmp ecx, 4
je 0x140068212
lea eax, [rcx - 0x11]
cmp eax, 1
jbe 0x140068212
cmp ecx, 0x78
je 0x140068212
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
nop dword [rax + rax]
mov ecx, eax
mov edx, eax
call fcn.14006991c
test eax, eax
jne 0x140068167
mov eax, 0x459
cmp dx, ax
je 0x140068167
mov eax, 0x860
cmp dx, ax
je 0x140068167
movzx ecx, dx
and ecx, 0x3ff
lea eax, [rcx - 0x39]
cmp eax, 0x3a
ja 0x140068159
movabs rdx, 0x6000124ddfff001
bt rdx, rax
jb 0x140068167
cmp ecx, 0x1e
je 0x140068167
cmp ecx, 0x2a
jne 0x140068212
lea rax, [rsp + 0x68]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Control_PanelInternational
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
nop dword [rax + rax]
test eax, eax
jne 0x140068212
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x60]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.NumShape
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x1400681e7
movzx eax, word [rsp + 0x50]
cmp al, 0x2f
jbe 0x1400681e7
sub al, 0x2f
cmp al, 3
movzx ebx, al
cmova ebx, esi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test bl, 0xfd
je 0x140068212
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
nop dword [rax + rax]
mov ecx, eax
call fcn.14006a008
jmp 0x140068223
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
nop dword [rax + rax]
and eax, 0x3ff
mov dword [0x140114a6c], eax
mov al, bl
add rsp, 0x38
pop rsi
pop rbx
ret