joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x80], 0
je 0x40f600
cmp dword [esi + 0x84], 0
jbe 0x40f600
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
jb 0x40f5bb
mov eax, dword [eax]
push 0x45573c
push eax
lea eax, [ebp - 4]
push eax
call fcn.00433e31
add esp, 0xc
test eax, eax
jne 0x40f600
mov eax, dword [ebp - 4]
test eax, eax
je 0x40f600
push eax
push 1
push dword [esi + 0x84]
push dword [esi + 0x80]
call fcn.00434097
push dword [ebp - 4]
call fcn.00434181
add esp, 0x14
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40fd40
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x451c88
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsBFVKanDianYing.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x214], 0x206
mov dword [ebp - 0x210], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x40fddb
push 0x451c88
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x40fddb
mov dword [esi + 0x28], 1
jmp 0x40fe5f
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x451c88
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsBFVCenter.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], 0x206
mov dword [ebp - 0x214], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40fe58
push 0x451c88
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x40fe58
mov dword [esi + 0x28], 1
mov dword [esi + 0x274], 1
jmp 0x40fe5f
mov dword [esi + 0x28], 0
cmp dword [esi + 0x28], 0
je 0x40feac
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00432fb2
add esp, 8
xor ecx, ecx
lea edx, [ebp - 0x20c]
mov word [eax], cx
lea ecx, [esi + 0x278]
lea edi, [edx + 2]
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40fe90
sub edx, edi
sar edx, 1
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.00402300
mov ecx, esi
call fcn.004176a0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x414df0
push 0
push 0
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
mov dword [esi + 4], 0
call fcn.0043295d
mov ecx, dword [ebp - 4]
add esp, 0x18
mov dword [esi + 4], eax
pop edi
xor ecx, ebp
pop esi
call fcn.00431c68
mov esp, ebp
pop ebp
ret

