joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x61c
mov eax, dword [esp + 0x620]
push esi
push edi
push eax
push str.UnRegisterComponants_:__In_Process_starts_____s
push 0x423bf0
call fcn.0040da30
push 0x423bf0
call fcn.00408aa0
mov edi, 0x423cf8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x42c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x423cf8
mov eax, ecx
mov esi, edi
mov edi, edx
push str._s_reg.bat
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x22c]
push ecx
call fcn.0040da30
lea edx, [esp + 0x230]
push edx
push str.UnRegisterComponants_:_Reg.bat_____s
push 0x423bf0
call fcn.0040da30
push 0x423bf0
call fcn.00408aa0
lea eax, [esp + 0x240]
push 0x41eb50
push eax
call fcn.0040df40
mov edi, eax
add esp, 0x34
test edi, edi
mov dword [esp + 8], edi
je 0x40251b
mov ecx, dword [edi + 0xc]
push ebx
and ecx, 0x10
push ebp
cmp cl, 1
je 0x402510
lea edx, [esp + 0x14]
push str.EOF
push edx
xor ebp, ebp
call fcn.0040da30
push edi
lea eax, [esp + 0x20]
push 0x104
push eax
call fcn.0040dd00
add esp, 0x14
mov esi, str.EOF
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x4023f3
test cl, cl
je 0x4023ef
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x4023f3
add eax, 2
add esi, 2
test cl, cl
jne 0x4023cb
xor eax, eax
jmp 0x4023f8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402510
lea eax, [esp + 0x14]
push 0x41eb3c
push eax
call fcn.0040db30
add esp, 8
test eax, eax
je 0x402419
mov byte [eax], 0
lea ecx, [esp + 0x14]
push 0x41eb38
push ecx
call fcn.0040db30
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x402502
add ebx, 3
push 0x41eb34
push ebx
call fcn.0040db30
add esp, 8
test eax, eax
je 0x402452
mov ebp, 1
add ebx, 2
mov edi, 0x42410c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x118]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x11c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x428]
push ecx
push 0x41eb2c
push edx
call fcn.0040da30
lea edi, [esp + 0x128]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x320]
push ecx
lea ecx, [esp + 0x11c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
cmp ebp, 1
jne 0x4024c9
sub ebx, 2
lea edx, [esp + 0x320]
lea eax, [esp + 0x14]
push edx
push eax
lea ecx, [esp + 0x530]
push str._s_U__s
push ecx
mov byte [ebx], 0
call fcn.0040da30
add esp, 0x10
lea edx, [esp + 0x528]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0xc]
and eax, 0x10
cmp al, 1
jne 0x40239e
push edi
call fcn.0040dbb0
add esp, 4
pop ebp
pop ebx
mov ecx, dword [esp + 0x628]
push ecx
push str.UnRegisterComponants_:__Out_Process_starts_____s
push 0x423bf0
call fcn.0040da30
push 0x423bf0
call fcn.00408aa0
add esp, 0x10
pop edi
pop esi
add esp, 0x61c
ret
Function at 0x402550
Capabilities:
Get disk size

