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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x94], 0
je 0x46832a
cmp dword [esi + 0x98], 0
jbe 0x46832a
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x4682e5
mov eax, dword [eax]
push 0x51a344
push eax
lea eax, [ebp - 4]
push eax
call fcn.004e16ee
add esp, 0xc
test eax, eax
jne 0x46832a
mov eax, dword [ebp - 4]
test eax, eax
je 0x46832a
mov ecx, dword [esi + 0x98]
mov edx, dword [esi + 0x94]
push eax
push 1
push ecx
push edx
call fcn.004e4558
mov eax, dword [ebp - 4]
push eax
call fcn.004e17a2
add esp, 0x14
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x468390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcc98
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [esi], vtable.CSkinApplication.0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov eax, 1
mov dword [esi + 0x10], eax
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 4], edi
mov dword [esi + 0x20], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.CB5_InstallApp.0
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov byte [ebp - 4], al
mov eax, dword [0x54bf18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf18
call edx
add eax, 0x10
mov dword [esi + 0x44], eax
lea eax, [esi + 0x50]
push 0x1388
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push eax
call ebx
mov byte [ebp - 4], 3
mov eax, vtable.CHighResolutionTimer.0
mov dword [esi + 0x68], eax
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov byte [ebp - 4], 4
mov dword [esi + 0x7c], eax
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], edi
lea eax, [esi + 0x94]
push 0x1388
push eax
mov byte [ebp - 4], 5
call ebx
mov byte [ebp - 4], 6
mov eax, dword [0x54bf18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf18
lea ebx, [esi + 0xb0]
call edx
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 7
mov dword [esi + 0xb4], vtable.CSHManage.0
mov byte [ebp - 4], 8
push 0x51966c
push ebx
xor ebx, ebx
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0xac], edi
mov dword [esi + 0x40], edi
call fcn.00459320
push 0x51966c
lea eax, [esi + 0x44]
push eax
call fcn.00459320
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xb8], 0x1010101
mov dword [ebp - 4], 0xffffffff
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 4
Function at 0x468520
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcc98
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CB5_InstallApp.0
mov dword [ebp - 4], 8
mov eax, dword [esi + 0xac]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp eax, ebx
je 0x468579
push eax
call edi
mov dword [esi + 0x48], ebx
mov eax, dword [esi + 0xac]
cmp eax, ebx
je 0x46858c
push eax
call edi
mov dword [esi + 0xac], ebx
mov ecx, dword [esi + 0xbc]
cmp ecx, ebx
je 0x4685a4
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0xbc], ebx
mov byte [ebp - 4], 7
mov dword [esi + 0xb4], vtable.CSHManage.0
mov byte [ebp - 4], 6
mov eax, dword [esi + 0xb0]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4685d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esi + 0x94]
mov byte [ebp - 4], 5
mov edi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ecx
call edi
mov byte [ebp - 4], 4
mov eax, dword [esi + 0x84]
cmp eax, ebx
mov ebx, dword [sym.imp.WINMM.dll_timeKillEvent]
mov dword [esi + 0x7c], vtable.CHighResolutionTimer.0
je 0x468613
push eax
call ebx
mov dword [esi + 0x84], 0
mov byte [ebp - 4], 3
mov eax, dword [esi + 0x70]
mov dword [esi + 0x68], vtable.CHighResolutionTimer.0
test eax, eax
je 0x46862f
push eax
call ebx
mov dword [esi + 0x70], 0
lea edx, [esi + 0x50]
push edx
mov byte [ebp - 4], 2
call edi
mov byte [ebp - 4], 1
mov eax, dword [esi + 0x44]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46865c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov edi, dword [esi + 0x28]
test edi, edi
je 0x468689
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x46867d
mov ebx, eax
mov eax, edi
call fcn.00469550
add edi, 0x2c
dec ebx
jne 0x468670
mov ecx, dword [esi + 0x28]
push ecx
call fcn.004e0f21
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [esi], vtable.CSkinApplication.0
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 0x4686c0
Capabilities:
Check internet connectivity via wininet
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509070
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x54c2c0]
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
lea eax, [ebp - 0x424]
push eax
mov esi, ecx
mov dword [ebp - 0x424], 0
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x468736
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46873d
push 0
lea ecx, [ebp - 0x424]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x46873d
mov al, byte [ebp - 0x424]
test al, 0x20
jne 0x46873d
test al, 7
je 0x46873d
mov dword [esi + 0x24], 1
call fcn.00469d20
mov ecx, eax
call fcn.00472850
test eax, eax
jne 0x468754
xor eax, eax
jmp 0x468903
call fcn.00469d20
push 0x2cc
push 0x518fb8
lea edi, [eax + 0x1b4]
call fcn.00458e60
add esp, 8
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push esi
push 0x468ac0
push 0
push 0
mov dword [esi + 0x48], eax
call fcn.004e1cd8
mov edx, dword [esi + 4]
mov dword [esi + 0xac], eax
mov edi, dword [edx + 0x38]
add esp, 0x18
lea eax, [edi + 0x1c]
push str.Skin.xml
push eax
mov ebx, 8
call fcn.00459320
lea eax, [edi + 0x20]
push 0x51966c
push eax
xor ebx, ebx
call fcn.00459320
lea eax, [edi + 0x24]
push 0x51966c
push eax
call fcn.00459320
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.004e5590
mov eax, dword [0x554ce0]
add esp, 0xc
push 0x104
lea edx, [ebp - 0x420]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...Default.bfskin
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.004e5590
add esp, 0xc
lea ecx, [ebp - 0x424]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x428]
push eax
push str.BFInstallSkinFolder
push str.SoftwareBaofengStormPlayerUserConfig
push SysReAllocString
mov dword [ebp - 0x424], 0x102
mov dword [ebp - 0x428], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp word [ebp - 0x218], bx
je 0x4688a2
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4688a2
lea edi, [ebp - 0x218]
mov eax, esi
call fcn.00490a80
jmp 0x4688cf
mov eax, dword [esi + 4]
mov edx, dword [0x554ce0]
mov dword [eax + 0x5c], 2
mov dword [eax + 0x68], edx
mov dword [eax + 0x6c], 0x8c
add eax, 0x70
push str.Theme
push eax
mov ebx, 5
call fcn.00459320
test byte [0x5550c4], 1
jne 0x4688df
call fcn.00469cb0
jmp 0x4688e4
mov eax, 0x554e8c
push eax
call fcn.0048a2d0
test al, al
je 0x46874d
call fcn.00469d20
mov ebx, eax
call fcn.00473730
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.004e0a00
mov esp, ebp
pop ebp
ret
Function at 0x468b50
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50753b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x54c2c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004e5590
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00459410
push 0x19
push str.BaoFengDefaultBdSetup.xml
lea ebx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.0045ae80
mov eax, dword [0x554ce0]
mov edi, dword [ebp - 0x21c]
push str.RESOURCE_DATA
push 0x8f
push eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x468c05
push edi
mov ecx, ebx
call fcn.004587a0
add esp, 4
lea edi, [esi + 0x44]
lea eax, [ebp - 0x21c]
call fcn.0045c590
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x468c54
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebp - 0x21c]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x220], esp
mov edi, esp
call fcn.0045c680
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.00468ca0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x468c7d
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 ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0a00
mov esp, ebp
pop ebp
ret
Function at 0x46c930
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x55555556
imul dword [ebp + 0x10]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*4]
sub ecx, eax
neg ecx
add ecx, ecx
lea edx, [ecx + ecx]
mov ecx, 0xc
sub ecx, edx
mov eax, 0x55555556
imul ecx
push ebx
mov eax, edx
push esi
shr eax, 0x1f
lea eax, [edx + eax + 1]
push edi
mov edi, dword [ebp + 0xc]
push eax
xor esi, esi
mov dword [ebp + 0xc], eax
call fcn.004e0918
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x46c98a
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push ebx
call fcn.004e5590
mov ecx, dword [ebp + 0x10]
add esp, 0xc
cmp ecx, 2
jle 0x46ca24
lea edx, [ecx - 3]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx*4]
sub eax, edx
neg eax
add ecx, eax
mov dword [ebp + 0x10], ecx
movzx ecx, byte [edi]
shr ecx, 2
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
movzx ecx, byte [edi]
movzx eax, byte [edi + 1]
and ecx, 3
add ecx, ecx
shr eax, 4
mov cl, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 1], cl
movzx eax, byte [edi + 1]
movzx ecx, byte [edi + 2]
shr ecx, 6
and eax, 0xf
movzx eax, byte [ecx + eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 2], al
movzx ecx, byte [edi + 2]
and ecx, 0x3f
movzx eax, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 3], al
add esi, 4
add edi, 3
dec edx
jne 0x46c9c2
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46ca9a
movzx edx, byte [edi]
shr edx, 2
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
cmp ecx, 1
jle 0x46ca7d
movzx ecx, byte [edi]
movzx edx, byte [edi + 1]
and ecx, 3
add ecx, ecx
shr edx, 4
mov al, byte [edx + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 1], al
movzx ecx, byte [edi + 1]
and ecx, 0xf
mov dl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 2], dl
mov byte [ebx + esi + 3], 0x3d
add esi, 4
pop edi
mov byte [ebx + esi], 0
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
movzx eax, byte [edi]
and eax, 3
shl eax, 4
mov cl, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi + 1], cl
mov word [ebx + esi + 2], 0x3d3d
add esi, 4
pop edi
mov byte [ebx + esi], 0
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x46df30
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5073fb
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x54c2c0]
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 ebx, ecx
cmp dword [ebx + 0x230], 0
mov dword [ebp - 0x220], ebx
je 0x46e112
lea eax, [ebp - 0x21c]
push eax
mov ecx, 0x51966c
call fcn.00459410
mov dword [ebp - 4], 0
mov esi, dword [0x554ce8]
call fcn.00469d20
cmp dword [eax + 0x14], 0
push 0x206
push 0
je 0x46e03d
lea edx, [ebp - 0x216]
xor ecx, ecx
push edx
mov word [ebp - 0x218], cx
call fcn.004e5590
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0x51966c
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x224], 0x102
mov dword [ebp - 0x220], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x46e0bc
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x218]
lea edi, [ebp - 0x21c]
call fcn.004593d0
mov edx, edi
push edx
call fcn.0046e660
jmp 0x46e0bc
lea ecx, [ebp - 0x216]
xor eax, eax
push ecx
mov word [ebp - 0x218], ax
call fcn.004e5590
add esp, 0xc
push 1
push 0x26
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46e080
sub eax, edx
lea ecx, [ebp - 0x218]
sar eax, 1
push ecx
lea edx, [ebp - 0x21c]
push edx
mov ebx, eax
call fcn.00459320
push 0x14
push 0x51aa0c
lea ebx, [ebp - 0x21c]
call fcn.0045ae80
mov ebx, dword [ebp - 0x220]
mov eax, dword [ebx + 0x230]
mov ecx, dword [ebp - 0x21c]
mov edx, dword [eax + 0x78]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [0x554ce8]
call fcn.00469d20
mov edx, dword [ebp - 0x21c]
call fcn.00473650
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 0x46e112
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
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0a00
mov esp, ebp
pop ebp
ret
Function at 0x46eb00
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea esi, [eax + 1]
test esi, esi
jns 0x46eb1b
push 0x80070057
call fcn.00459ec0
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x46eb37
mov eax, esi
mov ecx, edi
call fcn.004592c0
mov eax, dword [edi]
push esi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46eb5e
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x46eb62
push ecx
push eax
call fcn.004e30a4
add esp, 8
test eax, eax
js 0x46eb11
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x46eb11
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, esi
pop esi
ret

Function at 0x46ee10
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5073d0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x1a0]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46ef2c
lea ecx, [ebp - 0x10]
xor edi, edi
push ecx
mov dword [ebp - 0x10], edi
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x46ee95
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x46ef2c
push edi
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x46ef2c
mov al, byte [ebp - 0x10]
test al, 0x20
jne 0x46ef2c
test al, 7
je 0x46ef2c
cmp byte [esi + 0x230], 0
jne 0x46ef2c
mov byte [esi + 0x230], 1
mov eax, dword [0x54bf18]
mov edx, dword [eax + 0xc]
mov ecx, 0x54bf18
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.5.27.0731.1111
mov dword [ebp - 4], edi
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type3uidver_sstartmi_overendrls2envbitmovie
lea edi, [ebp - 0x14]
call fcn.00458e60
mov edi, dword [ebp - 0x14]
add esp, 8
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x18], esp
mov esi, esp
call fcn.0045c680
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov esi, dword [0x554ce8]
call fcn.00469d20
mov esi, eax
mov byte [ebp - 4], 0
call fcn.004731a0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46ef2c
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x471420
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x507186
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x54c2c0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov eax, dword [0x554ce8]
cmp dword [eax + 0x24], 0
je 0x4714b0
push 0x519610
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x554cd0], eax
test eax, eax
je 0x4715bd
push 0x51963c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4715bd
push 5
push 0
push 0
push str.http:__www.baofeng.com_permit.html
push 0x518fc4
push 0
call eax
jmp 0x4715bd
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x26]
push edx
mov word [esp + 0x28], cx
call fcn.004e5590
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call fcn.00459410
push 0xb
push str.License.txt
lea ebx, [esp + 0x1c]
mov dword [esp + 0x240], 6
call fcn.0045ae80
mov eax, dword [0x554ce0]
mov esi, dword [esp + 0x14]
push str.RESOURCE_DATA
push 0x88
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x471592
push esi
mov ecx, edi
call fcn.004587a0
add esp, 4
test al, al
je 0x471592
lea edx, [esp + 0x18]
push edx
mov ecx, str.notepad.exe
call fcn.00459410
mov byte [esp + 0x238], 7
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ebx, [esp + 0x20]
call fcn.0045ae80
mov eax, dword [esp + 0x18]
push eax
push 0
call fcn.00458730
mov byte [esp + 0x240], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471592
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x238], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4715bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004e0a00
mov esp, ebp
pop ebp
ret
Function at 0x471ea0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [eax - 0xc], ebx
jne 0x471ed8
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x471ecf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 1
call esi
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x10]
mov edi, eax
push edx
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x471f15
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
shrd edx, eax, 0x14
shr eax, 0x14
mov dword [ecx], edx
mov ebx, 1
push edi
call esi
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x471f37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472850
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507088
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x54c2c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x51b57c
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x7c], eax
cmp eax, ebx
je 0x47289d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4728b9
push str.Storm2SetupMutex
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp eax, ebx
je 0x4728e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0xc8], bl
jne 0x4728d3
push ebx
push 0x51a63c
push 0x51b5a0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
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.004729e0
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push esi
push 0x473310
push ebx
push ebx
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], ebx
mov dword [esi + 0x70], ebx
call fcn.004e1cd8
mov dword [esi + 0x70], eax
mov eax, dword [0x54bf18]
mov edx, dword [eax + 0xc]
add esp, 0x18
mov ecx, 0x54bf18
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.5.27.0731.1111
push str.http:__action.logger.baofeng.com_ninstall_action.html
push str._s_type1uidver_sstart1mi_overendrlsenvbitmovie
lea edi, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00458e60
mov edi, dword [ebp - 0x10]
add esp, 8
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x14], esp
mov ebx, esp
call fcn.0045c680
add eax, 0x10
mov dword [ebx], eax
call fcn.004731a0
mov ebx, esi
call fcn.00472b10
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x4729aa
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x472996
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
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
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4729c3
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
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