joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456534
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x470c54]
cmp dword [eax + 0x30], 0
je 0x4565de
cmp dword [ebx + 0x94], 0
jne 0x4565d8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4564c4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4565d8
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45659e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4565d8
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041b0c8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4565ad
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4570bc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4570f1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404370
jmp 0x4570fe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042d4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458124
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458165
mov eax, esi
call fcn.0043e0a4
test al, al
je 0x458165
mov eax, dword [ebx + 0x84]
call fcn.0043dda0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458165
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043dda0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45b86c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45b89a
mov eax, ebx
call fcn.0045c324
cmp dword [ebx + 0x3c], 0
je 0x45b893
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x45b90b
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x45b8fd
cmp dword [ebx + 8], 0
je 0x45b8bc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x45b8ce
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45b8fd
cmp dword [ebx + 8], 0
je 0x45b8af
cmp eax, 3
je 0x45b8e1
dec eax
jne 0x45b8af
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45b8af
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x45b8af
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x45b929
cmp dword [ebx + 0x10], 0xcc
je 0x45b929
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045b934
pop ebx
ret
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3b061f4d
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x431060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x49986d19
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4310c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4020db
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4e7050
call fcn.00475fe0
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push 0x80
push 4
pop edi
push edi
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x40218f
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x10]
add eax, 0x12
mov dword [ebp - 0x20], eax
push eax
call sub.MFC42.DLL_operatornew
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x20]
push eax
push esi
push 0x50233c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0043f4ec
add esp, 0x18
mov dword [ebp - 0x18], edi
push ebx
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
call edi
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push esi
push dword [ebp - 0x14]
call edi
mov dword [ebp - 0x28], esi
push esi
call sub.MFC42.DLL_operatordelete
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402206
Capabilities:
Clear file content
Get file size

Disassembly:
mov eax, 0x4e705c
call fcn.00475fe0
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
call fcn.004021a8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
je 0x40226c
mov dword [ebp - 0x18], esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x402265
cmp eax, 0xf4240
jbe 0x402265
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40244e
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov eax, 0x4e70d4
call fcn.00475fe0
sub esp, 0x30
push ebx
push esi
lea eax, [ebp - 0x1c]
push edi
push eax
call dword [sym.imp.QQHelperDll.dll_class_CString___cdecl_GetSbuddyFolder_void_]
mov dword [esp], str.SBuddyCall.exe
push eax
lea eax, [ebp - 0x18]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call sub.MFC42.DLL_operator_3
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x3c]
call fcn.00475a8e
push esi
lea ecx, [ebp - 0x3c]
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x4024ae
or esi, 0xffffffff
jmp 0x4025dd
push 0x5023bc
lea ecx, [ebp - 0x18]
call fcn.00475a10
mov dword [ebp - 0x14], esi
mov edi, str.TSBuddy_shellopencommand
push 0x20006
push edi
push SysReAllocStringLen
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040261b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x402538
lea eax, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push edi
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x40251e
xor eax, eax
cmp dword [ebp - 0x14], esi
je 0x402514
push dword [ebp - 0x14]
call ebx
mov ecx, dword [ebp - 0x1c]
cmp eax, esi
mov dword [ebp - 0x14], ecx
je 0x402538
cmp dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
je 0x4024a6
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
jmp 0x4024a6
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x18]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 1
push esi
push 0x50229c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
cmp dword [ebp - 0x14], esi
je 0x402577
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
push 0x20006
push str.TSBuddy
push SysReAllocStringLen
lea ecx, [ebp - 0x14]
call fcn.0040261b
test eax, eax
jne 0x40251e
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], eax
mov al, byte [0x50229c]
mov byte [ebp - 0xd], al
lea eax, [ebp - 0xd]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0xd]
push eax
push 1
push esi
push str.URL_Protocol
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x14], esi
je 0x4025cc
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
je 0x4025dd
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CFileFind::CFileFind
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x402a49
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4e71f0
call fcn.00475fe0
push ecx
push ecx
push ebx
push esi
push 1
lea eax, [ebp - 0x14]
pop esi
xor ebx, ebx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x402abb
mov eax, dword [ebp + 0xc]
push dword [eax - 8]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push ebx
push dword [ebp - 0x10]
call esi
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push ebx
push str.contexts
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
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 esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4038d5
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.00476050
push ebx
push esi
push edi
xor edi, edi
push 0x10
push edi
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x403922
push 0x3e8
call ebx
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x403964
push edi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 0xc]
push 3
push edi
mov edi, SysReAllocStringLen
push 1
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x403968
push 0x3e8
call ebx
push 0
push dword [ebp - 0xc]
push 3
push 0
push 1
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x403968
xor eax, eax
jmp 0x4039dc
lea eax, [ebp - 0x68]
push eax
call fcn.0043f8a5
pop ecx
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
push 0
push eax
mov esi, 0x1000
lea eax, [ebp - 0x1068]
push esi
push eax
push dword [ebp - 4]
call edi
test eax, eax
je 0x4039c2
push dword [ebp - 8]
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0043f8e3
add esp, 0xc
cmp dword [ebp - 8], esi
jne 0x4039c2
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 0x1068]
push esi
push eax
push dword [ebp - 4]
jmp 0x40398e
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
call fcn.00440437
pop ecx
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x403b4d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
je 0x403b6a
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
pop ebp
ret 0xc

Function at 0x403b6e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
je 0x403b8b
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
pop ebp
ret 0xc
Function at 0x40f910
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, 0x4e756a
call fcn.00475fe0
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x40f930
mov eax, 0x80070057
jmp 0x40fa24
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0x18]
je 0x40f939
inc eax
cmp eax, 0x10
jbe 0x40f948
mov eax, 0x80004005
jmp 0x40fa24
push 0x10
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x40f96d
mov dword [eax + 4], edi
mov dword [eax], 0x504280
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
mov esi, eax
jmp 0x40f96f
xor esi, esi
mov eax, dword [esi]
or dword [ebp - 4], 0xffffffff
push esi
call dword [eax + 4]
push 0x70
pop ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x40f9a2
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, 0x8007000e
jmp 0x40fa24
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edi, dword [esi + 0xc]
push ebx
push 0
push edi
call sub.MSVCRT.dll_memset
mov ebx, dword [ebp + 0xc]
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x40f9de
mov dword [edi], ebx
add edi, 4
mov eax, dword [ebp + 0x18]
shl eax, 2
push eax
lea eax, [ebp + 0x1c]
push eax
push edi
call sub.MSVCRT.dll_memcpy
mov edi, dword [esi + 0xc]
push 0x28
add edi, 0x40
push 0x550b88
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0xc]
mov dword [edi + 0x18], ebx
mov dword [edi + 0x11], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x1d], eax
mov eax, dword [esi + 0xc]
add eax, 0x40
add esp, 0x18
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40ffe5
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor edi, edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x41000a
call fcn.0041006c
test eax, eax
jne 0x410007
xor esi, esi
jmp 0x41000a
mov esi, dword [eax + 0x20]
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x410066
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x410060
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x410060
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x410060
push 1
pop edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x4137c8
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4e7c44
call fcn.00475fe0
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 0x413853
push str.DllRegisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x41384c
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_1
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 0x4138e5
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 0x413e73
Capabilities:
Check os version

Disassembly:
mov eax, 0x4e7cfc
call fcn.00475fe0
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 0x413ed1
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0x94
push eax
call esi
test eax, eax
je 0x414060
mov esi, dword [ebp + 8]
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebp - 0x98]
sub eax, edi
je 0x413faa
dec eax
je 0x413f38
dec eax
jne 0x413fb6
cmp dword [ebp - 0xa4], 4
ja 0x413f06
push str.Microsoft_Windows_NT
jmp 0x413faf
cmp dword [ebp - 0xa4], 5
jne 0x413f31
cmp dword [ebp - 0xa0], edi
jne 0x413f21
push str.Microsoft_Windows_2000
jmp 0x413faf
cmp dword [ebp - 0xa0], 1
jne 0x413f31
push str.Microsoft_Windows_XP
jmp 0x413faf
push str.Microsoft_Windows_XP_later
jmp 0x413faf
cmp dword [ebp - 0xa4], 4
jne 0x413fa3
cmp dword [ebp - 0xa0], edi
jne 0x413f6e
push str.Microsoft_Windows_95
mov ecx, esi
call fcn.00475a10
cmp byte [ebp - 0x93], 0x43
je 0x413f67
cmp byte [ebp - 0x93], 0x42
jne 0x413fb6
push str.OSR2
jmp 0x413faf
cmp dword [ebp - 0xa0], 0xa
jne 0x413f93
push str.Microsoft_Windows_98
mov ecx, esi
call fcn.00475a10
cmp byte [ebp - 0x93], 0x41
jne 0x413fb6
push 0x551650
jmp 0x413faf
cmp dword [ebp - 0xa0], 0x5a
jne 0x413fa3
push str.Microsoft_Windows_Me
jmp 0x413faf
push str.Microsoft_Windows_Me_later
jmp 0x413faf
push str.Microsoft_Win32s
mov ecx, esi
call fcn.00475a10
cmp dword [ebp - 0xa4], 4
ja 0x414007
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.00475a64
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
jmp 0x414058
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.00475a64
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 0x426a60
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4ea0e0
call fcn.00475fe0
sub esp, 0x1cc
push ebx
push edi
mov edi, ecx
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x1d8]
push 0x104
push ecx
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xac]
xor ebx, ebx
push 0x44
lea eax, [ebp - 0x70]
push ebx
push eax
call sub.MSVCRT.dll_memset
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call sub.MSVCRT.dll_memset
add esp, 0x18
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AfxGetAppModuleState
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push ecx
mov eax, dword [eax + 0xd4]
push eax
call dword [sym.imp.BasicCtrlDll.dll_void___cdecl_GetCurrentSysTempData_struct_IQQCore___struct_IQQData___]
mov eax, dword [ebp - 0x10]
pop ecx
pop ecx
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
push edx
push str.QQMAINFRAME_PARENT
push eax
call dword [ecx + 0x34]
push dword [ebp - 0x1c]
lea eax, [ebp - 0xd4]
push 1
push str._SessionType:_d__EMB_HWND:_ld
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0xd4]
push ebx
push eax
lea eax, [ebp - 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x426b44
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x426b3d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 0x80004005
jmp 0x426b92
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004270cc
cmp dword [ebp - 0x18], ebx
je 0x426b6f
lea ecx, [ebp - 0x18]
call fcn.004270cc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x426b7f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x426b90
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret