joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e6f
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push dword [0x414200]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea ecx, [ebp - 0x10]
push 0x2710
push eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], bl
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
neg eax
sbb al, al
mov dword [ebp - 4], ebx
inc al
mov byte [ebp - 0xc], al
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.ole32.dll_GetRunningObjectTable]
test eax, eax
jl 0x404ec5
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
cmp eax, ebx
pop ebx
je 0x404ed3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 8]
call fcn.0040539f
lea ecx, [ebp - 0x10]
call fcn.00405c08
leave
ret

Function at 0x4064fc
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x88], eax
jne 0x40651b
xor al, al
jmp 0x40653e
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x406542
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor ecx, ecx
cmp eax, edi
setne cl
mov dword [esi + 0x90], eax
mov al, cl
pop edi
pop esi
pop ecx
ret

Function at 0x40666c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
lea eax, [ebp - 4]
xor esi, esi
mov ecx, dword [ecx]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x4066a0
mov edi, dword [ebp - 4]
xor eax, eax
cmp eax, esi
mov ebx, eax
jne 0x4066c3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push 1
push esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
cmp edi, esi
je 0x4066ce
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc
Function at 0x40697c
Capabilities:
Delete directory
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
push esi
xor eax, eax
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x18]
push str.File_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x154]
mov ebx, 0x415580
push dword [ebp + 8]
mov esi, str.Files
push 0x104
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
push esi
call edi
test eax, eax
je 0x406a34
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406a05
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406a05
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0x64
jge 0x406a05
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4069ce
inc dword [ebp - 4]
lea eax, [ebp - 0x18]
push dword [ebp - 4]
push str.File_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x154]
push dword [ebp + 8]
push 0x104
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
push esi
jmp 0x4069c8
push dword [ebp + 8]
push 0
push str.FolderCount
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
dec eax
mov dword [ebp - 4], eax
js 0x406aa9
jmp 0x406a50
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push str.Folder_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x154]
push dword [ebp + 8]
push 0x104
push eax
lea eax, [ebp - 0x18]
push ebx
push eax
push esi
call edi
test eax, eax
je 0x406aa9
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406aa4
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
cmp eax, 0x64
jge 0x406aa4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x406a7e
dec dword [ebp - 4]
jns 0x406a4d
push dword [ebp + 8]
lea eax, [ebp - 0x154]
push 0x104
push eax
push ebx
push str.EngineDir
push esi
call edi
lea eax, [ebp - 0x154]
push 0
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x28], 0x41230c
mov dword [ebp - 0x20], 0x412314
call fcn.0040399e
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x412308
push eax
call fcn.00406b57
pop ecx
lea eax, [ebp - 0x154]
push dword [ebp + 8]
push 0x104
push eax
push ebx
push str.MediaEngineDir
push esi
call edi
lea eax, [ebp - 0x154]
push 0
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x44], 0x41230c
mov dword [ebp - 0x3c], 0x412314
call fcn.0040399e
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x412308
push eax
call fcn.00406b57
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x50]
call fcn.00401b16
lea ecx, [ebp - 0x34]
call fcn.00401b16
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406b57
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x406d05
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x406d05
push ebx
mov ecx, edi
call fcn.0040c369
mov ebx, 0x412314
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x41230c
mov dword [ebp - 0xc], ebx
call fcn.00403a0d
and byte [ebp + 0xb], 0
xor eax, eax
cmp dword [ebp - 0x10], eax
mov edi, 0x412308
mov dword [ebp - 0x20], edi
je 0x406bbb
push dword [ebp - 0x10]
call esi
cmp dword [0x4123c8], eax
je 0x406cfc
jmp 0x406bcc
mov eax, dword [ebp - 4]
cmp byte [ebp + 0xb], 0
jne 0x406cfc
push eax
lea eax, [ebp - 0x74]
push 0
push eax
lea ecx, [ebp - 0x20]
call fcn.004046a3
push eax
lea ecx, [ebp - 0x20]
call fcn.00401ba8
lea ecx, [ebp - 0x74]
call fcn.00401b16
push dword [0x4123c8]
lea ecx, [ebp - 0x58]
push 1
push 0x414188
call fcn.00403932
push eax
lea ecx, [ebp - 0x20]
call fcn.004041be
lea ecx, [ebp - 0x58]
mov esi, eax
call fcn.00401b16
push dword [0x4123c8]
lea eax, [esi + 1]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.004046a3
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x41230c
mov dword [ebp - 0x28], ebx
call fcn.00403a0d
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x3c], edi
call fcn.00401b16
lea ecx, [ebp - 0x2c]
call fcn.00406d09
cmp word [str.INSTAL], 0
mov eax, 0x41453e
je 0x406c7e
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x406c74
mov ecx, str.INSTAL
push 0
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00404216
cmp eax, dword [0x4123c8]
jne 0x406cd3
cmp word [str.INSTALLSHIELD], 0
mov eax, 0x414522
je 0x406cb5
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x406cab
mov ecx, str.INSTALLSHIELD
push 0
sub eax, ecx
sar eax, 1
dec eax
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00404216
cmp eax, dword [0x4123c8]
je 0x406cd7
mov byte [ebp + 0xb], 1
lea ecx, [ebp - 0x20]
call fcn.00401ffc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x3c]
call fcn.00401b16
cmp dword [0x4123c8], esi
jne 0x406bc9
lea ecx, [ebp - 0x20]
call fcn.00401b16
pop ebx
pop edi
pop esi
leave
ret
Function at 0x406d88
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9ac
push ebx
push esi
lea eax, [ebp - 0x19c]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x406f87
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x19c]
push eax
call esi
xor ebx, ebx
cmp byte [ebp + eax - 0x19d], 0x5c
jne 0x406dd9
lea eax, [ebp - 0x19c]
push eax
call esi
mov byte [ebp + eax - 0x19d], bl
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x2a0]
push str._s_isdelet.ini
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0xc
lea eax, [ebp - 0x2a0]
push eax
call esi
lea eax, [ebp - 0x4a8]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [ebp + 8]
lea eax, [ebp - 0x9ac]
push str.__deleter__s
push eax
call edi
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x94]
mov dword [ebp - 0x10], ebx
push 0x10
mov dword [ebp - 0xc], ebx
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x98], 0x44
push eax
lea eax, [ebp - 0x98]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x9ac]
push ebx
push eax
lea eax, [ebp - 0x4a8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406f7f
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0x10], ebx
mov dword [ebp + 8], eax
je 0x406f72
push 0x40
push 0xffffffffffffffff
lea eax, [ebp + 8]
push ebx
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x406eb5
cmp eax, 1
je 0x406eb5
push 1
push ebx
push ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
cmp dword [ebp - 0x28], 0x16
jne 0x406e86
cmp dword [ebp + 0xc], ebx
je 0x406f65
lea eax, [ebp - 0x5ac]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x5ac]
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x41230c
mov dword [ebp - 0x18], 0x412314
call fcn.0040399e
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x412308
call fcn.0040c3d0
mov edi, eax
mov ecx, edi
call fcn.00401ffc
push dword [edi + 4]
lea eax, [ebp - 0x3a4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x54]
call fcn.00401b16
lea ecx, [ebp - 0x2c]
call fcn.00401b16
lea eax, [ebp - 0x3a4]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
lea eax, [ebp - 0x3a4]
push eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
lea eax, [ebp - 0x4a8]
push eax
call esi
cmp edi, ebx
je 0x406f65
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2a0]
push eax
call fcn.0040697c
pop ecx
lea ecx, [ebp - 0x10]
call fcn.00406f8e
push 1
pop eax
jmp 0x406f89
lea ecx, [ebp - 0x10]
call fcn.00406f8e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407838
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], 0x4143b0
mov dword [0x415650], esi
push dword [ebp + 8]
mov dword [esi], 0x84
mov dword [esi + 0x64], 0x300
push esi
call fcn.00409995
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x407885
push 0x10
push dword [ebp + 0x10]
push 0x415640
call fcn.004104c0
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.00410410
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 0x4078d6
cmp dword [ebp - 0xb4], 5
jae 0x40792c
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x40792c
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, 0x80000000
jne 0x4078f8
shr dword [esi + 0x74], 1
shl eax, 1
inc ecx
cmp ecx, 0x20
jl 0x4078e6
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 0x407915
jmp 0x407932
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x40821e
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.00401c1f
mov ebx, dword [ebp + 8]
xor esi, esi
lea eax, [ebp - 0x1c]
push esi
push eax
mov ecx, ebx
call fcn.00404734
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x408254
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x1c]
call fcn.00401b16
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.00404216
cmp dword [0x4123c8], eax
je 0x4082bf
lea esi, [eax + 1]
push 0
push esi
push 0
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x41230c
mov dword [ebp - 8], 0x412314
call fcn.00405298
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x412308
call fcn.00401ffc
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x1c]
call fcn.00401b16
mov dword [ebp + 8], edi
jmp 0x408263
lea ecx, [ebp - 0x38]
call fcn.00401d5d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40852b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 8]
xor esi, esi
push eax
push esi
push 2
push esi
push esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
jne 0x4085b0
xor eax, eax
cmp dword [ebp - 4], esi
je 0x40856c
push dword [ebp - 4]
call edi
mov ecx, dword [ebp - 8]
cmp eax, esi
mov dword [ebp - 4], ecx
jne 0x4085b0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
lea ecx, [ebp - 4]
push dword [ebp + 8]
push str.CLSID
call fcn.0040666c
cmp dword [ebp - 4], esi
je 0x4085ac
push dword [ebp - 4]
call edi
xor eax, eax
jmp 0x4085ce
cmp eax, esi
push ebx
jle 0x4085bf
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x4085cb
push dword [ebp - 4]
call edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
xor esi, esi
lea ecx, [ebp - 4]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.0040662e
mov edi, eax
cmp edi, esi
je 0x4086ee
cmp dword [ebp - 4], esi
je 0x4086e7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40878b
lea eax, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 8], 0x100
push eax
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x40875f
lea eax, [ebp - 0x114]
lea ecx, [ebp - 4]
push eax
call fcn.004086ae
cmp eax, esi
mov dword [ebp - 0xc], eax
jne 0x40874c
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 0x100
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x408711
cmp dword [ebp - 4], esi
je 0x40875a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
jmp 0x40878b
cmp dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x408772
push dword [ebp - 4]
call edi
mov dword [ebp - 4], esi
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [ebp - 4], esi
mov ebx, eax
je 0x408789
push dword [ebp - 4]
call edi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408ec7
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 0x408f1c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x415580
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408f77
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 0x408f51
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 0x408f5f
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x408f79
cmp dword [ebp - 4], edi
je 0x408f71
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 0x409
jmp 0x408f96
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040cddf
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x408f93
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409b99
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 0x409bed
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 0x409bed
push 6
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x409c1c
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x409c1c
xor ecx, ecx
mov ax, word [edi]
test ax, ax
je 0x409c14
inc edi
inc edi
cmp ecx, ebp
movzx eax, ax
je 0x409c25
lea edi, [edi + eax*2]
jmp 0x409c16
inc edi
inc edi
inc ecx
cmp ecx, 0x10
jl 0x409bfe
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 0x409c1e
Function at 0x40a376
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.0040461b
mov ebx, 0x41230c
mov edi, 0x412314
push 0
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], edi
call fcn.00403a0d
mov esi, 0x412308
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x20], esi
call fcn.00401b16
lea ecx, [ebp - 0x20]
call fcn.00401ffc
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], 0x104
call fcn.00401ffc
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x30], eax
call fcn.00401ffc
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040461b
mov ecx, eax
mov dword [ebp - 4], ecx
call fcn.00401ffc
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.004046f1
mov ecx, eax
mov dword [ebp + 0xc], ecx
call fcn.00401ffc
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.004046f1
mov ecx, eax
mov dword [ebp + 0xc], ecx
call fcn.00401ffc
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.00401b16
lea ecx, [ebp - 0x84]
call fcn.00401b16
lea ecx, [ebp - 0x68]
call fcn.00401b16
mov eax, dword [ebp + 0xc]
test al, 1
je 0x40a4fa
lea eax, [ebp - 0x188]
push 0
push eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], edi
call fcn.0040399e
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.0040cc01
mov esi, eax
add esp, 0xc
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x68]
call fcn.00401b16
lea ecx, [ebp - 0x4c]
call fcn.00401b16
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40a542
test al, 4
jne 0x40a542
test al, 0x80
mov esi, eax
jne 0x40a50d
test ah, 4
je 0x40a510
push 0x20
pop esi
test ah, 2
je 0x40a518
push 5
pop esi
test ah, 1
je 0x40a520
push 0x70
pop esi
lea ecx, [ebp - 0x20]
call fcn.00401ffc
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x20]
call fcn.00401b16
mov eax, 0xfffff830
sub eax, esi
jmp 0x40a55f
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00401ffc
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x20]
call fcn.00401b16
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40a8e2
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.00401ffc
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 0x40a940
mov al, 1
jmp 0x40a9b6
push eax
lea ecx, [ebp + 0x10]
call fcn.0040a361
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 0x40a966
mov bl, 1
jmp 0x40a9ac
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4145c0
push dword [ebp + 0x10]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40a962
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 0x40a99f
cmp eax, dword [edx + 4]
jne 0x40a9a2
mov byte [ebx], 1
cmp eax, dword [edx + 4]
ja 0x40a9aa
jb 0x40a962
cmp ecx, dword [edx]
jb 0x40a962
xor bl, bl
lea ecx, [ebp + 0x10]
call fcn.0040f454
mov al, bl
pop edi
pop esi
pop ebx
leave
ret 0xc