joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40da4b
Capabilities:
Get user security identifier

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp + 0x90], eax
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp edi, ebx
je 0x40dafb
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jle 0x40dafb
push 0xff
lea eax, [ebp - 0x6f]
push ebx
push eax
mov dword [ebp - 0x74], ebx
mov byte [ebp - 0x70], bl
call fcn.00491e90
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
lea eax, [ebp - 0x78]
push eax
push ebx
push edi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x80], 0x100
mov dword [ebp - 0x7c], 8
call esi
cmp dword [ebp - 0x78], ebx
je 0x40daf6
push dword [ebp - 0x78]
call fcn.0048f372
pop ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
push edi
push ebx
mov dword [ebp - 0x74], eax
call esi
test eax, eax
jne 0x40daf6
push dword [ebp - 0x74]
call fcn.0049168b
pop ecx
mov dword [ebp - 0x74], ebx
mov eax, dword [ebp - 0x74]
jmp 0x40dafd
xor eax, eax
mov ecx, dword [ebp + 0x90]
pop esi
xor ecx, ebp
pop ebx
call fcn.00492093
add ebp, 0x94
leave
ret

Function at 0x40dbbb
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, 0x104
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x110], ecx
test eax, eax
jne 0x40dbfd
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x40dc0e
push ecx
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00492620
add esp, 0xc
mov ecx, edi
lea edi, [ebp - 0x10c]
call fcn.0040da4b
mov edi, eax
test edi, edi
je 0x40dc3f
push dword [esi + 0x24]
call fcn.0049168b
pop ecx
push 0
mov dword [esi + 0x24], edi
push edi
add esi, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorOwner]
xor eax, eax
inc eax
jmp 0x40dc41
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00492093
leave
ret 8
Function at 0x40dd9e
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x10
mov eax, 0x4ba397
call fcn.00492516
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 8]
xor eax, eax
xor ebx, ebx
cmp byte [ebp + 0x14], bl
lea ecx, [ebp - 0x10]
setne al
push ecx
dec eax
and eax, 0xffffff00
add eax, 0x20119
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x40dde4
xor eax, eax
jmp 0x40de87
mov dword [ebp + 0x14], ebx
lea ecx, [ebp - 0x1c]
call fcn.004703d0
push 0x104
push 0x105
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.004710f0
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
inc dword [ebp + 0x14]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1c]
mov edi, eax
call fcn.00471180
cmp edi, ebx
jne 0x40de67
lea ecx, [ebp - 0x1c]
call fcn.0040d4fd
test al, al
jne 0x40de67
push 8
call fcn.00491f0a
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x40de4e
call fcn.004703d0
mov esi, eax
jmp 0x40de50
xor esi, esi
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
mov byte [ebp - 4], bl
call fcn.00470710
mov ecx, dword [ebp + 0x10]
push esi
call fcn.00471930
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00470660
cmp edi, ebx
je 0x40dde7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
call fcn.004925ee
ret

Function at 0x40de8d
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push 0x44
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.00491e90
mov ax, word [ebp + 0xc]
push 0x10
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push esi
push eax
mov dword [ebp - 0x54], 0x44
mov dword [ebp - 0x28], 1
call fcn.00491e90
mov ecx, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call fcn.004710f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40defb
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x40def6
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
xor eax, eax
inc eax
jmp 0x40defd
xor eax, eax
pop esi
leave
ret
Function at 0x40df39
Capabilities:
Compare security identifiers
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1e4
mov eax, dword [0x4fc5b0]
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.00491e90
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 0x40e124
cmp dword [ebp - 0x20], 2
jne 0x40e124
push esi
push edi
push ebx
push 0xf
xor esi, esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x40e061
push 0x124
lea eax, [ebp - 0x154]
push ebx
push eax
call fcn.00491e90
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 0x40e057
lea eax, [ebp - 0x134]
push eax
push str.explorer.exe
call fcn.004928c4
pop ecx
pop ecx
test eax, eax
jne 0x40e044
push dword [ebp - 0x150]
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x40e044
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 0x40e044
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 0x40e06a
lea eax, [ebp - 0x158]
push eax
push edi
mov dword [ebp - 0x158], esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40dfcf
mov esi, ebx
pop edi
mov eax, esi
pop esi
jmp 0x40e127
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 0x40e0a8
xor esi, esi
jmp 0x40e061
push dword [ebp - 0x15c]
call fcn.0048f372
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40e0a4
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x15c]
push edi
push 2
push dword [ebp - 0x160]
call esi
test eax, eax
jne 0x40e0df
push edi
call fcn.00491f8a
pop ecx
jmp 0x40e0a4
mov dword [ebp - 0x160], ebx
cmp dword [edi], ebx
jbe 0x40e112
lea esi, [edi + 4]
push dword [ebp - 0x164]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x40e108
inc ebx
add esi, 8
cmp ebx, dword [edi]
jb 0x40e0ec
jmp 0x40e112
mov dword [ebp - 0x160], 1
push edi
call fcn.00491f8a
mov esi, dword [ebp - 0x160]
pop ecx
jmp 0x40e061
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop ebx
call fcn.00492093
add ebp, 0x78
leave
ret
Function at 0x40e1c2
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x4fc5b0]
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 0x40e2e7
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 0x40e2db
cmp dword [ebp - 0x74], ebx
je 0x40e2db
cmp eax, ebx
je 0x40e2db
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 0x40e2db
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.00491e90
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.004707b0
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 0x40e2db
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.0040d4fd
test al, al
je 0x40e326
push edi
lea eax, [ebp - 0x63]
push ebx
push eax
mov byte [ebp - 0x64], bl
call fcn.00491e90
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 0x40e326
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.004707b0
mov ecx, esi
call fcn.0040d4fd
test al, al
jne 0x40e35a
mov ecx, esi
call fcn.004703e0
cmp byte [esi + 7], 0xff
mov ecx, esi
jne 0x40e342
mov ecx, dword [esi]
cmp byte [ecx + eax - 1], 0x5c
je 0x40e355
push 0x4cf9a0
mov ecx, esi
call fcn.00470ae0
xor eax, eax
inc eax
jmp 0x40e35c
xor eax, eax
mov ecx, dword [ebp + 0x1a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492093
add ebp, 0x1a8
leave
ret
Function at 0x40e57a
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x3dc]
sub esp, 0x45c
mov eax, dword [0x4fc5b0]
xor eax, ebp
mov dword [ebp + 0x3d8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3e4]
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp + 0xc9]
push ebx
push eax
mov byte [ebp + 0xc8], bl
call fcn.00491e90
add esp, 0xc
push esi
lea eax, [ebp + 0xc8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
dec esi
push esi
lea eax, [ebp + 0x2d5]
push ebx
push eax
mov byte [ebp + 0x2d4], bl
call fcn.00491e90
push esi
lea eax, [ebp + 0x1d1]
push ebx
push eax
mov byte [ebp + 0x1d0], bl
call fcn.00491e90
push edi
call fcn.00492a70
add esp, 0x1c
cmp byte [eax + edi - 1], 0x5c
push edi
lea eax, [ebp + 0x1d0]
push eax
je 0x40e636
call fcn.00492970
lea eax, [ebp + 0x1d0]
push 0x4cfa20
push eax
call fcn.00492980
lea eax, [ebp + 0x2d4]
push edi
push eax
call fcn.00492970
push 0x4cf9a0
jmp 0x40e65e
call fcn.00492970
lea eax, [ebp + 0x1d0]
push 0x4cfa1c
push eax
call fcn.00492980
lea eax, [ebp + 0x2d4]
push edi
push eax
call fcn.00492970
push 0x4cfa1a
lea eax, [ebp + 0x2d4]
push eax
call fcn.00492980
add esp, 0x20
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1d0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
jne 0x40e68d
xor eax, eax
jmp 0x40e7a8
lea eax, [ebp + 0x2d4]
push eax
lea eax, [ebp + 0x1d0]
push eax
mov dword [ebp - 0x80], 1
call fcn.00492970
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 0x40e781
lea eax, [ebp - 0x4c]
push 0x4cfa18
push eax
call fcn.00491a80
pop ecx
pop ecx
test eax, eax
je 0x40e78f
lea eax, [ebp - 0x4c]
push 0x4cfa14
push eax
call fcn.00491a80
pop ecx
pop ecx
test eax, eax
je 0x40e78f
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x2d4]
push eax
call fcn.00492980
test byte [ebp - 0x78], 0x10
pop ecx
pop ecx
je 0x40e71b
lea eax, [ebp + 0x2d4]
push eax
call fcn.0040e57a
pop ecx
jmp 0x40e75a
lea eax, [ebp + 0xc8]
push eax
lea eax, [ebp + 0x2d4]
push eax
call fcn.004928c4
pop ecx
pop ecx
test eax, eax
je 0x40e78f
test byte [ebp - 0x78], 1
je 0x40e74d
lea eax, [ebp + 0x2d4]
push 0x80
push eax
call fcn.0049290b
pop ecx
pop ecx
lea eax, [ebp + 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40e76a
push 4
push ebx
lea eax, [ebp + 0x2d4]
push eax
call esi
lea eax, [ebp + 0x1d0]
push eax
lea eax, [ebp + 0x2d4]
push eax
call fcn.00492970
pop ecx
pop ecx
jmp 0x40e78f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40e7c0
mov dword [ebp - 0x80], ebx
cmp dword [ebp - 0x80], ebx
jne 0x40e6af
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp + 0x3d8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00492093
add ebp, 0x3dc
leave
ret
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x40e686
Function at 0x40eea7
Capabilities:
Get disk size

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xb8
mov eax, dword [0x4fc5b0]
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.00491e90
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 0x40eefa
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x94
call edi
mov eax, dword [ebp - 0x20]
dec eax
je 0x40ef1a
dec eax
jne 0x40ef5c
cmp byte [esi + 7], 0xff
jne 0x40ef0b
mov esi, dword [esi]
push ebx
push ebx
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
jmp 0x40ef5c
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 0x40ef2e
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.004933d0
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 0x7c]
cdq
shld edx, eax, 0x14
pop edi
shl eax, 0x14
pop esi
pop ebx
cmp edx, dword [ebp - 0x40]
ja 0x40ef7a
jb 0x40ef76
cmp eax, dword [ebp - 0x44]
jae 0x40ef7a
xor eax, eax
jmp 0x40ef7f
mov eax, 0x80004005
mov ecx, dword [ebp + 0x6c]
xor ecx, ebp
call fcn.00492093
add ebp, 0x70
leave
ret

Function at 0x40f260
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba5c0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4fc5b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x4c], 0
push 0x38
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00491e90
add esp, 0xc
mov dword [ebp - 0x4c], 0x3c
mov dword [ebp - 0x48], 0x440
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], str.open
lea ecx, [ebp + 8]
call fcn.0040d521
mov dword [ebp - 0x3c], eax
lea ecx, [ebp + 0x10]
call fcn.0040d521
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 1
lea ecx, [ebp - 0x4c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40f300
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00470660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00470660
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x410757
Capabilities:
Delete file

Disassembly:
push 0x18
mov eax, 0x4ba8f9
call fcn.00492516
mov eax, dword [ebp + 8]
xor esi, esi
inc esi
cmp eax, esi
jne 0x4107cd
lea ecx, [ebp - 0x14]
call fcn.004703d0
xor esi, esi
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x23
push esi
mov dword [ebp - 4], esi
call fcn.0040e1c2
add esp, 0x14
test eax, eax
jne 0x410797
lea ecx, [ebp - 0x14]
jmp 0x410849
push str.Real_setup_
lea ecx, [ebp - 0x14]
call fcn.00470ae0
push str.config.ini
lea ecx, [ebp - 0x14]
call fcn.00470ae0
cmp dword [ebp + 0xc], esi
jne 0x41078f
cmp byte [ebp - 0xd], 0xff
lea eax, [ebp - 0x14]
jne 0x4107c2
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
jmp 0x41078f
mov edi, SysReAllocString
cmp eax, 3
jne 0x4107d8
dec edi
cmp dword [ebp + 0xc], 0
push eax
jne 0x410803
lea eax, [ebp - 0x14]
push eax
call fcn.0040db14
pop ecx
pop ecx
cmp byte [eax + 7], 0xff
mov dword [ebp - 4], esi
jne 0x4107f5
mov eax, dword [eax]
push eax
push edi
call fcn.0040dcd0
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
jmp 0x410847
lea eax, [ebp - 0x24]
push eax
call fcn.0040db14
push dword [ebp + 0xc]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00470f60
add esp, 0x14
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00470660
cmp byte [ebp - 0x15], 0xff
lea eax, [ebp - 0x1c]
jne 0x41083b
mov eax, dword [ebp - 0x1c]
push eax
push edi
call fcn.0040dcd0
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
mov esi, eax
or dword [ebp - 4], 0xffffffff
call fcn.00470660
mov eax, esi
call fcn.004925ee
ret

Function at 0x41085a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x4fc5b0]
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.0040dcf8
add esp, 0x10
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x410926
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.00491e90
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 0x41091a
test esi, esi
je 0x410908
cmp dword [esi], 4
jne 0x410908
push dword [ebp - 0x74]
mov ecx, ebx
push str.0x_08lx
call fcn.00410380
jmp 0x410913
lea eax, [ebp - 0x74]
push eax
mov ecx, ebx
call fcn.004707b0
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.00492093
add ebp, 0x94
leave
ret
Function at 0x411021
Capabilities:
Copy file

Disassembly:
push 0x34
mov eax, 0x4baa5a
call fcn.00492516
push dword [ebp + 8]
lea ecx, [ebp - 0x20]
call fcn.004705c0
xor esi, esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call fcn.0040d4fd
test al, al
jne 0x41106e
lea ecx, [ebp - 0x20]
call fcn.004703e0
cmp byte [ebp - 0x19], 0xff
lea ecx, [ebp - 0x20]
jne 0x41105d
mov ecx, dword [ebp - 0x20]
cmp byte [ecx + eax - 1], 0x5c
je 0x41106e
push 0x5c
lea ecx, [ebp - 0x20]
call fcn.00470b60
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.004705c0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040d4fd
test al, al
jne 0x4110ae
lea ecx, [ebp - 0x18]
call fcn.004703e0
cmp byte [ebp - 0x11], 0xff
lea ecx, [ebp - 0x18]
jne 0x41109d
mov ecx, dword [ebp - 0x18]
cmp byte [ecx + eax - 1], 0x5c
je 0x4110ae
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00470b60
push 0x4cfc34
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00470f60
add esp, 0xc
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
mov dword [ebp - 0x10], esi
call fcn.004703d0
cmp byte [ebp - 0x11], 0xff
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
jne 0x4110e2
mov eax, dword [ebp - 0x18]
push esi
push eax
call fcn.0040e4bb
mov edi, 0xa0
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040e7ce
add esp, 0x18
jmp 0x41117b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00470f10
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 4
call fcn.00470f10
add esp, 0x18
cmp byte [esi + 7], 0xff
mov byte [ebp - 4], 5
jne 0x41113c
mov esi, dword [esi]
cmp byte [eax + 7], 0xff
jne 0x411144
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00470660
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.00470660
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040e7ce
add esp, 0x10
test eax, eax
jne 0x411105
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00470660
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.00470660
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00470660
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00470660
xor eax, eax
inc eax
call fcn.004925ee
ret