joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cb8b
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x435080]
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
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x23e]
push ecx
mov edi, 1
mov word [ebp - 0x240], ax
call fcn.00411530
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x446]
push eax
mov word [ebp - 0x448], dx
call fcn.00411530
add esp, 0xc
lea ecx, [ebp - 0x464]
push ecx
call fcn.00407d30
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x460]
mov byte [ebp - 0x34], 0
call fcn.0040d5f0
push 0x100
lea edx, [ebp - 0x448]
push edx
mov bl, al
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetACP]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test bl, bl
jne 0x405079
xor edi, edi
lea ecx, [ebp - 0x468]
push ecx
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x46c]
push eax
push 0x430480
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 0x468], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4050c3
push str.x400443_18
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x448]
push eax
push str.http:__ping.t.sogou.com_pingd_srctypesogoudownloadgid_sunc_s
lea edx, [esi + 0x4c]
call fcn.00406380
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
add esi, 0x48
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
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 - 0x10]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
Function at 0x405380
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
je 0x4053ff
push esi
push 4
push str.UpdateService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x4053f7
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push eax
push esi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 2
mov dword [ebp - 8], 0x64
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4053f0
mov ebx, dword [ebp - 0x1c]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov ecx, dword [ebp - 4]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00410f66
mov esp, ebp
pop ebp
ret

Function at 0x4057a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x438024], 0
jne 0x405811
push 1
push 0x438024
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x438018], 0
jne 0x4057da
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x438018], eax
test eax, eax
je 0x405811
cmp dword [0x438020], 0
je 0x405811
lea eax, [ebp - 4]
push eax
push 0
push 0x437fe0
push 0x405850
push 0
push 0
call fcn.0041f4ca
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [0x438014], eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4063a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x410
xor edi, edi
lea esi, [ebx + 0x28]
push edi
push esi
call fcn.00411530
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, edi
je 0x4063d9
cmp word [eax], di
je 0x4063d9
push 0x40f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebx], edi
mov dword [ebx + 4], edi
lea eax, [ebx + 0x10]
mov ecx, 4
xor edx, edx
mov word [eax - 8], dx
mov word [eax], dx
add eax, 2
dec ecx
jne 0x4063e6
push 0x410
lea eax, [ebx + 0x438]
push edi
push eax
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [ebp - 8], eax
call fcn.00411530
push 0x410
lea eax, [ebx + 0x848]
push edi
push eax
mov dword [ebp - 0x10], eax
call fcn.00411530
push 0x410
lea eax, [ebx + 0xc58]
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.00411530
add esp, 0x24
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, edi
je 0x406553
lea edi, [esi + 1]
push edi
call fcn.00410f50
push edi
push 0
push eax
mov dword [ebx], eax
call fcn.00411530
mov ecx, dword [ebx]
mov edx, dword [ebp - 4]
add esp, 0x10
push ecx
push esi
push edx
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x406553
mov eax, dword [ebx]
mov dword [ebp + 0xc], 0
test eax, eax
je 0x406553
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0xc]
push edx
push 0x430788
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x406553
mov esi, dword [ebp + 0xc]
mov ecx, 0xd
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x40]
mov esi, dword [ebp + 8]
mov ecx, eax
mov word [ebx + 0xa], ax
mov eax, dword [ebp - 0x3c]
mov edx, eax
mov word [ebx + 0xe], ax
mov eax, dword [ebp - 0x38]
shr ecx, 0x10
mov word [ebx + 8], cx
shr edx, 0x10
mov ecx, eax
mov word [ebx + 0x12], ax
mov eax, dword [ebp - 0x34]
mov word [ebx + 0xc], dx
mov edx, eax
mov word [ebx + 0x16], ax
mov eax, dword [ebp - 0x2c]
shr ecx, 0x10
shr edx, 0x10
mov word [ebx + 0x10], cx
mov ecx, dword [ebp - 0x28]
mov word [ebx + 0x14], dx
mov edx, dword [ebp - 0x24]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [ebx + 0x1c], ecx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], eax
mov ebx, dword [ebp - 8]
mov edi, 0x430720
call fcn.00406560
mov ebx, dword [ebp - 0xc]
mov edi, 0x430738
call fcn.00406560
mov ebx, dword [ebp - 0x10]
mov edi, 0x430758
call fcn.00406560
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x407320
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x4073c2
mov eax, dword [ebp - 4]
test eax, eax
je 0x4073d6
inc eax
push eax
call fcn.00410f50
mov esi, eax
add esp, 4
test esi, esi
je 0x4073e9
mov edx, dword [ebp - 4]
inc edx
push edx
push 0
push esi
call fcn.00411530
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push ecx
push esi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4073fd
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
lea ebx, [eax + edi]
cmp ebx, dword [ecx]
ja 0x407411
add edi, dword [ebp + 0xc]
push eax
push esi
push edi
call fcn.00417890
push esi
mov edi, ebx
call fcn.0041121b
mov edx, dword [ebp + 8]
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 4]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x407343
mov eax, dword [ebp + 0x10]
pop edi
pop esi
mov dword [eax], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [edx], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
call fcn.0041121b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx]
mov ecx, dword [ebp + 0xc]
sub eax, edi
push eax
lea edx, [edi + ecx]
push esi
push edx
call fcn.00417890
mov eax, dword [ebp + 0x10]
push esi
mov dword [eax], edi
call fcn.0041121b
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407980
Capabilities:
Check mutex on windows

Disassembly:
xor ecx, ecx
push 0x430814
push ecx
xor eax, eax
push ecx
mov dword [0x437bc0], 0x4308d0
mov dword [0x437bc4], 0
mov dword [0x437bc8], 0
mov word [0x437bcc], ax
mov word [0x437dd4], cx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x437bc4], eax
test eax, eax
jne 0x4079e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4079f0
push 0x430814
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x437bc4], eax
mov ecx, 0x437bc0
call fcn.00407a50
mov eax, 0x437bc0
ret

Function at 0x407a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x218]
push eax
mov edi, ecx
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x21c]
push edx
push str.IsSendDebugMsg
push str.SOFTWAREDebugMsg
push 0x80000002
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x407ab1
mov eax, dword [ebp - 0x214]
mov dword [edi + 8], eax
cmp dword [edi + 8], 0
je 0x407b6e
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.00411530
add esp, 0xc
push str.Kernel32.dll
mov dword [ebp - 0x210], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x210], eax
test eax, eax
je 0x407b37
push esi
push str.GetModuleHandleExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov dword [ebp - 0x210], eax
test esi, esi
je 0x407b36
lea ecx, [ebp - 0x210]
push ecx
push 0x407b80
push 4
call esi
mov eax, dword [ebp - 0x210]
pop esi
push 0x104
lea edx, [ebp - 0x20c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
lea eax, [ebp - 0x20c]
push eax
push str._sogou___s_
push 0x104
add edi, 0xc
push edi
call fcn.004110eb
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00410f66
mov esp, ebp
pop ebp
ret
Function at 0x407bf0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.00411530
push 0x103
lea ecx, [ebp - 0x20b]
push 0
push ecx
mov byte [ebp - 0x20c], 0
call fcn.00411530
add esp, 0x18
cmp dword [esi + 8], 0
je 0x407ce6
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0041f644
lea edi, [esi + 0xc]
add esp, 0x10
test edi, edi
jne 0x407c70
xor esi, esi
jmp 0x407cb1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x407cad
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0041a2d0
mov esi, esp
test esi, esi
je 0x407cad
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x407caf
xor eax, eax
mov esi, eax
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
push str._s__u____s
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0041f661
add esp, 0x18
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea esp, [ebp - 0x218]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret

Function at 0x407e50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00411530
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x407f71
mov eax, dword [ebp - 0x108]
cmp eax, 1
jne 0x407ebe
cmp dword [ebp - 0x114], 4
jne 0x407f71
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x407f71
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x407f1f
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x407eef
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x407f07
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x407f71
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x407f71
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x407f41
mov eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x407f59
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x407f71
mov eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00410f66
mov esp, ebp
pop ebp
ret
Function at 0x408170
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov edi, 0xffff
mov word [ebp - 0x20c], ax
call fcn.00411530
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push str.InstallPath
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 0x210], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40821d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
lea edx, [ebp - 0x20c]
push edx
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.SogouDownLoad
lea eax, [ebp - 0x20c]
push eax
push str._s_s
mov ecx, eax
push 0x104
push ecx
call fcn.004110eb
add esp, 0x14
push str.CommonState.dll
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x408251
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x408281
push str.GetCommonState
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40827a
call eax
movzx edi, ax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop esi
mov ax, di
xor ecx, ebp
pop edi
call fcn.00410f66
mov esp, ebp
pop ebp
ret
Function at 0x409060
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c85b
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x435080]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov eax, dword [0x435080]
xor eax, esp
push eax
lea eax, [esp + 0x2b0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x17], bl
call fcn.004093f0
add esp, 4
mov dword [esp + 0x2b8], ebx
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x4090d0
lea eax, [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40917f
push 1
lea ecx, [esp + 0x20]
call fcn.004093f0
mov eax, dword [esp + 0x3c]
add esp, 4
cmp dword [esp + 0x4c], 8
jae 0x40910d
lea eax, [esp + 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x54]
push ecx
push eax
call esi
cmp eax, 0xffffffff
je 0x4091ba
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 8
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x40913e
lea eax, [esp + 0x1c]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call edi
cmp dword [esp + 0x30], 8
mov esi, eax
jb 0x409163
mov eax, dword [esp + 0x1c]
push eax
call fcn.00410f5b
add esp, 4
xor ecx, ecx
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
cmp esi, 0xffffffff
je 0x40922d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x4091ad
mov eax, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x18]
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4091ad
mov bl, 1
cmp dword [esp + 0x14], edi
je 0x4091b1
mov bl, byte [esp + 0x13]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40922f
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x4091c9
lea eax, [esp + 0x1c]
lea edx, [esp + 0x54]
push edx
push eax
call esi
cmp eax, 0xffffffff
je 0x40912b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x38]
mov esi, 8
cmp dword [esp + 0x4c], esi
jae 0x4091f4
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x409202
lea eax, [esp + 0x1c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x409130
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x409221
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x409130
mov bl, cl
cmp dword [esp + 0x4c], 8
jb 0x409243
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00410f5b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x2b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.00410f66
mov esp, ebp
pop ebp
ret 4
Function at 0x409270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c828
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x435080]
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 eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], eax
call fcn.004093f0
add esp, 4
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4092be
lea eax, [ebp - 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40932b
push 1
lea ecx, [ebp - 0x2c]
call fcn.004093f0
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [ebp - 0x18], 8
jae 0x4092f3
lea eax, [ebp - 0x2c]
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push eax
call edi
cmp dword [ebp - 0x18], 8
mov esi, eax
jb 0x409316
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00410f5b
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp esi, 0xffffffff
je 0x409350
mov ecx, dword [ebp - 0x50]
push ebx
lea eax, [ebp - 0x4c]
push eax
push 0x10
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409349
cmp dword [ebp - 0x4c], 0x10
jne 0x409349
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], 8
jb 0x409362
mov edx, dword [ebp - 0x48]
push edx
call fcn.00410f5b
add esp, 4
mov al, bl
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.00410f66
mov esp, ebp
pop ebp
ret 4
Function at 0x4093f0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c7ed
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov dword [ebp - 0x240], edi
mov word [edi], ax
push 0x208
lea ecx, [ebp - 0x21c]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov dword [ebp - 0x23c], 1
call fcn.00411530
movzx edx, byte [ebp + 8]
add esp, 0xc
neg edx
sbb edx, edx
push 1
and edx, 0xfffffff7
add edx, 0x23
push edx
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409536
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4094a7
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x238]
call fcn.0040bbe0
push ebx
lea edx, [ebp - 0x238]
push edx
or eax, 0xffffffff
mov dword [ebp - 4], 1
call fcn.0040ba50
mov byte [ebp - 4], bl
cmp dword [ebp - 0x224], 8
jb 0x4094fa
mov eax, dword [ebp - 0x238]
push eax
call fcn.00410f5b
add esp, 4
mov ecx, edi
cmp byte [ebp + 8], bl
je 0x40950a
push 0x13
mov eax, str.TencentDeskUpdate
jmp 0x409511
push 0x10
mov eax, str.TencentDesktop
call fcn.0040bb00
mov ecx, edi
call fcn.00409560
test al, al
jne 0x409528
mov ecx, edi
call fcn.004096b0
push 0xa
mov eax, str.Global.db
mov ecx, edi
call fcn.0040bb00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410f66
mov esp, ebp
pop ebp
ret
Function at 0x40b960
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42be3b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x435080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0041ee96
push 4
mov dword [ebp - 4], 0
call fcn.00411277
mov edi, eax
add esp, 4
test edi, edi
je 0x40b9dc
call fcn.0041ed6e
mov dword [edi], eax
call fcn.0041eb2d
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041ee57
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40b9d2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041ee7f
jmp 0x40b9de
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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