joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414410
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a068
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4611f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00402410
push 0xb
push str.Config.ini
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.0040ca60
mov eax, dword [edi + 0x270]
mov ebx, dword [ebp + 8]
lea esi, [edi + 0x270]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or eax, ecx
jge 0x414487
push 0x104
mov ecx, esi
call fcn.00402270
push ebx
push 0x104
push dword [esi]
push 0x451c88
push 0x456a9c
push str.BFVCenter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [esi]
test eax, eax
jne 0x4144ae
xor ecx, ecx
jmp 0x4144c0
push dword [eax - 8]
push eax
call fcn.004336a3
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41452d
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x41452d
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [esi]
cmp dword [eax - 0xc], edx
jne 0x4144f5
mov ecx, edi
call fcn.00418210
push dword [ebp + 8]
push dword [esi]
push 0x456a9c
push str.BFVCenter
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414519
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004022e0
int3
Function at 0x4147b0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a3fb
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402410
push 0xb
push 0x45599c
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.0040ca60
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4148a0
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp - 0x21c]
push 0
push 0
push 2
push 0
push 0
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x414872
cmp dword [0x46237c], 6
jb 0x41486b
push ecx
mov ecx, edi
call fcn.0041d300
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.SHELL32.dll_SHChangeNotify]
push 0
push dword [ebp - 0x21c]
push 0x1005
push 0x8000000
call esi
push 0
push dword [ebp - 0x21c]
push 0x1005
push 0x800
call esi
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4148c7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret
Function at 0x4148f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov ebx, ecx
call fcn.00434de0
mov eax, dword [ebx + 0x24]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x414939
push dword [eax - 0xc]
lea ecx, [ebx + 0x24]
call fcn.004021a0
mov ecx, dword [ebx + 0x24]
lea edx, [ebp - 0x20c]
sub edx, ecx
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x414944
push str.api.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414988
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret
push 8
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x414976
push edi
push str.AppID_GetUUID
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
xor eax, eax
test edi, edi
je 0x4149fc
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x414]
push 0x104
push eax
call edi
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebx + 0x26c]
call fcn.004023c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431c68
mov esp, ebp
pop ebp
ret
Function at 0x414a10
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a438
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4611f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [0x464eb0]
test edx, edx
jne 0x414b04
cmp dword [0x464eb4], edx
jne 0x414b04
lea edx, [ecx + 0x24]
push str.BFVKanDianYing.ver
lea ecx, [ebp - 0x14]
call fcn.0040bce0
add esp, 4
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
mov dword [ebp - 4], 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x414ada
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 8
jbe 0x414ad3
push 0
lea eax, [ebp - 0x10]
push eax
push 8
push 0x464eb0
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x414ac8
cmp dword [ebp - 0x10], 8
je 0x414ad3
xorps xmm0, xmm0
movlpd qword [0x464eb0], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414afe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [0x464eb0]
mov esi, dword [ebp + 8]
test esi, esi
je 0x414b4b
mov ecx, dword [0x464eb4]
movzx eax, dx
push eax
mov eax, ecx
shrd edx, eax, 0x10
sar eax, 0x10
mov eax, ecx
and edx, 0xffff
push edx
sar eax, 0x1f
movsx eax, word [0x464eb6]
and ecx, 0xffff
push ecx
push eax
push str._d._02d._04d._04d
push 0xffffffffffffffff
push 0x40
push esi
call fcn.004341f8
add esp, 0x20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x414c60
Capabilities:
Delete registry key
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a3fb
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.SoftwareBaofengBFVCenter
push SysReAllocStringLen
call esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallBFVCenter
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsBFVCenter.exe
push reloc.OLEAUT32.dll_SysReAllocString
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x218]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402410
push 0x13
push str.BaofengBFVCenter_
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.0040ca60
mov ecx, dword [ebp - 0x21c]
xor edx, edx
call fcn.0041c960
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414d46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret
Function at 0x415710
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a180
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4611f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
xor ebx, ebx
or edi, 0xffffffff
cmp dword [eax - 0xc], ebx
je 0x415818
lea ecx, [eax - 0x10]
call fcn.00401e50
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 1
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x415786
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00402270
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
push dword [esi - 8]
push esi
call fcn.004336a3
add esp, 8
test eax, eax
js 0x41584c
cmp eax, dword [esi - 8]
jg 0x41584c
xor ecx, ecx
mov dword [esi - 0xc], eax
push 1
mov word [esi + eax*2], cx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4157ef
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
shrd ecx, edx, 0x14
shr edx, 0x14
mov dword [eax], ecx
mov dword [eax + 4], edx
mov ebx, 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x415815
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
lea esi, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x415836
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.004022e0
int3
Function at 0x416b00
Capabilities:
Copy file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x87c
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x878], ecx
test edi, edi
je 0x416cad
test esi, esi
je 0x416cad
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x416b44
mov ecx, esi
call fcn.0041c800
push 0x458090
push edi
push str._s_s
lea eax, [ebp - 0x620]
push 0x104
push eax
mov dword [ebp - 0x874], 1
call fcn.004342d4
add esp, 0x14
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x416cad
lea esp, [esp]
cmp word [ebp - 0x844], 0x2e
je 0x416c77
test byte [ebp - 0x870], 0x10
lea eax, [ebp - 0x844]
push eax
push edi
je 0x416c13
push str._s_s_
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.004342d4
xor eax, eax
add esp, 0x14
mov word [ebp - 0x212], ax
lea eax, [ebp - 0x844]
push eax
push esi
push str._s_s_
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004342d4
mov ecx, dword [ebp - 0x878]
xor eax, eax
add esp, 0x14
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.00416b00
jmp 0x416c71
push str._s_s
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004342d4
xor eax, eax
add esp, 0x14
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x844]
push eax
push esi
push str._s_s
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.004342d4
add esp, 0x14
xor eax, eax
push eax
mov word [ebp - 0x212], ax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x874], eax
lea eax, [ebp - 0x870]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416b90
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x874]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00431c68
mov esp, ebp
pop ebp
ret 8
Function at 0x416d40
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449c8c
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 1
push 0x23
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402410
push str.BaofengBFVKanDianYingHistoryhistory.ini
lea edx, [ebp - 0x21c]
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.0040bce0
add esp, 4
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.00401a10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x416dea
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x416ede
push str.BFVServer.exe
lea edx, [esi + 0x24]
lea ecx, [ebp - 0x220]
call fcn.0040bce0
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
push dword [ebp - 0x220]
lea eax, [ebp - 0x224]
push str._s__Module_ConvertHistory_
push eax
call fcn.0040be40
mov esi, dword [ebp - 0x224]
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x416e6c
push dword [esi - 0xc]
lea ecx, [ebp - 0x224]
call fcn.004021a0
mov esi, dword [ebp - 0x224]
push ecx
push 0
mov edx, esi
xor ecx, ecx
call fcn.0041d0b0
push dword [esi - 8]
push esi
call fcn.004336a3
add esp, 8
test eax, eax
js 0x416f1d
cmp eax, dword [esi - 8]
jg 0x416f1d
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
add esi, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416ebb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x416ede
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x416f02
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004022e0
int3
Function at 0x4175c0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ecx + 0x24]
lea edx, [ebp - 0x20c]
sub edx, ecx
mov edi, edi
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x4175e0
push str.HistoryConverter.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417690
push 0x38
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.00434de0
add esp, 0xc
cmp dword [0x46237c], 6
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x238], eax
mov ecx, str.open
mov eax, str.runas
cmovb eax, ecx
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x244], 0x40
mov dword [ebp - 0x248], 0x3c
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x234], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x417690
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret
Function at 0x417930
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a808
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x4611f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00418cf0
mov dword [ebp - 4], 0
cmp dword [ebx + 0x288], 1
je 0x4179a8
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4179a8
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push ecx
lea ecx, [esi - 0x10]
mov edi, esp
call fcn.00401e50
add eax, 0x10
mov ecx, ebx
mov dword [edi], eax
call fcn.00417b50
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x4179ba
push 0
push 0x451c88
lea ecx, [ebp - 0x14]
call fcn.00402300
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x24]
sub ecx, 0x10
call fcn.00401e50
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x10
push str.BFVOtherInst.exe
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0040ca60
mov edi, dword [ebp - 0x1c]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or ebx, 0xffffffff
test eax, eax
jne 0x4179f7
mov dword [ebp - 0x18], eax
jmp 0x417af1
push 0x451c88
lea ecx, [ebp - 0x10]
call fcn.00402410
push 1
push 0x4555f0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.0040ca60
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
push esi
call fcn.0040ca60
push 1
push 0x4555f0
lea ecx, [ebp - 0x10]
call fcn.0040ca60
push 1
push str._0__
lea ecx, [ebp - 0x10]
call fcn.0040ca60
push 1
push 0x4555f0
lea ecx, [ebp - 0x10]
call fcn.0040ca60
push 0
push 0x451c88
lea ecx, [ebp - 0x10]
call fcn.0040ca60
push 1
push 0x4555f0
lea ecx, [ebp - 0x10]
call fcn.0040ca60
push 0x38
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00434de0
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [0x46237c], 6
mov dword [ebp - 0x44], eax
mov ecx, str.open
mov eax, str.runas
cmovb eax, ecx
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x54], 0x40
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x48], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x417aca
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov dword [ebp - 0x18], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417af1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x417b0e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x417b2c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x418510
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x449b4b
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402410
push 0x15
push str.BFVDefaultBdSetup.xml
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.0040ca60
mov esi, dword [0x4649a4]
mov ebx, dword [ebp - 0x21c]
push str.RESOURCE_DATA
push 0x8f
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4185c6
push eax
mov edx, esi
mov ecx, ebx
call fcn.0041cc70
lea eax, [ebp - 0x21c]
lea ecx, [edi + 0x28c]
push eax
call fcn.00401a10
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x418613
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push ecx
mov ecx, dword [ebp - 0x21c]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00401e50
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.00418660
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41863a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret
Function at 0x419020
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.0041d030
test eax, eax
je 0x419048
push 0
push 0
push esi
push 0x418fb0
push 0
push 0
call fcn.0043295d
add esp, 0x18
mov dword [esi + 0x298], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x4184c0
push 0
push 0
mov dword [esi + 0x290], eax
call fcn.0043295d
mov dword [esi + 0x294], eax
mov eax, dword [esi + 0x298]
add esp, 0x18
pop esi
test eax, eax
je 0x41908f
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret