joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d6b0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x451408
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [ecx], di
jne 0x40d6ea
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ecx
lea ecx, [ebp - 0x14]
call fcn.00401c50
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, 0x104
or ecx, edx
jge 0x40d722
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00401e30
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
mov eax, dword [ebp - 0x14]
push dword [eax - 8]
push eax
call fcn.0043cf47
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40d7d5
mov eax, dword [ebp - 0x14]
cmp ecx, dword [eax - 8]
jg 0x40d7d5
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [eax - 0xc], ecx
mov eax, dword [ebp - 0x14]
xor edx, edx
push 1
mov word [eax + ecx*2], dx
call esi
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40d799
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 8]
shrd ecx, edx, 0x14
shr edx, 0x14
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edi, 1
push ebx
call esi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d7c0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401fd0
int3

Function at 0x40d7e0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x46a018]
cmp byte [eax + 2], 0
je fcn.0040d870
push edi
lea edi, [ecx + 4]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
jne 0x40d861
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x40d81b
push 0x104
mov ecx, edi
call fcn.00401e30
push esi
mov esi, dword [edi]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str._bfAppStoreInstall
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, dword [edi]
pop esi
test eax, eax
je 0x40d84d
push dword [eax - 8]
push eax
call fcn.0043cf47
add esp, 8
test eax, eax
js 0x40d863
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x40d863
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [edi]
pop edi
ret
push 0x80070057
call fcn.00401fd0
int3
Function at 0x40d870
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword [ecx + 8]
push esi
cmp dword [eax - 0xc], 0
lea esi, [ecx + 8]
jne 0x40d915
mov eax, dword [0x46a018]
cmp byte [eax + 2], 0
je 0x40d8a1
mov eax, dword [eax + 4]
test eax, eax
je 0x40d8a1
cmp word [eax], 0
je 0x40d8a1
push eax
mov ecx, esi
call fcn.00401f60
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x40d913
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x40d8c9
push 0x104
mov ecx, esi
call fcn.00401e30
push 1
push 0x26
push dword [esi]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esi]
test eax, eax
jne 0x40d8e1
xor ecx, ecx
jmp 0x40d8f3
push dword [eax - 8]
push eax
call fcn.0043cf47
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40d917
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40d917
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
push 0xb
mov word [eax + ecx*2], dx
push str._bfAppStore
mov ecx, esi
call fcn.0040a3e0
mov eax, dword [esi]
pop esi
ret
push 0x80070057
call fcn.00401fd0
int3
Function at 0x40de00
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x248], ax
lea eax, [ebp - 0x246]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 0x248]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.bfAppStore
lea eax, [ebp - 0x248]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x248]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40de75
push 0
lea eax, [ebp - 0x248]
push eax
call esi
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 0x40]
push 0x20
push 0x4586c0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x248]
call fcn.0040bb90
add esp, 4
lea eax, [ebp - 0x248]
push str.profiles
push eax
call edi
lea eax, [ebp - 0x248]
push eax
call ebx
test eax, eax
jne 0x40ded3
push eax
lea eax, [ebp - 0x248]
push eax
call esi
push str..._app
lea eax, [ebp - 0x248]
push eax
call edi
lea eax, [ebp - 0x248]
push eax
call ebx
test eax, eax
jne 0x40def8
push eax
lea eax, [ebp - 0x248]
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40e000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450558
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
mov eax, dword [section..data]
push esi
push edi
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x26]
push eax
movzx eax, word [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push str._4d_02d_02d
push eax
call fcn.0040a530
add esp, 0x14
lea ecx, [ebp - 0x10]
push str.Software_bfAppStore
call fcn.00401c50
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
push edi
push str.InstallDate
mov ecx, SysReAllocStringLen
call fcn.00413020
mov eax, dword [0x46a018]
xor edx, edx
mov al, byte [eax + 2]
test al, al
mov eax, dword [section..data]
mov esi, 1
mov ecx, section..data
cmovne esi, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
push 0x458bd0
push eax
mov byte [ebp - 4], 2
call fcn.0040a530
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov ecx, SysReAllocStringLen
push esi
push str.InstallType
call fcn.00413020
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x22e]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 0x230]
push 1
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.bfAppStoreprofilesconfig.ini
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x230]
push eax
push edi
call fcn.00413150
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 1
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40e14e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40e16e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40e18c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40e560
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4504c0
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
test esi, esi
je 0x40e66c
cmp word [esi], 0
je 0x40e66c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e66c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40e66c
push esi
lea ecx, [ebp - 0x10]
call fcn.00401c50
push str._del
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x40e5fd
sub eax, esi
push section..data
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x14]
call fcn.004016c0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00401270
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00401fb0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push edi
mov edi, 0xa
lea ebx, [ebx]
push 4
push str._del
lea ecx, [ebp - 0x10]
call fcn.0040a3e0
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e643
push 3
push dword [ebp - 0x10]
push esi
call ebx
cmp byte [ebp + 8], 0
je 0x40e643
push 5
push 0
push dword [ebp - 0x10]
call ebx
dec edi
jne 0x40e610
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
pop edi
pop ebx
test ecx, ecx
jg 0x40e66c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40ee50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
cmp dword [0x46a028], 0
push ebx
push esi
push edi
mov ebx, ecx
jne 0x40ef3c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x270], ax
lea eax, [ebp - 0x26e]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 0x270]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x458c70
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40ef31
mov esi, dword [0x46a024]
test esi, esi
je 0x40eedd
mov ecx, dword [0x46a020]
test ecx, ecx
je 0x40eedd
mov eax, dword [0x46a01c]
test eax, eax
jne 0x40ef16
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MD5Init
push edi
call esi
push str.MD5Update
push edi
mov dword [0x46a024], eax
call esi
push str.MD5Final
push edi
mov dword [0x46a020], eax
call esi
mov esi, dword [0x46a024]
mov ecx, dword [0x46a020]
mov dword [0x46a01c], eax
test esi, esi
je 0x40ef2a
test ecx, ecx
je 0x40ef2a
test eax, eax
je 0x40ef2a
mov dword [0x46a028], edi
jmp 0x40ef4d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [0x46a024]
mov ecx, dword [0x46a020]
mov eax, dword [0x46a01c]
test esi, esi
je 0x40ef31
test ecx, ecx
je 0x40ef31
test eax, eax
je 0x40ef31
push 0x60
lea eax, [ebp - 0x60]
push 0
push eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 0x68]
push eax
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push dword [ebp + 8]
push eax
call dword [0x46a020]
lea eax, [ebp - 0x68]
push eax
call dword [0x46a01c]
movq xmm0, qword [ebp - 0x10]
movq qword [ebx + 4], xmm0
movq xmm0, qword [ebp - 8]
pop edi
pop esi
movq qword [ebx + 0xc], xmm0
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40f160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x208
or ecx, eax
jge 0x40f18a
push 0x208
mov ecx, esi
call fcn.00401e30
push edi
mov edi, dword [esi]
push 0x410
push 0
push edi
call fcn.0043da70
add esp, 0xc
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 4]
push eax
push str.Path
push str.Software_bfAppStore
push SysReAllocStringLen
mov dword [ebp - 4], 1
mov dword [ebp + 8], 0x410
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40f1d4
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [esi]
pop edi
test eax, eax
jne 0x40f1df
xor ecx, ecx
jmp 0x40f1f1
push dword [eax - 8]
push eax
call fcn.0043cf47
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40f21d
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x40f21d
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x40f216
mov ecx, esi
call fcn.00401d00
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401fd0
int3
Function at 0x40f580
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push ecx
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40f614
push 0
lea eax, [esp + 0x10]
push eax
push 8
lea eax, [esp + 0x1c]
push eax
xorps xmm0, xmm0
push edi
mov dword [esp + 0x20], 0
movlpd qword [esp + 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40f614
mov ecx, dword [esp + 0x10]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [esp + 0x1c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push str._d._02d._04d._04d
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f8a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4505f0
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x40f8e3
cmp dword [esi + 8], 0
je 0x40f8e3
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push edi
call dword [eax + 4]
mov edi, eax
test edi, edi
je 0x40fa3b
cmp word [edi], 0
je 0x40fa3b
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x422]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 0x424]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x458d80
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fa3b
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
sub esp, 0xc
lea eax, [ebp - 0x424]
push eax
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
call fcn.0040f850
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40fa15
mov ecx, dword [eax]
push 0x458df8
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x40fa09
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
js 0x40f9f8
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [esi + 4]
mov dword [ebp - 0x10], 0
call fcn.0040fa50
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [esi + 8]
mov dword [ebp - 0x14], 0
call fcn.0040fa50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40f9ee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov esi, 1
jmp 0x40fa17
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40fa09
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x10]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x40fa28
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x410380
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450308
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [section..data]
push ebx
push esi
mov ecx, section..data
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov ebx, 1
mov dword [ebp - 4], 0
mov eax, dword [esi - 8]
mov ecx, ebx
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4103dd
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00401e30
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push str.AppStoreMarketVer
push str.Software_bfAppstore
push SysReAllocStringLen
mov dword [ebp - 0x14], 0x206
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push dword [esi - 8]
push esi
call fcn.0043cf47
add esp, 8
test eax, eax
js 0x41050a
cmp eax, dword [esi - 8]
jg 0x41050a
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [esi - 0xc], ecx
jne 0x410479
mov eax, dword [0x46a018]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4104d7
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
cmp eax, ecx
je 0x410479
lea ebx, [ebx]
mov edx, dword [eax]
cmp dword [edx], 7
je 0x410460
add eax, 4
cmp eax, ecx
jne 0x410450
jmp 0x410479
test edx, edx
je 0x410479
cmp byte [edx + 4], 0
je 0x410479
lea eax, [edx + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401270
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
je 0x4104d7
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
sub ebx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x20
or eax, ebx
jge 0x41049b
push 0x20
mov ecx, edi
call fcn.00401e30
mov edx, dword [edi]
push ecx
mov ecx, esi
call fcn.0040fd00
mov eax, dword [edi]
add esp, 4
test eax, eax
jne 0x4104b2
xor ecx, ecx
jmp 0x4104c4
push dword [eax - 8]
push eax
call fcn.0043cf47
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x41050a
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x41050a
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
xor edx, edx
mov word [eax + ecx*2], dx
pop edi
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4104f8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00401fd0
int3
Function at 0x4108b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push eax
mov esi, ecx
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 8]
push eax
push str.LastReportDate
push str.Software_bfAppstore
push SysReAllocStringLen
mov dword [ebp - 4], 0x3e
mov dword [ebp - 8], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 8
jne 0x41095a
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
xorps xmm0, xmm0
push str._4d_2d_2d
push eax
mov dword [ebp - 0x14], 0
movq qword [ebp - 0x10], xmm0
call fcn.0043c633
add esp, 0x14
cmp eax, 3
jne 0x41095a
push dword [ebp - 0xc]
lea eax, [esi + 4]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push str._d__d__d
push eax
call fcn.0040a530
add esp, 0x14
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x94], ax
lea eax, [ebp - 0x92]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 4]
push eax
push str.InstallType
push str.Software_bfAppstore
push SysReAllocStringLen
mov dword [ebp - 8], 0x3e
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x94], 0
je 0x4109c2
lea eax, [ebp - 0x94]
push eax
call fcn.0043cd6b
add esp, 4
mov dword [esi], eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410db0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4506e0
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push edi
mov edi, ecx
cmp dword [edi + 0x2e0], 0xffffffff
je 0x410f1c
mov eax, dword [0x46a018]
push esi
mov esi, dword [eax + 0x10]
test esi, esi
je 0x410f1b
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0040d870
push str.BFAppPlugin.exe
push eax
lea eax, [ebp - 0x10]
push str._s_s
push eax
call fcn.0040a530
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x256]
push eax
call fcn.0043da70
add esp, 0x1c
xor eax, eax
jmp 0x410e50
movzx ecx, word [eax + str._bflnk]
mov word [ebp + eax - 0x258], cx
lea eax, [eax + 2]
test cx, cx
jne 0x410e50
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
mov ecx, dword [edi + 0x2e0]
lea edx, [ebp - 0x14]
call fcn.0040f620
mov esi, dword [ebp - 0x14]
push esi
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x38
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0043da70
mov edi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [0x467194], 6
lea eax, [ebp - 0x258]
mov dword [ebp - 0x3c], eax
mov ecx, str.open
mov eax, str.runas
cmovb eax, ecx
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x34], 5
mov dword [ebp - 0x40], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x410ef3
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410f1b
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x411860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x450818
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [section..data]
push edi
mov edi, ecx
mov ecx, section..data
mov dword [ebp - 0x10], edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [edi + 4], eax
mov eax, dword [edi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x4118c0
push 0x104
mov ecx, edi
call fcn.00401e30
push esi
mov esi, dword [edi]
push 1
push 0x17
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
mov eax, dword [edi]
pop esi
test eax, eax
jne 0x4118e2
xor ecx, ecx
jmp 0x4118f4
push dword [eax - 8]
push eax
call fcn.0043cf47
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x411919
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x411919
mov dword [eax - 0xc], ecx
mov eax, dword [edi]
xor edx, edx
mov word [eax + ecx*2], dx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00401fd0
int3