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

Disassembly:
sub esp, 0x158
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x44
mov dword [esp + 4], eax
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x160]
mov dword [esp + 8], eax
push ecx
push str.regsvr32
lea edx, [esp + 0x60]
mov dword [esp + 0x14], eax
push str._s___s___s
push edx
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0x174]
add esp, 0x10
test eax, eax
jne 0x4031b9
mov edi, 0x40842c
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x60]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop ebx
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x74]
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x4031f5
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x158
ret
mov ecx, dword [esp]
push 0x2710
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40321d
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x158
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x158
ret
Function at 0x403240
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x405740
push eax
mov eax, 0x10164
mov dword fs:[0], esp
call fcn.00405420
push ebx
push esi
push edi
push 0x408cd8
lea ecx, [esp + 0x10]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x10184]
mov ebx, 1
push 0x408450
push eax
mov dword [esp + 0x10180], ebx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4032bc
mov esi, dword [esp + 0x10180]
push 0x408cd8
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x14], ebx
jmp 0x40338c
lea ecx, [esp + 0x18]
push ebp
push ecx
call fcn.00401820
mov ebp, dword [sym.imp.MSVCRT.dll_fread]
add esp, 4
push edi
push 0x10000
lea edx, [esp + 0x17c]
push ebx
push edx
call ebp
mov esi, eax
add esp, 0x10
test esi, esi
je 0x403300
lea eax, [esp + 0x174]
push esi
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00401850
add esp, 0xc
cmp esi, 0x10000
je 0x4032d0
lea edx, [esp + 0x1c]
lea eax, [esp + 0x74]
push edx
push eax
call fcn.00401910
add esp, 8
lea ecx, [esp + 0x14]
call fcn.00405284
mov byte [esp + 0x1017c], 2
xor esi, esi
pop ebp
xor ecx, ecx
lea edx, [esp + 0x10]
mov cl, byte [esp + esi + 0x70]
push ecx
push str._02x
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
inc esi
cmp esi, 0x10
jl 0x40332e
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [esp + 0x10184]
add esp, 4
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0040530e
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x10178], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x10178], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10170]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10170
ret

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

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
test edi, edi
jne 0x403416
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x403416
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40340e
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
pop edi
pop esi
pop ebp
pop ebx
ret
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x403420
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x403466
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x403466
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40345e
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call ebx
pop edi
pop esi
pop ebx
ret
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4042e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x44
mov dword [esp + 4], eax
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
pop edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x160]
test eax, eax
je 0x40434b
mov eax, dword [esp + 0x164]
test eax, eax
je 0x404337
mov ecx, dword [esp + 0x15c]
lea edx, [esp + 0x54]
push ecx
push str._s__service
push edx
jmp 0x40435d
mov eax, dword [esp + 0x15c]
lea ecx, [esp + 0x54]
push eax
push str._s__regserver
push ecx
jmp 0x40435d
mov edx, dword [esp + 0x15c]
lea eax, [esp + 0x54]
push edx
push str._s__unregserver
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp]
lea edx, [esp + 0x10]
lea eax, [esp + 0x54]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4043a1
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x158
ret
mov edx, dword [esp]
push 0x4e20
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4043c9
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add esp, 0x158
ret
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x158
ret

Function at 0x4043e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
lea eax, [esp + 0x208]
push esi
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push str.driver
push 0x408fec
push str._s_s
push eax
call esi
mov eax, dword [esp + 0x428]
add esp, 0x10
test eax, eax
je 0x404500
push edi
lea ecx, [esp + 0x314]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x210]
push str.ADTVNIC.sys
push edx
lea eax, [esp + 0x114]
push str._s_s
push eax
call esi
lea ecx, [esp + 0x324]
push str.ADTVNIC.sys
push ecx
lea edx, [esp + 0x20]
push str._s_system32drivers_s
push edx
call esi
lea eax, [esp + 0x28]
push 0
lea ecx, [esp + 0x130]
push eax
push ecx
call fcn.004033c0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x138]
lea edx, [esp + 0x23c]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
push str.ADTVNIC.inf
push edx
lea eax, [esp + 0x140]
push str._s_s
push eax
call esi
lea ecx, [esp + 0x350]
push str.ADTVNIC.inf
push ecx
lea edx, [esp + 0x4c]
push str._s_system32drivers_s
push edx
call esi
add esp, 0x4c
lea eax, [esp + 8]
lea ecx, [esp + 0x10c]
push 0
push eax
push ecx
call fcn.004033c0
lea edx, [esp + 0x14]
push edx
call fcn.00405080
mov esi, eax
lea eax, [esp + 0x18]
push eax
call fcn.00403420
add esp, 0x14
mov eax, esi
pop edi
pop esi
add esp, 0x410
ret
call fcn.004050e0
lea ecx, [esp + 0x20c]
push ecx
call fcn.00404520
add esp, 4
xor eax, eax
pop esi
add esp, 0x410
ret
Function at 0x404520
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4057c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push ebp
lea ecx, [esp + 0x10]
call fcn.004052de
mov ebp, dword [esp + 0x44c]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
lea eax, [esp + 0x238]
push str._s.
push eax
mov dword [esp + 0x450], 0
call ebx
add esp, 0xc
lea ecx, [esp + 0x234]
push 0
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40465f
push esi
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x404651
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push 0x104
mov ecx, eax
mov byte [esp + 0x450], 1
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x44c], 0
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x40]
test eax, eax
lea eax, [esp + 0x34]
push eax
push ebp
push str._s_s
je 0x404637
lea ecx, [esp + 0x144]
push ecx
call ebx
lea edx, [esp + 0x148]
push edx
call fcn.00404520
jmp 0x40464e
lea ecx, [esp + 0x34c]
push ecx
call ebx
lea edx, [esp + 0x350]
push edx
call fcn.00403420
add esp, 0x14
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40458e
pop edi
pop esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::Close
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop ebx
test eax, eax
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [esp + 8]
jne 0x4046a0
call sub.MFC42.DLL_CFileFind::CFileFind
xor eax, eax
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
add esp, 0x440
ret
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0x434]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x440
ret
Function at 0x4046c0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
push eax
push 0x406700
push 1
push 0
push 0x406710
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4046fa
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
add esp, 0x210
ret
mov eax, dword [esp]
mov edx, dword [esp + 0x214]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp]
mov edx, dword [esp + 0x21c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [esp]
lea edx, [esp + 4]
push edx
push 0x406720
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jge 0x404744
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
lea eax, [esp + 8]
push 0x104
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push 2
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x18]
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
add esp, 0x210
ret
Function at 0x4047a0
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x30c
lea eax, [esp + 0x104]
push ebx
push ebp
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
push edi
push 0
push 0x17
push eax
push 0
call ebp
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
test eax, eax
jl 0x404912
mov eax, dword [esp + 0x320]
test eax, eax
je 0x4048eb
mov ecx, dword [0x4091b4]
lea edx, [esp + 0x114]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_s
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404821
call ebx
cmp eax, 0xb7
jne 0x40498e
mov edx, dword [0x4091b4]
lea eax, [esp + 0x114]
push edx
push eax
lea ecx, [esp + 0x18]
push str._s_s_
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x10]
push 0
push edx
call edi
test eax, eax
jne 0x404859
call ebx
cmp eax, 0xb7
jne 0x40498e
mov eax, dword [0x4091b4]
lea ecx, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x408ad4
push edx
call esi
push 0x408fec
lea eax, [esp + 0x22c]
push str._sTpnMangr.exe
push eax
call esi
lea ecx, [esp + 0x2c]
push 0x408cd8
lea edx, [esp + 0x238]
push ecx
push edx
call fcn.004046c0
mov eax, dword [0x4091b4]
lea ecx, [esp + 0x13c]
push eax
push ecx
lea edx, [esp + 0x40]
push 0x408aa0
push edx
call esi
push 0x408fec
lea eax, [esp + 0x254]
push str._sinstall.exe
push eax
call esi
add esp, 0x44
lea ecx, [esp + 0x10]
lea edx, [esp + 0x218]
push 0x4083d0
push ecx
push edx
call fcn.004046c0
add esp, 0xc
jmp 0x404912
mov eax, dword [0x4091b4]
lea ecx, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s_s_
push edx
call esi
lea eax, [esp + 0x20]
push eax
call fcn.00404520
add esp, 0x14
push 0
lea ecx, [esp + 0x118]
push 0
push ecx
push 0
call ebp
test eax, eax
jl 0x40498e
lea edx, [esp + 0x114]
lea eax, [esp + 0x10]
push edx
push 0x408a7c
push eax
call esi
mov eax, dword [esp + 0x32c]
add esp, 0xc
test eax, eax
je 0x404981
push 0x408fec
lea ecx, [esp + 0x21c]
push str._sTpnMangr.exe
push ecx
call esi
lea edx, [esp + 0x1c]
push 0x408cd8
lea eax, [esp + 0x228]
push edx
push eax
call fcn.004046c0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret
lea ecx, [esp + 0x10]
push ecx
call fcn.00403420
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30c
ret
Function at 0x4049a0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4057e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push ebx
push ebp
push esi
push str.ControlPanel_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
xor esi, esi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], esi
push eax
push 0xf003f
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x404b1a
mov eax, dword [esp + 0x130]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov edi, dword [esp + 0x10]
mov ebp, edi
cmp eax, esi
mov dword [esp + 0x14], ebp
je 0x404ae6
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x18]
push ecx
push edx
push esi
push 0xf003f
push esi
push esi
push esi
push str.82A096E9_76A8_4a19_807A_7DB4506B9941
push edi
mov dword [esp + 0x3c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404b02
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [esp + 0x18]
push str.ADT_TPN_Client_3.0
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push str.ADT_TPN_Client_3.0
push 1
push 0
push str.DisplayName
push esi
call ebx
push str.install_0
push 0x408fec
lea eax, [esp + 0x28]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x20]
push ecx
call edi
inc eax
lea edx, [esp + 0x20]
push eax
push edx
push 1
push 0
push str.UninstallString
push esi
call ebx
push str.www.adtsec.com
call edi
inc eax
push eax
push str.www.adtsec.com
push 1
push 0
push str.HelpLink
push esi
call ebx
push 0x408b14
call edi
inc eax
push eax
push 0x408b14
push 1
push 0
push str.Publisher
push esi
call ebx
test esi, esi
je 0x404af4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call ebx
xor esi, esi
jmp 0x404afa
push str.82A096E9_76A8_4a19_807A_7DB4506B9941
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x404b02
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
test edi, edi
je 0x404b0b
push edi
call ebx
xor ebp, ebp
test esi, esi
pop edi
je 0x404b13
push esi
call ebx
test ebp, ebp
je 0x404b1a
push ebp
call ebx
mov ecx, dword [esp + 0x120]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x120
ret
Function at 0x404b60
Capabilities:
Read .ini file
Set registry value

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push 0x4057fb
push eax
mov dword fs:[0], esp
sub esp, 0x18c
test edx, edx
push ebx
mov ebx, dword [esp + 0x1a0]
push esi
push edi
je 0x404bdc
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x404bdc
push edx
push 0x408fec
lea eax, [esp + 0x9c]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x94]
lea edx, [esp + 0x14]
push ecx
push 0x80
push edx
push 0x408cd8
push ebx
push 0x408618
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x404c02
mov edi, 0x408cd8
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREAdtTpnClient
push 0x80000002
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404c62
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [esp + 0xc]
inc eax
lea ecx, [esp + 0x14]
push eax
push ecx
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x404c62
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x198]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x198
ret

Function at 0x404c80
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xb0
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x2c], 2
jne 0x404d1a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea edx, [esp + 4]
mov dword [esp + 0xc], 1
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
push 0
push edx
push 0
push eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp + 0xb4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, 1
add esp, 0xb0
ret
mov edx, dword [esp + 0xb4]
push 0
push edx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, 1
add esp, 0xb0
ret
Function at 0x404d40
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404da0
lea ecx, [esp + 8]
mov dword [esp + 4], 1
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x14
ret

Function at 0x404db0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
mov ax, word [0x4083d4]
lea ecx, [esp + 4]
push ecx
push 0xf003f
push 0
push str.SoftwareADTTPNCLIENT
push 0x80000001
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov word [esp + 0x16], ax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404e15
lea edx, [esp + 8]
lea eax, [esp + 4]
push edx
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareADTTPNCLIENT
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push esi
push edi
lea edi, [esp + 0xa]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
lea ecx, [esp + 0xe]
push ecx
push 1
push eax
push str.KeepOnline
push edx
call esi
lea edi, [esp + 0xa]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0xa]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push 1
push 0
push str.KeyDepend
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x405450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406770
push 0x405600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
add esp, 4
mov dword [0x4091ec], 0xffffffff
mov dword [0x4091f0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4091e4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov edx, dword [0x4091e0]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x4091e8], ecx
call fcn.004055f0
mov eax, dword [0x408cd0]
test eax, eax
jne 0x4054e1
push 0x4055e0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
add esp, 4
call fcn.004055c0
push 0x408018
push 0x408014
call sub.MSVCRT.dll__initterm
add esp, 8
mov edx, dword [0x4091dc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x4091d8]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRT.dll___getmainargs]
add esp, 0x14
push 0x408010
push section..data
call sub.MSVCRT.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00402270
add esp, 0xc
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
jmp 0x405580
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x466020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403004
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fe4
xor eax, eax
push ebp
push 0x402fdd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403020
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fe4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x466020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x466020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403cb0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x468048], 0
je 0x403d11
cmp word [0x46821c], 0xd7b2
jne 0x403cd9
cmp dword [0x468224], 0
jbe 0x403cd9
mov eax, 0x468218
call dword [0x468234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46606c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403d38
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x466030], 0
jne 0x403d2d
push 0
push 0x466064
push 0x46606c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403e64
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004026cc
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x468049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403e2c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc