joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401187
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
and byte [ebp - 0x208], 0
push esi
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x207]
and byte [ebp - 0x410], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40f]
cmp dword [ebp + 0x18], 0xa
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
je 0x40127d
mov esi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [esi + 0xc]
call edi
push dword [esi + 0xc]
call fcn.00406412
test eax, eax
pop ecx
jne 0x4012a1
lea eax, [ebp - 0x208]
push 0x208
push eax
push 0xfffffffffffffffa
call fcn.00409319
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.00406796
and byte [eax + 1], 0
pop ecx
pop ecx
lea eax, [ebp - 0x410]
push eax
push dword [esi + 0xc]
call fcn.0040a0d9
pop ecx
lea eax, [ebp - 0x410]
pop ecx
push eax
lea eax, [ebp - 0x208]
push eax
call edi
mov eax, dword [esi + 0x20]
inc eax
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 0x14]
push dword [esi + 0x24]
call fcn.00401769
add esp, 0x10
test eax, eax
jne 0x401281
push 1
mov word [esi + 0x38], 3
call fcn.004110b0
pop ecx
xor eax, eax
jmp 0x4012a4
push 0
lea eax, [ebp - 0x208]
push dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x80
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x4036d3
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
xor esi, esi
cmp dword [0x421178], esi
jne 0x4037ad
cmp dword [ebp + 8], esi
mov eax, dword [0x424b04]
jne 0x4036f7
mov eax, dword [0x423980]
push eax
push 0x41c30c
push 6
push 0x34
push 2
call fcn.00405105
add esp, 0x14
cmp eax, 6
jne 0x4037ad
call fcn.00409d3b
test eax, eax
je 0x403783
lea eax, [ebp + 8]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x403742
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_Error__d_in_fDoReboot__.
jmp 0x40379c
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push esi
push esi
lea eax, [ebp - 0x10]
push esi
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x403783
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AdjustTokenPrivileges_Error__d_in_fDoReboot
jmp 0x40379c
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
jne 0x4037ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_ExitWindows_Error__d
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor eax, eax
jmp 0x4037b0
push 1
pop eax
pop esi
leave
ret

Function at 0x4038ee
Capabilities:
Persist via run registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
push 0xc
pop ecx
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
lea edi, [ebp - 0x3c]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
cmp dword [0x421190], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
movsw word es:[edi], word [esi]
jne 0x40391e
cmp dword [0x421194], ebx
je 0x403964
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x3c]
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403964
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40395b
cmp dword [ebp - 8], ebx
jbe 0x40395b
push 1
pop ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x405c11
Capabilities:
Get file size

