joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d63a
Capabilities:
Copy file

Disassembly:
push 0x10
mov eax, 0x4e30be
call fcn.004c1f48
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x4f59e0
call fcn.004247f7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.0047ec10
pop ecx
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 8]
call fcn.0042af10
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x43d6af
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push eax
push str._Loader_MergeRegistry:_cannot_mount_existing_CHANGES_key._Rolling_back_and_failing._LE_d
push ecx
call fcn.0046d760
add esp, 0xc
call fcn.00433dd5
pop ecx
push 0xb
pop edi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042201a
mov eax, edi
call fcn.004c2020
ret
push eax
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], esp
mov ecx, esp
push eax
call fcn.00424ec9
push ecx
mov dword [ebp - 0x1c], esp
mov ebx, esp
push edi
push edi
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov esi, str.VirtReg.Base.dat
push esi
mov byte [ebp - 4], 1
call fcn.004247f7
push 1
push ebx
call fcn.0047e910
add esp, 0x18
mov byte [ebp - 4], 0
call fcn.00431d62
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push dword [ebp + 8]
push edi
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.004247f7
lea eax, [ebp - 0x18]
push 1
push eax
call fcn.0047e910
add esp, 0x18
mov byte [ebp - 4], 2
push dword [eax]
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x4f59e0
call fcn.004247f7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.0047ec10
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x14]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0042201a
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0042201a
test bl, bl
je 0x43d69c
push dword [ebp + 8]
push edi
push edi
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push esi
call fcn.004247f7
lea eax, [ebp + 8]
push 1
push eax
call fcn.0047e910
add esp, 0x14
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov byte [ebp - 4], 3
push dword [eax]
push str.Loader_MergeRegistry:_Init_Update:_cannot_copy_VirtReg.Prog.dat_into_Data_repository:__s
push ecx
call fcn.0046d760
add esp, 0xc
call fcn.00433dd5
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042201a
push 7
jmp 0x43d69b

Function at 0x43d9d6
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x4dbb45
call fcn.004c1f48
and dword [ebp - 4], 0
push 0x4ed4c4
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00424a46
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042201a
push dword [ebp + 8]
push 0x4fb0b0
call fcn.0046b940
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042201a
call fcn.004c2020
ret
Function at 0x43daae
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 3
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x43db38
push ebx
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov ebx, eax
cmp ebx, esi
je 0x43db25
mov esi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push edi
push ebx
mov edi, 0x472e70
push edi
push 3
push dword [ebp - 4]
call esi
push ebx
push edi
push 0xe
push dword [ebp - 4]
call esi
push ebx
push edi
push 0x10
push dword [ebp - 4]
call esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
pop edi
test eax, eax
jne 0x43db2c
mov dword [ebp - 8], 0xa
jmp 0x43db2c
mov dword [ebp - 8], 8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
jmp 0x43db3f
mov dword [ebp - 8], 0xe
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x44165a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24
mov eax, 0x4dd1e7
call fcn.004c1f48
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0x50
jge 0x441841
call fcn.004ad3ae
push eax
lea ecx, [ebp - 0x24]
call fcn.0042249b
mov eax, 0x400
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.004bc352
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.0046d760
add esp, 8
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.General
call fcn.004247f7
push 1
mov byte [ebp - 4], 1
call fcn.004724a0
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 0x44182d
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.004247f7
push str.Microsoft_Visual_C
xor ecx, ecx
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0042490a
cmp eax, 0xffffffff
je 0x441732
push str.Redistributable
xor ecx, ecx
call fcn.0042490a
cmp eax, 0xffffffff
jne 0x441822
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x441746
push 0x4f51e4
mov ecx, ebx
call fcn.0042bcd7
mov esi, dword [ebp - 0x14]
push esi
mov ecx, ebx
call fcn.0042b4b8
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 0x441773
mov ecx, dword [ebp + 0x10]
push esi
call fcn.00424850
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 0x441795
mov ecx, dword [ebp + 0x14]
push esi
call fcn.00424850
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.0046d760
add esp, 0x10
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.General
mov byte [ebp - 4], 4
call fcn.004247f7
push 1
mov byte [ebp - 4], 3
call fcn.004724a0
add esp, 0xc
push ebx
lea ecx, [ebp - 0x20]
call fcn.00424ec9
push str._REMOVE_ONLY_
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.0042b6fa
xor ecx, ecx
mov esi, eax
call fcn.0042490a
mov esi, eax
cmp esi, 0xffffffff
je 0x441817
push str._REMOVE_ONLY_
call fcn.004bbaea
pop ecx
push esi
push ebx
call fcn.0042488e
call fcn.00424e18
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0042201a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042201a
push dword [ebp - 0x14]
call fcn.004bc235
pop ecx
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0042201a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042201a
call fcn.004c2020
ret
Function at 0x443e7d
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 0x443ebf
mov ecx, esi
call fcn.004448c4
test eax, eax
je 0x443ec4
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x4441e1
push edi
push edi
call fcn.004bf8b5
add esp, 0x18
mov dword [esi + 0xa8], eax
cmp eax, edi
je 0x443ebf
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 0x443ebf
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 0x443ebf
push edi
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
inc eax
jmp 0x443ec1

Function at 0x443f24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.004af713
mov eax, dword [eax + 0xc]
push 0x4f3140
push 0x3ed
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x443fd1
call fcn.004af713
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 0x443fd1
call fcn.004af713
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 0x443fd1
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 0x443fca
test ebx, ebx
je 0x443fca
push edi
push eax
push ebx
call fcn.004bbd70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push edi
push esi
call fcn.004439cb
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x443fd3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x444eda
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x4dbab9
call fcn.004c1f48
and dword [ebp - 4], 0
push dword [ebp + 8]
push 0x4fd6c8
call fcn.0046b940
pop ecx
pop ecx
push 0x4ed4c4
lea ecx, [ebp + 8]
call fcn.0042bcd7
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004261c8
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push str.Loader:
push eax
mov byte [ebp - 4], 1
call fcn.00424a9b
add esp, 0xc
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00424eea
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042201a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042201a
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042201a
call fcn.004c2020
ret

Function at 0x4456f1
Capabilities:
Terminate process

Disassembly:
push 4
mov eax, 0x4dbb45
call fcn.004c1f48
and dword [ebp - 4], 0
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
push ecx
push 0x4fd768
push eax
call fcn.00424a9b
add esp, 0xc
call fcn.00444eaa
cmp dword [ebp + 0xc], 1
pop ecx
jl 0x445737
push 0
push str.Fatal
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x44f727
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x527f10]
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.004bc420
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.004bc420
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x44f7ca
cmp dword [ebp - 0x114], 5
jae 0x44f7cc
xor edi, edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x41c], edi
pop edi
xor ecx, ebp
pop ebx
call fcn.004bb182
leave
ret
Function at 0x457850
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4df5b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x527f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x52dbe0], 2
jne 0x45788b
push str.C:FilesPreScan.db
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x52dbe0], 0
mov esi, 0x4eea54
je 0x45789e
mov esi, str.C:FilesPreScan.db
mov edi, 0x52de60
call fcn.0048de80
push 0x52de84
mov dword [0x52de80], 0
mov dword [0x52de7c], 0
call fcn.0042c957
push 0x4eea54
call fcn.004bbaea
add esp, 4
push eax
push 0x4eea54
mov ecx, 0x52de9c
call fcn.004253df
mov edi, 0x52dcb8
mov dword [0x52dea0], 1
call fcn.0042c575
mov eax, dword [eax]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
call fcn.004ad3ae
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45791d
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.Adding_dir_to_avoid:__s
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x457959
mov edx, ecx
movzx edi, dx
push edi
call fcn.004b5332
test eax, eax
je 0x457973
push edi
push eax
mov ecx, esi
call fcn.00424e5c
jmp 0x457973
push str.Adding_dir_to_avoid:__s
call fcn.004bbaea
add esp, 4
push eax
push str.Adding_dir_to_avoid:__s
mov ecx, esi
call fcn.004253df
push ecx
mov dword [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x14], esi
call fcn.004ad3ae
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45799d
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.General
mov byte [ebp - 4], 2
test ecx, 0xffff0000
jne 0x4579d6
mov edx, ecx
movzx edi, dx
push edi
call fcn.004b5332
test eax, eax
je 0x4579f0
push edi
push eax
mov ecx, esi
call fcn.00424e5c
jmp 0x4579f0
push str.General
call fcn.004bbaea
add esp, 4
push eax
push str.General
mov ecx, esi
call fcn.004253df
mov byte [ebp - 4], 1
push 1
mov dword [ebp - 4], 0xffffffff
call fcn.004724a0
add esp, 0x10
mov edi, 0x52dcb8
call fcn.0042c575
push eax
mov eax, 0x52dd14
call fcn.00424b91
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45afd0
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.004be589
add esp, 4
mov ebx, eax
lea edx, [eax + 2]
jmp 0x45b000
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x45b000
sub eax, edx
sar eax, 1
cmp eax, 5
jb 0x45b054
lea esi, [ebx + eax*2 - 0xa]
mov ecx, str._VAL_
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45b046
cmp dx, di
je 0x45b042
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45b046
add eax, 4
add ecx, 4
cmp dx, di
jne 0x45b020
xor eax, eax
jmp 0x45b04b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x45b054
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 0x45b076
cmp eax, edi
jne 0x45b0b6
mov eax, dword [ebp - 8]
push eax
call fcn.004bc352
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 0x45b0ad
mov esi, dword [ebp - 8]
call fcn.004980c0
mov ecx, dword [ebp + 0xc]
not eax
mov dword [ecx], eax
mov byte [ebp - 1], 1
push edi
call fcn.004bc235
add esp, 4
push ebx
call fcn.004bc235
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b560
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcfd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x527f10]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004ad3ae
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45b5a7
push 0x80004005
call fcn.00422000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x10]
push str._r_n__s__r_n
push edx
mov dword [ebp - 0x14], 0
call fcn.0042262f
mov esi, dword [ebp - 0x10]
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45b5e0
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x14]
push ecx
lea edx, [eax + eax]
mov eax, dword [0x52dec4]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x52dec8]
test eax, eax
je 0x45b671
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push ecx
push 0x52decc
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x45b671
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.RegDiff_PostScan_ExportTitle:_failed_creating_ExportHive_SubKey__s__LE_d
call fcn.004247f7
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.General
mov byte [ebp - 4], 2
call fcn.004247f7
push 1
mov byte [ebp - 4], 1
call fcn.004724a0
add esp, 0x14
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b691
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 + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45b6b7
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 esi
mov esp, ebp
pop ebp
ret
Function at 0x45cf60
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 0x4eca7c
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 0x45d06d
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 0x45d054
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 0x45d02b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x45d027
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x45d049
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 0x45d080
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dcfa0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x527f10]
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.0046d760
add esp, 0xc
call fcn.0045cef0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00425450
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 0x45d10a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x45d168
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 0x45d131
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 0x45d157
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 0x45d191
mov edx, dword [ebp + 0xc]
push edx
push edi
call fcn.0048fb40
add esp, 8
test eax, eax
jne 0x45d21f
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.0046d760
add esp, 0xc
call fcn.0045cef0
mov eax, dword [ebp + 8]
add esp, 4
mov dword [ebp - 0x10], 0
cmp dword [eax - 4], 1
jle 0x45d1d0
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp + 8]
call fcn.00422590
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.004bbacb
add esp, 8
test eax, eax
jl 0x45d233
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx - 8]
jg 0x45d233
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov word [ecx + eax*2], dx
test esi, esi
je 0x45d21f
mov edx, dword [ebp + 0xc]
push edx
push esi
call fcn.0045cf60
add esp, 8
push esi
call dword [sym.imp.USER32.dll_DestroyIcon]
test edi, edi
je 0x45d10e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x45d10e
push 0x80070057
call fcn.00422000
int3