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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bf0
mov eax, dword [ebp - 8]
call fcn.00404bf0
mov eax, dword [ebp - 0xc]
call fcn.00404bf0
xor eax, eax
push ebp
push 0x468b65
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x468b80
call fcn.00404a08
lea eax, [ebp - 8]
mov edx, 0x468b80
call fcn.00404a08
lea eax, [ebp - 0xc]
mov edx, 0x468b80
call fcn.00404a08
mov bl, 1
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
call fcn.00404c58
push eax
lea eax, [ebp - 8]
call fcn.00404c58
push eax
lea eax, [ebp - 4]
call fcn.00404c58
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x468b4a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468b6c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404764
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push edi
lea eax, [ebp - 0x1a4]
xor edi, edi
push str.SOFTWAREClassesKOOPLAYER.CCTVPlayerCtrl.1CLSID
push eax
mov dword [ebp - 0x14], edi
call fcn.00409980
pop ecx
pop ecx
call fcn.00403f4e
test eax, eax
jne 0x401033
push str.SOFTWAREClassesCLSID_
jmp 0x401038
push str.SOFTWAREClassesWow6432NodeCLSID_
lea eax, [ebp - 0xdc]
push eax
call fcn.00409980
pop ecx
lea eax, [ebp - 4]
pop ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
lea eax, [ebp - 0x1a4]
push edi
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x401140
lea eax, [ebp - 8]
push esi
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x10]
push edi
push eax
push edi
push edi
mov dword [ebp - 0x10], 1
push dword [ebp - 4]
mov dword [ebp - 8], edi
call esi
push dword [ebp - 8]
call fcn.00409a70
pop ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
lea eax, [ebp - 0xdc]
push eax
call fcn.00409990
lea eax, [ebp - 0xdc]
push str.InprocServer32_
push eax
call fcn.00409990
add esp, 0x10
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0xdc]
push edi
push eax
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x401136
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push edi
push eax
push edi
push edi
push dword [ebp - 4]
call esi
push dword [ebp - 0xc]
call fcn.00409611
push dword [ebp - 8]
call fcn.00409a70
pop ecx
mov dword [ebp - 0xc], eax
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x401136
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.00409611
pop ecx
pop esi
mov eax, dword [ebp - 0x14]
pop edi
pop ebx
leave
ret
Function at 0x401147
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
push ebx
lea eax, [ebp - 0x390]
push str.SOFTWAREClasses_
push eax
call fcn.00409980
push dword [ebp + 0xc]
lea eax, [ebp - 0x390]
push eax
call fcn.00409990
lea eax, [ebp - 0x390]
push str.CLSID
push eax
call fcn.00409990
lea eax, [ebp - 0x264]
push str.SoftwareMicrosoftWindowsCurrentVersionExtStats_
push eax
call fcn.00409980
add esp, 0x20
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0xf003f
lea eax, [ebp - 0x390]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4012fe
push esi
lea eax, [ebp + 0xc]
push edi
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
mov dword [ebp + 0xc], ebx
call esi
push dword [ebp + 0xc]
call fcn.00409a70
mov dword [ebp - 8], eax
pop ecx
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0xc]
push dword [ebp - 8]
push eax
push ebx
push ebx
push dword [ebp - 4]
call esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
lea eax, [ebp - 0x264]
push eax
call fcn.00409990
lea eax, [ebp - 0x264]
push str.iexploreAllowedDomains
push eax
call fcn.00409990
add esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
lea eax, [ebp - 0x264]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push dword [ebp - 4]
call esi
push 0x4a
xor eax, eax
pop ecx
lea edi, [ebp - 0x137]
mov byte [ebp - 0x138], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.00409980
lea eax, [ebp - 0x138]
push str.cntv.cn
push eax
call fcn.00409990
add esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
lea eax, [ebp - 0x138]
push ebx
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call edi
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.00409980
lea eax, [ebp - 0x138]
push str.cctv.com
push eax
call fcn.00409990
add esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0x20006
push ebx
push ebx
lea eax, [ebp - 0x138]
push ebx
push eax
push dword [ebp + 8]
call edi
push dword [ebp - 4]
call esi
push dword [ebp - 8]
call fcn.00409611
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401301
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
push ebx
push esi
push edi
push 0x31
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x1a3]
mov byte [ebp - 0x1a4], bl
push 0x31
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0xdb]
mov byte [ebp - 0xdc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1a4]
push str.SOFTWAREClassesKOOPLAYER.CCTVPlayerCtrl.1CLSID
push eax
mov dword [ebp - 0x14], ebx
call fcn.00409980
pop ecx
pop ecx
call fcn.00403f4e
test eax, eax
je 0x401361
push str.SOFTWAREClassesWow6432NodeCLSID_
jmp 0x401366
push str.SOFTWAREClassesCLSID_
lea eax, [ebp - 0xdc]
push eax
call fcn.00409980
pop ecx
lea eax, [ebp - 4]
pop ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0xf003f
lea eax, [ebp - 0x1a4]
push ebx
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401470
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x10], 1
mov dword [ebp - 8], ebx
call edi
push dword [ebp - 8]
call fcn.00409a70
pop ecx
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x31
xor eax, eax
pop ecx
lea edi, [ebp - 0x26b]
mov byte [ebp - 0x26c], bl
push dword [ebp - 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xdc]
push eax
call fcn.00409990
lea eax, [ebp - 0xdc]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.00409980
lea eax, [ebp - 0xdc]
push str.InprocServer32_
push eax
call fcn.00409990
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0xdc]
push ebx
push eax
push dword [ebp + 8]
call esi
test eax, eax
jne 0x401467
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x26c]
push eax
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
test eax, eax
jne 0x401467
mov dword [ebp - 0x14], 1
push dword [ebp - 0xc]
call fcn.00409611
pop ecx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401478
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push str.RC_BINARYTYPE
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor esi, esi
mov dword [ebp + 8], eax
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [ebp + 0xc]
push esi
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4014eb
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
push str.SelfClear.dll
push 0xdd
push dword [ebp + 8]
call fcn.00401478
add esp, 0xc
mov ebx, 0x30c
lea eax, [ebp - 0x464]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, str._rundll32.exe
lea eax, [ebp - 0x464]
push edi
push eax
call esi
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40155e
lea eax, [ebp - 0x464]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x464]
push edi
push eax
call esi
lea eax, [ebp - 0x464]
push str._SelfClear.dll__MagicDel_16
push eax
call esi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x158]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x464]
push eax
call esi
push 0x44
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00409a80
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 0x80
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
lea eax, [ebp - 0x464]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40194b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov word [ebp - 0x10], 0x10
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x401fcc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
push 0x40
push eax
xor edi, edi
push 1
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xfffffffffffffff5
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x48]
push esi
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 4]
push edi
push eax
push edi
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp dword [ebp - 4], edi
mov dword [ebp - 8], eax
je 0x402057
cmp eax, edi
je 0x402057
lea ecx, [ebp - 8]
push edi
push ecx
push eax
push dword [ebp - 4]
push ebx
call esi
push 0x40
push str.CCTV_Player_Installer_V1.0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402094
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push str.RegDll_Error_0x_x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x48]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x48]
push 0x10
push str.CCTV_Player_Installer_V1.0
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402099
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp byte [0x419444], 0
je 0x4020ff
push edi
push 0xe
pop ecx
xor eax, eax
and byte [0x41964c], al
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
and dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], str.iexplore.exe
mov dword [ebp - 0x28], 0x419444
mov dword [ebp - 0x24], 0x419650
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
and byte [0x419444], 0
pop edi
leave
ret
Function at 0x403c42
Capabilities:
Get common file path

Disassembly:
mov eax, 0x412473
call fcn.0040a2c8
sub esp, 0x128
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov al, byte [ebp + 0xb]
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
mov byte [ebp - 0x28], al
call fcn.00403be4
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ieframe.dll
mov byte [ebp - 4], 2
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [ebp - 0x2c], eax
je 0x403cfa
push str.IEGetWriteableFolderPath
push eax
call edi
cmp eax, esi
je 0x403cf1
lea ecx, [ebp - 0x14]
push ecx
push 0x413230
call eax
cmp eax, esi
jl 0x403cf1
cmp dword [ebp - 0x14], esi
je 0x403cf1
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00403fc9
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x403cd0
call fcn.0040407a
mov dword [ebp - 0x10], eax
jmp 0x403cd3
mov dword [ebp - 0x10], esi
push dword [ebp - 0x10]
call fcn.00409bf0
pop ecx
push eax
lea ecx, [ebp - 0x28]
push dword [ebp - 0x10]
call fcn.00404192
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x20], esi
jne 0x403d9f
call fcn.00403ef9
test eax, eax
je 0x403d6c
push str.shell32.dll
call ebx
cmp eax, esi
mov dword [ebp - 0x10], esi
je 0x403d33
push str.SHGetKnownFolderPath
push eax
call edi
cmp eax, esi
je 0x403d33
lea ecx, [ebp - 0x10]
push ecx
push esi
push esi
push 0x413240
call eax
push 0x104
call fcn.00409a70
pop ecx
mov edi, eax
push esi
push esi
push 0x3c
push edi
push 0xffffffffffffffff
push dword [ebp - 0x10]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
call fcn.00409bf0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00404192
push edi
call fcn.00409611
pop ecx
jmp 0x403d9f
push 1
lea eax, [ebp - 0x134]
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x403d9f
lea eax, [ebp - 0x134]
push eax
call fcn.00409bf0
pop ecx
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404192
mov edi, dword [ebp + 8]
mov al, byte [ebp - 0x28]
push esi
mov ecx, edi
mov byte [edi], al
call fcn.00403be4
push dword [0x413250]
lea eax, [ebp - 0x28]
mov ecx, edi
push esi
push eax
call fcn.004040c4
push 1
pop eax
mov dword [ebp - 0x30], eax
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], al
call fcn.00403be4
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x403ddf
call fcn.0040404d
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403df0
Capabilities:
Get common file path