Disassembly:
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push SysReAllocStringLen
push dword [esp + 0x28]
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x405c46
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
jne 0x405c68
push dword [esp + 0x10]
push dword [0x424b24]
push str._s_n_s
push 1
push 0x10
push 1
call fcn.00405105
add esp, 0x18
pop edi
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x405e07
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x39c
and dword [ebp - 8], 0
push ebx
push esi
push edi
call fcn.00409d89
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
lea eax, [ebp - 0x90]
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x90]
push 0x41c030
push eax
call esi
mov ebx, str.SharedDLLs
lea eax, [ebp - 0x90]
push ebx
push eax
call esi
cmp dword [0x421d60], 0
jne 0x405eb3
lea eax, [ebp - 0x39c]
push str._HKEY_LOCAL_MACHINE_
push eax
call edi
call fcn.00409d89
push eax
lea eax, [ebp - 0x39c]
push eax
call esi
lea eax, [ebp - 0x39c]
push str.____
push eax
call esi
lea eax, [ebp - 0x39c]
push ebx
push eax
call esi
lea eax, [ebp - 0x39c]
push 0x41c414
push eax
call esi
lea eax, [ebp - 0x39c]
push eax
push str.RegKey
call fcn.00404dd2
pop ecx
cmp eax, 0xfffffffe
pop ecx
je 0x405efb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x90]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
xor esi, esi
cmp eax, esi
jne 0x405f9b
cmp dword [0x421d60], esi
push 1
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0x14
pop ebx
jne 0x405f02
mov dword [0x421d60], ebx
call fcn.00404d4b
cmp eax, 0xfffffffe
jne 0x405f02
xor eax, eax
jmp 0x405fc8
lea eax, [ebp - 0x10]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
cmp eax, esi
pop edi
jne 0x405f59
mov eax, dword [ebp - 0x14]
dec eax
je 0x405f4c
dec eax
dec eax
je 0x405f34
dec eax
je 0x405f39
jmp 0x405f59
cmp dword [ebp - 0x10], edi
jne 0x405f59
lea eax, [ebp - 0x2c]
push edi
push eax
lea eax, [ebp - 4]
push eax
call fcn.00412810
add esp, 0xc
jmp 0x405f59
lea eax, [ebp - 0x2c]
push eax
call fcn.00411f70
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x405f66
cmp dword [ebp + 0xc], esi
je 0x405f66
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
push edi
inc eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, esi
je 0x405fc0
push dword [0x424b18]
push ebx
push 0x10
push ebx
call fcn.00405105
add esp, 0x10
mov dword [ebp - 8], ebx
jmp 0x405fc0
push dword [0x424b18]
push 1
pop ebx
push ebx
push 0x10
push ebx
call fcn.00405105
add esp, 0x10
cmp dword [0x421d60], esi
mov dword [ebp - 8], ebx
jne 0x405fc0
call fcn.00404d26
xor eax, eax
cmp dword [ebp - 8], esi
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407832
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
test eax, eax
jbe 0x4078ba
push eax
push 2
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4078ba
push ebx
call dword [sym.imp.KERNEL32.dll_LocalLock]
mov edi, eax
push edi
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4078ac
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x41c030
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4078ac
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], 1
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi + 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4078c6
and dword [esi], eax
and dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407984
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xaec
push ebx
push esi
push edi
call fcn.00409142
xor ebx, ebx
cmp dword [0x421178], ebx
je 0x4079c5
cmp byte [0x420e70], bl
mov eax, dword [0x42117c]
jne 0x4079b0
cmp eax, ebx
jne 0x4079c5
push 0x420e70
push eax
push 1
push 0x420f70
call fcn.00409a1f
add esp, 0x10
mov eax, dword [0x424b1c]
cmp eax, ebx
jle 0x4079e0
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push 0x423e00
call fcn.00410b60
pop ecx
cmp byte [0x4211b0], bl
je 0x4079f3
push 0x4211b0
call fcn.00410b60
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x4213b8
push edi
call esi
test eax, eax
je 0x407a12
push 0x3e8
push edi
call fcn.00408cf6
pop ecx
pop ecx
lea eax, [ebp - 0x25c]
push 1
push eax
call fcn.004098ce
pop ecx
test eax, eax
pop ecx
je 0x407a56
lea eax, [ebp - 0x6a0]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.0040a0d9
pop ecx
lea eax, [ebp - 0x6a0]
pop ecx
push eax
call fcn.00412070
pop ecx
push eax
push dword [0x42118c]
call fcn.00409dc7
pop ecx
pop ecx
cmp dword [ebp + 8], ebx
je 0x407b2e
mov edi, 0x4219d0
push edi
call esi
test eax, eax
je 0x407b2e
push dword [0x4246a8]
mov esi, dword [0x421178]
mov dword [0x421178], ebx
push 1
push 0x40
push 2
call fcn.00405105
add esp, 0x10
lea eax, [ebp - 0x498]
mov dword [0x421178], esi
push 1
push dword [ebp + 8]
push esi
push 0x420a58
push 0x4217c8
push edi
push eax
lea eax, [ebp - 0xaec]
push eax
call fcn.00407d60
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x20
lea eax, [ebp - 0xaec]
push 0x41c08c
push eax
call esi
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0xaec]
push eax
call esi
push 0x44
lea eax, [ebp - 0x54]
pop esi
push esi
push ebx
push eax
call fcn.00412010
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], esi
mov word [ebp - 0x24], 1
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xaec]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x407b2e
push dword [0x424680]
push 1
push 0x30
push 1
call fcn.00405105
add esp, 0x10
cmp byte [0x4215c0], bl
je 0x407b41
push 0x4215c0
call fcn.00410b60
pop ecx
call fcn.004038ee
cmp eax, 1
jne 0x407b52
push ebx
call fcn.004036d3
pop ecx
call fcn.004047c8
push dword [0x421184]
call dword [sym.imp.USER32.dll_DestroyWindow]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407c0f
Capabilities:
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa28
push ebx
push esi
push edi
push 0x424b60
lea eax, [ebp - 0x208]
push 0x208
push eax
push 0
push str.Uninstal
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x208]
mov ebx, 0x424460
push eax
push ebx
lea eax, [ebp - 0x618]
push 0x41c268
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
mov edi, 0x424020
push eax
push edi
lea eax, [ebp - 0xa28]
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x820]
push 0x41c72c
push eax
call fcn.00412c20
pop ecx
lea eax, [ebp - 0x208]
pop ecx
push eax
lea eax, [ebp - 0x820]
push eax
call fcn.00412c30
pop ecx
lea eax, [ebp - 0xa28]
pop ecx
push eax
lea eax, [ebp - 0x820]
push eax
push 0x424d80
call fcn.00408fcd
add esp, 0xc
lea eax, [ebp - 0x618]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x410]
push edi
push eax
call fcn.00412c20
pop ecx
lea eax, [ebp - 0x410]
pop ecx
push 0x41c030
push eax
call fcn.00412c30
pop ecx
mov esi, str.ST6UNST.EXE
pop ecx
push 0
push 0
push esi
push esi
lea eax, [ebp - 0x410]
push ebx
push eax
call fcn.00405fcd
add esp, 0x18
dec eax
dec eax
je 0x407d46
dec eax
dec eax
je 0x407d46
dec eax
jne 0x407d42
push esi
push 0x41c06c
push dword [0x42396c]
call fcn.00403adc
add esp, 0xc
push eax
push 1
push 0x10
push 1
call fcn.00405105
add esp, 0x10
jmp 0x407cfc
xor eax, eax
jmp 0x407d5b
lea eax, [ebp - 0x618]
push eax
push 0x4219d0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407f03
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x864
push ebx
push edi
call fcn.00409d77
test eax, eax
je 0x407ff0
xor ebx, ebx
lea eax, [ebp - 0x448]
push ebx
push 1
push ebx
push 0x41fd7c
push 0x4217c8
push 0x4219d0
push eax
lea eax, [ebp - 0x65c]
push eax
xor edi, edi
call fcn.00407d60
add esp, 0x20
lea eax, [ebp - 4]
push eax
push 0x18
push dword [0x421184]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x407fe2
lea eax, [ebp - 0x864]
push eax
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x407fe2
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x864]
push eax
call fcn.0040a0d9
pop ecx
pop ecx
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
sub eax, ebx
je 0x407f9e
dec eax
je 0x407fa1
jmp 0x408030
push 1
pop edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0040931f
test eax, eax
pop ecx
je 0x407fe2
push 0x41c778
lea eax, [ebp - 0x448]
push 1
push eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x20c]
push str.ST6UNST_Uninstaller
push eax
call fcn.004093a0
add esp, 0x18
test eax, eax
je 0x407fe2
push 1
pop ebx
test edi, edi
je 0x407fec
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, ebx
jmp 0x40805f
push 1
push 1
push 0
push 0x41fd7c
push 0x4217c8
lea eax, [ebp - 0x448]
push 0x4219d0
push eax
lea eax, [ebp - 0x65c]
push eax
call fcn.00407d60
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.004023e2
pop ecx
test eax, eax
pop ecx
jne 0x408034
xor eax, eax
jmp 0x40805f
lea eax, [ebp - 0x448]
push eax
lea eax, [ebp - 0x65c]
push eax
lea eax, [ebp - 0x20c]
push str.ST6UNST_Uninstaller
push eax
push dword [ebp + 8]
call fcn.0040249b
add esp, 0x14
neg eax
sbb eax, eax
neg eax
pop edi
pop ebx
leave
ret
Function at 0x4081a8
Capabilities:
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor esi, esi
push edi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
push esi
call edi
mov ebx, eax
cmp ebx, esi
je 0x408291
lea eax, [ebx - 1]
mov word [ebp - 0x20], 8
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x408291
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
push esi
call edi
push 7
push esi
lea eax, [ebp - 0x20]
push 0x409
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_SafeArrayPtrOfIndex]
test eax, eax
jge 0x40821b
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
jmp 0x408291
fld qword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
push ecx
push ecx
fstp qword [esp]
call dword [sym.imp.OLEAUT32.dll_UnRegisterTypeLib]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov edi, 0x80
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x408291
push esi
push edi
push 3
push esi
push esi
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x408291
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4090d5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and byte [ebp - 0x208], 0
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x4215c0
mov esi, 0x424b60
push 0x41c310
push esi
stosb byte es:[edi], al
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x208]
push esi
push 0x208
push eax
push 0
push str.Cabs
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x208]
push eax
call fcn.00411f70
pop ecx
pop edi
pop esi
leave
ret

Function at 0x409142
Capabilities:
Delete directory
Delete file
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa30
and byte [ebp - 0x828], 0
push ebx
push esi
mov edx, 0x81
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x827]
rep stosd dword es:[edi], eax
and byte [ebp - 0x418], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x417]
rep stosd dword es:[edi], eax
and byte [ebp - 0xa30], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0xa2f]
rep stosd dword es:[edi], eax
and byte [ebp - 0x620], 0
mov ecx, edx
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x61f]
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, 0x424020
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
inc dword [0x421f7c]
lea eax, [ebp - 4]
push 0xa
push eax
push dword [0x421f7c]
call fcn.00411450
add esp, 0xc
push str.File
call fcn.00412070
pop ecx
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.00412c20
pop ecx
lea eax, [ebp - 4]
pop ecx
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.00412c30
pop ecx
lea eax, [ebp - 0x210]
pop ecx
push 0x424b60
push 0x208
push eax
lea eax, [ebp - 0x828]
push 0
push eax
push str.BootStrap_Files
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
mov dword [ebp - 8], eax
je 0x40929a
lea eax, [ebp - 0x210]
push eax
call fcn.00412070
cmp byte [eax], 0x40
pop ecx
jne 0x409241
inc eax
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov al, byte [0x41a608]
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0040677a
and byte [eax], 0
pop ecx
pop ecx
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x418]
push str._s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x418]
push 0x80
push eax
call ebx
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 8], 0
jne 0x4091bc
push 0x424b60
lea eax, [ebp - 0xa30]
push 0x208
push eax
push 0
push str.Uninstal
push str.BootStrap
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0xa30]
push eax
push esi
lea eax, [ebp - 0x620]
push str._s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x620]
push 0x80
push eax
call ebx
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40931f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
push edi
lea eax, [ebp - 0x108]
push 1
push eax
call fcn.004097d0
pop ecx
test eax, eax
pop ecx
je 0x40935e
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x108]
push eax
call esi
push dword [ebp + 8]
mov edi, eax
call esi
add edi, eax
cmp edi, 0x104
jle 0x409362
xor eax, eax
jmp 0x40939c
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40938d
test al, 0x10
je 0x40938d
push 1
pop eax
jmp 0x40939c
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
leave
ret
Function at 0x4097d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x409838
xor eax, eax
lea ecx, [ebp - 4]
cmp dword [ebp + 0xc], eax
push ecx
je 0x4097f4
push 2
jmp 0x4097f6
push 0x17
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409838
mov edi, dword [ebp + 8]
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jl 0x409838
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
cmp byte [eax + edi - 2], 0x5c
je 0x409848
push edi
call esi
cmp eax, 0x103
jl 0x40983c
xor eax, eax
jmp 0x40984b
push 0x41c030
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x4098ce
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x409909
cmp dword [ebp + 0xc], 0
je 0x4098f9
lea eax, [ebp - 4]
push eax
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x409909
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
jge 0x40990d
xor eax, eax
leave
ret
mov eax, dword [ebp - 8]
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
push 1
pop eax
leave
ret

Function at 0x40991e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], 0xc
push edi
call esi
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40998f
mov ecx, ebx
mov eax, edi
mov dl, byte [eax]
mov byte [ecx], dl
cmp byte [eax], 0xa
jne 0x40996d
cmp byte [eax + 1], 0xd
je 0x40996d
mov byte [ecx], 0xd
inc ecx
mov byte [ecx], 0xa
inc eax
inc ecx
cmp byte [eax], 0
jne 0x409957
push ebx
call esi
cmp byte [eax + ebx - 1], 0xa
je 0x40998a
push 0x41c070
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp + 8], ebx
jmp 0x409992
mov dword [ebp + 8], edi
push 0
push 0x80
lea eax, [ebp - 0x10]
push 4
push eax
push 0
push 0x40000000
push 0x420a58
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4099e0
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4099e0
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 8]
call esi
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x4099f3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ba0c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x40ba53
cmp edx, 0x10
jl 0x40ba3f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x40ba2c
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x40ba53
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x40ba4b
and edx, 3
cmp edx, 3
jne 0x40ba67
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x40ba6c
cmp edx, 2
jne 0x40ba78
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x40ba7d
cmp edx, 1
jne 0x40ba83
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret