joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404300
Capabilities:
Get common file path
Get disk information
Get memory capacity
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x48f698]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x48f69c]
push esi
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.004042f0
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x48f6a0]
mov edx, dword [0x48f6a4]
add edi, 0x23f
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea esp, [esp]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x496e24]
shl esi, 4
add esi, dword [ebp - 0x18]
cmp eax, 0xfa9
jne 0x40438c
mov dword [0x496e20], 0xedeb2e40
jmp 0x4043a7
cmp eax, 0x3eb
jne 0x4043a7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x4968b0], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x496e24], 0x9e6
mov dword [0x496e1c], 0xf4ea3dee
jne 0x4043de
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
xor dword [ebp - 4], esi
cmp dword [0x496e24], 0x213
jne 0x404464
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
lea eax, [ebp - 0x4c0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
lea ecx, [ebp - 0xcc0]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x496e24], 0xc
jne 0x404478
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, ebx
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
add dword [ebp - 4], eax
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x1c]
lea ecx, [edi + ebx]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x404360
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4044d0
Capabilities:
Set file attributes
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x496e24]
mov ecx, dword [0x4968b4]
shr eax, 3
sub esp, 0xc08
test eax, eax
jbe 0x4045ca
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0x496e24], 0x959
jne 0x4045b0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0xc08]
push eax
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea ecx, [ebp - 0x408]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 4]
push edx
call fcn.00404300
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404510
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408020
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48e530]
jne 0x40802a
repz ret
jmp fcn.0040dd4e

Function at 0x40d975
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004091be
and dword [ebp - 4], 0
cmp dword [0x49489c], 0
mov ebx, eax
jne 0x40da26
push 0x401d74
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40dad7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401d68
push edi
call esi
test eax, eax
je 0x40dad7
push eax
call fcn.0040914c
mov dword [esp], 0x401d58
push edi
mov dword [0x49489c], eax
call esi
push eax
call fcn.0040914c
mov dword [esp], 0x401d44
push edi
mov dword [0x4948a0], eax
call esi
push eax
call fcn.0040914c
mov dword [esp], 0x401d28
push edi
mov dword [0x4948a4], eax
call esi
push eax
call fcn.0040914c
pop ecx
mov dword [0x4948ac], eax
test eax, eax
je 0x40da26
push 0x401d10
push edi
call esi
push eax
call fcn.0040914c
pop ecx
mov dword [0x4948a8], eax
mov eax, dword [0x4948a8]
cmp eax, ebx
je 0x40da7e
cmp dword [0x4948ac], ebx
je 0x40da7e
push eax
call fcn.004091c7
push dword [0x4948ac]
mov esi, eax
call fcn.004091c7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40da7e
test edi, edi
je 0x40da7e
call esi
test eax, eax
je 0x40da75
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40da75
test byte [ebp - 0xc], 1
jne 0x40da7e
or dword [ebp + 0x10], 0x200000
jmp 0x40dab7
mov eax, dword [0x4948a0]
cmp eax, ebx
je 0x40dab7
push eax
call fcn.004091c7
pop ecx
test eax, eax
je 0x40dab7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40dab7
mov eax, dword [0x4948a4]
cmp eax, ebx
je 0x40dab7
push eax
call fcn.004091c7
pop ecx
test eax, eax
je 0x40dab7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49489c]
call fcn.004091c7
pop ecx
test eax, eax
je 0x40dad7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40dad9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401750
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x42aa69
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
call fcn.00429170
lea edi, [esi + 0x74]
xor ebp, ebp
push 0xa
mov ecx, edi
mov dword [esp + 0x28], ebp
call fcn.0041faf0
mov dword [edi], method.CPtrList.virtual_0
mov eax, dword [0x43b340]
lea edi, [esi + 0x94]
mov dword [edi], eax
push str.Personal
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
mov dword [esi], 0x42e678
mov dword [esi + 0x6c], ebp
mov dword [esi + 0x70], ebp
mov dword [esi + 0x90], ebp
call fcn.0042432b
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 3
call fcn.0042432b
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
lea eax, [esp + 0x1c]
push 0x80000001
push eax
mov ecx, esi
mov byte [esp + 0x34], 4
call fcn.00402740
push eax
mov ecx, edi
mov byte [esp + 0x28], 5
call fcn.004243aa
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 4
call fcn.004242bd
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call fcn.004242bd
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.004242bd
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x402600
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push 4
mov dword [esp + 0x14], ebx
call fcn.00423ffe
mov ecx, dword [esp + 0x24]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x24]
push esi
push 0x20019
mov eax, dword [eax]
push ebx
push eax
push ecx
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x402718
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebp
push 0x104
push 0x40
call esi
push 0x104
push 0x40
mov ebx, eax
call esi
mov dword [esp + 0x28], eax
xor ebp, ebp
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x20]
mov eax, 0x104
push ecx
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
push 0
mov eax, ebp
push ecx
push ebx
push eax
mov eax, dword [edx]
inc ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, eax
test edi, edi
jne 0x4026f2
mov eax, dword [esp + 0x1c]
cmp eax, 4
je 0x4026ae
cmp eax, 5
je 0x4026ae
cmp eax, 3
jne 0x402660
mov ecx, dword [esp + 0x2c]
mov esi, ebx
mov eax, dword [ecx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4026da
test cl, cl
je 0x4026d6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4026da
add eax, 2
add esi, 2
test cl, cl
jne 0x4026b6
xor eax, eax
jmp 0x4026df
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402660
mov eax, dword [esp + 0x28]
movsx ecx, byte [eax]
mov dword [esp + 0x14], ecx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call esi
mov edx, dword [esp + 0x28]
push edx
call esi
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
pop ebp
push esi
call fcn.00424027
add esp, 4
test edi, edi
je 0x40272a
call fcn.00427765
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x10
ret 0xc
Function at 0x402740
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42ac1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x43c828
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebp
call fcn.0042432b
mov ebx, 1
push 4
mov dword [esp + 0x30], ebx
call fcn.00423ffe
mov ecx, dword [esp + 0x3c]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x3c]
push esi
push 0x20019
mov eax, dword [eax]
push ebp
push eax
push ecx
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
cmp edi, ebp
jne 0x40287c
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x104
push 0x40
call esi
push 0x104
push 0x40
mov ebx, eax
call esi
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x24]
mov eax, 0x104
push ecx
push edx
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x44], eax
push 0
mov eax, ebp
push ecx
push ebx
push eax
mov eax, dword [edx]
inc ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, eax
test edi, edi
jne 0x402856
mov eax, dword [esp + 0x20]
cmp eax, 1
je 0x402813
cmp eax, 2
jne 0x4027ca
mov ecx, dword [esp + 0x40]
mov esi, ebx
mov eax, dword [ecx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40283f
test cl, cl
je 0x40283b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40283f
add eax, 2
add esi, 2
test cl, cl
jne 0x40281b
xor eax, eax
jmp 0x402844
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4027ca
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x10]
push eax
call fcn.004243fa
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call esi
mov ecx, dword [esp + 0x3c]
push ecx
call esi
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x14]
mov ebx, 1
push esi
call fcn.00424027
add esp, 4
test edi, edi
je 0x40289f
mov esi, dword [esp + 0x34]
push 0x43c824
mov ecx, esi
call fcn.0042432b
mov dword [esp + 0x18], ebx
jmp 0x4028b3
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00424032
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.004242bd
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10

Function at 0x4028e0
Capabilities:
Set registry value

Disassembly:
push esi
push 4
call fcn.00423ffe
add esp, 4
mov ecx, dword [esp + 8]
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push esi
mov eax, dword [eax]
push 0
push 0xf003f
push 0
push str.String
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40293a
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov edx, dword [esp + 0x10]
mov ecx, dword [eax - 8]
mov edx, dword [edx]
inc ecx
push ecx
push eax
mov eax, dword [esi]
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402948
push 0
push 0x30
push str.Unable_to_write_to_the_registry.
call fcn.004281b5
push esi
call fcn.00424027
add esp, 4
pop esi
ret 0x10
Function at 0x402960
Capabilities:
Delete registry value

Disassembly:
push esi
push edi
push 4
call fcn.00423ffe
mov ecx, dword [esp + 0x10]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
push esi
push 2
mov eax, dword [eax]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x4029a6
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esi]
mov edi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00424027
add esp, 4
test edi, edi
pop edi
pop esi
je 0x4029ba
call fcn.00427765
ret 0xc

Function at 0x4029c0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebx
push ebp
push esi
push edi
push 4
call fcn.00423ffe
mov ecx, dword [esp + 0x18]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x18]
push esi
push 0x2001b
mov eax, dword [eax]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebp, eax
test ebp, ebp
je 0x4029fe
push esi
call fcn.00424027
add esp, 4
call fcn.00427765
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x105
push 0x40
call ebx
push 0x105
push 0x40
mov edi, eax
call ebx
test ebp, ebp
mov ebx, eax
jne 0x402a61
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, dword [esi]
lea edx, [esp + 0x18]
mov eax, 0x104
push edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
push 0
lea eax, [esp + 0x20]
push 0
push eax
push edi
push 0
push ecx
call ebp
cmp eax, 0x103
je 0x402a61
test eax, eax
jne 0x402a61
mov edx, dword [esi]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x402a24
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
push ebx
call edi
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00424027
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x405790
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], esp
push 4
call fcn.00423ffe
add esp, 4
mov esi, eax
mov ebx, esi
push esi
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsCacheExtensible_Cache
push 0x80000001
mov dword [ebp - 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4057fb
push esi
call fcn.00424027
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x43b340]
mov dword [ebp - 0x14], eax
push 0x104
push 0x40
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push 8
mov dword [ebp - 0x38], edi
call fcn.00423ffe
add esp, 4
mov dword [ebp - 0x28], eax
xor esi, esi
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0x2c]
push ecx
push 0
push 0
push 0
mov eax, esi
push edx
push edi
push eax
mov eax, dword [ebx]
inc esi
push eax
mov dword [ebp - 0x2c], 0x104
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x405923
push str.CachePath
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0042432b
push edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0042432b
mov eax, dword [ebx]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x18]
push ecx
push edx
lea ecx, [ebp - 0x30]
push eax
push ecx
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.00402740
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004243aa
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.004242bd
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.004242bd
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.004242bd
mov edx, dword [ebp - 0x14]
mov eax, dword [edx - 8]
test eax, eax
je 0x405917
push 0x4392d0
lea ecx, [ebp - 0x24]
call fcn.0042432b
lea eax, [ebp - 0x24]
push 0
lea ecx, [ebp - 0x14]
push eax
push ecx
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00401e50
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004242bd
mov dword [ebp - 4], 0
jmp 0x40582b
mov dword [ebp - 4], 0
jmp 0x40582b
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp - 0x28]
push edx
call fcn.00424027
mov eax, dword [ebx]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00424027
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.004242bd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409fe0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42bf56
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
mov esi, ecx
mov ecx, dword [esi + 0x9c]
push edi
lea eax, [esi + 0x9c]
mov edx, dword [ecx - 8]
test edx, edx
je 0x40a0ce
mov edi, dword [esi + 0xa0]
mov ecx, dword [edi - 8]
test ecx, ecx
je 0x40a0ce
push str.opera.adr
lea edx, [esp + 0xc]
push eax
push edx
call fcn.00424506
mov eax, dword [eax]
push edi
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push str.HOT_LIST_FILE
push str.USER_PREFS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 8]
mov edi, eax
call fcn.004242bd
test edi, edi
je 0x40a0ce
push str.Deleting_Opera_bookmarks
lea ecx, [esp + 0xc]
call fcn.0042432b
or edi, 0xffffffff
mov ecx, esi
push edi
push eax
mov dword [esp + 0x128], 0
call fcn.00402b50
lea ecx, [esp + 8]
mov dword [esp + 0x120], edi
call fcn.004242bd
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
call fcn.0042432b
lea eax, [esp + 0xc]
mov ecx, esi
push eax
mov dword [esp + 0x124], 1
call fcn.004018e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], edi
call fcn.004242bd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x409ffb
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42bf56
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
mov esi, ecx
mov ecx, dword [esi + 0x9c]
push edi
lea eax, [esi + 0x9c]
mov edx, dword [ecx - 8]
test edx, edx
je 0x40a0ce
mov edi, dword [esi + 0xa0]
mov ecx, dword [edi - 8]
test ecx, ecx
je 0x40a0ce
push str.opera.adr
lea edx, [esp + 0xc]
push eax
push edx
call fcn.00424506
mov eax, dword [eax]
push edi
lea ecx, [esp + 0x14]
push 0x104
push ecx
push eax
push str.HOT_LIST_FILE
push str.USER_PREFS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 8]
mov edi, eax
call fcn.004242bd
test edi, edi
je 0x40a0ce
push str.Deleting_Opera_bookmarks
lea ecx, [esp + 0xc]
call fcn.0042432b
or edi, 0xffffffff
mov ecx, esi
push edi
push eax
mov dword [esp + 0x128], 0
call fcn.00402b50
lea ecx, [esp + 8]
mov dword [esp + 0x120], edi
call fcn.004242bd
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
call fcn.0042432b
lea eax, [esp + 0xc]
mov ecx, esi
push eax
mov dword [esp + 0x124], 1
call fcn.004018e0
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], edi
call fcn.004242bd
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x40a360
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42c017
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
mov eax, dword [esp + 0x12c]
push ebp
push edi
mov edi, ecx
mov ecx, dword [esp + 0x130]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x20], edi
call fcn.004098f0
mov edx, dword [edi + 0xa0]
lea ebp, [edi + 0xa0]
mov dword [edi], 0x42ed2c
mov dword [esp + 0x128], 0
mov eax, dword [edx - 8]
test eax, eax
jne 0x40a509
push 0x43c824
lea ecx, [esp + 0x14]
call fcn.0042432b
lea eax, [esp + 0x1c]
push 0x104
push eax
mov byte [esp + 0x130], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40a41d
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
call fcn.0042432b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x12c], 2
call fcn.004243aa
lea ecx, [esp + 0xc]
mov byte [esp + 0x128], 1
call fcn.004242bd
push ebx
lea edx, [esp + 0x14]
push esi
push edx
lea ecx, [esp + 0x14]
call fcn.00424032
push 1
push 0x5c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x138], 3
call fcn.0041ef90
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 4
call fcn.0041f0df
mov esi, dword [esp + 0x14]
mov eax, dword [eax]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40a488
test cl, cl
je 0x40a484
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40a488
add eax, 2
add esi, 2
test cl, cl
jne 0x40a460
xor eax, eax
jmp 0x40a48d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea ecx, [esp + 0x1c]
setne bl
call fcn.004242bd
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 3
call fcn.004242bd
pop esi
test bl, bl
pop ebx
je 0x40a4bd
push 0x5c
lea ecx, [esp + 0xc]
call fcn.00424674
push str.opera.ini
lea ecx, [esp + 0xc]
call fcn.0042464d
lea eax, [esp + 8]
mov ecx, edi
push eax
call fcn.00402b10
test al, al
je 0x40a4e7
lea ecx, [esp + 8]
push ecx
mov ecx, ebp
call fcn.004243aa
lea ecx, [esp + 8]
mov byte [esp + 0x128], 1
call fcn.004242bd
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 0
call fcn.004242bd
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x124
ret 8