joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4051e0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x418d00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0x34]
push str._WARNING_:__s
push ecx
call fcn.00402d40
add esp, 0xc
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
push edx
push edi
push ebp
lea eax, [esp + 0x38]
xor ebx, ebx
push str._s__d_:__s_r_n
push eax
mov dword [esp + 0x34], ebx
call fcn.00402d40
mov eax, dword [eax]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
push ebx
lea ecx, [esp + 0x2c]
push str._Y__m__d__H:_i:_s
push ecx
call fcn.00405960
add esp, 0xc
mov edx, dword [esp + 0x30]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x34]
push str.__s_:__s
push ecx
mov byte [esp + 0x30], 1
call fcn.00402d40
add esp, 0x10
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x24], 2
call fcn.004055d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
cmp dword [esi + 0x10], ebx
je 0x405339
push ebx
lea edx, [esp + 0x18]
push str._Y__m__d__H:_i:_s
push edx
call fcn.00405960
mov dword [esp + 0x38], eax
lea eax, [esp + 0x1c]
push ebp
push eax
mov byte [esp + 0x34], 3
call fcn.0040ba30
add esp, 0x14
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ecx
mov byte [esp + 0x24], 4
mov ecx, dword [edx]
mov edx, dword [eax]
push ecx
push edi
push edx
lea eax, [esp + 0x38]
push str._s__d_:___s_:_s
push eax
call fcn.00402d40
add esp, 0x18
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x24], 5
call fcn.00405900
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
push ecx
push edi
push ebp
mov ecx, esi
call fcn.00405610
lea edx, [esp + 0x28]
push ebp
push edx
call fcn.0040ba30
add esp, 8
mov ecx, dword [esp + 0x30]
mov edx, dword [eax]
push ecx
push edi
push edx
lea eax, [esp + 0x38]
push str._s__d_:__s
push eax
mov byte [esp + 0x34], 6
call fcn.00402d40
add esp, 0x14
mov eax, dword [eax]
mov ecx, esi
push eax
push 2
push ebx
push 2
mov byte [esp + 0x30], 7
call fcn.004058a0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov dword [esp + 0x20], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x4053d0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x418d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esp + 0x30]
push str._ERROR_:__s
push ecx
call fcn.00402d40
add esp, 0xc
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
push edx
push edi
push ebp
lea eax, [esp + 0x34]
push str._s__d_:__s_r_n
push eax
mov dword [esp + 0x30], 0
call fcn.00402d40
mov eax, dword [eax]
add esp, 0x14
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString
push 0
lea ecx, [esp + 0x28]
push str._Y__m__d__H:_i:_s
push ecx
call fcn.00405960
add esp, 0xc
mov edx, dword [esp + 0x2c]
mov eax, dword [eax]
push edx
push eax
lea ecx, [esp + 0x30]
push str.__s_:__s
push ecx
mov byte [esp + 0x2c], 1
call fcn.00402d40
add esp, 0x10
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x20], 2
call fcn.004055d0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x10]
test eax, eax
je 0x405529
push 0
lea edx, [esp + 0x14]
push str._Y__m__d__H:_i:_s
push edx
call fcn.00405960
mov ebx, eax
lea eax, [esp + 0x30]
push ebp
push eax
mov byte [esp + 0x30], 3
call fcn.0040ba30
add esp, 0x14
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebx]
mov eax, dword [eax]
push ecx
push edx
push edi
push eax
lea ecx, [esp + 0x38]
push str._s__d_:___s_:_s
push ecx
mov byte [esp + 0x34], 4
call fcn.00402d40
add esp, 0x18
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x20], 5
call fcn.00405900
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x2c]
mov ecx, esi
push edx
push edi
push ebp
call fcn.00405610
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.0040ba30
add esp, 8
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax]
push ecx
push edi
push edx
lea eax, [esp + 0x34]
mov bl, 6
push str._s__d_:__s
push eax
mov byte [esp + 0x30], bl
call fcn.00402d40
add esp, 0x14
mov eax, dword [eax]
mov ecx, esi
push eax
push 1
push 0
push 1
mov byte [esp + 0x2c], 7
call fcn.004058a0
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x4058a0
Capabilities:
Access the windows event log

Disassembly:
mov eax, dword [esp + 0x10]
push esi
push edi
push str.TPlatform_Event
push 0
mov dword [esp + 0x20], eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
jne 0x4058c7
pop edi
pop esi
ret 0x10
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push 0
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 1
push 0
push edx
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x4058f0
xor edi, edi
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x406460
Capabilities:
Enumerate processes

Disassembly:
call fcn.004063e0
cmp eax, 1
je 0x40646d
xor eax, eax
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 8]
push 5
push ecx
push edx
push eax
push str.runas
push 0
call fcn.00406910
add esp, 0x1c
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40646c
push 0
call dword [sym.imp.MSVCRT.dll__exit]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x4064b0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x418f93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push esi
push edi
mov edi, dword [esp + 0x14c]
mov dword [esp + 0x140], 0
test edi, edi
mov dword [esp + 0xc], 0
jne 0x4064f7
lea ecx, [esp + 0x148]
call sub.MFC42.DLL_CString::MakeUpper
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40659d
push ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x14], 0x128
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x14]
mov byte [esp + 0x144], 1
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x406584
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_1
test edi, edi
jne 0x406555
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::MakeUpper
mov edx, dword [esp + 0x14c]
mov eax, dword [esp + 0xc]
push edx
push eax
call ebp
add esp, 8
test eax, eax
je 0x40657c
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x406584
jmp 0x40653a
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x10], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov byte [esp + 0x144], 0
call sub.MFC42.DLL_CString::CString
pop ebp
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x138]
mov eax, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x4065d0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x418fb3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebp
push esi
push edi
mov edi, dword [esp + 0x14c]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x140], ebp
jne 0x40660e
lea ecx, [esp + 0x148]
call sub.MFC42.DLL_CString::MakeUpper
push ebp
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4066b0
push ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], 0x128
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x14]
mov byte [esp + 0x144], 1
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x406697
mov ebx, dword [sym.imp.MSVCRT.dll__mbscmp]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
test edi, edi
jne 0x40666b
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
mov edx, dword [esp + 0x14c]
mov eax, dword [esp + 0x10]
push edx
push eax
call ebx
add esp, 8
test eax, eax
je 0x406692
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x406697
jmp 0x406650
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x144], 0
call sub.MFC42.DLL_CString::CString
pop ebx
lea ecx, [esp + 0x148]
mov dword [esp + 0x140], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x138]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x138
ret
Function at 0x4066f0
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push str.Kernel32
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
push ebx
push ebx
lea eax, [esp + 0x18]
push 0x1f0fff
push eax
call esi
mov ebp, dword [esp + 0x34]
push eax
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
test esi, esi
jne 0x406741
mov eax, ebp
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40679b
cmp dword [esp + 0x18], 0x103
jne 0x40679b
push str.ExitProcess
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x10]
test esi, esi
jne 0x406771
mov ecx, ebp
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x2c]
push 0
push edx
push eax
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
jne 0x4067a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x4067c4
mov dword [esp + 0x14], 0x42b
jmp 0x4067c4
mov eax, dword [esp + 0x10]
test esi, esi
jne 0x4067af
mov eax, ebp
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
test esi, esi
je 0x4067d3
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x4067e2
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4068a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], 0x44
test eax, eax
pop edi
jne 0x4068c6
lea eax, [esp]
mov ecx, dword [esp + 0x60]
push esi
push eax
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x64]
push ecx
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
test esi, esi
je 0x406906
mov eax, dword [esp + 0x6c]
test eax, eax
jbe 0x406906
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
pop esi
add esp, 0x54
ret
Function at 0x406910
Capabilities:
Create process on windows

Disassembly:
mov edx, dword [esp + 0x1c]
sub esp, 0x3c
push esi
mov esi, edx
neg esi
sbb esi, esi
push edi
and esi, 0x40
test edx, edx
jne 0x40692a
lea edx, [esp + 8]
mov ecx, 0xf
xor eax, eax
mov edi, edx
push edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x54]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x58]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x5c]
mov dword [edx + 0x14], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx], 0x3c
mov dword [edx + 4], esi
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
pop esi
add esp, 0x3c
ret

Function at 0x406b10
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x406b1a
ret 0x10
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret 0x10

Function at 0x406b40
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 8]
test eax, eax
jne 0x406b4a
ret 0x10
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret 0x10

Function at 0x40a8b0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
lea ecx, [esi + 4]
call sub.MFC42.DLL_CString::CString_1
mov dword [esi], 0x41baf4
mov eax, dword [0x4246f4]
test eax, eax
jne 0x40a8e0
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x4246f4
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, esi
pop esi
add esp, 0x190
ret
Function at 0x40bb10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40bb23
xor eax, eax
ret
and eax, 0xff
shr eax, 4
and eax, 1
ret

Function at 0x40bb30
Capabilities:
Create directory

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x20]
push esi
call fcn.0040bb10
add esp, 4
test eax, eax
je 0x40bb4f
mov eax, 1
pop esi
add esp, 0x18
ret
lea eax, [esp + 4]
mov dword [esp + 4], 0xc
test eax, eax
mov dword [esp + 0xc], 0
je 0x40bb84
xor ecx, ecx
cmp ecx, str.D:_A_OICI_GA___BA__A_OICI_GA___CO__A_OICI_GA___CG__A_OICI_GA___BU__A_OICI_GA___AU__A_OICI_GA___SY_
je 0x40bb84
lea edx, [esp + 8]
push ecx
push edx
push 1
push str.D:_A_OICI_GA___BA__A_OICI_GA___CO__A_OICI_GA___CG__A_OICI_GA___BU__A_OICI_GA___AU__A_OICI_GA___SY_
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
push eax
push esi
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x14]
mov esi, eax
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x40bcd0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4195a7
push eax
mov dword fs:[0], esp
sub esp, 0x41c
push ebp
mov ebp, dword [esp + 0x430]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
call esi
test eax, eax
je 0x40bd1d
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
add esp, 0x428
ret
push 0x64
push 0
push ebp
call fcn.0040b930
add esp, 0xc
test eax, eax
jne 0x40bd4a
pop esi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
add esp, 0x428
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40bd67
test al, 1
je 0x40bd67
and al, 0xfe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
call esi
push 0x64
push 0
push ebp
call fcn.0040b930
add esp, 0xc
test eax, eax
je 0x40bef9
lea eax, [esp + 0x10]
push ebp
push eax
call fcn.0040ba30
lea ecx, [esp + 0x20]
push 0x4242c0
push ecx
mov dword [esp + 0x43c], 0
call fcn.0040c550
add esp, 0x10
lea edx, [esp + 0x10]
mov byte [esp + 0x42c], 1
push edx
push eax
lea eax, [esp + 0x10]
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x42c], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
push 0x64
push 0
push ecx
call fcn.0040b930
add esp, 0xc
test eax, eax
je 0x40bde9
mov edx, dword [esp + 8]
push edx
call esi
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0xc]
xor esi, esi
push 0x64
push esi
push ecx
mov byte [esp + 0x438], 4
call fcn.0040b930
add esp, 0xc
test eax, eax
je 0x40beb7
push edi
mov edi, dword [sym.imp.MSVCRT.dll__splitpath]
lea edx, [esp + 0x224]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x124]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x32c]
push ecx
push edx
push eax
call edi
add esp, 0x14
lea ecx, [esp + 0x224]
mov eax, esi
lea edx, [esp + 0x20]
push ecx
push eax
lea eax, [esp + 0x128]
push edx
lea ecx, [esp + 0x330]
push eax
push ecx
lea edx, [esp + 0x2c]
push str._s_s_s__d__s
push edx
inc esi
call fcn.00402d40
add esp, 0x1c
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x434], 5
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x430], 4
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
push 0x64
push 0
push eax
call fcn.0040b930
add esp, 0xc
test eax, eax
jne 0x40be20
pop edi
mov ecx, dword [esp + 0xc]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0xc]
mov byte [esp + 0x42c], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x42c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x42c], 0xffffffff
call sub.MFC42.DLL_CString::CString
push 0x64
push 0
push ebp
call fcn.0040b930
mov ecx, dword [esp + 0x430]
add esp, 0xc
neg eax
sbb eax, eax
pop esi
inc eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x428
ret
Function at 0x40bf30
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x4195e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
push ebx
push ebp
push edi
mov edi, dword [esp + 0x16c]
push edi
lea eax, [esp + 0x1c]
mov ebx, 1
push str._s
push eax
mov ebp, ebx
call fcn.00402d40
add esp, 0xc
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
mov dword [esp + 0x16c], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x40c07c
push esi
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x14]
push eax
call fcn.004048f8
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x10]
push ecx
push edi
push 0x422380
push edx
mov byte [esp + 0x178], bl
call fcn.00402d40
mov eax, dword [esp + 0x24]
push 0x4229cc
push eax
mov byte [esp + 0x180], 2
call esi
add esp, 0x18
test eax, eax
je 0x40c037
mov ecx, dword [esp + 0x14]
push 0x4229e8
push ecx
call esi
add esp, 8
test eax, eax
je 0x40c037
mov eax, dword [esp + 0x174]
test eax, eax
je 0x40c024
test byte [esp + 0x20], 0x10
je 0x40c024
mov edx, dword [esp + 0x178]
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call fcn.0040bf30
add esp, 0xc
test eax, eax
jne 0x40c037
jmp 0x40c035
mov ecx, dword [esp + 0x10]
push ecx
call fcn.0040bcd0
add esp, 4
test eax, eax
jne 0x40c037
xor ebp, ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x168], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40bf9e
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov eax, dword [esp + 0x174]
test eax, eax
je 0x40c094
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40c094
xor ebp, ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x164], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x15c]
mov eax, ebp
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x15c
ret
Function at 0x40c0d0
Capabilities:
Get file version info
Identify system language via api

Disassembly:
push 0xffffffffffffffff
push 0x419617
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
push eax
push ecx
mov byte [esp + 0x34], 2
mov dword [esp + 0x20], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jbe 0x40c20f
lea edx, [edi + 1]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x38]
push esi
push edi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x40c202
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push str.VarFileInfoTranslation
push 0x4246f8
mov dword [esp + 0x14], ebx
call edi
add esp, 8
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x4246f8
push esi
call sub.VERSION.dll_VerQueryValueA
cmp eax, ebx
je 0x40c1bb
cmp dword [esp + 0x14], 4
jne 0x40c1bb
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x3c]
push ecx
xor edx, edx
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov dl, byte [esp + 0x22]
mov ecx, eax
push edx
shr ecx, 0x18
push ecx
mov edx, eax
xor ecx, ecx
and edx, 0xff
mov cl, ah
push edx
push ecx
push str.StringFileInfo_02X_02X_02X_02X_s
push 0x4246f8
call edi
add esp, 0x1c
jmp 0x40c1db
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
push eax
push str.StringFileInfo_04X04B0_s
push 0x4246f8
call edi
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x4246f8
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40c202
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
cmp esi, ebx
je 0x40c20f
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret