joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517fb3
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0x20], 8
lea edx, [ebp - 0x34]
push edx
push 0x2001f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 2
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41a599
xor bl, bl
jmp 0x41a5f6
sub esp, 0x18
mov eax, esp
mov dword [eax], 0x523e38
lea ecx, [ebp - 0x34]
mov dword [eax + 4], ecx
lea ecx, [ebp - 0x30]
mov dword [eax + 0x10], eax
mov byte [ebp - 4], 2
call fcn.0041b7c0
mov eax, dword [ebp + 0x4c]
lea edx, [ebp + 0x3c]
cmp dword [ebp + 0x50], 8
lea ecx, [ebp + 0x24]
cmovae edx, dword [ebp + 0x3c]
cmp dword [ebp + 0x38], 8
lea eax, [eax*2 + 4]
push eax
cmovae ecx, dword [ebp + 0x24]
push edx
push 1
push 0
push ecx
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
lea ecx, [ebp - 0x30]
sete bl
call fcn.0041b8f0
cmp dword [ebp + 0x20], 8
jb 0x41a607
push dword [ebp + 0xc]
call fcn.00406890
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
cmp dword [ebp + 0x38], 8
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], ax
jb 0x41a62c
push dword [ebp + 0x24]
call fcn.00406890
add esp, 4
xor eax, eax
mov dword [ebp + 0x38], 7
cmp dword [ebp + 0x50], 8
mov dword [ebp + 0x34], 0
mov word [ebp + 0x24], ax
jb 0x41a651
push dword [ebp + 0x3c]
call fcn.00406890
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.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x41a670
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x517ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
sub esp, 0x18
mov eax, esp
mov dword [eax], 0x523e54
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.0041b7c0
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x34]
push ecx
push 0x2001f
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41a6ea
xor bl, bl
jmp 0x41a70e
cmp dword [ebp + 0x38], 8
lea ecx, [ebp + 0x3c]
push 4
push ecx
push 4
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 0
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0041b8f0
cmp dword [ebp + 0x20], 8
jb 0x41a72b
push dword [ebp + 0xc]
call fcn.00406890
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
cmp dword [ebp + 0x38], 8
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], ax
jb 0x41a750
push dword [ebp + 0x24]
call fcn.00406890
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret

Function at 0x41a770
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518035
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0x20], 8
lea edx, [ebp - 0x34]
push edx
push 0x2001f
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 1
cmovae eax, dword [ebp + 0xc]
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41a7c9
xor bl, bl
jmp 0x41a80b
sub esp, 0x18
mov eax, esp
mov dword [eax], 0x523ee0
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.0041b7c0
cmp dword [ebp + 0x38], 8
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push eax
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
lea ecx, [ebp - 0x30]
sete bl
call fcn.0041b8f0
cmp dword [ebp + 0x20], 8
jb 0x41a81c
push dword [ebp + 0xc]
call fcn.00406890
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
cmp dword [ebp + 0x38], 8
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], ax
jb 0x41a841
push dword [ebp + 0x24]
call fcn.00406890
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.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x41b2f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x41b349
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41b37d
cmp eax, 2
jne 0x41b35e
push str.Key_not_found._n
call fcn.00455375
add esp, 4
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
push str.Error_opening_key._n
call fcn.00455375
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
je 0x41b3a0
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x214], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x41b46e
lea esi, [ebp - 0x20c]
sub esi, edi
mov edx, 0x208
mov eax, edi
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x41b40e
movzx ecx, word [esi + eax]
test cx, cx
je 0x41b40e
mov word [eax], cx
add eax, 2
dec edx
jne 0x41b3f0
jmp 0x41b412
test edx, edx
jne 0x41b415
sub eax, 2
push ebx
push dword [ebp - 0x218]
xor ecx, ecx
mov word [eax], cx
call fcn.0041b2f0
add esp, 8
test eax, eax
je 0x41b468
lea eax, [ebp - 0x220]
mov dword [ebp - 0x214], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x41b3e3
mov esi, dword [ebp - 0x218]
xor eax, eax
mov word [edi - 2], ax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
inc eax
pop ebx
call fcn.00453c72
mov esp, ebp
pop ebp
ret
Function at 0x41e670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x41e87a
cmp dword [esi + 0x6af90], 3
jb 0x41e6e8
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x41e726
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x41e726
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x41e70f
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.0041e8b0
mov ecx, dword [esi + 0x6af90]
mov edi, eax
add esp, 8
cmp edi, ecx
cmova edi, ecx
cmp edi, 3
jb 0x41e7f7
lea eax, [edi - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.0041e2f0
sub dword [esi + 0x6af90], edi
add esp, 0xc
mov dword [ebp + 8], eax
cmp edi, dword [esi + 0x6af98]
ja 0x41e7be
cmp dword [esi + 0x6af90], 3
jb 0x41e7be
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
dec edi
jne 0x41e764
mov eax, dword [ebp + 8]
jmp 0x41e817
add dword [esi + 0x6af84], edi
xor edi, edi
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp + 8]
jmp 0x41e81d
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push 0
push esi
call fcn.0041e2f0
add esp, 0xc
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x41e858
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41e835
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x41e837
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push eax
push edx
push esi
call fcn.0041e130
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41e86d
push esi
call fcn.0041e510
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x41e693
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41e88e
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x41e890
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push eax
push edx
push esi
call fcn.0041e130
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41f740
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41f74e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x41f823
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5240a0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5240a0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5240a0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5240a0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5240a0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5240a0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5240a0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5240a0]
dec edi
jne 0x41f766
pop edi
test esi, esi
je 0x41f842
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5240a0]
dec esi
jne 0x41f827
not eax
pop esi
pop ebp
ret

Function at 0x41f850
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movsx eax, al
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x5240a0]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5240a0]
mov dword [edx + 8], eax
pop ebp
ret
Function at 0x41fe90
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x41ff6b
mov eax, dword [esi + 0x3c]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x41fec4
cmp dword [esi + 0x40], ebx
jae 0x41fec4
push eax
call fcn.00406890
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x41fedc
lea eax, [ebx + ebx]
push eax
call fcn.004531b9
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push dword [esi + 0x3c]
call fcn.004540d0
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x41ff68
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x5240a0]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
and eax, 0xff
shr edx, 8
xor cl, bl
xor edx, dword [eax*4 + 0x5240a0]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x41fef2
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41ffa9
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x41ff90
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call fcn.004540d0
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x41ffcb
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
Function at 0x420570
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x84]
test edx, edx
je 0x4205d2
mov ecx, dword [edi + 0x8c]
mov ebx, dword [edi + 0x88]
cmp ecx, ebx
jae 0x420619
mov esi, dword [ebp + 8]
lea eax, [ecx + edx]
sub ebx, ecx
cmp ebx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
push ebx
push eax
push esi
call fcn.004540d0
add dword [edi + 0x8c], ebx
add dword [edi + 0x74], ebx
push ebx
push esi
push dword [edi + 0x78]
call fcn.0041f740
add esp, 0x18
mov dword [edi + 0x78], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x420612
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x420619
mov esi, dword [ebp - 4]
add dword [edi + 0x74], esi
push esi
push ebx
push dword [edi + 0x78]
call fcn.0041f740
add esp, 0xc
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x422c70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5183a5
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00455160
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00455160
cmp dword [0x5591f0], 8
mov eax, 0x5591dc
push str.InpaintMAX.exe
cmovae eax, dword [0x5591dc]
push eax
lea eax, [ebp - 0x420]
push 0x524af0
push eax
call fcn.00421970
lea eax, [ebp - 0x420]
push eax
call fcn.00449e90
add esp, 0x2c
test eax, eax
je 0x422d8a
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x422d8a
push 0x524c64
lea ecx, [ebp - 0x438]
call fcn.00419370
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x524c70
push eax
call fcn.00421970
push 1
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00423470
add esp, 0x1c
test eax, eax
jne 0x422da5
cmp dword [ebp - 0x424], 8
jb 0x422d8a
push dword [ebp - 0x438]
call fcn.00406890
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00423920
add esp, 8
cmp dword [ebp - 0x424], 8
jb 0x422dd0
push dword [ebp - 0x438]
call fcn.00406890
add esp, 4
mov eax, 1
jmp 0x422d8c
Function at 0x422de0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5183d8
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00455160
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x422f88
push 5
xor eax, eax
mov dword [ebp - 0x62c], 7
push 0x524c64
lea ecx, [ebp - 0x640]
mov dword [ebp - 0x630], 0
mov word [ebp - 0x640], ax
call fcn.004197f0
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x640]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x524af0
push eax
call fcn.00421970
lea eax, [ebp - 0x218]
push eax
call fcn.00449e90
add esp, 0x14
test eax, eax
je 0x422ebe
lea eax, [ebp - 0x218]
push 1
push eax
call fcn.0044a460
add esp, 8
push 0x523dbc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00455160
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00455160
cmp dword [0x5591f0], 8
mov esi, 0x5591dc
mov eax, esi
cmovae eax, dword [0x5591dc]
push str.InpaintMAX.exe
push eax
lea eax, [ebp - 0x420]
push 0x524af0
push eax
call fcn.00421970
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push str._s_s.lnk
push eax
call fcn.00421970
lea eax, [ebp - 0x420]
push eax
call fcn.00449e90
add esp, 0x3c
test eax, eax
jne 0x422fa4
cmp dword [ebp - 0x62c], 8
jb 0x422f88
push dword [ebp - 0x640]
call fcn.00406890
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00423470
add esp, 0xc
test eax, eax
je 0x422f71
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00455160
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00455160
add esp, 0x18
lea ecx, [ebp - 0x640]
push 0x524c98
call fcn.004217c0
cmp dword [0x5591f0], 8
lea eax, [ebp - 0x420]
push str.uninst.exe
cmovae esi, dword [0x5591dc]
push esi
push 0x524af0
push eax
call fcn.00421970
cmp dword [ebp - 0x62c], 8
lea eax, [ebp - 0x640]
cmovae eax, dword [ebp - 0x640]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push str._s_s.lnk
push eax
call fcn.00421970
lea eax, [ebp - 0x420]
push eax
call fcn.00449e90
add esp, 0x24
test eax, eax
jne 0x42306e
lea ecx, [ebp - 0x640]
call fcn.004193d0
jmp 0x422f88
push 0
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00423470
add esp, 0xc
test eax, eax
je 0x42305e
lea eax, [ebp - 0x218]
push eax
push reloc.OLEAUT32.dll_VariantClear
call fcn.00423920
add esp, 8
lea ecx, [ebp - 0x640]
call fcn.004193d0
mov eax, 1
jmp 0x422f8a
Function at 0x423470
Capabilities:
Create shortcut via ishelllink
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518410
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x559410]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push esi
call fcn.00449e90
add esp, 4
test eax, eax
je 0x423505
push edi
call fcn.00449e90
add esp, 4
test eax, eax
je 0x4234c1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x44]
push eax
push 0x529194
push 1
push 0
push 0x5291c4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x423505
mov eax, dword [ebp - 0x44]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x48]
push edx
push 0x5291b4
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x423522
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00453c72
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 0
je 0x4235b9
push esi
lea ecx, [ebp - 0x40]
call fcn.00419370
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x4c], 0x5c
call fcn.00429080
cmp eax, 0xffffffff
je 0x4235aa
push eax
push 0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.00421930
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov byte [ebp - 4], 1
cmovae edx, dword [ebp - 0x28]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x24]
test eax, eax
jns 0x4235a2
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x28]
call fcn.004193d0
lea ecx, [ebp - 0x40]
call fcn.004193d0
jmp 0x423505
lea ecx, [ebp - 0x28]
call fcn.004193d0
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.004193d0
push esi
call fcn.00449e90
add esp, 4
test eax, eax
je 0x4235d2
mov eax, dword [ebp - 0x44]
push 0
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x48]
push 2
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 0x48]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
xor eax, eax
test esi, esi
setns al
jmp 0x423507