joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d6a0
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edf58
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x521390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push str.Storm5SetupMutex
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, edi
je 0x46d6ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x46d706
push str.Storm2SetupMutex
push edi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp eax, edi
je 0x46d71a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0046de80
push edi
push edi
push edi
push edi
mov dword [esi + 0x60], 1
mov dword [esi + 0x64], edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push esi
push 0x46e0a0
push edi
push edi
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], edi
call fcn.004cd0d6
mov dword [esi + 0x18], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
add esp, 0x18
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
push eax
push ecx
push str.5.15.0730.1111
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type1uidver_sstart1mi_overendrlsenv_sbit_smovie
lea edi, [ebp - 0x10]
call fcn.00458b70
mov edi, dword [ebp - 0x10]
add esp, 0x10
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x14], esp
mov ebx, esp
call fcn.0045c3c0
add eax, 0x10
mov dword [ebx], eax
call fcn.0046e000
mov ecx, esi
call fcn.0046e350
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x46d7d2
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, esi
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 0x46d7f0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
push eax
mov dword [esi + 0x20], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x18]
push 0x4e20
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46d826
mov edx, dword [esi + 0x18]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x46d83e
push eax
call edi
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x18]
test eax, eax
je 0x46d84f
push eax
call edi
mov dword [esi + 0x18], 0
mov esi, dword [esi + 0x68]
pop edi
test esi, esi
je 0x46d85e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
ret
Function at 0x46de80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x521390]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x118]
mov ebx, 0x114
push eax
mov esi, ecx
mov dword [ebp - 0x118], ebx
call edi
cmp dword [ebp - 0x114], 6
jne 0x46ded0
cmp dword [ebp - 0x110], 1
jne 0x46ded0
push 0x4fa4f8
mov ebx, 1
jmp 0x46defa
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], ebx
call edi
cmp dword [ebp - 0x114], 5
jne 0x46df03
mov ebx, 1
cmp dword [ebp - 0x110], ebx
jne 0x46df03
push 0x4fa4fc
lea eax, [esi + 0x10]
push eax
call fcn.0045aa80
call fcn.0045c620
add esi, 0x14
mov ebx, 1
test al, al
je 0x46df1b
push 0x4fa4fc
jmp 0x46df20
push 0x4fa4f8
push esi
call fcn.0045aa80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cbf11
mov esp, ebp
pop ebp
ret
Function at 0x47a2a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed796
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x521390]
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
mov eax, dword [edi + 0xc]
sub eax, 0x10
mov dword [ebp - 0x224], edi
call fcn.0045c3c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x47a2fe
call fcn.0047a400
test eax, eax
jne 0x47a316
add edi, 0x6c
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1f41
call fcn.0047d470
push 1
push 0x23
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x218]
call fcn.0045ab70
push 0x15
push str.BaofengStormPlayer_
lea ebx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.0045a6d0
mov esi, dword [ebp - 0x220]
test esi, esi
je 0x47a364
call fcn.0047a400
test eax, eax
jne 0x47a382
mov edi, dword [ebp - 0x224]
add edi, 0x6c
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1f42
call fcn.0047d470
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47a3a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47a3d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.004cbf11
mov esp, ebp
pop ebp
ret

Function at 0x47a400
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e24d8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x521390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47a47d
mov dword [ebp - 0x54], vtable.CAccessRight.0
xor eax, eax
push 0x3e
push eax
lea ecx, [ebp - 0x4e]
mov dword [ebp - 4], 0
push ecx
mov word [ebp - 0x50], ax
call fcn.004cfd40
add esp, 0xc
push 0x20
push 0x4f8ee4
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.0045ac80
add esp, 0xc
mov eax, 1
jmp 0x47a47f
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cbf11
mov esp, ebp
pop ebp
ret
Function at 0x47d2a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec0b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x521390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [esi + 0xc]
push str.BFV_Install.exe
push eax
push 0x4f8f38
lea edi, [ebp - 0x14]
call fcn.00458b70
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47d32a
push ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0x18], esp
mov edi, esp
call fcn.0045c3c0
add eax, 0x10
mov dword [edi], eax
call fcn.0045bb10
add esp, 4
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d34d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.004cbf11
mov esp, ebp
pop ebp
ret
Function at 0x487f20
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4eeafb
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x521390]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
jne 0x487f61
xor eax, eax
jmp 0x48801e
push 0x4f8f64
push esi
push 0x4f8f38
lea eax, [ebp - 0x428]
push 0x104
push eax
mov edi, 1
call fcn.004ce646
add esp, 0x14
lea ecx, [ebp - 0x678]
push ecx
lea edx, [ebp - 0x428]
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x680], eax
cmp eax, 0xffffffff
je 0x487f5a
cmp word [ebp - 0x64c], 0x2e
je 0x487ff7
test byte [ebp - 0x678], 0x10
je 0x48803c
lea eax, [ebp - 0x64c]
push eax
push esi
push str._s_s_
lea ecx, [ebp - 0x220]
push 0x104
push ecx
call fcn.004ce646
add esp, 0x14
push 1
lea eax, [ebp - 0x220]
xor edx, edx
push eax
mov ecx, ebx
mov word [ebp - 0x1a], dx
call fcn.00487f20
mov edi, eax
mov edx, dword [ebp - 0x680]
lea ecx, [ebp - 0x678]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x487fab
mov eax, dword [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004cbf11
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp + 0xc], 0
je 0x487ff7
lea ecx, [ebp - 0x67c]
push ecx
lea ecx, [ebp - 0x64c]
call fcn.0045ab70
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x67c]
push str.ASBarBroker.exe
push edx
call fcn.004cf013
add esp, 8
test eax, eax
jne 0x48807c
push eax
push esi
call fcn.0045bf10
add esp, 8
mov edi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x67c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x487ff7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x487ff7
Function at 0x48cab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed796
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x521390]
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
mov eax, dword [edi + 0x23c]
sub eax, 0x10
mov dword [ebp - 0x224], edi
call fcn.0045c3c0
lea esi, [eax + 0x10]
mov dword [ebp - 0x228], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x48cb11
call fcn.0047a400
test eax, eax
jne 0x48cb2c
add edi, 0x274
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1f41
call fcn.0047d470
push 1
push 0x23
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x218]
call fcn.0045ab70
push 0x15
push str.BaofengStormPlayer_
lea ebx, [ebp - 0x220]
mov byte [ebp - 4], 1
call fcn.0045a6d0
mov esi, dword [ebp - 0x220]
test esi, esi
je 0x48cb7a
call fcn.0047a400
test eax, eax
jne 0x48cb9b
mov edi, dword [ebp - 0x224]
add edi, 0x274
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x1f42
call fcn.0047d470
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48cbc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48cbea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
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.004cbf11
mov esp, ebp
pop ebp
ret
Function at 0x48d770
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed680
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x521390]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x23c]
sub eax, 0x10
call fcn.0045c3c0
add eax, 0x10
mov dword [ebp - 0x10], eax
push 0xa
push str.Archive.7z
lea ebx, [ebp - 0x10]
mov dword [ebp - 4], 1
call fcn.0045a6d0
mov ebx, dword [ebp - 0x10]
push ecx
lea edi, [ebx - 0x10]
mov esi, esp
mov eax, edi
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x18], esi
call fcn.0045c3c0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
call fcn.0045bb10
mov eax, dword [0x52849c]
add esp, 4
push str.RESOURCE_DATA
push 0x8a
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x48d817
push ebx
mov ecx, esi
call fcn.004587d0
add esp, 4
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [ebp + 8]
add esi, 0x234
push esi
push ebx
call fcn.0045a460
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x230]
add esp, 8
test ecx, ecx
je 0x48d855
mov eax, dword [esi]
add eax, 0xa
je 0x48d855
test eax, eax
jle 0x48d855
mov dword [ecx + 0x78], 0
mov dword [ecx + 0x7c], eax
mov dword [ebp - 4], 0xffffffff
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x48d875
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov eax, 1
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 0x48d940
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec0b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x521390]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x23c]
push str.BFV_Install.exe
push eax
push 0x4f8f38
lea edi, [ebp - 0x14]
call fcn.00458b70
mov esi, dword [ebp - 0x14]
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48d9cd
push ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0x18], esp
mov edi, esp
call fcn.0045c3c0
add eax, 0x10
mov dword [edi], eax
call fcn.0045bb10
add esp, 4
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x48d9f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.004cbf11
mov esp, ebp
pop ebp
ret
Function at 0x491ed0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ed4d0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x521390]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
xor esi, esi
push eax
mov ecx, 0x4f5b64
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.0045ab70
xor eax, eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x18], eax
jmp 0x491f25
mov eax, dword [esp + 0x18]
cmp eax, 0xb
ja case.default.0x491f2a
jmp dword [eax*4 + 0x4920e4]
mov edx, 0x4fab7c
jmp 0x491f83
mov edx, 0x4fab84
jmp 0x491f83
mov edx, 0x4fab8c
jmp 0x491f83
mov edx, 0x4fab94
jmp 0x491f83
mov edx, 0x4fab9c
jmp 0x491f83
mov edx, 0x4faba4
jmp 0x491f83
mov edx, 0x4fabac
jmp 0x491f83
mov edx, 0x4fabb4
jmp 0x491f83
mov edx, 0x4fabbc
jmp 0x491f83
mov edx, 0x4fabc4
jmp 0x491f83
mov edx, 0x4fabcc
jmp 0x491f83
mov edx, 0x4fabd4
lea edi, [esp + 0x14]
call fcn.0045ab30
mov esi, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x24]
push ecx
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x34], esp
mov ebx, esp
call eax
cmp dword [esi - 4], 0
lea ecx, [esi - 4]
jl 0x491fc4
cmp eax, dword [esi - 0x10]
jne 0x491fc4
lea edi, [esi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x491ffc
mov ecx, dword [esi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x4920b4
mov eax, dword [esi - 0xc]
mov dword [edi + 4], eax
mov eax, dword [esi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004ce305
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
call fcn.00492590
test eax, eax
je 0x49205c
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x1c]
jle 0x49205c
mov dword [esp + 0x1c], eax
mov eax, 1
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
call fcn.0047d3d0
mov edi, dword [ebp + 8]
mov byte [esp + 0x38], 1
call fcn.0045c2b0
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49205c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, 0xc
jl 0x491f21
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
cmp dword [esp + 0x1c], 0x64
jge 0x4920b9
test edx, edx
jg 0x49209d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004cac50
test edx, edx
jg 0x4920c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x492120
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4eb6c0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x521390]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov esi, dword [edi + 0x1a0]
mov ecx, section..data
mov dword [esp + 0x1c], vtable.CDirDlg.0
call edx
add eax, 0x10
mov dword [esp + 0x40], eax
lea eax, [edi + 0x23c]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [eax]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0x4fff94
mov dword [esp + 0x30], 0x50
mov dword [esp + 0x34], 0x494880
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x50], ebx
call fcn.00494780
cmp eax, 1
jne 0x49229e
lea esi, [esp + 0x14]
lea eax, [esp + 0x1c]
call fcn.00494850
mov byte [esp + 0x50], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
cmp eax, 3
jle 0x4921f2
push 0x14
push 0x4fb048
mov ebx, esi
call fcn.0045a6d0
xor ebx, ebx
jmp 0x492202
jne 0x492202
mov edx, str.BaofengStormPlayer
lea eax, [esp + 0x14]
call fcn.0045a690
mov edx, dword [esp + 0x14]
cmp dword [edx - 0xc], ebx
je 0x49227a
mov eax, dword [edi + 0x70]
mov edx, dword [eax + 0x3c]
push ebx
push 0x5260d4
push 0x525fd0
lea ecx, [edi + 0x70]
push ebx
push 0x2a6f499
call edx
push eax
call fcn.004e0ca6
add esp, 0x14
cmp eax, ebx
je 0x49227a
push ebx
push 0x5260f4
lea ecx, [eax + 0x70]
mov eax, dword [ecx]
mov edx, dword [eax + 0x3c]
push 0x525fd0
push ebx
push 0x30a3dd9
call edx
push eax
call fcn.004e0ca6
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x49227a
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x14]
call fcn.0045c2b0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x78]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov byte [esp + 0x50], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49229e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov dword [esp + 0x1c], vtable.CDirDlg.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4922ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4922f0
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed496
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x521390]
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, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, ecx
xor ebx, ebx
cmp byte [esi + 0x69], bl
je 0x492334
mov dword [edi + 0x40], 1
push eax
push edi
call fcn.004a0430
mov eax, dword [esi + 4]
mov dword [esi + 0x22c], edi
mov ecx, dword [eax + 0x70]
mov dword [esi + 0x184], ecx
mov edx, dword [eax + 0x80]
mov eax, dword [0x5284a0]
push 0x206
mov dword [esi + 0x188], edx
xor ecx, ecx
lea edx, [ebp - 0x216]
push ebx
mov word [ebp - 0x218], cx
push edx
cmp dword [eax + 0x28], ebx
je 0x49248b
call fcn.004cfd40
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0x4f5b64
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x21c], 0x102
mov dword [ebp - 0x220], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, ebx
jne 0x49250d
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.0045ab70
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x21c]
push 0x5c
push ecx
call fcn.004ce618
add esp, 8
cmp eax, ebx
jne 0x4923fa
or eax, 0xffffffff
jmp 0x492402
sub eax, dword [ebp - 0x21c]
sar eax, 1
inc eax
lea ecx, [ebp - 0x220]
lea edx, [ebp - 0x21c]
call fcn.0045ccb0
lea edi, [ebp - 0x21c]
mov byte [ebp - 4], 1
call fcn.0045c2b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x492448
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea edi, [esi + 0x23c]
lea eax, [ebp - 0x21c]
call fcn.0045c2b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49250d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49250d
call fcn.004cfd40
add esp, 0xc
push 1
push 0x26
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
lea edi, [esi + 0x23c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4924b4
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
push edi
mov ebx, eax
call fcn.0045aa80
lea esi, [ebp - 0x220]
call fcn.00492530
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4924ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x14
push 0x4fab20
mov ebx, edi
call fcn.0045a6d0
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.004cbf11
mov esp, ebp
pop ebp
ret 8