Disassembly:
mov eax, 0x412488
call fcn.0040a2c8
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ieframe.dll
mov dword [ebp - 4], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x403e7d
push str.IEGetWriteableFolderPath
push eax
call ebx
cmp eax, esi
je 0x403e74
lea ecx, [ebp - 0x10]
push ecx
push 0x413230
call eax
test eax, eax
jl 0x403e74
cmp dword [ebp - 0x10], esi
je 0x403e74
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00403fc9
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
je 0x403e5e
call fcn.0040407a
jmp 0x403e60
xor eax, eax
push eax
push dword [ebp + 0xc]
call fcn.00409980
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp + 0xc]
call fcn.00409bf0
test eax, eax
pop ecx
jne 0x403ede
call fcn.00403ef9
test eax, eax
je 0x403ed0
push str.shell32.dll
call edi
cmp eax, esi
mov dword [ebp - 0x18], esi
je 0x403eba
push str.SHGetKnownFolderPath
push eax
call ebx
cmp eax, esi
je 0x403eba
lea ecx, [ebp - 0x18]
push ecx
push esi
push esi
push 0x413240
call eax
push esi
push esi
push 0x3c
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x18]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x403ede
push 1
push 0x1a
push dword [ebp + 0xc]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, dword [ebp - 0x14]
pop edi
cmp ecx, esi
pop esi
pop ebx
je 0x403eed
call fcn.0040404d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x403ef9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00409a80
push 0x9c
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.00409a80
add esp, 0x18
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x403f42
leave
ret
cmp dword [ebp - 0xbc], 6
sbb eax, eax
inc eax
leave
ret

Function at 0x403f4e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push edi
xor edi, edi
push 0x24
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00409a80
push 0x9c
lea eax, [ebp - 0xc0]
push edi
push eax
call fcn.00409a80
add esp, 0x18
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x403fab
cmp dword [ebp - 0xbc], 6
jb 0x403fa9
cmp word [ebp - 0x24], 9
jne 0x403fa9
push 1
pop edi
mov eax, edi
pop edi
leave
ret
Function at 0x40aa67
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40aa87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d1a4
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40aaa8
test byte [esp + 8], 2
je 0x40aaa8
mov dword [0x41aff8], 0xd
mov dword [0x41affc], 5
jmp 0x40aa83
xor eax, eax
ret
Function at 0x407c10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4631eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045b3b9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407c92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00455dce
mov eax, dword [eax]
push 0x47bbd4
push eax
call fcn.004487ea
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045b644
test bl, bl
je 0x407c92
push 0x47bbd4
lea ecx, [esp + 0xc]
call fcn.0045b9d4
push 0x47bbe0
lea ecx, [esp + 0xc]
call fcn.0045b9d4
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x407cce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045b644
jmp 0x407d99
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x407d52
lea edx, [esp + 0x7c]
push 0x47bbdc
push edx
call fcn.004487ea
add esp, 8
test eax, eax
je 0x407d52
lea eax, [esp + 0x7c]
push 0x47bbd8
push eax
call fcn.004487ea
add esp, 8
test eax, eax
je 0x407d52
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407ce2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045b644
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4085b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408612
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x408620
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46326b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x482640]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x408758
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408686
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b644
xor eax, eax
jmp 0x4087cf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045b781
push esi
lea ecx, [esp + 0xc]
call fcn.0045ba10
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x47bc1c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4087ad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004085b0
test eax, eax
jne 0x4087ad
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.004085b0
test eax, eax
jne 0x4087ad
lea eax, [esp + 0x14]
push 0x47bbf8
push eax
call fcn.00448c80
mov esi, eax
add esp, 8
test esi, esi
jne 0x40878c
lea ecx, [esp + 0x14]
push 0x47bbf4
push ecx
call fcn.00448c00
mov esi, eax
add esp, 8
test esi, esi
jne 0x40878c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40878f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045b731
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40869e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045b644
xor eax, eax
jmp 0x4087cf
mov byte [esi], 0
push 0x47bbf0
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0045b644
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4