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

Disassembly:
cmp ecx, dword [0x100c004]
jne 0x1009505
test ecx, 0xffff0000
jne 0x1009505
ret
jmp fcn.0100950f

Function at 0x100a040
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.0100a144
test eax, eax
je 0x100a05a
mov eax, dword [0x1010444]
test eax, eax
je 0x100a05a
pop ebp
jmp eax
pop ebp
jmp fcn.01009ec4
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x40892d
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop eax
or ebx, ebx
call fcn.00408955
add edi, 0x17efd4f3
or edi, ebx
xor dword [esi], eax
inc esi
cmp esi, ecx
jne fcn.0040892d
mov ebx, 0xc557326d
add ebx, 0x8b85abcb
ret
Function at 0x4104a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 1
je 0x4104b9
cmp dword [ebp + 8], 4
jne 0x4104c0
mov al, 1
jmp 0x410681
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x47f110
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x410544
mov dword [ebp - 0x18], 4
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0x47f13c
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x41055b
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.RealTek_Customer_Tool_Configuration_Parameters
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4105b5
mov dword [ebp - 0x18], 4
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push 0x47f17c
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x4105cc
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.RealTek_USBIIC_Drivers
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x410626
mov dword [ebp - 0x18], 4
mov dword [ebp - 8], 4
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push str.RTDTool_Version
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x41063d
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jbe 0x41064d
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x20], ecx
jmp 0x410653
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x14]
jbe 0x410669
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x24], edx
jmp 0x41066f
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x64
jae 0x41067f
xor al, al
jmp 0x410681
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x415b3f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4692b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x18]
call fcn.0040dfd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040dfd0
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x28]
add ecx, 0x248
call fcn.0040e100
test eax, eax
je 0x415ba1
mov eax, dword [0x46e8e0]
push eax
lea ecx, [ebp - 0x18]
call fcn.004606a3
jmp 0x415c13
mov ecx, dword [ebp - 0x28]
add ecx, 0x248
push ecx
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.00415d10
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00460653
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0046051a
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x254]
mov ecx, dword [eax*4 + 0x486928]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x24c]
mov ecx, dword [eax*4 + 0x486940]
push ecx
mov edx, dword [ebp - 0x14]
push edx
push str._s___s____s_
lea eax, [ebp - 0x18]
push eax
call fcn.0045b306
add esp, 0x14
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.00415f62
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00460749
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00460653
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.0046051a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.0046051a
lea ecx, [ebp - 0x18]
call fcn.0040dff0
push eax
mov ecx, dword [ebp - 0x28]
call fcn.0045fb7f
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [0x46e8e4]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x18]
call fcn.0040e000
push eax
lea ecx, [ebp - 0x18]
call fcn.0040e000
push eax
lea ecx, [ebp - 0x18]
call fcn.0046094a
push eax
push 1
push 0
mov ecx, dword [0x46e8e8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00460999
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0046051a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0046051a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x41c2e6
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4698f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp + 0xc]
call fcn.0040dff0
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41c344
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0x14], 0
je 0x41c354
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0046051a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x41c37c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.0040dff0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41c3d1
mov ecx, dword [ebp + 8]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 1
test eax, eax
je 0x41c3d1
mov ecx, dword [ebp - 4]
and ecx, 0xfffffffe
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esp, ebp
pop ebp
ret 4
Function at 0x41cf87
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x469990
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x14]
call fcn.0040dfd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004458e7
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 1
push str..
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.004607af
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x14]
call fcn.00460653
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.0046051a
push 0
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
lea ecx, [ebp - 0x30]
call fcn.004459aa
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41d0a4
lea ecx, [ebp - 0x30]
call fcn.00445bca
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00445c99
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00460653
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0046051a
lea ecx, [ebp - 0x30]
call fcn.00445b91
test eax, eax
je 0x41d068
jmp 0x41d014
lea ecx, [ebp - 0x30]
call fcn.0041d250
test eax, eax
je 0x41d084
push 1
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.0041cf87
jmp 0x41d09f
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x3c]
call fcn.0041c37c
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41d014
lea ecx, [ebp - 0x30]
call fcn.00445960
cmp dword [ebp + 0xc], 0
je 0x41d0c1
mov ecx, dword [ebp + 8]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00445924
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0046051a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x438e6c
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ae39
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x10]
call fcn.0040dfd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040dfd0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x5ec], 0
je 0x438ecd
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x5ec]
push edx
call fcn.00410490
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x5ec], 0
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x558], 0
je 0x438f32
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x55c], 0
jne 0x438f32
push 4
push 0x483f84
push str.Do_you_want_to_save_the_settings_
mov ecx, dword [ebp - 0x1c]
call fcn.0045e9cf
cmp eax, 6
jne 0x438f32
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x28c]
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0043c1f1
mov ecx, dword [ebp - 0x1c]
call fcn.0042fd8b
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x55c], 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x558], 0
push 0x2e
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4e0
call fcn.0045afa3
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4e0
call fcn.0040e000
sub eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4e0
call fcn.0045ada2
push str._backup.bin
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4e0
call fcn.004608f6
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4e0
call fcn.0040dff0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x438faa
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4e0
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0046051a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0046051a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x43bdc5
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b1d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov dword [ebp - 0x20], ecx
push 0x4871d0
lea ecx, [ebp - 0x14]
call fcn.00460588
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x20]
add eax, 0x1120c
push eax
push 0x484138
lea ecx, [ebp - 0x14]
push ecx
call fcn.0045b306
add esp, 0xc
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [str.RealTek_DebugTool_Configuration_Parameters]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x14]
call fcn.0040e000
push eax
lea ecx, [ebp - 0x14]
call fcn.0040e000
push eax
lea ecx, [ebp - 0x14]
call fcn.0046094a
push eax
push 1
push 0
mov ecx, dword [str.isp_title]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00460999
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.0043f19c
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00460749
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00460653
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0046051a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.0046051a
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
mov ecx, dword [ebp - 0x20]
call fcn.0045fb7f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0046051a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x443836
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b5e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x14]
call fcn.0040dfd0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0040dfd0
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x2c]
add eax, 0x11f70
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x10]
call fcn.0040dfd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0040dfd0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.0040dfd0
mov byte [ebp - 4], 4
mov ecx, dword [str.ISP__PSI.ini]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x570]
push eax
push 0x484604
lea ecx, [ebp - 0x10]
push ecx
call fcn.0045b306
add esp, 0x10
mov edx, dword [str.hdcpkey.bin]
push edx
push 0x48460c
lea eax, [ebp - 0x14]
push eax
call fcn.0045b306
add esp, 0xc
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x570]
push eax
push 0x484610
lea ecx, [ebp - 0x28]
push ecx
call fcn.0045b306
add esp, 0x10
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x443949
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
and edx, 1
test edx, edx
je 0x443949
mov eax, dword [ebp - 0x24]
and al, 0xfe
push eax
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x14]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [ebp - 0x28]
call fcn.0040dff0
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.0040dff0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [str.hdcpkey.bin]
push ecx
push 0x484618
lea edx, [ebp - 0x20]
push edx
call fcn.0045b306
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x11f74
call fcn.00460653
lea ecx, [ebp - 0x10]
call fcn.0040dff0
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x11f74
call fcn.0040dff0
push eax
lea ecx, [ebp - 0x20]
call fcn.0040dff0
push eax
mov ecx, dword [str.Saved_hdcpkey]
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.0046051a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.0046051a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0046051a
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0046051a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0046051a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4520dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x485be0
cmp edx, dword [eax]
je 0x4520ff
add eax, 8
inc ecx
cmp eax, 0x485c70
jl 0x4520f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x485be0]
jne 0x45222d
mov eax, dword [0x48940c]
cmp eax, 1
je 0x452207
test eax, eax
jne 0x452130
cmp dword [0x4854d4], 1
je 0x452207
cmp edx, 0xfc
je 0x45222d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x452167
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00454220
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0044d290
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4521aa
lea eax, [ebp - 0x1a4]
push eax
call fcn.0044d290
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x472c2c
push edi
call fcn.004557c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00454220
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00454230
lea eax, [ebp - 0xa0]
push 0x472c0c
push eax
call fcn.00454230
push dword [esi + 0x485be4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00454230
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00455737
add esp, 0x2c
pop edi
jmp 0x45222d
lea eax, [ebp + 8]
lea esi, [esi + 0x485be4]
push 0
push eax
push dword [esi]
call fcn.0044d290
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 0x45a700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0044d690
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x45a7cb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x45a7cb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45a77e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x45a789
or bh, 8
and edi, 0x8000000
je 0x45a7a4
mov eax, dword [0x48abdc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x45a7cb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret