joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10071ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x10071f6b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x10071f22
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x10071f22
cmp esi, ebx
jge 0x10071f22
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x10071f65
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x10071f65
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100783dc]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100783dc]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x10071f7d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc

Function at 0x100721a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
mov eax, dword [ebp + 8]
je 0x100721c8
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x100721e2
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1001cc0f
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.100762d0
leave
ret 4

Function at 0x100723b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x100723e6
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x10072445
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1001cc0f
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1001cc0f
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.1001cc0f
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100762d0
leave
ret 0x10
Function at 0x10072460
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100bb864]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x10176174], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1007248c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x100724bd
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x100724bb
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1001cc0f
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x100724bd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.100762d0
leave
ret 8
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45b030]
jne 0x401116
repz ret
jmp fcn.00401ea1

Function at 0x4086ae
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406a72
and dword [ebp - 4], 0
cmp dword [0x45d814], 0
mov ebx, eax
jne 0x40875f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408810
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408810
push eax
call fcn.00406a00
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45d814], eax
call esi
push eax
call fcn.00406a00
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45d818], eax
call esi
push eax
call fcn.00406a00
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45d81c], eax
call esi
push eax
call fcn.00406a00
pop ecx
mov dword [0x45d824], eax
test eax, eax
je 0x40875f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406a00
pop ecx
mov dword [0x45d820], eax
mov eax, dword [0x45d820]
cmp eax, ebx
je 0x4087b7
cmp dword [0x45d824], ebx
je 0x4087b7
push eax
call fcn.00406a7b
push dword [0x45d824]
mov esi, eax
call fcn.00406a7b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4087b7
test edi, edi
je 0x4087b7
call esi
test eax, eax
je 0x4087ae
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4087ae
test byte [ebp - 0xc], 1
jne 0x4087b7
or dword [ebp + 0x10], 0x200000
jmp 0x4087f0
mov eax, dword [0x45d818]
cmp eax, ebx
je 0x4087f0
push eax
call fcn.00406a7b
pop ecx
test eax, eax
je 0x4087f0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4087f0
mov eax, dword [0x45d81c]
cmp eax, ebx
je 0x4087f0
push eax
call fcn.00406a7b
pop ecx
test eax, eax
je 0x4087f0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45d814]
call fcn.00406a7b
pop ecx
test eax, eax
je 0x408810
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408812
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40cc60
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x45b030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x85a7f4]
push ebx
mov ebx, dword [0x85a640]
push esi
mov esi, dword [0x45c050]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40cca1
push str.lefovuweceh
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x85a7f4]
mov dword [0x45d9ec], esi
cmp eax, 0x114e
jne 0x40cccb
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
lea eax, [esp + 0x14]
push eax
push str.nanucucolumisocifozoguvex
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov eax, dword [0x85a7f4]
cmp eax, 0x2f
jne 0x40cced
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
call fcn.0040cbb0
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x401c66
pop dword [ebp - 0x38]
mov eax, 0x1f07611
add eax, 0xfe4fa655
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x5e321bde
sub dword [ebp - 0x48], 0xfdfd693
mov dword [ebp - 0x44], 0xa82e72a1
sub dword [ebp - 0x44], 0x75fb265c
mov dword [ebp - 0x40], 0xa5ab3558
add dword [ebp - 0x40], 0xa6a10ed6
mov dword [ebp - 0x3c], 0x7a67d78a
add dword [ebp - 0x3c], 0x85982876
lea eax, [ebp - 0x48]
push eax
mov eax, 0xbb794965
add eax, 0x44c6e6ef
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xb317bc99
add dword [ebp - 0x48], 0xc15aacbd
mov dword [ebp - 0x44], 0xb1e5b4c1
add dword [ebp - 0x44], 0x8f86acb4
mov dword [ebp - 0x40], 0xdf692906
add dword [ebp - 0x40], 0x84064366
mov dword [ebp - 0x3c], 0x147d9104
sub dword [ebp - 0x3c], 0x147d9104
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xa655bf41
add eax, 0x59ea70eb
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3488e
push 0
call eax
mov ecx, 0x4037
xor ebx, ebx
add ebx, eax
mov esi, str.NUeegFN
add esi, dword [ebp - 0x38]
mov edx, 0x6aa9d1f8
add edx, 0x83a47493
add dword [ebp - 4], 0x4b5b7145
mov edi, dword [esi]
sub dword [ebp - 0x10], edi
xor edi, edx
mov dword [ebx], edi
sub dword [ebp - 0x30], edi
add ebx, 0x47e32294
sub ebx, 0x47e32290
add esi, 4
loop 0x401d7e
add eax, 0x257e3cf2
sub eax, 0x257d4943
mov ebx, eax
add eax, 0xb7e0531c
add eax, 0x481face9
mov ecx, 0xa8473771
add ecx, 0x57f8c88f
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40929b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433bcc]
jne 0x4092a5
repz ret
jmp fcn.0041296c

Function at 0x412232
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x433bcc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404b9c
and dword [ebp - 0x14], 0
cmp dword [0x81d940], 0
mov dword [ebp - 0x18], eax
jne 0x4122e5
push 0x403320
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41238d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403314
push ebx
call edi
test eax, eax
je 0x41238d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403304
push ebx
mov dword [0x81d940], eax
call edi
push eax
call esi
push 0x4032f0
push ebx
mov dword [0x81d944], eax
call edi
push eax
call esi
push 0x4032d4
push ebx
mov dword [0x81d948], eax
call edi
push eax
call esi
mov dword [0x81d950], eax
test eax, eax
je 0x4122e5
push 0x4032bc
push ebx
call edi
push eax
call esi
mov dword [0x81d94c], eax
mov eax, dword [0x81d94c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41233e
cmp dword [0x81d950], ecx
je 0x41233e
push eax
call esi
push dword [0x81d950]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41233e
test ebx, ebx
je 0x41233e
call edi
test eax, eax
je 0x412335
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x412335
test byte [ebp - 8], 1
jne 0x41233e
or dword [ebp + 0x10], 0x200000
jmp 0x412371
mov eax, dword [0x81d944]
cmp eax, dword [ebp - 0x18]
je 0x412371
push eax
call esi
test eax, eax
je 0x412371
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x412371
mov eax, dword [0x81d948]
cmp eax, dword [ebp - 0x18]
je 0x412371
push eax
call esi
test eax, eax
je 0x412371
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81d940]
call esi
test eax, eax
je 0x41238d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41238f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040929b
leave
ret

Function at 0x414700
Capabilities:
Delete file
Get uefi variable

Disassembly:
sub esp, 0x818
cmp dword [0x8990ac], 0x37
jne 0x414768
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push 0
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByte]
push 0
lea eax, [esp + 0x1c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableW]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
push 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0
lea eax, [esp + 0x41c]
push eax
push 0x403400
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointA]
mov ecx, dword [0x8994c0]
mov eax, dword [0x898b90]
mov dl, byte [ecx + esi + 0x38d6]
mov byte [eax + esi], dl
add esp, 0x818
ret
Function at 0x414ca0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x8990ac]
sub esp, 0x830
push ebx
push ebp
push esi
push edi
cmp eax, 0x422
jne 0x414d41
push 0
push 0
push 0
call fcn.00403df8
add esp, 0xc
push 0x403440
push 0
call fcn.00403df8
push 0
call fcn.00403dbd
add esp, 0xc
push 0
call fcn.004039d1
add esp, 4
push 0
call fcn.00403dbd
add esp, 4
push 0x40344c
push 0x403450
push 0x81dc88
call fcn.00403df8
add esp, 0xc
push 0
push 0
push 0
push 0
push 0
call fcn.004037dc
add esp, 0x14
push 0
push 0
push 0
push 0
call fcn.00403931
push 0
push 0
push 0
call fcn.00403d2c
mov eax, dword [0x8990ac]
add esp, 0x1c
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov ebx, dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
mov ebp, 0x2443831
cmp eax, 0x47
jne 0x414d95
push 0x403458
call esi
push 0
push 0
push 0
push 0
call edi
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0x4034c8
call ebx
dec ebp
mov eax, dword [0x81cff0]
mov dword [0x8990ac], eax
jne 0x414d58
mov esi, dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameW]
mov edi, 0x79a863
lea ecx, [ecx]
cmp eax, 0x4c5
jne 0x414dc7
push 0
lea edx, [esp + 0x44]
push edx
push 0
call esi
mov eax, dword [0x8990ac]
dec edi
jne 0x414db0
mov eax, dword [0x81cfe4]
mov dword [0x8994c0], eax
call fcn.004149b0
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401206
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.Mig1
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4030c0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401325
push 1
push dword [0x4030c0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Gendalf
push str.Mig1
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x4030c8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x4030c8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401325
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x401308
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [edi + 0x210], 1
xor esi, esi
mov eax, dword fs:[esi + 0x18]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx + 0xc]
mov dword [ebp - 4], ecx
mov esi, dword [eax + 0xc]
mov eax, dword [esi + 0x30]
mov dword [edi + 0x208], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x20c], eax
mov eax, edi
mov edx, dword [esi + 0x28]
mov dword [esi + 0x30], str.explorer.exe
mov dword [esi + 0x2c], 0x1a0018
movzx ecx, word [edx]
lea edx, [edx + 2]
mov word [eax], cx
lea eax, [eax + 2]
test cx, cx
jne 0x402360
push str.explorer.exe
lea ecx, [esi + 0x24]
mov edx, edi
call fcn.004021c0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4024d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4892f8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4b135c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push ecx
cmovae eax, dword [ebp + 8]
push 0x2001f
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40252a
xor bl, bl
jmp 0x40256c
sub esp, 0x18
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_U___Callable_obj_V_lambda_ec67494562b4984605512b1e7f8a8e92____0A__std__V__allocator_V___Func_class_X___V_std___2_X___V_std__.0
lea ecx, [ebp - 0x34]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x30]
mov dword [eax + 0x10], eax
mov byte [ebp - 4], 1
call fcn.00402390
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
lea ecx, [ebp - 0x30]
sete bl
call fcn.00402430
cmp dword [ebp + 0x1c], 8
jb 0x40257d
push dword [ebp + 8]
call fcn.0046f2be
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x4025a2
push dword [ebp + 0x20]
call fcn.0046f2be
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
Function at 0x403e60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489433
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4b135c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push ecx
mov dword [ebp - 4], 0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x250], 0x34
call fcn.00405710
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x403ebb
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
cmp dword [ebp - 0x21c], 8
mov esi, eax
jb 0x403edd
push dword [ebp - 0x230]
call fcn.0046f2be
add esp, 4
test esi, esi
je 0x40401d
push esi
call fcn.0041d187
lea edx, [ebp + 8]
mov edi, eax
lea ecx, [ebp - 0x230]
call fcn.00405710
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x403f06
mov eax, dword [eax]
push edi
push esi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
cmp dword [ebp - 0x21c], 8
mov esi, eax
jb 0x403f2a
push dword [ebp - 0x230]
call fcn.0046f2be
add esp, 4
test esi, esi
je 0x404014
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x24c]
push eax
push 0x49fa50
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x404014
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00421df0
mov ecx, dword [ebp - 0x24c]
add esp, 0xc
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x218]
push str._d._d._d._d
push eax
call fcn.00403350
add esp, 0x18
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x230]
push eax
call fcn.00402600
push ecx
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.00405870
add esp, 4
mov ecx, ebx
push eax
call fcn.00404c20
cmp dword [ebp - 0x234], 0x10
jb 0x403fe2
push dword [ebp - 0x248]
call fcn.0046f2be
add esp, 4
cmp dword [ebp - 0x21c], 8
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], 0
mov byte [ebp - 0x248], 0
jb 0x404014
push dword [ebp - 0x230]
call fcn.0046f2be
add esp, 4
push edi
call fcn.0046f2be
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x40402e
push dword [ebp + 8]
call fcn.0046f2be
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
Function at 0x404050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4b135c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0x218], 1
call fcn.00421df0
add esp, 0xc
mov dword [ebp - 0x214], 0x208
lea eax, [ebp - 0x210]
push eax
push 0xf003f
push 0
push str.SoftwareInpaintMAX
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404113
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x404134
cmp word [ebp - 0x20c], ax
jne 0x4040ec
xor ecx, ecx
jmp 0x404104
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4040f5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00401b00
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0041d30f
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x404bf1
xor esi, esi
jmp 0x404c09
and ecx, 0xfffffffe
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, eax
cmp dword [ebp + 0x1c], 8
jb 0x404c1a
push dword [ebp + 8]
call fcn.0046f2be
add esp, 4
mov eax, esi
pop esi
pop ebp
ret