joyce8/EMBER2024-capa huggingface dataset:
Function at 0x553000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x553131
push esi
call fcn.00556145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00545080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x553131
push 0
push ebp
call fcn.005453a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00545260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x55308b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005452f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x553121
push 0x56b918
push edi
call fcn.005543f0
push eax
push ebx
push esi
call fcn.00552f60
push 0x56b8f8
push edi
call fcn.005543f0
push eax
push ebx
push esi
call fcn.00552f60
push 0x56b8d8
push edi
call fcn.005543f0
push eax
push ebx
push esi
call fcn.00552f60
push 0x56b8c0
push edi
call fcn.005543f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00552f60
push 0x56b8a0
push edi
call fcn.005543f0
push eax
push ebx
push esi
call fcn.00552f60
push 0x56b888
push edi
call fcn.005543f0
push eax
push ebx
push esi
call fcn.00552f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5541b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00554140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00554140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00554140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00554140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x554bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x554c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x56687c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x554c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x554c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x489930
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4a000]
mov dword [edi + 0x70d18], 0x83d44598
push edi
or ebp, 0xffffffff
jmp 0x48995a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x489961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x489950
mov eax, 1
add ebx, ebx
jne 0x489973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x489984
jne 0x4899a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4899a3
dec eax
add ebx, ebx
jne 0x489990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x489968
add ebx, ebx
jne 0x48999f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4899f5
xor ecx, ecx
sub eax, 3
jb 0x4899bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x489a2a
sar eax, 1
mov ebp, eax
jmp 0x4899c6
add ebx, ebx
jne 0x4899c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x489994
inc ecx
add ebx, ebx
jne 0x4899d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x489994
add ebx, ebx
jne 0x4899e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4899d6
jne 0x4899f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4899d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x489a14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x489a06
jmp 0x489956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x489a14
add edi, ecx
jmp 0x489956
pop esi
mov edi, esi
mov ecx, 0x321d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x489a32
cmp byte [edi], 0x12
jne 0x489a32
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x489a37
lea edi, [esi + 0x86000]
mov eax, dword [edi]
or eax, eax
je 0x489aaf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d620]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8d750]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x489a64
mov ecx, edi
jns 0x489a93
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8d758]
or eax, eax
je 0x489aa9
mov dword [ebx], eax
add ebx, 4
jmp 0x489a81
call dword [esi + 0x8d754]
mov ebp, dword [esi + 0x8d75c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x489ae3
sub esp, 0xffffff80
jmp 0x43493d
Function at 0x403b80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42ceb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebx
push ebp
push esi
mov ebx, ecx
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push 1
push ebp
mov esi, 0x104
push str.SOFTWAREABB_VEI_METRONICA1.00
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2a8], ebp
mov dword [esp + 0x2c], 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
jne 0x403c31
lea ecx, [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push ebp
mov dword [esp + 0x20], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.ROOT_DIRL
push edi
mov dword [esp + 0x38], edi
call esi
cmp eax, ebp
je 0x403c39
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push ebp
push str.ROOT_DIR
push edi
call esi
cmp eax, ebp
je 0x403c39
or esi, 0xffffffff
jmp 0x403d29
or eax, 0xffffffff
jmp 0x403d37
lea ecx, [esp + 0x24]
lea ebp, [ebx + 0x8c]
push ecx
mov ecx, ebp
call fcn.0042271e
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.PASSWORDL
push edi
mov dword [esp + 0x28], 0x104
call esi
test eax, eax
je 0x403c8d
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.PASSWORD
push edi
call esi
test eax, eax
jne 0x403cee
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18c]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.00405bd0
push str.vtnhjybrf
call fcn.00405c50
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x138]
shr edx, 1
push edx
lea ecx, [esp + 0x1a0]
push eax
push ecx
call fcn.00405ce0
add esp, 0x1c
test eax, eax
jge 0x403cdb
mov dword [esp + 0x1c], 0
jmp 0x403cee
lea edx, [esp + 0x128]
lea ecx, [ebx + 0x94]
push edx
call fcn.0042271e
push 0x43c328
lea eax, [esp + 0x1c]
push ebp
push eax
call fcn.004227e9
push eax
lea ecx, [ebx + 0x98]
mov byte [esp + 0x29c], 1
call fcn.004226ce
lea ecx, [esp + 0x18]
mov byte [esp + 0x298], 0
call fcn.00422625
mov esi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
je 0x403d34
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [esp + 0x28c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28c
ret
Function at 0x4059a0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x42d110
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
xor esi, esi
push edi
mov ebp, ecx
mov dword [esp + 0x18], esi
mov eax, dword [0x45e970]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x2c], 2
call fcn.0042a7bc
mov eax, dword [eax + 4]
lea ecx, [esp + 0xc]
add eax, 0xd0
push eax
call fcn.004226ce
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x14]
call fcn.0042271e
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.0042296c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405a7b
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x18], esi
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push str.DisplayName
push esi
call edi
test eax, eax
je 0x405a8f
push str._ERROR:_Cant_setup_uninstall_displayname_n
push 0x3c
call fcn.00404290
add esp, 8
or edi, 0xffffffff
jmp 0x405af7
push str._ERROR:_Cant_create_uninstall_record_r_n
push 0x3c
call fcn.00404290
add esp, 8
or edi, 0xffffffff
jmp 0x405b08
mov ecx, dword [ebp + 0x60]
push str.UninstallL.exe
add ecx, 0x2b8
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004227e9
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 3
call fcn.004226ce
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call fcn.00422625
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push str.UninstallString
push esi
call edi
test eax, eax
je 0x405af3
push str._ERROR:_Cant_setup_uninstall_string_n
push 0x3c
call fcn.00404290
add esp, 8
or edi, 0xffffffff
jmp 0x405af7
mov edi, dword [esp + 0x1c]
test esi, esi
je 0x405b08
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x18], esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call fcn.00422625
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.00422625
test esi, esi
je 0x405b2f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x405ce0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
xor eax, eax
test ebp, ebp
jle 0x405d8d
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
xor ecx, ecx
sub edi, esi
inc eax
and eax, 0x800000ff
jns 0x405d0d
dec eax
or eax, 0xffffff00
inc eax
movsx eax, ax
mov edx, dword [eax*4 + 0x462634]
add ecx, edx
and ecx, 0x800000ff
jns 0x405d29
dec ecx
or ecx, 0xffffff00
inc ecx
mov dx, word [eax*4 + 0x462634]
movsx ecx, cx
movsx edx, dx
mov ebx, dword [ecx*4 + 0x462634]
mov dword [eax*4 + 0x462634], ebx
mov dword [ecx*4 + 0x462634], edx
mov ebx, dword [eax*4 + 0x462634]
add ebx, edx
and ebx, 0x800000ff
jns 0x405d65
dec ebx
or ebx, 0xffffff00
inc ebx
mov dl, byte [ebx*4 + 0x462634]
mov bl, byte [edi + esi]
xor dl, bl
mov byte [esi], dl
inc esi
dec ebp
jne 0x405cfe
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
mov byte [eax + ecx], 0
pop ebx
mov eax, 1
pop ebp
ret
mov edx, dword [esp + 0xc]
pop ebp
mov byte [eax + edx], 0
mov eax, 1
ret

Function at 0x405ed0
Capabilities:
Create directory
Create shortcut via ishelllink
Get common file path

Disassembly:
sub esp, 0x318
lea eax, [esp + 8]
push esi
push eax
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
mov esi, eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x406014
lea eax, [esp + 4]
mov dword [esp + 4], 0
push eax
push 0x435b30
push 1
push 0
push 0x435b40
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x406016
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push 0x435b70
mov ecx, dword [eax]
push eax
call dword [ecx]
mov esi, eax
test esi, esi
jl 0x40600a
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x320]
push edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 8]
mov edi, dword [esp + 0x328]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jl 0x405fff
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x14]
push 0x45df24
push edx
call esi
mov eax, dword [esp + 0x32c]
lea ecx, [esp + 0x14]
push eax
push ecx
call esi
lea edx, [esp + 0x14]
push 0x45df24
push edx
call esi
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x14]
push edi
push ecx
call esi
lea edx, [esp + 0x14]
push str..lnk
push edx
call esi
lea eax, [esp + 0x118]
push 0x104
push eax
lea ecx, [esp + 0x1c]
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x118]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, esi
pop esi
add esp, 0x318
ret
Function at 0x406020
Capabilities:
Create shortcut via ishelllink
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42d171
push eax
mov dword fs:[0], esp
sub esp, 0x328
push ebx
push esi
mov esi, dword [esp + 0x344]
xor ebx, ebx
push edi
mov eax, dword [esi]
cmp dword [eax - 8], ebx
je 0x4061d4
mov edi, dword [esp + 0x34c]
mov ecx, dword [edi]
cmp dword [ecx - 8], ebx
je 0x4061d4
mov eax, dword [esp + 0x344]
lea edx, [esp + 0x20]
push edx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
lea ecx, [esp + 0x10]
call fcn.0042239a
push str..lnk
lea ecx, [esp + 0x10]
mov dword [esp + 0x340], ebx
call fcn.00422930
lea edx, [esp + 0x28]
lea ecx, [esp + 0x1c]
push edx
call fcn.0042264f
lea eax, [esp + 0xc]
lea ecx, [esp + 0x24]
push eax
mov byte [esp + 0x340], 1
call fcn.0042239a
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x14]
push str._s_s
push eax
mov byte [esp + 0x34c], 2
call fcn.00420acf
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push 0x435b30
push 1
push ebx
push 0x435b40
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x40619f
mov ecx, dword [esp + 0x10]
mov eax, dword [edi]
mov dword [esp + 0x14], ebx
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x50]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x435b70
mov ecx, dword [eax]
push eax
call dword [ecx]
cmp eax, ebx
jl 0x406195
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x12c]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x12c]
push 1
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 0x14]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [esp + 0x24]
mov byte [esp + 0x33c], 1
call fcn.00422625
lea ecx, [esp + 0x1c]
mov byte [esp + 0x33c], bl
call fcn.00422625
lea ecx, [esp + 0xc]
mov dword [esp + 0x33c], 0xffffffff
call fcn.00422625
mov ecx, dword [esp + 0x334]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x334
ret
Function at 0x4061f0
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42d1a1
push eax
mov dword fs:[0], esp
sub esp, 0x118
push esi
mov esi, dword [esp + 0x130]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x406329
mov ecx, dword [esp + 0x134]
mov edx, dword [ecx]
mov eax, dword [edx - 8]
test eax, eax
je 0x406329
mov ecx, dword [esp + 0x12c]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x14]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
push esi
lea ecx, [esp + 8]
call fcn.0042239a
push str..lnk
lea ecx, [esp + 8]
mov dword [esp + 0x128], 0
call fcn.00422930
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call fcn.0042264f
lea ecx, [esp + 4]
mov byte [esp + 0x124], 1
push ecx
lea ecx, [esp + 0x10]
call fcn.0042239a
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push edx
push eax
lea ecx, [esp + 0xc]
push str._s_s
push ecx
mov byte [esp + 0x134], 2
call fcn.00420acf
mov edx, dword [esp + 0x14]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 1
call fcn.00422625
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 0
call fcn.00422625
lea ecx, [esp + 4]
mov dword [esp + 0x124], 0xffffffff
call fcn.00422625
mov ecx, dword [esp + 0x11c]
pop esi
mov dword fs:[0], ecx
add esp, 0x124
ret

Function at 0x406340
Capabilities:
Delete file
Get common file path

Disassembly:
sub esp, 0x108
lea eax, [esp]
push edi
push eax
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push edx
mov edi, eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4063cf
test edi, edi
jl 0x4063cf
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0xc]
push 0x45df24
push eax
call esi
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0xc]
push ecx
push edx
call esi
lea eax, [esp + 0xc]
push 0x45df24
push eax
call esi
mov ecx, dword [esp + 0x118]
lea edx, [esp + 0xc]
push ecx
push edx
call esi
lea eax, [esp + 0xc]
push str..lnk
push eax
call esi
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
pop esi
pop edi
add esp, 0x108
ret
mov eax, edi
pop edi
add esp, 0x108
ret
Function at 0x406ae0
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42d258
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov edi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406b78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x406b78
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00406a30
add esp, 8
mov esi, eax
mov dword [esp + 0x14], 0
call fcn.0042a7bc
mov eax, dword [eax + 4]
mov ecx, dword [esi]
push ecx
push ebx
mov eax, dword [eax + 0x1a8]
push eax
push 0x3c
call fcn.00404290
add esp, 0x10
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.00422625
mov dword [edi + 0x60], 0
or eax, 0xffffffff
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4

Function at 0x406ba0
Capabilities:
Delete registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push esi
push str.RegDb_Key_:HKLMSOFTWAREABB_VEI_METRONICA1.00_s
push 0x3c
call fcn.00404290
mov eax, dword [esp + 0x14]
add esp, 0xc
mov ecx, dword [eax]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
pop esi
je 0x406bdd
push str.___ERROR_n
push 0x3c
call fcn.00404290
add esp, 8
or eax, 0xffffffff
ret 8
push str.___OK_r_n
push 0x3c
call fcn.00404290
add esp, 8
mov eax, 1
ret 8
Function at 0x407030
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x42d2cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x134]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x12c], edi
push ecx
push 0x2001f
push edi
push edx
push eax
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, edi
jne 0x4070a8
mov ecx, dword [esp + 0xc]
xor eax, eax
cmp ecx, edi
je 0x407098
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
cmp eax, edi
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x4070ba
jmp 0x4070ac
mov ecx, dword [esp + 0xc]
cmp ecx, edi
je 0x407155
push ecx
jmp 0x40714f
lea eax, [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
push edi
push edi
lea edx, [esp + 0x1c]
push edi
lea eax, [esp + 0x34]
push edx
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x407120
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.00407030
mov ebx, eax
cmp ebx, edi
jne 0x407171
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x34]
push eax
push ecx
push edi
push edx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x4070e2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x407133
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x134]
mov ecx, dword [ebx]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x407155
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 4
mov eax, dword [esp + 0xc]
cmp eax, edi
je 0x407180
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x407157