joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ac88
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4b70d7
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x44ad15
Capabilities:
Delete file

Disassembly:
mov eax, 0x4b70f4
call sub.MSVCRT.dll__EH_prolog
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
lea ecx, [esi + 0x2e4]
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CMapStringToOb::operator__
mov edi, dword [ebp + 0x10]
lea ecx, [esi + 0x300]
mov dword [eax], edi
push dword [ebp + 0xc]
call sub.MFC42.DLL_CMapStringToOb::operator__
mov ecx, dword [ebp + 0x14]
cmp edi, 1
mov dword [eax], ecx
je 0x44ad71
cmp edi, 2
je 0x44ad7a
jle 0x44ad8b
cmp edi, 4
jg 0x44ad8b
push 0
lea ecx, [esi + 0x164]
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp 0x44ad85
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
lea ecx, [esi + 0x20]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.QQBaseClassInDll.dll_public:_unsigned_int___thiscall_CHttpDownload::Download_char_const___char_const___struct__SYSTEMTIME__]
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x44bf83
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
mov eax, 0x4b7308
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x4c
push ebx
push esi
mov esi, ecx
push edi
push 0x4fa7c4
lea eax, [ebp - 0x10]
lea edi, [esi + 0x158]
push edi
push eax
call sub.MFC42.DLL_operator_3
xor ebx, ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.00454178
mov eax, dword [esi + 0x15c]
push ebx
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x44c039
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44c039
push 0xc
lea eax, [ebp - 0x1c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov edi, dword [edi]
add esp, 0xc
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc
push eax
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 1
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x44c039
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x44c10f
lea ecx, [ebp - 0x3c]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x58]
call fcn.00454178
mov eax, dword [esi + 0x15c]
push ebx
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x44c0c8
lea ecx, [ebp - 0x20]
call fcn.004542c8
mov esi, dword [esi + 0x15c]
push ebx
push 0x1002
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x44c08a
xor esi, esi
jmp 0x44c08d
push 1
pop esi
lea ecx, [ebp - 0x58]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x44c10f
cmp dword [ebp + 8], 1
jne 0x44c0da
push dword [esi + 0x15c]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [esi + 0x15c]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x44c120
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4b733c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x48]
call fcn.00454178
mov eax, dword [esi + 0x15c]
xor ebx, ebx
push ebx
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x44c1a9
lea ecx, [ebp - 0x2c]
call fcn.004542c8
mov eax, dword [esi + 0x15c]
push ebx
push 0x1002
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x44c19d
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CFileFind::Close
and byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::CFile
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CFileFind::CFileFind
xor eax, eax
jmp 0x44c2bc
and byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CFile::CFile
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_4
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push 0x4fa784
push eax
call sub.MFC42.DLL_CString::Format
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
add esp, 0xc
push dword [esi + 0x15c]
push ebx
push ebx
push ebx
call edi
push dword [esi + 0x15c]
push ebx
mov ebx, str.PanelInfo
push str.PanelNum
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp dword [ebp + 8], 0
je 0x44c1fe
cmp eax, dword [ebp + 8]
jge 0x44c222
inc eax
push eax
lea eax, [ebp - 0x10]
push 0x4fa784
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [esi + 0x15c]
push dword [ebp - 0x10]
push str.PanelNum
push ebx
call edi
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_4
mov ebx, dword [ebp + 0xc]
mov byte [ebp - 4], 4
mov eax, dword [ebx + 0xc]
neg eax
sbb eax, eax
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x44c275
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_CMapStringToString::GetNextAssoc
push dword [esi + 0x15c]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call edi
cmp dword [ebp - 0x1c], 0
jne 0x44c24b
test ebx, ebx
pop edi
je 0x44c289
cmp dword [ebp + 0x10], 0
je 0x44c289
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call sub.MFC42.DLL_CFileFind::CFileFind
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x44ceb6
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4b7430
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x70
push esi
push edi
mov edi, ecx
push ecx
lea esi, [edi + 0x15c]
mov ecx, esp
mov dword [ebp - 0x18], esp
push esi
call sub.MFC42.DLL_CString::CString_3
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call fcn.0044cfb9
test eax, eax
jne 0x44ceef
push 1
jmp 0x44cf95
push dword [esi]
push 0
push str.PanelNum
push str.PanelInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x44cf11
push 2
jmp 0x44cf95
push 1
pop edi
cmp eax, edi
jl 0x44cf93
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_4
push edi
lea eax, [ebp - 0x10]
push 0x4fa784
push eax
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x7c]
push dword [esi]
push 0x64
push eax
push 0
push str.syspanel
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x7c]
lea ecx, [ebp - 0x14]
push eax
call sub.MFC42.DLL_CString::CString_2
push str.TRUE
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
mov byte [ebp - 4], 1
pop ecx
test eax, eax
lea ecx, [ebp - 0x14]
je 0x44cf98
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
inc edi
cmp edi, dword [ebp - 0x18]
jle 0x44cf18
push 3
pop eax
jmp 0x44cfab
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x44d072
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4b7470
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, str.PanelInfo
push dword [esi + 0x15c]
push 0
push str.PanelNum
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [ebp - 0x10]
lea ebx, [eax + 1]
call sub.MFC42.DLL_CString::CString_4
and dword [ebp - 4], 0
push ebx
mov ebx, 0x4fa784
lea eax, [ebp - 0x10]
push ebx
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [esi + 0x15c]
push dword [ebp - 0x10]
push str.PanelNum
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
call edi
push dword [esi + 0x15c]
push str.TRUE
push str.syspanel
push dword [ebp - 0x10]
call edi
push dword [esi + 0x15c]
push 0x4fbc88
push str.grade
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_4
push dword [ebp + 8]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push ebx
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [esi + 0x15c]
push dword [ebp - 0x14]
push str.panelid
push dword [ebp - 0x10]
call edi
push dword [esi + 0x15c]
push 0x4fa964
push str.type
push dword [ebp - 0x10]
call edi
push dword [esi + 0x160]
lea eax, [ebp - 0x14]
push ebx
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [esi + 0x15c]
push dword [ebp - 0x14]
push str.PanelIndex
push dword [ebp - 0x10]
call edi
inc dword [esi + 0x160]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x44d7dc
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4b7587
call sub.MSVCRT.dll__EH_prolog
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0xc]
call sub.MFC42.DLL_CString::CString_4
and dword [ebp - 4], 0
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString_4
mov ecx, dword [ebp - 0xc]
mov byte [ebp - 4], 8
or dword [esi], 0xffffffff
or dword [esi + 4], 0xffffffff
and dword [esi + 8], 0
and dword [esi + 0x18], 0
or dword [ebp - 4], 0xffffffff
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x454b20
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call sub.WSOCK32.dll_ntohl
push dword [esi + 4]
mov edi, eax
call sub.WSOCK32.dll_ntohl
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x10]
sub eax, ecx
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], eax
jmp 0x454b59
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
call sub.WSOCK32.dll_ntohl
mov dword [esi], eax
add esi, 4
dec dword [ebp + 8]
jne 0x454b56
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 0xc]
sub eax, 0x61c88647
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
mov esi, edi
shr edx, 5
add edx, dword [ebp - 4]
shl esi, 4
add esi, dword [ebp - 8]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x454b70
push edi
call sub.WSOCK32.dll_htonl
mov esi, dword [ebp + 0x10]
push ebx
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x454bc3
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi]
call sub.WSOCK32.dll_ntohl
push dword [esi + 4]
mov ebx, eax
call sub.WSOCK32.dll_ntohl
mov edi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
lea esi, [ebp - 0x10]
sub eax, ecx
mov dword [ebp + 8], 4
mov dword [ebp + 0xc], eax
jmp 0x454bfc
mov eax, dword [ebp + 0xc]
push dword [eax + esi]
call sub.WSOCK32.dll_ntohl
mov dword [esi], eax
add esi, 4
dec dword [ebp + 8]
jne 0x454bf9
push 0x10
mov eax, 0xe3779b90
pop ecx
mov edx, ebx
mov esi, ebx
shr edx, 5
add edx, dword [ebp - 4]
shl esi, 4
add esi, dword [ebp - 8]
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
sub edi, edx
mov edx, edi
mov esi, edi
shr edx, 5
add edx, dword [ebp - 0xc]
shl esi, 4
add esi, dword [ebp - 0x10]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add eax, 0x61c88647
sub ebx, edx
dec ecx
jne 0x454c16
push ebx
call sub.WSOCK32.dll_htonl
mov esi, dword [ebp + 0x10]
push edi
mov dword [esi], eax
call sub.WSOCK32.dll_htonl
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45517e
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call sub.MSVCRT.dll_memset
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
and dword [esi + 0x58], 0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
pop esi
ret
Function at 0x457053
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4b8484
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x68
push ebx
push esi
push edi
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [sym.imp.BasicCtrlDll.dll_class_CString___cdecl_GetExeFolder_void_]
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call esi
mov dword [esp], str.TIMProxy.dll
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, 0x20
jb 0x4570de
push str.DllRegisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4570d7
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x20]
push eax
call esi
mov dword [esp], str.TIMPlatform.exe
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 3
push eax
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
push str._RegServer
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
push 0x44
lea eax, [ebp - 0x74]
pop esi
mov byte [ebp - 4], 6
push esi
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
mov dword [ebp - 0x74], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
mov esi, dword [ebp - 0x18]
mov eax, dword [eax - 8]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x457170
push 0x1388
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4576ec
Capabilities:
Check os version

Disassembly:
mov eax, 0x4b853c
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x9c
push esi
push edi
mov esi, 0x9c
xor edi, edi
push esi
lea eax, [ebp - 0xa8]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call esi
cmp eax, edi
jne 0x45774a
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0x94
push eax
call esi
test eax, eax
je 0x4578d9
mov esi, dword [ebp + 8]
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebp - 0x98]
sub eax, edi
je 0x457823
dec eax
je 0x4577b1
dec eax
jne 0x45782f
cmp dword [ebp - 0xa4], 4
ja 0x45777f
push str.Microsoft_Windows_NT
jmp 0x457828
cmp dword [ebp - 0xa4], 5
jne 0x4577aa
cmp dword [ebp - 0xa0], edi
jne 0x45779a
push str.Microsoft_Windows_2000
jmp 0x457828
cmp dword [ebp - 0xa0], 1
jne 0x4577aa
push str.Microsoft_Windows_XP
jmp 0x457828
push str.Microsoft_Windows_XP_later
jmp 0x457828
cmp dword [ebp - 0xa4], 4
jne 0x45781c
cmp dword [ebp - 0xa0], edi
jne 0x4577e7
push str.Microsoft_Windows_95
mov ecx, esi
call sub.MFC42.DLL_CString::operator_2
cmp byte [ebp - 0x93], 0x43
je 0x4577e0
cmp byte [ebp - 0x93], 0x42
jne 0x45782f
push str.OSR2
jmp 0x457828
cmp dword [ebp - 0xa0], 0xa
jne 0x45780c
push str.Microsoft_Windows_98
mov ecx, esi
call sub.MFC42.DLL_CString::operator_2
cmp byte [ebp - 0x93], 0x41
jne 0x45782f
push 0x4fc9c8
jmp 0x457828
cmp dword [ebp - 0xa0], 0x5a
jne 0x45781c
push str.Microsoft_Windows_Me
jmp 0x457828
push str.Microsoft_Windows_Me_later
jmp 0x457828
push str.Microsoft_Win32s
mov ecx, esi
call sub.MFC42.DLL_CString::operator_2
cmp dword [ebp - 0xa4], 4
ja 0x457880
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 4], edi
and eax, 0xffff
push eax
lea eax, [ebp + 8]
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
push str._Build__d._d._d__n
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0045424a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
jmp 0x4578d1
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString_4
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 4], 1
and eax, 0xffff
push eax
lea eax, [ebp - 0x94]
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
push eax
lea eax, [ebp + 8]
push str._s__Build__d._d._d__n
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea eax, [ebp + 8]
mov ecx, esi
push eax
call fcn.0045424a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x46a5a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
mov esi, dword [ebp + 8]
pop ecx
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push 1
push eax
mov ecx, esi
call fcn.0046962f
lea eax, [ebp - 4]
push 2
push eax
mov ecx, esi
call fcn.0046962f
movzx eax, word [ebp - 4]
push eax
mov ecx, esi
push dword [ebp + 0x10]
call fcn.0046962f
movzx edi, word [ebp - 4]
mov eax, dword [esi]
xor ecx, ecx
mov cl, byte [ebp - 3]
sub eax, edi
add eax, dword [esi + 4]
xor cl, byte [ebp - 4]
xor edx, edx
test edi, edi
jle 0x46a612
mov bl, byte [edx + eax]
not bl
xor bl, cl
mov byte [edx + eax], bl
inc edx
movzx edi, word [ebp - 4]
cmp edx, edi
jl 0x46a5ff
movzx eax, byte [ebp + 0xc]
dec eax
cmp eax, 9
ja case.0x46a620.8
jmp dword [eax*4 + 0x46a767]
push 4
lea ecx, [ebp + 0x14]
pop eax
push eax
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x10]
jmp 0x46a67c
push 1
pop eax
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x14]
push eax
push 4
lea eax, [ebp + 0x10]
jmp 0x46a67c
push 2
pop eax
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x14]
push eax
push 4
lea eax, [ebp + 0x10]
jmp 0x46a67c
push 4
lea ecx, [ebp + 0x14]
pop eax
push eax
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x10]
jmp 0x46a67c
push 4
lea ecx, [ebp + 0x14]
pop eax
push eax
push ecx
mov dword [ebp + 0x10], eax
push eax
lea eax, [ebp + 0x10]
push eax
mov ecx, esi
call fcn.0046962f
mov ecx, eax
call fcn.0046962f
jmp case.0x46a620.8
mov eax, dword [ebp + 0x14]
push 4
mov ecx, esi
mov ebx, dword [eax - 8]
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], ebx
call fcn.0046962f
mov edx, dword [ebp + 0x14]
mov ecx, eax
push dword [edx - 8]
push edx
call fcn.0046962f
mov eax, dword [esi]
xor ecx, ecx
sub eax, ebx
mov cl, bh
add eax, dword [esi + 4]
xor cl, bl
xor esi, esi
test ebx, ebx
jle case.0x46a620.8
mov dl, byte [esi + eax]
not dl
xor dl, cl
mov byte [esi + eax], dl
inc esi
cmp esi, ebx
jl 0x46a6cb
jmp case.0x46a620.8
mov eax, dword [ebp + 0x14]
and dword [ebp + 8], 0
and dword [ebp + 0x10], 0
lea edx, [ebp + 8]
mov ecx, dword [eax]
push edx
lea edx, [ebp + 0x10]
push edx
push eax
call dword [ecx + 0x74]
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.0046962f
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 8]
call fcn.0046962f
push dword [ebp + 8]
jmp 0x46a75c
mov eax, dword [ebp + 0x14]
and dword [ebp + 8], 0
and dword [ebp + 0x10], 0
lea edx, [ebp + 8]
mov ecx, dword [eax]
push edx
lea edx, [ebp + 0x10]
push edx
push eax
call dword [ecx + 0xb8]
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov ecx, esi
call fcn.0046962f
push dword [ebp + 0x10]
mov ecx, eax
push dword [ebp + 8]
call fcn.0046962f
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
pop edi
pop esi
pop ebx
leave
ret