Disassembly:
sub esp, 0xc
xor eax, eax
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
push eax
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov esi, dword [esp + 4]
shr esi, 0xa
imul esi, dword [esp + 8]
imul esi, dword [esp + 0xc]
shr esi, 0xa
push esi
push str.DlgProc_:_Free_space___ld
push 0x423bf0
call fcn.0040da30
push 0x423bf0
call fcn.00408aa0
add esp, 0x10
mov eax, esi
pop esi
add esp, 0xc
ret
Function at 0x4057f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x34c
push ebp
mov ebp, dword [esp + 0x354]
push edi
push ebp
push str.DeleteFolder_:__In_folder_path___s
push 0x423bf0
call fcn.0040da30
push 0x423bf0
call fcn.00408aa0
push ebp
call fcn.00405a30
add esp, 0x14
test eax, eax
jne 0x40583c
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
sbb eax, eax
pop edi
neg eax
pop ebp
add esp, 0x34c
ret
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xc]
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x405872
pop edi
mov eax, 1
pop ebp
add esp, 0x34c
ret
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x405889
pop edi
pop ebp
add esp, 0x34c
ret
push ebx
push esi
push ebp
lea edx, [esp + 0x18]
push str._s.
push edx
call fcn.0040da30
add esp, 0xc
lea eax, [esp + 0x118]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
test byte [esp + 0x118], 0x10
je 0x405972
mov esi, 0x42072c
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4058ff
test cl, cl
je 0x4058fb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4058ff
add eax, 2
add esi, 2
test cl, cl
jne 0x4058db
xor eax, eax
jmp 0x405904
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4059af
mov esi, 0x420728
lea eax, [esp + 0x144]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40593c
test cl, cl
je 0x405938
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40593c
add eax, 2
add esi, 2
test cl, cl
jne 0x405918
xor eax, eax
jmp 0x405941
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4059af
lea eax, [esp + 0x144]
lea ecx, [esp + 0x258]
push eax
push ebp
push 0x41eb2c
push ecx
call fcn.0040da30
lea edx, [esp + 0x268]
push edx
call fcn.004057f0
add esp, 0x14
jmp 0x4059af
lea eax, [esp + 0x144]
lea ecx, [esp + 0x258]
push eax
push ebp
push 0x41eb2c
push ecx
call fcn.0040da30
add esp, 0x10
lea edx, [esp + 0x258]
push 0x80
push edx
call edi
lea eax, [esp + 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x118]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4058c1
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x18]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ebp
push str.DeleteFolder_:__Out_folder_path___s
push 0x423bf0
call fcn.0040da30
push 0x423bf0
call fcn.00408aa0
add esp, 0x10
call ebx
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x34c
ret
Function at 0x405a30
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x348
lea eax, [esp + 0x244]
push ebx
push ebp
mov ebp, dword [esp + 0x354]
push edi
push ebp
push str._s.
push eax
xor edi, edi
call fcn.0040da30
add esp, 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x250]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x405a7e
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x348
ret
push esi
test byte [esp + 0x10], 0x10
je 0x405b22
mov esi, 0x42072c
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x405ab7
test cl, cl
je 0x405ab3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x405ab7
add eax, 2
add esi, 2
test cl, cl
jne 0x405a93
xor eax, eax
jmp 0x405abc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405b3e
mov esi, 0x420728
lea eax, [esp + 0x3c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x405aed
test cl, cl
je 0x405ae9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x405aed
add eax, 2
add esi, 2
test cl, cl
jne 0x405ac9
xor eax, eax
jmp 0x405af2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x405b3e
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x150]
push eax
push ebp
push 0x41eb2c
push ecx
call fcn.0040da30
lea edx, [esp + 0x160]
push edx
call fcn.00405a30
add esp, 0x14
add edi, eax
jmp 0x405b3e
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x150]
push eax
push ebp
push 0x41eb2c
push ecx
call fcn.0040da30
add esp, 0x10
inc edi
lea edx, [esp + 0x10]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405a7f
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x348
ret
Function at 0x406970
Capabilities:
Check if file exists
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push edi
mov edi, dword [esp + 0x218]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
je 0x406994
xor eax, eax
pop edi
add esp, 0x210
ret
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x41bad8
push 1
push 0
push 0x41bac8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x406a5f
mov eax, dword [esp + 8]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x224]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x228]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x22c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0x41bae8
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
test esi, esi
jl 0x406a55
mov eax, dword [esp + 0x220]
lea edx, [esp + 0x10]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, esi
pop esi
pop edi
add esp, 0x210
ret

Function at 0x408230
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
mov esi, dword [esp + 0x5c]
push edi
push esi
push str.Wait4Completion_:_Run___s
push 0x423bf0
call fcn.0040da30
push 0x423bf0
call fcn.00408aa0
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x28]
add esp, 0x10
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea edx, [esp + 8]
mov dword [esp + 0x10], eax
dec ecx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push edx
push eax
neg ecx
push 0
push 0
sbb ecx, ecx
push 0x10
push 0
and ecx, 0xfffffffb
push 0
push 0
add ecx, 5
push esi
push 0
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], cx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, 1
jne 0x4082f0
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
push str.Wait4Completion_:_SUCCESSFULLY___s
push 0x423bf0
call fcn.0040da30
push 0x423bf0
call fcn.00408aa0
mov edx, dword [esp + 0x18]
add esp, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x54
ret
Function at 0x408370
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4083bf
mov edx, dword [esp + 0x10]
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
ret
xor eax, eax
ret

Function at 0x4083d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push str.AdvApi32.dll
mov dword [esp + 0x10], ebx
mov byte [esp + 0x18], bl
mov byte [esp + 0x19], bl
mov byte [esp + 0x1a], bl
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 5
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
mov ecx, 0x27
xor eax, eax
mov edi, 0x423e00
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x423e00
mov dword [0x423e00], 0x9c
call edi
cmp eax, ebx
mov dword [0x4240cc], eax
jne 0x40844c
push 0x423e00
mov dword [0x423e00], 0x94
call edi
test eax, eax
jne 0x40844c
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [0x423e10]
dec eax
jne 0x408469
cmp dword [0x423e04], 5
jae 0x408469
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x10
ret
cmp esi, ebx
jne 0x408476
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
push str.CheckTokenMembership
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
jne 0x408498
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x10
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [esp + 0xc], eax
je 0x4084df
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call edi
test eax, eax
jne 0x4084d4
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x408500
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push esi
lea eax, [esp + 0xc]
push edi
push eax
push str.batfile_shellopencommand
push 0x80000000
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408557
mov edi, str.__1___
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push str.__1___
push 1
push eax
push 0x42410c
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
push str.comfile_shellopencommand
push 0x80000000
call ebp
test eax, eax
jne 0x408595
mov edi, str.__1___
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push str.__1___
push 1
push eax
push 0x42410c
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
push str.exefile_shellopencommand
push 0x80000000
call ebp
test eax, eax
jne 0x4085d3
mov edi, str.__1___
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push str.__1___
push 1
push eax
push 0x42410c
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
push str.piffile_shellopencommand
push 0x80000000
call ebp
test eax, eax
jne 0x408611
mov edi, str.__1___
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push str.__1___
push 1
push eax
push 0x42410c
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
push str.SoftwareVB_and_VBA_Program_SettingsMicrosoftAdminSecConfig
push 0x80000001
call ebp
test eax, eax
jne 0x40864f
mov edi, str.FALSE
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x14]
push str.FALSE
push 1
push eax
push str.ExecuteOnRun
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x408790
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
mov dword [esp + 0x24], 2
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4087ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov al, 1
pop ecx
ret
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4087fc
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop ecx
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop ecx
ret
Function at 0x408f10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
lea eax, [esp]
push eax
push str.SoftwareMessage_LabsNet_ProtectorConfig
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x408f7a
lea ecx, [esp + 4]
lea edx, [esp + 8]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x10]
push str.ShieldP
push eax
mov dword [esp + 0x1c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x40]
lea eax, [esp + 8]
push edx
push eax
call fcn.00418fc0
add esp, 8
test eax, eax
je 0x408f7a
mov eax, 1
add esp, 0x3c
ret
xor eax, eax
add esp, 0x3c
ret

Function at 0x408f80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
push edi
push str.ExtractZIPFile_:_ZIPEXTRACTION_s
push 0x423bf0
call fcn.0040da30
push 0x423bf0
call fcn.00408aa0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
add esp, 0x10
and ecx, 0xffff
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0x422808
push edi
mov ebp, eax
call fcn.0040df40
mov esi, eax
add esp, 8
test esi, esi
jne 0x409012
push edi
push str.ExtractZIPFile_:_ZIPEXTRACT_ERROR_s
push 0x423bf0
call fcn.0040da30
push 0x423bf0
call fcn.00408aa0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push ebp
push 1
push ebx
call fcn.0040f3c0
push esi
call fcn.0040dbb0
push edi
push str.ExtractZIPFile_:_ZIPEXTRACT_SUCCESS_s
push 0x423bf0
call fcn.0040da30
push 0x423bf0
call fcn.00408aa0
add esp, 0x24
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x409050
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push str.NPSETUP
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [0x4240b4], eax
jne 0x40906f
push str.CreateOneInstance_:_FAILED
jmp 0x4090a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40909f
push str.CreateOneInstance_:_ALREADY_EXISTS
push 0x423bf0
call fcn.0040da30
push 0x423bf0
call fcn.00408aa0
add esp, 0xc
push 0
call fcn.0040d8b0
push str.CreateOneInstance_:_SUCCESS
push 0x423bf0
call fcn.0040da30
push 0x423bf0
call fcn.00408aa0
add esp, 0xc
ret
Function at 0x40b2b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40b2bb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x40b3be
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x41b69c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41b69c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41b69c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41b69c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41b69c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x41b69c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x41b69c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41b69c]
xor eax, edx
inc ecx
dec edi
jne 0x40b2d6
pop edi
test esi, esi
je 0x40b3e0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x41b69c]
xor eax, edx
inc ecx
dec esi
jne 0x40b3c2
pop esi
pop ebx
not eax
ret

Function at 0x40bd80
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x40bdc1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40bdb6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x40bdd4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x40cd10
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x40cdc5
cmp dword [ebp + 4], 0xffffffff
jne 0x40cdc5
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x41e898
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x40cd8d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x40cd8d
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.0040bb10
add esp, 0x10
test eax, eax
jne 0x40cdb0
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.0040c050
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc