joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003f154
Capabilities:
Get thread local storage value
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbp, rcx
call fcn.100001210
xor ebx, ebx
cmp al, bl
jne 0x10003f183
mov eax, 0x40000
jmp 0x10003f23b
mov ecx, dword [0x1000da584]
cmp ecx, 0xffffffff
jne 0x10003f193
mov rax, rbx
jmp 0x10003f19f
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x1000da584]
cmp qword [rax + 0x30], rbx
je 0x10003f1bb
cmp ecx, 0xffffffff
jne 0x10003f1af
mov rax, rbx
jmp 0x10003f1b5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rcx, qword [rax + 0x30]
jmp 0x10003f1be
mov rcx, rbp
mov qword [rdi + 8], rcx
xor edx, edx
mov rcx, rdi
mov dword [rdi], 0x30
mov dword [rdi + 4], 0x8003
mov dword [rdi + 0x18], 1
mov dword [rdi + 0x10], ebx
call fcn.100001aa0
mov esi, eax
cmp eax, 0x40000
jne 0x10003f239
cmp dword [rdi + 0x1c], 2
jne 0x10003f239
cmp word [rdi + 0x28], 9
jne 0x10003f239
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [0x1000da584]
cmp ax, bx
setge dil
cmp ecx, 0xffffffff
je 0x10003f21f
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
mov rdx, qword [rbx + 0x30]
neg dil
mov rcx, rbp
sbb r8d, r8d
add r8d, 2
or r8d, 4
call fcn.1000017e0
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x100047e90
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 r12
sub rsp, 0x50
lea rbp, [rcx + 0xc8]
lea r8, str.Gadget_Resize_Start
mov rdi, rcx
mov rdx, rbp
call fcn.100043acc
mov esi, eax
test eax, eax
js 0x100047ee4
lea rdx, [rdi + 0xd0]
lea r8, str.Gadget_Resize_End
mov rcx, rdi
call fcn.100043acc
mov esi, eax
test eax, eax
jns 0x100047ef4
mov rcx, rdi
call fcn.100043a80
test esi, esi
js 0x100048054
mov rcx, rdi
mov byte [rdi + 0xc1], 1
call fcn.100047870
mov rcx, qword [rdi + 0xb0]
lea rdx, [rdi + 0x108]
mov qword [rdi + 0xd8], rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, qword [rdi + 0xb8]
call qword [sym.imp.USER32.dll_GetParent]
lea rdx, [rdi + 0xe8]
mov rcx, rax
mov r12, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [rdi + 0x110]
mov edx, dword [rdi + 0x10c]
movd xmm0, dword [rdi + 0x108]
movd xmm1, edx
cvtdq2ps xmm0, xmm0
sub ecx, dword [rdi + 0x108]
mov rbx, qword [rbp]
movss dword [rsp + 0x40], xmm0
cvtdq2ps xmm1, xmm1
movss dword [rsp + 0x44], xmm1
movd xmm0, ecx
mov ecx, dword [rdi + 0x114]
mov rdi, qword [rdi + 0xd8]
sub ecx, edx
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x48], xmm0
movd xmm0, ecx
xor ecx, ecx
cvtdq2ps xmm0, xmm0
movss dword [rsp + 0x4c], xmm0
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
test rax, rax
je 0x100047fc5
movss xmm3, dword [0x1000ae960]
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.1000483d8
mov rcx, qword [rbp]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov ecx, 0x4e
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0x4c
mov edi, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0x4f
add edi, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, 0x4d
mov ebx, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [0x1000dc5d8]
xor r9d, r9d
xor r8d, r8d
mov rcx, r12
add ebx, eax
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsp + 0x30], 0x1d
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9d, ebx
mov r8d, edi
xor edx, edx
mov rcx, r12
call qword [sym.imp.USER32.dll_SetWindowPos]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x84d
mov rcx, r12
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
mov eax, esi
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r12
ret
Function at 0x100048a78
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0xb0], 0
mov rbx, rcx
je 0x100048b00
mov ecx, dword [0x1000da5a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r10, qword [rbx + 0xb8]
xor edx, edx
mov r8, qword [rax + 0x58]
test r8, r8
je 0x100048ad2
lea r9, [rax + 0x50]
mov rcx, qword [r9]
cmp qword [rcx], r10
je 0x100048ac4
inc edx
add rcx, 8
mov eax, edx
cmp rax, r8
jb 0x100048ab0
jmp 0x100048ad2
mov r8d, 1
mov rcx, r9
call fcn.1000032d0
cmp byte [rbx + 0xc0], 0
je 0x100048af8
mov rcx, qword [rbx + 0xb0]
lea rdx, [0x1000477c0]
xor r8d, r8d
call sub.COMCTL32.dll_RemoveWindowSubclass
mov byte [rbx + 0xc0], 0
and qword [rbx + 0xb0], 0
add rsp, 0x20
pop rbx
ret

Function at 0x10004d12c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1000da5c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov esi, edx
mov rbx, rcx
cmp edx, dword [rcx + 0x164]
je 0x10004d23c
mov rcx, qword [0x1000da648]
lea rdx, [0x1000b8b70]
call qword [sym.imp.ADVAPI32.dll_EventEnabled]
test al, al
je 0x10004d1f1
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x30]
mov r8d, 0x104
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp dword [0x1000dbf5c], edi
je 0x10004d1f1
mov al, byte [0x1000dbf60]
cmp al, 4
jae 0x10004d1a6
test al, al
jne 0x10004d1f1
movabs r8, 0x8000000000010000
test qword [0x1000dbf48], r8
je 0x10004d1f1
mov rcx, qword [0x1000dbf50]
mov rax, rcx
and rax, r8
cmp rax, rcx
jne 0x10004d1f1
mov eax, dword [rbx + 8]
mov r9d, dword [rbx + 0x178]
mov rcx, qword [0x1000da648]
lea r8, [rsp + 0x30]
lea rdx, [0x1000b8b70]
mov dword [rsp + 0x20], eax
call fcn.1000404e8
test esi, esi
je 0x10004d201
cmp esi, 1
je 0x10004d201
mov edi, 0x80070057
jmp 0x10004d23c
mov rcx, qword [rbx + 0x120]
call fcn.100047e90
test eax, eax
js 0x10004d218
mov byte [rbx + 0x140], 1
mov rcx, qword [rbx + 0x170]
mov edx, esi
mov rax, qword [rcx]
call qword [rax + 0x58]
mov edi, eax
test eax, eax
js 0x10004d23c
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x78]
mov dword [rbx + 0x164], esi
mov eax, edi
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1000031d0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x100061a60
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x90
and qword [rax + 0x10], 0
and dword [rax - 0x78], 0
mov rdi, rdx
xor edx, edx
mov rbx, r8
lea rcx, [rax - 0x74]
lea r8d, [rdx + 0x6c]
call sub.msvcrt.dll_memset
mov r11, qword [rdi]
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [r11 + 0xa0]
mov ebx, eax
test eax, eax
js 0x100061b04
mov rcx, qword [rsp + 0xa8]
lea rax, str.open
mov dword [rsp + 0x20], 0x70
mov qword [rsp + 0x38], rcx
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x50], 5
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x100061b04
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x100061aff
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x100061b04
mov ebx, 0x80004005
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x100061b17
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
Function at 0x100061dbc
Capabilities:
Parse url

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0xa0
and qword [rax + 0x10], 0
mov rdi, rdx
xor edx, edx
mov rbx, r8
lea rcx, [rax - 0x70]
lea r8d, [rdx + 0x60]
xor sil, sil
call sub.msvcrt.dll_memset
mov rax, qword [rdi]
lea r9, [rsp + 0xb8]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x30], 0x68
call qword [rax + 0xa0]
test eax, eax
js 0x100061e6d
mov rcx, qword [rsp + 0xb8]
lea r9, [rsp + 0x30]
mov ebx, 1
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x40], ebx
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x100061e3e
call sub.KERNEL32.dll_GetLastError
jmp 0x100061e6d
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x38]
lea rax, str.JavaScript
mov dword [rsp + 0x28], r9d
mov edx, ebx
mov ecx, 0x7f
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
sete sil
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x100061e80
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea r11, [rsp + 0xa0]
mov al, sil
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x100063e4c
Capabilities:
Get local ipv4 addresses

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov ebp, edx
lea rdx, [rax - 0x20]
xor ebx, ebx
and dword [rax + 0x20], ebx
mov rcx, r8
mov r12, r9
xor esi, esi
xor edi, edi
call sub.IPHLPAPI.DLL_ConvertInterfaceGuidToLuid
test eax, eax
jne 0x100063f24
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call sub.IPHLPAPI.DLL_ConvertInterfaceLuidToIndex
test eax, eax
jne 0x100063f24
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, ebp
mov qword [rsp + 0x20], rax
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
cmp eax, 0x6f
je 0x100063ec1
test eax, eax
jne 0x100063ef6
mov ebx, 0x80004005
jmp 0x100063f04
mov ecx, dword [rsp + 0x78]
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new___unsigned_long_long_unsigned___int64__
mov rsi, rax
test rax, rax
jne 0x100063ed9
mov ebx, 0x8007000e
jmp 0x100063f29
lea rax, [rsp + 0x78]
mov r9, rsi
xor r8d, r8d
xor edx, edx
mov ecx, ebp
mov qword [rsp + 0x20], rax
call sub.IPHLPAPI.DLL_GetAdaptersAddresses
test eax, eax
je 0x100063f0a
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jns 0x100063f35
jmp 0x100063f29
mov eax, dword [rsp + 0x30]
mov rdi, rsi
cmp dword [rdi + 4], eax
je 0x100063f1f
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x100063f11
test rdi, rdi
jne 0x100063f35
mov ebx, 0x80004005
mov rcx, rsi
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor esi, esi
xor edi, edi
mov rcx, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov qword [r12], rsi
mov qword [rcx], rdi
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x10006bdec
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1000da5c8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [rsp + 0x30]
lea rcx, [0x1000b1b64]
mov r8d, 0x104
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, ebx
jne 0x10006be2c
mov ebx, 0x80004005
jmp 0x10006be4b
lea r9, [0x1000b1bb4]
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1000031d0
add rsp, 0x250
pop rbx
ret
Function at 0x100070970
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x270
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1000da5c8]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rdx
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, 0x105
lea rdx, [rsp + 0x50]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp eax, ebx
jne 0x1000709f5
call sub.KERNEL32.dll_GetLastError
cmp eax, ebx
je 0x1000709ee
movzx ecx, ax
or ecx, 0x80070000
cmp eax, ebx
cmovle ecx, eax
mov ebx, ecx
jmp 0x100070a0c
mov ebx, 0x80004005
jmp 0x100070a0c
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.100007e60
mov r11, qword [rsp + 0x40]
mov qword [rdi], r11
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1000031d0
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rdi
ret

Function at 0x100070a38
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movzx eax, word [rdx]
mov rbx, rcx
mov word [rcx + 0x20], ax
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r11d, eax
test eax, eax
jne 0x100070a76
call sub.KERNEL32.dll_GetLastError
mov r11d, eax
test eax, eax
je 0x100070a86
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
jmp 0x100070ae1
movzx eax, word [rbx + 0x20]
sub eax, 0x41
movzx ecx, al
bt r11d, ecx
jb 0x100070a8d
mov eax, 0x80004005
jmp 0x100070ae1
mov edx, 3
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rdi, rax
test rax, rax
jne 0x100070aa9
mov eax, 0x8007000e
jmp 0x100070ac3
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x100070abd
and qword [rbx + 0x18], 0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx + 0x18], rdi
xor eax, eax
test eax, eax
js 0x100070ae1
movzx r9d, word [rbx + 0x20]
mov rcx, qword [rbx + 0x18]
lea r8, str._c:_
mov edx, 4
call fcn.100001084
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x100072458
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x230
mov rax, qword [0x1000da5c8]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rdi, rcx
mov rbp, rdx
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8d, 0xac
call sub.msvcrt.dll_memset
xor r12d, r12d
lea rcx, [rsp + 0x120]
mov r8, rdi
mov edx, 0x80
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov esi, r12d
call fcn.100001010
cmp eax, r12d
mov ebx, eax
jl 0x100072512
or rdx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x120]
mov rcx, rdx
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 7
jbe 0x100072512
lea rdi, [rsp + rcx*2 + 0x112]
lea r8, str._dstoff
mov r9d, edx
mov rcx, rdi
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
jne 0x100072512
mov word [rdi], r12w
lea esi, [rax - 1]
cmp ebx, r12d
jl 0x1000726a9
lea rcx, [rsp + 0x38]
call fcn.100097ea4
cmp eax, r12d
mov ebx, eax
jl 0x1000726a9
mov rcx, qword [rsp + 0x38]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x120]
call fcn.100097f10
cmp eax, r12d
mov ebx, eax
jl 0x1000726a9
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x74]
lea r8, [0x1000bcea0]
lea rdx, str.MUI_Std
mov edi, 0x20
mov dword [rsp + 0x20], edi
call fcn.10003d9f0
cmp al, r12b
je 0x1000725a6
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0xc8]
lea r8, [0x1000bceb8]
lea rdx, str.MUI_Dlt
mov dword [rsp + 0x20], edi
call fcn.10003d9f0
cmp al, r12b
jne 0x1000725b0
mov ebx, 0x80004005
jmp 0x1000726a9
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea rdx, [0x1000bced0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov ebx, 0x80040203
mov dword [rsp + 0x38], 0x2c
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r12d
cmove ebx, r12d
cmp ebx, r12d
jl 0x1000726a9
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x70], eax
cmp esi, r12d
jne 0x10007263c
movdqu xmm0, xmmword [rsp + 0x4c]
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0xc4], eax
mov eax, dword [rsp + 0x48]
movdqu xmmword [rsp + 0xb4], xmm0
movdqu xmm0, xmmword [rsp + 0x5c]
mov dword [rsp + 0x118], eax
movdqu xmmword [rsp + 0x108], xmm0
jmp 0x1000726a9
xor edx, edx
lea rcx, [rsp + 0xb4]
mov dword [rsp + 0xc4], r12d
lea r8d, [rdx + 0x10]
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [rsp + 0x118], r12d
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x110], rax
lea rdx, [rsp + 0xc8]
lea rax, [rdi + 0x7fffffde]
cmp rax, r12
je 0x10007269c
movzx eax, word [rdx - 0x54]
cmp ax, r12w
je 0x10007269c
mov word [rdx], ax
add rdx, 2
sub rdi, 1
jne 0x100072679
cmp rdi, r12
jne 0x1000726a5
sub rdx, 2
mov word [rdx], r12w
mov rcx, qword [rsp + 0x30]
cmp rcx, r12
je 0x1000726b9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x70]
mov rcx, rbp
mov r8d, 0xac
call sub.msvcrt.dll_memcpy
mov eax, ebx
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1000031d0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x100097f44
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x58]
xor r9d, r9d
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
cmp eax, ecx
sete cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x100098fe0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x1000da5c8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rcx
lea rcx, [rsp + 0x48]
mov rbp, rdx
call fcn.100097ea4
mov ebx, eax
test eax, eax
js 0x100099085
xor edi, edi
mov dword [rsp + 0x40], 0x80
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x48]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x50]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_RegEnumKeyExW]
mov r11d, eax
test eax, eax
jne 0x10009906d
lea rcx, [rsp + 0x50]
mov rdx, rbp
call rsi
inc edi
mov dword [rsp + 0x40], 0x80
jmp 0x100099081
xor eax, eax
cmp r11d, 0x103
jne 0x10009907c
test edi, edi
jne 0x100099085
mov ebx, 0x80004005
test eax, eax
jne 0x100099021
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1000031d0
mov rbx, qword [rsp + 0x190]
add rsp, 0x160
pop rdi
pop rsi
pop rbp
ret

Function at 0x100099640
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
xor r9d, r9d
mov ebx, 0x80040203
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov dword [rsp + 0x58], 0x2c
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor ecx, ecx
cmp eax, ecx
cmove ebx, ecx
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x10009a76c
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x380
mov rax, qword [0x1000da5c8]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov rbp, qword [rsp + 0x3e0]
mov r13, rcx
mov r12, r8
xor r15d, r15d
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0xfe
mov r14, r9
mov ebx, 0x80004005
mov esi, r15d
mov word [rsp + 0x60], r15w
call sub.msvcrt.dll_memset
mov dword [rsp + 0x34], 0x100
mov word [rbp], r15w
cmp dword [0x1000df47c], r15d
jne 0x10009a8f7
mov edi, 0x104
lea rcx, [rsp + 0x160]
mov dword [0x1000df47c], 1
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, r15d
je 0x10009a8e9
lea r8, str._tzres.dll
lea rcx, [rsp + 0x160]
mov rdx, rdi
call fcn.100006c24
cmp eax, r15d
jl 0x10009a8e9
lea rcx, [rsp + 0x160]
call fcn.10009b460
mov rdi, rax
cmp rax, r15
je 0x10009a8e9
lea r8d, [r15 + 0x22]
lea rcx, [rsp + 0x3a]
xor edx, edx
mov word [rsp + 0x38], r15w
call sub.msvcrt.dll_memset
lea r9d, [r15 + 0x12]
lea r8, [rsp + 0x38]
mov rdx, r12
mov rcx, r13
mov dword [rsp + 0x20], r9d
mov dword [0x1000df47c], r15d
lea esi, [r15 + 1]
call fcn.10009ad00
cmp eax, r15d
mov ebx, eax
jl 0x10009a8e1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.10009a97c
cmp eax, r15d
mov ebx, eax
jl 0x10009a8e1
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x60]
mov edx, 0x400
mov rcx, rdi
mov dword [rsp + 0x20], 0x80
call fcn.10009aa90
cmp eax, r15d
mov ebx, eax
jl 0x10009a8e1
mov edx, dword [rsp + 0x3e8]
lea r8, [rsp + 0x60]
mov rcx, rbp
call fcn.100001010
mov esi, r15d
cmp eax, r15d
mov ebx, eax
setl sil
mov rcx, rdi
call sub.KERNEL32.dll_FreeLibrary
cmp dword [0x1000df47c], r15d
jne 0x10009a8f7
cmp esi, r15d
je 0x10009a948
lea rax, [rsp + 0x34]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov rdx, r14
mov rcx, r13
mov ebx, 0x80004005
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r15d
jne 0x10009a948
mov edx, dword [rsp + 0x3e8]
lea r8, [rsp + 0x60]
mov rcx, rbp
call fcn.100001010
mov ebx, eax
mov eax, 0x40203
cmp ebx, r15d
cmovge ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.1000031d0
mov rbx, qword [rsp + 0x3c8]
add rsp, 0x380
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x10009aa90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x130
mov rax, qword [0x1000da5c8]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov eax, r8d
mov r13d, 1
mov rbp, r9
shr eax, 4
mov esi, r8d
lea edx, [r13 + 5]
add ax, r13w
mov r9d, 0x400
mov rbx, rcx
movzx r8d, ax
mov edi, 0x80004005
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
xor r12d, r12d
cmp rax, r12
je 0x10009abc6
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
cmp rax, r12
je 0x10009abc6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
cmp rax, r12
je 0x10009abc6
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0xfe
mov word [rsp + 0x20], r12w
call sub.msvcrt.dll_memset
and esi, 0xf
jbe 0x10009ab4b
mov ecx, esi
movzx eax, word [rbx]
add eax, r13d
sub rcx, r13
lea rbx, [rbx + rax*2]
jne 0x10009ab3c
movzx r9d, word [rbx]
mov edx, 0x80
cmp r9d, edx
jae 0x10009abc6
lea rax, [rsp + 0x20]
add rbx, 2
mov rcx, rdx
lea r8, [rsp + 0x20]
mov edi, r12d
sub rbx, rax
lea rax, [rcx + 0x7fffff7e]
cmp rax, r12
je 0x10009ab94
movzx eax, word [rbx + r8]
cmp ax, r12w
je 0x10009ab94
mov word [r8], ax
add r8, 2
sub rcx, r13
jne 0x10009ab70
mov eax, 0x8007007a
cmp rcx, r12
jne 0x10009aba4
sub r8, 2
mov edi, eax
cmp edi, r12d
mov word [r8], r12w
jge 0x10009abb1
cmp edi, eax
jne 0x10009abc6
lea r8, [rsp + 0x20]
mov rcx, rbp
mov word [rsp + r9*2 + 0x20], r12w
call fcn.100001010
mov edi, eax
mov eax, edi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1000031d0
mov rbx, qword [rsp + 0x168]
add rsp, 0x130
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x10009ad00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x90
mov rax, qword [0x1000da5c8]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor r12d, r12d
mov rbp, r8
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x42]
lea r8d, [r12 + 0x3e]
xor edx, edx
mov esi, 0x80004005
mov word [rsp + 0x40], r12w
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
mov dword [rsp + 0x30], 0x40
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, r12d
jne 0x10009ad95
lea r8, [rsp + 0x40]
lea edx, [r12 + 0x12]
mov rcx, rbp
mov word [rsp + 0x62], r12w
call fcn.100001010
mov esi, eax
mov eax, esi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1000031d0
add rsp, 0x90
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret