joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483290
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4f1730
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x58]
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push ebx
mov ecx, edi
call edx
test eax, eax
je 0x4832d2
mov al, byte [eax]
test al, al
je 0x4832e9
cmp al, 3
je 0x4832e9
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x10
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push ebx
mov ecx, edi
call edx
mov ebp, eax
test ebp, ebp
je 0x4832d2
xor eax, eax
cmp byte [esp + 0x64], al
setne al
cmp dword [ebp + 4], 0
mov dword [ebp + 0xc], eax
jne 0x4832d2
push 0x90
call fcn.004c8f3d
add esp, 4
test eax, eax
je 0x4832d2
mov edx, dword [esp + 0x60]
call fcn.00482ee0
mov esi, eax
test esi, esi
je 0x4832d2
lea ecx, [esi + 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [edi]
mov edx, dword [edx + 0x14]
push ebx
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call edx
push 0xffffffffffffffff
push 0
push eax
lea eax, [esi + 0x2c]
mov dword [esp + 0x5c], 0
call fcn.00401850
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0xffffffff
call fcn.004016f0
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ebx
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call edx
push 0xffffffffffffffff
push 0
lea ebx, [esi + 0x48]
push eax
mov eax, ebx
mov dword [esp + 0x5c], 1
call fcn.00401850
lea ecx, [esp + 0x2c]
mov dword [esp + 0x50], 0xffffffff
call fcn.004016f0
push 0xffffffffffffffff
push 0
push ebx
lea eax, [esi + 0x64]
call fcn.00401850
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x88], eax
mov eax, esi
mov dword [esi + 0x84], edi
call fcn.004830b0
mov dword [ebp + 4], esi
mov byte [ebp], 1
call fcn.00478de0
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 0x10

Function at 0x483420
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
sub esp, 0x1c
push 1
lea edx, [esp + 4]
push edx
call eax
cmp dword [eax + 0x18], 8
jb 0x48343c
mov eax, dword [eax + 4]
jmp 0x48343f
add eax, 4
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [esp + 0x1c], 8
jb 0x483460
mov ecx, dword [esp + 8]
push ecx
call fcn.004c8f17
add esp, 4
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x4843a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x24
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x20], eax
xor eax, eax
mov edx, 0x10
mov byte [esp], al
mov dword [esp + 1], eax
mov dword [esp + 5], eax
mov dword [esp + 9], eax
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
mov word [esp + 0x1d], ax
mov byte [esp + 0x1f], al
cmp dword [ecx + 0x1c], edx
jb 0x4843e7
mov eax, dword [ecx + 8]
jmp 0x4843ea
lea eax, [ecx + 8]
cmp dword [ecx + 0x38], edx
jb 0x4843f4
mov ecx, dword [ecx + 0x24]
jmp 0x4843f7
add ecx, 0x24
push eax
push 0x20
lea eax, [esp + 8]
push eax
push 0x50b9c4
push ecx
push str.filter
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp]
push ecx
call fcn.004cb78a
mov ecx, dword [esp + 0x24]
add esp, 4
xor ecx, esp
call fcn.004c8f08
add esp, 0x24
ret

Function at 0x4847a0
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
lea edi, [esi + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push 1
push 0x531b90
call fcn.004ca3f1
mov edx, dword [esi + 0x24]
push edx
mov ebx, eax
call fcn.004ccea0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebx
pop ebx
ret 4

Function at 0x4849d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x108], eax
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x11]
push ebx
push eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], bl
call fcn.004d1df0
add esp, 0xc
push ebx
push 0x1a
lea ecx, [esp + 0x14]
push ecx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edi, [esp + 0xc]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x484a17
mov dx, word [0x509688]
mov word [edi], dx
lea eax, [esp + 0xc]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x484a40
sub eax, edx
push eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00404980
mov ecx, dword [esp + 0x110]
pop edi
pop ebx
xor ecx, esp
mov eax, esi
call fcn.004c8f08
add esp, 0x10c
ret
Function at 0x484b90
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x20
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x1c], eax
push edi
mov edi, 0x50ba44
lea ecx, [esp + 4]
call fcn.0047fda0
mov eax, dword [esp + 8]
mov edi, 8
cmp dword [esp + 0x1c], edi
jae 0x484bc0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x531b8c], eax
test eax, eax
je 0x484c6b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DownLoadHelp
push eax
call esi
mov dword [0x532fe0], eax
mov eax, dword [0x531b8c]
push str.Http_Iint
push eax
call esi
mov ecx, dword [0x531b8c]
push str.Http_Close
push ecx
mov dword [0x532fe4], eax
call esi
mov edx, dword [0x531b8c]
push str.Http_DownLoad
push edx
mov dword [0x532fe8], eax
call esi
mov dword [0x532fec], eax
mov eax, dword [0x531b8c]
push str.Http_GetTaskInfo
push eax
call esi
mov ecx, dword [0x531b8c]
push str.Http_GetTaskStatus
push ecx
mov dword [0x532ff0], eax
call esi
mov edx, dword [0x531b8c]
push str.Http_CancelTask
push edx
mov dword [0x532ff4], eax
call esi
mov dword [0x532ff8], eax
mov eax, dword [0x531b8c]
push str.Http_CloseTask
push eax
call esi
mov dword [0x532ffc], eax
pop esi
cmp dword [esp + 0x1c], edi
pop edi
jb 0x484c7f
mov ecx, dword [esp + 4]
push ecx
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004c8f08
add esp, 0x20
ret

Function at 0x484d80
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [esi], 0
jne 0x484e18
push str.gzipdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
jne 0x484d9d
xor al, al
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.gz_compress
push eax
call edi
mov dword [esi + 4], eax
mov eax, dword [esi]
push str.gz_uncompress
push eax
call edi
mov ecx, dword [esi]
push str.gz_hash
push ecx
mov dword [esi + 8], eax
call edi
mov edx, dword [esi]
push 0x50bb1c
push edx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push str.unzip
push eax
call edi
mov ecx, dword [esi]
push str.unzipex
push ecx
mov dword [esi + 0x14], eax
call edi
mov edx, dword [esi]
push str.gcompress_7z
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
mov eax, dword [esi]
push str.guncompress_7z
push eax
call edi
mov ecx, dword [esi]
push str.gcompress_7zEx
push ecx
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x24], eax
pop edi
mov al, 1
ret
Function at 0x484eb0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, str.udp.dll
lea ecx, [esp + 0xc]
xor ebx, ebx
call fcn.0047fda0
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x484ed5
mov eax, dword [eax + 4]
jmp 0x484ed8
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x532390], eax
cmp dword [esp + 0x24], esi
jb 0x484efc
mov eax, dword [esp + 0x10]
push eax
call fcn.004c8f17
mov eax, dword [0x532390]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebx
mov word [esp + 0x10], cx
cmp eax, ebx
je 0x484fad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UDPInit
push eax
call esi
mov edx, dword [0x532390]
push str.UDPClose
push edx
mov dword [0x5323b0], eax
call esi
mov dword [0x5323ac], eax
mov eax, dword [0x532390]
push str.UDPCreate
push eax
call esi
mov ecx, dword [0x532390]
push str.UDPFree
push ecx
mov dword [0x5323a8], eax
call esi
mov edx, dword [0x532390]
push str.UDPSendTo
push edx
mov dword [0x5323a4], eax
call esi
mov dword [0x5323a0], eax
mov eax, dword [0x532390]
push str.UDPRecvFrom
push eax
call esi
mov ecx, dword [0x532390]
push str.UDPSetProxy
push ecx
mov dword [0x53239c], eax
call esi
mov edx, dword [0x532390]
push str.UDPCheckUsed
push edx
mov dword [0x532398], eax
call esi
mov dword [0x532394], eax
mov eax, dword [0x5323b0]
cmp eax, ebx
je 0x484fbc
push ebx
push ebx
call eax
mov bl, al
call fcn.00485300
pop edi
pop esi
mov al, bl
pop ebx
add esp, 0x1c
ret
Function at 0x485110
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
push esi
push edi
mov edi, str._substat.dll
lea ecx, [esp + 8]
call fcn.00460ea0
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x485132
mov eax, dword [eax + 4]
jmp 0x485135
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x5323e4], eax
cmp dword [esp + 0x20], esi
jb 0x485159
mov eax, dword [esp + 0xc]
push eax
call fcn.004c8f17
mov eax, dword [0x5323e4]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x20], 7
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], cx
test eax, eax
jne 0x48517c
pop edi
xor al, al
pop esi
add esp, 0x1c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.STInit
push eax
call esi
mov edx, dword [0x5323e4]
push str.STUDPProxy
push edx
mov dword [0x5323e0], eax
call esi
mov dword [0x5323dc], eax
mov eax, dword [0x5323e4]
push str.STUDPTransfer
push eax
call esi
mov ecx, dword [0x5323e4]
push str.STCmdApp
push ecx
mov dword [0x5323d8], eax
call esi
mov edx, dword [0x5323e4]
push str.STEntryAddr
push edx
mov dword [0x5323c4], eax
call esi
mov dword [0x5323d0], eax
mov eax, dword [0x5323e4]
push str.STUnionID
push eax
call esi
mov ecx, dword [0x5323e4]
push str.STAppID
push ecx
mov dword [0x5323d4], eax
call esi
mov edx, dword [0x5323e4]
push str.STVersion
push edx
mov dword [0x5323cc], eax
call esi
mov dword [0x5323c8], eax
mov eax, dword [0x5323e4]
push str.STOnline
push eax
call esi
mov ecx, dword [0x5323e4]
push str.STOffline
push ecx
mov dword [0x5323c0], eax
call esi
mov edx, dword [0x5323e4]
push str.STAction
push edx
mov dword [0x5323bc], eax
call esi
mov dword [0x5323b8], eax
mov eax, dword [0x5323e4]
push str.STUninit
push eax
call esi
mov dword [0x5323b4], eax
mov eax, dword [0x5323e0]
test eax, eax
je 0x485174
pop edi
pop esi
add esp, 0x1c
jmp eax
Function at 0x485300
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x532728]
sub esp, 0x1c
push esi
test eax, eax
jne 0x485375
push edi
mov edi, str.Rltcp.dll
lea ecx, [esp + 8]
call fcn.00460ea0
mov esi, 8
pop edi
cmp dword [eax + 0x18], esi
jb 0x48532c
mov eax, dword [eax + 4]
jmp 0x48532f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x532728], eax
cmp dword [esp + 0x1c], esi
jb 0x485353
mov eax, dword [esp + 8]
push eax
call fcn.004c8f17
mov eax, dword [0x532728]
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
mov word [esp + 8], cx
test eax, eax
jne 0x485375
xor al, al
pop esi
add esp, 0x1c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.TCPCreate
push eax
call esi
mov edx, dword [0x532728]
push str.TCPSend
push edx
mov dword [0x53272c], eax
call esi
mov dword [0x532730], eax
mov eax, dword [0x532728]
push str.TCPReceive
push eax
call esi
mov ecx, dword [0x532728]
push str.TCPClose
push ecx
mov dword [0x532734], eax
call esi
mov edx, dword [0x532728]
push str.SetSocketProxy
push edx
mov dword [0x532738], eax
call esi
mov dword [0x53273c], eax
mov eax, dword [0x532728]
push str.UsedTCPResult
push eax
call esi
mov ecx, dword [0x532728]
push str.SetUsedTCPResult
push ecx
mov dword [0x532740], eax
call esi
mov edx, dword [0x532728]
push str.GetProxyType
push edx
mov dword [0x532744], eax
call esi
mov dword [0x532748], eax
mov al, 1
pop esi
add esp, 0x1c
ret
Function at 0x485560
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x20
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x18]
push ebx
xor ebx, ebx
push edi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp eax, ebx
je 0x485594
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x18], ebx
mov edi, str.WallPaperRightMenu.dll
lea ecx, [esp + 8]
call fcn.00460ea0
cmp dword [esp + 0x20], 8
mov eax, dword [esp + 0xc]
jae 0x4855b1
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x485643
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegisterRightMenu
push eax
call edi
mov dword [esi], eax
mov eax, dword [esi + 0x18]
push str.UnregisterRightMenu
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.IsNeedReg
push ecx
mov dword [esi + 4], eax
call edi
mov edx, dword [esi + 0x18]
push str.IsDllNeedUpdate
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x18]
push str.DllRegEx
push eax
call edi
mov ecx, dword [esi + 0x18]
push str.DllUpdate
push ecx
mov dword [esi + 0x10], eax
call edi
cmp dword [esp + 0x20], 8
mov dword [esi + 0x14], eax
jb 0x48562d
mov edx, dword [esp + 0xc]
push edx
call fcn.004c8f17
add esp, 4
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004c8f08
add esp, 0x20
ret
cmp dword [esp + 0x20], 8
jb 0x485657
mov eax, dword [esp + 0xc]
push eax
call fcn.004c8f17
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004c8f08
add esp, 0x20
ret
Function at 0x486830
Capabilities:
Read data from internet
Receive data

Disassembly:
mov eax, 0x1008
call fcn.004dccb0
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x1004], eax
push ebx
push ebp
push esi
xor ebx, ebx
push 0xfff
lea eax, [esp + 0x15]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x1c], bl
call fcn.004d1df0
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x1000
lea edx, [esp + 0x18]
push edx
push edi
mov dword [esp + 0x1c], ebx
call ebp
test eax, eax
je 0x4868b7
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x4868d1
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0046a3c0
test al, al
je 0x4868b7
lea ecx, [esp + 0xc]
push ecx
push 0x1000
lea edx, [esp + 0x18]
push edx
push edi
mov dword [esp + 0x1c], ebx
call ebp
test eax, eax
jne 0x486886
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x1004]
xor ecx, esp
call fcn.004c8f08
add esp, 0x1008
ret
mov ecx, dword [esp + 0x1010]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.004c8f08
add esp, 0x1008
ret
Function at 0x486cc0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x14]
cmp byte [ebp], 0
je 0x486d63
mov eax, dword [ebp + 4]
cmp eax, dword [esp + 0x18]
jne 0x486d63
test eax, eax
jle 0x486d63
push ebx
push esi
push 0x50c0f4
push 0
mov bl, 1
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x486d4d
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x486d4d
mov eax, edi
mov dword [esp + 0xc], 0xfeff0001
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x486d16
lea ecx, [esp + 0x1c]
push ecx
push 0x3e8
sub eax, edx
push 1
lea edx, [esp + 0x18]
push edx
push 0
sar eax, 1
push 0x4a
lea eax, [eax + eax + 2]
push esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
pop esi
mov al, bl
pop ebx
mov byte [ebp], 0
mov dword [ebp + 4], 0
pop ebp
add esp, 0xc
ret 8
xor al, al
pop ebp
add esp, 0xc
ret 8
Function at 0x486f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0xc]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallDTLCalendar
push Ordinal_4
mov esi, ecx
mov dword [esp + 0x20], ebx
call edi
test eax, eax
jne 0x487022
push 0x206
lea edx, [esp + 0x1e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x24], cx
call fcn.004d1df0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.InstallLocation
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x48700b
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x486ff1
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401760
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.IsInstallCalendar_________________1
push 0x5d
jmp 0x4870bc
lea eax, [esp + 0xc]
push eax
push 0xf003f
push ebx
push str.SoftwareDTLSoftcalendar
push Ordinal_4
call edi
test eax, eax
jne 0x4870d4
push 0x206
lea edx, [esp + 0x1e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x24], cx
call fcn.004d1df0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
push str.AppPath
push eax
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4870aa
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x487090
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401760
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.IsInstallCalendar_________________2
push 0x69
push 8
mov bl, 1
call fcn.004845b0
mov ecx, eax
mov eax, str..wallpaper_riliLoadCalendarMgr.cpp
call fcn.00484890
add esp, 0xc
push 0x11
push str.CalendarMain.exe
mov eax, esi
call fcn.004088a0
mov ecx, dword [esp + 0x224]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004c8f08
add esp, 0x220
ret
Function at 0x487100
Capabilities:
Create thread
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4f1730
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x4872a3
cmp dword [esi + 0x34], ebx
jne 0x48718b
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call edx
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esi + 0x20]
mov dword [esp + 0x5c], ebx
call fcn.00401850
mov edi, 8
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x28], edi
jb 0x487176
mov eax, dword [esp + 0x14]
push eax
call fcn.004c8f17
add esp, 4
xor ecx, ecx
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], ebx
mov word [esp + 0x14], cx
jmp 0x487190
mov edi, 8
cmp dword [esi + 0x50], ebx
jne 0x4871ef
lea edx, [esp + 0x2c]
push edx
mov edi, str.calendar4.exe
call fcn.0047fc80
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esi + 0x3c]
mov dword [esp + 0x5c], 1
call fcn.00401850
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x44], 8
jb 0x4871d7
mov eax, dword [esp + 0x30]
push eax
call fcn.004c8f17
add esp, 4
xor ecx, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], cx
mov edi, 8
cmp dword [esi + 0x54], edi
jb 0x4871f9
mov eax, dword [esi + 0x40]
jmp 0x4871fc
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esi + 8], bl
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], ebx
cmp dword [esi + 0x38], edi
jb 0x487219
mov eax, dword [esi + 0x24]
jmp 0x48721c
lea eax, [esi + 0x24]
mov dword [esi + 0x10], eax
cmp dword [esi + 0x54], edi
jb 0x487229
mov eax, dword [esi + 0x40]
jmp 0x48722c
lea eax, [esi + 0x40]
push 0x18
mov dword [esi + 0x14], eax
call fcn.004c8f3d
add esp, 4
cmp eax, ebx
je 0x487262
mov dword [eax], vtable.CThreadObj.0
mov byte [eax + 0xc], 1
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov byte [eax + 0xd], bl
mov dword [eax + 0x10], 1
mov dword [eax], vtable.CCalendarThreadObj.0
mov dword [eax + 0x14], ebx
jmp 0x487264
xor eax, eax
mov dword [esi + 4], eax
mov dword [eax + 0x14], esi
mov edx, dword [esi + 4]
add edx, 0x10
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esi + 4]
call fcn.0046b880
push ebx
push ebx
push 1
push ebx
mov byte [esi + 0xc], bl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push esi
push 0x46b810
push ebx
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x44
ret
Function at 0x487980
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec000
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x52b360]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
xor edi, edi
cmp ebx, edi
je 0x487ab3
lea eax, [ebp - 0x24]
push eax
push ebx
mov dword [ebp + 8], edi
mov dword [ebp - 4], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jne 0x4879e3
push 0x51d37c
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], 1
call fcn.004cec1b
push esi
call fcn.004c85fa
mov edi, eax
add esp, 4
test edi, edi
jne 0x487a07
push 0x51d37c
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], 1
call fcn.004cec1b
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x487a2a
push 0x51d37c
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 1
call fcn.004cec1b
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp + 8]
push edx
push 0x4fea60
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x487a56
push 0x51d37c
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 1
call fcn.004cec1b
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [ebp + 0xc]
mov eax, ecx
shr eax, 0x10
movzx esi, cx
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov ecx, edx
shr ecx, 0x10
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
movzx edx, dx
mov dword [eax], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ecx], edx
call fcn.004c8f17
add esp, 4
mov al, 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 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x487ad0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
sub esp, 0x3c
test esi, esi
je 0x487b3a
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x487b3a
push 0x38
lea eax, [esp + 8]
push 0
push eax
call fcn.004d1df0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x3c
mov dword [esp + 8], 0x440
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x487b3a
mov edx, dword [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add esp, 0x3c
ret
xor al, al
add esp, 0x3c
ret