joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d740
Capabilities:
Check if file exists
Check os version
Create process on windows
Get file attributes
Persist via windows service
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x59a35b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdc
push esi
lea eax, [esp + 0x4c]
push edi
mov esi, ecx
push eax
mov dword [esp + 0x54], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40d945
cmp dword [esp + 0x60], 2
jne 0x40d945
cmp dword [esp + 0x54], 6
jb 0x40d897
mov ecx, dword [0x65ec1c]
mov dword [esp + 8], ecx
mov edx, dword [0x663654]
push str.Uninstall.exe
push edx
lea eax, [esp + 0x10]
push 0x639028
push eax
mov dword [esp + 0xfc], 0
call fcn.0058148b
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x24]
add esp, 0x10
rep stosd dword es:[edi], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x14], 0x3c
push eax
mov dword [esp + 0x1c], 0x40
mov dword [esp + 0x24], 0x638f44
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 3
mov dword [esp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d86c
mov ecx, dword [esp + 8]
push 0
push ecx
mov ecx, esi
call fcn.0040c0b0
test al, al
je 0x40d86c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
push edx
mov dword [esp + 0x2c], str._stopdriv
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x40d866
mov eax, dword [esp + 0x4c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x4c]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x40d86c
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 8]
mov dword [esp + 0xec], 0xffffffff
call fcn.005886c0
pop edi
pop esi
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
add esp, 0xe8
ret
call fcn.0042f370
neg eax
sbb eax, eax
lea ecx, [esp + 0xc]
and eax, 0x100
push ecx
add eax, 0xf003f
push eax
push 0
push str.SYSTEMCurrentControlSetServicesIDMTDI
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40d8f8
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push 4
push edx
push 4
push 0
push str.Start
push eax
mov dword [esp + 0x20], 3
call esi
mov ecx, dword [esp + 0xc]
push ecx
call edi
lea edx, [esp + 0xc]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x663188
push 0
push 0x638e68
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d945
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.AdvIntDriverEnabled2
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call edi
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0xe8
ret
Function at 0x40d960
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub esp, 0xa0
push esi
lea eax, [esp + 0x10]
push edi
mov edi, ecx
push eax
xor esi, esi
mov dword [esp + 0x18], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40d9ac
cmp dword [esp + 0x24], 2
jne 0x40d9ac
cmp dword [esp + 0x18], 6
jb 0x40d9ba
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
mov esi, 1
push str..IDMWFP
jmp 0x40d9ce
mov eax, dword [edi + 0x1c]
pop edi
pop esi
add esp, 0xa0
ret 4
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push str..IDMTDI
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40d9fd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xac]
pop edi
mov eax, 1
pop esi
mov dword [ecx], 1
add esp, 0xa0
ret 4
call fcn.0042f370
mov edi, dword [esp + 0xac]
neg eax
sbb eax, eax
mov dword [edi], 0
and eax, 0x100
add eax, 0x20019
test esi, esi
je 0x40da30
lea edx, [esp + 8]
push edx
push eax
push 0
push str.SYSTEMCurrentControlSetServicesIDMWFP
jmp 0x40da3d
lea ecx, [esp + 8]
push ecx
push eax
push 0
push str.SYSTEMCurrentControlSetServicesIDMTDI
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40da95
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push str.Start
push ecx
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40da8a
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x40da8a
cmp eax, 2
je 0x40da8a
mov dword [edi], 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret 4
Function at 0x40e5a0
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
mov dword [esi + 0x34], edi
je 0x40e5bf
call fcn.0040e7f0
test eax, eax
jne 0x40e5bf
mov ecx, esi
call fcn.00410080
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40e689
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x40e689
push edi
push str.IntegrateMIE
mov ecx, esi
call fcn.0040eb10
mov ecx, dword [0x663680]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.IDMBIIEXPLORE
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e638
lea edx, [esp + 0x10]
push 4
push edx
push 4
push eax
mov eax, dword [esp + 0x1c]
push 0x6395cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 8
mov eax, dword [0x663680]
lea edx, [esp + 0xc]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x663188
push 0
push str.IDMBIIEXPLORE
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e689
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 4
push ecx
push 4
push eax
push 0x6395cc
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
ret 8

Function at 0x40e6a0
Capabilities:
Delete registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x59a470
push eax
mov dword fs:[0], esp
sub esp, 0xc
lea eax, [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMenuExt_
push reloc.WSOCK32.dll_accept
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40e6ee
mov ecx, dword [esp + 0xc]
push str.Download_with_IDMan
push ecx
call edi
lea edx, [esp + 0xc]
push edx
push 0xf003f
push 0
push str.SoftwareClassesPROTOCOLSName_Space_Handler_
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
je 0x40e71d
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0xc]
lea eax, [esp + 8]
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.http_
push ecx
call esi
test eax, eax
jne 0x40e75f
mov edx, dword [esp + 8]
push 0x63a29c
push edx
call edi
mov eax, dword [esp + 8]
push 0x63a298
push eax
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.https_
push edx
call esi
test eax, eax
jne 0x40e78f
mov eax, dword [esp + 8]
push 0x63a29c
push eax
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.ftp_
push edx
call esi
test eax, eax
jne 0x40e7cb
mov eax, dword [esp + 8]
push 0x63a29c
push eax
call edi
mov ecx, dword [esp + 8]
push 0x63a298
push ecx
call edi
mov ecx, dword [esp + 0x14]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x40e7f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a48b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push reloc.WSOCK32.dll_bind
mov dword [ebp - 4], 0
call esi
test eax, eax
jne 0x40e96b
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push eax
push str.0055C089_8582_441B_A0BF_17B458C2A3A8
push edx
call esi
test eax, eax
jne 0x40e96b
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push 0
push str.NoExplorer
push edx
mov dword [ebp - 0x24], 4
call edi
test eax, eax
jne 0x40e96b
cmp dword [ebp - 0x1c], 1
jne 0x40e96b
mov eax, dword [ebp - 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call ebx
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
call fcn.0042f370
test eax, eax
je 0x40e91f
lea edx, [ebp - 0x18]
push edx
push 0x20119
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerBrowser_Helper_Objects
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x40e96b
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
push 0x20119
push 0
push str.0055C089_8582_441B_A0BF_17B458C2A3A8
push ecx
call esi
test eax, eax
jne 0x40e96b
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push str.NoExplorer
push ecx
mov dword [ebp - 0x20], 4
call edi
test eax, eax
jne 0x40e96b
cmp dword [ebp - 0x1c], 1
jne 0x40e96b
mov edx, dword [ebp - 0x14]
push edx
call ebx
mov eax, dword [ebp - 0x18]
push eax
call ebx
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e980
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a4d1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
mov edx, dword [0x663680]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0
push 0
mov ebx, 4
push edi
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x40e9ec
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, 2
jne 0x40ea86
mov ecx, dword [0x663680]
lea eax, [ebp - 0x14]
push ebx
push eax
push ebx
push 0
push edi
push ecx
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
test esi, esi
je 0x40ea6e
lea ecx, [ebp - 0x124]
call fcn.00478b50
mov edx, dword [0x65ec1c]
mov dword [ebp + 8], edx
push esi
lea eax, [ebp + 8]
push str.RegSetValueEx_err__ld_in_CBrInt:ReadIntFrReg_n
push eax
mov byte [ebp - 4], 2
call fcn.0058148b
mov ecx, dword [ebp + 8]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x124]
call fcn.00478c60
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005886c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
call fcn.00478c50
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x124]
call fcn.00478b50
mov edx, dword [0x65ec1c]
mov dword [ebp + 8], edx
push esi
lea eax, [ebp + 8]
push str.Error__ld_in_CBrInt:ReadIntFrReg_n
push eax
mov byte [ebp - 4], bl
call fcn.0058148b
mov ecx, dword [ebp + 8]
add esp, 0xc
push 1
push ecx
lea ecx, [ebp - 0x124]
call fcn.00478c60
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.005886c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x124]
jmp 0x40ea69

Function at 0x40eb10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a4fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], esp
push 4
xor ebx, ebx
push ecx
mov dword [ebp - 0x14], eax
mov eax, dword [0x663680]
push 4
push ebx
push edx
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
cmp esi, ebx
jne 0x40eb76
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x11c]
call fcn.00478b50
mov ecx, dword [0x65ec1c]
mov dword [ebp + 0xc], ecx
push esi
lea edx, [ebp + 0xc]
push str.RegSetValueEx_err__ld_in_CBrInt:SaveIntToReg_n
push edx
mov byte [ebp - 4], 2
call fcn.0058148b
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [ebp - 0x11c]
push 1
push eax
call fcn.00478c60
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.005886c0
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], bl
call fcn.00478c50
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40ec20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a51b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x663188
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00588849
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWARENetscapeNetscape_6
push reloc.WSOCK32.dll_bind
call esi
test eax, eax
jne 0x40ede9
lea ecx, [ebp - 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x48]
push ecx
push edx
push eax
push eax
mov eax, dword [ebp + 8]
push str.CurrentVersion
push eax
mov dword [ebp - 0x14], 0x32
call edi
test eax, eax
jne 0x40ede9
lea ecx, [ebp + 8]
lea edx, [ebp - 0x48]
push ecx
push 0xf003f
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call esi
test eax, eax
jne 0x40ede9
mov edx, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
push 0xf003f
push eax
push str.Main
push edx
call esi
test eax, eax
jne 0x40ede9
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x14c]
push eax
push ecx
push 0
push 0
push str.Install_Directory
push edx
mov dword [ebp - 0x14], 0x104
call edi
test eax, eax
jne 0x40ede9
lea edi, [ebp - 0x14c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ebp + ecx - 0x14d], 0x5c
je 0x40ed53
mov edi, 0x63a4cc
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Plugins_
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x14c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x14c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00588849
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40eea0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
push 0x663188
mov ecx, ebx
call fcn.00588849
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push str.SoftwareOpera_Software
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40eeea
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
mov edi, 0x104
push str.Last_Directory
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x40ef9e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push str.Last_CommandLine
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x40ef6d
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push str.Last_Directory2
push eax
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x40ef9e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret 4
lea ecx, [esp + 0x14]
push 0x63a540
push ecx
call fcn.0056c6b0
add esp, 8
test eax, eax
je 0x40f017
lea edx, [esp + 0x14]
push 0x5c
push edx
call fcn.0056c5b0
add esp, 8
test eax, eax
je 0x40ef9e
mov byte [eax + 1], 0
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x13], 0x5c
je 0x40efe3
mov edi, 0x63a4cc
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.00588849
push str.ProgramPlugins_
mov ecx, ebx
call fcn.00588a36
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x10]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push str.Last_Directory2
push edx
mov dword [esp + 0x24], edi
call esi
test eax, eax
je 0x40ef9e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10c
ret 4
Function at 0x40f2d0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a583
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
mov eax, dword [0x65ec1c]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x40f342
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40f40b
cmp eax, dword [ecx + 0x50]
jge 0x40f40b
mov ecx, dword [ecx + 0x4c]
lea edx, [ecx + eax*4]
lea ecx, [ebp - 0x14]
push edx
call fcn.005887f9
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov eax, dword [eax - 8]
test eax, eax
setg cl
mov eax, ecx
jmp case.default.0x40f34d
mov edx, dword [ebp + 8]
xor eax, eax
dec edx
cmp edx, 3
ja case.default.0x40f34d
jmp dword [edx*4 + 0x40f494]
lea eax, [ebp - 0x14]
push eax
call fcn.0040eea0
jmp case.default.0x40f34d
lea edx, [ebp - 0x14]
push edx
call fcn.0040ec20
jmp case.default.0x40f34d
lea eax, [ebp - 0x14]
push eax
call fcn.0040f8b0
jmp case.default.0x40f34d
lea edx, [ebp - 0x14]
push edx
call fcn.0040f6d0
test eax, eax
je 0x40f40b
lea eax, [ebp - 0x14]
push str.NPIDMan1.dll
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.005888ef
mov edx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov bl, 2
push edx
mov byte [ebp - 4], bl
call esi
test eax, eax
jne 0x40f3bc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40f3ff
lea ecx, [ebp - 0x14]
push str.NPIDMan2.dll
lea edx, [ebp + 0xc]
push ecx
push edx
call fcn.005888ef
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.005887f9
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.005886c0
mov eax, dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x40f42c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40f42c
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005886c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005886c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f4b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a5b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
mov eax, dword [0x663654]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, ecx
push str.NPIDMan1.dll
push eax
lea ecx, [ebp - 0x11c]
push 0x639028
push ecx
mov dword [ebp - 4], 0
call fcn.0056d05a
mov edx, dword [0x65ec1c]
add esp, 0x10
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x40f544
mov eax, dword [ebp + 8]
test eax, eax
jl 0x40f5ca
cmp eax, dword [esi + 0x50]
jge 0x40f5ca
mov ecx, dword [esi + 0x4c]
lea edx, [ecx + eax*4]
lea ecx, [ebp - 0x14]
push edx
call fcn.005887f9
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov eax, dword [eax - 8]
test eax, eax
setg cl
mov eax, ecx
jmp case.default.0x40f551
mov edx, dword [ebp + 8]
xor eax, eax
lea ecx, [edx - 1]
cmp ecx, 3
ja case.default.0x40f551
jmp dword [ecx*4 + 0x40f6b4]
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0040eea0
jmp case.default.0x40f551
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call fcn.0040ec20
jmp case.default.0x40f551
lea edx, [ebp - 0x14]
mov ecx, esi
push edx
call fcn.0040f8b0
jmp case.default.0x40f551
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.0040f6d0
test eax, eax
je 0x40f5ca
lea ecx, [ebp - 0x14]
push str.NPIDMan1.dll
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.005888ef
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea ecx, [ebp - 0x11c]
mov bl, 2
push eax
push ecx
mov byte [ebp - 4], bl
call esi
test eax, eax
jne 0x40f5eb
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.005886c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [0x663654]
push str.NPIDMan2.dll
push edx
lea eax, [ebp - 0x11c]
push 0x639028
push eax
call fcn.0056d05a
add esp, 0x10
lea ecx, [ebp - 0x14]
lea edx, [ebp + 8]
push str.NPIDMan2.dll
push ecx
push edx
call fcn.005888ef
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.005887f9
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.005886c0
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x11c]
push eax
push ecx
call esi
test eax, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
je 0x40f5c5
call fcn.005886c0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005886c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8