joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007bff0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 4], ecx
push esi
mov esi, 0x811c9dc5
cmp edx, ecx
je 0x1007c12d
push ebx
push edi
nop
movzx eax, byte [edx]
xor eax, esi
imul esi, eax, 0x1000193
movzx eax, byte [edx + 1]
xor esi, eax
movzx eax, byte [edx + 2]
imul esi, esi, 0x1000193
xor esi, eax
movzx eax, byte [edx + 3]
imul esi, esi, 0x1000193
xor esi, eax
imul edi, esi, 0x1000193
mov esi, dword [edx + 4]
lea ebx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1007c045
sub esi, ebx
sar esi, 1
lea ebx, [esi + esi]
xor esi, esi
test ebx, ebx
jle 0x1007c074
mov ecx, dword [edx + 4]
movzx eax, byte [esi + ecx]
inc esi
xor eax, edi
imul edi, eax, 0x1000193
cmp esi, ebx
jl 0x1007c060
mov ecx, dword [ebp - 4]
mov ebx, dword [edx + 8]
mov eax, ebx
lea esi, [eax + 2]
mov dword [ebp - 8], esi
nop
mov si, word [eax]
add eax, 2
test si, si
jne 0x1007c080
sub eax, dword [ebp - 8]
xor esi, esi
sar eax, 1
add eax, eax
mov dword [ebp - 8], eax
test eax, eax
jle 0x1007c0b4
mov ecx, eax
nop dword [eax]
movzx eax, byte [esi + ebx]
inc esi
xor eax, edi
imul edi, eax, 0x1000193
cmp esi, ecx
jl 0x1007c0a0
mov ecx, dword [ebp - 4]
movzx eax, byte [edx + 0xc]
xor eax, edi
imul esi, eax, 0x1000193
movzx eax, byte [edx + 0xd]
xor esi, eax
movzx eax, byte [edx + 0xe]
imul esi, esi, 0x1000193
xor esi, eax
movzx eax, byte [edx + 0xf]
imul esi, esi, 0x1000193
xor esi, eax
movzx eax, byte [edx + 0x10]
imul esi, esi, 0x1000193
xor eax, esi
imul esi, eax, 0x1000193
movzx eax, byte [edx + 0x11]
xor esi, eax
movzx eax, byte [edx + 0x12]
imul esi, esi, 0x1000193
xor esi, eax
movzx eax, byte [edx + 0x13]
imul esi, esi, 0x1000193
xor esi, eax
movzx eax, byte [edx + 0x14]
imul esi, esi, 0x1000193
add edx, 0x18
xor eax, esi
imul esi, eax, 0x1000193
cmp edx, ecx
jne 0x1007c010
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10080ac0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fb5d0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1013c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea ecx, [edi + 0x18]
mov eax, dword [ebx]
mov dword [edi], eax
movzx eax, byte [ebx + 4]
mov byte [edi + 4], al
movzx eax, byte [ebx + 5]
mov byte [edi + 5], al
movzx eax, byte [ebx + 6]
mov byte [edi + 6], al
movzx eax, byte [ebx + 7]
mov byte [edi + 7], al
movzx eax, byte [ebx + 8]
mov byte [edi + 8], al
movzx eax, byte [ebx + 9]
mov byte [edi + 9], al
movzx eax, byte [ebx + 0xa]
mov byte [edi + 0xa], al
movzx eax, byte [ebx + 0xb]
mov byte [edi + 0xb], al
movzx eax, byte [ebx + 0xc]
mov byte [edi + 0xc], al
movzx eax, byte [ebx + 0xd]
mov byte [edi + 0xd], al
movzx eax, byte [ebx + 0xe]
mov byte [edi + 0xe], al
movzx eax, byte [ebx + 0xf]
mov byte [edi + 0xf], al
movzx eax, byte [ebx + 0x10]
mov byte [edi + 0x10], al
mov eax, dword [ebx + 0x14]
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0x18]
mov esi, dword [ecx]
sub esi, 0x10
lea eax, [edx - 0x10]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x10080bba
mov eax, dword [esi + 0xc]
lea ebx, [esi + 0xc]
shr eax, 0x1f
test al, al
jne 0x10080bb1
mov eax, dword [edx - 0x10]
cmp eax, dword [esi]
jne 0x10080bb1
mov ecx, dword [ebp - 0x10]
call fcn.10021e50
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x10080ba2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x18], eax
jmp 0x10080bba
push dword [edx - 0xc]
push edx
call fcn.10021eb0
mov edx, dword [ebp + 8]
mov esi, dword [edi + 0x1c]
sub esi, 0x10
mov edx, dword [edx + 0x1c]
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x10080c1f
lea eax, [esi + 0xc]
mov dword [ebp + 8], eax
mov eax, dword [eax]
shr eax, 0x1f
test al, al
jne 0x10080c13
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x10080c13
call fcn.10021e50
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 1
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x10080c08
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x10]
add eax, 0x10
mov dword [edi + 0x1c], eax
jmp 0x10080c1f
push dword [edx - 0xc]
lea ecx, [edi + 0x1c]
push edx
call fcn.10021eb0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10081d00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x10081dc0
call fcn.100736e0
test al, al
je 0x10081d59
push dword [esi]
lea eax, [ebp - 0x204]
push 0x10114efc
push 0x100
push eax
call fcn.100a4830
add esp, 0x10
lea eax, [ebp - 0x204]
push 1
push 0
push eax
push str.shell:appsfolderMicrosoft.MicrosoftEdge_8wekyb3d8bbwe_MicrosoftEdge
jmp 0x10081db6
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], 0x104
push eax
lea eax, [ebp - 0x40c]
push eax
push 0x1010be30
push str.http
push 2
push 0
call dword [sym.imp.SHLWAPI.dll_AssocQueryStringW]
test eax, eax
js 0x10081dc0
push dword [esi]
lea eax, [ebp - 0x204]
push str.____s_
push 0x100
push eax
call fcn.100a4830
add esp, 0x10
lea eax, [ebp - 0x204]
push 1
push 0
push eax
lea eax, [ebp - 0x40c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100d4906
mov esp, ebp
pop ebp
ret 4

Function at 0x10082430
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push 0
push 0
push str.PATH
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x1008245b
mov ecx, esi
call fcn.10022f70
pop edi
pop esi
mov eax, ebx
pop ebx
ret 4
js 0x100824c2
mov edx, dword [esi]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x1008247a
push edi
mov ecx, esi
call fcn.10021230
mov edx, dword [esi]
push edi
push edx
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x10082491
xor ecx, ecx
jmp 0x100824a3
push dword [eax - 8]
push eax
call fcn.100de0b5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x100824c2
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x100824c2
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov ebx, 1
pop edi
pop esi
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
ret 4
push 0x80070057
call fcn.10013970
int3
Function at 0x1008d0c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xac
mov eax, dword [ebp + 0x14]
xorps xmm0, xmm0
push ebx
mov ebx, ecx
mov dword [esp + 8], 0
push esi
push edi
lea ecx, [esp + 0x70]
mov dword [esp + 0x20], 0
mov edi, dword [ebx + 0x48]
mov esi, dword [ebx + 0x44]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
movups xmmword [esp + 0x40], xmm0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0xc], vtable.CEditCustomItemDlg.0
mov dword [esp + 0x54], eax
call fcn.10086510
mov eax, dword [ebp + 8]
push 2
push dword [ebx + 4]
mov dword [esp + 0x58], eax
mov dword [esp + 0x14], vtable.CEditMenuDlg.0
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], edi
call dword [sym.imp.USER32.dll_GetAncestor]
mov ecx, 0xbb9
mov esi, eax
call fcn.100aef60
mov edi, eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1008d194
call fcn.100d35ee
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1008d194
push 0xe
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1008d1ed
push 0
push 0
push eax
call fcn.100d36f0
lea eax, [esp + 0xc]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x10149514
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1014952c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push 0x10149514
mov dword [0x1014952c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0x1009ada0
push esi
push edi
push dword [0x1014a878]
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
push 1
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [esp + 0x10], 0
mov dword [esp + 0x58], esi
je 0x1008d265
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop
push 0
push 0
push 0
lea eax, [esp + 0xa8]
push eax
call esi
test eax, eax
je 0x1008d265
lea eax, [esp + 0x9c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x1008d25e
lea eax, [esp + 0x9c]
push eax
call edi
lea eax, [esp + 0x9c]
push eax
call ebx
cmp dword [esp + 0x10], 0
jne 0x1008d220
mov eax, dword [esp + 0x60]
mov bl, byte [esp + 0x5c]
mov esi, dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [esp + 0xc], vtable.CEditCustomItemDlg.0
test eax, eax
je 0x1008d282
push eax
call esi
mov ecx, dword [esp + 0x68]
test ecx, ecx
je 0x1008d28d
push ecx
call esi
lea ecx, [esp + 0x70]
call fcn.10086b40
lea ecx, [esp + 0xc]
call fcn.10086ac0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10090d70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x20]
add eax, dword [ebp - 0x14]
sub dword [ebp - 0xc], eax
mov eax, dword [esi + 0x2c]
add eax, dword [ebp - 0x10]
sub dword [ebp - 8], eax
push 0x2001f
push dword [0x1014e928]
mov dword [ebp - 0x20], 0
push SysReAllocString
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10013210
test eax, eax
je 0x10090df1
sub esp, 8
lea ecx, [ebp - 0x20]
push 0x2001f
sub esp, 8
push dword [0x1014e928]
push SysReAllocString
call fcn.100380f0
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 0x10
push eax
push 3
push 0
push str.CEditMenuDlg7
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x10090e15
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100d4906
mov esp, ebp
pop ebp
ret
Function at 0x10096b50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fde62
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 1
call fcn.100215d0
mov ecx, eax
test ecx, ecx
je 0x10096d8b
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov dx, word [0x10159320]
mov dword [ebp - 0x21c], 1
test dx, dx
jne 0x10096bf3
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
shr eax, 8
movzx edx, al
movzx eax, cl
shl ax, 8
or dx, ax
mov word [0x10159320], dx
mov eax, 0xa00
cmp dx, ax
jb 0x10096c72
push 0x800
push 0
push str.winbrand.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x10096c72
push str.BrandingFormatString
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10096c6b
push str._WINDOWS_LONG_
call eax
mov edx, eax
mov dword [ebp - 0x218], edx
test edx, edx
je 0x10096c6b
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x214], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10096c43
sub ecx, dword [ebp - 0x214]
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.10021eb0
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x10096d6e
movups xmm0, xmmword [str.Windows]
push 0x1f0
lea eax, [ebp - 0x200]
push 0
push eax
movups xmmword [ebp - 0x210], xmm0
call fcn.100d6eb0
add esp, 0xc
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
push 0x20019
push str.SoftwareMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10013210
mov edi, dword [ebp - 0x228]
test eax, eax
jne 0x10096d37
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x200
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.ProductName
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10096d37
mov eax, dword [ebp - 0x218]
cmp eax, 1
je 0x10096d25
cmp eax, 2
jne 0x10096d37
cmp dword [ebp - 0x214], 0
jne 0x10096d37
xor eax, eax
mov word [ebp - 0x210], ax
test edi, edi
je 0x10096d42
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10096d50
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10021eb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d4906
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10013970
int3
Function at 0x100996d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fe288
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1013c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
xor ecx, ecx
call fcn.100162e0
mov eax, dword [ebp + 8]
cmp eax, 1
jne 0x10099886
test bl, 2
je 0x1009978a
mov edx, 0xbb9
lea ecx, [ebp - 0x10]
call fcn.100aedf0
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
mov esi, dword [eax]
mov edx, 0xbbc
call fcn.100aedf0
push 0x30
push esi
push dword [eax]
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10099764
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 2
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x10099783
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov cx, word [0x10159320]
test cx, cx
jne 0x100997b5
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
movzx eax, al
shr ecx, 8
movzx ecx, cl
shl ax, 8
or cx, ax
mov word [0x10159320], cx
mov eax, 0x602
cmp cx, ax
jbe 0x100998a2
push 0x20006
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerStartPage
push SysReAllocString
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.10013210
mov edi, dword [ebp - 0x20]
test eax, eax
jne 0x10099840
mov esi, dword [0x1014e914]
cmp dword [esi], 0
je 0x10099822
cmp dword [esi + 4], 1
jne 0x1009981a
push str.SkipMetro
push dword [esi]
call fcn.100dc721
add esp, 8
test eax, eax
je 0x1009984d
add esi, 0x60
cmp dword [esi], 0
jne 0x10099801
mov esi, 1
push 4
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push 4
push 0
push str.OpenAtLogon
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x100998a2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100998a2
push 0x10158d3c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
cmp word [esi + 0x38], 3
jne 0x10099874
cmp dword [esi + 0x40], 1
jne 0x10099874
push 0x10158d3c
xor esi, esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
jmp 0x10099827
push 0x10158d3c
mov esi, 1
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
jmp 0x10099827
cmp eax, 2
jne 0x100998a2
movzx eax, byte [0x10158c57]
xor ecx, ecx
cmp byte [0x10158c56], cl
cmovne eax, ecx
mov byte [0x10158c57], al
xor cl, cl
call fcn.10099300
call fcn.10015090
call fcn.10015160
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10099e00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fe2f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x1013c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.100a6320
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x10099ed8
push 0
call fcn.100a5f20
push 0x2001f
push dword [0x1014e928]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push SysReAllocString
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.10013210
mov esi, dword [ebp - 0x24]
test eax, eax
jne 0x10099e98
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push 0
push str.ShowedStyle2
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x10099ea3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10099ec5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
test eax, eax
je 0x10099f24
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov edi, eax
push 0
lea eax, [ebp - 0x14]
push eax
push 2
push 0x1010ff30
push edi
call esi
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ecx - 0xc]
push ecx
push edi
call esi
push 0
lea eax, [ebp - 0x14]
push eax
push 2
push 0x1010ff30
push edi
call esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 4], 1
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10099f46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1009be70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x1009befa
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
test edi, edi
js 0x1009bf09
mov esi, dword [ebp + 0xc]
mov ecx, 1
mov edx, dword [esi]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, edi
or ecx, eax
jge 0x1009beb5
push edi
mov ecx, esi
call fcn.10021230
mov edx, dword [esi]
push edi
push edx
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
mov ecx, edi
cmp edi, 0xffffffff
jne 0x1009bedb
mov ecx, dword [esi]
test ecx, ecx
je 0x1009bedf
push dword [ecx - 8]
push ecx
call fcn.100de0b5
add esp, 8
mov ecx, eax
test ecx, ecx
js 0x1009bf09
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x1009bf09
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
call fcn.10022f70
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x80070057
call fcn.10013970
int3
Function at 0x1009dab0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov edx, 0x811c9dc5
push esi
mov dword [ebp - 4], edx
mov eax, dword [ebx + 0x274c]
mov esi, dword [eax]
cmp esi, eax
je 0x1009dba9
push edi
mov edi, dword [ebp + 8]
xor edx, edx
cmp edi, 0xffffffff
jne 0x1009dae0
mov edx, dword [esi + 0x18]
jmp 0x1009db20
mov ecx, dword [esi + 0x14]
cmp ecx, 0xffffffff
jge 0x1009daf8
mov eax, 0xfffffffe
sub eax, ecx
push eax
call dword [sym.imp.USER32.dll_GetSysColor]
jmp 0x1009db08
test ecx, ecx
js 0x1009db20
push 0
push 1
push ecx
push edi
call dword [0x10158d20]
mov ecx, eax
shr eax, 0x10
movzx edx, al
movzx eax, cl
and ecx, 0xff00
shl eax, 0x10
or edx, eax
or edx, ecx
or edx, 0xff000000
movzx eax, dl
xor eax, dword [ebp - 4]
imul ecx, eax, 0x1000193
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, edx
shr eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
shr edx, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
xor eax, edx
imul edx, eax, 0x1000193
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
mov dword [ebp - 4], edx
je 0x1009db86
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x1009db82
cmp esi, dword [eax + 8]
jne 0x1009db82
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x1009db72
mov esi, eax
jmp 0x1009db9c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x1009db9c
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x1009db90
cmp esi, dword [ebx + 0x274c]
jne 0x1009dad4
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1009e2c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fe498
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x1013c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x10158d1c], 0
mov byte [edi], 1
je 0x1009e3d5
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0x20019
push str.SoftwareMicrosoftWindowsCurrentVersionThemesPersonalize
push SysReAllocString
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.10013210
mov esi, dword [ebp - 0x24]
test eax, eax
jne 0x1009e376
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 1
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push str.EnableTransparency
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1009e370
cmp dword [ebp - 0x18], 4
jne 0x1009e370
cmp dword [ebp - 0x10], eax
jne 0x1009e370
xor cl, cl
mov byte [edi], cl
jmp 0x1009e378
mov cl, 1
mov byte [edi], cl
jmp 0x1009e378
mov cl, byte [edi]
test cl, cl
mov edx, str.ImmersiveSystemAccentDark2
mov eax, str.ImmersiveSystemAccentDark3
cmove eax, edx
push eax
call dword [0x10158d24]
mov edi, eax
test edi, edi
js 0x1009e3ca
push 0
push 0
call dword [0x10158d1c]
push 0
push 1
push edi
push eax
call dword [0x10158d20]
mov edi, eax
test esi, esi
je 0x1009e3b7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1009e3d5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100a4870
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
mov edx, 0x3fe
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x804]
push 0x3fd
call fcn.100a4a90
add esp, 0x10
mov ecx, 0x3fd
test eax, eax
cmovs eax, ecx
xor ecx, ecx
mov word [ebp + eax*2 - 0x804], cx
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100a48c0
sub eax, edx
lea ecx, [ebp - 0x804]
sar eax, 1
mov edx, 0x400
push 0x1010ff30
sub edx, eax
lea ecx, [ecx + eax*2]
call fcn.100a4780
add esp, 4
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d4906
mov esp, ebp
pop ebp
ret