joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ea9d
Capabilities:
Set environment variable

Disassembly:
push 0x10
mov eax, 0x4cc32f
call fcn.004b17f0
mov edi, ecx
and dword [ebp - 4], 0
push 0
push ecx
lea ebx, [edi + 0x50]
mov ecx, esp
mov dword [ebp - 0x14], esp
push ebx
call fcn.0042340a
push ecx
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.BaseDirName
call fcn.0042341f
push ecx
mov byte [ebp - 4], 2
mov eax, esp
mov dword [ebp - 0x18], esp
push dword [edi + 0xc]
mov esi, str.SoftwareVOS_s
push esi
push eax
call fcn.00466a00
add esp, 0xc
mov byte [ebp - 4], 3
call fcn.00478650
push eax
mov byte [ebp - 4], 0
call fcn.00467bc0
add esp, 0x14
and eax, 1
push 0
push ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00423aca
push ecx
mov byte [ebp - 4], 4
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.CarrierExeName
call fcn.0042341f
push ecx
mov byte [ebp - 4], 5
mov eax, esp
mov dword [ebp - 0x1c], esp
push dword [edi + 0xc]
push esi
push eax
call fcn.00466a00
add esp, 0xc
mov byte [ebp - 4], 6
call fcn.00478650
push eax
mov byte [ebp - 4], 0
call fcn.00467bc0
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
and dword [ebp - 0x10], eax
add esp, 0x14
push dword [edi + 0xc]
push str.CAMEYO_RO_APPID
call esi
add edi, 0x5c
push dword [edi]
push str.CAMEYO_RO_CARRIEREXE
call esi
push 0x5c
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push edi
call fcn.0042340a
lea eax, [ebp - 0x14]
push eax
call fcn.00467040
add esp, 0xc
push dword [eax]
push str.CAMEYO_RO_CARRIERDIR
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
push dword [ebx]
push str.CAMEYO_RO_BASEDIRNAME
call esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042101a
xor eax, eax
cmp dword [ebp - 0x10], eax
sete al
call fcn.004b18c8
ret

Function at 0x42ebcd
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push ecx
mov dword [ebp - 4], esp
mov edi, esp
push 0
push 0
push 0
push ecx
mov ecx, esp
mov dword [ebp - 4], esp
push str.License.accepted
call fcn.0042341f
push 0
mov ecx, edi
call fcn.00479070
add esp, 0x14
call fcn.00469380
pop ecx
test eax, eax
jne 0x42ec25
push ecx
mov eax, esp
mov dword [ebp - 4], esp
push str._Loader_Main:_EULA_refused
push eax
call fcn.00466a00
pop ecx
pop ecx
call fcn.0042c5e1
pop ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
leave
ret

Function at 0x42ec28
Capabilities:
Encode data using xor

Disassembly:
xor edx, edx
mov eax, ecx
mov dword [ecx + 0x28], edx
push esi
mov esi, dword [eax]
xor dword [ecx + 0x28], esi
lea esi, [edx + 0x21]
xor dword [eax], esi
add eax, 4
inc edx
cmp edx, 0xa
jb 0x42ec30
pop esi
ret
Function at 0x4324fb
Capabilities:
Delete directory
Query or enumerate registry value

