joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fd0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x40742b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
push edi
push 0x20000
call fcn.00403d7b
mov ebx, eax
add esp, 4
mov dword [esp + 0x24], ebx
mov esi, dword [esp + 0x13c]
mov ecx, 0x8000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 4]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x134], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
je 0x4021de
cmp dword [ecx + 8], ebp
je 0x4021de
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push ebx
call dword [eax]
cmp dword [esp + 0x10], ebp
je 0x4021de
xor edi, edi
mov byte [ebx], 0
mov ebp, ebx
mov dword [esp + 0x18], edi
mov ecx, dword [esi + 4]
mov dword [esp + 0x1c], edi
cmp ecx, edi
je 0x40217b
cmp dword [ecx + 8], edi
je 0x40217b
mov eax, dword [ecx]
lea edx, [esp + 0x1c]
push 1
push edx
push ebp
call dword [eax + 4]
test eax, eax
je 0x402177
cmp dword [esp + 0x1c], edi
je 0x40217b
mov eax, dword [esp + 0x14]
cmp eax, 0x200
jge 0x40217b
mov ecx, eax
mov eax, dword [esp + 0x20]
inc ecx
cmp eax, edi
mov dword [esp + 0x14], ecx
jne 0x402124
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x20], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jae 0x402124
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
push ecx
call fcn.00407306
lea edx, [esp + 0x2c]
push str.RUNDLL32.EXE
push edx
call fcn.00403cf0
add esp, 0xc
test eax, eax
je 0x4021bf
mov esi, dword [esp + 0x13c]
push ebp
push esi
call fcn.00401e50
add esp, 8
test eax, eax
je 0x40215b
push ebp
call fcn.00401940
push 0x5c
push ebp
call fcn.00403d90
add esp, 0xc
test eax, eax
jne 0x402149
mov eax, ebp
push eax
call fcn.00401d60
mov eax, dword [esp + 0x1c]
add esp, 4
inc eax
mov dword [esp + 0x18], eax
push 0x46028c
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add ebp, eax
xor edi, edi
jmp 0x402067
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x18], 1
jl 0x4021bf
lea eax, [esp + 0x28]
push str.RUNDLL32.EXE
push eax
call fcn.00403cf0
add esp, 8
test eax, eax
je 0x4021bf
mov ecx, dword [esp + 0x10]
push ecx
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4021bf
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov dword [esp + 0x134], 0xffffffff
je 0x4021d7
push ebx
call fcn.00403d70
add esp, 4
mov eax, 1
jmp 0x4021f8
cmp ebx, ebp
mov dword [esp + 0x134], 0xffffffff
je 0x4021f6
push ebx
call fcn.00403d70
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x402220
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x407467
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebp
push esi
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x94
xor ebp, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x10], ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
je 0x402271
mov edx, dword [ecx]
call dword [edx + 8]
cmp dword [esp + 0x28], 2
jne 0x4022ac
push 0x48
call fcn.00403d7b
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebp
mov dword [esp + 0xb4], ebp
je 0x4022a1
mov ecx, eax
call fcn.004023f0
mov dword [esp + 0x10], eax
jmp 0x402385
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x402385
push 0x37c
call fcn.00403d7b
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ebp
mov dword [esp + 0xb4], 1
je 0x40237f
lea edx, [esi + 0x30]
mov ecx, 0x4a
xor eax, eax
mov edi, edx
mov dword [esi + 8], ebp
mov dword [esi], 0x408170
rep stosd dword es:[edi], eax
or eax, 0xffffffff
push str.KERNEL32.DLL
mov dword [edx], 0x128
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 4], 3
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebp
je 0x402381
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push edi
call ebx
push str.Process32First
push edi
mov dword [esi + 0xc], eax
call ebx
push str.Process32Next
push edi
mov dword [esi + 0x10], eax
call ebx
push str.Module32First
push edi
mov dword [esi + 0x14], eax
call ebx
push str.Module32Next
push edi
mov dword [esi + 0x18], eax
call ebx
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x1c], eax
cmp ecx, ebp
pop ebx
je 0x402381
cmp dword [esi + 0x10], ebp
je 0x402381
cmp dword [esi + 0x14], ebp
je 0x402381
cmp dword [esi + 0x18], ebp
je 0x402381
cmp eax, ebp
je 0x402381
mov ecx, esi
mov dword [esi + 8], 1
call fcn.004029a0
jmp 0x402381
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xb4], 2
call fcn.00401990
xor esi, esi
cmp esi, 0x200
jge 0x4023b1
lea eax, [esp + 0xc]
inc esi
push eax
call fcn.00401fd0
add esp, 4
cmp eax, ebp
jne 0x402397
mov ecx, dword [esp + 0x10]
pop edi
pop esi
cmp ecx, ebp
mov dword [esp + 0xac], 0xffffffff
pop ebp
je 0x4023cc
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
add esp, 0xac
ret
Function at 0x402c00
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4074c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x18]
mov dword [esp + 0x240], ebx
push eax
push 0xf003f
push ebx
push str.CLSID
push 0x80000000
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402c57
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, 0x45fcac
mov dword [esp + 0x24], eax
mov ebp, 0x100
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push edx
push 0x2001f
push ebx
push eax
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402daf
lea ecx, [esp + 0x14]
call fcn.00401bc0
mov ecx, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x14], ecx
jne 0x402daf
lea edx, [esp + 0x30]
lea eax, [esp + 0x18]
push edx
push ebx
push ebx
push ebx
lea edx, [esp + 0x48]
push eax
push edx
push ebx
push ecx
mov dword [esp + 0x38], ebp
call edi
test eax, eax
jne 0x402da6
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push 0x2001f
push eax
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x24c], 2
call fcn.00402e10
mov esi, eax
cmp esi, ebx
jne 0x402d73
lea edx, [esp + 0x28]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x148]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x40], ebp
call edi
test eax, eax
jne 0x402d58
lea eax, [esp + 0x138]
lea ecx, [esp + 0x10]
push eax
call fcn.00401be0
mov esi, eax
cmp esi, ebx
jne 0x402d73
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea eax, [esp + 0x148]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x40], ebp
call edi
test eax, eax
je 0x402d1c
lea ecx, [esp + 0x10]
call fcn.00401bc0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.00401bc0
cmp esi, ebx
jne 0x402daf
lea ecx, [esp + 0x30]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push ebx
push ebx
push ebx
lea eax, [esp + 0x48]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x38], ebp
call edi
test eax, eax
je 0x402ccd
lea ecx, [esp + 0x14]
call fcn.00401bc0
lea ecx, [esp + 0x14]
mov byte [esp + 0x240], bl
call fcn.00401bc0
mov eax, dword [esp + 0x24]
add eax, 0x30
cmp eax, str.CNSMIN
mov dword [esp + 0x24], eax
jl 0x402c6b
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
cmp eax, ebx
pop ebx
je 0x402de8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x234
ret
Function at 0x402e60
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push ecx
lea eax, [esp]
push edi
xor edi, edi
push eax
push 0xf003f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402e8b
mov edi, dword [esp + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
mov esi, str.CNSMIN
push esi
push edi
call ebx
add esi, 0x20
cmp esi, str.9A578C98_3C2F_4630_890B_FC04196EF420
jl 0x402e98
pop esi
pop ebx
test edi, edi
je 0x402eb4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop ecx
ret

Function at 0x402ec0
Capabilities:
Delete registry key

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftInternet_ExplorerActiveX_Compatibility
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402f15
push esi
push edi
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
mov esi, str.9A578C98_3C2F_4630_890B_FC04196EF420
mov ecx, dword [esp + 8]
push esi
push ecx
call edi
add esi, 0x30
cmp esi, 0x45ff4c
jl 0x402eee
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ecx
ret
mov eax, 1
pop ecx
ret
Function at 0x402f20
Capabilities:
Delete registry key
Set registry value

Disassembly:
sub esp, 0xc8
mov ecx, 0xf
xor eax, eax
lea edx, [esp + 0xc]
push ebp
push esi
push edi
mov esi, str.SOFTWAREMicrosoftInternet_ExplorerActiveX_Compatibility_
lea edi, [esp + 0x98]
xor ebp, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x20
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea edi, [esp + 0x98]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xd8]
not ecx
dec ecx
test eax, eax
je 0x403062
lea ecx, [esp + ecx + 0x18]
push ebx
mov dword [esp + 0x14], ecx
mov ebx, 0x45ff4c
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
mov byte [edx], 0
sub edi, ecx
lea edx, [esp + 0x1c]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
mov dword [esp + 0x10], eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40300c
test ebp, ebp
je 0x403008
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.Compatibility_Flags
push ebp
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test ebp, ebp
je 0x403038
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
add ebx, 0x30
cmp ebx, str.SeShutdownPrivilege
jl 0x402f9c
test ebp, ebp
pop ebx
je 0x403053
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc8
ret
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
push ecx
push 0xf003f
push 0
push str.SOFTWAREMicrosoftInternet_ExplorerActiveX_Compatibility
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40308e
mov ebp, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, 0x45ff4c
push esi
push ebp
call edi
add esi, 0x30
cmp esi, str.SeShutdownPrivilege
jl 0x403099
test ebp, ebp
je 0x403053
jmp 0x40304c
Function at 0x4030b0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
sub esp, 0x108
lea eax, [esp + 4]
push ebx
push esi
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4031ae
mov edi, dword [esp + 0x118]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 2
mov ecx, ebx
push eax
push eax
and ecx, 3
lea eax, [esp + 0x24]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4031ae
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x535dc
push 0x40c6d0
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0x460478
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
add esp, 0x108
ret
Function at 0x4069c2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x460920
cmp edx, dword [eax]
je 0x4069e4
add eax, 8
inc ecx
cmp eax, 0x4609b0
jl 0x4069d5
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x460920]
jne 0x406b12
mov eax, dword [0x460fe8]
cmp eax, 1
je 0x406aec
test eax, eax
jne 0x406a15
cmp dword [0x460774], 1
je 0x406aec
cmp edx, 0xfc
je 0x406b12
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406a4c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406e30
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406f20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406a8f
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406f20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408510
push edi
call fcn.00407030
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406e30
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406e40
lea eax, [ebp - 0xa0]
push 0x4084f0
push eax
call fcn.00406e40
push dword [esi + 0x460924]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406e40
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406f9b
add esp, 0x2c
pop edi
jmp 0x406b12
lea eax, [ebp + 8]
lea esi, [esi + 0x460924]
push 0
push eax
push dword [esi]
call fcn.00406f20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10003380
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x100033a4
test byte [ebx + 0x10], 2
jne 0x100033c8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x100033b3
mov dword [esp], eax
call sym._cmsCloseProfile
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
sub esp, 0x10
test eax, eax
je 0x10003400
test byte [0x10040090], 2
jne 0x10003440
mov eax, dword [ebx + 0xc]
jmp 0x10003398
lea eax, [ebp - 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
test eax, eax
je 0x100033f0
mov eax, dword [ebp - 8]
cmp dword [ebx + 0x18], eax
jne 0x100033f0
jmp 0x100033f9
mov dword [esp + 0xc], str.Unable_to_write_color_profile_n
mov dword [esp + 8], str.close_profile
mov dword [esp + 4], 0x10040090
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_2
jmp 0x100033f9

Function at 0x100040a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test byte [0x10040090], 8
jne 0x100040f0
test esi, esi
jne 0x100040e0
test ebx, ebx
je 0x100040e0
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], 0
add esp, 0x18
pop ebx
pop esi
pop edi
pop ebp
jmp sym._GetColorDirectoryW_12.part.0
add esp, 0x18
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.___p___p___n
mov dword [esp + 8], str.GetColorDirectoryW
mov dword [esp + 4], 0x10040090
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x100040bb
Function at 0x10005270
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 0xc]
test byte [0x10040090], 8
jne 0x100052b8
mov ecx, dword [ebp + 8]
test ecx, ecx
jne 0x100052a8
test ebx, ebx
je 0x100052a8
mov edx, dword [ebp + 0x10]
mov eax, 1
test edx, edx
jne 0x100052f0
mov ebx, dword [ebp - 4]
leave
ret 0xc
mov ebx, dword [ebp - 4]
xor eax, eax
leave
ret 0xc
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp + 0x10]
mov dword [esp + 0xc], str.___s___x___n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov dword [esp + 8], str.UninstallColorProfileW
mov dword [esp + 4], 0x10040090
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_2
jmp 0x10005283
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileW]
mov ebx, dword [ebp - 4]
sub esp, 4
leave
ret 0xc
Function at 0x10005b50
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, eax
sub esp, 0x2d4
cmp word [eax], 0
mov dword [ebp - 0x2b8], ecx
mov dword [ebp - 0x2a0], 1
mov dword [ebp - 0x29c], eax
je 0x10005dd0
add eax, 2
cmp word [eax], 0
jne 0x10005b80
sub eax, ebx
add eax, 2
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x2a0]
mov dword [esp + 0xc], 3
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym.mscms.dll_OpenColorProfileW
sub esp, 0x10
mov esi, eax
test eax, eax
je 0x10005d90
lea eax, [ebp - 0x294]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym.mscms.dll_GetColorProfileHeader
sub esp, 8
test eax, eax
je 0x10005d60
mov ecx, dword [sym.imp.advapi32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2b4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], eax
mov dword [ebp - 0x2bc], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersionICM
mov dword [esp], 0x80000002
call ecx
lea edx, [ebp - 0x214]
mov eax, ebx
sub esp, 0x24
call sym._basename
mov eax, dword [ebp - 0x288]
mov dword [esp + 8], str._c_c_c_c
mov dword [esp + 4], 5
movzx ebx, al
mov dword [esp + 0x18], ebx
movzx ebx, ah
mov dword [esp + 0x14], ebx
mov ebx, eax
shr eax, 0x18
shr ebx, 0x10
mov dword [esp + 0xc], eax
movzx ebx, bl
mov dword [esp + 0x10], ebx
lea ebx, [ebp - 0x2aa]
mov dword [esp], ebx
call sym._swprintf.constprop.0
lea eax, [ebp - 0x2b0]
mov dword [esp + 0x20], 0
mov ecx, dword [ebp - 0x2bc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x2b4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call ecx
lea edx, [ebp - 0x214]
sub esp, 0x24
test edi, edi
je 0x10005db0
mov eax, dword [ebp - 0x2b8]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 3
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2b0]
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
sub esp, 0x18
mov eax, dword [ebp - 0x2b0]
mov ebx, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x2b4]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [esp], esi
call sym.mscms.dll_CloseColorProfile
mov edx, 1
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
mov dword [ebp - 0x2b8], eax
call sym.mscms.dll_CloseColorProfile
mov edx, dword [ebp - 0x2b8]
mov eax, dword fs:[0x18]
sub esp, 4
mov dword [eax + 0x34], 0x7db
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword fs:[0x18]
xor edx, edx
mov dword [eax + 0x34], 0x7db
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2b0]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegDeleteValueW]
sub esp, 8
jmp 0x10005d24
mov eax, 2
jmp 0x10005b8e
Function at 0x1000acd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov eax, dword [edi]
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fread]
cmp ebx, eax
jne 0x1000ad10
add esp, 0x14
pop ebx
pop esi
pop edi
pop ebp
ret
imul ebx, esi
mov dword [esp + 8], str.Read_error._Got__d_bytes__block_should_be_of__d_bytes
imul eax, esi
mov dword [esp + 4], 1
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], eax
mov eax, dword [edi + 4]
mov dword [esp], eax
call sym._cmsSignalError
add esp, 0x14
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x1000add0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov edx, 1
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x1000ae0e
add dword [ecx + 8], eax
mov edx, dword [ecx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 1
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
xor edx, edx
cmp eax, 1
sete dl
leave
mov eax, edx
ret