joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004949c
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 r12
push r13
push r14
sub rsp, 0x20
lea rax, [rcx - 0xc8]
neg rcx
mov rbx, r8
sbb rsi, rsi
xor r14d, r14d
mov edi, 1
and rsi, rax
mov edx, 0x99f
mov rcx, qword [rsi + 8]
cmp dword [rsp + 0x60], r14d
je 0x10004955f
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
mov r13, rax
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov rcx, rbx
or r12d, 0xffffffff
movsxd rbp, eax
mov edx, ebp
call fcn.100016600
cmp rax, r14
je 0x100049555
mov rax, qword [rbx]
mov dword [rax - 8], ebp
mov rax, qword [rbx]
mov word [rax + rbp*2], r14w
mov rdx, qword [rbx]
cmp rdx, r14
je 0x100049555
lea r8d, [rbp + 1]
mov rcx, r13
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
mov r12d, eax
call fcn.1000166e4
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r11, eax
mov rax, qword [rbx]
mov dword [rax - 8], r11d
mov rax, qword [rbx]
mov word [rax + r11*2], r14w
cmp r12d, ebp
jge 0x1000495a7
mov edi, r14d
jmp 0x10004956f
mov r8, qword [r8]
call qword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, eax
cmp eax, r14d
jne 0x1000495a7
or ecx, 0xffffffff
lea rbx, [rsi + 0xc8]
call qword [sym.imp.USER32.dll_MessageBeep]
lea r8, [rbx - 0xc8]
neg rbx
sbb rcx, rcx
mov edx, 0x99f
and rcx, r8
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, edi
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
Function at 0x100049a34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rsi
push rdi
push r12
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rsi, rcx
xor r12d, r12d
mov qword [rcx + 8], r12
lea rax, [rcx + 0x10]
mov qword [rsp + 0x68], rax
mov qword [rax + 0x18], r12
mov qword [rcx + 0x30], r12
mov dword [rcx + 0x38], r12d
mov rax, qword [sym.imp.USER32.dll_DefWindowProcW]
mov qword [rcx + 0x40], rax
mov qword [rcx + 0xa8], r12
mov dword [rcx + 0xb0], r12d
mov dword [rcx + 0xb4], r12d
lea edi, [r12 + 0x60]
mov r8, rdi
xor edx, edx
add rcx, 0x48
call sub.msvcrt.dll_memset
mov dword [rsi + 0x48], edi
mov dword [rsi + 0x4c], pe_nt_image_headers64
mov rax, qword [0x1000a1d70]
mov qword [rsi + 0x58], rax
mov qword [rsi + 0x80], r12
mov dword [rsi + 0x70], r12d
mov rax, qword [rsp + 0x58]
mov qword [rsi + 0x68], rax
mov dword [rsi + 0x78], r12d
mov qword [rsi + 0x50], r12
lea rax, [0x100049ca0]
mov qword [rsi + 0x88], rax
lea rdi, [rsi + 0xc0]
mov qword [rsp + 0x68], rdi
mov qword [rdi + 8], r12
lea rax, [rdi + 0x10]
mov qword [rsp + 0x28], rax
mov qword [rax + 0x18], r12
mov qword [rdi + 0x30], r12
mov dword [rdi + 0x38], r12d
lea rbx, [rdi + 0x40]
xor edx, edx
lea r8d, [r12 + 0x68]
mov rcx, rbx
call sub.msvcrt.dll_memset
mov dword [rbx], 0x68
mov dword [rdi + 0x44], 0x80
mov rax, qword [0x1000a1d70]
mov qword [rdi + 0x48], rax
mov edx, 0x18b
mov qword [rdi + 0x50], rdx
lea rax, [0x10001bba0]
mov qword [rdi + 0x68], rax
lea rax, [0x100035cb8]
mov qword [rdi + 0x78], rax
mov qword [rdi + 0x70], rdi
mov qword [rdi + 0xb0], rbx
mov qword [rdi + 0xb8], r12
mov qword [rdi + 0xc0], r12
mov qword [rdi + 0xd0], r12
lea rax, [0x1000047c0]
mov qword [rdi], rax
lea rax, [0x1000047e0]
mov qword [rdi + 0xa8], rax
or dword [rdi + 0x44], 1
mov rbx, qword [0x1000a1d70]
lea r8d, [r12 + 5]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rdi + 0x50], rax
mov byte [rsi + 0x1a8], r12b
mov byte [rsi + 0x1a9], r12b
xor r8d, r8d
lea rdx, [rsi + 0xb8]
mov rcx, rsi
call fcn.100049d10
lea r8d, [r12 + 4]
mov edx, dword [rsi + 0xb8]
mov ecx, 0x13d
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [rsi + 0x198], eax
lea r8d, [r12 + 8]
mov edx, dword [rsi + 0xbc]
mov ecx, 0x8f
call qword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [rsi + 0x19c], eax
mov dword [rsi + reloc.OLEAUT32.dll_OleTranslateColor], r12d
mov dword [rsi + 0x1a0], r12d
mov rax, rsi
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x10004a930
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
mov esi, 0x21
mov edx, esi
add rcx, 0x60
call fcn.100016600
mov r8d, esi
mov rdx, rax
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.USER32.dll_GetWindowTextW]
lea rcx, [rbx + 0x60]
call fcn.1000166e4
mov rcx, qword [rbx + 0x60]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rbx + 0x60]
mov dword [rcx - 8], eax
movsxd rcx, eax
mov rax, qword [rbx + 0x60]
xor esi, esi
mov word [rax + rcx*2], si
mov rcx, qword [rbx + 0x50]
cmp rcx, rsi
jne 0x10004a9a8
mov rax, 0xffffffff80004003
jmp 0x10004aa80
lea r8, [rbx + 0x68]
add rcx, 0x280
lea rdx, [rbx + 0x60]
call fcn.10001cff8
cmp eax, esi
jge 0x10004aa67
lea rcx, [rsp + 0x50]
call fcn.100042078
nop
lea rdx, [0x100002dec]
lea rcx, [rsp + 0x40]
call fcn.100017e84
nop
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0xf73a
mov r9d, 0xf75b
mov r8d, 0xf692
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x50]
call fcn.1000420cc
movsxd rbx, eax
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
lea rax, [0x1000a1170]
cmp rcx, rax
je 0x10004aa48
or edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
cmp edx, esi
jg 0x10004aa48
call fcn.10007a490
cmp ebx, esi
jge 0x10004aa5b
lea rcx, [rsp + 0x50]
call fcn.1000420a4
mov rax, rbx
jmp 0x10004aa80
lea rcx, [rsp + 0x50]
call fcn.1000420a4
jmp 0x10004aa7e
mov edx, 1
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_EndDialog]
cmp eax, esi
jne 0x10004aa7e
xor eax, eax
jmp 0x10004aa80
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10004e790
Capabilities:
Resolve function by parsing pe exports

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
sub rsp, 0xc0
mov rsi, rcx
mov rcx, qword [rcx + 0xe8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x101f
call qword [sym.imp.USER32.dll_SendMessageW]
xor r12d, r12d
mov rbx, rax
cmp rax, r12
jne 0x10004e7dc
mov eax, 0x80004003
jmp 0x10004e934
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1200
mov rcx, rax
mov edi, r12d
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r12d
jle 0x10004e932
xor eax, eax
movsxd rbp, edi
lea r9, [rsp + 0x20]
mov edx, 0x120b
mov rcx, rbx
mov r8, rbp
mov dword [rsp + 0x20], 0x14
mov dword [rsp + 0x24], r12d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x3c], r12d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x4c], r12d
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r12d
je 0x10004e952
mov r8, rbp
mov edx, 0x120c
cmp edi, dword [rsi + 0x1e4]
je 0x10004e881
and dword [rsp + 0x3c], 0xffffcfff
lea r9, [rsp + 0x20]
jmp 0x10004e906
cmp byte [rsi + 0x1e0], r12b
lea rax, [rsi + 0x1d0]
lea rcx, [rsi + 0x1d8]
cmovne rcx, rax
mov dword [rsp + 0x70], 0x14
mov dword [rsp + 0x74], r12d
mov rax, qword [rcx]
xor ecx, ecx
mov qword [rsp + 0x78], r12
mov qword [rsp + 0x80], rax
mov eax, 0x3000
mov dword [rsp + 0x88], r12d
or eax, dword [rsp + 0x3c]
mov qword [rsp + 0x90], r12
mov dword [rsp + 0x98], r12d
mov dword [rsp + 0x9c], r12d
mov qword [rsp + 0xa0], rcx
mov qword [rsp + 0xa8], rcx
mov dword [rsp + 0x8c], eax
mov qword [rsp + 0xb0], rcx
lea r9, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, r12d
je 0x10004e952
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1200
mov rcx, rbx
inc edi
call qword [sym.imp.USER32.dll_SendMessageW]
cmp edi, eax
jl 0x10004e7fc
xor eax, eax
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
mov eax, 0x80004005
jmp 0x10004e934

Function at 0x10004f058
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
movsx eax, r9w
xor edx, edx
shr r9, 0x10
mov rbx, rcx
mov dword [rsp + 0x50], eax
movsx eax, r9w
lea r8d, [rdx + 0x14]
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x54], eax
call sub.msvcrt.dll_memset
mov r11, qword [rsp + 0x50]
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x1012
mov qword [rsp + 0x20], r11
call qword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
cmp eax, 0xffffffff
je 0x10004f0d2
cmp dword [rsp + 0x28], 8
jne 0x10004f0d2
lea ecx, [rdi + 0x11]
call qword [sym.imp.USER32.dll_GetKeyState]
cmp ax, di
jl 0x10004f0d2
mov edx, dword [rsp + 0x2c]
mov rcx, rbx
call fcn.10004f0f4
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x58]
mov dword [rax], edi
movabs rax, 1
add rsp, 0x40
pop rdi
ret
Function at 0x10004f384
Capabilities:
Check mutex on windows

Disassembly:
mov rax, rsp
push rsi
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rbx, rcx
lea r8, [0x100004988]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
test rax, rax
je 0x10004f3c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10004f3c9
xor eax, eax
jmp 0x10004f507
lea rcx, [rsp + 0x48]
call fcn.100050774
nop
lea rdx, [0x100002dec]
lea rcx, [rsp + 0x90]
call fcn.100017e84
nop
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0xf70b
xor edx, edx
mov r9d, 0xf741
mov r8d, 0xf692
lea rcx, [rsp + 0x48]
call fcn.100050a0c
mov ebx, eax
mov rcx, qword [rsp + 0x90]
add rcx, 0xfffffffffffffff4
lea rsi, [0x1000a1170]
cmp rcx, rsi
je 0x10004f454
or edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
test edx, edx
jg 0x10004f454
call fcn.10007a490
test ebx, ebx
jns 0x10004f45d
jmp 0x10004f4fa
mov rax, qword [0x1000a1180]
mov qword [rsp + 0x88], rax
mov edx, 0xf692
lea rcx, [rsp + 0x88]
call fcn.1000167ac
test eax, eax
setne al
test al, al
jne 0x10004f4b2
mov rcx, qword [rsp + 0x88]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10004f4ab
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x10004f4ab
call fcn.10007a490
nop
mov ebx, 0x80004005
jmp 0x10004f4fa
mov rbx, qword [rsp + 0x88]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
je 0x10004f4d9
mov edx, 1
mov rcx, rax
call qword [sym.imp.USER32.dll_FlashWindow]
nop
lea rcx, [rbx - 0xc]
cmp rcx, rsi
je 0x10004f4f5
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x10004f4f5
call fcn.10007a490
nop
mov ebx, 0x80004005
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rsi
ret
Function at 0x100051734
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edx, edx
lea rcx, [0x1000a2b08]
lea r8d, [rdx + 0x78]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x38]
lea rdx, [0x100004c70]
xor edi, edi
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x100051893
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [0x100002dec]
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x30], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x100051885
cmp dword [rsp + 0x34], 1
je 0x1000517ee
cmp dword [rsp + 0x34], 2
jne 0x100051885
test byte [rsp + 0x30], 1
jne 0x100051885
mov eax, dword [rsp + 0x30]
shr rax, 1
cmp word [rsp + rax*2 + 0x3e], di
jne 0x100051885
mov eax, edi
cmp eax, edi
jne 0x100051885
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, edi
je 0x100051885
cmp rbx, rdi
je 0x100051838
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1000a2b00], rax
cmp rax, rdi
je 0x1000518ac
lea rdx, [0x100004ce8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rdi
je 0x100051893
mov edx, 0x78
lea r8, [0x1000a2b08]
lea ecx, [rdx - 0x76]
call rax
mov ecx, edi
cmp eax, edi
cmovl ecx, eax
cmp ecx, edi
jge 0x1000518be
jmp 0x100051893
cmp rbx, rdi
je 0x100051893
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x1000a2b00]
cmp rcx, rdi
je 0x1000518ac
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x1000a2b00], rdi
xor edx, edx
lea rcx, [0x1000a2b08]
lea r8d, [rdx + 0x78]
call sub.msvcrt.dll_memset
lea rax, [0x1000a2b00]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.10007a3b0
mov rbx, qword [rsp + 0x480]
add rsp, 0x470
pop rdi
ret
Function at 0x100064a28
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
cvttsd2si ebp, qword [rcx]
mov r12, rdx
mov dil, r8b
mov r8d, 0x88888889
xor r9d, r9d
mov r14d, 0x400
mov eax, r8d
imul ebp
mov eax, r8d
xor r8d, r8d
lea esi, [rbp + rdx]
sar esi, 5
mov ecx, esi
shr ecx, 0x1f
add esi, ecx
mov ecx, esi
imul esi
imul ecx, ecx, 0xffffffc4
lea r13d, [rsi + rdx]
lea edx, [r9 + 0x1e]
sar r13d, 5
add ebp, ecx
mov ecx, r14d
mov eax, r13d
shr eax, 0x1f
add r13d, eax
mov eax, r13d
imul eax, eax, 0xffffffc4
add esi, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rdx, qword [0x1000a1180]
mov qword [rsp + 0x60], rdx
lea rcx, [rsp + 0x60]
mov edx, eax
mov ebx, eax
call fcn.100016600
mov r9d, ebx
mov edx, 0x1e
mov ecx, r14d
mov r8, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea rcx, [rsp + 0x60]
call fcn.1000166e4
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor r14d, r14d
movsxd rcx, eax
mov dword [rbx - 8], eax
mov word [rbx + rcx*2], r14w
cmp dil, r14b
je 0x100064b40
cmp ebp, 0x1e
jl 0x100064aff
inc esi
lea rdx, [0x100003db0]
mov r8d, esi
mov rcx, r12
call fcn.10001646c
cmp eax, r14d
lea rcx, [rbx - 0xc]
lea rax, [0x1000a1170]
jne 0x100064b5f
cmp rcx, rax
je 0x100064b39
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, r14d
jg 0x100064b39
call fcn.10007a490
mov eax, 0x80004005
jmp 0x100064b79
lea rdx, [0x100006008]
mov r9d, r13d
mov r8, rbx
mov rcx, r12
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], esi
call fcn.10001646c
jmp 0x100064b11
cmp rcx, rax
je 0x100064b77
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, r14d
jg 0x100064b77
call fcn.10007a490
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x100064c18
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, dword [0x1000a1cc0]
cmp eax, 0xffffffff
jne 0x100064cbf
xor ebx, ebx
mov dword [0x1000a1cc0], ebx
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x1000a2ad0], ax
cmp ax, bx
je 0x100064cb9
lea r9d, [rbx + 0x10]
lea r8, [rsp + 0x28]
lea edx, [rbx + 0x58]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp eax, ebx
je 0x100064cb9
mov eax, 0x800
test word [rsp + 0x36], ax
je 0x100064cb9
xor eax, eax
lea r8, [rsp + 0x20]
lea rcx, [0x100064b98]
mov dword [rsp + 0x24], eax
movzx eax, word [0x1000a2ad0]
xor edx, edx
mov word [rsp + 0x20], ax
call qword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
mov eax, dword [0x1000a1cc0]
cmp dword [rsp + 0x24], ebx
lea ecx, [rbx + 1]
cmovne eax, ecx
mov dword [0x1000a1cc0], eax
jmp 0x100064cbf
mov eax, dword [0x1000a1cc0]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.10007a3b0
add rsp, 0x50
pop rbx
ret
Function at 0x100065efc
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [r11 + 0x18]
mov r9d, 4
mov dword [r11 - 0x10], r9d
xor r8d, r8d
mov qword [r11 - 0x18], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
and eax, 0x80004005
add rsp, 0x38
ret

