joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401962
Capabilities:
Compare security identifiers
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1e4
mov eax, dword [0x48e610]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push 0x98
xor ebx, ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.0045f090
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x401b4d
cmp dword [ebp - 0x20], 2
jne 0x401b4d
push esi
push edi
push ebx
push 0xf
xor esi, esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x401a8a
push 0x124
lea eax, [ebp - 0x154]
push ebx
push eax
call fcn.0045f090
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
mov esi, 0x128
push edi
mov dword [ebp - 0x158], esi
call sub.KERNEL32.dll_Process32First
jmp 0x401a80
lea eax, [ebp - 0x134]
push eax
push str.explorer.exe
call fcn.0045f938
pop ecx
pop ecx
test eax, eax
jne 0x401a6d
push dword [ebp - 0x150]
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x401a6d
lea ecx, [ebp - 0x168]
push ecx
push 8
push eax
mov dword [ebp - 0x168], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401a6d
lea eax, [ebp - 0x16c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp + 0x6c], ebx
mov word [ebp + 0x70], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x401a93
lea eax, [ebp - 0x158]
push eax
push edi
mov dword [ebp - 0x158], esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4019f8
mov esi, ebx
pop edi
mov eax, esi
pop esi
jmp 0x401b50
mov eax, dword [ebp - 0x16c]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [ebp - 0x15c]
push ecx
push ebx
push ebx
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x168]
push 2
push eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x15c], ebx
call esi
cmp dword [ebp - 0x15c], ebx
jne 0x401ad1
xor esi, esi
jmp 0x401a8a
push dword [ebp - 0x15c]
call fcn.0045e88c
mov edi, eax
pop ecx
cmp edi, ebx
je 0x401acd
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x15c]
push edi
push 2
push dword [ebp - 0x160]
call esi
test eax, eax
jne 0x401b08
push edi
call fcn.0045efef
pop ecx
jmp 0x401acd
mov dword [ebp - 0x160], ebx
cmp dword [edi], ebx
jbe 0x401b3b
lea esi, [edi + 4]
push dword [ebp - 0x164]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401b31
inc ebx
add esi, 8
cmp ebx, dword [edi]
jb 0x401b15
jmp 0x401b3b
mov dword [ebp - 0x160], 1
push edi
call fcn.0045efef
mov esi, dword [ebp - 0x160]
pop ecx
jmp 0x401a8a
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop ebx
call fcn.0045f4ee
add ebp, 0x78
leave
ret
Function at 0x401bda
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x48e610]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
mov eax, dword [ebp + 0x1b0]
push ebx
push esi
mov esi, dword [ebp + 0x1c0]
push edi
push str.Shell32.dll
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov dword [ebp - 0x6c], eax
mov edi, 0x207
cmp eax, ebx
je 0x401cff
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SHGetSpecialFolderLocation
push eax
call esi
push str.SHGetPathFromIDListW
push dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
call esi
push str.SHGetMalloc
push dword [ebp - 0x6c]
mov dword [ebp - 0x74], eax
call esi
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x68], ebx
je 0x401cf3
cmp dword [ebp - 0x74], ebx
je 0x401cf3
cmp eax, ebx
je 0x401cf3
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x1b4]
mov dword [ebp - 0x70], ebx
push ebx
call dword [ebp - 0x68]
test eax, eax
jne 0x401cf3
push 0x104
push ebx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov esi, eax
push esi
push dword [ebp - 0x70]
call dword [ebp - 0x74]
push edi
lea eax, [ebp - 0x63]
push ebx
push eax
mov byte [ebp - 0x64], bl
call fcn.0045f090
add esp, 0xc
push ebx
push ebx
push 0x208
lea eax, [ebp - 0x64]
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
push eax
call fcn.0043f8e0
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], ebx
call dword [ebp - 0x80]
test eax, eax
js 0x401cf3
mov eax, dword [ebp - 0x68]
push dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, dword [ebp - 0x78]
mov ecx, esi
call fcn.00401005
test al, al
je 0x401d3e
push edi
lea eax, [ebp - 0x63]
push ebx
push eax
mov byte [ebp - 0x64], bl
call fcn.0045f090
add esp, 0xc
push ebx
push dword [ebp + 0x1b4]
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x401d3e
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.0043f8e0
mov ecx, esi
call fcn.00401005
test al, al
jne 0x401d72
mov ecx, esi
call fcn.0043f510
cmp byte [esi + 7], 0xff
mov ecx, esi
jne 0x401d5a
mov ecx, dword [esi]
cmp byte [ecx + eax - 1], 0x5c
je 0x401d6d
push 0x47e754
mov ecx, esi
call fcn.0043fc10
xor eax, eax
inc eax
jmp 0x401d74
xor eax, eax
mov ecx, dword [ebp + 0x1a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f4ee
add ebp, 0x1a8
leave
ret
Function at 0x401f08
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x2d4]
sub esp, 0x354
mov eax, dword [0x48e610]
xor eax, ebp
mov dword [ebp + 0x2d0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x2dc]
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp + 0x1cd]
push ebx
push eax
mov byte [ebp + 0x1cc], bl
call fcn.0045f090
push esi
lea eax, [ebp + 0xc9]
push ebx
push eax
mov byte [ebp + 0xc8], bl
call fcn.0045f090
push edi
call fcn.0045f9f0
add esp, 0x1c
cmp byte [eax + edi - 1], 0x5c
push edi
lea eax, [ebp + 0xc8]
push eax
je 0x401f9d
call fcn.0045f6c0
lea eax, [ebp + 0xc8]
push 0x47e804
push eax
call fcn.0045f6d0
lea eax, [ebp + 0x1cc]
push edi
push eax
call fcn.0045f6c0
push 0x47e754
jmp 0x401fc5
call fcn.0045f6c0
lea eax, [ebp + 0xc8]
push 0x47e800
push eax
call fcn.0045f6d0
lea eax, [ebp + 0x1cc]
push edi
push eax
call fcn.0045f6c0
push 0x47e7fe
lea eax, [ebp + 0x1cc]
push eax
call fcn.0045f6d0
add esp, 0x20
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
jne 0x401ff4
xor eax, eax
jmp 0x4020f6
lea eax, [ebp + 0x1cc]
push eax
lea eax, [ebp + 0xc8]
push eax
mov dword [ebp - 0x80], 1
call fcn.0045f6c0
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4020cf
lea eax, [ebp - 0x4c]
push 0x47e7fc
push eax
call fcn.0045eae0
pop ecx
pop ecx
test eax, eax
je 0x4020dd
lea eax, [ebp - 0x4c]
push 0x47e7f8
push eax
call fcn.0045eae0
pop ecx
pop ecx
test eax, eax
je 0x4020dd
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x1cc]
push eax
call fcn.0045f6d0
test byte [ebp - 0x78], 0x10
pop ecx
pop ecx
je 0x402082
lea eax, [ebp + 0x1cc]
push eax
call fcn.00401f08
pop ecx
jmp 0x4020a8
test byte [ebp - 0x78], 1
je 0x40209b
lea eax, [ebp + 0x1cc]
push 0x80
push eax
call fcn.0045f97f
pop ecx
pop ecx
lea eax, [ebp + 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4020b8
push 4
push ebx
lea eax, [ebp + 0x1cc]
push eax
call esi
lea eax, [ebp + 0xc8]
push eax
lea eax, [ebp + 0x1cc]
push eax
call fcn.0045f6c0
pop ecx
pop ecx
jmp 0x4020dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40210e
mov dword [ebp - 0x80], ebx
cmp dword [ebp - 0x80], ebx
jne 0x402016
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp + 0x2d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f4ee
add ebp, 0x2d4
leave
ret
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x401fed
Function at 0x4023bc
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xb8
mov eax, dword [0x48e610]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
push 0x98
xor ebx, ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.0045f090
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x9c
call edi
test eax, eax
jne 0x40240f
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x94
call edi
mov eax, dword [ebp - 0x20]
dec eax
je 0x40242f
dec eax
jne 0x402471
cmp byte [esi + 7], 0xff
jne 0x402420
mov esi, dword [esi]
push ebx
push ebx
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
jmp 0x402471
cmp byte [esi + 7], 0xff
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x38], ebx
jne 0x402443
mov esi, dword [esi]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [ebp - 0x38]
mul dword [ebp - 0x3c]
push ebx
push dword [ebp - 0x34]
push edx
push eax
call fcn.00460120
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 0x7c]
shl eax, 0x14
pop edi
cdq
pop esi
pop ebx
cmp edx, dword [ebp - 0x40]
ja 0x40248b
jb 0x402487
cmp eax, dword [ebp - 0x44]
jae 0x40248b
xor eax, eax
jmp 0x402490
mov eax, 0x80004005
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.0045f4ee
add ebp, 0x70
leave
ret

Function at 0x4025c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x40], 0
push 0x38
push 0
lea eax, [ebp - 0x3c]
push eax
call fcn.0045f090
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x440
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], str.open
lea ecx, [ebp + 8]
call fcn.00401029
mov dword [ebp - 0x30], eax
lea ecx, [ebp + 0x10]
call fcn.00401029
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40263a
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
lea ecx, [ebp + 8]
call fcn.0043f790
lea ecx, [ebp + 0x10]
call fcn.0043f790
mov eax, dword [ebp - 0x44]
mov esp, ebp
pop ebp
ret
Function at 0x402a29
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
push esi
cmp eax, 1
jne 0x402a9a
lea ecx, [ebp - 8]
call fcn.0043f500
lea eax, [ebp - 8]
push eax
xor esi, esi
push esi
push esi
push 0x23
push esi
call fcn.00401bda
add esp, 0x14
test eax, eax
jne 0x402a64
lea ecx, [ebp - 8]
call fcn.0043f790
jmp 0x402b0b
push str.Real_setup_
lea ecx, [ebp - 8]
call fcn.0043fc10
push str.config.ini
lea ecx, [ebp - 8]
call fcn.0043fc10
cmp dword [ebp + 0xc], esi
jne 0x402a57
cmp byte [ebp - 1], 0xff
lea eax, [ebp - 8]
jne 0x402a8f
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
jmp 0x402a57
push edi
mov edi, 0x80000001
cmp eax, 3
jne 0x402aa6
dec edi
cmp dword [ebp + 0xc], 0
lea esi, [ebp - 0x10]
jne 0x402acc
push eax
call fcn.00401403
cmp byte [eax + 7], 0xff
pop ecx
jne 0x402abe
mov eax, dword [eax]
push eax
push edi
call fcn.0040152d
pop ecx
pop ecx
lea ecx, [ebp - 0x10]
jmp 0x402b03
push dword [ebp + 0xc]
push eax
call fcn.00401403
pop ecx
push eax
lea eax, [ebp - 8]
push eax
call fcn.00440090
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.0043f790
cmp byte [ebp - 1], 0xff
lea eax, [ebp - 8]
jne 0x402af7
mov eax, dword [ebp - 8]
push eax
push edi
call fcn.0040152d
pop ecx
pop ecx
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0043f790
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x402b10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x48e610]
xor eax, ebp
mov dword [ebp + 0x90], eax
mov edx, dword [ebp + 0xac]
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ebp + 0x9c]
push ebx
mov ebx, dword [ebp + 0xa8]
push esi
mov esi, dword [ebp + 0xb0]
push edi
mov edi, dword [ebp + 0xa4]
push 0x20019
push edx
push ecx
push eax
call fcn.00401555
add esp, 0x10
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x402bdc
and dword [ebp - 0x78], 0
push 0x103
lea eax, [ebp - 0x73]
push 0
push eax
mov dword [ebp - 0x80], 0x104
mov byte [ebp - 0x74], 0
call fcn.0045f090
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push esi
push 0
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402bd0
test esi, esi
je 0x402bbe
cmp dword [esi], 4
jne 0x402bbe
push dword [ebp - 0x74]
mov ecx, ebx
push str.0x_08lx
call fcn.00402720
jmp 0x402bc9
lea eax, [ebp - 0x74]
push eax
mov ecx, ebx
call fcn.0043f8e0
mov dword [ebp - 0x78], 1
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x90]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f4ee
add ebp, 0x94
leave
ret
Function at 0x402bf4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xb4]
sub esp, 0x134
mov eax, dword [0x48e610]
xor eax, ebp
mov dword [ebp + 0xb0], eax
mov eax, dword [ebp + 0xc8]
push ebx
mov ebx, dword [ebp + 0xc0]
push esi
mov esi, dword [ebp + 0xc4]
push edi
mov edi, dword [ebp + 0xbc]
push str.SoftwareRealNetworks_
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], eax
call fcn.0043f7b0
push ebx
lea ecx, [ebp - 0x6c]
call fcn.0043fc10
push 0x47e778
lea ecx, [ebp - 0x6c]
call fcn.0043fc10
push 0x103
lea eax, [ebp - 0x53]
push 0
push eax
mov dword [ebp - 0x78], 0x104
mov byte [ebp - 0x54], 0
call fcn.0045f090
add esp, 0xc
cmp byte [ebp - 0x65], 0xff
lea eax, [ebp - 0x6c]
jne 0x402c80
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x402cf8
cmp dword [ebp - 0x78], eax
jle 0x402cf8
push esi
lea eax, [ebp - 0x54]
push eax
push ebx
lea esi, [ebp - 0x5c]
call fcn.00401773
add esp, 0xc
cmp byte [ebp - 0x55], 0xff
mov eax, esi
jne 0x402cb5
mov eax, dword [ebp - 0x5c]
push 0
push dword [ebp + 0xcc]
push dword [ebp - 0x60]
push 0
push eax
push edi
call fcn.00402b10
add esp, 0x18
mov esi, eax
lea ecx, [ebp - 0x5c]
call fcn.0043f790
lea ecx, [ebp - 0x6c]
call fcn.0043f790
mov ecx, dword [ebp + 0xb0]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f4ee
add ebp, 0xb4
leave
ret
push esi
mov edi, 0x47e870
push edi
push ebx
lea esi, [ebp - 0x80]
call fcn.00401773
push dword [ebp - 0x64]
lea esi, [ebp - 0x74]
push edi
push ebx
call fcn.00401773
add esp, 0x18
cmp byte [eax + 7], 0xff
jne 0x402d20
mov eax, dword [eax]
push 0
push dword [ebp + 0xcc]
push dword [ebp - 0x60]
push 0
push eax
push dword [ebp - 0x58]
call fcn.00402b10
add esp, 0x18
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0043f790
test esi, esi
jne 0x402da7
push dword [ebp - 0x64]
mov edi, str.12.0
push edi
push ebx
lea esi, [ebp - 0x74]
call fcn.00401773
add esp, 0xc
push eax
lea ecx, [ebp - 0x80]
call fcn.0043f840
mov ecx, esi
call fcn.0043f790
push dword [ebp - 0x64]
lea esi, [ebp - 0x74]
push edi
push ebx
call fcn.00401773
add esp, 0xc
cmp byte [eax + 7], 0xff
jne 0x402d84
mov eax, dword [eax]
push 0
push dword [ebp + 0xcc]
push dword [ebp - 0x60]
push 0
push eax
push dword [ebp - 0x58]
call fcn.00402b10
add esp, 0x18
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0043f790
lea ecx, [ebp - 0x80]
jmp 0x402cd1
Function at 0x402e5b
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0xe4]
sub esp, 0x164
mov eax, dword [0x48e610]
xor eax, ebp
mov dword [ebp + 0xe0], eax
push ebx
push esi
mov esi, dword [ebp + 0xec]
push edi
mov edi, dword [ebp + 0xf0]
push esi
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x60], edi
call fcn.0043f7b0
push str..msi
push 4
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x80]
call fcn.0043ff20
push eax
call fcn.00401046
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 0x59], al
call fcn.0043f790
xor ebx, ebx
cmp byte [ebp - 0x59], bl
je 0x402f58
push ebx
push 2
mov dword [ebp - 0x6c], 0x32
mov dword [ebp - 0x58], ebx
call sub.msi.dll_MsiSetPropertyW
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x58]
push eax
push esi
call sub.msi.dll_MsiPreviewBillboardA
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0xac]
push eax
push 0x47e908
push dword [ebp - 0x58]
call sub.msi.dll_MsiGetSourcePathA
push ebx
push dword [ebp - 0x60]
call sub.msi.dll_MsiSetPropertyW
push dword [ebp - 0x58]
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push ecx
push ecx
lea eax, [ebp + 0xac]
mov ecx, esp
push eax
call fcn.0043f7b0
call fcn.00401b60
pop ecx
pop ecx
mov esi, eax
cmp edi, ebx
je 0x402f36
lea eax, [ebp + 0xac]
push eax
push edi
call fcn.0045f6c0
pop ecx
pop ecx
lea ecx, [ebp - 0x80]
call fcn.0043f790
mov ecx, dword [ebp + 0xe0]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f4ee
add ebp, 0xe4
leave
ret
lea eax, [ebp - 0x78]
push eax
push esi
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x6c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x403046
push edi
call fcn.0045e88c
pop ecx
mov dword [ebp - 0x64], eax
cmp eax, ebx
je 0x403046
push eax
push edi
push dword [ebp - 0x78]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jle 0x40303d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40303d
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x74]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x64]
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x74], ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40303d
push 0xff
lea eax, [ebp - 0x53]
push ebx
push eax
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x54], bl
call fcn.0045f090
mov eax, dword [ebp - 0x74]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x54]
push str.StringFileInfo_04x_04xProductVersion
push eax
call fcn.0046018b
add esp, 0x1c
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x64]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40303d
push ecx
push ecx
mov ecx, esp
push dword [ebp - 0x68]
call fcn.0043f7b0
call fcn.00401b60
pop ecx
pop ecx
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x60], ebx
je 0x40303d
push dword [ebp - 0x58]
push dword [ebp - 0x68]
push dword [ebp - 0x60]
call fcn.0045f590
add esp, 0xc
push dword [ebp - 0x64]
call fcn.0045efef
pop ecx
mov esi, dword [ebp - 0x6c]
jmp 0x402f36
Function at 0x4054e1
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 8], 1
push esi
jne 0x40558e
lea ecx, [ebp - 8]
call fcn.0043f500
lea eax, [ebp - 8]
push eax
xor esi, esi
push esi
push esi
push 0x23
push esi
call fcn.00401bda
add esp, 0x14
test eax, eax
jne 0x40551e
lea ecx, [ebp - 8]
call fcn.0043f790
jmp 0x4055e9
push str.Real_setup_
lea ecx, [ebp - 8]
call fcn.0043fc10
cmp byte [ebp - 1], 0xff
lea eax, [ebp - 8]
jne 0x405537
mov eax, dword [ebp - 8]
push eax
call fcn.00401e6c
lea ecx, [ebp - 8]
mov dword [esp], str.config.ini
call fcn.0043fc10
lea eax, [ebp - 8]
call fcn.0040546a
cmp byte [ebp - 1], 0xff
lea eax, [ebp - 8]
jne 0x405560
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, 0x100
push eax
push eax
call fcn.00440160
push eax
push esi
push dword [ebp + 0xc]
push str.Reclaimer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
mov esi, eax
call fcn.004401f0
jmp 0x405511
cmp dword [ebp + 8], 3
push edi
mov edi, 0x80000001
jne 0x40559b
dec edi
push dword [ebp + 0xc]
lea esi, [ebp - 0x10]
push dword [ebp + 8]
call fcn.00401403
pop ecx
push eax
lea eax, [ebp - 8]
push eax
call fcn.00440090
add esp, 0xc
mov ecx, esi
call fcn.0043f790
cmp byte [ebp - 1], 0xff
lea eax, [ebp - 8]
jne 0x4055ca
mov eax, dword [ebp - 8]
xor esi, esi
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
push eax
push edi
call fcn.00402b10
add esp, 0x18
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0043f790
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x405f62
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40a710
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
ret

Function at 0x40b539
Capabilities:
Create http request

Disassembly:
xor eax, eax
cmp dword [0x48fc68], eax
je 0x40b544
ret
push eax
push eax
push eax
push eax
push 0x47f210
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [0x48fc68], eax
neg eax
sbb eax, eax
and eax, 0x7fff555f
add eax, 0x8000aaa1
ret
Function at 0x40c15d
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x48e610]
xor eax, ebp
mov dword [ebp + 0x19c], eax
push esi
mov esi, dword [ebp + 0x1a8]
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 8]
test eax, eax
js 0x40c2ee
push 0x103
lea eax, [ebp + 0x99]
push 0
push eax
mov byte [ebp + 0x98], 0
call fcn.0045f090
lea eax, [ebp + 0x98]
push esi
push eax
call fcn.0045f6c0
mov esi, 0x47f3c4
lea eax, [ebp + 0x98]
push esi
push eax
call fcn.0045ea50
add esp, 0x1c
test eax, eax
je 0x40c1e1
lea eax, [ebp + 0x98]
push esi
push eax
call fcn.0045ea50
pop ecx
pop ecx
mov byte [eax], 0
push ebx
lea ecx, [ebp + 0x98]
push ecx
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x70]
push eax
lea esi, [edi + 0x10]
call fcn.00440090
add esp, 0xc
push eax
mov ecx, esi
call fcn.0043f840
lea ecx, [ebp - 0x70]
call fcn.0043f790
lea ecx, [edi + 0x18]
call fcn.00401005
test al, al
jne 0x40c2bc
and dword [ebp - 0x6c], 0
push 0xff
mov byte [ebp - 0x68], al
lea eax, [ebp - 0x67]
push 0
push eax
call fcn.0045f090
add esp, 0xc
cmp byte [edi + 0x1f], 0xff
lea eax, [edi + 0x18]
jne 0x40c242
mov eax, dword [edi + 0x18]
push dword [ebp - 0x6c]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0046018b
inc dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00440090
add esp, 0x18
push eax
mov ecx, esi
call fcn.0043f840
lea ecx, [ebp - 0x80]
call fcn.0043f790
cmp byte [esi + 7], 0xff
mov eax, esi
jne 0x40c280
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40c2bc
lea eax, [ebp + 0x98]
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00440090
add esp, 0xc
push eax
mov ecx, esi
call fcn.0043f840
lea ecx, [ebp - 0x78]
call fcn.0043f790
cmp dword [ebp - 0x6c], 0x64
jl 0x40c236
cmp byte [esi + 7], 0xff
pop ebx
jne 0x40c2c5
mov esi, dword [esi]
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x40c2ec
mov eax, 0x80004005
jmp 0x40c2ee
xor eax, eax
mov ecx, dword [ebp + 0x19c]
pop edi
xor ecx, ebp
pop esi
call fcn.0045f4ee
add ebp, 0x1a0
leave
ret 4

Function at 0x40c32c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
leave
ret 8