joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44a750
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477363
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046ad68
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004703fe
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047195d
test eax, eax
je 0x44a86c
mov ecx, dword [esp + 0x3c]
call fcn.0047042b
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x44a830
push edi
mov ecx, esi
call fcn.0046da8f
mov ecx, esi
call fcn.0044a9d0
cmp dword [esp + 0x38], 1
jne 0x44a865
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046dbca
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44d290
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44d2c3
push esi
call fcn.00450380
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44d2bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44d349
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44d332
mov eax, dword [esi + 8]
test eax, eax
je 0x44d2e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44d32e
cmp eax, 2
je 0x44d332
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44d2da
cmp eax, 3
je 0x44d30d
cmp eax, 1
jne 0x44d2da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44d2da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44d2da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044d370
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44d358
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044d370
add esp, 4
pop esi
ret

Function at 0x46bb5e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46bb96
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00469c12
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00469bea
jmp 0x46bba2
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46d24c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46d28e
call fcn.00472d48
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46d28e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46d285
xor eax, eax
jmp 0x46d296
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046d29c
pop edi
pop esi
pop ebx
ret 4

Function at 0x473278
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 0x4732a6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4732c4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004731de
jmp 0x4732c4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4732c4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004731de
test edi, edi
mov eax, edi
jne 0x4732ae
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401955
Capabilities:
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
lea eax, [ebp - 0x104]
push dword [ebp + 8]
xor ebx, ebx
push eax
call fcn.00406fd0
lea eax, [ebp - 0x104]
push eax
call fcn.004070c0
add esp, 0xc
cmp byte [ebp + eax - 0x105], 0x5c
mov edi, 0x426254
je 0x4019b6
lea eax, [ebp - 0x104]
push eax
call fcn.004070c0
cmp byte [ebp + eax - 0x105], 0x2f
pop ecx
je 0x4019b6
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00406fe0
pop ecx
pop ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call fcn.00406fe0
pop ecx
lea eax, [ebp - 0x244]
pop ecx
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4019e9
xor eax, eax
jmp 0x401a9a
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.00406fd0
lea eax, [ebp - 0x104]
push eax
call fcn.004070c0
add esp, 0xc
cmp byte [ebp + eax - 0x105], 0x5c
je 0x401a37
lea eax, [ebp - 0x104]
push eax
call fcn.004070c0
cmp byte [ebp + eax - 0x105], 0x2f
pop ecx
je 0x401a37
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00406fe0
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00406fe0
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfc
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x401a7b
inc ebx
lea eax, [ebp - 0x244]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4019e9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b17
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
mov edi, 0x200
lea eax, [ebp - 0x204]
xor ebx, ebx
push edi
push eax
inc ebx
push 0
jmp 0x401b02
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 4]
call fcn.00401a9f
pop ecx
test eax, eax
pop ecx
je 0x401af6
dec ebx
lea ecx, [ebp - 0x204]
mov eax, ebx
push edi
push ecx
inc ebx
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x401ae0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x401b2a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0xf003f
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b87
lea ecx, [ebp - 0x204]
mov eax, esi
push 0x200
push ecx
push eax
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x401b50
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 1
jne 0x401b87
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
leave
ret

