joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fd46
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x194], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1a0]
lea eax, [ebp - 0x78]
push eax
push 1
xor esi, esi
push esi
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x78], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp ebx, esi
jne 0x41fde6
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x80]
push eax
push esi
push str.Path
push dword [ebp - 0x78]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
push esi
push edi
lea eax, [ebp - 0x74]
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425cba
add ebp, 0x198
leave
ret 4

Function at 0x41fe00
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [ebp + 0x19c]
push ebx
push esi
mov esi, 0x103
xor ebx, ebx
push esi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push 0x2b
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x41fe6c
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x190]
pop esi
xor ecx, ebp
pop ebx
call fcn.00425cba
add ebp, 0x194
leave
ret 4
lea eax, [ebp - 0x78]
push str.Thunder_NetworkKankanPusherxappllv.dll
push eax
call sub.MSVCR90.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x80], eax
cmp eax, ebx
je 0x41fe50
push edi
push str.GetPathWithFix
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
jne 0x41feb1
xor ebx, ebx
inc ebx
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
pop edi
jmp 0x41fe53
push esi
lea eax, [ebp + 0x8d]
push ebx
push eax
mov byte [ebp + 0x8c], bl
call sub.MSVCR90.dll_memset
lea eax, [ebp + 0x8c]
push eax
push str.XmpTipWnd.exe
call edi
add esp, 0x14
test eax, eax
jne 0x41fea3
push 0x208
push dword [ebp - 0x7c]
lea eax, [ebp + 0x8c]
push eax
call sub.MSVCR90.dll_strlen
pop ecx
push eax
lea eax, [ebp + 0x8c]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x41fea3
Function at 0x420183
Capabilities:
Check if file exists
Create thread
Query environment variable

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 8
mov eax, 0x430415
call fcn.00425cc9
call fcn.0040b994
test al, al
je 0x40cd40
xor eax, eax
push 0x206
mov word [ebp], ax
xor esi, esi
lea eax, [ebp + 2]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
push str._temp_xmpAPlayerAPlayerCodecs3.exe
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040bd17
lea eax, [ebp]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
test eax, eax
jne 0x40cd10
push str.http:__xmp.down.sandai.net_kankan_APlayerCodecs3.exe
lea ecx, [ebp - 0x14]
call fcn.0040bd17
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
push 0x3e8
call fcn.00413fc9
mov ecx, eax
call fcn.004146d7
push dword [ebp - 0x14]
call edi
jmp 0x40cd3b
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40cd3b
lea eax, [ebp]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push esi
push esi
push eax
push 0x40cadc
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00425cba
add ebp, 0x20c
leave
ret
call fcn.0040d737
mov ecx, eax
jmp 0x40cc5f

Function at 0x420f28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x80
lea ebp, [esp - 4]
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x80], eax
push 0x10
mov eax, 0x4317a9
call fcn.00425cc9
mov edi, dword [ebp + 0x8c]
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
xor eax, eax
push 0x7e
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
mov dword [ebp - 4], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
xor eax, eax
inc eax
push eax
push str.SOFTWAREThunder_NetworkXmp
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x10], eax
call fcn.0040bcbf
test eax, eax
jne 0x420fb4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.PeerId
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea ecx, [ebp - 0x18]
call fcn.0040bca4
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 + 0x80]
xor ecx, ebp
call fcn.00425cba
add ebp, 0x84
leave
ret
Function at 0x420fed
Capabilities:
Download url
Receive data

Disassembly:
push ebp
sub esp, 0x42c
lea ebp, [esp - 4]
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x42c], eax
push 0x24
mov eax, 0x4317eb
call fcn.00425cc9
mov esi, dword [ebp + 0x438]
push str.http:__user.xmp.stat.kankan.com__uxmpconv
lea ecx, [ebp - 0x10]
call fcn.0042089b
xor ebx, ebx
push str.u1
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.0042087f
lea eax, [ebp - 0x30]
push eax
call fcn.00420f28
pop ecx
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042087f
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.u2
lea ecx, [ebp - 0x10]
call fcn.0042087f
xor eax, eax
push 0x206
mov word [ebp + 0x224], ax
lea eax, [ebp + 0x226]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp + 0x224]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0x1c
lea eax, [ebp + 0x224]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp]
push eax
call fcn.00411bee
add esp, 0x20
lea ecx, [ebp]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042087f
push str.u3
lea ecx, [ebp - 0x10]
call fcn.0042087f
push esi
lea ecx, [ebp - 0x10]
call fcn.0042087f
push str.u4
lea ecx, [ebp - 0x10]
call fcn.0042087f
lea eax, [esi + 0x80]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042087f
xor eax, eax
push 0x206
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push ebx
push edi
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x10]
push ebx
call sub.urlmon.dll_URLDownloadToCacheFileW
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
pop ecx
lea ecx, [ebp]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push dword [ebp - 0x10]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x42c]
xor ecx, ebp
call fcn.00425cba
add ebp, 0x430
leave
ret
Function at 0x4211a3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x4211ea
cmp dword [ebp + 0xc], esi
je 0x4211ea
push 0x280
call fcn.00425dd4
pop ecx
cmp eax, esi
je 0x4211d5
push dword [ebp + 0xc]
mov ecx, eax
push dword [ebp + 8]
call fcn.0041f853
jmp 0x4211d7
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push 0x421170
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
leave
ret 8
Function at 0x423958
Capabilities:
Connect socket
Get socket status
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
xor ebx, ebx
push edi
mov esi, ecx
cmp dword [ebp + 8], ebx
je 0x423a34
cmp dword [ebp + 0xc], ebx
jbe 0x423a34
cmp dword [esi], 0xffffffff
jne 0x42398c
call fcn.00423743
test eax, eax
je 0x423a34
cmp dword [esi + 8], 2
jne 0x4239b5
push 0x10
lea eax, [esi + 0xc]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
jmp 0x423a36
xor edi, edi
inc edi
cmp dword [esi + 0x1c], ebx
jne 0x423a15
push 0x10
lea eax, [esi + 0xc]
push eax
push dword [esi]
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x423a34
mov eax, dword [esi]
mov dword [ebp - 0x10c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
push ebx
mov dword [ebp - 0x110], edi
mov dword [ebp - 8], ebx
call dword [sym.imp.WS2_32.dll_select]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [esi]
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [esi + 0x1c], edi
xor eax, eax
cmp dword [esi + 8], edi
jne 0x423a2b
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, ebx
jmp 0x4239ab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x423d93
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x431bf6
call fcn.00425cc9
xor edi, edi
push 0xf063
mov dword [ebp - 0x10], edi
call fcn.00425dd4
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x423dc4
call fcn.00423c56
mov esi, eax
jmp 0x423dc6
xor esi, esi
or dword [ebp - 4], 0xffffffff
push 1
push 0x3ee
mov ecx, esi
mov byte [esi + 2], 0xd
call fcn.00423a3d
push edi
push 0x36b1
mov ecx, esi
call fcn.00423a3d
push edi
push 0x36b2
mov ecx, esi
call fcn.00423a3d
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0x423cb1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00425da1
ret

Function at 0x423e0f
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x431c1b
call fcn.00425cc9
mov edi, ecx
xor ebx, ebx
push 0xf063
mov dword [ebp - 0x10], ebx
call fcn.00425dd4
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x423e42
call fcn.00423c56
mov esi, eax
jmp 0x423e44
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov byte [esi + 2], 0xe
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [edi + 8]
mov ecx, 0x3e8
mov dword [edi + 8], eax
cdq
idiv ecx
mov ecx, esi
push eax
push 0x7d2
call fcn.00423a3d
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push 0x423cb1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00425da1
ret
Function at 0x423f2a
Capabilities:
Create thread

Disassembly:
push 8
mov eax, 0x431c63
call fcn.00425cc9
mov ebx, ecx
xor edi, edi
push 0xf063
mov dword [ebp - 0x10], edi
call fcn.00425dd4
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x423f5d
call fcn.00423c56
mov esi, eax
jmp 0x423f5f
xor esi, esi
or dword [ebp - 4], 0xffffffff
push 1
push 0x3ea
mov ecx, esi
mov byte [esi + 2], 0xc
call fcn.00423a3d
push edi
call fcn.00423e97
push eax
push 0x32cd
mov ecx, esi
call fcn.00423a6f
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0x423cb1
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebx + 0xc]
cmp eax, edi
jl 0x423fac
push eax
push 0xa
push edi
call dword [sym.imp.xlstat4.dll_XLSTAT4_StartOnlineStat]
call fcn.00425da1
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x5ec]
sub esp, 0x66c
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x5e8], eax
push esi
mov esi, dword [ebp + 0x5f4]
push esi
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4242c6
push ebx
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp + 0x1d8], ax
xor ebx, ebx
lea eax, [ebp + 0x1da]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x435280
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0x1d8]
push eax
call esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x4242c4
test byte [ebp - 0x78], 0x10
je 0x424228
cmp word [ebp - 0x4c], 0x2e
jne 0x4241ef
cmp word [ebp - 0x4a], bx
je 0x42425f
cmp word [ebp - 0x4a], 0x2e
jne 0x4241ef
cmp word [ebp - 0x48], bx
je 0x42425f
xor eax, eax
push edi
mov word [ebp + 0x3e0], ax
lea eax, [ebp + 0x3e2]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp + 0x3e0]
push eax
call esi
lea eax, [ebp + 0x3e0]
push eax
call fcn.00424146
pop ecx
jmp 0x42425f
xor eax, eax
push edi
mov word [ebp + 0x3e0], ax
lea eax, [ebp + 0x3e2]
push ebx
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp + 0x3e0]
push eax
call esi
lea eax, [ebp + 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4241cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, str.XMP::RemoveDirectoryW
push esi
mov edi, eax
call fcn.0041240d
pop ecx
test eax, eax
jne 0x4242b2
push 1
push edi
push str.dwError_:
push ebx
push esi
call fcn.00410c48
pop ecx
pop ecx
mov ecx, eax
call fcn.004138f2
mov ecx, eax
call fcn.00416ccd
mov ecx, eax
call fcn.00413815
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop ebx
mov ecx, dword [ebp + 0x5e8]
xor ecx, ebp
pop esi
call fcn.00425cba
add ebp, 0x5ec
leave
ret
Function at 0x4249da
Capabilities:
Create process on windows

Disassembly:
push 0x22c
mov eax, 0x431dc9
call fcn.00425d32
mov dword [ebp - 0x220], ecx
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x21c], ebp
push esi
push dword [ebp - 0x21c]
push str.void___thiscall_CXmpPlayer::RunXmpTipswnd_const_wchar_t__
call fcn.0041e3a5
mov edi, eax
add esp, 0xc
mov eax, 0x439c30
cmp edi, esi
jne 0x424a21
mov edi, eax
push esi
push esi
push esi
push dword [ebp - 0x220]
lea ecx, [ebp - 0x238]
push eax
push 0x439bf8
push edi
call fcn.0041d60d
mov dword [ebp - 4], esi
cmp edi, esi
jne 0x424a45
push ebp
pop ebp
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push esi
push eax
call sub.MSVCR90.dll_memset
mov ecx, dword [ebp - 0x220]
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
call fcn.0041fe00
push esi
push esi
push ebx
lea eax, [ebp - 0x218]
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.0041ec5b
call fcn.00425db5
ret 4

Function at 0x424aa2
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x5a0]
sub esp, 0x620
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x59c], eax
push edi
mov eax, ecx
xor edi, edi
mov dword [ebp - 0x80], eax
cmp dword [eax + 4], edi
je 0x424ad1
xor eax, eax
jmp 0x424bf9
push ebx
push esi
mov dword [eax + 4], 1
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp + 0x18c], ax
lea eax, [ebp + 0x18e]
push edi
push eax
call sub.MSVCR90.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push edi
push eax
call sub.MSVCR90.dll_memset
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add esp, 0x18
push 0x104
lea eax, [ebp + 0x18c]
push eax
push edi
call ebx
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.......xar_tray
lea eax, [ebp - 0x7c]
push eax
call edi
push str.maintray.cab
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x424bf5
xor eax, eax
push esi
mov word [ebp + 0x394], ax
xor esi, esi
lea eax, [ebp + 0x396]
push esi
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea eax, [ebp + 0x394]
push eax
push esi
call ebx
push str.......xar_tray
lea eax, [ebp + 0x394]
push eax
call edi
push str.maintray
lea eax, [ebp + 0x394]
push eax
call edi
lea eax, [ebp + 0x394]
push eax
call fcn.00424146
pop ecx
push esi
lea eax, [ebp - 0x7c]
push 0x420004
mov dword [0x44bcf8], eax
push esi
lea eax, [ebp + 0x18c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
mov ecx, dword [ebp - 0x80]
test eax, eax
je 0x424be6
push 0x439d1c
push str.xmp_maintrayxar_update
call fcn.004211a3
xor eax, eax
inc eax
jmp 0x424bf7
push 0x439ce4
push str.xmp_maintrayxar_update
call fcn.004211a3
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp + 0x59c]
xor ecx, ebp
pop edi
call fcn.00425cba
add ebp, 0x5a0
leave
ret
Function at 0x424c45
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
and dword [esi + 4], 0
or dword [esi + 0xc], 0xffffffff
mov dword [esi], vtable.CXmpPlayer.0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x18e
mov dword [esi + 8], eax
lea eax, [ebp - 0x194]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, esi
call fcn.004247ea
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00425cba
leave
ret
Function at 0x425cba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4490e8]
jne 0x425cc4
repz ret
jmp fcn.004265cc

Function at 0x426eb1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::clear_void_]
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call sub.MSVCR90.dll_memset
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x64
lea eax, [ebp - 0x7c]
push eax
push 0x43c8cc
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x426f06
xor al, al
jmp 0x426f4a
mov ecx, dword [ebp - 0x80]
push ebx
push ebx
mov eax, ecx
shr eax, 0x18
push eax
mov edx, ecx
shr edx, 0x10
mov eax, 0xff
and edx, eax
push edx
mov edx, ecx
shr edx, 8
and edx, eax
movzx eax, cl
push edx
push eax
lea eax, [ebp - 0x18]
push str._02X_02X_02X_02X_02X_02X
push eax
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const__]
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00425cba
leave
ret 4
Function at 0x428179
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4490e8]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
push esi
push edi
xor esi, esi
push 0x103
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push esi
push eax
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x78], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4281dd
push str.c:windows_temp
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 0x9c], esi
je 0x428203
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x428203
push esi
lea eax, [ebp - 0x78]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Thunder_Network
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x428230
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x428230
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
push 0x43c988
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x428257
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x428257
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00425cba
add ebp, 0x90
leave
ret