joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408514
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
mov dword [esi + 0x70], 0x4143c8
mov dword [0x4156c0], esi
push dword [ebp + 8]
mov dword [esi], 0x84
mov dword [esi + 0x64], 0x300
push esi
call fcn.004095af
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x408561
push 0x10
push dword [ebp + 0x10]
push 0x4156b0
call fcn.00410940
add esp, 0xc
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov edi, 0x94
mov dword [esi + 0x18], eax
push edi
lea eax, [ebp - 0xb8]
push ebx
push eax
call fcn.004108c0
add esp, 0xc
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0xa8], 2
jne 0x4085b2
cmp dword [ebp - 0xb4], 5
jae 0x408608
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x408608
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, 0x80000000
jne 0x4085d4
shr dword [esi + 0x74], 1
shl eax, 1
inc ecx
cmp ecx, 0x20
jl 0x4085c2
shr dword [esi + 0x74], 1
mov eax, dword [esi + 0x74]
lea eax, [eax*4 + 4]
push eax
push ebx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x78], eax
xor edi, edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [esi + 0x78]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x74]
jbe 0x4085f1
jmp 0x40860e
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x408ecc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.00401c42
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov ecx, ebx
call fcn.004048ca
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x408f02
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.00401b39
push 0x5c
inc esi
pop edi
mov dword [ebp + 8], edi
push esi
lea eax, [ebp + 8]
push 1
push eax
mov ecx, ebx
call fcn.004043ac
cmp dword [0x4123d0], eax
je 0x408f6d
lea esi, [eax + 1]
push 0
push esi
push 0
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x412314
mov dword [ebp - 8], 0x41231c
call fcn.004055bf
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x412310
call fcn.00401f9d
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
call fcn.00401b39
mov dword [ebp + 8], edi
jmp 0x408f11
lea ecx, [ebp - 0x38]
call fcn.00401d80
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40987a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, SysStringLen
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x4098cf
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x4155f0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40992a
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x409904
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp dword [ebp - 8], edi
je 0x409912
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x40992c
cmp dword [ebp - 4], edi
je 0x409924
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 0x409
jmp 0x409949
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040cf80
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x409946
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a097
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x10]
push edi
mov eax, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
shr eax, 4
inc eax
and ecx, 0xf
movzx edi, ax
mov ax, word [esi + 0xc]
mov ebp, ecx
push eax
push edi
push 6
push dword [esi]
call ebx
test eax, eax
jne 0x40a0eb
mov ax, word [esi + 0xc]
and ax, 0x3ff
or ah, 4
push eax
push edi
push 6
push dword [esi]
call ebx
test eax, eax
jne 0x40a0eb
push 6
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a11a
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a11a
xor ecx, ecx
mov ax, word [edi]
test ax, ax
je 0x40a112
inc edi
inc edi
cmp ecx, ebp
movzx eax, ax
je 0x40a123
lea edi, [edi + eax*2]
jmp 0x40a114
inc edi
inc edi
inc ecx
cmp ecx, 0x10
jl 0x40a0fc
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov ebp, dword [esp + 0x18]
lea esi, [edi + eax*2]
movzx ebx, word [esi]
and word [esi], 0
push dword [ebp + 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp + 0x10], eax
mov word [esi], bx
mov al, 1
jmp 0x40a11c
Function at 0x40a97b
Capabilities:
Create directory
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
and byte [ebp - 0x188], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x187]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x4c]
push eax
call fcn.004047b1
mov ebx, 0x412314
mov edi, 0x41231c
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.00403adb
mov esi, 0x412310
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x20], esi
call fcn.00401b39
lea ecx, [ebp - 0x20]
call fcn.00401f9d
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], 0x104
call fcn.00401f9d
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x30], eax
call fcn.00401f9d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x68]
push eax
call fcn.004047b1
mov ecx, eax
mov dword [ebp - 4], ecx
call fcn.00401f9d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x84]
push eax
call fcn.00404887
mov ecx, eax
mov dword [ebp + 0xc], ecx
call fcn.00401f9d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00404887
mov ecx, eax
mov dword [ebp + 0xc], ecx
call fcn.00401f9d
lea ecx, [ebp - 0x28]
mov eax, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x188]
push ecx
mov eax, dword [eax + 4]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 4]
push dword [ebp - 0x24]
push eax
push 0
call sub.VERSION.dll_VerInstallFileA
lea ecx, [ebp - 0x4c]
mov dword [ebp + 0xc], eax
call fcn.00401b39
lea ecx, [ebp - 0x84]
call fcn.00401b39
lea ecx, [ebp - 0x68]
call fcn.00401b39
mov eax, dword [ebp + 0xc]
test al, 1
je 0x40aaff
lea eax, [ebp - 0x188]
push 0
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], edi
call fcn.00403a6c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00404ce8
mov esi, eax
add esp, 0xc
mov ecx, esi
call fcn.00401f9d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x68]
call fcn.00401b39
lea ecx, [ebp - 0x4c]
call fcn.00401b39
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40ab47
test al, 4
jne 0x40ab47
test al, 0x80
mov esi, eax
jne 0x40ab12
test ah, 4
je 0x40ab15
push 0x20
pop esi
test ah, 2
je 0x40ab1d
push 5
pop esi
test ah, 1
je 0x40ab25
push 0x70
pop esi
lea ecx, [ebp - 0x20]
call fcn.00401f9d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x20]
call fcn.00401b39
mov eax, 0xfffff830
sub eax, esi
jmp 0x40ab64
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00401f9d
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call fcn.00401b39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40ab6b
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and byte [ebp - 0x10c], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
and byte [ebx], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00401f9d
push dword [esi + 4]
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp + 8], eax
jne 0x40abc9
mov al, 1
jmp 0x40ac3f
push eax
lea ecx, [ebp + 0x10]
call fcn.0040ac46
push dword [ebp + 0x10]
lea eax, [ebp - 0x10c]
push dword [ebp + 8]
push dword [ebp - 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x40abef
mov bl, 1
jmp 0x40ac35
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x41467c
push dword [ebp + 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40abeb
mov edx, dword [ebp - 4]
xor ecx, ecx
xor esi, esi
mov eax, dword [edx + 8]
mov edx, dword [edx + 0xc]
or ecx, edx
mov edx, dword [ebp + 0xc]
or eax, esi
cmp ecx, dword [edx]
jne 0x40ac28
cmp eax, dword [edx + 4]
jne 0x40ac2b
mov byte [ebx], 1
cmp eax, dword [edx + 4]
ja 0x40ac33
jb 0x40abeb
cmp ecx, dword [edx]
jb 0x40abeb
xor bl, bl
lea ecx, [ebp + 0x10]
call fcn.0040ac5b
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40ac64
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
or dword [ebp - 0xc], 0xffffffff
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x14], ecx
push esi
push esi
push 0x8003
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.0040fc7c
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00401f9d
push dword [edi + 4]
call fcn.00410692
pop ecx
mov dword [ebp + 8], eax
mov ecx, edi
call fcn.00401f9d
mov edi, dword [edi + 4]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp dword [ebp - 0xc], edi
je 0x40acd4
lea ecx, [ebp - 0xc]
call fcn.0040ba4e
mov dword [ebp - 0xc], edi
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, dword [ebp + 8]
ja 0x40ad08
lea ecx, [ebp - 0x78]
call fcn.0040fe12
lea ecx, [ebp - 8]
call fcn.0040f60a
lea ecx, [ebp - 4]
call fcn.00405685
lea ecx, [ebp - 0xc]
call fcn.0040ba4e
jmp 0x40adc6
push esi
push esi
push esi
push 2
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp dword [ebp - 4], edi
je 0x40ad31
cmp dword [ebp - 4], esi
je 0x40ad2e
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], edi
push esi
push esi
push esi
push 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
je 0x40ad5d
cmp eax, esi
je 0x40ad57
push eax
call edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
push 1
add eax, ecx
push esi
push eax
lea ecx, [ebp - 0x78]
call fcn.004100db
test al, al
je 0x40ad84
push dword [ebp + 8]
lea ecx, [ebp - 0x78]
push dword [ebp - 8]
call fcn.0041027b
test al, al
jne 0x40ad89
lea ecx, [ebp - 0x78]
jmp 0x40ad9c
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x78]
push eax
call fcn.0040ae00
test eax, eax
lea ecx, [ebp - 0x78]
jne 0x40adcd
call fcn.0040fe12
cmp dword [ebp - 8], esi
je 0x40adae
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x40adbb
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x40adc6
push dword [ebp - 0xc]
call ebx
mov eax, 0x80090006
jmp 0x40adf9
call fcn.0040fe12
cmp dword [ebp - 8], esi
je 0x40addf
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
cmp dword [ebp - 4], esi
je 0x40adec
push dword [ebp - 4]
call ebx
mov dword [ebp - 4], esi
cmp dword [ebp - 0xc], 0xffffffff
je 0x40adf7
push dword [ebp - 0xc]
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40ae00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push str.PUBLICKEY
push 0x74
push dword [0x415614]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [0x415614]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
push dword [0x415614]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0xc]
push 0
push edi
push eax
call fcn.0041004c
pop edi
pop esi
test al, al
jne 0x40ae51
xor eax, eax
jmp 0x40ae60
mov ecx, dword [esp + 4]
call fcn.00410249
neg al
sbb eax, eax
neg eax
ret 4

Function at 0x40af7f
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.00401c42
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov ecx, ebx
call fcn.004048ca
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x40afb5
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.00401b39
push 0x5c
inc esi
pop edi
mov dword [ebp + 8], edi
push esi
lea eax, [ebp + 8]
push 1
push eax
mov ecx, ebx
call fcn.004043ac
cmp dword [0x4123d0], eax
je 0x40b020
lea esi, [eax + 1]
push 0
push esi
push 0
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x412314
mov dword [ebp - 8], 0x41231c
call fcn.004055bf
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x412310
call fcn.00401f9d
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
call fcn.00401b39
mov dword [ebp + 8], edi
jmp 0x40afc4
lea ecx, [ebp - 0x38]
call fcn.00401d80
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40b234
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0xc], ecx
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x40b25a
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x40b261
xor eax, eax
jmp 0x40b3dc
push 0x41494c
mov dword [ebp - 4], ebx
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x41418c
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.00404e5d
mov eax, dword [ebp - 0x50]
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40b292
xor esi, esi
jmp 0x40b2be
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.00410c80
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x1bc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40b350
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test byte [ebp - 0x1bc], 0x10
je 0x40b33e
test byte [ebp - 0x1bc], 2
jne 0x40b33e
lea eax, [ebp - 0x190]
push 0x414188
push eax
call esi
test eax, eax
je 0x40b33e
lea eax, [ebp - 0x190]
push 0x414184
push eax
call esi
test eax, eax
je 0x40b33e
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x190]
push eax
call fcn.0040b3e9
cmp eax, dword [ebp - 4]
jle 0x40b33e
mov dword [ebp - 4], eax
lea eax, [ebp - 0x190]
push eax
push 0x41469c
push dword [ebp + 0x10]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x1bc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b2d9
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], ebx
je 0x40b3d1
push ebx
lea ecx, [ebp - 0x28]
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], 0x412314
mov dword [ebp - 0x14], 0x41231c
call fcn.00403a6c
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x412310
push eax
lea eax, [ebp - 0x7c]
push dword [ebp + 8]
push eax
call fcn.00404ce8
add esp, 0xc
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00404ce8
add esp, 0xc
lea ecx, [ebp - 0x7c]
call fcn.00401b39
lea ecx, [ebp - 0x28]
call fcn.00401b39
lea ecx, [ebp - 0x44]
call fcn.00401f9d
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b3c9
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x44]
call fcn.00401b39
lea ecx, [ebp - 0x60]
call fcn.00401b39
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x1c8]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40b440
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push str.ispro7
push dword [ebp + 8]
lea eax, [ebp - 0x1c]
mov esi, ecx
push eax
call fcn.00404e5d
add esp, 0xc
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004045e8
push dword [ebp + 8]
mov ecx, esi
call fcn.0040a3f4
test eax, eax
je 0x40b481
mov esi, 0xffffe88a
jmp 0x40b51c
lea eax, [ebp - 0x1c]
push eax
call fcn.0040af7f
lea eax, [esi + 0xc4]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.00404ce8
lea eax, [esi + 0xa8]
push eax
lea eax, [ebp - 0x38]
push dword [ebp + 8]
push eax
call fcn.00404ce8
add esp, 0x1c
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040a97b
test eax, eax
lea ecx, [ebp - 0x38]
je 0x40b4f0
call fcn.00401f9d
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1c]
call fcn.00401f9d
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, 0xffffe88b
jmp 0x40b50c
call fcn.00401f9d
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
call fcn.00401bcb
xor esi, esi
lea ecx, [ebp - 0x38]
call fcn.00401b39
lea ecx, [ebp - 0x54]
call fcn.00401b39
lea ecx, [ebp - 0x1c]
call fcn.00401b39
mov eax, esi
pop esi
leave
ret 8
Function at 0x40c411
Capabilities:
Check if file exists
Check os version
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
and byte [ebp - 0x224], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x223]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x120]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x120], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40c549
cmp dword [ebp - 0x110], 2
jne 0x40c549
cmp dword [ebp - 0x11c], 5
jb 0x40c549
cmp dword [ebp + 0xc], 1
jne 0x40c47b
push 0x2b
jmp 0x40c482
cmp dword [ebp + 0xc], esi
jne 0x40c494
push 0x26
push dword [ebp + 8]
call fcn.0040c000
mov eax, dword [ebp + 8]
pop ecx
pop ecx
jmp 0x40c64e
cmp byte [ebp - 0x224], 0
je 0x40c4da
lea eax, [ebp - 0x224]
mov edi, 0x41231c
push esi
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x412314
mov dword [ebp - 0x28], edi
call fcn.00403a6c
mov esi, 0x412310
push 0x4141a4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 1
call fcn.004049b4
jmp 0x40c50b
lea eax, [ebp - 0x224]
mov edi, 0x41231c
push esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x412314
mov dword [ebp - 0xc], edi
call fcn.00403a6c
mov esi, 0x412310
mov dword [ebp - 4], 2
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x412314
mov dword [ecx + 0x14], edi
call fcn.00403adb
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x40c537
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x20]
call fcn.00401b39
test byte [ebp - 4], 1
je 0x40c64c
lea ecx, [ebp - 0x3c]
jmp 0x40c647
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.0040c86d
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
call fcn.00401f9d
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40c5a0
lea eax, [ebp - 0x64]
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00404416
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
jne 0x40c587
xor edi, edi
jmp 0x40c590
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edi, eax
lea ecx, [ebp - 0x64]
call fcn.00401b39
cmp edi, esi
jne 0x40c621
mov eax, dword [ebp + 0xc]
sub eax, esi
je 0x40c5dd
dec eax
jne 0x40c621
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0040c411
pop ecx
pop ecx
mov ecx, eax
call fcn.0040c652
push eax
lea ecx, [ebp - 0x20]
call fcn.00401bcb
lea ecx, [ebp - 0x3c]
call fcn.00401b39
push str.Common_Files_
lea ecx, [ebp - 0x20]
call fcn.004049b4
jmp 0x40c621
lea eax, [ebp - 0x8c]
push esi
push eax
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.004041db
pop ecx
pop ecx
mov ecx, eax
call fcn.00404416
push eax
lea ecx, [ebp - 0x20]
call fcn.00401bcb
lea ecx, [ebp - 0x8c]
call fcn.00401b39
lea ecx, [ebp - 0x58]
call fcn.00401b39
push str.Program_Files_
lea ecx, [ebp - 0x20]
call fcn.0040c7d5
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push esi
push eax
mov ecx, edi
mov dword [edi + 0xc], 0x412314
mov dword [edi + 0x14], 0x41231c
call fcn.00403adb
mov dword [edi], 0x412310
lea ecx, [ebp - 0x20]
call fcn.00401b39
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x40c86d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
and byte [ebp - 0x148], 0
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x147]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
xor esi, esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40c946
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0x28], 0x104
mov eax, str.CommonFilesDir
je 0x40c8c8
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x148]
push ecx
push esi
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x148]
mov ebx, 0x412314
mov edi, 0x41231c
push esi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
call fcn.00403a6c
mov esi, 0x412310
push 0x4141a4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], esi
call fcn.004049b4
lea ecx, [ebp - 0x24]
call fcn.0040c9f7
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00403adb
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x24]
mov dword [edi], esi
jmp 0x40c9eb
cmp byte [ebp - 0x148], 0
mov ebx, 0x412314
je 0x40c98d
lea eax, [ebp - 0x148]
mov edi, 0x41231c
push esi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], edi
call fcn.00403a6c
mov esi, 0x412310
push 0x4141a4
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 1
call fcn.004049b4
jmp 0x40c9ba
lea eax, [ebp - 0x148]
mov edi, 0x41231c
push esi
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], edi
call fcn.00403a6c
mov esi, 0x412310
mov dword [ebp - 4], 2
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x24]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x14], edi
call fcn.00403adb
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x40c9e2
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x24]
call fcn.00401b39
test byte [ebp - 4], 1
je 0x40c9f0
lea ecx, [ebp - 0x44]
call fcn.00401b39
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret