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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cb4b
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x435084]
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.00415d50
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x446]
push eax
mov word [ebp - 0x448], dx
call fcn.00415d50
add esp, 0xc
lea ecx, [ebp - 0x464]
push ecx
call fcn.004084d0
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.0040d820
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 0x405d49
xor edi, edi
lea ecx, [ebp - 0x468]
push ecx
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x46c]
push eax
push 0x430690
push str.SOFTWARESogouSoftware
push 0x80000002
mov dword [ebp - 0x468], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x405d9a
push str.sogousoftware_normal
lea ecx, [ebp - 0x240]
push 0x104
push ecx
call fcn.00413574
add esp, 0xc
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_srctypesogousoftwaregid_sunc_s
lea edx, [esi + 0x54]
call fcn.004020c0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
add esi, 0x50
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.00410f94
mov esp, ebp
pop ebp
ret
Function at 0x406070
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x435084]
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 0x4060ef
push esi
push 4
push str.SogouSoftwareUpdate
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x4060e7
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 0x4060e0
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.00410f94
mov esp, ebp
pop ebp
ret

Function at 0x406510
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push 0x437e74
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x437e68], 0
jne 0x406541
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x437e68], eax
test eax, eax
je 0x406578
cmp dword [0x437e70], 0
je 0x406578
lea eax, [ebp - 4]
push eax
push 0
push 0x437e30
push 0x4065d0
push 0
push 0
call fcn.0041c6e0
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [0x437e64], eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x406b90
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.00415d50
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, edi
je 0x406bc9
cmp word [eax], di
je 0x406bc9
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 0x406bd6
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.00415d50
push 0x410
lea eax, [ebx + 0x848]
push edi
push eax
mov dword [ebp - 0x10], eax
call fcn.00415d50
push 0x410
lea eax, [ebx + 0xc58]
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.00415d50
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 0x406d43
lea edi, [esi + 1]
push edi
call fcn.00410f89
push edi
push 0
push eax
mov dword [ebx], eax
call fcn.00415d50
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 0x406d43
mov eax, dword [ebx]
mov dword [ebp + 0xc], 0
test eax, eax
je 0x406d43
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0xc]
push edx
push 0x430afc
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x406d43
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, 0x430b00
call fcn.00406d50
mov ebx, dword [ebp - 0xc]
mov edi, 0x430b18
call fcn.00406d50
mov ebx, dword [ebp - 0x10]
mov edi, 0x430b38
call fcn.00406d50
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 0x407b00
Capabilities:
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
push edi
push edi
lea edx, [ebp - 0x214]
push edx
push ebx
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], ecx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x407bfc
mov edi, edi
cmp dword [ebp - 0x214], 0
je 0x407c1c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x407ce6
mov edx, dword [ebp - 0x214]
inc edx
push edx
call fcn.00410f89
mov esi, eax
add esp, 4
test esi, esi
je 0x407c3b
mov eax, dword [ebp - 0x214]
inc eax
push eax
push 0
push esi
call fcn.00415d50
mov edx, dword [ebp - 0x214]
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push edx
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x407c5b
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 0x210]
lea ecx, [eax + edi]
mov dword [ebp - 0x224], ecx
cmp ecx, dword [edx]
ja 0x407c66
push eax
mov eax, dword [ebp - 0x21c]
add eax, edi
push esi
push eax
call fcn.004179b0
mov edi, dword [ebp - 0x224]
push esi
call fcn.00411ad6
add esp, 0x10
push 0
push 0
lea ecx, [ebp - 0x214]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x407b40
mov edx, dword [ebp - 0x210]
pop edi
mov dword [edx], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f94
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x210]
mov dword [eax], edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f94
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x210]
pop edi
mov dword [ecx], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f94
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.00411ad6
jmp 0x407ce3
mov edx, dword [edx]
mov eax, dword [ebp - 0x21c]
sub edx, edi
push edx
add eax, edi
push esi
push eax
call fcn.004179b0
mov ecx, dword [ebp - 0x218]
add ecx, edi
mov edi, dword [ebp - 0x210]
push esi
mov dword [edi], ecx
call fcn.00411ad6
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.00415d50
add esp, 0x1c
push 0
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x20c]
push edx
push 5
push ebx
mov dword [ebp - 0x220], 0x208
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x407ce6
lea eax, [ebp - 0x20c]
push eax
call fcn.00411a6b
mov dword [edi], eax
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00410f94
mov esp, ebp
pop ebp
ret 8
Function at 0x4085f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00415d50
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 0x408711
mov eax, dword [ebp - 0x108]
cmp eax, 1
jne 0x40865e
cmp dword [ebp - 0x114], 4
jne 0x408711
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f94
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x408711
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x4086bf
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x40868f
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f94
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4086a7
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f94
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x408711
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f94
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x408711
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x4086e1
mov eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f94
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4086f9
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f94
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x408711
mov eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f94
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00410f94
mov esp, ebp
pop ebp
ret

Function at 0x408900
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c4d8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x435084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4362dc]
mov ebx, 0xffff
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.004033b0
push str.CommonState.dll
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.CommonState.dll
lea ecx, [ebp - 0x10]
push ecx
mov esi, eax
call fcn.004029f0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4089a4
lea edx, [esi - 0xc]
cmp edx, 0x4362cc
je 0x40898d
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40898d
push esi
call fcn.00411ad6
add esp, 4
mov eax, 0xffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4089cd
push str.GetCommonState
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4089c6
call eax
movzx ebx, ax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esi - 0xc]
cmp eax, 0x4362cc
je 0x4089ee
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4089ee
push esi
call fcn.00411ad6
add esp, 4
mov ax, bx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4097d0
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c9fb
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x435084]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push esi
push edi
mov eax, dword [0x435084]
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.00409b60
add esp, 4
mov dword [esp + 0x2b8], ebx
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x409840
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 0x4098ef
push 1
lea ecx, [esp + 0x20]
call fcn.00409b60
mov eax, dword [esp + 0x3c]
add esp, 4
cmp dword [esp + 0x4c], 8
jae 0x40987d
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 0x40992a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 8
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x4098ae
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 0x4098d3
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041155e
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 0x40999d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x40991d
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 0x40991d
mov bl, 1
cmp dword [esp + 0x14], edi
je 0x409921
mov bl, byte [esp + 0x13]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40999f
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x409939
lea eax, [esp + 0x1c]
lea edx, [esp + 0x54]
push edx
push eax
call esi
cmp eax, 0xffffffff
je 0x40989b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x38]
mov esi, 8
cmp dword [esp + 0x4c], esi
jae 0x409964
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x409972
lea eax, [esp + 0x1c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4098a0
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x409991
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4098a0
mov bl, cl
cmp dword [esp + 0x4c], 8
jb 0x4099b3
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0041155e
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.00410f94
mov esp, ebp
pop ebp
ret 4
Function at 0x4099e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x435084]
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.00409b60
add esp, 4
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x409a2e
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 0x409a9b
push 1
lea ecx, [ebp - 0x2c]
call fcn.00409b60
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [ebp - 0x18], 8
jae 0x409a63
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 0x409a86
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041155e
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 0x409ac0
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 0x409ab9
cmp dword [ebp - 0x4c], 0x10
jne 0x409ab9
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], 8
jb 0x409ad2
mov edx, dword [ebp - 0x48]
push edx
call fcn.0041155e
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.00410f94
mov esp, ebp
pop ebp
ret 4
Function at 0x409b60
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c98d
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x435084]
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.00415d50
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 0x409ca6
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 0x409c17
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x238]
call fcn.00405840
push ebx
lea edx, [ebp - 0x238]
push edx
or eax, 0xffffffff
mov dword [ebp - 4], 1
call fcn.0040c110
mov byte [ebp - 4], bl
cmp dword [ebp - 0x224], 8
jb 0x409c6a
mov eax, dword [ebp - 0x238]
push eax
call fcn.0041155e
add esp, 4
mov ecx, edi
cmp byte [ebp + 8], bl
je 0x409c7a
push 0x13
mov eax, str.TencentDeskUpdate
jmp 0x409c81
push 0x10
mov eax, str.TencentDesktop
call fcn.0040c1c0
mov ecx, edi
call fcn.00409cd0
test al, al
jne 0x409c98
mov ecx, edi
call fcn.00409e20
push 0xa
mov eax, str.Global.db
mov ecx, edi
call fcn.0040c1c0
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.00410f94
mov esp, ebp
pop ebp
ret
Function at 0x40c020
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bd0b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x435084]
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.0041b5ac
push 4
mov dword [ebp - 4], 0
call fcn.004115ba
mov edi, eax
add esp, 4
test edi, edi
je 0x40c09c
call fcn.0041b484
mov dword [edi], eax
call fcn.0041b243
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041b56d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40c092
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041b595
jmp 0x40c09e
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
Function at 0x40f560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa8
call fcn.00417420
mov eax, dword [0x435084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x208
mov edi, ecx
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00415d50
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0xd
lea eax, [ebp - 0x210]
push str.iphlpapi.dll
push eax
call fcn.0041d39d
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x2aa0], esi
test esi, esi
jne 0x40f5ec
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f94
mov esp, ebp
pop ebp
ret
push str.GetAdaptersInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f6df
lea edx, [ebp - 0x2aa4]
push edx
lea ecx, [ebp - 0x2a90]
push ecx
mov dword [ebp - 0x2aa4], 0x2880
call eax
test eax, eax
jne 0x40f6df
mov eax, edi
lea edx, [ebp - 0x2a98]
sub eax, edx
lea esi, [ebp - 0x2a90]
mov dword [ebp - 0x2a9c], 3
mov dword [ebp - 0x2aa8], eax
push ebx
lea ecx, [esi + 8]
call fcn.0040f740
xor ecx, ecx
mov dword [ebp - 0x2a98], ecx
mov word [ebp - 0x2a94], cx
lea ebx, [ebx]
mov ebx, dword [ebp - 0x2aa8]
lea edx, [ebp + ecx - 0x2a98]
mov bl, byte [ebx + edx]
cmp bl, byte [edx]
jne 0x40f67c
inc ecx
cmp ecx, 6
jb 0x40f660
jmp 0x40f68d
cmp dword [esi + 0x1a0], 6
jne 0x40f6ce
cmp dword [ebp - 0x2a9c], eax
jle 0x40f6ce
movzx ecx, byte [esi + 0x194]
mov byte [edi], cl
movzx edx, byte [esi + 0x195]
mov byte [edi + 1], dl
movzx ecx, byte [esi + 0x196]
mov byte [edi + 2], cl
movzx edx, byte [esi + 0x197]
mov byte [edi + 3], dl
movzx ecx, byte [esi + 0x198]
mov byte [edi + 4], cl
movzx edx, byte [esi + 0x199]
mov byte [edi + 5], dl
mov dword [ebp - 0x2a9c], eax
mov esi, dword [esi]
test esi, esi
jne 0x40f643
mov esi, dword [ebp - 0x2aa0]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
lea ecx, [ebp - 0x2a98]
mov dword [ebp - 0x2a98], eax
mov word [ebp - 0x2a94], ax
sub edi, ecx
lea ecx, [ecx]
lea ecx, [ebp + eax - 0x2a98]
mov dl, byte [edi + ecx]
cmp dl, byte [ecx]
jne 0x40f72d
inc eax
cmp eax, 6
jb 0x40f700
mov al, 1
xor ecx, ecx
test al, al
sete al
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00410f94
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x40f716