joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403320
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ebp
mov ebp, ecx
test eax, eax
je 0x40335d
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
lea edi, [eax]
mov eax, dword [esi]
xor ebx, ebx
mov bl, byte [edx]
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ebp + ecx*4 + 0x118]
xor ecx, eax
inc edx
dec edi
mov dword [esi], ecx
jne 0x403338
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x403370
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x422eef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov eax, dword [esp + 0x48]
push edi
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push 3
push bind
mov dword [esp + 0x34], ecx
push eax
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
jne 0x4033d1
mov esi, dword [esp + 0x48]
push 0x42823c
mov ecx, esi
call fcn.0042234c
jmp 0x4034fc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, edi
je 0x4034e5
cmp ebx, 0xffffffff
je 0x4034e5
push 0x19000
call sub.MFC42.DLL_operatornew
mov ebp, eax
add esp, 4
cmp ebp, edi
je 0x4034e5
test ebx, ebx
mov dword [esp + 0x4c], 0xffffffff
mov esi, 0x19000
jbe 0x403455
mov eax, ebx
sub eax, edi
cmp eax, 0x19000
jae 0x403421
mov esi, eax
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push ecx
push esi
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403476
cmp esi, dword [esp + 0x18]
jne 0x403476
mov ecx, dword [esp + 0x1c]
push esi
lea eax, [esp + 0x50]
push ebp
push eax
call fcn.00403320
add edi, esi
cmp edi, ebx
jb 0x403414
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x50]
add esp, 4
cmp eax, 0xffffffff
jne 0x403486
xor eax, eax
jmp 0x40348c
push ebp
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
jmp 0x4034e6
test eax, eax
je 0x403490
not eax
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x24]
push 0x10
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__itoa]
add esp, 0xc
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
push edx
call fcn.0042234c
mov edi, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], edi
call sub.MFC42.DLL_CString::MakeUpper
mov esi, dword [esp + 0x48]
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], edi
mov byte [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
jmp 0x4034fc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x48]
push 0x42823c
mov ecx, esi
call fcn.0042234c
mov ecx, dword [esp + 0x38]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8
Function at 0x403860
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x422f08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
push 0x5c
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
mov byte [esp + 0xc], 0x5c
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x40389a
mov byte [esp + 8], 0x2f
mov eax, dword [esp + 0x1c]
mov esi, 1
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4038ce
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x10
ret
mov edi, dword [esp + 8]
lea ecx, [esp + 0x1c]
push edi
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 0x1c]
lea edx, [eax + 1]
mov ecx, dword [ecx - 8]
cmp ecx, edx
jne 0x4038f4
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBufferSetLength
push 1
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403989
push edi
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jle 0x403935
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push eax
push ecx
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::Left
call fcn.00403860
add esp, 4
mov esi, eax
mov edx, dword [esp + 0x1c]
push edx
push 0x4282b4
call fcn.00403b30
add esp, 8
lea ecx, [esp + 0x1c]
push 0
push 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
test edi, edi
jne 0x40397a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0x428298
call fcn.00403b30
add esp, 0xc
test esi, esi
je 0x4039a8
test edi, edi
je 0x4039a8
mov esi, 1
jmp 0x4039aa
cmp eax, 0x10
je 0x4039aa
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x1c]
push ecx
push 0x428258
call fcn.00403b30
add esp, 8
xor esi, esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret
Function at 0x403b30
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424788
push 0x42264a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x83c
push ebx
push esi
push edi
mov dword [ebp - 0x844], 0xffffffff
xor edi, edi
mov dword [ebp - 0x840], edi
mov dword [ebp - 0x83c], edi
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.MSVCRT.dll__strdate]
lea ecx, [ebp - 0x82c]
push ecx
call dword [sym.imp.MSVCRT.dll__strtime]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x838]
push ecx
push 0x4282dc
push 0x400
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x818]
push edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0x2c
mov dword [ebp - 4], edi
push edi
push edi
push 4
push edi
push edi
push 0xc0000000
push 0x4282c4
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x844], esi
cmp esi, 0xffffffff
je 0x403c8c
lea eax, [ebp - 0x83c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x840], eax
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x840], eax
jne 0x403c8c
mov cx, word [0x4282c0]
mov word [ebp - 0x84c], cx
mov dl, byte [0x4282c2]
mov byte [ebp - 0x84a], dl
mov dword [ebp - 0x848], edi
push edi
lea eax, [ebp - 0x848]
push eax
push 3
lea ecx, [ebp - 0x84c]
push ecx
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebx
mov dword [ebp - 0x820], eax
cmp eax, edi
je 0x403c8c
push edi
lea edx, [ebp - 0x848]
push edx
lea edi, [ebp - 0x818]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea eax, [ebp - 0x818]
push eax
push esi
call ebx
mov dword [ebp - 0x820], eax
xor edi, edi
mov dword [ebp - 4], 0xffffffff
call fcn.00403cb1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404c20
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
push 0x428460
call fcn.00403b30
mov eax, dword [esi + 0x20]
add esp, 4
push 0x401
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0x60]
xor ebx, ebx
cmp eax, ebx
je 0x404c72
push 0x42843c
call fcn.00403b30
mov ecx, dword [esi + 0x20]
add esp, 4
push ebx
push 0xea60
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebx
ret 8
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
mov ecx, edi
call fcn.00403180
cmp dword [edi + 0x520], ebx
jne 0x404ce4
mov edx, dword [edi + 0x114]
push edx
push 0x428400
call fcn.00403b30
mov eax, dword [esi + 0x6c]
add esp, 8
cmp eax, ebx
je 0x404cb5
mov eax, dword [esi + 0x20]
push ebx
push ebx
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [edi + 0x114]
mov edx, dword [esi + 0x20]
push ebx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 5
push ecx
push 0x401
push edx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebx
ret 8
cmp dword [edi + 0xf0], 1
je 0x404d33
cmp dword [esi + 0x6c], ebx
je 0x404d33
cmp dword [edi + 0xe8], ebx
jne 0x404d33
push 0x4283c0
call fcn.00403b30
mov eax, dword [esi + 0x20]
add esp, 4
push ebx
push ebx
push 0x404
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi + 0x20]
push ebx
push 0x927c0
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
pop ebx
ret 8
push ebx
push 4
push esi
push 0x4076b0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x70], eax
je 0x404dc8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 0x3ec
mov ecx, esi
mov dword [esi + 0x60], 1
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push ebx
push 0x3ed
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
push 1
push 0x3ee
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItem
mov ecx, eax
call sub.MFC42.DLL_CWnd::EnableWindow
mov ecx, esi
call fcn.004046c0
pop edi
pop esi
pop ebx
ret 8
push 0x4283a0
call fcn.00403b30
add esp, 4
mov ecx, esi
call fcn.004046c0
pop edi
pop esi
pop ebx
ret 8
Function at 0x405c30
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x218
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
push esi
push edi
push 0x428510
push 0x42d478
lea eax, [esp + 0x2c]
push 0x428240
mov edi, ecx
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x4289a0
push 0x42898c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor esi, esi
mov dword [esp + 0x10], eax
test eax, eax
mov ecx, 1
jle 0x405cdf
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
inc esi
lea edx, [esp + 0x14]
push esi
push 0x428984
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x128]
lea edx, [esp + 0x14]
push eax
push 0xff
push ecx
push 0x42d680
push edx
push 0x42898c
call ebp
lea eax, [esp + 0x128]
mov ecx, edi
push eax
call fcn.00406270
test eax, eax
je 0x405ce1
cmp esi, dword [esp + 0x10]
jl 0x405c87
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
Function at 0x4060d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x218
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
push esi
push edi
push 0x428510
push 0x42d478
lea eax, [esp + 0x2c]
push 0x428240
mov edi, ecx
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x24]
push ecx
push 0
push 0x4289a0
push 0x428a28
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor esi, esi
mov dword [esp + 0x10], eax
test eax, eax
mov ecx, 1
jle 0x406191
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
inc esi
lea edx, [esp + 0x14]
push esi
push 0x428984
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x128]
lea edx, [esp + 0x14]
push eax
push 0xff
push ecx
push 0x42d680
push edx
push 0x428a28
call ebp
lea eax, [esp + 0x128]
mov ecx, edi
push eax
call fcn.00406270
test eax, eax
je 0x406184
cmp esi, dword [esp + 0x10]
jl 0x406127
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x218
ret

Function at 0x4061a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x218
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
push esi
push edi
push 0x428510
push 0x42d478
lea eax, [esp + 0x2c]
push 0x428240
mov edi, ecx
push eax
call ebx
add esp, 0x10
lea ecx, [esp + 0x24]
mov ebp, 1
push ecx
push 0
push 0x4289a0
push 0x428a38
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
xor esi, esi
mov dword [esp + 0x10], eax
test eax, eax
jle 0x406261
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
inc esi
lea edx, [esp + 0x14]
push esi
push 0x428984
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x128]
lea edx, [esp + 0x14]
push eax
push 0xff
push ecx
push 0x42d680
push edx
push 0x428a38
call ebp
lea eax, [esp + 0x128]
mov ecx, edi
push eax
call fcn.00406270
test eax, eax
je 0x406254
cmp esi, dword [esp + 0x10]
jl 0x4061f7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x218
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x218
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x218
ret
Function at 0x4065c0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x423090
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push esi
mov esi, ecx
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x24]
push 0x428ac8
push eax
push ecx
call fcn.004036f0
add esp, 0xc
lea ecx, [esp + 8]
call sub.MFC42.DLL_CFileFind::CFileFind
lea edx, [esp + 0x24]
push 0
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40669d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x10]
mov edi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x406697
mov eax, dword [esp + 0x10]
push 0x10
lea ecx, [esp + 0x14]
call dword [eax + 0x40]
test eax, eax
jne 0x406665
lea ecx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x7c]
jmp 0x406692
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CFileFind::GetFilePath
push 1
mov ecx, eax
mov byte [esp + 0x78], 1
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov ecx, esi
call fcn.004067f0
mov byte [esp + 0x74], 0
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
test edi, edi
jne 0x406623
pop edi
pop ebp
lea ecx, [esp + 8]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp + 8]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00422526
mov ecx, dword [esp + 0x64]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x6c
ret 4

Function at 0x4066d0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4230a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x1c]
push 0x428ac8
push eax
push ecx
call fcn.004036f0
add esp, 0xc
lea ecx, [esp]
call sub.MFC42.DLL_CFileFind::CFileFind
lea edx, [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 8]
mov dword [esp + 0x6c], 0
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x406777
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 8]
mov esi, eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x406771
mov eax, dword [esp + 8]
push 0x10
lea ecx, [esp + 0xc]
call dword [eax + 0x40]
test eax, eax
jne 0x406771
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CFileFind::GetFilePath
mov eax, dword [eax]
push eax
call edi
lea ecx, [esp + 0x74]
call sub.MFC42.DLL_CString::CString
test esi, esi
jne 0x40672c
pop edi
pop esi
lea ecx, [esp]
call sub.MFC42.DLL_CFileFind::Close
lea ecx, [esp]
mov dword [esp + 0x64], 0xffffffff
call fcn.00422526
mov ecx, dword [esp + 0x5c]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x68
ret 4
Function at 0x4067f0
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4230d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x348
mov dword [esp], ecx
push ebx
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ebp, dword [esp + 0x360]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
push ebp
lea eax, [esp + 0xfc]
push 0x428acc
push eax
mov dword [esp + 0x364], 0
call ebx
add esp, 0xc
lea ecx, [esp + 0xf8]
push 0
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
je 0x40693b
push esi
push edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], eax
call sub.MFC42.DLL_CFileFind::IsDots
test eax, eax
jne 0x40692d
lea edx, [esp + 0x14]
lea ecx, [esp + 0x1c]
push edx
call sub.MFC42.DLL_CFileFind::GetFileName
push 0xc8
mov ecx, eax
mov byte [esp + 0x364], 1
call sub.MFC42.DLL_CString::GetBuffer
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x360], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 0x20]
call dword [edx + 0x40]
test eax, eax
lea eax, [esp + 0x38]
push eax
push ebp
push 0x428508
je 0x406912
lea ecx, [esp + 0x1d4]
push ecx
call ebx
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x1c8]
push edx
call fcn.004067f0
jmp 0x40692d
lea ecx, [esp + 0x29c]
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x290]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x406862
pop edi
pop esi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::Close
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop ebx
test eax, eax
mov dword [esp + 0x350], 0xffffffff
lea ecx, [esp + 0xc]
jne 0x40697e
call fcn.00422526
xor eax, eax
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
add esp, 0x354
ret 4
call fcn.00422526
mov ecx, dword [esp + 0x348]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x354
ret 4

Function at 0x4069a0
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x80
lea eax, [esp + 0x40]
push esi
push edi
mov edi, dword [esp + 0x8c]
push 0x428ac8
push eax
push edi
call fcn.004036f0
lea ecx, [esp + 0x54]
lea edx, [esp + 0x14]
push ecx
push 0x428a20
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x18
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 8]
push 0
lea edx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
test esi, esi
je 0x406a1a
push edi
push 0x428a70
push 0x428aec
call fcn.00403b30
add esp, 0xc
mov eax, esi
pop edi
pop esi
add esp, 0x80
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x428a70
push 0x428ad4
call fcn.00403b30
add esp, 0x10
mov eax, esi
pop edi
pop esi
add esp, 0x80
ret 4
Function at 0x406a50
Capabilities:
Copy file

Disassembly:
sub esp, 0x80
lea eax, [esp]
push esi
mov esi, dword [esp + 0x88]
push 0x428ac8
push eax
push esi
call fcn.004036f0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x50]
push ecx
push 0x428a20
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x5c]
push eax
call fcn.00403cc0
add esp, 0x1c
test eax, eax
je 0x406ac8
lea ecx, [esp + 4]
push 0
lea edx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
push 0x428a68
push 0x428b14
call fcn.00403b30
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x80
ret 4
push esi
push 0x428a68
push 0x428af8
call fcn.00403b30
add esp, 0xc
xor eax, eax
pop esi
add esp, 0x80
ret 4

Function at 0x407170
Capabilities:
Terminate process

Disassembly:
sub esp, 0x40
lea eax, [esp]
push esi
push edi
mov edi, dword [esp + 0x4c]
push 0x428ac8
push eax
mov esi, ecx
push edi
call fcn.004036f0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00407270
test eax, eax
jbe 0x4071b9
push eax
push 1
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4071b9
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
push 0x428a88
push 0x428aec
call fcn.00403b30
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0x40
ret 4

Function at 0x4071e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0xd4
push esi
mov esi, dword [esp + 0xdc]
push edi
lea eax, [esp + 0x5c]
push 0x428ac8
push eax
push esi
call fcn.004036f0
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
add esp, 0xc
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
lea edx, [esp + 8]
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x28], 0x44
push eax
push 0
mov word [esp + 0x60], 5
mov dword [esp + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push esi
push 0x428a78
push 0x428aec
call fcn.00403b30
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0xd4
ret 4
Function at 0x407270
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x130
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], eax
push ecx
push eax
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x407372
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x407372
lea edx, [esp + 0x3c]
push 1
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00403a70
mov esi, dword [esp + 0x150]
mov edx, dword [eax]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov ebp, dword [sym.imp.MSVCRT.dll__strnicmp]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push edx
call ebp
add esp, 0x18
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x407313
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x407372
lea ecx, [esp + 0x3c]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00403a70
mov edx, dword [eax]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push edx
call ebp
add esp, 0x18
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x40738c
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x407326
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x130
ret 4
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 4