Disassembly:
push 0x20
mov eax, 0x4cc1fe
call fcn.004b17f0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.0049d1fb
push eax
lea ecx, [ebp - 0x10]
call fcn.0042149e
push ecx
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.Loader_UnregisterApp_Shortcuts_NewDirs
mov dword [ebp - 0x24], 1
call fcn.0042341f
call fcn.0042c5e1
push dword [0x50a154]
mov edi, str.SoftwareVOS_s
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00466a00
mov esi, str.IntegratedLnkNewDirs
push esi
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 1
call fcn.0042366e
add esp, 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push 9
mov byte [ebp - 4], 2
mov eax, dword [eax]
push ebx
push eax
call fcn.00478650
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov dword [ebp - 0x14], eax
call fcn.0042101a
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0042101a
cmp dword [ebp - 0x14], ebx
je 0x4325b3
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
mov eax, ebx
call fcn.004b18c8
ret
mov dword [ebp - 0x18], ebx
mov eax, 0x514
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x28], eax
call fcn.004214c6
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x28]
push ecx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0042372d
cmp dword [ebp - 0x14], ebx
je 0x4325f1
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x20], 0x4e1578
cmp eax, ebx
jne 0x43260c
mov dword [ebp - 0x20], str.ERROR
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push str.Loader_UnregisterApp_Shortcuts_NewDirs:_dir_to_remove:__s____s__LE_d_
push ecx
call fcn.00466a00
add esp, 0x14
call fcn.0042c5e1
inc dword [ebp - 0x18]
pop ecx
cmp dword [ebp - 0x14], ebx
je 0x4325b6
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x50a154]
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00466a00
push esi
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.0042366e
add esp, 0x18
mov byte [ebp - 4], 4
push dword [eax]
call fcn.00478650
push eax
call fcn.00467e50
pop ecx
pop ecx
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0042101a
mov ebx, dword [ebp - 0x24]
jmp 0x4325a0
Function at 0x43269b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x4cda6f
call fcn.004b17f0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.0049d1fb
push eax
lea ecx, [ebp - 0x10]
call fcn.0042149e
mov dword [ebp - 4], ebx
push dword [0x50a154]
mov edi, str.SoftwareVOS_s
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00466a00
mov esi, str.IntegratedLnk
push esi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.0042366e
add esp, 0x18
lea ecx, [ebp - 0x1c]
push ecx
push 9
mov byte [ebp - 4], 2
mov eax, dword [eax]
push ebx
push eax
call fcn.00478650
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov dword [ebp - 0x14], eax
call fcn.0042101a
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0042101a
cmp dword [ebp - 0x14], ebx
je 0x432737
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
mov eax, ebx
call fcn.004b18c8
ret
mov dword [ebp - 0x18], ebx
mov eax, 0x514
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], eax
call fcn.004214c6
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0042372d
cmp dword [ebp - 0x14], ebx
jne 0x4327c8
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00423aca
call fcn.0046a050
pop ecx
mov dword [ebp - 0x14], 0x4e1578
cmp eax, ebx
jne 0x432799
mov dword [ebp - 0x14], str.ERROR
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push str.Loader_UnregisterApp_Shortcuts:_Lnk_to_remove:__s____s__LE_d_
push ecx
call fcn.00466a00
add esp, 0x14
call fcn.0042c5e1
inc dword [ebp - 0x18]
pop ecx
jmp 0x43273a
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004324fb
push dword [0x50a154]
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00466a00
push esi
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 3
call fcn.0042366e
add esp, 0x18
mov byte [ebp - 4], 4
push dword [eax]
call fcn.00478650
push eax
call fcn.00467e50
pop ecx
pop ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0042101a
xor ebx, ebx
inc ebx
jmp 0x432724

Function at 0x432c71
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x4cc103
call fcn.004b17f0
and dword [ebp - 4], 0
push 0x4da15c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042366e
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
push dword [ebp + 8]
push 0x4e2150
call fcn.004643c0
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042101a
call fcn.004b18c8
ret
Function at 0x432d49
Capabilities:
Set file attributes

Disassembly:
push 8
mov eax, 0x4cb58f
call fcn.004b17f0
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
push 0x4d9c38
call fcn.0042341f
push 3
push esi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x10], eax
cmp eax, esi
je 0x432df4
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov ebx, eax
cmp ebx, esi
je 0x432ddc
mov esi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push ebx
mov edi, 0x46c510
push edi
push 3
push dword [ebp - 0x10]
call esi
push ebx
push edi
push 0xe
push dword [ebp - 0x10]
call esi
push ebx
push edi
push 0x10
push dword [ebp - 0x10]
call esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test eax, eax
jne 0x432de9
push str.Cannot_commit_to_target_file__write_permission_required_
jmp 0x432de1
push str.Cannot_begin_to_update_target_file
mov ecx, dword [ebp + 8]
call fcn.00423ef4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x432e01
mov ecx, dword [ebp + 8]
push str.Cannot_open_source_file
call fcn.00423ef4
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
mov eax, dword [ebp + 8]
call fcn.004b18c8
ret
Function at 0x435b64
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24
mov eax, 0x4cd9f9
call fcn.004b17f0
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0x50
jge 0x435d4b
call fcn.0049d1fb
push eax
lea ecx, [ebp - 0x24]
call fcn.0042149e
mov eax, 0x400
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.004ac152
mov dword [ebp - 0x14], eax
mov eax, esp
mov dword [ebp - 0x20], esp
push dword [ebp + 0xc]
push str.AppNameGuess:_OnUninstallerKey:__s
push eax
call fcn.00466a00
add esp, 8
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.General
call fcn.0042341f
push 1
mov byte [ebp - 4], 1
call fcn.0046b810
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push eax
push esi
push str.DisplayName
push dword [ebp + 8]
call edi
test eax, eax
jne 0x435d37
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0042341f
push str.Microsoft_Visual_C
xor ecx, ecx
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00423532
cmp eax, 0xffffffff
je 0x435c3c
push str.Redistributable
xor ecx, ecx
call fcn.00423532
cmp eax, 0xffffffff
jne 0x435d2c
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x435c50
push 0x4df03c
mov ecx, ebx
call fcn.00428f7c
mov esi, dword [ebp - 0x14]
push esi
mov ecx, ebx
call fcn.0042898a
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push str.Publisher
push dword [ebp + 8]
call edi
test eax, eax
jne 0x435c7d
mov ecx, dword [ebp + 0x10]
push esi
call fcn.00423478
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x1c]
push eax
push 0
push str.DisplayVersion
push dword [ebp + 8]
call edi
test eax, eax
jne 0x435c9f
mov ecx, dword [ebp + 0x14]
push esi
call fcn.00423478
push ecx
mov ecx, dword [ebp + 0x14]
mov eax, esp
mov dword [ebp - 0x28], esp
push dword [ecx]
mov ecx, dword [ebp + 0x10]
push dword [ecx]
push dword [ebx]
push str.AppNameGuess:_RegAppName_s__RegPublisher_s__RegVersion_s
push eax
call fcn.00466a00
add esp, 0x10
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.General
mov byte [ebp - 4], 4
call fcn.0042341f
push 1
mov byte [ebp - 4], 3
call fcn.0046b810
add esp, 0xc
push ebx
lea ecx, [ebp - 0x20]
call fcn.00423aca
push str._REMOVE_ONLY_
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00428a52
xor ecx, ecx
mov esi, eax
call fcn.00423532
mov esi, eax
cmp esi, 0xffffffff
je 0x435d21
push str._REMOVE_ONLY_
call fcn.004ab8ea
pop ecx
push esi
push ebx
call fcn.004234b6
call fcn.00423a19
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
push dword [ebp - 0x14]
call fcn.004ac035
pop ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042101a
call fcn.004b18c8
ret
Function at 0x436d28
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x8c], edi
je 0x436d6a
mov ecx, esi
call fcn.0043776f
test eax, eax
je 0x436d6f
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x43708c
push edi
push edi
call fcn.004aef74
add esp, 0x18
mov dword [esi + 0xa8], eax
cmp eax, edi
je 0x436d6a
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop edi
leave
ret
mov eax, dword [esi + 0xb0]
cmp eax, edi
je 0x436d6a
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb0]
push edi
mov ecx, dword [eax]
neg edx
push edx
push dword [ebp - 8]
push dword [ebp - 4]
push edi
push dword [esi + 0x68]
push dword [esi + 0x64]
push edi
push edi
push dword [esi + 0x90]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x436d6a
push edi
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
inc eax
jmp 0x436d6c

Function at 0x436dcf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.0049f55d
mov eax, dword [eax + 0xc]
push 0x4de338
push 0x3ed
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x436e7c
call fcn.0049f55d
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x436e7c
call fcn.0049f55d
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x436e7c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x436e75
test ebx, ebx
je 0x436e75
push edi
push eax
push ebx
call fcn.004abb70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push edi
push esi
call fcn.00436876
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x436e7e
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x437d82
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x4cb54b
call fcn.004b17f0
and dword [ebp - 4], 0
push dword [ebp + 8]
push 0x4e3f20
call fcn.004643c0
pop ecx
pop ecx
push 0x4da15c
lea ecx, [ebp + 8]
call fcn.00428f7c
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00424970
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.004af275
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push str.Loader:
push eax
call fcn.004236c3
add esp, 0x10
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00423aeb
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042101a
call fcn.004b18c8
ret

Function at 0x43859c
Capabilities:
Terminate process

Disassembly:
push 4
mov eax, 0x4cc103
call fcn.004b17f0
and dword [ebp - 4], 0
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
push ecx
push 0x4e3fc0
push eax
call fcn.004236c3
add esp, 0xc
call fcn.00437d52
cmp dword [ebp + 0xc], 1
pop ecx
jl 0x4385e2
push 0
push 0x4de6b8
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x43f74f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x504c94]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 0x3b8
xor ebx, ebx
lea eax, [esi + 0x54]
push ebx
push eax
call fcn.004ac220
push 0x110
xor edi, edi
inc edi
lea eax, [ebp - 0x114]
push ebx
push eax
mov dword [esi + 0x40c], ebx
mov dword [esi + 0x410], edi
mov dword [esi + 0x414], edi
mov dword [esi + 0x454], ebx
mov dword [esi + 0x458], edi
mov dword [esi + 0x418], ebx
mov dword [esi + 0x438], ebx
mov dword [esi + 0x450], ebx
mov dword [esi + 0x420], ebx
mov dword [esi + 0x45c], ebx
mov dword [ebp - 0x118], 0x114
call fcn.004ac220
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x43f7f2
cmp dword [ebp - 0x114], 5
jae 0x43f7f4
xor edi, edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x41c], edi
pop edi
xor ecx, ebp
pop ebx
call fcn.004aaf83
leave
ret
Function at 0x44f490
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
push ecx
mov byte [ebp - 1], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [eax], edi
call fcn.004ae389
add esp, 4
mov ebx, eax
lea edx, [eax + 2]
jmp 0x44f4c0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x44f4c0
sub eax, edx
sar eax, 1
cmp eax, 5
jb 0x44f514
lea esi, [ebx + eax*2 - 0xa]
mov ecx, str._VAL_
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44f506
cmp dx, di
je 0x44f502
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44f506
add eax, 4
add ecx, 4
cmp dx, di
jne 0x44f4e0
xor eax, eax
jmp 0x44f50b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x44f514
xor edx, edx
mov word [esi], dx
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 0xc]
push ecx
push edi
push ebx
push edx
call esi
cmp eax, 0xea
je 0x44f536
cmp eax, edi
jne 0x44f576
mov eax, dword [ebp - 8]
push eax
call fcn.004ac152
add esp, 4
lea ecx, [ebp - 8]
push ecx
mov edi, eax
mov eax, dword [ebp + 8]
push edi
lea edx, [ebp - 0xc]
push edx
push 0
push ebx
push eax
call esi
test eax, eax
jne 0x44f56d
mov esi, dword [ebp - 8]
call fcn.00495250
mov ecx, dword [ebp + 0xc]
not eax
mov dword [ecx], eax
mov byte [ebp - 1], 1
push edi
call fcn.004ac035
add esp, 4
push ebx
call fcn.004ac035
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452220
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
xor eax, eax
lea ecx, [ebp - 4]
push ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
push 0x4d970c
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], 0x14
mov dword [ebp - 0x24], 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], ebx
call dword [sym.imp.OLEAUT32.dll_OleCreateFontIndirect]
cmp eax, ebx
jl 0x45232d
push edi
lea eax, [ebp + 8]
push eax
push 1
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp + 8]
push 1
mov dword [ebp - 0xc], ebx
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x3c]
call eax
mov edi, eax
cmp edi, ebx
jl 0x452314
mov edx, dword [ebp + 8]
push esi
lea ecx, [ebp - 8]
push ecx
push edx
mov dword [ebp - 8], ebx
call dword [sym.imp.ole32.dll_GetHGlobalFromStream]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push ecx
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, ebx
jne 0x4522eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4522e7
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x452309
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
push ebx
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc0e0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x504c94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x10], esp
push ecx
push str.FileToIco__s_
push eax
call fcn.00466a00
add esp, 0xc
call fcn.004521b0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00423f84
add esp, 8
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor edx, edx
cmp eax, 0xffffffff
setne dl
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
mov edi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4523ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x452428
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4523f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x452417
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push 3
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x452451
mov edx, dword [ebp + 0xc]
push edx
push edi
call fcn.004872a0
add esp, 8
test eax, eax
jne 0x4524df
push ecx
mov ecx, dword [ebp + 8]
mov eax, esp
mov dword [ebp - 0x10], esp
push ecx
push str.FileToIco__s_:_trying_ExtractAssociatedIcon
push eax
call fcn.00466a00
add esp, 0xc
call fcn.004521b0
mov eax, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [eax - 4], 1
jle 0x452490
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp + 8]
call fcn.00421593
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_ExtractAssociatedIconW]
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004ab8cb
add esp, 8
test eax, eax
jl 0x4524f3
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x4524f3
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov word [ecx + eax*2], dx
test esi, esi
je 0x4524df
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.00452220
add esp, 8
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
test edi, edi
je 0x4523ce
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4523ce
push 0x80070057
call fcn.00421000
int3