joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472aa4
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, 0x472794
call fcn.00406414
mov edi, dword [0x476888]
xor eax, eax
push ebp
push 0x472bac
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x449d80]
call fcn.00402da4
mov esi, eax
mov edx, 0x472bc4
mov eax, esi
call fcn.00449e0c
test eax, eax
jne 0x472af5
mov eax, esi
call fcn.00402dd4
jmp 0x472b9e
mov eax, dword [edi]
call fcn.00448ae0
call fcn.0046ca88
mov ecx, dword [0x47666c]
mov eax, dword [edi]
mov edx, dword [0x4699fc]
call fcn.00448af8
mov ecx, dword [0x4767f8]
mov eax, dword [edi]
mov edx, dword [0x46d128]
call fcn.00448af8
mov ecx, dword [0x476664]
mov eax, dword [edi]
mov edx, dword [0x469620]
call fcn.00448af8
mov ecx, dword [0x476714]
mov eax, dword [edi]
mov edx, dword [0x46a814]
call fcn.00448af8
mov ecx, dword [0x4769dc]
mov eax, dword [edi]
mov edx, dword [0x46a334]
call fcn.00448af8
mov eax, dword [0x4767f8]
mov eax, dword [eax]
mov edx, dword [0x47666c]
mov edx, dword [edx]
mov dword [edx + 0x2e0], eax
call fcn.0046cb08
mov eax, dword [0x4767f8]
mov eax, dword [eax]
mov eax, dword [eax + 0x318]
mov bx, 0xffec
call fcn.00402fb0
mov eax, dword [edi]
call fcn.00448b78
mov eax, esi
call fcn.00402dd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472bb3
ret

Function at 0x4012af
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403d14], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403d10], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x4011a6
mov dword [ebp - 0x24], str.cognomen
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403d10]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.invocatory
push str.cognomen
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403d18], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401379
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401360
mov eax, dword [0x403d14]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10

