joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437445
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x4cfb2f
call fcn.004b3b70
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
call fcn.0049eef3
push eax
lea ecx, [ebp - 0x10]
call fcn.00425064
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
push dword [eax + 0xc]
mov edi, str.SoftwareVOS_s
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00464a80
mov esi, str.IntegratedLnk
push esi
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.00423856
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.004749b0
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
jne 0x4375bd
mov dword [ebp - 0x18], ebx
mov eax, 0x514
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x20], eax
call fcn.004214a5
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.00423915
cmp dword [ebp - 0x14], ebx
jne 0x437563
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00423d39
call fcn.00467aa0
pop ecx
mov dword [ebp - 0x14], 0x4e76d8
cmp eax, ebx
jne 0x437534
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.00464a80
add esp, 0x14
call fcn.00430537
inc dword [ebp - 0x18]
pop ecx
jmp 0x4374d5
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp + 8]
push ebx
call fcn.004372a5
push dword [ebx + 0xc]
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.00464a80
push esi
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 3
call fcn.00423856
add esp, 0x1c
mov byte [ebp - 4], 4
push dword [eax]
call fcn.004749b0
push eax
call fcn.00465bc0
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
xor eax, eax
inc eax
call fcn.004b3c48
ret
Function at 0x437781
Capabilities:
Delete registry value

Disassembly:
push 0x1c
mov eax, 0x4d3d0b
call fcn.004b3b70
mov esi, ecx
and dword [ebp - 4], 0
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 0xc]
push str.Loader_RepoSync:_Unprovisioning:__s
push eax
call fcn.00464a80
add esp, 0xc
call fcn.00430537
pop ecx
push esi
call fcn.00437756
pop ecx
mov edi, eax
call fcn.0049eef3
push eax
lea ecx, [ebp - 0x10]
call fcn.00425064
xor ebx, ebx
inc ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
push 0
push ecx
mov byte [ebp - 4], bl
lea eax, [esi + 0x58]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.004235f2
push ecx
mov byte [ebp - 4], 2
lea eax, [esi + 0x68]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.004235f2
push ecx
mov byte [ebp - 4], 3
lea eax, [esi + 0x64]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
call fcn.004235f2
push ecx
mov byte [ebp - 4], 4
lea eax, [esi + 0x5c]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004235f2
push ecx
add esi, 0xc
mov ecx, esp
mov dword [ebp - 0x24], esp
push esi
mov byte [ebp - 4], 5
call fcn.004235f2
mov byte [ebp - 4], bl
call fcn.0043b77b
add esp, 0x24
mov esi, eax
mov eax, esp
mov dword [ebp - 0x24], esp
push edi
push esi
push str.Loader_RepoSync:_Loader_UnregisterApp_d__PackUtils_RemoveApp_d
push eax
call fcn.00464a80
add esp, 0x10
call fcn.00430537
pop ecx
test edi, edi
je 0x4378d1
test esi, esi
jne 0x4378d1
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push dword [ebp + 0xc]
push str.Loader_RepoSync:_removing_from_cache:__s
push eax
call fcn.00464a80
add esp, 0xc
call fcn.00430537
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
push 0x4e8244
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00423856
add esp, 0xc
push dword [eax]
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042101a
mov eax, ebx
call fcn.004b3c48
ret
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
push edi
push str._Loader_RepoSync:_removal_didnt_go_through
push eax
call fcn.00464a80
add esp, 0xc
call fcn.00430537
pop ecx
xor ebx, ebx
jmp 0x4378b3

Function at 0x438e00
Capabilities:
Print debug messages

Disassembly:
push 4
mov eax, 0x4cd356
call fcn.004b3b70
and dword [ebp - 4], 0
push 0x4dd494
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00423856
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 0x4e98b0
call fcn.00462e80
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042101a
call fcn.004b3c48
ret
Function at 0x438ed8
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 0x438f62
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 0x438f4f
mov esi, dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push edi
push ebx
mov edi, 0x46a0a0
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 0x438f56
mov dword [ebp - 8], 0xa
jmp 0x438f56
mov dword [ebp - 8], 8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
jmp 0x438f69
mov dword [ebp - 8], 0xe
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x43bccf
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x24
mov eax, 0x4cfab9
call fcn.004b3b70
mov ebx, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0x50
jge 0x43beb6
call fcn.0049eef3
push eax
lea ecx, [ebp - 0x24]
call fcn.00425064
mov eax, 0x400
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.004ade42
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.00464a80
add esp, 8
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.General
call fcn.00423607
push 1
mov byte [ebp - 4], 1
call fcn.004696d0
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 0x43bea2
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.00423607
push str.Microsoft_Visual_C
xor ecx, ecx
lea esi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.0042371a
cmp eax, 0xffffffff
je 0x43bda7
push str.Redistributable
xor ecx, ecx
call fcn.0042371a
cmp eax, 0xffffffff
jne 0x43be97
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x43bdbb
push 0x4e4420
mov ecx, ebx
call fcn.0042a3c8
mov esi, dword [ebp - 0x14]
push esi
mov ecx, ebx
call fcn.00429c2c
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 0x43bde8
mov ecx, dword [ebp + 0x10]
push esi
call fcn.00423660
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 0x43be0a
mov ecx, dword [ebp + 0x14]
push esi
call fcn.00423660
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.00464a80
add esp, 0x10
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.General
mov byte [ebp - 4], 4
call fcn.00423607
push 1
mov byte [ebp - 4], 3
call fcn.004696d0
add esp, 0xc
push ebx
lea ecx, [ebp - 0x20]
call fcn.00423d39
push str._REMOVE_ONLY_
lea edi, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00429e6e
xor ecx, ecx
mov esi, eax
call fcn.0042371a
mov esi, eax
cmp esi, 0xffffffff
je 0x43be8c
push str._REMOVE_ONLY_
call fcn.004ad5da
pop ecx
push esi
push ebx
call fcn.0042369e
call fcn.00423c88
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.004add25
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.004b3c48
ret
Function at 0x43e1f0
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 0x43e232
mov ecx, esi
call fcn.0043ec37
test eax, eax
je 0x43e237
lea eax, [ebp - 8]
push eax
push 4
push esi
push 0x43e554
push edi
push edi
call fcn.004b1284
add esp, 0x18
mov dword [esi + 0xa8], eax
cmp eax, edi
je 0x43e232
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 0x43e232
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 0x43e232
push edi
push edi
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
xor eax, eax
inc eax
jmp 0x43e234

Function at 0x43e297
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
call fcn.004a1255
mov eax, dword [eax + 0xc]
push 0x4e2a50
push 0x3ed
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x43e344
call fcn.004a1255
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 0x43e344
call fcn.004a1255
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 0x43e344
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 0x43e33d
test ebx, ebx
je 0x43e33d
push edi
push eax
push ebx
call fcn.004ad860
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push edi
push esi
call fcn.0043dd3e
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x43e346
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43f2ae
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x4cd333
call fcn.004b3b70
and dword [ebp - 4], 0
push dword [ebp + 8]
push 0x4ebad0
call fcn.00462e80
pop ecx
pop ecx
push 0x4dd494
lea ecx, [ebp + 8]
call fcn.0042a3c8
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00424faf
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
call fcn.004b1585
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push str.Loader:
push eax
call fcn.004238ab
add esp, 0x10
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00423d5a
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.004b3c48
ret

Function at 0x43facd
Capabilities:
Terminate process

Disassembly:
push 4
mov eax, 0x4cd356
call fcn.004b3b70
and dword [ebp - 4], 0
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
lea ecx, [ebp + 8]
push ecx
push 0x4ebb70
push eax
call fcn.004238ab
add esp, 0xc
call fcn.0043f27e
cmp dword [ebp + 0xc], 1
pop ecx
jl 0x43fb13
push 0
push 0x4e2dd0
push dword [ebp + 8]
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4487bd
Capabilities:
Check os version

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0448
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x518ba8], 2
jne 0x45065b
push str.C:FilesPreScan.db
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [0x518ba8], 0
mov esi, 0x4de948
je 0x45066e
mov esi, str.C:FilesPreScan.db
mov edi, 0x518e28
call fcn.00480310
push 0x518e4c
mov dword [0x518e48], 0
mov dword [0x518e44], 0
call fcn.0042abee
push 0x4de948
call fcn.004ad5da
add esp, 4
push eax
push 0x4de948
mov ecx, 0x518e64
call fcn.0042424f
mov edi, 0x518c80
mov dword [0x518e68], 1
call fcn.0042a7b7
mov eax, dword [eax]
push eax
push ecx
mov esi, esp
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], esi
call fcn.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4506ed
push 0x80004005
call fcn.00421000
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 0x450729
mov edx, ecx
movzx edi, dx
push edi
call fcn.004a6e27
test eax, eax
je 0x450743
push edi
push eax
mov ecx, esi
call fcn.00423ccc
jmp 0x450743
push str.Adding_dir_to_avoid:__s
call fcn.004ad5da
add esp, 4
push eax
push str.Adding_dir_to_avoid:__s
mov ecx, esi
call fcn.0042424f
push ecx
mov dword [ebp - 4], 1
mov esi, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x14], esi
call fcn.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x45076d
push 0x80004005
call fcn.00421000
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 0x4507a6
mov edx, ecx
movzx edi, dx
push edi
call fcn.004a6e27
test eax, eax
je 0x4507c0
push edi
push eax
mov ecx, esi
call fcn.00423ccc
jmp 0x4507c0
push str.General
call fcn.004ad5da
add esp, 4
push eax
push str.General
mov ecx, esi
call fcn.0042424f
mov byte [ebp - 4], 1
push 1
mov dword [ebp - 4], 0xffffffff
call fcn.004696d0
add esp, 0x10
mov edi, 0x518c80
call fcn.0042a7b7
push eax
mov eax, 0x518cdc
call fcn.004239a1
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 0x453d10
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.004b0079
add esp, 4
mov ebx, eax
lea edx, [eax + 2]
jmp 0x453d40
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x453d40
sub eax, edx
sar eax, 1
cmp eax, 5
jb 0x453d94
lea esi, [ebx + eax*2 - 0xa]
mov ecx, str._VAL_
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x453d86
cmp dx, di
je 0x453d82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x453d86
add eax, 4
add ecx, 4
cmp dx, di
jne 0x453d60
xor eax, eax
jmp 0x453d8b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x453d94
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 0x453db6
cmp eax, edi
jne 0x453df6
mov eax, dword [ebp - 8]
push eax
call fcn.004ade42
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 0x453ded
mov esi, dword [ebp - 8]
call fcn.004893a0
mov ecx, dword [ebp + 0xc]
not eax
mov dword [ecx], eax
mov byte [ebp - 1], 1
push edi
call fcn.004add25
add esp, 4
push ebx
call fcn.004add25
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4542a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf878
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x512f18]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.0049eef3
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4542e7
push 0x80004005
call fcn.00421000
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.004215f2
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 0x454320
sub eax, edx
push 0
sar eax, 1
lea ecx, [ebp - 0x14]
push ecx
lea edx, [eax + eax]
mov eax, dword [0x518e8c]
push edx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [0x518e90]
test eax, eax
je 0x4543b1
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push 0
push ecx
push 0x518e94
push 0x20006
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4543b1
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.00423607
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.General
mov byte [ebp - 4], 2
call fcn.00423607
push 1
mov byte [ebp - 4], 1
call fcn.004696d0
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 0x4543d1
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 0x4543f7
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 0x455a40
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 0x4dca54
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 0x455b4d
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 0x455b34
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 0x455b0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x455b07
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x455b29
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