joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403538
Capabilities:
Delete directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc44
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push ebx
push esi
xor esi, esi
cmp dword [0x4d9aa0], 0x594
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
jne 0x403572
push 0x402ce0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov eax, dword [0x4294d8]
mov edi, dword [0x4294dc]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 0x28], 0x9e3779b9
call fcn.00403531
mov eax, dword [0x4294e0]
add dword [ebp - 8], 0x23f
mov ebx, dword [0x4294e4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, dword [ebp - 0xc]
mov ecx, eax
shl ecx, 4
cmp dword [0x4d9aa0], 0xc
mov dword [ebp - 4], ecx
jne 0x403616
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x444]
push eax
push esi
push 0x402d00
push 0x402d20
push 0x402d40
call dword [sym.imp.KERNEL32.dll_SearchPathA]
push esi
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x24]
add dword [ebp - 4], ecx
mov ecx, dword [0x4d9aa0]
cmp ecx, 0xfa9
jne 0x403634
mov dword [0x4d903c], 0xedeb2e40
cmp ecx, 0x3eb
jne 0x403642
mov dword [0x4d89ec], esi
mov ecx, dword [ebp - 8]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x14]
shr eax, cl
mov dword [0x4d9038], 0xf4ea3dee
add eax, ebx
mov ecx, eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor ecx, dword [ebp - 4]
cmp dword [0x4d9aa0], 0x213
mov dword [ebp - 0x18], ecx
jne 0x403681
push esi
push 0x402d58
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], 0x64
sub dword [ebp - 0x10], eax
sub dword [ebp - 0x10], 0x64
cmp dword [0x4d9aa0], 0xc
jne 0x4036b4
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PrepareTape]
push esi
lea eax, [ebp - 0xc44]
push eax
push 0x402db0
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax]
mov ecx, dword [ebp - 0x14]
shr eax, cl
add eax, edi
xor eax, edx
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
sub dword [ebp - 8], eax
dec dword [ebp - 0x1c]
jne 0x4035ae
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
pop esi
mov dword [eax + 4], ecx
pop ebx
leave
ret 4
Function at 0x403702
Capabilities:
Create pipe
Get common file path
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4d9aa0]
mov ecx, dword [0x4d89f0]
sub esp, 0x42c
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4037f6
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 4], eax
cmp dword [0x4d9aa0], 0x959
jne 0x4037e2
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d84
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0x402e68
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerA]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402e78
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00403538
add ebx, 8
dec dword [ebp - 4]
jne 0x40372b
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4038c8
Capabilities:
Get common file path

Disassembly:
mov eax, 0x426104
call fcn.00426010
mov eax, 0x1828
call fcn.0040ece0
push ebx
push esi
xor esi, esi
cmp dword [0x4d9aa0], 0x5b1
push edi
jne 0x403984
push esi
lea eax, [ebp - 0x834]
push eax
push esi
push 0x402f04
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push esi
call dword [sym.imp.KERNEL32.dll_SetLocalTime]
lea eax, [ebp - 0x34]
call fcn.00403be0
push esi
mov dword [ebp - 4], esi
call fcn.00404775
push esi
push esi
call fcn.00404c4f
add esp, 0xc
call fcn.00404713
push 0x402f6c
lea ecx, [ebp - 0x18]
call fcn.004033f0
lea ecx, [ebp - 0x18]
call fcn.0040340c
lea ecx, [ebp - 0x18]
call fcn.00403452
lea ecx, [ebp - 0x18]
call fcn.0040346b
push esi
push esi
call fcn.00404c44
push esi
call fcn.00404c15
push esi
call fcn.00404bfe
push esi
call fcn.00404e02
add esp, 0x10
mov dword [esp], esi
call fcn.00403512
fstp st(0)
push esi
call fcn.00404bfe
pop ecx
call fcn.00404d1c
add dword [0x4d9aa0], 0x1134b
push dword [0x4d9aa0]
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x4d89f0], eax
call fcn.00403813
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, 0x206d47
jg 0x4039cd
inc edi
cmp edi, 0x4f6a4
jl 0x4039ad
mov eax, dword [0x4d9aa0]
xor ecx, ecx
cmp eax, esi
jbe 0x4039f3
mov edx, dword [0x4d9aa4]
mov dl, byte [edx + ecx + 0x1134b]
mov edi, dword [0x4d89f0]
mov byte [edi + ecx], dl
inc ecx
cmp ecx, eax
jb 0x4039d8
xor edi, edi
lea ecx, [eax + edi]
cmp ecx, 0xe
jne 0x403a42
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
lea eax, [ebp - 0x434]
push eax
push esi
push 0x402f80
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x402fc8
push 0x402fe4
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [ebp - 0x1034]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesW]
mov eax, dword [0x4d9aa0]
inc edi
cmp edi, 0x39621
jl 0x4039f5
call fcn.00403702
xor edi, edi
call ebx
cmp edi, 0x26
jne 0x403a5e
call fcn.004037f9
inc edi
cmp edi, 0x6753f
jl 0x403a52
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x7b
pop ebx
cmp dword [0x4d9aa0], 0x86
jne 0x403ab9
push 0x402ff4
push 0x403010
call dword [sym.imp.KERNEL32.dll_SetVolumeLabelA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push esi
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1034]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [0x4d9aa0], 0xf
jne 0x403ae1
push esi
push esi
call edi
push esi
lea eax, [ebp - 0x1834]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasW]
push 0x403020
push 0x403058
call edi
dec ebx
jne 0x403a70
push 0x4030ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4054fb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42846c]
jne 0x405505
repz ret
jmp fcn.004095dc

Function at 0x40cd89
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040751c
and dword [ebp - 4], 0
cmp dword [0x42a610], 0
mov ebx, eax
jne 0x40ce3a
push 0x4022f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ceeb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4022e8
push edi
call esi
test eax, eax
je 0x40ceeb
push eax
call fcn.004074aa
mov dword [esp], 0x4022d8
push edi
mov dword [0x42a610], eax
call esi
push eax
call fcn.004074aa
mov dword [esp], 0x4022c4
push edi
mov dword [0x42a614], eax
call esi
push eax
call fcn.004074aa
mov dword [esp], 0x4022a8
push edi
mov dword [0x42a618], eax
call esi
push eax
call fcn.004074aa
pop ecx
mov dword [0x42a620], eax
test eax, eax
je 0x40ce3a
push 0x402290
push edi
call esi
push eax
call fcn.004074aa
pop ecx
mov dword [0x42a61c], eax
mov eax, dword [0x42a61c]
cmp eax, ebx
je 0x40ce92
cmp dword [0x42a620], ebx
je 0x40ce92
push eax
call fcn.00407525
push dword [0x42a620]
mov esi, eax
call fcn.00407525
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ce92
test edi, edi
je 0x40ce92
call esi
test eax, eax
je 0x40ce89
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ce89
test byte [ebp - 0xc], 1
jne 0x40ce92
or dword [ebp + 0x10], 0x200000
jmp 0x40cecb
mov eax, dword [0x42a614]
cmp eax, ebx
je 0x40cecb
push eax
call fcn.00407525
pop ecx
test eax, eax
je 0x40cecb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40cecb
mov eax, dword [0x42a618]
cmp eax, ebx
je 0x40cecb
push eax
call fcn.00407525
pop ecx
test eax, eax
je 0x40cecb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42a610]
call fcn.00407525
pop ecx
test eax, eax
je 0x40ceeb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ceed
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4020d6
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4d8af0
call fcn.00471450
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 0x40218a
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 0x4f42dc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0043b332
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 0x402201
Capabilities:
Clear file content
Get file size

Disassembly:
mov eax, 0x4d8afc
call fcn.00471450
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.004021a3
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x14], edi
cmp edi, 0xffffffff
je 0x402267
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 0x402260
cmp eax, 0xf4240
jbe 0x402260
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 0x402449
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
mov eax, 0x4d8b74
call fcn.00471450
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 sub.MFC42.DLL_CFileFind::CFileFind
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 0x4024a9
or esi, 0xffffffff
jmp 0x4025d8
push 0x4f435c
lea ecx, [ebp - 0x18]
call fcn.00470e84
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.00402616
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x402533
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 0x402519
xor eax, eax
cmp dword [ebp - 0x14], esi
je 0x40250f
push dword [ebp - 0x14]
call ebx
mov ecx, dword [ebp - 0x1c]
cmp eax, esi
mov dword [ebp - 0x14], ecx
je 0x402533
cmp dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
je 0x4024a1
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
jmp 0x4024a1
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 0x4f423c
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 0x402572
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
push 0x20006
push str.TSBuddy
push SysReAllocStringLen
lea ecx, [ebp - 0x14]
call fcn.00402616
test eax, eax
jne 0x402519
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], eax
mov al, byte [0x4f423c]
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 0x4025c7
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
cmp dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
je 0x4025d8
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x14], esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00470ef6
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 0x402a44
Capabilities:
Set registry value

Disassembly:
mov eax, 0x4d8c90
call fcn.00471450
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 0x402ab6
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 0x4038dd
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1068
call fcn.004714c0
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 0x40392a
push 0x3e8
call ebx
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x40396c
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 0x403970
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 0x403970
xor eax, eax
jmp 0x4039e4
lea eax, [ebp - 0x68]
push eax
call fcn.0043b6eb
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 0x4039ca
push dword [ebp - 8]
lea eax, [ebp - 0x1068]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0043b729
add esp, 0xc
cmp dword [ebp - 8], esi
jne 0x4039ca
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 0x1068]
push esi
push eax
push dword [ebp - 4]
jmp 0x403996
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
call fcn.0043c27d
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 0x403b55
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
je 0x403b72
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 0x403b76
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
test eax, eax
je 0x403b93
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 0x40f5a9
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, 0x4d900a
call fcn.00471450
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x40f5c9
mov eax, 0x80070057
jmp 0x40f6bd
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0x18]
je 0x40f5d2
inc eax
cmp eax, 0x10
jbe 0x40f5e1
mov eax, 0x80004005
jmp 0x40f6bd
push 0x10
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
mov dword [ebp - 4], edi
je 0x40f606
mov dword [eax + 4], edi
mov dword [eax], 0x4f6190
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
mov esi, eax
jmp 0x40f608
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 0x40f63b
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, 0x8007000e
jmp 0x40f6bd
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 0x40f677
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 0x54c3b0
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 0x41312c
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4d96b4
call fcn.00471450
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 0x4131b7
push str.DllRegisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4131b0
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 0x413249
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