Function at 0x401b8a
Capabilities:
Delete registry key
Get installed programs
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
push edi
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.SOFTWARE_s_s
push eax
call fcn.0040713b
lea eax, [ebp - 0x208]
mov esi, 0x80000002
push eax
push esi
call fcn.00401a9f
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push str.SOFTWARE_s
push eax
call fcn.0040713b
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.00401b2a
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
add esp, 0x2c
lea eax, [ebp - 0x208]
mov dword [ebp - 8], 1
push 0x200
push eax
push 0
mov edi, 0x80000003
jmp 0x401c8d
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x208]
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c7a
push dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push dword [ebp + 8]
push str.SOFTWARE_s_s
push eax
call fcn.0040713b
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 4]
call fcn.00401a9f
push dword [ebp + 8]
lea eax, [ebp - 0x408]
push str.SOFTWARE_s
push eax
call fcn.0040713b
lea eax, [ebp - 0x408]
push eax
push dword [ebp - 4]
call fcn.00401b2a
add esp, 0x2c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
lea ecx, [ebp - 0x208]
push 0x200
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x401c08
mov edi, 0x80000000
push 0x4262e4
push edi
call fcn.00401a9f
push str.HS5.Document
push edi
call fcn.00401a9f
push str.HyperSnap5.License
push edi
call fcn.00401a9f
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0x18
lea eax, [ebp - 4]
mov ebx, 0xf003f
push eax
push ebx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push esi
call edi
test eax, eax
jne 0x401cf4
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths
push esi
call edi
pop edi
pop esi
test eax, eax
pop ebx
jne 0x401d1f
push dword [ebp + 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x401d21
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x41dd30
call fcn.0040699c
sub esp, 0x208
push esi
push 0x426324
push dword [ebp + 8]
call fcn.00406dbc
mov esi, eax
pop ecx
test esi, esi
pop ecx
mov dword [ebp - 0x10], esi
je 0x401ed3
push ebx
push edi
mov edi, 0x200
push esi
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.00407210
add esp, 0xc
test eax, eax
je 0x401ddf
mov ebx, str.Shell_Link:
and byte [ebp - 0x15], 0
lea eax, [ebp - 0x214]
push eax
call fcn.004070c0
pop ecx
lea eax, [ebp + eax - 0x214]
jmp 0x401d92
cmp byte [eax], 0x20
ja 0x401d9c
and byte [eax], 0
dec eax
lea ecx, [ebp - 0x214]
cmp eax, ecx
ja 0x401d89
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.00407190
pop ecx
pop ecx
lea ecx, [ebp - 0x214]
cmp eax, ecx
jne 0x401dca
push ebx
call fcn.004070c0
pop ecx
lea eax, [ebp + eax - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.00407210
add esp, 0xc
test eax, eax
jne 0x401d6f
push 0
push 0
push esi
call fcn.00406cd2
push esi
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.00407210
add esp, 0x18
test eax, eax
je 0x401eca
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ebx, str.Made_Dir:
and byte [ebp - 0x15], 0
lea eax, [ebp - 0x214]
push eax
call fcn.004070c0
pop ecx
lea eax, [ebp + eax - 0x214]
jmp 0x401e30
cmp byte [eax], 0x20
ja 0x401e3a
and byte [eax], 0
dec eax
lea ecx, [ebp - 0x214]
cmp eax, ecx
ja 0x401e27
lea eax, [ebp - 0x214]
push ebx
push eax
call fcn.00407190
pop ecx
pop ecx
lea ecx, [ebp - 0x214]
cmp eax, ecx
jne 0x401eac
push ebx
call fcn.004070c0
pop ecx
lea eax, [ebp + eax - 0x214]
push eax
lea ecx, [ebp + 8]
call fcn.0041948a
and dword [ebp - 4], 0
jmp 0x401e97
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.004039d4
pop ecx
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00419509
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0041941c
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401e70
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041941c
push dword [ebp - 0x10]
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.00407210
add esp, 0xc
test eax, eax
jne 0x401e0d
mov esi, dword [ebp - 0x10]
push esi
call fcn.004069bb
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40262f
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push esi
lea eax, [ebp - 0x310]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [ebp - 0x310]
push 0x426484
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x108]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x20c]
push 0
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, 0x426480
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.004075d0
pop ecx
test eax, eax
pop ecx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
je 0x4026c2
push str.__s_
push eax
call fcn.0040713b
add esp, 0xc
jmp 0x4026ca
push eax
call fcn.00406fd0
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004075d0
pop ecx
pop ecx
pop esi
test eax, eax
je 0x40271a
lea eax, [ebp - 0x108]
push eax
call fcn.004070c0
inc eax
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x107]
push eax
call fcn.00407290
lea eax, [ebp - 0x108]
push 0x426474
push eax
mov byte [ebp - 0x108], 0x22
call fcn.00406fe0
add esp, 0x18
mov eax, dword [0x4264c0]
push 0
neg eax
sbb eax, eax
and eax, 0x426470
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push str._delself
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00407272
add esp, 0x18
leave
ret

Function at 0x40274f
Capabilities:
Delete file
Move file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4000
call fcn.00407610
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x4027df
and byte [ebp - 0x4000], al
push ebx
push esi
push edi
mov edi, str.WININIT.INI
lea eax, [ebp - 0x4000]
push edi
push 0x4000
mov esi, str.rename
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov ebx, eax
push str.NUL
lea eax, [ebp + ebx - 0x4000]
push eax
call fcn.00406fe0
push dword [ebp + 8]
lea eax, [ebp + ebx - 0x4000]
push eax
call fcn.00406fe0
push dword [ebp + 8]
call fcn.004070c0
add eax, ebx
add esp, 0x14
and byte [ebp + eax - 0x3ffb], 0
lea eax, [ebp - 0x4000]
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f3d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x348]
xor edi, edi
push dword [ebp + 0xc]
push str._s_s
push eax
call fcn.0040713b
add esp, 0x10
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x348]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402f83
xor eax, eax
jmp 0x402fcd
lea eax, [ebp - 0x114]
push 0x42611c
push eax
call fcn.00406e80
pop ecx
test eax, eax
pop ecx
je 0x402fb2
lea eax, [ebp - 0x114]
push 0x426118
push eax
call fcn.00406e80
pop ecx
test eax, eax
pop ecx
je 0x402fb2
inc edi
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402f83
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x402fd1
Capabilities:
Check if file exists
Create directory
Enumerate files on windows
Get file attributes

Disassembly:
mov eax, 0x41de60
call fcn.0040699c
sub esp, 0x15c
push esi
push edi
push dword [ebp + 0xc]
xor esi, esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], esi
call fcn.0041948a
push 1
push 0x5c
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call fcn.004148fb
lea eax, [ebp - 0x28]
push 1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00414b88
push dword [ebp - 0x20]
mov eax, dword [eax]
mov byte [ebp - 4], 2
push eax
call fcn.004078e2
pop ecx
test eax, eax
pop ecx
je 0x40307a
push 1
push 0x2f
lea ecx, [ebp - 0x1c]
call fcn.004148fb
lea eax, [ebp - 0x24]
push 1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00414b88
push dword [ebp - 0x1c]
mov eax, dword [eax]
push eax
call fcn.004078e2
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x24]
setne byte [ebp - 0xd]
call fcn.0041941c
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0041941c
cmp byte [ebp - 0xd], 0
je 0x40307a
mov byte [ebp - 0xd], 1
jmp 0x40307e
and byte [ebp - 0xd], 0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0041941c
and byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.0041941c
cmp byte [ebp - 0xd], 0
je 0x4030a9
push 0x426254
lea ecx, [ebp - 0x14]
call fcn.0041976b
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.0041976b
lea eax, [ebp - 0x168]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40311c
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4030e3
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
lea eax, [ebp - 0x13c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00402c6e
add esp, 0x10
test eax, eax
je 0x403112
inc dword [ebp - 0x18]
lea eax, [ebp - 0x168]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4030e3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0041941c
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x403138
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
lea eax, [ebp + 0x10]
push ebx
xor ebx, ebx
push eax
push 0x20019
push ebx
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
mov byte [ebp - 0x10c], bl
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4031a3
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x104
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x14]
mov byte [ebp - 0x10c], bl
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40319a
mov byte [ebp - 0x10c], bl
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call fcn.0041948a
mov eax, dword [ebp + 8]
pop ebx
leave
ret

Function at 0x4031b8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov esi, eax
test esi, esi
jne 0x4031fa
push dword [ebp + 0x14]
call fcn.004070c0
pop ecx
inc eax
push eax
push dword [ebp + 0x14]
push 1
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret

Function at 0x4033ea
Capabilities:
Get common file path

Disassembly:
mov eax, 0x41deef
call fcn.0040699c
sub esp, 0x114
and dword [ebp - 0x18], 0
push esi
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
lea eax, [ebp - 0x10]
push 0x80000002
push eax
call fcn.00403138
xor esi, esi
push 0x429f70
push dword [ebp - 0x10]
inc esi
mov dword [ebp - 4], esi
call fcn.004078e2
add esp, 0x18
test eax, eax
jne 0x403488
lea eax, [ebp - 0x120]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov cl, byte [ebp - 0x120]
lea eax, [ebp - 0x120]
jmp 0x403459
cmp cl, 0x5c
je 0x403462
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x403451
cmp byte [eax], 0x5c
jne 0x403466
and byte [eax + 1], 0
lea eax, [ebp - 0x120]
push str.Program_Files
push eax
call fcn.00406fe0
pop ecx
lea eax, [ebp - 0x120]
pop ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00419559
push ebx
lea eax, [ebp - 0x14]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.00414b88
mov eax, dword [eax]
push 0x426254
push eax
call fcn.004078e2
mov ebx, eax
pop ecx
neg ebx
pop ecx
sbb bl, bl
lea ecx, [ebp - 0x14]
inc bl
call fcn.0041941c
test bl, bl
pop ebx
je 0x4034e7
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 8]
dec eax
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00414c04
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00419509
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0041941c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004191af
mov dword [ebp - 0x18], esi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0041941c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x403585
Capabilities:
Get file version info

Disassembly:
mov eax, 0x41df30
call fcn.0040699c
sub esp, 0xc
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.0041948a
lea eax, [ebp - 0x10]
xor edi, edi
push eax
mov dword [ebp - 4], edi
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov dword [0x42b870], edi
mov dword [0x42b874], edi
mov dword [0x42b878], edi
mov dword [0x42b87c], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
jne 0x4035f5
push str..locked
push str..exe
lea ecx, [ebp + 8]
call fcn.0041496c
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, edi
je 0x40365a
push esi
call fcn.00407a7a
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x403653
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x426254
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0xa]
mov dword [0x42b87c], ecx
mov edx, dword [eax + 8]
mov ecx, 0xffff
and edx, ecx
mov dword [0x42b878], edx
movzx edx, word [eax + 0xe]
mov dword [0x42b874], edx
mov eax, dword [eax + 0xc]
and eax, ecx
mov dword [0x42b870], eax
push edi
call fcn.00407991
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0041941c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret