joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a62
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x420
lea ebp, [esp - 4]
mov eax, dword [0x433e80]
xor eax, ebp
mov dword [ebp + 0x420], eax
push 0x14
mov eax, 0x427295
call fcn.004151ef
mov ebx, dword [ebp + 0x42c]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp]
push eax
mov esi, 0x105
push esi
mov dword [ebp - 0x14], ecx
push esi
mov ecx, ebx
call fcn.00401a3e
push eax
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
test eax, eax
jne 0x403ab7
xor al, al
jmp 0x403bab
mov eax, dword [ebp - 0x10]
push 0
mov byte [eax - 1], 0
push 0x20
lea eax, [ebp + 0x108]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x403ab0
mov edi, dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
push esi
lea eax, [ebp + 0x210]
push eax
lea eax, [ebp]
push eax
call edi
test eax, eax
je 0x403ab0
push esi
lea eax, [ebp + 0x318]
push eax
lea eax, [ebp + 0x108]
push eax
call edi
test eax, eax
je 0x403ab0
lea eax, [ebp + 0x318]
push eax
call fcn.004156b0
push eax
lea eax, [ebp + 0x318]
push eax
lea eax, [ebp + 0x210]
push eax
call fcn.004187c6
add esp, 0x10
test eax, eax
jne 0x403ab0
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov ecx, dword [eax]
cmp dword [ecx - 8], 0
push 0x429960
push eax
jne 0x403b70
lea eax, [ebp - 0x20]
push eax
call fcn.00403369
push dword [ebp - 0x10]
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403369
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0040114e
lea ecx, [ebp - 0x14]
call fcn.004010f1
lea ecx, [ebp - 0x20]
jmp 0x403ba4
lea eax, [ebp - 0x18]
push eax
call fcn.00403369
push dword [ebp - 0x10]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00403369
push eax
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.0040114e
lea ecx, [ebp - 0x1c]
call fcn.004010f1
lea ecx, [ebp - 0x18]
call fcn.004010f1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x420]
xor ecx, ebp
call fcn.004151e0
add ebp, 0x424
leave
ret 4
Function at 0x4041b9
Capabilities:
Copy file
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
sub esp, 0x110
lea ebp, [esp - 4]
mov eax, dword [0x433e80]
xor eax, ebp
mov dword [ebp + 0x110], eax
push 0x10
mov eax, 0x4273ad
call fcn.004151ef
mov eax, dword [0x433028]
mov edi, ecx
mov dword [ebp - 0x18], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp eax, 0x80000000
lea eax, [ebp - 0x18]
sbb esi, esi
push eax
lea ecx, [edi + 0x191]
add esi, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00401590
lea eax, [ebp - 0x1c]
push eax
push 0x20006
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404305
cmp byte [ebp + 0x11c], bl
je 0x4042ec
lea esi, [edi + 0x50]
push esi
lea ecx, [ebp - 0x14]
call fcn.00401d81
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00403a62
test al, al
je 0x404288
cmp byte [edi + 0x3c], bl
jne 0x404288
push ebx
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00401a3e
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
je 0x40427f
mov byte [edi + 0x3c], 1
jmp 0x404288
push esi
lea ecx, [ebp - 0x14]
call fcn.0040119e
mov esi, 0x10e
push esi
lea eax, [ebp]
push ebx
push eax
call fcn.00415630
add esp, 0xc
push esi
lea eax, [ebp]
push eax
push 0x105
lea ecx, [ebp - 0x14]
call fcn.00401a3e
push eax
call dword [sym.imp.KERNEL32.DLL_GetShortPathNameA]
push 0x42999c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
mov esi, dword [ebp - 0x18]
lea eax, [ebp]
push eax
call fcn.004156b0
pop ecx
push eax
lea eax, [ebp]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x14]
call fcn.004010f1
jmp 0x4042f8
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x18]
call fcn.004010f1
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x110]
xor ecx, ebp
call fcn.004151e0
add ebp, 0x114
leave
ret 4
Function at 0x404335
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0xb4]
sub esp, 0x134
mov eax, dword [0x433e80]
xor eax, ebp
mov dword [ebp + 0xb0], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x80], esi
add esi, 0x10
mov eax, dword [esi]
xor ebx, ebx
mov dword [ebp - 0x68], 0x3d644c9b
mov word [ebp - 0x64], 0x1fb8
mov word [ebp - 0x62], 0x4f30
mov byte [ebp - 0x60], 0x9b
mov byte [ebp - 0x5f], 0x45
mov byte [ebp - 0x5e], 0xf6
mov byte [ebp - 0x5d], 0x70
mov byte [ebp - 0x5c], 0x23
mov byte [ebp - 0x5b], 0x5f
mov byte [ebp - 0x5a], 0x79
mov byte [ebp - 0x59], 0xc0
cmp dword [eax - 8], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov dword [ebp - 0x70], ebx
je 0x4043bd
push ebx
push eax
call edi
cmp eax, ebx
jne 0x4044de
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x4044de
push str.shell32.dll
call fcn.00404023
cmp eax, ebx
mov dword [ebp - 0x7c], eax
je 0x40449a
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x40443f
lea ecx, [ebp - 0x74]
push ecx
push ebx
push 0x8000
lea ecx, [ebp - 0x68]
push ecx
mov dword [ebp - 0x74], ebx
call eax
test eax, eax
jl 0x40443f
push dword [ebp - 0x74]
lea ecx, [ebp - 0x78]
call fcn.0040328c
mov ecx, dword [ebp - 0x80]
lea eax, [ebp - 0x78]
push eax
call fcn.004029d2
lea ecx, [ebp - 0x78]
mov byte [ebp - 0x69], al
call fcn.004010f1
cmp byte [ebp - 0x69], bl
je 0x404431
push dword [ebp - 0x74]
mov ecx, esi
call fcn.004032dc
mov dword [ebp - 0x70], 1
push dword [ebp - 0x74]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [ebp - 0x70], ebx
jne 0x40448c
push 0x4299f0
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
cmp eax, ebx
je 0x40448c
push 1
push 0x19
lea ecx, [ebp - 0x58]
push ecx
push ebx
call eax
lea eax, [ebp - 0x58]
push eax
push str._sDownloads
push esi
call fcn.0040231b
mov eax, dword [esi]
add esp, 0xc
push ebx
push eax
call edi
cmp eax, ebx
jne 0x404485
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x40448c
mov dword [ebp - 0x70], 1
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [ebp - 0x70], ebx
jne 0x4044de
push str.C:Downloads
mov ecx, esi
call fcn.0040119e
mov eax, dword [esi]
push ebx
push eax
call edi
test eax, eax
jne 0x4044de
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x4044de
lea eax, [ebp - 0x58]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
push ebx
lea eax, [ebp - 0x58]
push eax
call edi
lea eax, [ebp - 0x58]
push eax
mov ecx, esi
call fcn.0040119e
mov ecx, dword [ebp + 0xb0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004151e0
add ebp, 0xb4
leave
ret
Function at 0x404ca8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
call fcn.004049e8
push 5
xor ecx, ecx
push ecx
push ecx
push dword [eax]
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 4]
call fcn.004010f1
leave
ret
Function at 0x404cd3
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x433e80]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x38
mov eax, 0x42747d
call fcn.004151ef
mov edi, dword [ebp + 0x214]
and dword [ebp - 0x20], 0
mov esi, ecx
mov dword [ebp - 0x44], edi
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov ecx, dword [0x433028]
mov dword [edi], ecx
mov dword [ebp - 0x20], eax
mov eax, dword [0x433028]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004049e8
lea ebx, [esi + 0x10]
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.0040114e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.004010f1
push 0x429596
push dword [ebp + 0x21c]
call fcn.00415af0
test eax, eax
pop ecx
pop ecx
jne 0x404d6e
push ebx
lea ecx, [ebp + 0x21c]
call fcn.0040114e
lea eax, [ebp + 0x21c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040114e
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x1c]
push eax
push 0x20
push 0
call ebx
test eax, eax
jne 0x404dea
lea eax, [ebp + 0x104]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp + 0x104]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040119e
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00401ee3
test al, al
je 0x404dea
lea eax, [ebp - 0x1c]
push eax
push 0x10
push 0
call ebx
lea eax, [ebp + 0x104]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp + 0x104]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040119e
push 0x20
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00415630
mov eax, dword [esi + 0x4c]
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], eax
lea eax, [ebp]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x218]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x30], 0x51
mov dword [ebp - 0x2c], 0x4027eb
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov esi, eax
test esi, esi
je 0x404e70
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea eax, [ebp]
push eax
mov ecx, edi
call fcn.0040119e
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x404e7e
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x404e7e
lea eax, [ebp + 0x21c]
push eax
mov ecx, edi
call fcn.0040114e
lea ecx, [ebp - 0x18]
call fcn.004010f1
lea ecx, [ebp - 0x10]
call fcn.004010f1
lea ecx, [ebp + 0x218]
call fcn.004010f1
lea ecx, [ebp + 0x21c]
call fcn.004010f1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.004151e0
add ebp, 0x20c
leave
ret 0xc
Function at 0x404ecb
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x4274b5
call fcn.004151ef
mov edi, ecx
cmp word [ebp + 8], 1
jne 0x404f9a
push 0x104
push 0
lea ecx, [ebp + 8]
call fcn.00401fc6
and dword [ebp - 4], 0
lea esi, [edi + 0x15c]
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00402b38
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 8]
push esi
push eax
jmp 0x404f6b
lea eax, [ebp - 0x10]
push eax
call fcn.004049e8
mov ebx, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00402af3
push dword [eax + 4]
lea eax, [ebp + 8]
push dword [ebx]
push str._s_s
push eax
call fcn.0040231b
add esp, 0x10
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0
call fcn.004010f1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [ebp - 0x18]
call fcn.00402b14
push esi
push dword [esi + 8]
lea ecx, [ebp - 0x20]
call fcn.00402b38
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402bf8
test al, al
mov ecx, edi
je 0x404f1d
push 2
mov byte [edi + 8], 1
call fcn.004027a5
lea ecx, [ebp + 8]
call fcn.004010f1
jmp 0x404fa1
mov dword [edi + 0xc], 4
call fcn.0041528e
ret 4

Function at 0x404fa9
Capabilities:
Delete file
Delete registry key

Disassembly:
push 0x24
mov eax, 0x4274f0
call fcn.004151ef
mov edi, ecx
mov eax, dword [0x433028]
mov dword [ebp - 0x18], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
lea esi, [edi + 0x15c]
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00402b38
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.00402b38
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402bf8
mov ebx, str._s_s
jmp 0x405092
lea ecx, [ebp - 0x28]
call fcn.00402af3
mov ecx, eax
call fcn.004026a4
lea ecx, [ebp - 0x28]
call fcn.00402af3
and dword [eax + 0x10], 0
and dword [eax + 0x14], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.004049e8
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.00402af3
push dword [eax + 4]
mov eax, dword [ebp - 0x1c]
push dword [eax]
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0040231b
add esp, 0x10
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.004010f1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [ebp - 0x28]
call fcn.00402b14
push esi
push dword [esi + 8]
lea ecx, [ebp - 0x30]
call fcn.00402b38
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402bf8
test al, al
je 0x40500f
lea eax, [ebp - 0x10]
push eax
lea ecx, [edi + 0x191]
call fcn.00401590
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str.SoftwareTrymedia_SystemsDownload_Manager
push ebx
push eax
call fcn.0040231b
add esp, 0x10
push dword [ebp - 0x14]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x10]
call fcn.004010f1
lea ecx, [ebp - 0x14]
call fcn.004010f1
lea ecx, [ebp - 0x18]
call fcn.004010f1
call fcn.0041528e
ret
Function at 0x4050ea
Capabilities:
Get file size

