joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e7763
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x53ffd0]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
xor ebx, ebx
push 0x51223c
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x4e7808
call eax
mov esi, dword [sym.imp.KERNEL32.DLL_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0xc], ecx
call esi
push dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
call eax
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x24], eax
call esi
mov dword [ebp - 0x20], eax
push 4
xor ebx, ebx
jmp 0x4e790a
call dword [sym.imp.KERNEL32.DLL_GetVersion]
test eax, eax
jns 0x4e78b8
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push reloc.DSOUND.dll_DirectSoundCreate
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e790b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e78ad
cmp dword [ebp - 0x14], 1
jne 0x4e78ad
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x4c]
push 0x50912c
push eax
call fcn.004b7226
add esp, 0xc
cmp eax, 1
jne 0x4e78ad
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.DLL_ConvertDefaultLocale]
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x2c], eax
call esi
push 2
mov dword [ebp - 0x28], eax
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4e790b
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x4e790b
lea ecx, [ebp - 8]
push ecx
push 0x4e7751
push 1
push 0x10
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.DLL_EnumResourceLanguagesW]
cmp word [ebp - 8], bx
je 0x4e790b
movzx eax, word [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.DLL_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x2c], eax
call esi
mov dword [ebp - 0x28], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x2c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x4e7931
push dword [ebp + edi*4 - 0x2c]
push dword [ebp + 8]
call fcn.004e76e0
cmp eax, ebx
pop ecx
pop ecx
jne 0x4e7933
inc edi
cmp edi, esi
jl 0x4e791a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004b8f56
leave
ret 4
Function at 0x4e7945
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x53f5d8
je 0x4e7a01
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push reloc.DSOUND.dll_DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4e79e9
mov esi, dword [ebx + 4]
jmp 0x4e79e3
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4e79d3
cmp dword [ebp - 0xc], 4
jne 0x4e79d3
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4e79cb
or dword [eax + 0x9c], ecx
jmp 0x4e79d3
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4e7997
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4e797a
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x4e7d9f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x4f47f8
call fcn.004ba84c
sub esp, 0x210
mov eax, dword [0x53ffd0]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x4e7e5a
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, 0xff
jmp 0x4e7e23
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004ad8cb
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
call fcn.004e7d9f
mov ecx, dword [ebp - 0x1c]
mov esi, eax
test esi, esi
setne byte [ebp - 0x11]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00401e40
cmp byte [ebp - 0x11], 0
jne 0x4e7e38
push ebx
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0x18]
call edi
mov esi, eax
test esi, esi
je 0x4e7de7
cmp esi, 0x103
pop edi
pop ebx
je 0x4e7e4a
cmp esi, 0x3f2
jne 0x4e7e5a
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
mov eax, esi
pop esi
call fcn.004b8f56
leave
ret 8

Function at 0x4e8185
Capabilities:
Get thread local storage value

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4e81a2
mov ecx, dword [esp + 4]
cmp ecx, dword [eax + 8]
jge 0x4e81a2
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ecx*4]
jmp 0x4e81a4
xor eax, eax
ret 4
Function at 0x4e829c
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4e82d0
call fcn.004cc335
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x4e8338
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x4e8366
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x4e8401
cmp dword [esp + 0x14], ebx
je 0x4e8401
jmp 0x4e83a3
push 0x10
call fcn.004e804a
cmp eax, ebx
je 0x4e837c
mov ecx, eax
call fcn.004e8293
mov esi, eax
jmp 0x4e837e
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
push ebx
mov dword [edi + 0x14], esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4e83ba
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LocalAlloc]
jmp 0x4e83ca
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x4e83d6
call fcn.004cc335
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*4]
push ebx
push eax
call fcn.004ba870
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8

