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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi + 0x94], 0
je 0x4691da
cmp dword [esi + 0x98], 0
jbe 0x4691da
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x469195
mov eax, dword [eax]
push 0x51e5dc
push eax
lea eax, [ebp - 4]
push eax
call fcn.004e5a4e
add esp, 0xc
test eax, eax
jne 0x4691da
mov eax, dword [ebp - 4]
test eax, eax
je 0x4691da
mov ecx, dword [esi + 0x98]
mov edx, dword [esi + 0x94]
push eax
push 1
push ecx
push edx
call fcn.004e89c0
mov eax, dword [ebp - 4]
push eax
call fcn.004e5b02
add esp, 0x14
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x469240
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509c08
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5522c0]
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 [0x551f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x551f18
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 [0x551f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x551f18
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 0x51d754
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.00459510
push 0x51d754
lea eax, [esi + 0x44]
push eax
call fcn.00459510
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 0x4693d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x509c08
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5522c0]
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 0x469429
push eax
call edi
mov dword [esi + 0x48], ebx
mov eax, dword [esi + 0xac]
cmp eax, ebx
je 0x46943c
push eax
call edi
mov dword [esi + 0xac], ebx
mov ecx, dword [esi + 0xbc]
cmp ecx, ebx
je 0x469454
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 0x469488
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 0x4694c3
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 0x4694df
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 0x46950c
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 0x469539
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x46952d
mov ebx, eax
mov eax, edi
call fcn.0046a530
add edi, 0x2c
dec ebx
jne 0x469520
mov ecx, dword [esi + 0x28]
push ecx
call fcn.004e5281
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 0x469b30
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b77b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x5522c0]
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.004e9a40
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.00459600
push 0x19
push str.BaoFengDefaultBdSetup.xml
lea ebx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.0045b460
mov eax, dword [0x55ad80]
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 0x469be5
push edi
mov ecx, ebx
call fcn.004589b0
add esp, 4
lea edi, [esi + 0x44]
lea eax, [ebp - 0x21c]
call fcn.0045cf40
mov ecx, dword [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x469c34
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.0045d030
add eax, 0x10
push esi
mov dword [edi], eax
call fcn.00469c80
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 0x469c5d
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.004e4d50
mov esp, ebp
pop ebp
ret
Function at 0x46d9f0
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.004e4c68
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x46da4a
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push ebx
call fcn.004e9a40
mov ecx, dword [ebp + 0x10]
add esp, 0xc
cmp ecx, 2
jle 0x46dae4
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 0x46da82
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46db5a
movzx edx, byte [edi]
shr edx, 2
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + esi], al
cmp ecx, 1
jle 0x46db3d
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 0x46ec40
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea edi, [eax + 0x70]
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
push 0x7d0
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x46ecb9
mov edx, 0x51ec24
call fcn.004a5930
cmp byte [esi + 0x24], 0
mov byte [esi + 0x74], 1
je 0x46eca3
cmp byte [esi + 0x25], 0
je 0x46eca3
cmp byte [esi + 0x26], 0
je 0x46eca3
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x46eca3
mov eax, dword [esi + 4]
test eax, eax
je 0x46eca3
cmp byte [eax + 0xab], 0
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
sete al
movzx eax, al
push 0
push eax
push esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
push 0
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 0
mov ecx, esi
call edx
push ebx
mov ebx, dword [sym.imp.SensApi.dll_IsNetworkAlive]
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], 0
call ebx
test eax, eax
jne 0x46ecf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46ed26
push 0
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x46ed26
mov al, byte [ebp - 4]
test al, 0x20
jne 0x46ed26
test al, 7
je 0x46ed26
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
push 0x7d1
mov ecx, edi
call eax
mov esi, eax
test esi, esi
je 0x46ed26
mov edx, 0x51ec40
call fcn.004a5930
mov eax, esi
call fcn.004a58f0
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 1
mov ecx, esi
call eax
mov edx, dword [edi]
mov eax, dword [edx + 0x3c]
push 0x7d2
mov ecx, edi
call eax
mov esi, eax
test esi, esi
je 0x46ed56
mov edx, 0x51ec58
call fcn.004a5930
mov eax, esi
call fcn.004a58f0
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 1
mov ecx, esi
call eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call ebx
pop ebx
test eax, eax
jne 0x46ed8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x46edbd
push 0
lea edx, [ebp - 4]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x46edbd
mov al, byte [ebp - 4]
test al, 0x20
jne 0x46edbd
test al, 7
je 0x46edbd
mov eax, dword [edi]
mov edx, dword [eax + 0x3c]
push 0x7d3
mov ecx, edi
call edx
mov esi, eax
test esi, esi
je 0x46edbd
mov edx, 0x51ec6c
call fcn.004a5930
mov eax, esi
call fcn.004a58f0
mov eax, dword [esi]
mov edx, dword [eax + 0x24]
push 1
mov ecx, esi
call edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46f1c0
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b63b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5522c0]
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 - 0x428], ebx
je 0x46f3e7
lea eax, [ebp - 0x424]
push eax
mov ecx, 0x51d754
call fcn.00459600
mov dword [ebp - 4], 0
mov esi, dword [0x55ad8c]
call fcn.0046ad00
xor ecx, ecx
push 0x206
lea edx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], cx
push edx
cmp dword [eax + 0x14], ecx
je 0x46f324
call fcn.004e9a40
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x428]
push edx
push 0x51d754
push str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsStormPlayer.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x42c], 0x102
mov dword [ebp - 0x428], 1
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x46f2c7
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 - 0x424]
call fcn.004595c0
mov edx, edi
push edx
call fcn.0046f9b0
jmp 0x46f391
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call fcn.004e9a40
add esp, 0xc
push 1
push 0x26
lea edx, [ebp - 0x420]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x420]
lea edi, [ebp - 0x424]
call fcn.004595c0
mov edx, 0x51ed5c
mov eax, edi
call fcn.0045b420
jmp 0x46f391
call fcn.004e9a40
add esp, 0xc
push 1
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46f355
sub eax, edx
lea edx, [ebp - 0x218]
sar eax, 1
push edx
lea ecx, [ebp - 0x424]
push ecx
mov ebx, eax
call fcn.00459510
push 0x14
push 0x51ed5c
lea ebx, [ebp - 0x424]
call fcn.0045b460
mov ebx, dword [ebp - 0x428]
mov eax, dword [ebx + 0x230]
mov edx, dword [ebp - 0x424]
mov eax, dword [eax + 0x78]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [0x55ad8c]
call fcn.0046ad00
mov edx, dword [ebp - 0x424]
call fcn.00474e50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46f3e7
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.004e4d50
mov esp, ebp
pop ebp
ret
Function at 0x46fe50
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 0x46fe6b
push 0x80070057
call fcn.0045a4a0
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x46fe87
mov eax, esi
mov ecx, edi
call fcn.00459770
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 0x46feae
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x46feb2
push ecx
push eax
call fcn.004e7800
add esp, 8
test eax, eax
js 0x46fe61
mov ecx, dword [edi]
cmp eax, dword [ecx - 8]
jg 0x46fe61
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 0x470130
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b610
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5522c0]
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 0x47024c
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 0x4701b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x47024c
push edi
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x47024c
mov al, byte [ebp - 0x10]
test al, 0x20
jne 0x47024c
test al, 7
je 0x47024c
cmp byte [esi + 0x230], 0
jne 0x47024c
mov byte [esi + 0x230], 1
mov eax, dword [0x551f18]
mov edx, dword [eax + 0xc]
mov ecx, 0x551f18
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.5.34.0227.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.00459850
mov edi, dword [ebp - 0x14]
add esp, 8
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x18], esp
mov esi, esp
call fcn.0045d030
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 1
mov esi, dword [0x55ad8c]
call fcn.0046ad00
mov esi, eax
mov byte [ebp - 4], 0
call fcn.004749a0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47024c
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 0x472770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50b3c6
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5522c0]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov eax, dword [0x5522c0]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov eax, dword [0x55ad8c]
cmp dword [eax + 0x24], 0
je 0x472818
push 0x51d6f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x55ad70], eax
test eax, eax
je 0x4727fc
push 0x51d724
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4727fc
push 5
push 0
push 0
push str.http:__www.baofeng.com_permit.html
push 0x51d0ac
push 0
call eax
cmp eax, 0x20
jge 0x472925
push 1
call fcn.00458760
add esp, 4
test al, al
jne 0x472925
call fcn.00472950
jmp 0x472925
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x26]
push edx
mov word [esp + 0x28], cx
call fcn.004e9a40
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.00459600
push 0xb
push str.License.txt
lea ebx, [esp + 0x1c]
mov dword [esp + 0x240], 6
call fcn.0045b460
mov eax, dword [0x55ad80]
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 0x4728fa
push esi
mov ecx, edi
call fcn.004589b0
add esp, 4
test al, al
je 0x4728fa
lea edx, [esp + 0x18]
push edx
mov ecx, str.notepad.exe
call fcn.00459600
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.0045b460
mov eax, dword [esp + 0x18]
push eax
push 0
call fcn.00458940
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 0x4728fa
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 0x472925
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.004e4d50
mov esp, ebp
pop ebp
ret
Function at 0x4734a0
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 0x4734d8
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4734cf
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 0x473515
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 0x473537
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 0x473e50
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50e2b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5522c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x51f91c
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x7c], eax
cmp eax, ebx
je 0x473e9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x473eb9
push str.Storm2SetupMutex
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
cmp eax, ebx
je 0x473ee7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0xc8], bl
jne 0x473ed3
push ebx
push 0x51e5e4
push 0x51f940
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.00473fe0
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 0x474b10
push ebx
push ebx
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], ebx
mov dword [esi + 0x70], ebx
call fcn.004e6038
mov dword [esi + 0x70], eax
mov eax, dword [0x551f18]
mov edx, dword [eax + 0xc]
add esp, 0x18
mov ecx, 0x551f18
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
push str.5.34.0227.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.00459850
mov edi, dword [ebp - 0x10]
add esp, 8
add edi, 0xfffffff0
mov eax, edi
mov dword [ebp - 0x14], esp
mov ebx, esp
call fcn.0045d030
add eax, 0x10
mov dword [ebx], eax
call fcn.004749a0
mov ebx, esi
call fcn.00474100
mov dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x473faa
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x473f96
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 0x473fc3
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