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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cb28
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x435080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
push esi
lea ecx, [ebp - 0x14]
push ecx
push str.HWID
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 0x10], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40303e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x403074
push edi
push 0
push esi
call fcn.00411510
add esp, 0xc
mov dword [ebp - 0x14], vtable.CQMSeqIDGen.0
push esi
mov dword [ebp - 4], 0
call fcn.00408c70
movzx eax, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x403090
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00411510
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0x430474
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40313b
push str.x400443_18
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov eax, dword [ebp + 8]
push eax
push esi
push 1
push 0x430474
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
je 0x40313b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f46
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00410f46
mov esp, ebp
pop ebp
ret
Function at 0x403150
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x480
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x40
xor edi, edi
lea eax, [ebp - 0x47c]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x480], 0x44
call fcn.00411510
xor eax, eax
push 0x40e
lea edx, [ebp - 0x416]
xor ecx, ecx
push edi
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
push edx
mov dword [ebp - 0x424], 0xc
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], eax
mov word [ebp - 0x418], cx
call fcn.00411510
push 0x207
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.0041f1bd
add esp, 0x24
lea ecx, [ebp - 0x434]
push ecx
lea edx, [ebp - 0x480]
push edx
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x424]
push eax
mov ecx, eax
push ecx
lea edx, [ebp - 0x418]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x403238
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f46
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x434]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403251
lea edi, [eax + 1]
mov ecx, dword [ebp - 0x434]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x430]
push edx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00410f46
mov esp, ebp
pop ebp
ret

Function at 0x404710
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 0x4047ac
nop
mov eax, dword [ebp - 4]
test eax, eax
je 0x4047e5
inc eax
push eax
call fcn.00410f30
mov esi, eax
add esp, 4
test esi, esi
je 0x4047ac
mov edx, dword [ebp - 4]
inc edx
push edx
push 0
push esi
call fcn.00411510
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 0x4047b5
mov eax, dword [ebp - 8]
lea ebx, [eax + edi]
cmp ebx, 0x32000
ja 0x4047ca
add edi, dword [ebp + 0xc]
push eax
push esi
push edi
call fcn.00417870
push esi
mov edi, ebx
call fcn.004111fb
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 0x404730
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004111fb
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x32000
sub eax, edi
add edi, dword [ebp + 0xc]
push eax
push esi
push edi
call fcn.00417870
push esi
call fcn.004111fb
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cb7b
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.00411510
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x446]
push eax
mov word [ebp - 0x448], dx
call fcn.00411510
add esp, 0xc
lea ecx, [ebp - 0x464]
push ecx
call fcn.00407d10
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.0040d5d0
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 0x405089
xor edi, edi
lea ecx, [ebp - 0x468]
push ecx
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x46c]
push eax
push 0x430474
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 0x468], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4050d3
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.00406360
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.00410f46
mov esp, ebp
pop ebp
ret
Function at 0x405360
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 0x4053df
push esi
push 4
push str.UpdateService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x4053d7
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 0x4053d0
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.00410f46
mov esp, ebp
pop ebp
ret

Function at 0x405780
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x438024], 0
jne 0x4057f1
push 1
push 0x438024
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x438018], 0
jne 0x4057ba
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x438018], eax
test eax, eax
je 0x4057f1
cmp dword [0x438020], 0
je 0x4057f1
lea eax, [ebp - 4]
push eax
push 0
push 0x437fe0
push 0x405830
push 0
push 0
call fcn.0041f43a
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 0x406380
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.00411510
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, edi
je 0x4063b9
cmp word [eax], di
je 0x4063b9
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 0x4063c6
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.00411510
push 0x410
lea eax, [ebx + 0x848]
push edi
push eax
mov dword [ebp - 0x10], eax
call fcn.00411510
push 0x410
lea eax, [ebx + 0xc58]
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.00411510
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 0x406533
lea edi, [esi + 1]
push edi
call fcn.00410f30
push edi
push 0
push eax
mov dword [ebx], eax
call fcn.00411510
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 0x406533
mov eax, dword [ebx]
mov dword [ebp + 0xc], 0
test eax, eax
je 0x406533
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0xc]
push edx
push 0x430778
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x406533
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, 0x430710
call fcn.00406540
mov ebx, dword [ebp - 0xc]
mov edi, 0x430728
call fcn.00406540
mov ebx, dword [ebp - 0x10]
mov edi, 0x430748
call fcn.00406540
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 0x407300
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 0x4073a2
mov eax, dword [ebp - 4]
test eax, eax
je 0x4073b6
inc eax
push eax
call fcn.00410f30
mov esi, eax
add esp, 4
test esi, esi
je 0x4073c4
mov edx, dword [ebp - 4]
inc edx
push edx
push 0
push esi
call fcn.00411510
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 0x4073d8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
lea ebx, [eax + edi]
cmp ebx, dword [ecx]
ja 0x4073ec
add edi, dword [ebp + 0xc]
push eax
push esi
push edi
call fcn.00417870
push esi
mov edi, ebx
call fcn.004111fb
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 0x407323
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
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
pop edi
pop esi
mov dword [ecx], 0
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
call fcn.004111fb
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
sub edx, edi
push edx
lea ecx, [edi + eax]
push esi
push ecx
call fcn.00417870
mov edx, dword [ebp + 0x10]
push esi
mov dword [edx], edi
call fcn.004111fb
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407960
Capabilities:
Check mutex on windows

Disassembly:
xor ecx, ecx
push 0x430808
push ecx
xor eax, eax
push ecx
mov dword [0x437bc0], 0x4308c4
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 0x4079c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4079d0
push 0x430808
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x437bc4], eax
mov ecx, 0x437bc0
call fcn.00407a30
mov eax, 0x437bc0
ret

Function at 0x407a30
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 0x407a91
mov eax, dword [ebp - 0x214]
mov dword [edi + 8], eax
cmp dword [edi + 8], 0
je 0x407b4e
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.00411510
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 0x407b17
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 0x407b16
lea ecx, [ebp - 0x210]
push ecx
push 0x407b60
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.004110cb
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00410f46
mov esp, ebp
pop ebp
ret
Function at 0x407bd0
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.00411510
push 0x103
lea ecx, [ebp - 0x20b]
push 0
push ecx
mov byte [ebp - 0x20c], 0
call fcn.00411510
add esp, 0x18
cmp dword [esi + 8], 0
je 0x407cc6
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0041f5b4
lea edi, [esi + 0xc]
add esp, 0x10
test edi, edi
jne 0x407c50
xor esi, esi
jmp 0x407c91
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x407c8d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0041a2b0
mov esi, esp
test esi, esi
je 0x407c8d
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 0x407c8f
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.0041f5d1
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.00410f46
mov esp, ebp
pop ebp
ret

Function at 0x407e30
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.00411510
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 0x407f51
mov eax, dword [ebp - 0x108]
cmp eax, 1
jne 0x407e9e
cmp dword [ebp - 0x114], 4
jne 0x407f51
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f46
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x407f51
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x407eff
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x407ecf
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f46
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x407ee7
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f46
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x407f51
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f46
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x407f51
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x407f21
mov eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f46
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x407f39
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f46
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x407f51
mov eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f46
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00410f46
mov esp, ebp
pop ebp
ret
Function at 0x408140
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.00411510
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 0x4081ed
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.004110cb
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 0x408221
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f46
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 0x408251
push str.GetCommonState
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40824a
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.00410f46
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 0x42c84b
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.00410f3b
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.00410f3b
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.00410f46
mov esp, ebp
pop ebp
ret 4