Disassembly:
push 0x2c
mov eax, 0x42751b
call fcn.004151ef
mov dword [ebp - 0x18], ecx
lea esi, [ecx + 0x15c]
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 0xd], 1
call fcn.00402b38
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
push esi
push eax
lea ecx, [ebp - 0x38]
call fcn.00402b38
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402bf8
test al, al
jne 0x405214
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x20]
push eax
call fcn.004049e8
push 0x429960
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
call fcn.00403369
mov edi, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402af3
add eax, 4
push eax
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.00403321
lea ecx, [ebp - 0x1c]
call fcn.004010f1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004010f1
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocStringLen
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405209
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push edi
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x28]
call fcn.00402af3
mov ecx, dword [eax + 0xc]
cmp ecx, dword [ebp - 0x2c]
ja 0x405209
jb 0x4051d7
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0x30]
ja 0x405209
lea ecx, [ebp - 0x14]
call fcn.004010f1
lea ecx, [ebp - 0x28]
call fcn.00402b14
push esi
push dword [esi + 8]
lea ecx, [ebp - 0x38]
call fcn.00402b38
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402bf8
test al, al
je 0x40513f
jmp 0x405214
lea ecx, [ebp - 0x14]
mov byte [ebp - 0xd], bl
call fcn.004010f1
mov al, byte [ebp - 0xd]
call fcn.0041528e
ret
Function at 0x405b86
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 4
jne 0x405bac
lea eax, [esp + 4]
push eax
xor eax, eax
push eax
push esi
push 0x40554f
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x684], eax
pop esi
pop ecx
ret

Function at 0x406591
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
cmp byte [ecx + 0x49], al
jne 0x4065bb
mov dl, byte [ebp + 8]
mov byte [ecx + 0x44], dl
lea edx, [ebp + 8]
push edx
push eax
push ecx
push 0x405f8b
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
ret 4
Function at 0x40765f
Capabilities:
Delete file
Terminate thread

Disassembly:
push 0x18
mov eax, 0x427845
call fcn.004151ef
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [esi], vtable.CDownload.0
and dword [ebp - 4], 0
mov eax, dword [0x433028]
mov dword [ebp - 0x10], eax
lea ebx, [esi + 0x15c]
push ebx
push dword [ebx + 4]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.00402b38
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
push ebx
push dword [ebx + 8]
mov dword [ebp - 0x18], eax
jmp 0x4076fd
lea ecx, [ebp - 0x1c]
call fcn.00402af3
mov ecx, eax
call fcn.004026a4
lea ecx, [ebp - 0x1c]
call fcn.00402af3
mov ecx, dword [eax + 0x10]
or ecx, dword [eax + 0x14]
jne 0x4076f1
lea ecx, [ebp - 0x1c]
call fcn.00402af3
push dword [eax + 4]
lea eax, [ebp - 0x10]
push dword [esi + 0x10]
push str._s_s
push eax
call fcn.0040231b
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
lea ecx, [ebp - 0x1c]
call fcn.00402b14
push ebx
push dword [ebx + 8]
lea ecx, [ebp - 0x24]
call fcn.00402b38
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00402bf8
test al, al
je 0x4076aa
mov eax, dword [esi + 0x684]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
je 0x40774b
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
jne 0x407743
push 0
push dword [esi + 0x684]
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [esi + 0x684]
call edi
mov eax, dword [esi + 0x694]
test eax, eax
je 0x407758
push eax
call edi
lea ecx, [ebp - 0x10]
call fcn.004010f1
mov eax, dword [esi + 0x690]
test eax, eax
je 0x40776d
push eax
call edi
lea ecx, [esi + 0x68c]
call fcn.004010f1
lea ecx, [esi + 0x688]
call fcn.004010f1
mov ecx, ebx
call fcn.0040699b
lea ecx, [esi + 0x154]
call fcn.004010f1
lea ecx, [esi + 0x40]
call fcn.004010f1
lea ecx, [esi + 0x38]
call fcn.004010f1
lea ecx, [esi + 0x34]
call fcn.004010f1
lea ecx, [esi + 0x30]
call fcn.004010f1
lea ecx, [esi + 0x10]
call fcn.004010f1
call fcn.0041528e
ret

Function at 0x4077c3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x694]
test eax, eax
je 0x4077f0
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x40781a
push dword [esi + 0x694]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp + 8]
lea ecx, [esi + 0x68c]
call fcn.0040114e
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x406ea6
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [esi + 0x694], eax
pop esi
leave
ret 4
Function at 0x40781f
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x433e80]
xor eax, ebp
mov dword [ebp + 0x390], eax
mov eax, dword [ebp + 0x3a0]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x39c]
push esi
mov esi, dword [ebp + 0x3a4]
push edi
xor edi, edi
push edi
push 0x84000100
push edi
push edi
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, edi
mov dword [ebp - 0x74], eax
je 0x4078db
push ebx
mov ecx, esi
call fcn.00405d42
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, 0x400
jmp 0x4078ac
cmp dword [ebp - 0x78], 0
je 0x4078be
push esi
push dword [esi + 8]
lea ecx, [ebp - 0x80]
call fcn.00402b38
push dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
lea eax, [ebp + eax - 0x70]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x7c]
mov ecx, esi
push dword [ebp - 0x80]
call fcn.00406cc5
lea eax, [ebp - 0x78]
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call edi
test eax, eax
jne 0x40787e
push dword [ebp - 0x74]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esi + 4]
test eax, eax
pop ebx
je 0x4078db
mov ecx, dword [esi + 8]
sub ecx, eax
je 0x4078db
xor eax, eax
inc eax
jmp 0x4078dd
xor eax, eax
mov ecx, dword [ebp + 0x390]
pop edi
xor ecx, ebp
pop esi
call fcn.004151e0
add ebp, 0x394
leave
ret 0xc
Function at 0x40896d
Capabilities:
Accept command line arguments
Create thread

Disassembly:
push 0x10
mov eax, 0x427a6c
call fcn.004151ef
mov esi, ecx
mov dword [ebp - 0x1c], esi
mov edi, 0x429596
xor ebx, ebx
push edi
lea ecx, [esi + 0x10]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CDownload.0
call fcn.00401d81
mov eax, dword [0x433028]
mov dword [esi + 0x30], eax
mov eax, dword [0x433028]
mov dword [esi + 0x34], eax
mov eax, dword [0x433028]
mov dword [esi + 0x38], eax
mov byte [esi + 0x3c], bl
mov eax, dword [0x433028]
mov dword [esi + 0x40], eax
mov eax, dword [0x433028]
mov dword [esi + 0x154], eax
lea eax, [esi + 0x15c]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea ecx, [esi + 0x191]
mov byte [ebp - 4], 7
call fcn.004012e2
push edi
lea ecx, [esi + 0x688]
mov dword [esi + 0x684], ebx
call fcn.00401d81
mov eax, dword [0x433028]
mov dword [esi + 0x68c], eax
lea ecx, [esi + 0x690]
call fcn.004026f2
lea eax, [ebp + 8]
push eax
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 0xa
mov dword [esi + 0x694], ebx
mov dword [esi + 0x178], ebx
call fcn.0040114e
mov edi, 0x104
push edi
lea eax, [esi + 0x50]
push ebx
push eax
mov dword [esi + 0x158], ebx
mov byte [esi + 8], 1
call fcn.00415630
add esp, 0xc
push edi
lea eax, [esi + 0x50]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
or dword [esi + 0x170], 0xffffffff
or dword [esi + 0x174], 0xffffffff
lea ecx, [esi + 0x191]
mov byte [esi + 0x47], bl
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x184], ebx
call fcn.00401661
mov ecx, esi
call fcn.00403bd0
mov ecx, esi
call fcn.00404335
push str.Macrovision_DM_2.2.144
lea ecx, [esi + 0x34]
call fcn.0040119e
push 1
lea ecx, [esi + 0x38]
call fcn.00401ae7
push 3
mov ecx, esi
mov byte [esi + 0x46], 1
call fcn.004027a5
mov byte [esi + 0x4a], bl
mov byte [esi + 0x48], bl
mov byte [esi + 0x49], bl
mov byte [esi + 0x190], bl
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401d81
push 2
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00403411
push 0x429af0
push eax
call fcn.00401f00
lea ecx, [ebp - 0x18]
mov byte [ebp - 0xd], al
call fcn.004010f1
cmp byte [ebp - 0xd], bl
je 0x408b03
mov byte [esi + 0x45], bl
jmp 0x408b0a
mov byte [esi + 0x45], 1
mov byte [esi + 0x46], bl
mov ecx, esi
call fcn.00403860
test eax, eax
jne 0x408b21
push 1
mov ecx, esi
mov byte [esi + 0x46], bl
call fcn.004041b9
lea eax, [esi + 0x17c]
push eax
push ebx
push esi
push 0x40876a
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
mov dword [esi + 0x180], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [ebp - 0x14]
call fcn.004010f1
lea ecx, [ebp + 8]
call fcn.004010f1
mov eax, esi
call fcn.0041528e
ret 4

Function at 0x409919
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8