joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push esi
xor esi, esi
test ebx, ebx
push edi
je 0x407a28
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
add edi, 2
push edi
call sub.MFC42.DLL_operatornew
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
push esi
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 3
mov word [esp + 0x20], 0x14
xor edi, edi
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x407a68
mov edi, 1
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x20
ret 4

Function at 0x407af0
Capabilities:
Create directory
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x454830
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push str.DirRecyclers
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x18]
lea edx, [esp + 4]
push ecx
push 0x465358
push edx
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x14], 1
call fcn.004149b6
lea ecx, [esp + 4]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
push 0x465358
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
push str.attrib_h_s
lea ecx, [esp + 4]
call fcn.004149aa
lea eax, [esp + 0x18]
lea ecx, [esp]
push eax
lea edx, [esp + 8]
push ecx
push edx
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 4]
mov byte [esp + 0x14], 3
call fcn.004149b6
lea ecx, [esp + 4]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
lea ecx, [esp]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x407cc0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x454899
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebx
push esi
mov dword [esp + 0x18], 0
mov ebx, 1
push str.system.
lea ecx, [esp + 0xc]
mov dword [esp + 0x168], ebx
call fcn.004149aa
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 3
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x170]
push 0x465418
lea ecx, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x170], 4
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 5
call fcn.004149b6
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 4
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
call fcn.004149b6
push 0x465174
lea ecx, [esp + 0x174]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x170]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407dbf
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x16c]
lea edx, [esp + 8]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x18], ebx
jmp 0x407eb5
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [esp + 0x50]
push 0x465170
push eax
call ebp
test eax, eax
je 0x407e1c
lea ecx, [esp + 0x50]
push 0x46516c
push ecx
call ebp
test eax, eax
je 0x407e1c
test byte [esp + 0x24], 0x10
je 0x407e15
lea edx, [esp + 0x50]
lea ecx, [esp + 0x10]
push edx
call fcn.004149ce
push str.system
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
jne 0x407e2d
lea eax, [esp + 0x24]
push eax
jmp 0x407e21
lea ecx, [esp + 0x24]
push ecx
push esi
call edi
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x407dcd
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push str.system.
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
pop edi
cmp eax, 0xffffffff
pop ebp
je 0x407e9e
lea edx, [esp + 8]
lea eax, [esp + 0x14]
push edx
push 0x465418
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x168], 6
call fcn.004149b6
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x469268]
test eax, eax
je 0x407e90
push 0x465418
jmp 0x407e95
push 0x465860
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator
mov esi, dword [esp + 0x16c]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x18], ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x164], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x164], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x164], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x170]
mov byte [esp + 0x164], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x15c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x160
ret
Function at 0x408f40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp + 8]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftFolderPro
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x408f74
xor eax, eax
add esp, 0x14
ret
lea edx, [esp + 0xc]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.sysag
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x408f9f
xor eax, eax
add esp, 0x14
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 1
sete al
add esp, 0x14
ret
Function at 0x409720
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
call fcn.0040a180
test eax, eax
je 0x409735
mov eax, 1
add esp, 0x14
ret
lea eax, [esp + 8]
lea ecx, [esp]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SOFTWAREMicrosoftFolderPro
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x409766
xor eax, eax
add esp, 0x14
ret
lea edx, [esp + 0xc]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push str.Expired
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x409791
xor eax, eax
add esp, 0x14
ret
mov ecx, dword [esp + 4]
xor eax, eax
cmp ecx, 1
mov ecx, dword [esp]
push esi
push ecx
sete al
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x14
ret
Function at 0x40a060
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
push edi
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftFolderPro
mov esi, ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a08f
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
lea edi, [esi + 0xc4]
push ecx
lea edx, [esp + 0x14]
push edi
push edx
push 0
push str.RegSerial
push eax
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a0e0
mov eax, dword [esi + 0x128]
test eax, eax
je 0x40a0e0
xor eax, eax
mov cl, byte [edi + eax]
mov byte [eax + 0x469238], cl
inc eax
cmp eax, 0x14
jl 0x40a0ca
mov byte [0x46924c], 0
push 0x469238
mov ecx, esi
call fcn.0040a8b0
mov edi, eax
test edi, edi
jne 0x40a119
mov eax, dword [0x46926c]
test eax, eax
je 0x40a119
push 0x469508
lea ecx, [esi + 0x12c]
call fcn.004149b6
push 0x469238
mov ecx, esi
call fcn.0040a8b0
mov edi, eax
test edi, edi
mov dword [esp + 0xc], 0
je 0x40a12d
mov dword [esp + 0xc], 1
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push 4
push edx
push 4
push 0
push str.syswell
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x40a154
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret
Function at 0x40add0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftFolderPro
mov esi, ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40adfd
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea ecx, [esp + 0x18]
lea edi, [esi + 0xf2]
push ecx
lea edx, [esp + 0x14]
push edi
push edx
push 0
push str.sysskin
push eax
mov dword [esp + 0x28], 3
call ebx
test eax, eax
jne 0x40ae3b
push edi
mov ecx, 0x469234
call fcn.004149ce
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x1c]
add esi, 0xe2
push ecx
lea edx, [esp + 0x18]
push esi
push edx
push 0
push str.anhao
push eax
mov dword [esp + 0x2c], 1
call ebx
pop edi
pop ebx
test eax, eax
je 0x40ae6f
xor eax, eax
pop esi
add esp, 0x14
ret
xor eax, eax
mov cl, byte [esi + eax]
mov byte [eax + 0x469510], cl
inc eax
cmp eax, 0x10
jl 0x40ae71
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop esi
add esp, 0x14
ret

Function at 0x40aea0
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftFolderPro
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40aed1
mov ecx, dword [esp]
push str.anhao
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
pop ecx
ret
Function at 0x40aee0
Capabilities:
Create directory
Delete directory
Delete file
Set file attributes

Disassembly:
sub esp, 0x2fc
push ebp
push esi
push edi
push 0x46543c
lea eax, [esp + 0x10]
mov ebp, ecx
push 0x46925c
push eax
mov dword [esp + 0x1c], ebp
call sub.MFC42.DLL_operator_2
mov edx, dword [esp + 0xc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
test esi, esi
jle 0x40af2f
mov edi, edx
lea ecx, [esp + 0x14]
sub edi, ecx
lea ecx, [esp + eax + 0x14]
inc eax
cmp eax, esi
mov dl, byte [edi + ecx]
mov byte [ecx], dl
jl 0x40af21
lea ecx, [esi + 0xd]
mov eax, esi
cmp esi, ecx
jge 0x40af4b
mov edx, eax
sub edx, esi
inc eax
cmp eax, ecx
mov dl, byte [edx + str.DirRecycler]
mov byte [esp + eax + 0x13], dl
jl 0x40af38
mov byte [esp + eax + 0x14], 0
lea eax, [esp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push eax
call ebx
lea edi, [esi - 0xb]
xor eax, eax
test edi, edi
jle 0x40af90
mov ebp, dword [esp + 0x10]
lea ecx, [esp + 0x210]
sub ebp, ecx
lea ecx, [esp + eax + 0x210]
inc eax
cmp eax, edi
mov dl, byte [ecx + ebp]
mov byte [esp + eax + 0x113], dl
mov byte [ecx], dl
jl 0x40af74
mov ebp, dword [esp + 0x14]
mov byte [esp + eax + 0x210], 0
mov eax, edi
cmp eax, esi
jge 0x40afb4
mov edx, eax
sub edx, esi
inc eax
cmp eax, esi
mov cl, byte [edx + 0x465903]
mov byte [esp + eax + 0x113], cl
jl 0x40af9e
lea edx, [esp + 0x114]
push 0x80
push edx
mov byte [esp + eax + 0x11c], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x10]
push eax
call ebx
test eax, eax
pop ebx
jne 0x40b016
push 4
push 0x465b44
push 0x465b0c
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40affd
lea ecx, [esp + 0x110]
push ecx
jmp 0x40b01e
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp + 0x10c], 0
jmp 0x40b02e
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp + 0x10c], 1
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
add esp, 0x2fc
ret
Function at 0x40bc10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x454fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, ecx
mov edx, dword [esi + 0x9c]
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
push ebx
push 0x1007
push edx
mov dword [esp + 0x4c], 2
mov dword [esp + 0x1c], 9
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x48]
add esi, 0x7c
push eax
push 1
push edi
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemText
mov ecx, dword [esp + 0x4c]
push ecx
push 2
push edi
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea ecx, [esp + 0x44]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x48]
mov byte [esp + 0x3c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 0x10
Function at 0x40dd70
Capabilities:
Access peb ldr_data
Create process on windows
Delete file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x455480
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString_2
push 0x4653b4
lea eax, [esp + 0x14]
mov ebx, 1
push 0x4692a4
push eax
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.004149b6
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40de2f
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], al
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop esi
pop ebx
add esp, 0x20
ret
push str.attrib__s
lea ecx, [esp + 0xc]
call fcn.004149ce
lea eax, [esp + 8]
push 0x4692a4
lea ecx, [esp + 0x14]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 3
call fcn.004149b6
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x465bf0
call fcn.004149aa
push ecx
mov byte [esp + 0x2c], 4
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4692a4
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x2c], bl
call fcn.00412470
add esp, 4
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x465bf0
call fcn.004149aa
push ecx
mov byte [esp + 0x2c], 5
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x4692a4
call sub.MFC42.DLL_CString::CString_1
mov ecx, esi
mov byte [esp + 0x2c], bl
call fcn.0040ca00
lea ecx, [esi + 0x78]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0xbc]
call sub.MFC42.DLL_CString::Empty
push 0
mov ecx, esi
mov dword [esi + 0x60], 0
call sub.MFC42.DLL_CWnd::UpdateData
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret
Function at 0x410fa0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x412990
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
xor ebp, ebp
xor ebx, ebx
test edi, edi
je 0x4129dd
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
add esi, 2
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x34]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [esp + 0x38]
test edi, edi
je 0x412a1f
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
add esi, 2
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x38]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x14]
xor esi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
stosw word es:[edi], ax
push ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], 1
mov word [esp + 0x24], 0x14
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x412a5f
mov esi, 1
push ebp
call sub.MFC42.DLL_operatordelete
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret

Function at 0x412a80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
mov edx, dword [esp + 0x64]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
xor esi, esi
push eax
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push edx
push esi
mov dword [esp + 0x70], 1
mov word [esp + 0x74], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [esp + 8]
lea ecx, [esp + 0x64]
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
add esp, 0x58
ret
Function at 0x4132c0
Capabilities:
Create directory
Move file

Disassembly:
push 0xffffffffffffffff
push 0x455c8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x168], 1
call sub.MFC42.DLL_CString::CString_2
push 0x5c
lea ecx, [esp + 0x174]
mov byte [esp + 0x16c], 2
call sub.MFC42.DLL_CString::ReverseFind
mov ecx, dword [esp + 0x170]
lea edx, [esp + 0x14]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x178]
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x16c], 3
call fcn.004149b6
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 2
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x174]
push 0x465418
lea ecx, [esp + 0x10]
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [esp + 0x170]
lea edx, [esp + 0x20]
push edx
push eax
mov byte [esp + 0x170], 4
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebp, eax
mov al, byte [esp + 0x20]
test al, 0x10
je 0x413458
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
push 0x465418
push 0x465414
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Replace
push 0x465418
push 0x465414
lea ecx, [esp + 0x178]
call sub.MFC42.DLL_CString::Replace
mov edx, dword [esp + 0xc]
push 0
push 0
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [eax + eax + 0xc]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
lea edx, [esp + 0xc]
push esi
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call sub.MFC42.DLL_CString::CString_1
call fcn.00413760
add esp, 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x17c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x178], 5
call sub.MFC42.DLL_CString::CString_1
mov byte [esp + 0x174], 4
call fcn.00412d30
add esp, 0xc
mov edi, eax
test esi, esi
je 0x41347b
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x41347b
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x170]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov edi, eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0xc]
mov byte [esp + 0x168], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x170]
mov byte [esp + 0x168], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x174]
mov dword [esp + 0x168], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x160]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x160
ret