joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409610
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bca8
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x2a8], eax
mov byte [ebp - 0x29d], bl
call fcn.00409970
add esp, 4
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x38], 8
mov eax, dword [ebp - 0x4c]
jae 0x40966a
lea eax, [ebp - 0x4c]
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 0x40970f
push 1
lea ecx, [ebp - 0x30]
call fcn.00409970
mov eax, dword [ebp - 0x4c]
add esp, 4
cmp dword [ebp - 0x38], 8
jae 0x4096a3
lea eax, [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x29c]
push ecx
push eax
call esi
cmp eax, 0xffffffff
je 0x409752
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 8
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x4096d3
lea eax, [ebp - 0x30]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call edi
cmp dword [ebp - 0x1c], 8
mov esi, eax
jb 0x4096f6
mov eax, dword [ebp - 0x30]
push eax
call fcn.004114ab
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
cmp esi, 0xffffffff
je 0x4097bb
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x409743
mov eax, dword [ebp - 0x2a8]
push ebx
lea edx, [ebp - 0x2a4]
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409743
mov bl, 1
cmp dword [ebp - 0x2a4], edi
je 0x409749
mov bl, byte [ebp - 0x29d]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4097bd
cmp dword [ebp - 0x1c], 8
mov eax, dword [ebp - 0x30]
jae 0x40975e
lea eax, [ebp - 0x30]
lea edx, [ebp - 0x29c]
push edx
push eax
call esi
cmp eax, 0xffffffff
je 0x4096c3
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x4c]
mov esi, 8
cmp dword [ebp - 0x38], esi
jae 0x409788
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x409793
lea eax, [ebp - 0x30]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4096c8
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x1c], esi
jae 0x4097af
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4096c8
mov bl, cl
cmp dword [ebp - 0x38], 8
jb 0x4097cf
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.004114ab
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 - 0x14]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret 4
Function at 0x4097f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bc78
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.00409970
add esp, 4
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x40983e
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 0x4098ab
push 1
lea ecx, [ebp - 0x2c]
call fcn.00409970
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [ebp - 0x18], 8
jae 0x409873
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 0x409896
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004114ab
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 0x4098d0
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 0x4098c9
cmp dword [ebp - 0x4c], 0x10
jne 0x4098c9
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], 8
jb 0x4098e2
mov edx, dword [ebp - 0x48]
push edx
call fcn.004114ab
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.004114b6
mov esp, ebp
pop ebp
ret 4
Function at 0x409970
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bc3d
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.00411a80
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 0x409ab6
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 0x409a27
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
lea ecx, [ebp - 0x238]
call fcn.0040c160
push ebx
lea edx, [ebp - 0x238]
push edx
or eax, 0xffffffff
mov dword [ebp - 4], 1
call fcn.0040bfd0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x224], 8
jb 0x409a7a
mov eax, dword [ebp - 0x238]
push eax
call fcn.004114ab
add esp, 4
mov ecx, edi
cmp byte [ebp + 8], bl
je 0x409a8a
push 0x13
mov eax, str.TencentDeskUpdate
jmp 0x409a91
push 0x10
mov eax, str.TencentDesktop
call fcn.0040c080
mov ecx, edi
call fcn.00409ae0
test al, al
jne 0x409aa8
mov ecx, edi
call fcn.00409c10
push 0xa
mov eax, str.Global.db
mov ecx, edi
call fcn.0040c080
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.004114b6
mov esp, ebp
pop ebp
ret
Function at 0x40bee0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b26b
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.0041f379
push 4
mov dword [ebp - 4], 0
call fcn.004117c7
mov edi, eax
add esp, 4
test edi, edi
je 0x40bf5c
call fcn.0041f251
mov dword [edi], eax
call fcn.0041f010
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0041f33a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40bf52
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0041f362
jmp 0x40bf5e
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 0x40f860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa8
call fcn.00418640
mov eax, dword [0x435080]
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.00411a80
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.00420b1d
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 0x40f8ec
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret
push str.GetAdaptersInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f9df
lea edx, [ebp - 0x2aa4]
push edx
lea ecx, [ebp - 0x2a90]
push ecx
mov dword [ebp - 0x2aa4], 0x2880
call eax
test eax, eax
jne 0x40f9df
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.0040fa40
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 0x40f97c
inc ecx
cmp ecx, 6
jb 0x40f960
jmp 0x40f98d
cmp dword [esi + 0x1a0], 6
jne 0x40f9ce
cmp dword [ebp - 0x2a9c], eax
jle 0x40f9ce
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 0x40f943
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 0x40fa2d
inc eax
cmp eax, 6
jb 0x40fa00
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.004114b6
mov esp, ebp
pop ebp
ret
xor al, al
jmp 0x40fa16
Function at 0x40fa40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x120]
push eax
xor ebx, ebx
push 0x20019
push ebx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov esi, ecx
mov dword [ebp - 0x10c], 3
mov dword [ebp - 0x11c], 0x104
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
call edi
test eax, eax
jne 0x40fc11
push esi
push str._sConnection
push 0xffffffffffffffff
lea ecx, [ebp - 0x108]
push 0x103
push ecx
call fcn.0041f954
mov ecx, dword [ebp - 0x120]
add esp, 0x14
lea edx, [ebp - 0x114]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push ecx
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40fc08
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [ebp - 0x11c]
push edx
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x118]
push ecx
push ebx
push str.MediaSubType
push edx
call esi
test eax, eax
jne 0x40fbff
push 0x104
lea eax, [ebp - 0x108]
push ebx
push eax
mov dword [ebp - 0x118], 1
mov dword [ebp - 0x11c], 0x103
call fcn.00411a80
add esp, 0xc
lea ecx, [ebp - 0x11c]
push ecx
mov ecx, dword [ebp - 0x114]
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x118]
push eax
push ebx
push str.PnpInstanceID
push ecx
call esi
test eax, eax
jne 0x40fbff
mov esi, 1
cmp dword [ebp - 0x110], esi
jne 0x40fbe9
push 3
lea edx, [ebp - 0x108]
push 0x430da8
push edx
call fcn.0041e788
add esp, 0xc
test eax, eax
jne 0x40fbbb
mov dword [ebp - 0x10c], ebx
jmp 0x40fbff
cmp dword [ebp - 0x110], esi
jne 0x40fbe9
push 3
lea eax, [ebp - 0x108]
push 0x430da8
push eax
call fcn.0041e788
add esp, 0xc
test eax, eax
je 0x40fbe9
mov dword [ebp - 0x10c], 2
jmp 0x40fbff
xor ecx, ecx
cmp dword [ebp - 0x110], 2
setne cl
lea ecx, [ecx + ecx + 1]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x114]
push edx
call edi
mov eax, dword [ebp - 0x120]
push eax
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004114b6
mov esp, ebp
pop ebp
ret
Function at 0x40fc30
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40fc99
push esi
call ebx
test eax, eax
jne 0x40fc99
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00411a80
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CheckUpdate:_Delete_profile_faile__Error_Num__d
lea edx, [ebp - 0x210]
push 0x104
push edx
call fcn.0041163b
add esp, 0x10
mov ecx, esi
call fcn.0040fd50
push esi
mov edi, eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.004114b6
mov esp, ebp
pop ebp
ret

Function at 0x40fcc0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c038
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x435080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.MUTEX_OVERWRITEINSTALL
push 1
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40fd29
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.0040fe80
mov edi, eax
test esi, esi
je 0x40fd3b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40fe80
Capabilities:
Check if file exists
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18a8
call fcn.00418640
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x496]
push ecx
mov word [ebp - 0x498], ax
call fcn.00411a80
add esp, 0xc
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x10a6]
push eax
mov word [ebp - 0x10a8], dx
call fcn.00411a80
add esp, 0xc
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x86]
push edx
mov word [ebp - 0x88], cx
call fcn.00411a80
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x69e]
push ecx
mov word [ebp - 0x6a0], ax
call fcn.00411a80
add esp, 0xc
push ebx
xor edi, edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ff36
mov ecx, ebx
call fcn.0040fd50
test eax, eax
jne 0x40ff36
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push ebx
push 0x40
lea edx, [ebp - 0x88]
push edx
push 0
push str.version
push str.AppInfo
call esi
test eax, eax
je 0x4100b9
push ebx
push 0x400
lea eax, [ebp - 0x10a8]
push eax
push 0
push 0x430f64
push str.AppInfo
call esi
test eax, eax
je 0x4100b9
push 0x104
lea ecx, [ebx + 0x208]
push ecx
lea edx, [ebp - 0x498]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push str.Setup.exe
lea eax, [ebp - 0x498]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
push 0x104
lea ecx, [ebp - 0x6a0]
push ecx
push 0
push str.general
push str.AppInfo
call esi
test eax, eax
je 0x4100b9
lea edx, [ebp - 0x498]
lea ecx, [ebp - 0x6a0]
lea edi, [ebp - 0x10a8]
call fcn.004103e0
mov edi, eax
test edi, edi
je 0x4100b9
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x18a6]
push eax
mov word [ebp - 0x18a8], dx
call fcn.00411a80
add esp, 0xc
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x8a6]
push edx
mov word [ebp - 0x8a8], cx
call fcn.00411a80
add esp, 0xc
push 0x104
lea esi, [ebp - 0x8a8]
call fcn.00402fa0
add esp, 4
mov eax, esi
push eax
push str.http:__t.sogou.com_update_platform_done.php_v_sappnamesogoudownload_checkupdatestate1
lea ecx, [ebp - 0x18a8]
push 0x3ff
push ecx
call fcn.0041163b
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x28e]
push eax
mov word [ebp - 0x290], dx
call fcn.00411a80
add esp, 0x1c
lea ecx, [ebp - 0x290]
push ecx
lea edx, [ebp - 0x18a8]
push edx
call fcn.00411210
add esp, 8
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4100b9
lea ecx, [ebp - 0x290]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4100b9
lea edx, [ebp - 0x290]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x498]
push eax
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004114b6
mov esp, ebp
pop ebp
ret
Function at 0x4100e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x4102db
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
test eax, eax
je 0x4102db
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4101ec
push 0x103
lea ecx, [ebp - 0x10f]
push 0
push ecx
mov byte [ebp - 0x110], 0
call fcn.00411a80
add esp, 0xc
test ebx, ebx
jne 0x410154
xor eax, eax
jmp 0x41017d
push ebx
call esi
inc eax
cmp eax, 0x3fffffff
jle 0x410163
xor eax, eax
jmp 0x41017d
lea edi, [eax + eax]
mov eax, edi
call fcn.0041a780
mov esi, esp
mov edx, 3
mov ecx, edi
mov eax, ebx
call fcn.00404f20
lea edi, [ebp - 0x110]
mov ecx, eax
call fcn.00410d50
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x4101a2
xor eax, eax
jmp 0x4101bb
lea eax, [edi + edi]
call fcn.0041a780
mov esi, esp
push 3
mov edx, edi
lea eax, [ebp - 0x110]
call fcn.004065c0
mov ecx, dword [ebp - 0x21c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4101d7
mov eax, 1
jmp 0x4102dd
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4102db
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x220]
push ebx
xor ecx, ecx
call fcn.00411080
add esp, 4
test eax, eax
je 0x4102db
push 0x103
lea edx, [ebp - 0x217]
push 0
push edx
mov byte [ebp - 0x218], 0
call fcn.00411a80
add esp, 0xc
test ebx, ebx
jne 0x41022a
xor eax, eax
jmp 0x410253
push ebx
call esi
inc eax
cmp eax, 0x3fffffff
jle 0x410239
xor eax, eax
jmp 0x410253
lea edi, [eax + eax]
mov eax, edi
call fcn.0041a780
mov esi, esp
mov edx, 3
mov ecx, edi
mov eax, ebx
call fcn.00404f20
lea edi, [ebp - 0x218]
mov ecx, eax
call fcn.00410d50
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [eax + 1]
cmp edi, 0x3fffffff
jle 0x410278
xor eax, eax
jmp 0x410291
lea eax, [edi + edi]
call fcn.0041a780
mov esi, esp
push 3
mov edx, edi
lea eax, [ebp - 0x218]
call fcn.004065c0
mov esi, dword [ebp - 0x21c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4101cd
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x4102d4
lea edi, [eax + eax]
mov eax, edi
call fcn.0041a780
mov eax, dword [ebp - 0x21c]
mov esi, esp
mov edx, 3
mov ecx, edi
call fcn.00404f20
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea esp, [ebp - 0x228]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret
Function at 0x410300
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x38
xor edi, edi
lea eax, [ebp - 0x150]
push edi
push eax
mov dword [ebp - 0x154], 0x3c
call fcn.00411a80
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x140], str._Update
mov dword [ebp - 0x138], 1
mov dword [ebp - 0x150], 0x40
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x410389
cmp dword [ebp - 0x114], 6
jb 0x410389
mov dword [ebp - 0x148], str.runas
lea edx, [ebp - 0x154]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4103c0
mov eax, dword [ebp - 0x11c]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4103b3
lea edi, [eax + 1]
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.004114b6
mov esp, ebp
pop ebp
ret

Function at 0x4103e0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
mov ebx, ecx
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov esi, edx
mov word [ebp - 0x210], ax
call fcn.00411a80
add esp, 0xc
test esi, esi
jne 0x410441
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.TempExe.exe
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x41044f
push esi
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push ebx
push edi
lea ebx, [ebp - 0x210]
call fcn.004100e0
add esp, 8
test eax, eax
jne 0x410475
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410463
lea esi, [ebp - 0x210]
call fcn.00410300
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004114b6
mov esp, ebp
pop ebp
ret