joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403120
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1288
call fcn.00418640
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00411a80
add esp, 0xc
lea edx, [ebp - 0x1284]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 8]
push ecx
push str.InstallPath
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 0x1284], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4031c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
lea edx, [ebp - 0x218]
push edx
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.SogouDownLoad
lea eax, [ebp - 0x218]
push eax
push str._s_s
mov ecx, eax
push 0x104
push ecx
call fcn.0041163b
add esp, 0x14
push str.DownLoadDlg.exe
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40323b
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x1280]
push edx
call fcn.004065f0
mov eax, dword [ebp - 0x1270]
mov ecx, dword [ebp - 0x126c]
mov dword [ebp - 0xc], eax
movzx edx, word [ebp - 0xa]
movzx eax, ax
shl eax, 8
add eax, edx
mov dword [ebp - 8], ecx
movzx edx, word [ebp - 6]
shl eax, 8
movzx ecx, cx
add eax, ecx
shl eax, 8
add eax, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004114b6
mov esp, ebp
pop ebp
ret

Function at 0x403250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bfa8
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 0x4032ae
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 0x4032e4
push edi
push 0
push esi
call fcn.00411a80
add esp, 0xc
mov dword [ebp - 0x14], vtable.CQMSeqIDGen.0
push esi
mov dword [ebp - 4], 0
call fcn.00409220
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 0x403300
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.00411a80
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0x4304e0
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4033ab
push str.sogou_download
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 0x4304e0
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
je 0x4033ab
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004114b6
mov esp, ebp
pop ebp
ret

Function at 0x4033c0
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.00411a80
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.00411a80
push 0x207
push esi
lea eax, [ebp - 0x418]
push 0x208
push eax
call fcn.00417ba9
add esp, 0x28
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 0x4034ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
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 0x4034c6
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.004114b6
mov esp, ebp
pop ebp
ret
Function at 0x4048e0
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 0x40497c
nop
mov eax, dword [ebp - 4]
test eax, eax
je 0x4049b5
inc eax
push eax
call fcn.004114a0
mov esi, eax
add esp, 4
test esi, esi
je 0x40497c
mov edx, dword [ebp - 4]
inc edx
push edx
push 0
push esi
call fcn.00411a80
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 0x404985
mov eax, dword [ebp - 8]
lea ebx, [eax + edi]
cmp ebx, 0x32000
ja 0x40499a
add edi, dword [ebp + 0xc]
push eax
push esi
push edi
call fcn.00417d40
push esi
mov edi, ebx
call fcn.0041176b
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 0x404900
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.0041176b
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.00417d40
push esi
call fcn.0041176b
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bffb
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.00411a80
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x446]
push eax
mov word [ebp - 0x448], dx
call fcn.00411a80
add esp, 0xc
lea ecx, [ebp - 0x464]
push ecx
call fcn.004082c0
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.0040db40
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 0x405809
xor edi, edi
lea ecx, [ebp - 0x468]
push ecx
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x46c]
push eax
push 0x4304e0
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 0x468], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x405853
push str.sogou_download
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 + 0x50]
call fcn.00405450
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 1
add esi, 0x4c
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.004114b6
mov esp, ebp
pop ebp
ret
Function at 0x405af0
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 0x405b6f
push esi
push 4
push str.UpdateService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x405b67
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 0x405b60
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.004114b6
mov esp, ebp
pop ebp
ret

Function at 0x405f20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0xffffffffffffffff
push 0x437c08
call esi
mov eax, dword [0x437c04]
test eax, eax
jne 0x405f9e
push 1
push 0x437c04
call esi
cmp dword [0x437bf8], 0
jne 0x405f66
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x437bf8], eax
test eax, eax
je 0x405f9e
cmp dword [0x437c00], 0
je 0x405f9e
lea ecx, [ebp - 4]
push ecx
push 0
push 0x437bc0
push 0x405ff0
push 0
push 0
call fcn.0041fb67
xor edx, edx
add esp, 0x18
test eax, eax
setne dl
mov dword [0x437bf4], eax
pop esi
mov eax, edx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4065f0
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.00411a80
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, edi
je 0x406629
cmp word [eax], di
je 0x406629
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 0x406636
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.00411a80
push 0x410
lea eax, [ebx + 0x848]
push edi
push eax
mov dword [ebp - 0x10], eax
call fcn.00411a80
push 0x410
lea eax, [ebx + 0xc58]
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.00411a80
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 0x4067a3
lea edi, [esi + 1]
push edi
call fcn.004114a0
push edi
push 0
push eax
mov dword [ebx], eax
call fcn.00411a80
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 0x4067a3
mov eax, dword [ebx]
mov dword [ebp + 0xc], 0
test eax, eax
je 0x4067a3
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0xc]
push edx
push 0x43088c
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4067a3
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, 0x430824
call fcn.004067b0
mov ebx, dword [ebp - 0xc]
mov edi, 0x43083c
call fcn.004067b0
mov ebx, dword [ebp - 0x10]
mov edi, 0x43085c
call fcn.004067b0
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 0x407560
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 [0x435080]
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 0x40765c
mov edi, edi
cmp dword [ebp - 0x214], 0
je 0x40767c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x407746
mov edx, dword [ebp - 0x214]
inc edx
push edx
call fcn.004114a0
mov esi, eax
add esp, 4
test esi, esi
je 0x40769b
mov eax, dword [ebp - 0x214]
inc eax
push eax
push 0
push esi
call fcn.00411a80
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 0x4076bb
mov eax, dword [ebp - 0x218]
mov edx, dword [ebp - 0x210]
lea ecx, [eax + edi]
mov dword [ebp - 0x224], ecx
cmp ecx, dword [edx]
ja 0x4076c6
push eax
mov eax, dword [ebp - 0x21c]
add eax, edi
push esi
push eax
call fcn.00417d40
mov edi, dword [ebp - 0x224]
push esi
call fcn.0041176b
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 0x4075a0
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.004114b6
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.004114b6
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.004114b6
mov esp, ebp
pop ebp
ret 8
push esi
call fcn.0041176b
jmp 0x407743
mov edx, dword [edx]
mov eax, dword [ebp - 0x21c]
sub edx, edi
push edx
add eax, edi
push esi
push eax
call fcn.00417d40
mov ecx, dword [ebp - 0x218]
add ecx, edi
mov edi, dword [ebp - 0x210]
push esi
mov dword [edi], ecx
call fcn.0041176b
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x20a]
push eax
mov word [ebp - 0x20c], dx
call fcn.00411a80
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 0x407746
lea eax, [ebp - 0x20c]
push eax
call fcn.0041fa46
mov dword [edi], eax
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004114b6
mov esp, ebp
pop ebp
ret 8
Function at 0x407f30
Capabilities:
Check mutex on windows

Disassembly:
xor ecx, ecx
push 0x430930
push ecx
xor eax, eax
push ecx
mov dword [0x437c30], 0x4309ec
mov dword [0x437c34], 0
mov dword [0x437c38], 0
mov dword [0x437c3c], 0
mov word [0x437c40], ax
mov word [0x437e48], cx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x437c38], eax
test eax, eax
jne 0x407fa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x407faa
push 0x430930
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x437c38], eax
mov ecx, 0x437c30
call fcn.00408010
mov eax, 0x437c30
ret

Function at 0x408010
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 0x408071
mov eax, dword [ebp - 0x214]
mov dword [edi + 0xc], eax
cmp dword [edi + 0xc], 0
je 0x40812e
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.00411a80
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 0x4080f7
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 0x4080f6
lea ecx, [ebp - 0x210]
push ecx
push 0x408140
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_
add edi, 0x10
push edi
mov edx, 0x104
call fcn.004034f0
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004114b6
mov esp, ebp
pop ebp
ret
Function at 0x4081b0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x404], 0
call fcn.00411a80
push 0x3ff
lea ecx, [ebp - 0x803]
push 0
push ecx
mov byte [ebp - 0x804], 0
call fcn.00411a80
add esp, 0x18
cmp dword [esi + 0xc], 0
je 0x4082a6
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x404]
push 0x400
push ecx
call fcn.0041fce1
lea edi, [esi + 0x10]
add esp, 0x10
test edi, edi
jne 0x408230
xor esi, esi
jmp 0x408271
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x40826d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0041a780
mov esi, esp
test esi, esi
je 0x40826d
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 0x40826f
xor eax, eax
mov esi, eax
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
push str._s__u____s
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0041fcfe
add esp, 0x18
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea esp, [ebp - 0x810]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret

Function at 0x4083e0
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.00411a80
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 0x408501
mov eax, dword [ebp - 0x108]
cmp eax, 1
jne 0x40844e
cmp dword [ebp - 0x114], 4
jne 0x408501
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x408501
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x4084af
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x40847f
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x408497
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x408501
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x408501
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x4084d1
mov eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x4084e9
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x408501
mov eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004114b6
mov esp, ebp
pop ebp
ret
Function at 0x4086f0
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.00411a80
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 0x40879d
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.0041163b
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 0x4087d1
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004114b6
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 0x408801
push str.GetCommonState
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4087fa
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.004114b6
mov esp, ebp
pop ebp
ret