Function at 0x401499
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x10
mov edx, esi
mov eax, 4
mov esi, 0x401116
mov edi, 0x4035f5
dec ecx
call fcn.00401cc6
mov eax, ecx
push edi
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call fcn.004013a1
call fcn.00401c72
mov eax, 0x14
mov ecx, 0x78f
mov esi, 0x401192
mov edi, 0x4014e3
call fcn.00401cc6
xor eax, eax
xor eax, 0x17cf0b66
sub eax, 0x4a88926a
fisttp qword [edi - 0x2d]
sbb al, 0xa9
invalid
Function at 0x401000
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push 0x1fe
lea eax, [ebp - 0x202]
push ebx
push eax
mov word [ebp - 0x204], bx
call fcn.0040bbf0
mov esi, dword [ebp + 8]
add esp, 0xc
cmp word [esi], bx
je 0x401080
push edi
lea edi, [ebp - 0x204]
sub edi, esi
movzx eax, word [esi]
cmp ax, 0x5c
je 0x401053
cmp ax, 0x2f
jne 0x40106d
cmp esi, dword [ebp + 8]
jbe 0x40106d
cmp word [esi - 2], 0x3a
je 0x40106d
push ebx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ax, word [esi]
mov word [edi + esi], ax
inc esi
inc esi
cmp word [esi], bx
mov word [edi + esi], bx
jne 0x401044
pop edi
push ebx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbdc
leave
ret
Function at 0x40109c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x7f4]
sub esp, 0x874
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp + 0x7f0], eax
push ebx
mov ebx, dword [ebp + 0x7fc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push ebx
call edi
test eax, eax
jne 0x4010e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
je 0x4010e0
xor eax, eax
jmp 0x40122a
push esi
xor esi, esi
push 0x24c
lea eax, [ebp - 0x74]
push esi
push eax
mov dword [ebp - 0x78], esi
call fcn.0040bbf0
add esp, 0xc
push ebx
lea eax, [ebp + 0x5e8]
push eax
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp + 0x5e8]
push eax
call esi
cmp word [ebp + eax*2 + 0x5e6], 0x5c
je 0x401149
lea eax, [ebp + 0x5e8]
push eax
call esi
cmp word [ebp + eax*2 + 0x5e6], 0x2f
je 0x401149
push 0x40e2dc
lea eax, [ebp + 0x5e8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x5e8]
push eax
lea eax, [ebp + 0x1d8]
push str._s.
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x7c], eax
jne 0x401185
xor eax, eax
jmp 0x401229
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x5e8]
push eax
lea eax, [ebp + 0x3e0]
push 0x40e2c4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [ebp - 0x78], 0x10
je 0x4011de
push 0x40e2c0
lea eax, [ebp - 0x4c]
push eax
call esi
test eax, eax
je 0x4011eb
push 0x40e2b8
lea eax, [ebp - 0x4c]
push eax
call esi
test eax, eax
je 0x4011eb
lea eax, [ebp + 0x3e0]
push eax
call fcn.0040109c
pop ecx
jmp 0x4011eb
lea eax, [ebp + 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40120e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x40120e
mov dword [ebp - 0x80], 1
cmp dword [ebp - 0x80], 0
je 0x40118b
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call edi
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [ebp + 0x7f0]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040bbdc
add ebp, 0x7f4
leave
ret
Function at 0x401241
Capabilities:
Delete file
Extract resource via kernel32 functions
Move file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a4]
sub esp, 0x224
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp + 0x1a0], eax
mov eax, dword [ebp + 0x1b4]
push ebx
mov ebx, dword [ebp + 0x1ac]
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
movzx eax, word [ebp + 0x1b0]
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, esi
mov dword [ebp - 0x7c], eax
je 0x4013a4
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor eax, eax
cmp dword [ebp + 0x1b8], esi
push esi
setne al
push 0x80
mov ebx, 0x40000000
inc eax
push eax
push esi
push esi
push ebx
push dword [ebp - 0x70]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x40130f
mov edi, dword [ebp - 0x78]
push esi
lea ecx, [ebp - 0x74]
push ecx
push edi
push dword [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401304
cmp dword [ebp - 0x74], edi
mov dword [ebp - 0x6c], 1
je 0x401307
mov dword [ebp - 0x6c], esi
push dword [ebp - 0x80]
jmp 0x40139e
push dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push eax
call fcn.0040bc94
lea eax, [ebp - 0x68]
push 0x40e2e0
push eax
call fcn.0040bc6a
add esp, 0x10
push esi
push 0x80
push 2
push esi
push esi
push ebx
lea eax, [ebp - 0x68]
push eax
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x4013a4
mov ebx, dword [ebp - 0x78]
push esi
lea eax, [ebp - 0x74]
push eax
push ebx
push dword [ebp - 0x7c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40139d
cmp dword [ebp - 0x74], ebx
jne 0x40139d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 4
push esi
push dword [ebp - 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call esi
test eax, eax
je 0x401391
push 4
push dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push eax
call esi
test eax, eax
je 0x401391
mov dword [ebp - 0x6c], 1
jmp 0x4013a4
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4013a4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x1a0]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbdc
add ebp, 0x1a4
leave
ret
Function at 0x4014b0
Capabilities:
Acquire debug privileges
Enumerate processes on remote desktop session host
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
push 1
mov ebx, str.SeDebugPrivilege
push ebx
call fcn.0040142a
pop ecx
pop ecx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call sub.WTSAPI32.dll_WTSEnumerateProcessesW
test eax, eax
je 0x40153b
cmp dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
jbe 0x401533
push esi
xor esi, esi
push dword [ebp + 8]
mov eax, dword [ebp - 4]
push dword [esi + eax + 8]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40151a
mov eax, dword [ebp - 4]
push dword [esi + eax + 4]
push edi
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
jne 0x40152a
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add esi, 0x10
cmp eax, dword [ebp - 0xc]
jb 0x4014ef
jmp 0x401532
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
push dword [ebp - 4]
call sub.WTSAPI32.dll_WTSFreeMemory
push edi
push ebx
call fcn.0040142a
pop ecx
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x401548
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0040bcb0
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x1004]
push str._s_:__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bbdc
leave
ret

Function at 0x40162e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401696
cmp dword [ebp + 0x10], 1
je 0x40166f
cmp dword [ebp + 0x10], 2
je 0x40166f
push 0xd
pop eax
jmp 0x401696
test edi, edi
mov eax, dword [ebp - 4]
je 0x401690
test eax, eax
je 0x40168c
test al, 1
jne 0x40166a
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x401690
jmp 0x40166a
and word [edi], 0
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x40169c
Capabilities:
Identify system language via api
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x828], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
movzx eax, ax
push eax
mov edi, 0x40e370
lea eax, [ebp - 0x61c]
push edi
push eax
call esi
add esp, 0xc
push dword [ebp - 0x828]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.minisetup.ini
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x414]
push edi
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
mov edi, 0x40e2ec
push ebx
push edi
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x61c]
push eax
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jge 0x401783
lea eax, [ebp - 0x824]
push eax
push str.lang
push str.default
push dword [ebp - 0x828]
call fcn.004013bf
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x414]
push ebx
push edi
push eax
lea eax, [ebp - 0x824]
push eax
call esi
mov ecx, dword [ebp - 4]
pop edi
xor eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.0040bbdc
leave
ret
Function at 0x401795
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xbbc]
sub esp, 0xc3c
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp + 0xbb8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xbc4]
push edi
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.minisetup.ini
lea eax, [ebp + 0x398]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x9b0]
push eax
push 0x40e3a4
mov esi, str.check
push esi
push edi
call fcn.004013bf
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
lea eax, [ebp + 0x9b0]
push eax
call ebx
test eax, eax
je 0x401841
and dword [ebp - 0x7c], 0
push 0x17
push 0
lea eax, [ebp + 0x9b0]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00401595
test eax, eax
mov eax, dword [ebp - 0x7c]
jl 0x401837
test eax, eax
je 0x40182f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
jmp 0x401904
test eax, eax
je 0x401841
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 0x9b0]
push eax
push str.path
push esi
push edi
call fcn.004013bf
add esp, 0x10
lea eax, [ebp + 0x9b0]
push eax
call ebx
test eax, eax
je 0x401902
lea eax, [ebp - 0x78]
push eax
push 0x40e384
push esi
push edi
call fcn.004013bf
lea eax, [ebp + 0x190]
push eax
push str.fname
push esi
push edi
call fcn.004013bf
add esp, 0x20
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x7a8]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x7a8]
xor esi, esi
push eax
inc esi
push 0x80000002
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x401902
lea eax, [ebp + 0x7a8]
push eax
lea eax, [ebp + 0x5a0]
push eax
call fcn.0040bc94
pop ecx
pop ecx
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp + 0x5a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x5a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401902
mov eax, esi
jmp 0x401904
xor eax, eax
mov ecx, dword [ebp + 0xbb8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbdc
add ebp, 0xbbc
leave
ret
Function at 0x40191c
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x1624]
mov eax, 0x16a4
call fcn.0040bcb0
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp + 0x1620], eax
push ebx
mov ebx, dword [ebp + 0x162c]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
lea eax, [ebp + 0x5b0]
push eax
call edi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.minisetup.ini
lea eax, [ebp + 0x5b0]
push eax
call esi
lea eax, [ebp + 0xfb8]
push eax
push 0x40e3a4
push str.check
push ebx
call fcn.004013bf
add esp, 0x10
lea eax, [ebp + 0xfb8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jge 0x4019ae
xor eax, eax
mov ecx, dword [ebp + 0x1620]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbdc
add ebp, 0x1624
leave
ret
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xfb8]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
jl 0x401994
push 0x28
lea eax, [ebp + 0x15d0]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp + 0x15d0]
push eax
lea eax, [ebp + 0x3a8]
push str.CLSID_sInprocServer32
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x20019
lea eax, [ebp + 0x3a8]
push eax
xor ebx, ebx
push 0x80000000
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], ebx
call fcn.004015f9
test eax, eax
je 0x401a21
lea ecx, [ebp - 0x7c]
call fcn.004015e2
jmp 0x401994
push 0x7fe
lea eax, [ebp + 0x7ba]
push ebx
push eax
mov word [ebp + 0x7b8], bx
call fcn.0040bbf0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x7b8]
push eax
push 0x40e2ec
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x400
call fcn.0040162e
test eax, eax
jge 0x401a71
xor esi, esi
lea ecx, [ebp - 0x7c]
call fcn.004015e2
mov eax, esi
jmp 0x401996
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp + 0x7b8]
push eax
call ebx
push str.name.ini
lea eax, [ebp + 0x7b8]
push eax
call esi
lea eax, [ebp + 0x7b8]
push eax
push 0x104
lea eax, [ebp + 0x1a0]
push eax
push str.CooCare.exe
push str.CooCare
push str.ALIAS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x7b8]
push eax
push 0x104
lea eax, [ebp - 0x68]
push eax
push str.CooCareService.exe
push str.CooCareService
push str.ALIAS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp + 0x7b8]
push eax
call ebx
lea eax, [ebp + 0x7b8]
push eax
lea eax, [ebp + 0x13c8]
push eax
call edi
lea eax, [ebp + 0x1a0]
push eax
lea eax, [ebp + 0x13c8]
push eax
call esi
lea eax, [ebp + 0x7b8]
push eax
lea eax, [ebp + 0x11c0]
push eax
call edi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp + 0x11c0]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp + 0x13c8]
push eax
call esi
test eax, eax
je 0x401a60
lea eax, [ebp + 0x11c0]
push eax
call esi
test eax, eax
je 0x401a60
xor esi, esi
inc esi
jmp 0x401a62
Function at 0x401b51
Capabilities:
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x1214]
mov eax, 0x1294
call fcn.0040bcb0
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp + 0x1210], eax
push esi
push edi
mov edi, dword [ebp + 0x121c]
push edi
lea eax, [ebp + 0xdb0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.minisetup.ini
lea eax, [ebp + 0xdb0]
push eax
call esi
lea eax, [ebp + 0xfb8]
push eax
push 0x40e3a4
push str.check
push edi
call fcn.004013bf
add esp, 0x10
lea eax, [ebp + 0xfb8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jge 0x401bdf
xor eax, eax
mov ecx, dword [ebp + 0x1210]
pop edi
xor ecx, ebp
pop esi
call fcn.0040bbdc
add ebp, 0x1214
leave
ret
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0xfb8]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
jl 0x401bc6
push 0x28
lea eax, [ebp + 0x11c0]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp + 0x11c0]
push eax
lea eax, [ebp + 0xba8]
push str.CLSID_sInprocServer32
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x20019
lea eax, [ebp + 0xba8]
push eax
xor edi, edi
push 0x80000000
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], edi
call fcn.004015f9
test eax, eax
je 0x401c52
lea ecx, [ebp - 0x7c]
call fcn.004015e2
jmp 0x401bc6
push 0x7fe
lea eax, [ebp - 0x66]
push edi
push eax
mov word [ebp - 0x68], di
call fcn.0040bbf0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x40e2ec
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x80], 0x400
call fcn.0040162e
test eax, eax
jge 0x401c99
xor esi, esi
lea ecx, [ebp - 0x7c]
call fcn.004015e2
mov eax, esi
jmp 0x401bc8
push ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.name.ini
lea eax, [ebp - 0x68]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x68]
push eax
mov ebx, 0x104
push ebx
lea eax, [ebp + 0x798]
push eax
push str.CooCare.exe
push str.CooCare
mov edi, str.ALIAS
push edi
call esi
lea eax, [ebp - 0x68]
push eax
push ebx
lea eax, [ebp + 0x9a0]
push eax
push str.CooCareService.exe
push str.CooCareService
push edi
call esi
lea eax, [ebp + 0x798]
push eax
call fcn.004014b0
lea eax, [ebp + 0x9a0]
push eax
call fcn.004014b0
pop ecx
pop ecx
xor esi, esi
inc esi
pop ebx
jmp 0x401c8a
Function at 0x401d14
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1268]
mov eax, 0x12e8
call fcn.0040bcb0
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp + 0x1264], eax
push esi
mov esi, dword [ebp + 0x1270]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp + 0x3fc]
push eax
call edi
push str.minisetup.ini
lea eax, [ebp + 0x3fc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x100c]
push eax
push 0x40e3a4
push str.check
push esi
call fcn.004013bf
add esp, 0x10
lea eax, [ebp + 0x100c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x401f26
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x100c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
jl 0x401f26
push 0x28
lea eax, [ebp + 0x1214]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp + 0x1214]
push eax
lea eax, [ebp + 0x1f4]
push str.CLSID_sInprocServer32
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x20019
lea eax, [ebp + 0x1f4]
push eax
xor esi, esi
push 0x80000000
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], esi
call fcn.004015f9
test eax, eax
je 0x401e04
lea ecx, [ebp - 0x28]
call fcn.004015e2
jmp 0x401f26
push 0x7fe
lea eax, [ebp + 0x606]
push esi
push eax
mov word [ebp + 0x604], si
call fcn.0040bbf0
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 0x604]
push eax
push 0x40e2ec
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 0x400
call fcn.0040162e
test eax, eax
jl 0x401df7
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp + 0x604]
push eax
call ebx
push str.ccsetup.exe
lea eax, [ebp + 0x604]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x604]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401f1d
lea eax, [ebp + 0x604]
push eax
lea eax, [ebp + 0xe04]
push eax
call edi
lea eax, [ebp + 0xe04]
push eax
call ebx
lea eax, [ebp + 0x604]
push eax
lea eax, [ebp - 0x14]
push str._s__qn
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0040bbf0
push 0x10
lea eax, [ebp - 0x3c]
push esi
push eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x54], 1
mov word [ebp - 0x50], si
call fcn.0040bbf0
add esp, 0x24
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0xe04]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401f1d
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x3c]
call esi
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x28]
call fcn.004015e2
pop ebx
mov ecx, dword [ebp + 0x1264]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.0040bbdc
add ebp, 0x1268
leave
ret