joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401310
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x720
mov eax, dword [0x4351b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [sym.imp.MSVCR100.dll_wcsstr]
mov esi, eax
push str._Shell
push esi
call edi
add esp, 8
test eax, eax
jne 0x401354
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004223ce
mov esp, ebp
pop ebp
ret
push str._Dll
push esi
call edi
add esp, 8
test eax, eax
je 0x401342
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_wcschr]
lea edi, [eax + 0xc]
push 0x22
push edi
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x40138e
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004223ce
mov esp, ebp
pop ebp
ret
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x516]
push ecx
mov word [ebp - 0x518], ax
call sub.MSVCR100.dll_memset
mov edx, esi
sub edx, edi
sar edx, 1
push edx
push edi
lea eax, [ebp - 0x518]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add esi, 4
push 0x20
push esi
call ebx
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x30e]
push edx
mov edi, eax
mov word [ebp - 0x310], cx
call sub.MSVCR100.dll_memset
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x71e]
push ecx
mov word [ebp - 0x720], ax
call sub.MSVCR100.dll_memset
add esp, 0x3c
test edi, edi
jne 0x401422
push esi
lea edx, [ebp - 0x310]
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
jmp 0x401455
mov eax, edi
sub eax, esi
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x310]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_wcsncpy_s]
add edi, 2
push edi
lea edx, [ebp - 0x720]
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0x1c
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x310]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x401480
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401480
push 0
push 0
push 0x104
sub eax, edx
lea ecx, [ebp - 0x108]
push ecx
sar eax, 1
push eax
lea edx, [ebp - 0x310]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x518]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4014f1
lea ecx, [ebp - 0x108]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4014ea
lea edx, [ebp - 0x720]
push edx
call eax
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.004223ce
mov esp, ebp
pop ebp
ret
Function at 0x401ca0
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push edi
push str.BaofengPlatform_Mutex
push 1
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x436f90], eax
call edi
cmp eax, 0xb7
jne 0x401d70
push str.BaofengPlatform2_Mutex
push 1
push 0
call esi
mov dword [0x436f94], eax
call edi
cmp eax, 0xb7
jne 0x401d14
mov eax, dword [0x436f90]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [0x436f94]
push ecx
mov dword [0x436f90], 0
call esi
pop edi
mov dword [0x436f94], 0
mov al, 1
pop esi
ret
push str.BaofengPlatform_Closing_Event
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edi, eax
test edi, edi
je 0x401d75
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x436fa0
push 0
mov esi, eax
push esi
push 0x401c00
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
push 0xffffffffffffffff
push esi
mov dword [0x436f9c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
xor al, al
pop esi
ret
mov edx, dword [0x436f90]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov al, 1
pop esi
ret
Function at 0x401d90
Capabilities:
Initialize winsock library
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x4351b0]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [0x436f8c], edi
call fcn.00401310
test al, al
je 0x401ddb
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.004223ce
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401ca0
test al, al
jne 0x401dc2
call fcn.004169c0
test al, al
jne 0x401dc2
xor ebx, ebx
cmp byte [0x436fac], bl
je 0x401e07
push 1
push str.PlatformCrashTime
call dword [sym.imp.crt.dll_Ordinal_32]
add esp, 8
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcW]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
call fcn.00409900
call fcn.004096d0
push ebx
call dword [sym.imp.ole32.dll_OleInitialize]
mov esi, dword [sym.imp.crt.dll_Ordinal_3]
push 1
call esi
add esp, 4
push 2
call esi
add esp, 4
mov ecx, edi
call fcn.00401870
mov eax, dword [0x437018]
cmp eax, ebx
je 0x401e87
push str.StormPlayer
push 0x4019e0
push str.Daily.Platform_Exception
push str.ClassCrashPlatform
push 0x4292d0
push ebx
call eax
add esp, 0x18
mov eax, dword [0x437028]
cmp eax, ebx
je 0x401e92
call eax
call fcn.00402540
mov eax, dword [0x436300]
cmp eax, ebx
je 0x401ea7
push 1
call eax
add esp, 4
push 0x18e
lea edx, [esp + 0x1e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x24], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00401a40
mov edi, eax
cmp dword [0x437014], ebx
je 0x401efe
mov eax, dword [0x43701c]
cmp eax, ebx
je 0x401eeb
call eax
mov ecx, dword [0x437014]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x437014], ebx
push 1
push str.PlatformCrashTime
call dword [sym.imp.crt.dll_Ordinal_32]
push 2
call dword [sym.imp.crt.dll_Ordinal_4]
mov eax, dword [0x436304]
add esp, 0xc
cmp eax, ebx
je 0x401f21
call eax
mov esi, 0x4362f8
call fcn.00409d60
mov edx, dword [0x436f90]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
call dword [sym.imp.WS2_32.dll_WSACleanup]
call fcn.004024e0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [0x436f98]
cmp eax, ebx
je 0x401f60
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [0x436f98]
push eax
call esi
mov eax, dword [0x436f9c]
mov dword [0x436f98], ebx
cmp eax, ebx
je 0x401f88
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x436f9c]
push eax
call esi
mov dword [0x436f9c], ebx
mov ecx, dword [esp + 0x1ac]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004223ce
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40bc40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423c1b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4351b0]
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 eax, ecx
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], edi
mov dword [ebp - 4], edi
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0x218]
mov eax, dword [eax]
or ebx, 0x2001f
mov dword [ebp - 0x228], edi
cmp esi, edi
je 0x40bcc2
push ecx
push eax
lea edi, [ebp - 0x228]
call fcn.0040bb60
xor edi, edi
jmp 0x40bcd3
lea edx, [ebp - 0x228]
push edx
push ebx
push edi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x40bdcc
mov ecx, dword [ebp - 0x220]
xor eax, eax
cmp ecx, edi
je 0x40bcf6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], edi
mov ecx, dword [ebp - 0x228]
and ebx, 0x300
mov dword [ebp - 0x21c], edi
mov esi, eax
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x21c], ebx
cmp eax, edi
jne 0x40bdcc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x238]
push eax
push edi
push edi
push edi
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x214]
push eax
push edi
push ecx
mov dword [ebp - 0x224], 0x100
call esi
test eax, eax
jne 0x40bd9c
mov edi, edi
lea ecx, [ebp - 0x214]
push ecx
lea ecx, [ebp - 0x220]
call fcn.0040bc40
mov ebx, eax
cmp ebx, edi
jne 0x40be10
lea edx, [ebp - 0x238]
push edx
mov edx, dword [ebp - 0x220]
push edi
push edi
push edi
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x214]
push ecx
push edi
push edx
mov dword [ebp - 0x224], 0x100
call esi
test eax, eax
je 0x40bd50
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x40bdb3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], edi
mov ebx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], edi
call fcn.0040beb0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x40bdea
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], edi
mov eax, esi
mov dword [ebp - 0x21c], 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.004223ce
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x40be2e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x220], edi
mov eax, ebx
jmp 0x40bdec
Function at 0x40cc00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426266
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x4351b0]
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 eax, dword [ebp + 8]
mov edi, ecx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x418], ecx
mov byte [ebp - 4], 1
push 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x420], esi
test esi, esi
jne 0x40cc7c
call fcn.0040acd0
mov edi, eax
jmp 0x40cda3
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40cc95
call fcn.0040acd0
jmp 0x40cd9a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x40ccb3
call fcn.0040acd0
jmp 0x40cd9a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40ccd4
mov edi, 0x8007000e
jmp 0x40cd9c
mov byte [ebp - 4], 2
xor ecx, ecx
shld ecx, eax, 1
mov dword [ebp - 0x434], ecx
add eax, eax
mov dword [ebp - 0x438], eax
test ecx, ecx
jne 0x40ccf5
cmp eax, 0xffffffff
jbe 0x40ccff
push 0x80070216
call fcn.0040d710
cmp eax, 0x400
jbe 0x40cd1b
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040aca0
mov dword [ebp - 4], 1
jmp 0x40cd4f
lea edx, [ebp - 0x414]
mov dword [ebp - 0x418], edx
mov dword [ebp - 4], 1
jmp 0x40cd4f
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x40cd60
mov edi, 0x8007000e
jmp 0x40cd9c
push edi
push eax
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40cd79
call fcn.0040acd0
jmp 0x40cd9a
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.0040ca60
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x40cdc0
lea eax, [ebp - 0x418]
call fcn.0040b540
mov dword [ebp - 4], 0xffffffff
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.004223ce
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e460
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
push 0x40
lea eax, [ebp - 0x58]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x5c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
push 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40e4c7
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x10]
push edx
call esi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ff20
Capabilities:
Create process on windows

Disassembly:
add eax, 0xffff7ff7
push edi
mov edi, ecx
cmp eax, 0xb
ja case.0x40ff2d.32779
jmp dword [eax*4 + 0x40ffc8]
mov eax, dword [edi + 0x644]
test eax, eax
je 0x40ff4c
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne case.0x40ff2d.32779
push 1
call fcn.00410060
test eax, eax
je case.0x40ff2d.32779
push 0
push 0
push 0
push 1
push str.DAILY.SF_QUITBYRIGHTBUTTON
call dword [sym.imp.crt.dll_Ordinal_58]
mov ecx, dword [edi + 4]
add esp, 0x14
push 0
push 0xf060
push 0x112
push ecx
mov dword [edi + 0x648], 1
mov dword [edi + 0x59c], 2
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
ret
pop edi
jmp fcn.00410000
mov edx, dword [edi + 4]
push 5
push 0
push 0
push str.http:__www.baofeng.com
push 0x42a784
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
ret
pop edi
jmp fcn.0040e5e0
pop edi
jmp fcn.0040e6f0
Function at 0x4101e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426768
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4351b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x436f8c]
push 0x6f
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edx, dword [0x43517c]
mov eax, dword [edx + 0xc]
mov ecx, 0x43517c
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
push ecx
push 1
push 0x42a6b8
lea edi, [ebp - 0x10]
call fcn.0040d790
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edi, dword [esi + 0x4b8]
lea ebx, [esi + 0x4b8]
lea eax, [ecx - 0x10]
sub edi, 0x10
add esp, 0xc
mov dword [ebp + 8], eax
cmp eax, edi
je 0x4102ac
cmp dword [edi + 0xc], 0
jl 0x41029f
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x41029f
call fcn.00410640
mov dword [ebp - 0x14], eax
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x410295
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x4102a9
push ecx
push ebx
mov ebx, dword [ecx - 0xc]
call fcn.0040df40
mov eax, dword [ebp + 8]
cmp dword [esi + 0x4b0], 0
jne 0x4102d9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esi - 0x180]
push 0
push 0x12c
push eax
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi + 0x4b0], eax
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 0x64
jne 0x410331
mov ecx, dword [esi + 0x4b0]
test ecx, ecx
je 0x410331
mov eax, dword [esi - 0x180]
push ecx
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [0x436f8c]
push 0x6c
push ecx
mov dword [esi + 0x4b0], 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x41032e
mov ecx, dword [esi + 0x4b8]
mov edx, dword [esi - 0x15c]
add esi, 0xfffffea4
push ecx
push eax
mov eax, dword [edx + 0x10]
push esi
call eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410351
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
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 0xc
Function at 0x410370
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
test eax, eax
jne 0x4103ea
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x4b0]
test eax, eax
je 0x410438
push eax
mov eax, dword [esi - 0x180]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [0x436f8c]
push 0x6c
push ecx
mov dword [esi + 0x4b0], 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov ebx, eax
test ebx, ebx
je 0x410438
lea edi, [esi + 0x4b8]
mov edx, 0x42a4b4
call fcn.0040de40
mov ecx, dword [edi]
mov edx, dword [esi - 0x15c]
mov edx, dword [edx + 0x10]
lea eax, [esi - 0x15c]
push ecx
push ebx
push eax
call edx
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
cmp eax, 1
jne 0x410438
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add edi, 0x4bc
test edx, edx
jne 0x410413
xor eax, eax
push edx
push edi
mov ebx, eax
call fcn.0040df40
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
mov eax, edx
lea esi, [eax + 2]
jmp 0x410420
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x410420
sub eax, esi
sar eax, 1
push edx
push edi
mov ebx, eax
call fcn.0040df40
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc

Function at 0x410e70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4351b0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
mov eax, dword [0x436b94]
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push str...BaofengPlatform.resource
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410f29
push esi
lea eax, [ebp - 0x20c]
push eax
lea esi, [edi + 0x6c]
push esi
call fcn.0041a650
test al, al
jne 0x410f06
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004223ce
mov esp, ebp
pop ebp
ret
add edi, 0x2c
push edi
push esi
call fcn.0041ac80
xor ecx, ecx
test al, al
setne cl
pop esi
pop edi
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004223ce
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004223ce
mov esp, ebp
pop ebp
ret

Function at 0x411031
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x100]
push edi
push eax
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_SetParent]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
je 0x411068
mov ecx, dword [esi + 0x100]
push 0
push ecx
call edi
mov edx, dword [esi + 0x100]
push 0
push edx
call ebx
mov eax, dword [esi + 0xf8]
test eax, eax
je 0x411088
mov eax, dword [eax + 4]
push 0
push eax
call edi
mov ecx, dword [esi + 0xf8]
mov edx, dword [ecx + 4]
push 0
push edx
call ebx
pop edi
pop esi
pop ebx
ret 4
Function at 0x4145b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4145c8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4145fa
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4145f6
cmp esi, eax
jae 0x4145fa
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4145e8
cmp esi, eax
jb 0x414600
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x414ac0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x425622
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4351b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 4], edi
mov dword [ebp - 0x10], eax
mov dword [eax + 0xc], edi
mov dword [ebp - 4], 1
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [ebp - 4], 2
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 0x20], eax
mov dword [ebp - 4], 3
mov dword [esi], vtable.CSkinWindowImpl_class_CPluginManager__class_ATL::CWindow__class_ATL::CWinTraits_1442840576__0__.0
mov dword [ebp - 4], 4
lea eax, [esi + 0x3c]
mov dword [esi], vtable.CPluginManager.0
mov dword [ebp - 0x10], eax
mov dword [eax], edi
mov byte [ebp - 4], 6
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov byte [ebp - 4], 7
lea eax, [esi + 0x84]
mov dword [ebp - 0x10], eax
mov dword [eax], edi
mov byte [ebp - 4], 9
lea eax, [esi + 0x88]
mov dword [ebp - 0x10], eax
mov dword [eax], edi
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x50]
push ecx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x7c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4