joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b210
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x46b24b
cmp dword [esp + 4], 5
sbb eax, eax
inc eax
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x46b2a0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46b308
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp + 0x18]
xor edx, edx
test ecx, ecx
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
setne dl
push 0
push eax
inc edx
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x14
ret 4

Function at 0x46b4e0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x484390
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_5
mov dword [esp + 0x34], 0
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push str.plugins
lea ecx, [esp + 8]
mov eax, dword [eax + 0x6e8]
push eax
push str._s_s
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x14]
add esp, 0x10
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x4ac8e0
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 4]
push 0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 8]
mov esi, eax
call sub.MFC42.DLL_CString::CString_5
test esi, esi
mov byte [esp + 0x34], 2
je 0x44e3d6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CFileFind::FindNextFileA
lea ecx, [esp + 0x10]
mov esi, eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFileFind::GetFilePath
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 3
call fcn.0047dfc4
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0xc]
push edx
call edi
test esi, esi
jne 0x44e394
pop edi
lea ecx, [esp + 8]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x34], 0
call fcn.0047e86a
lea ecx, [esp + 4]
mov dword [esp + 0x34], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret
add ecx, 0x79c
jmp 0x44e2f0
Function at 0x46cc20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x1450]
push edi
test eax, eax
jne 0x46cca4
push str.TEXT
push 0xd3
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x46cca4
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cdq
sub eax, edx
push edi
mov esi, eax
push 0
sar esi, 1
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x46cca4
push 0x10000
call sub.MFC42.DLL_operatornew
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx + 0x1450], edi
je 0x46cca4
mov ecx, 0x4000
xor eax, eax
test esi, esi
rep stosd dword es:[edi], eax
jle 0x46cca4
mov eax, ebp
mov edx, dword [ebx + 0x1450]
xor ecx, ecx
mov cx, word [eax]
add eax, 2
dec esi
mov byte [ecx + edx], 1
jne 0x46cc8f
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x46d3e0
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x110]
lea ecx, [esp + 8]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x46d450
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [esp + 4]
mov ecx, dword [esp + 8]
xor eax, eax
cmp edi, 0x1a2b3c5e
setne al
dec eax
pop edi
and eax, ecx
add esp, 0x104
ret 4

Function at 0x46d780
Capabilities:
Create service
Start service

Disassembly:
push ebx
push ebp
xor ebp, ebp
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x46d7aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
pop ebp
pop ebx
mov dword [ecx], eax
xor eax, eax
ret 0xc
mov edx, dword [esp + 0xc]
push esi
push edi
push 0
mov edi, dword [esp + 0x1c]
push 0
push 0
push 0
push 0
push edx
push 1
push 3
push 1
push 0xf01ff
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x46d7f8
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, eax
test ebp, ebp
jne 0x46d835
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
jmp 0x46d835
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x46d83c
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x46d83c
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebp, eax
test ebp, ebp
jne 0x46d835
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x1c]
mov dword [edx], eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x46d9b0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x46da05
mov eax, dword [esp + 0x24]
push ebx
push esi
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x46da00
lea ecx, [esp + 0xc]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
add esp, 0x1c
ret 4

Function at 0x46da10
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x486588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x4a6784
lea eax, [esi + 0x6e8]
lea ecx, [esp + 0x20]
push eax
push ecx
xor edi, edi
call sub.MFC42.DLL_operator_1
lea ebp, [esi + 0xe44]
lea edx, [esp + 0x18]
push ebp
push eax
push edx
mov dword [esp + 0x34], edi
call sub.MFC42.DLL_operator_1
push str..sys
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x30], 1
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
push 0x4a9710
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x46db4a
mov ecx, esi
mov edi, 1
call fcn.0046d850
push ebx
push edi
push 0x1300
push 0x4b2950
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, edi
je 0x46dadb
mov edx, dword [esp + 0x30]
xor edi, edi
mov dword [edx], 0xffffffff
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
test edi, edi
je 0x46db3d
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ebp
push ecx
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.0046d780
mov edi, eax
test edi, edi
jne 0x46db2c
cmp dword [esp + 0x14], 3
jne 0x46db2c
push ebp
mov ecx, esi
call fcn.0046d9b0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push ebp
push eax
mov ecx, esi
call fcn.0046d780
mov edi, eax
cmp dword [esp + 0x14], 5
jne 0x46db3d
mov ecx, dword [esp + 0x30]
mov dword [ecx], 0xfffffffe
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x46db54
mov eax, dword [esp + 0x30]
mov dword [eax], 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x46e460
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x486690
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov eax, dword [esp + 0x7c]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x3c]
push str._s_views
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
xor ebx, ebx
lea edx, [esp + 0x38]
push ebx
push edx
lea ecx, [esp + 0x94]
push str.SettingsPrevUI
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWinApp::GetProfileStringA
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x80], ebx
cmp dword [eax - 8], ebx
je 0x46e62a
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x30]
call fcn.0044a8b0
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 1
call fcn.0044a970
mov ebp, dword [sym.imp.MSVCRT.dll_atoi]
mov esi, eax
push esi
call ebp
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
inc esi
push 0x28
push esi
mov dword [esp + 0x20], eax
call edi
add esp, 0xc
cmp eax, ebx
je 0x46e619
lea esi, [eax + 1]
push esi
call ebp
push 0x2c
push esi
mov dword [esp + 0x24], eax
call edi
add esp, 0xc
cmp eax, ebx
je 0x46e619
lea esi, [eax + 1]
push esi
call ebp
push 0x2c
push esi
mov dword [esp + 0x28], eax
call edi
add esp, 0xc
cmp eax, ebx
je 0x46e619
lea esi, [eax + 1]
push esi
call ebp
push 0x2c
push esi
mov dword [esp + 0x2c], eax
call edi
mov esi, eax
add esp, 0xc
cmp esi, ebx
je 0x46e619
lea edx, [esi + 1]
push edx
call ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x94]
add esp, 4
cmp eax, ebx
je 0x46e5ef
cmp dword [esp + 0x94], ebx
jle 0x46e5ef
push 0x28
push esi
call edi
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x46e619
mov eax, dword [esp + 0x94]
inc esi
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x46e5ef
mov ebx, dword [esp + 0x90]
push esi
call ebp
push 0x2c
push esi
mov dword [ebx], eax
call edi
mov ecx, dword [esp + 0xa0]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x46e5d1
mov edx, dword [esp + 0x10]
lea eax, [ecx - 1]
cmp edx, eax
jne 0x46e5e4
mov eax, dword [esp + 0x10]
inc esi
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x46e5ac
jmp 0x46e5ef
mov edi, dword [esp + 0x90]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x1c], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x24], edx
mov dword [eax + 0x28], ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 0
call fcn.0044a920
lea ecx, [esp + 0x8c]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 0x10
Function at 0x46ec90
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0x4c
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
push edi
mov ecx, 0x10
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
lea edi, [esp + 0x18]
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
cdq
mov ecx, 3
idiv ecx
lea ecx, [ebx*4]
mov eax, 0x55555556
movsb byte es:[edi], byte [esi]
mov ebp, edx
imul ecx
mov eax, edx
mov dword [esp + 0x14], ebp
shr eax, 0x1f
add edx, eax
test ebp, ebp
je 0x46ecd8
add edx, 4
lea esi, [edx + 2]
push esi
call sub.MFC42.DLL_operatornew
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x10], edx
jne 0x46ecf6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ecx, esi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x60]
and ecx, 3
rep stosb byte es:[edi], al
mov edi, ebx
mov eax, edx
sub edi, ebp
test edi, edi
jle 0x46ed8e
mov ebp, 0xfffffffe
sub ebp, esi
mov dl, byte [esi]
mov cl, byte [esi + 1]
mov byte [esp + 0x64], dl
mov bl, cl
and dl, 3
and cl, 0xf
shr bl, 4
shl dl, 4
add bl, dl
add esi, 3
movsx edx, bl
shl cl, 2
mov dl, byte [esp + edx + 0x18]
mov byte [esp + 0x60], dl
mov dl, byte [esi - 1]
mov bl, dl
and edx, 0x3f
shr bl, 6
add cl, bl
mov dl, byte [esp + edx + 0x18]
movsx ecx, cl
mov bl, byte [esp + ecx + 0x18]
mov cl, byte [esp + 0x64]
shr cl, 2
movsx ecx, cl
inc eax
mov cl, byte [esp + ecx + 0x18]
mov byte [eax - 1], cl
mov cl, byte [esp + 0x60]
mov byte [eax], cl
inc eax
mov byte [eax], bl
inc eax
mov byte [eax], dl
lea edx, [esi + ebp + 2]
inc eax
cmp edx, edi
jl 0x46ed1d
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test ebp, ebp
je 0x46edfb
mov cl, byte [esi]
shr cl, 2
movsx edx, cl
inc eax
mov cl, byte [esp + edx + 0x18]
mov byte [eax - 1], cl
mov dl, byte [esi]
and dl, 3
mov cl, dl
shl cl, 4
cmp ebp, 2
jne 0x46edbc
mov cl, byte [esi + 1]
shr cl, 4
shl dl, 4
add cl, dl
movsx edx, cl
inc eax
cmp ebp, 1
mov cl, byte [esp + edx + 0x18]
mov byte [eax - 1], cl
jne 0x46ede1
mov edx, dword [esp + 0x10]
pop edi
mov byte [eax], 0x3d
pop esi
mov byte [eax + 1], 0x3d
pop ebp
mov eax, edx
pop ebx
add esp, 0x4c
ret
mov dl, byte [esi + 1]
and dl, 0xf
shl dl, 2
movsx ecx, dl
mov dl, byte [esp + ecx + 0x18]
mov byte [eax], dl
mov edx, dword [esp + 0x10]
mov byte [eax + 1], 0x3d
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
add esp, 0x4c
ret
Function at 0x46f0e0
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x278
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x9f8]
lea ebp, [eax + 0x85c]
mov edx, dword [ecx - 8]
test edx, edx
je 0x46f2a6
cmp edx, 0x104
jge 0x46f2a6
cmp dword [eax + 0x854], 2
je 0x46f2a6
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push 0x5c
push ecx
call esi
mov edi, dword [sym.imp.MSVCRT.dll__mbsnbcpy]
inc eax
push 0x104
push eax
lea eax, [esp + 0x28]
push eax
call edi
lea ecx, [esp + 0x2c]
push 0x2e
push ecx
call esi
add esp, 0x1c
test eax, eax
je 0x46f157
mov byte [eax], 0
mov al, byte [esp + 0x18]
test al, al
je 0x46f2a6
mov edx, dword [ebp + 0x19c]
push 0x104
lea eax, [esp + 0x120]
push edx
push eax
call edi
lea ecx, [esp + 0x128]
push 0x5c
push ecx
call esi
mov byte [eax + 1], 0
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
lea edx, [esp + 0x11c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0xc], ebp
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x11c]
and ecx, 3
mov dword [esp + 0x10], eax
rep movsb byte es:[edi], byte [esi]
mov edi, str..dbp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
or esi, 0xffffffff
call fcn.00428e50
test eax, eax
je 0x46f22e
cmp dword [eax], 0
je 0x46f21d
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x46f21d
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x46f21d
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x46f22c
lea ecx, [esp + 0xc]
call fcn.00428e80
test eax, eax
jne 0x46f203
jmp 0x46f22e
xor esi, esi
mov eax, dword [ebp + 0x23c]
test eax, eax
jle 0x46f239
inc esi
mov eax, dword [ebp + 0x204]
test eax, eax
jle 0x46f244
inc esi
mov eax, dword [ebp + 0x220]
test eax, eax
jle 0x46f24f
inc esi
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x46f26c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x46f2a6
test esi, esi
jl 0x46f286
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.0046f2c0
mov eax, dword [esp + 0x288]
test eax, eax
je 0x46f2a6
mov ecx, ebp
call fcn.00428430
mov ecx, ebp
call fcn.00429030
mov ecx, ebp
call fcn.004295a0
pop edi
pop esi
pop ebp
add esp, 0x278
ret 4
Function at 0x470970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__mbschr]
push esi
push edi
push 0x2c
push ebx
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x470a9d
mov edx, esi
sub edx, ebx
cmp edx, 0x104
jge 0x470a9d
cmp edx, 3
jle 0x470a9d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x104
jae 0x470a9d
mov ecx, 0x40
lea edi, [esp + 0x11]
mov byte [esp + 0x10], al
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcpy]
lea edi, [esi + 1]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x22
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 + 0x20]
push ecx
call ebp
mov esi, eax
add esp, 0x14
test esi, esi
je 0x470a9d
inc esi
push 0x22
push esi
call ebp
add esp, 8
test eax, eax
je 0x470a9d
lea edx, [esp + 0x114]
push 0x22
push edx
mov byte [eax], 0
call ebp
mov edi, eax
add esp, 8
test edi, edi
je 0x470a9d
inc edi
push 0x22
push edi
call ebp
add esp, 8
test eax, eax
je 0x470a9d
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
mov byte [eax], 0
call ebx
cmp eax, 0xffffffff
je 0x470a9d
push edi
call ebx
cmp eax, 0xffffffff
je 0x470a9d
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
push edi
add ecx, 0x85c
push esi
call fcn.00428ea0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 4
Function at 0x471df0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
mov eax, dword [ebp + 0x58]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x471eb7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x2bc
jae 0x471e46
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
jne 0x471e69
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x471e8f
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
mov ecx, ebp
call fcn.00471ec0
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
push esi
call edi
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4720e0
Capabilities:
Terminate process

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
cdq
mov ebx, dword [esp + 0x14]
sub eax, edx
push ebp
xor ebp, ebp
sar eax, 1
push esi
push edi
test eax, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
jle 0x472116
mov ecx, ebx
cmp word [ecx], 0
je 0x472116
inc ebp
add ecx, 2
cmp ebp, eax
jl 0x472108
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
cmp esi, 4
jl 0x472154
xor ecx, ecx
test esi, esi
jle 0x472151
mov al, byte [ecx + ebx]
cmp al, 0x20
jb 0x47213a
cmp al, 0x7e
jbe 0x472146
cmp al, 0xd
je 0x472146
cmp al, 0xa
je 0x472146
cmp al, 9
jne 0x47214d
inc ecx
cmp ecx, esi
jl 0x47212f
jmp 0x472151
cmp ecx, esi
jl 0x472154
or ebp, 0xffffffff
mov eax, esi
and eax, 0x80000001
jns 0x472162
dec eax
or eax, 0xfffffffe
inc eax
je 0x472165
inc esi
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
cmp ebp, 1
mov dword [esp + 0x18], edi
jle 0x472235
push ebx
mov ecx, edi
call fcn.0046cd40
test eax, eax
je 0x472235
lea ecx, [ebp + ebp]
cmp esi, ecx
jne 0x4721a2
push ebx
mov ecx, edi
call fcn.0046cce0
test eax, eax
jne 0x472235
mov edx, dword [esp + 0x24]
lea ebx, [edx + 2]
push ebx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
test esi, esi
jne 0x4721cc
push 0xffffffffffffffff
push eax
push 0xf00a
call sub.MFC42.DLL_AfxMessageBox_1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, ebx
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push ebx
push esi
push ebp
push eax
push 0x400
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x472212
mov ecx, dword [esp + 0x14]
push 0
push eax
push esi
call fcn.004722b0
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
jmp 0x472216
mov ebp, dword [esp + 0x10]
push esi
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0x30]
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
mov dword [edx], 1
pop ebx
add esp, 0xc
ret 0x10
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov al, byte [ebx]
not ecx
dec ecx
test al, al
mov esi, ecx
je 0x472277
mov ecx, ebx
cmp al, 0x20
jl 0x472253
cmp al, 0x7e
jle 0x47225f
cmp al, 0xd
je 0x47225f
cmp al, 0xa
je 0x47225f
cmp al, 9
jne 0x472269
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x47224b
jmp 0x472277
mov ecx, dword [esp + 0x18]
push ebx
call fcn.0046cce0
test eax, eax
je 0x47229a
test esi, esi
jle 0x47229a
mov ecx, dword [esp + 0x14]
push 0
push esi
push ebx
call fcn.004722b0
mov ecx, dword [esp + 0x28]
pop edi
mov dword [ecx], eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10