joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408630
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x350
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x20c]
push edi
mov dword [ebp - 0x350], ebx
mov ecx, ebx
sub edx, ebx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x408660
lea ecx, [ebp - 0x20c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x408674
mov ax, word [0x46dc10]
lea edx, [ebp - 0x108]
mov word [ecx], ax
sub edx, ebx
mov al, byte [0x46dc12]
mov byte [ecx + 2], al
mov ecx, ebx
nop dword [eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4086a0
lea edi, [ebp - 0x108]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4086b4
mov ax, word [0x46c7d0]
mov word [edi], ax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4086f4
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443fa5
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov al, byte [ebp + ecx - 0x108]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x20d], al
test al, al
jne 0x4086f6
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
lea eax, [ebp - 0x34c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x408800
lea eax, [ebp - 0x320]
push 0x46c7cc
push eax
call fcn.00452978
add esp, 8
test eax, eax
je 0x408712
lea eax, [ebp - 0x320]
push 0x46c940
push eax
call fcn.00452978
add esp, 8
test eax, eax
je 0x408712
lea edx, [ebp - 0x320]
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x408760
lea edi, [ebp - 0x108]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408770
mov ecx, edx
lea eax, [ebp - 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test byte [ebp - 0x34c], 0x10
rep movsb byte es:[edi], byte [esi]
push eax
je 0x4087da
call fcn.00408630
add esp, 4
test eax, eax
je 0x40882b
mov esi, dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
lea eax, [ebp - 0x108]
push eax
call esi
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x20c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x109], al
test al, al
jne 0x4087c0
jmp 0x408712
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
je 0x40882b
xor eax, eax
mov cl, byte [ebp + eax - 0x20c]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x109], cl
test cl, cl
jne 0x4087e6
jmp 0x40870c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x12
jne 0x40882b
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 0x350]
call esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00443fa5
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00443fa5
mov esp, ebp
pop ebp
ret
Function at 0x408850
Capabilities:
Create directory
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 0x310]
push edi
mov edi, dword [ebp + 8]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00407d30
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax - 0x20c]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x109], cl
test cl, cl
jne 0x4088a4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionA]
push esi
mov esi, dword [ebp + 0xc]
push esi
push edi
call fcn.00449d78
push 0x46c7d0
push esi
push edi
call fcn.00449dd2
lea eax, [ebp - 0x108]
push eax
push esi
push edi
call fcn.00449dd2
add esp, 0x24
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
push 0x46c7d0
push esi
push edi
call fcn.00449dd2
add esp, 0xc
mov ecx, 0x50fb40
push edi
call fcn.00410410
lea eax, [ebp - 0x20c]
push eax
push esi
push edi
call fcn.00449dd2
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0x46ddac
push 0xb0
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push edi
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
test esi, esi
je 0x40899b
push 0
lea eax, [ebp - 0x318]
push eax
push dword [ebp - 0x314]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443fa5
mov esp, ebp
pop ebp
ret
Function at 0x408de0
Capabilities:
Delete file
Delete registry value
Get common file path
Write file on windows

Disassembly:
mov eax, dword [0x53c604]
mov ecx, 1
cmp dword [0x50ff70], 0
push 0
push 0
push 2
cmovne eax, ecx
mov ecx, 0x50fb50
push 4
push 0x46da14
mov dword [0x53c604], eax
call fcn.004153d0
cmp dword [0x50ff70], 0
je 0x408e40
push 0x46da30
push dword [0x502db0]
call fcn.004403a0
add esp, 8
mov dword [0x50ff60], 1
mov ecx, 0x50fb50
jmp fcn.00411920
push str.Shutdown__System_:_Hotkey_ViolationURL_
push dword [0x502db0]
call fcn.004403a0
add esp, 8
ret
Function at 0x40d010
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
pop ebp
ret
Function at 0x40e7a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.SoftwareITSAutomation
push SysReAllocString
mov esi, ecx
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x1e8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.HandleId
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40e810
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x46defc
push 0x400
push eax
call fcn.00449d78
add esp, 0xc
mov dword [ebp - 0x808], 0x400
lea eax, [ebp - 0x80c]
push eax
push 0x20019
push 0
push 0x46df08
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e936
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e8a6
cmp dword [ebp - 0x808], eax
jne 0x40e8e9
push 0x46df30
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00449d78
add esp, 0xc
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x804]
push 0x46c7cc
push eax
call fcn.00446c80
add esp, 8
test eax, eax
je 0x40e923
inc eax
push 0x46c7cc
push eax
call fcn.00446c80
add esp, 8
test eax, eax
je 0x40e923
mov byte [eax], 0
lea eax, [ebp - 0x804]
push eax
push dword [ebp + 0xc]
push esi
call fcn.00449d78
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 8

Function at 0x40e950
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push 0x46df84
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 8], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x46dfb4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e9b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x80c]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
push ecx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x808], 0x800
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ea4e
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push esi
push edi
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ea42
mov eax, dword [ebp - 0x808]
inc eax
push eax
call fcn.00449f1f
mov ecx, dword [ebp - 0x808]
mov esi, eax
lea eax, [ebp - 0x804]
inc ecx
push eax
push ecx
push esi
call fcn.00449d78
add esp, 0x10
push dword [ebp - 0x80c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 8

Function at 0x40ea70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20119
push 0
push 0x46dfd8
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 8], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0xe4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x46dff8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ead0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push 0x46df38
push SysReAllocString
mov esi, ecx
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 4
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x46df78
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x46df78
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40eb60
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push 0x46de28
push SysReAllocString
mov esi, ecx
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 4
mov dword [ebp - 0x10], 0xa00
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push 0x46de64
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x46de64
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ebe0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push 0x46de74
push SysReAllocString
mov esi, ecx
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 4
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [esi + 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x46deb4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x46deb4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ec70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push 0x46e0f0
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 8], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x1ec]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x46e0ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ecd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push 0x46e090
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 8], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x250]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x46e0ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ed30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push 0x46df84
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 8], 0x64
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x80]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x46dfc8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ed90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
add esi, 4
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xa
push 4
push dword [ebp + 0xc]
push dword [esi]
call fcn.00454190
add esp, 0x10
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40ee00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20006
push 0
push 0x46df38
push SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 4
lea eax, [esi + 8]
push eax
push 4
push 0
push 0x46df78
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ee50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20006
push 0
push 0x46de28
push SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 4
push esi
push 4
push 0
push 0x46de64
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40eea0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x20006
push 0
push 0x46de74
push SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 4
lea eax, [esi + 8]
push eax
push 4
push 0
push 0x46deb4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40eef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push 0x46e008
push SysReAllocString
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 4
lea eax, [esi + 0x18]
push eax
push 4
push 0
push 0x46e04c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ef40
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push 0x46e008
push SysReAllocString
mov esi, ecx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x46e04c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x46e04c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40efc2
mov dword [esi + 0x1e4], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40efd0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push 0x46de74
push SysReAllocString
mov dword [ebp - 8], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x46de74
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push 0x46de98
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x40f050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1854
call fcn.00444240
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.CANDIDATE
push 0xae
push 0
mov dword [ebp - 0x1854], 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
mov dword [ebp - 0x1850], esi
cmp esi, 0x800
jae 0x40f12e
test esi, esi
je 0x40f11a
test edi, edi
je 0x40f0d5
cmp esi, 0x800
ja 0x40f0d5
push esi
lea eax, [ebp - 0x804]
push edi
push eax
call fcn.004465a0
add esp, 0xc
jmp 0x40f11a
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00446b20
add esp, 0xc
test edi, edi
jne 0x40f0fc
call fcn.0044ebfa
mov dword [eax], 0x16
jmp 0x40f10f
cmp esi, 0x800
jbe 0x40f120
call fcn.0044ebfa
mov dword [eax], 0x22
call fcn.0044eb20
mov esi, dword [ebp - 0x1850]
cmp esi, 0x800
jae 0x40f1e8
mov byte [ebp + esi - 0x804], 0
lea eax, [ebp - 0x184c]
push eax
push dword [0x49645c]
push 0x496460
call fcn.00404150
lea eax, [ebp - 0x1850]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.00403da0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40f1d2
lea eax, [ebp - 0x184c]
push eax
lea eax, [ebp - 0x1850]
push eax
push esi
call fcn.00403e70
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40f1cb
mov eax, dword [ebp - 0x1850]
test eax, eax
je 0x40f1c4
push edi
push eax
lea eax, [ebp - 0x804]
mov ecx, 0x53f400
push eax
call fcn.00440cd0
lea eax, [ebp - 0x804]
cmp dword [eax], 0x3a444943
jne 0x40f1c4
lea eax, [ebp - 0x1854]
push eax
lea eax, [ebp - 0x800]
push 0x46c744
push eax
call fcn.00402c50
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1854]
xor ecx, ebp
pop edi
pop esi
call fcn.00443fa5
mov esp, ebp
pop ebp
ret
call fcn.004443c2
int3
Function at 0x40f1f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1854
call fcn.00444240
mov eax, dword [0x4c8578]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.ECMINVERSION
push 0xa5
push 0
mov dword [ebp - 0x1854], 0
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov esi, eax
mov dword [ebp - 0x1850], esi
cmp esi, 0x800
jae 0x40f2d2
test esi, esi
je 0x40f2be
test ebx, ebx
je 0x40f279
cmp esi, 0x800
ja 0x40f279
push esi
lea eax, [ebp - 0x804]
push ebx
push eax
call fcn.004465a0
add esp, 0xc
jmp 0x40f2be
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00446b20
add esp, 0xc
test ebx, ebx
jne 0x40f2a0
call fcn.0044ebfa
mov dword [eax], 0x16
jmp 0x40f2b3
cmp esi, 0x800
jbe 0x40f2c4
call fcn.0044ebfa
mov dword [eax], 0x22
call fcn.0044eb20
mov esi, dword [ebp - 0x1850]
cmp esi, 0x800
jae 0x40f3c4
mov byte [ebp + esi - 0x804], 0
lea eax, [ebp - 0x184c]
push eax
push dword [0x49645c]
push 0x496460
call fcn.00404150
lea eax, [ebp - 0x1850]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.00403da0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x40f3b1
lea eax, [ebp - 0x184c]
push eax
lea eax, [ebp - 0x1850]
push eax
push esi
call fcn.00403e70
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40f3a8
mov eax, dword [ebp - 0x1850]
test eax, eax
je 0x40f39d
push ebx
push eax
lea eax, [ebp - 0x804]
mov ecx, 0x53f400
push eax
call fcn.00440cd0
lea ecx, [ebp - 0x804]
mov eax, 0x494d4345
cmp eax, dword [ecx]
jne 0x40f39d
mov eax, 0x5245564e
cmp eax, dword [ecx + 4]
jne 0x40f39d
mov eax, 0x3a
cmp al, byte [ecx + 8]
jne 0x40f39d
lea eax, [ebp - 0x1854]
push eax
lea eax, [ebp - 0x7fb]
push 0x46c744
push eax
call fcn.00402c50
lea ecx, [ebp - 0x7fb]
add esp, 0xc
mov eax, ecx
sub edi, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edi + ecx - 1], al
test al, al
jne 0x40f390
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_GlobalFree]
call ebx
jmp 0x40f3ae
mov ebx, dword [sym.imp.KERNEL32.DLL_GlobalFree]
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00443fa5
mov esp, ebp
pop ebp
ret 4
call fcn.004443c2
int3