joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4085a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.00414286

Function at 0x409270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409285
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4092c4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4092c0
lea ebx, [ebx]
cmp esi, edx
jae 0x4092c4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4092b0
cmp esi, edx
jb 0x4092c9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40e706
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40e74b
call fcn.00413fa9
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40e74b
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40e767
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041b12a
mov ebx, eax
test edi, edi
je 0x40e765
test esi, esi
je 0x40e765
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4142e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00413fa9
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x414319
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0041433a
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41fe07
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0041321c
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x41fe43
call fcn.00420026
mov dword [esi + 0xc], 1
jmp 0x41fe48
call fcn.00420026
cmp dword [esi], 0
je 0x41fe91
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x41fe6b
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0040e7be
jmp 0x41fe7c
push 0xff
mov ecx, esi
call fcn.00403410
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00410b61
jmp 0x41feb5
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x41feb5
push dword [esi]
push dword [ebp - 4]
call fcn.0041a4b3
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41ff7b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00420026
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x41ffc3
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0040e7be
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00410b61
jmp 0x41ffce
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041a4b3
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4c61fe
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x548d1c
call fcn.005280c2
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040acfa
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x54f3e0
call fcn.00415a64
cmp eax, 0xffffffff
jne 0x4c62b2
push 0
push 0x54fff4
lea ecx, [ebp - 0x4d0]
call fcn.00415a64
cmp eax, 0xffffffff
jne 0x4c62b2
push 0
push 0x55264c
lea ecx, [ebp - 0x4d0]
call fcn.00415a64
cmp eax, 0xffffffff
jne 0x4c62b2
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.0040acfa
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x4c628e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00403500
jmp 0x4c62e1
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00409170
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00403500
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4c62d8
mov ebx, dword [ebp - 0x4cc]
jmp 0x4c62e1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00403500
mov eax, ebx
call fcn.00528071
ret
Function at 0x53891d
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5a02b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0052d570
mov dword [ebp - 0x14], eax
cmp dword [0x5abb9c], esi
jne 0x538a10
push 0x800
push esi
push 0x57ffe0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x53899d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x538af0
push esi
push esi
push 0x57ffe0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x538af0
push 0x57fff8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x538af0
push eax
call ebx
push 0x580004
push edi
mov dword [0x5abb9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x580014
push edi
mov dword [0x5abba0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5abba4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5abbac], eax
test eax, eax
je 0x538a0d
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5abba8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x538a35
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x538a28
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x538a4a
push 4
pop eax
jmp 0x538af2
cmp dword [ebp - 0x14], esi
je 0x538a4a
push dword [0x5abb9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x538a2f
mov eax, dword [0x5abba8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x538aa8
cmp dword [0x5abbac], edi
je 0x538aa8
push eax
call ebx
push dword [0x5abbac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x538aa8
test eax, eax
je 0x538aa8
call ecx
test eax, eax
je 0x538a9d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x538a9d
test byte [ebp - 8], 1
jne 0x538aa8
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x538ad8
mov eax, dword [0x5abba0]
cmp eax, edi
je 0x538ad5
push eax
call ebx
test eax, eax
je 0x538ad5
call eax
mov esi, eax
test esi, esi
je 0x538ad5
mov eax, dword [0x5abba4]
cmp eax, edi
je 0x538ad5
push eax
call ebx
test eax, eax
je 0x538ad5
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5abb9c]
call ebx
test eax, eax
je 0x538af0
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x538af2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00525b5c
mov esp, ebp
pop ebp
ret
Function at 0x4015c0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40f860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::CFile
mov eax, dword [esp + 0x40]
push 0
push 0x40
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x401700
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
cmp esi, 0xffffffff
jne 0x401620
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
sub esi, edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFile::CFile
mov ebx, dword [esp + 0x3c]
push 0x80
push ebx
mov byte [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push 0x1001
push ebx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4016e9
push ebp
push 0
push edi
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Seek
push 0x1000
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebx, eax
test esi, esi
mov ebp, 0x1000
jle 0x4016a0
cmp ebp, esi
jle 0x401682
mov ebp, esi
push ebp
push ebx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Read
mov edi, eax
lea ecx, [esp + 0x20]
push edi
push ebx
call sub.MFC42.DLL_CFile::Write
sub esi, edi
test esi, esi
jg 0x40167c
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.0040f024
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.0040f024
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFile::Close
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 0
call fcn.0040f024
lea ecx, [esp + 0xc]
mov dword [esp + 0x34], 0xffffffff
call fcn.0040f024
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x401810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
and edx, 0xffff
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
ret
Function at 0x4018b0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x40f8b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
lea eax, [esp + 4]
xor esi, esi
push eax
push 0x413858
push 1
push esi
push 0x413848
mov dword [esp + 0x234], 2
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4019c7
push 0x5c
lea ecx, [esp + 0x22c]
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 8]
push eax
push ecx
lea ecx, [esp + 0x230]
call sub.MFC42.DLL_CString::Left
mov ecx, dword [esp + 4]
mov eax, dword [eax]
push eax
push ecx
mov edx, dword [ecx]
mov byte [esp + 0x228], 3
call dword [edx + 0x24]
lea ecx, [esp + 8]
mov byte [esp + 0x220], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x228]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x230]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [esp + 4]
push 5
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [esp + 4]
lea ecx, [esp + 0xc]
push ecx
push 0x413868
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x4019bd
mov eax, dword [esp + 0x22c]
lea edx, [esp + 0x10]
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 1
push esi
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]
test eax, eax
jl 0x4019bd
mov esi, 1
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [esp + 0x228]
mov byte [esp + 0x220], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x22c]
mov byte [esp + 0x220], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov dword [esp + 0x220], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x220
ret
Function at 0x401a20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x40f8c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push 0
push 0x416074
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x401ac7
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push eax
call edi
cmp eax, 0xffffffff
lea ecx, [esp + 0x10]
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x401aad
lea ecx, [esp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0
push eax
call ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
inc esi
lea ecx, [esp + 0x28]
push esi
push 0x416074
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
jne 0x401a67
pop edi
pop ebp
pop ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x401af0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40f910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
lea ecx, [esp]
mov dword [esp + 0xc], 0
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x124]
mov dword [esp + 0x118], 1
cmp eax, 0x464
je 0x401b63
lea ecx, [esp + 4]
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov eax, dword [esp + 4]
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::operator
jmp 0x401bdc
lea edx, [esp + 4]
push edx
push 0x21
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov ecx, dword [esp + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea edx, [esp + 0x10]
lea ecx, [esp]
push edx
call sub.MFC42.DLL_CString::operator
push 0x5c
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp]
push eax
lea eax, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x11c], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x118], 1
call sub.MFC42.DLL_CString::CString
push str.Application_DataMicrosoftInternet_ExplorerQuick_Launch_
lea ecx, [esp + 4]
call fcn.0040f078
mov eax, dword [esp]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x401bf8
push 0x416074
lea ecx, [esp + 4]
call fcn.0040f078
push esi
mov esi, dword [esp + 0x124]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.0040f000
mov dword [esp + 0x10], 1
lea ecx, [esp + 4]
mov byte [esp + 0x11c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x114]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x401c40
Capabilities:
Check if file exists
Get common file path
Get file attributes
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40f92b
push eax
mov dword fs:[0], esp
sub esp, 0x110
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
push edi
push eax
push 0xff
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, str.star.tmp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401cbf
lea ecx, [esp + 0x20]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::CFile
push ebx
lea edx, [esp + 0x24]
push 0x1001
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x134], ebx
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x401d2a
mov eax, dword [esp + 0x134]
mov ecx, dword [esp + 0x130]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Write
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFile::Close
push 0x2050
push ebx
push ebx
lea edx, [esp + 0x2c]
push 1
push edx
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
mov ebx, eax
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_CFile::Remove
lea ecx, [esp + 0x10]
mov dword [esp + 0x128], 0xffffffff
call fcn.0040f024
mov ecx, dword [esp + 0x120]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x11c
ret
Function at 0x402290
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
push ebx
mov ebx, dword [esp + 0x80]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov ecx, esi
mov dword [esp + 0x20], 0
and ecx, 0x8000000f
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], 4
mov dword [esp + 0x34], 5
mov dword [esp + 0x38], 6
mov dword [esp + 0x3c], 7
mov dword [esp + 0x40], 8
mov dword [esp + 0x44], 9
mov dword [esp + 0x48], 0xa
mov dword [esp + 0x4c], 0xb
mov dword [esp + 0x50], 0xc
mov dword [esp + 0x54], 0xd
mov dword [esp + 0x58], 0xe
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x60], 0x10
mov dword [esp + 0x64], 0x11
mov dword [esp + 0x68], 0x12
mov dword [esp + 0x6c], 0x13
mov dword [esp + 0x70], 0x14
mov dword [esp + 0x74], 0x15
mov dword [esp + 0x78], 0x16
mov dword [esp + 0x7c], 0x17
mov dword [esp + 0x80], 0x18
jns 0x40237a
dec ecx
or ecx, 0xfffffff0
inc ecx
and esi, 0x80000003
jns 0x402387
dec esi
or esi, 0xfffffffc
inc esi
mov edi, dword [esp + 0x88]
mov ebp, 0xd
mov eax, edi
cdq
idiv ebp
mov eax, edi
mov ebp, 0xb
mov dword [esp + 0x10], edx
cdq
idiv ebp
mov eax, edi
mov ebp, 7
mov dword [esp + 0x14], edx
cdq
idiv ebp
mov eax, edi
mov edi, 3
mov dword [esp + 0x18], edx
cdq
idiv edi
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], edx
mov edx, 0x19
cmp ecx, 0xf
jle 0x4023d6
xor ecx, ecx
cmp esi, 3
jle 0x4023dd
xor esi, esi
mov edi, dword [ebx + ecx*4]
mov ebp, dword [eax]
xor ebp, edi
mov edi, dword [esp + esi*4 + 0x10]
mov dword [eax], ebp
xor ebp, edi
inc ecx
mov dword [eax], ebp
inc esi
add eax, 4
dec edx
jne 0x4023cf
mov edi, dword [esp + 0x90]
mov ecx, 0x19
lea esi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x4029c0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40f9f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [esp + 0xc]
push eax
push str._shell
push 0x80000000
mov dword [esp + 0x128], 0
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402a41
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x4166a8
push 0
push str._shell
push 0x80000000
call esi
lea eax, [esp + 0xc]
push eax
push str._shell
push 0x80000000
call edi
mov eax, dword [esp + 0x128]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0x4166a8
push 0
push eax
push ecx
call esi
lea edx, [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x4166a8
push 0
push str.command
push ecx
call esi
mov edx, dword [esp + 0x124]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx - 8]
lea ecx, [esp + 0x14]
mov byte [esp + eax + 0x14], 0
mov edx, dword [edx - 8]
push edx
mov edx, dword [esp + 0x10]
push ecx
push 1
push 0
push 0x4166a8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x124]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x128]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x402b30
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40fa18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [esp + 0xc]
push eax
push str.folder_shell
push 0x80000000
mov dword [esp + 0x128], 0
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402bb1
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0x4166a8
push 0
push str.folder_shell
push 0x80000000
call esi
lea eax, [esp + 0xc]
push eax
push str.folder_shell
push 0x80000000
call edi
mov eax, dword [esp + 0x128]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push 0xf003f
push 0
push 0x4166a8
push 0
push eax
push ecx
call esi
lea edx, [esp + 0x10]
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x4166a8
push 0
push str.command
push ecx
call esi
mov edx, dword [esp + 0x124]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx - 8]
lea ecx, [esp + 0x14]
mov byte [esp + eax + 0x14], 0
mov edx, dword [edx - 8]
push edx
mov edx, dword [esp + 0x10]
push ecx
push 1
push 0
push 0x4166a8
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x124]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x128]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x114]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x114
ret