Function at 0x40ff00
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push dword [esi + 8]
mov dword [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x4e20
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40ff33
push 1
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
test eax, eax
je 0x40ff48
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40ff5d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
pop esi
ret
Function at 0x410fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a036
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 ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x410ff8
call fcn.00414210
push 1
push 0x23
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.BaofengBFVKanDianYing_
lea ecx, [ebp - 0x220]
call fcn.00402410
push eax
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.00419970
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x41105d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x411074
mov ecx, eax
call fcn.00414210
mov eax, dword [ebp - 0x21c]
lea edx, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x411092
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 0x411670
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a720
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x4611f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ecx + 0x24]
push str.BFVDesktop.exe
lea ecx, [ebp - 0x10]
call fcn.0040bce0
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 2
push 0
lea eax, [ebp - 0x14]
push str.__Run_d__From_d
push eax
mov byte [ebp - 4], 1
call fcn.0040be40
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x411748
push 0x38
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.00434de0
mov eax, dword [ebp - 0x10]
add esp, 0xc
cmp dword [0x46237c], 6
mov dword [ebp - 0x40], 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], 1
mov dword [ebp - 0x3c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x411748
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x411768
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x411789
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 esp, ebp
pop ebp
ret
Function at 0x411f00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a150
mov eax, dword fs:[0]
push eax
sub esp, 8
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
cmp word [ebx + 0x50], 0
lea eax, [ebx + 0x50]
jne 0x411f4d
mov eax, 0x80004005
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 eax
lea ecx, [ebp - 0x14]
call fcn.00402410
push 0x10
push str.bfDesktopAPI.dll
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.0040ca60
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, 0x80004005
test eax, eax
je 0x412005
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 1
cmp dword [ebx + 0x260], 0
jne 0x411fa8
push dword [ebp - 0x14]
lea ecx, [ebx + 0x260]
call fcn.0040a8e0
test eax, eax
je 0x411fbb
push ecx
lea eax, [ebp - 0x10]
push eax
sub esp, 8
lea ecx, [ebx + 0x260]
call fcn.0040a9e0
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x411fe5
mov eax, dword [ecx]
push 0x454da8
push ecx
call dword [eax + 0xc]
test eax, eax
je 0x411fe2
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ecx], edx
xor edi, edi
jmp 0x411ff7
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, ebx
mov dword [ebp - 0x10], 0
call fcn.00412470
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test eax, eax
je 0x412005
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
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 0x412029
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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
Function at 0x4120a0
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x860
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push eax
mov esi, ecx
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x61c]
push 1
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.regsvr32.exe
lea eax, [ebp - 0x61c]
push eax
call edi
call fcn.0041d280
mov ebx, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00434de0
add esi, 0x50
lea edx, [ebp - 0x20c]
add esp, 0xc
mov ecx, esi
sub edx, esi
nop
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x412130
lea eax, [ebp - 0x20c]
test ebx, ebx
je 0x412150
push str.BFShellIcon64.dll
jmp 0x412155
push str.BFShellIcon.dll
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x822]
push eax
call fcn.00434de0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x824]
push str._s__u___s_
push eax
call fcn.00434217
push 0x38
lea eax, [ebp - 0x85c]
push 0
push eax
call fcn.00434de0
lea eax, [ebp - 0x61c]
mov dword [ebp - 0x850], eax
add esp, 0x24
cmp dword [0x46237c], 6
lea eax, [ebp - 0x824]
mov dword [ebp - 0x84c], eax
mov ecx, str.open
mov eax, str.runas
cmovb eax, ecx
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x860]
push eax
mov dword [ebp - 0x85c], 0x40
mov dword [ebp - 0x860], 0x3c
mov dword [ebp - 0x844], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x412228
push 0xffffffffffffffff
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x828]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41222e
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00434de0
lea ecx, [ebp - 0x414]
add esp, 0xc
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x412254
lea eax, [ebp - 0x414]
test ebx, ebx
je 0x412274
push str.bfDesktop64.dll
jmp 0x412279
push str.bfDesktop.dll
push eax
call edi
push 0
push str.BFEngineLoader
call dword [sym.imp.USER32.dll_FindWindowW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4122a1
sub esp, 0xc
lea ecx, [ebp - 0x414]
call fcn.0040f680
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret
Function at 0x4122b0
Capabilities:
Delete registry key
Delete registry value
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str.Software_bfAppStore
push SysReAllocStringLen
call esi
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_bfAppStore
push reloc.OLEAUT32.dll_SysReAllocString
call esi
push str.bfpkgFile
push SysReAllocStringLen
call esi
push str..bfpkg
push SysReAllocStringLen
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push str.CurCount
push str.Software_bfAppStoreCrashInfo
push SysReAllocStringLen
call esi
push str.Data
push str.Software_bfAppStoreCrashInfo
push SysReAllocStringLen
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x210]
push 1
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x4566e8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
lea ecx, [ebp - 0x210]
call fcn.0041c960
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00431c68
mov esp, ebp
pop ebp
ret
Function at 0x4124b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push str.DisplayVersion
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallBFVKanDianYing
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x41c], 0x206
mov dword [ebp - 0x420], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41267b
push 0x451c88
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x41267b
push ebx
push esi
push edi
push str.2.00.1025.0000
lea ecx, [ebp - 0x41c]
call fcn.00402410
lea eax, [ebp - 0x415]
push eax
push dword [ebp - 0x41c]
lea ecx, [ebp - 0x448]
call fcn.0041c6c0
lea eax, [ebp - 0x415]
push eax
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x434]
call fcn.0041c6c0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00434de0
mov edi, dword [ebp - 0x424]
mov esi, dword [ebp - 0x428]
mov ebx, dword [ebp - 0x42c]
lea eax, [ebp - 0x414]
add esp, 0xc
test eax, eax
mov eax, dword [ebp - 0x430]
je 0x4125ed
push edi
push esi
push ebx
push eax
push str._d._d._d._d
push 0x104
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.004341f8
mov eax, dword [ebp - 0x430]
add esp, 0x20
mov ecx, dword [ebp - 0x444]
cmp eax, ecx
jbe 0x4125fe
mov esi, 1
jmp 0x412648
jae 0x412605
or esi, 0xffffffff
jmp 0x412648
mov eax, dword [ebp - 0x440]
cmp ebx, eax
jbe 0x412616
mov esi, 1
jmp 0x412648
jae 0x41261d
or esi, 0xffffffff
jmp 0x412648
mov eax, dword [ebp - 0x43c]
cmp esi, eax
jbe 0x41262e
mov esi, 1
jmp 0x412648
jae 0x412635
or esi, 0xffffffff
jmp 0x412648
mov eax, dword [ebp - 0x438]
cmp edi, eax
jbe 0x412646
mov esi, 1
jmp 0x412648
sbb esi, esi
mov edi, dword [ebp - 0x41c]
add edi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x412668
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00431c68
mov esp, ebp
pop ebp
ret
Function at 0x413900
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x41398f
cmp word [esi], 0
je 0x41398f
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x41c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x41c]
push eax
mov ecx, edi
call fcn.004139b0
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00431c68
mov esp, ebp
pop ebp
ret 4

Function at 0x4139b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa88
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp word [esi], 0
mov dword [ebp - 0xa80], ecx
je 0x413b4a
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x82a]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x82c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push 0x458090
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x24c
lea eax, [ebp - 0xa78]
push 0
push eax
mov dword [ebp - 0xa7c], 0
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0xa7c]
push eax
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x413b4a
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea esp, [esp]
cmp word [ebp - 0xa50], 0x2e
je 0x413b26
xor eax, eax
test byte [ebp - 0xa7c], 0x10
push 0x206
push eax
je 0x413ad2
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0xa50]
push eax
push esi
lea eax, [ebp - 0x41c]
push str._s_s_
push eax
call ebx
mov ecx, dword [ebp - 0xa80]
add esp, 0x10
lea eax, [ebp - 0x41c]
push eax
call fcn.004139b0
jmp 0x413b26
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0xa50]
push eax
push esi
lea eax, [ebp - 0x214]
push str._s_s
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x413b26
push ecx
lea eax, [ebp - 0x214]
mov ecx, esp
push eax
call fcn.00402410
call fcn.00413e10
lea eax, [ebp - 0xa7c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x413a70
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00431c68
mov esp, ebp
pop ebp
ret 4
Function at 0x413e10
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a548
mov eax, dword fs:[0]
push eax
sub esp, 0xc
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
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
or ebx, 0xffffffff
test eax, eax
je 0x413e69
push str._del
push eax
call fcn.004336c2
add esp, 8
test eax, eax
je 0x413e69
lea edi, [ebx + 2]
jmp 0x413f0e
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401e50
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
lea eax, [edi - 0x10]
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], eax
call fcn.00401e50
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
xor ebx, ebx
jmp 0x413ea0
push 4
push str._del
lea ecx, [ebp - 0x10]
call fcn.0040ca60
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413ec9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x413f45
inc ebx
cmp ebx, 0xa
jl 0x413ea0
xor edi, edi
add esi, 0xfffffff0
or ebx, 0xffffffff
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413ef1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x413f0e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x413f2f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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
mov edi, 1
jmp 0x413ed1
Function at 0x414210
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x4611f4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x414277
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call fcn.00434de0
add esp, 0xc
lea eax, [ebp - 0x44]
push 0x20
push 0x455490
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
lea edx, [ebp - 0x44]
mov ecx, esi
call fcn.0040d320
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00431c68
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00431c68
mov esp, ebp
pop ebp
ret

Function at 0x414290
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a116
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
push 1
push 0x23
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.BaofengBFVKanDianYingProfiles
lea ecx, [ebp - 0x220]
call fcn.00402410
push eax
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.00419970
add esp, 4
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x414325
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x21c]
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x414340
mov ecx, dword [ebp - 0x21c]
call fcn.0041c800
push dword [ebp - 0x21c]
mov ecx, edi
call fcn.00414540
push dword [ebp - 0x21c]
mov ecx, edi
call fcn.00414410
mov eax, dword [edi + 0x268]
lea esi, [edi + 0x268]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x40
or eax, ecx
jge 0x414381
push 0x40
mov ecx, esi
call fcn.00402270
push ecx
push dword [esi]
mov ecx, edi
call fcn.00414a10
mov eax, dword [esi]
test eax, eax
jne 0x414395
xor ecx, ecx
jmp 0x4143a7
push dword [eax - 8]
push eax
call fcn.004336a3
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4143f9
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4143f9
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x21c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4143dd
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
push 0x80070057
call fcn.004022e0
int3