Function at 0x4e84c6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4e84f4
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4e8512
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e8430
jmp 0x4e8512
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e8512
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004e8430
test edi, edi
mov eax, edi
jne 0x4e84fc
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x546bd4]
test ecx, ecx
je 0x4e85c5
jmp 0x4e84c5
ret 8
Function at 0x4e8924
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x4f4b23
call fcn.004ba84c
mov eax, 0x2014
call fcn.004b6f80
mov eax, dword [0x53ffd0]
xor eax, dword [ebp + 4]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x4e89fe
push dword [ebp + 0xc]
call fcn.004e8875
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x4e896a
push dword [ebp + 0x14]
jmp 0x4e8a2f
push esi
call fcn.004d4318
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x14]
call esi
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x4e89cf
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
push ecx
shr eax, 1
push eax
lea ecx, [ebp + 0xc]
call fcn.004ad24d
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x18], eax
call fcn.004ad173
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x4e89ec
lea eax, [ebp + 0xc]
push eax
call fcn.004adb5a
jmp 0x4e89f4
push dword [ebp + 0x14]
call fcn.004ad8cb
lea ecx, [ebx - 0x10]
call fcn.00401e40
jmp 0x4e8a37
cmp dword [ebp + 0x14], edi
jne 0x4e8a0a
mov dword [ebp + 0x14], 0x4f724c
push dword [ecx + 0x64]
lea eax, [ebp - 0x2020]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
lea eax, [ebp - 0x2020]
push eax
mov ecx, dword [ebp + 8]
call fcn.004ad8cb
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop ebx
call fcn.004b8f56
leave
ret 0x10
Function at 0x4e8a55
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4f4b23
call fcn.004ba84c
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [esi], edi
mov dword [ebx], edi
cmp dword [ecx + 0x50], edi
je 0x4e8ae7
push dword [ebp + 8]
call fcn.004e8875
cmp eax, edi
mov dword [ebp + 0x14], eax
jne 0x4e8a8a
xor eax, eax
jmp 0x4e8b5a
lea ecx, [ebp + 0x10]
push ecx
push edi
lea ecx, [ebp - 0x10]
push ecx
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
call edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x4e8acd
push eax
call fcn.004d2f6a
pop ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call edi
mov dword [ebp + 8], eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], ebx
je 0x4e8b57
push dword [esi]
call fcn.004d2f9a
pop ecx
mov dword [esi], ebx
jmp 0x4e8a83
push edi
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.004e8924
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp + 8], eax
jne 0x4e8b14
add ecx, 0xfffffff0
call fcn.00401e40
jmp 0x4e8a83
shr eax, 1
push eax
mov dword [ebx], eax
call fcn.004d2f6a
cmp dword [ebp + 8], edi
pop ecx
mov dword [esi], eax
jle 0x4e8b4c
mov eax, dword [ebp + 0xc]
lea eax, [eax + edi*2]
mov cl, byte [eax + 2]
dec cl
shl cl, 4
add cl, byte [eax]
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esi]
sub cl, 0x41
sar eax, 1
inc edi
inc edi
cmp edi, dword [ebp + 8]
mov byte [eax + edx], cl
jl 0x4e8b26
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401e40
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x4e8bb4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x4e8b96
mov ecx, 0x546e68
call fcn.004e81c1
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x4e8c45
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4e8c20
mov ecx, dword [ebp + 0x10]
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push 5
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x4e8c20
push ebx
push edi
push eax
call fcn.004d74c2
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.004ad30b
mov si, word [esi + 8]
xor eax, eax
pop edi
mov word [ebx], si
cmp si, 0xffff
pop esi
setne al
pop ebx
pop ebp
ret 0xc
Function at 0x404d00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5abe10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1774
call fcn.0057ed50
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e4]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xd08]
mov dword [ebp - 0x14], esi
test eax, eax
mov dword [ebp - 4], 0
push 0x7cf
je 0x404d88
mov ecx, dword [esi + 0xd04]
lea eax, [ebp - 0x1784]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x404d9c
lea edx, [ebp - 0x7e4]
push 0x7d0
lea eax, [ebp - 0x1784]
push edx
push eax
call fcn.00404210
add esp, 0xc
jmp 0x404d9c
mov edx, dword [esi + 0xd04]
lea ecx, [ebp - 0x7e4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x7e4]
mov ecx, esi
push eax
call fcn.004049b0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4067b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac200
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1770
call fcn.0057ed50
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1f4
xor eax, eax
lea edi, [ebp - 0x7e0]
mov dword [ebp - 0x10], esp
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x4f8]
mov dword [ebp - 4], 0
test eax, eax
push 0x7cf
je 0x406835
mov ecx, dword [esi + 0x4f4]
lea eax, [ebp - 0x1780]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x406849
lea edx, [ebp - 0x7e0]
push 0x7d0
lea eax, [ebp - 0x1780]
push edx
push eax
call fcn.00404210
add esp, 0xc
jmp 0x406849
mov edx, dword [esi + 0x4f4]
lea ecx, [ebp - 0x7e0]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x7e0]
lea ecx, [esi + 0x4d0]
push eax
push 0x64efa8
push ecx
call fcn.00593b08
add esp, 0xc
mov ecx, esi
call fcn.00406ea0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4075c0
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac368
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x318
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov eax, dword [esi + 0x78]
push ebx
push ebx
push 0x1009
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
mov dword [ebp - 0x14], ebx
mov eax, dword [esi + 0x98]
cmp ebx, dword [eax + 0x1c]
jge 0x407757
mov ecx, dword [0x6754cc]
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 0x18]
lea ebx, [ebx + ebx*8]
shl ebx, 2
mov byte [ebp - 4], 1
mov ecx, dword [edx + ebx + 4]
mov edx, dword [eax + 4]
push ecx
push edx
lea eax, [ebp - 0x18]
push 0x64f278
push eax
call fcn.00593b08
mov edx, dword [ebp - 0x18]
add esp, 0x10
lea ecx, [esi + 0x5c]
push 0
push 0
push 0
push 0
push edx
push edi
push 1
call fcn.00594e74
inc edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edi
mov ecx, 0xad
xor eax, eax
lea edi, [ebp - 0x324]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x98]
push 0x4411
lea edx, [ebp - 0x324]
push 0x160
mov ecx, dword [eax + 0x18]
push edx
push 0x80
mov eax, dword [ecx + ebx]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [esi + 0x78]
mov eax, dword [ebp - 0x320]
mov edi, dword [ebp - 0x20]
lea ecx, [ebp - 0x48]
push ecx
push 0
push 0x1006
push edx
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x44], edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x98]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + ebx + 8]
test eax, eax
mov eax, 0x67a794
jne 0x4076e3
mov eax, 0x67a790
mov eax, dword [eax]
lea ecx, [esi + 0x5c]
push eax
push 1
push edi
call fcn.00594f6f
mov edx, dword [esi + 0x98]
mov dword [ebp - 0x68], 2
lea ecx, [ebp - 0x70]
mov eax, dword [edx + 0x18]
mov edx, dword [esi + 0x78]
push ecx
push edi
mov ebx, dword [eax + ebx]
push 0x1074
push edx
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x5c]
push eax
push 0
push 0
push 0
push 0
push 4
push 0
push edi
call fcn.00594ef6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.0059ad3d
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x14], eax
mov ebx, eax
jmp 0x407601
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407a80
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ac3fb
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x407b98
mov eax, dword [esi + 8]
mov dword [esp + 8], edi
cmp eax, edi
mov dword [esp + 0xc], edi
jle 0x407b98
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor ebx, ebx
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
mov eax, dword [eax + ebx + 4]
push edx
push edi
push 0xf003f
push edi
push 0x679a18
push edi
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x407b2a
lea ecx, [esp + 0x20]
call fcn.00480870
push 1
push str.Cannot_open__create__registry_subkey_during_CBrowsersIntegration::Save__._r_n
lea ecx, [esp + 0x28]
mov dword [esp + 0x23c], edi
call fcn.00480980
lea ecx, [esp + 0x20]
mov dword [esp + 0x234], 0xffffffff
call fcn.00480970
jmp 0x407b70
mov ecx, dword [esi + 4]
xor eax, eax
mov edx, dword [ecx + ebx]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x18]
push 1
push eax
push 0x64f5d0
push edx
call ebp
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 4
push edx
mov ecx, dword [eax + ebx + 8]
mov eax, dword [esp + 0x18]
push 4
push 0
push 0x64f5cc
push eax
mov dword [esp + 0x30], ecx
call ebp
xor edi, edi
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
inc eax
add ebx, 0xc
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x407ac7
mov eax, dword [esp + 0x10]
pop ebp
cmp eax, edi
pop ebx
je 0x407b98
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x228
ret
Function at 0x409db0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp]
push esi
xor esi, esi
push eax
mov eax, dword [ecx + 0x14]
push 1
push esi
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409e05
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.found
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409e05
mov esi, dword [esp + 8]
mov eax, dword [esp + 4]
test eax, eax
je 0x409e14
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4
Function at 0x40b5e0
Capabilities:
Shutdown system
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ac68c
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x12c
test eax, eax
je 0x40b672
push 0
lea ecx, [esp + 0x18]
call fcn.004d6570
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0
call fcn.00596cd3
lea ecx, [esp + 0xe8]
mov dword [esp + 0x134], 3
call fcn.005a2849
lea ecx, [esp + 0xac]
mov byte [esp + 0x134], 2
call fcn.0059547d
lea ecx, [esp + 0x70]
mov byte [esp + 0x134], 1
call fcn.005a2881
lea ecx, [esp + 0x14]
mov dword [esp + 0x134], 0xffffffff
call fcn.00596914
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b6c4
lea ecx, [esp + 8]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]