joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4699f3
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a8]
sub esp, 0x428
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x3a4], eax
push edi
xor edi, edi
push edi
push 1
push 0x4f8ac0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x469a2b
xor eax, eax
inc eax
jmp 0x469bd3
push esi
push str.DRIVERDLL
push 0x1389
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x469a4a
xor eax, eax
jmp 0x469bd2
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov dword [ebp - 0x70], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
jne 0x469a6b
xor eax, eax
jmp 0x469bd1
mov esi, 0x208
push esi
lea eax, [ebp + 0x19c]
push edi
push eax
mov dword [ebp - 0x74], edi
call fcn.00475410
push esi
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.00475410
add esp, 0x18
lea eax, [ebp - 0x6c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x469aba
lea eax, [ebp + 0x19c]
push eax
push edi
push 0x4c451c
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp word [ebp + 0x19c], di
jne 0x469ad8
push 0x4c44f8
lea eax, [ebp + 0x19c]
push esi
push eax
call fcn.00478194
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x469bce
push edi
push edi
push 2
push edi
push 1
push 0x40000000
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x469bce
push edi
lea eax, [ebp - 0x80]
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x80], edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x469bc1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x19c]
push edi
push eax
call fcn.0040239b
pop ecx
pop ecx
test eax, eax
je 0x469bc1
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x469bc1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4c44f0
push ebx
call esi
push 0x4c44ec
push ebx
mov dword [ebp - 0x7c], eax
call esi
push 0x4c44e8
push ebx
mov dword [ebp - 0x78], eax
call esi
push 0x4c44e0
push ebx
mov dword [ebp - 0x70], eax
call esi
mov esi, eax
cmp dword [ebp - 0x7c], edi
je 0x469bba
cmp dword [ebp - 0x78], edi
je 0x469bba
cmp dword [ebp - 0x70], edi
je 0x469bba
cmp esi, edi
je 0x469bba
call dword [ebp - 0x7c]
test al, al
je 0x469bba
xor edi, edi
inc edi
push edi
push str.dkkkeiva
call dword [ebp - 0x78]
pop ecx
pop ecx
call dword [ebp - 0x70]
test al, al
je 0x469bb8
mov dword [ebp - 0x74], edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp + 0x19c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x74]
pop ebx
pop esi
mov ecx, dword [ebp + 0x3a4]
xor ecx, ebp
pop edi
call fcn.0047548a
add ebp, 0x3a8
leave
ret
Function at 0x46a2cc
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x46a2da
cmp eax, 0xffffffff
jne 0x46a2f4
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x46a24b
push 0
push 0
call fcn.00475fc9
add esp, 0x18
mov dword [esi], eax
mov esi, dword [esi]
test esi, esi
je 0x46a304
cmp esi, 0xffffffff
je 0x46a304
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x46aada
Capabilities:
Get common file path
Get disk information
Get disk size

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x4b36c4
call fcn.004764b0
xor eax, eax
push 0x206
mov word [ebp], ax
xor edi, edi
lea eax, [ebp + 2]
push edi
push eax
mov esi, ecx
call fcn.00475410
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ebx, word [ebp]
push 0x4f9e00
lea ecx, [ebp - 0x10]
call fcn.0040293e
movzx eax, bx
push eax
lea eax, [ebp - 0x10]
push str._c:_
push eax
mov dword [ebp - 4], edi
call fcn.00403b17
mov ebx, dword [ebp - 0x10]
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x46ab94
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
lea ecx, [ebx - 0x10]
call fcn.00402963
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0047548a
add ebp, 0x20c
leave
ret
push 8
lea eax, [ebp - 0x18]
push edi
push eax
call fcn.00475410
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x46abbc
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
jmp 0x46abcf
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
xor edi, edi
inc edi
jmp 0x46ab67

Function at 0x46acdb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xd4
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
xor eax, eax
push 0xc6
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
mov esi, ecx
call fcn.00475410
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
push str.ipartner
push str.SOFTWARE360SafeCoop
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x5c], 0x64
mov dword [ebp - 0x58], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x54]
push eax
lea ecx, [esi + 0x30]
call fcn.00402894
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
pop esi
call fcn.0047548a
add ebp, 0x78
leave
ret
Function at 0x46adce
Capabilities:
Read .ini file

Disassembly:
push 4
mov eax, 0x4b3738
call fcn.004764b0
mov edi, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x10], eax
mov ebx, edi
mov dword [ebp + 0x1c], eax
push edi
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], eax
call fcn.0046a8d7
test al, al
jne 0x46ae06
mov ecx, dword [ebp + 8]
push 0x4f9e00
call fcn.0040293e
jmp 0x46ae56
push dword [ebp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push edi
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
lea ecx, [edi - 1]
jmp 0x46ae47
add ebx, edi
push ebx
lea ecx, [ebp + 0x1c]
call fcn.0046a90a
test al, al
je 0x46adf7
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call esi
lea ecx, [ebx - 1]
cmp eax, ecx
je 0x46ae23
push dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
call fcn.0040260e
push dword [ebp + 0x1c]
call fcn.004770fc
mov eax, dword [ebp + 8]
pop ecx
call fcn.00476588
ret 0x18
Function at 0x46af40
Capabilities:
Check if file exists
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x14
mov eax, 0x4b379e
call fcn.004764b0
mov eax, dword [ebp + 0x214]
push eax
mov esi, ecx
mov dword [ebp - 0x18], eax
call fcn.0046aef7
push dword [esi + 0x14]
xor eax, eax
push dword [esi + 8]
xor edi, edi
push dword [esi + 0x30]
cmp dword [esi], edi
push dword [esi + 4]
sete al
push dword [esi + 0x2c]
lea ebx, [esi + 0x38]
push dword [esi + 0x28]
push dword [esi + 0x1c]
push dword [esi + 0x18]
push eax
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 0x34]
push str.V_sOV_d__dOW_dS_I64dM_I64dC_dipartner_sDT_dOAV_d
push ebx
call fcn.00403b17
add esp, 0x38
xor eax, eax
cmp dword [esi + 0xc], 6
jae 0x46b033
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push edi
push eax
call fcn.00475410
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.oeminfo.ini
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46b0a2
push 0x100
lea eax, [ebp]
push eax
push 0x4d3230
push str.Manufacturer
push str.General
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0046adce
lea ecx, [esi + 0x3c]
push eax
mov dword [ebp - 4], edi
call fcn.00401df2
mov ecx, dword [ebp - 0x10]
jmp 0x46b096
push 0x1fe
mov word [ebp + 8], ax
lea eax, [ebp + 0xa]
push edi
push eax
call fcn.00475410
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push str.Manufacturer
xor edi, edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionOEMInformation
inc edi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], 0x200
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x46b0a2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040260e
lea ecx, [esi + 0x3c]
push eax
mov dword [ebp - 4], edi
call fcn.00401df2
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00402963
lea eax, [esi + 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.0046abd4
push dword [eax]
mov dword [ebp - 4], 2
push str.oeminfo_s
push ebx
call fcn.0041fa0b
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
add esp, 0xc
add ecx, 0xfffffff0
call fcn.00402963
mov ecx, dword [ebp - 0x18]
push 0
push ebx
call fcn.00461482
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0047548a
add ebp, 0x20c
leave
ret 4
Function at 0x46b107
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
call edi
test eax, eax
je 0x46b11f
xor eax, eax
inc eax
jmp 0x46b14e
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46b11a
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x46b141
push esi
call edi
test eax, eax
jne 0x46b11a
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop edi
pop esi
ret

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

Disassembly:
push ebp
sub esp, 0x874
lea ebp, [esp - 4]
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x874], eax
push 4
mov eax, 0x4b37d6
call fcn.004764b0
mov esi, dword [ebp + 0x880]
xor ebx, ebx
cmp esi, ebx
jne 0x46b188
xor eax, eax
jmp 0x46b283
cmp word [esi], bx
je 0x46b181
push esi
call fcn.00475eae
cmp eax, 0x104
pop ecx
jge 0x46b181
push 0x410
lea eax, [ebp + 0x464]
push ebx
push eax
call fcn.00475410
add esp, 0xc
push 0x4d34a8
push esi
lea eax, [ebp + 0x464]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46b1de
test al, 1
je 0x46b1de
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x5c
pop eax
mov word [ebp + 0x458], ax
mov dword [ebp + 0x45c], ebx
mov dword [ebp + 0x460], ebx
lea eax, [ebp + 0x464]
push eax
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.0043a414
cmp eax, ebx
je 0x46b269
lea ecx, [ebp]
call fcn.0043a3d7
lea ecx, [ebp]
test eax, eax
je 0x46b222
call fcn.0043a30b
mov edi, eax
jmp 0x46b265
lea eax, [ebp - 0x10]
push eax
call fcn.0043c71e
push 0x10
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.0043a2ef
push dword [ebp - 0x10]
test eax, eax
je 0x46b247
call fcn.0046b151
jmp 0x46b24c
call fcn.0046b107
pop ecx
lea ecx, [ebp]
call fcn.0043a30b
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov edi, eax
mov byte [ebp - 4], bl
call fcn.00402963
cmp edi, ebx
jne 0x46b20a
lea ecx, [ebp]
call fcn.0043a332
push esi
call fcn.00430ecb
pop ecx
lea ecx, [ebp]
call fcn.0043a332
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x874]
xor ecx, ebp
call fcn.0047548a
add ebp, 0x878
leave
ret
Function at 0x46ca27
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x1a8
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x4d33e0
lea edi, [ebp + 0x58]
rep movsd dword es:[edi], dword [esi]
push 0xd3a
lea eax, [ebp + 0x58]
push 0x1a
mov ebx, 0x104
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
movsw word es:[edi], word [esi]
call fcn.0046c9e9
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push str.ExeString
lea eax, [ebp + 0x58]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x46cabc
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46cabc
xor eax, eax
inc eax
jmp 0x46cbcd
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00475410
add esp, 0xc
push 0xf
pop ecx
lea eax, [ebp + 0x1c]
push 0xd3c
mov esi, 0x4d3408
lea edi, [ebp + 0x1c]
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
rep movsd dword es:[edi], dword [esi]
call fcn.00476880
pop ecx
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.0046c9e9
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x4d3232
lea eax, [ebp + 0x1c]
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x46cb49
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x46cab4
push ebx
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.00475410
push 0xf
pop ecx
mov esi, 0x4d3444
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push 0xd3c
lea eax, [ebp - 0x24]
push 0x3d
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x130], ebx
movsb byte es:[edi], byte [esi]
call fcn.0046c9e9
add esp, 0x18
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x4d3232
lea eax, [ebp - 0x24]
push eax
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x46cbcb
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x46cab4
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047548a
add ebp, 0x78
leave
ret
Function at 0x46cbdf
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa8]
sub esp, 0x128
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp + 0xa4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x77]
push 0
push eax
mov byte [ebp - 0x78], 0
call fcn.00475410
add esp, 0xc
push 6
pop ecx
lea eax, [ebp + 0x8c]
push 0x237f
mov esi, 0x4d34bc
lea edi, [ebp + 0x8c]
push eax
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x80], 0x104
rep movsd dword es:[edi], dword [esi]
call fcn.00476880
pop ecx
push eax
lea eax, [ebp + 0x8c]
push eax
call fcn.0046c9e9
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0x4d3232
lea eax, [ebp + 0x8c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x46cc8f
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46cc8f
xor eax, eax
inc eax
jmp 0x46cc91
xor eax, eax
mov ecx, dword [ebp + 0xa4]
xor ecx, ebp
call fcn.0047548a
add ebp, 0xa8
leave
ret

Function at 0x46cca6
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x12f]
push 0
push eax
mov byte [ebp - 0x130], 0
call fcn.00475410
add esp, 0xc
push 7
pop ecx
mov esi, 0x4d34fc
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4d3518
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
push 0x837
push eax
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x134], 0x104
movsd dword es:[edi], dword [esi]
call fcn.00476880
pop ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0046c9e9
add esp, 0xc
lea eax, [ebp - 0x10]
push 0x844
push eax
call fcn.00476880
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0046c9e9
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x138]
push eax
push str.ProgramPath
lea eax, [ebp - 0x2c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x46cd97
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x130]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test eax, eax
je 0x46cd97
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46cd97
xor eax, eax
inc eax
jmp 0x46cd99
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047548a
leave
ret
Function at 0x46cda5
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x123]
push 0
push eax
mov byte [ebp - 0x124], 0
call fcn.00475410
mov esi, 0x4d358c
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x4d359c
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
add esp, 0xc
mov esi, 0x237f
lea eax, [ebp - 0x20]
push esi
push eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x128], 0x104
call fcn.00476880
pop ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0046c9e9
add esp, 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00476880
pop ecx
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0046c9e9
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x12c]
push eax
push str.ProgramPath
lea eax, [ebp - 0x20]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x46ce94
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x124]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test eax, eax
je 0x46ce94
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46ce94
xor eax, eax
inc eax
jmp 0x46ce96
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047548a
leave
ret
Function at 0x46cea2
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x103
lea eax, [ebp - 0x13b]
push 0
push eax
mov byte [ebp - 0x13c], 0
call fcn.00475410
add esp, 0xc
push 8
pop ecx
mov esi, 0x4d35f0
lea edi, [ebp - 0x38]
rep movsd dword es:[edi], dword [esi]
mov esi, 0x4d3610
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x237f
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x144], 1
mov dword [ebp - 0x140], 0x104
call fcn.00476880
pop ecx
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0046c9e9
add esp, 0xc
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00476880
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0046c9e9
add esp, 0xc
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x144]
push eax
push str.AppPath
lea eax, [ebp - 0x38]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
pop edi
pop esi
test eax, eax
jne 0x46cf92
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x13c]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
test eax, eax
je 0x46cf92
lea eax, [ebp - 0x13c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x46cf92
xor eax, eax
inc eax
jmp 0x46cf94
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047548a
leave
ret
Function at 0x46cfa0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x4d369c
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, 0x237f
lea eax, [ebp - 0x24]
push ebx
push eax
movsd dword es:[edi], dword [esi]
call fcn.00476880
pop ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0046c9e9
mov esi, 0x4d36ac
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 0xc
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x14]
push ebx
push eax
movsb byte es:[edi], byte [esi]
call fcn.00476880
pop ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0046c9e9
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
and dword [ebp - 0x258], 0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x250], 0x22c
call edi
mov esi, eax
inc esi
mov ebx, 0x3fffffff
cmp esi, ebx
jle 0x46d037
and dword [ebp - 0x254], 0
jmp 0x46d054
lea eax, [esi + esi]
call fcn.0047bd20
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0040b457
mov dword [ebp - 0x254], eax
lea eax, [ebp - 0x14]
push eax
call edi
mov esi, eax
inc esi
cmp esi, ebx
jle 0x46d065
xor ebx, ebx
jmp 0x46d07e
lea eax, [esi + esi]
call fcn.0047bd20
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0040b457
mov ebx, eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x46d0f0
lea eax, [ebp - 0x250]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x46d0e9
mov esi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
push dword [ebp - 0x254]
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x46d0df
cmp dword [ebp + 8], 0
jne 0x46d0cc
push ebx
lea eax, [ebp - 0x22c]
push eax
call esi
test eax, eax
je 0x46d0df
lea eax, [ebp - 0x250]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46d0a5
jmp 0x46d0e9
mov dword [ebp - 0x258], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x258]
lea esp, [ebp - 0x264]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047548a
leave
ret
Function at 0x46d10b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4f3bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x4d36d8
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x18]
push 0x237f
push eax
movsb byte es:[edi], byte [esi]
call fcn.00476880
pop ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0046c9e9
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
xor ebx, ebx
mov dword [ebp - 0x244], 0x22c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x46d16f
xor edi, edi
jmp 0x46d188
lea eax, [esi + esi]
call fcn.0047bd20
mov eax, esp
push 3
push esi
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.0040b457
mov edi, eax
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x46d1d5
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x46d1c5
push edi
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x46d1cb
lea eax, [ebp - 0x244]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x46d1a6
jmp 0x46d1ce
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea esp, [ebp - 0x250]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047548a
leave
ret