Function at 0x100065f3c
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
test rdx, rdx
jne 0x100065f4c
mov eax, 0x80004003
jmp 0x100065f7d
mov rcx, qword [rcx]
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov dword [rsp + 0x48], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
neg eax
sbb eax, eax
and eax, 0x80004005
add rsp, 0x38
ret

Function at 0x100065f88
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rsi, rdx
test rdx, rdx
jne 0x100065fa9
mov eax, 0x80004003
jmp 0x100065fe5
test r8, r8
je 0x100065fa2
mov rbx, qword [rcx]
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9d, 1
xor r8d, r8d
lea eax, [rax + rax + 2]
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
and eax, 0x80004005
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x100065ffc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp rdx, rbp
jne 0x100066022
mov eax, 0x80004003
jmp 0x1000660a8
mov rcx, qword [rcx]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
je 0x10006604d
mov eax, 0x80004005
jmp 0x1000660a8
mov edx, dword [rsp + 0x58]
mov rcx, rsi
call fcn.100016600
lea rcx, [rsp + 0x58]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call fcn.1000166e4
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
neg ebx
mov dword [rcx - 8], eax
mov rcx, qword [rsi]
movsxd rdx, eax
sbb eax, eax
mov word [rcx + rdx*2], bp
and eax, 0x80004005
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
Function at 0x100069f44
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x870
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov rdi, rcx
lea rdx, [0x100004558]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rsi, rax
test rax, rax
jne 0x100069fba
mov rcx, qword [rdi]
lea rsi, [0x1000a1170]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x100069fb0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x100069fb0
mov rcx, qword [rdi]
sub rcx, 0xc
call fcn.10007a490
mov eax, 0x80004005
jmp 0x10006a0a7
mov rax, qword [0x1000a1180]
lea rcx, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x50], rax
call fcn.100069b40
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 8], 0
mov r9, qword [rdi]
mov edx, 0x400
lea rcx, [rsp + 0x60]
je 0x10006a002
and dword [rsp + 0x28], 0
lea r8, [0x100006528]
mov qword [rsp + 0x20], rbx
call fcn.10003aab0
jmp 0x10006a013
and dword [rsp + 0x20], 0
lea r8, [0x100006548]
call fcn.10003aab0
xor r8d, r8d
mov ecx, 1
lea rax, [rsp + 0x60]
and qword [rsp + 0x40], r8
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], r8d
mov word [rsp + 0x28], cx
and qword [rsp + 0x20], r8
mov edx, ecx
mov r9d, 0xc94703ea
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rcx, [rbx - 0xc]
lea rsi, [0x1000a1170]
or ebx, 0xffffffff
cmp rcx, rsi
je 0x10006a081
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x10006a081
call fcn.10007a490
mov rcx, qword [rdi]
add rcx, 0xfffffffffffffff4
cmp rcx, rsi
je 0x10006a0a5
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x10006a0a5
mov rcx, qword [rdi]
sub rcx, 0xc
call fcn.10007a490
xor eax, eax
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.10007a3b0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10006a0d4
Capabilities:
Create shortcut via ishelllink

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rdi, rcx
mov rcx, qword [rcx]
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
xor esi, esi
cmp rax, rsi
jne 0x10006a115
mov eax, 0x80004003
jmp 0x10006a2e2
lea rdx, [0x100006560]
mov rcx, rax
call qword [sym.imp.msvcrt.dll__wcsicmp]
cmp eax, esi
jne 0x10006a2e0
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x1000068c0]
lea rcx, [0x1000021c8]
lea r8d, [rdx + 1]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
mov ebx, eax
jge 0x10006a173
mov rcx, qword [rsp + 0x30]
cmp rcx, rsi
je 0x10006a16c
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov eax, ebx
jmp 0x10006a2e2
mov rax, qword [rsp + 0x30]
mov rcx, rsi
mov qword [rsp + 0x38], rcx
cmp rax, rsi
je 0x10006a19f
mov r9, qword [rax]
lea r8, [rsp + 0x38]
lea rdx, [0x100006570]
mov rcx, rax
call qword [r9]
mov rcx, qword [rsp + 0x38]
mov rax, qword [rcx]
mov rdx, qword [rdi]
xor r8d, r8d
call qword [rax + 0x28]
cmp eax, esi
mov ebx, eax
jge 0x10006a1d3
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x10006a1c1
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x30]
cmp rcx, rsi
je 0x10006a16c
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x10006a16c
mov rcx, qword [rsp + 0x30]
xor edx, edx
mov rax, qword [rcx]
lea r8d, [rdx + 4]
call qword [rax + ILFree]
cmp eax, esi
mov ebx, eax
jl 0x10006a1b1
mov rax, qword [0x1000a1180]
mov ebx, 0x104
lea rcx, [rsp + 0x40]
mov edx, ebx
mov qword [rsp + 0x40], rax
call fcn.100016600
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x50]
mov r10, qword [rcx]
mov r8d, ebx
mov rdx, rax
mov dword [rsp + 0x20], 4
call qword [r10 + 0x18]
cmp eax, esi
mov ebx, eax
jge 0x10006a26f
mov rcx, qword [rsp + 0x40]
lea rdx, [0x1000a1170]
add rcx, 0xfffffffffffffff4
cmp rcx, rdx
je 0x10006a256
or edx, 0xffffffff
lock xadd dword [rcx], edx
dec edx
cmp edx, esi
jg 0x10006a256
call fcn.10007a490
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x10006a1c1
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x10006a1c1
lea rcx, [rsp + 0x40]
call fcn.1000166e4
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rdi
movsxd rdx, eax
mov dword [rbx - 8], eax
mov word [rbx + rdx*2], si
lea rdx, [rsp + 0x40]
call fcn.10001c054
lea rcx, [rbx - 0xc]
lea rdx, [0x1000a1170]
cmp rcx, rdx
je 0x10006a2c0
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
cmp eax, esi
jg 0x10006a2c0
call fcn.10007a490
mov rcx, qword [rsp + 0x38]
cmp rcx, rsi
je 0x10006a2d0
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x30]
cmp rcx, rsi
je 0x10006a2e0
mov rax, qword [rcx]
call qword [rax + 0x10]
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.10007a3b0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret