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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00411db0
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.SOFTWARESogouSoftware
push 0x80000002
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x403715
push 0x208
lea edx, [ebp - 0x20c]
push edx
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.SogouSoftware
lea eax, [ebp - 0x20c]
push eax
push str._s_s
mov ecx, eax
push 0x208
push ecx
call fcn.0041b9ce
add esp, 0x14
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x20c]
push ecx
mov ebx, eax
call fcn.00402230
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00411016
mov esp, ebp
pop ebp
ret

Function at 0x403750
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00411db0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push str.LaunchAppPath
push str.SOFTWARESogouSoftware
push 0x80000002
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x403802
mov ecx, esi
call fcn.00403670
test eax, eax
jne 0x4037d6
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411016
mov esp, ebp
pop ebp
ret
push str.SogouSoftware.exe
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.SogouSoftware.exe
push esi
mov esi, eax
call fcn.00402350
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411016
mov esp, ebp
pop ebp
ret
push ebx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x20c]
push ecx
mov ebx, eax
call fcn.00402230
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00411016
mov esp, ebp
pop ebp
ret
Function at 0x403840
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c68b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1078
call fcn.00417a20
mov eax, dword [0x435090]
xor eax, esp
mov dword [esp + 0x1074], eax
push esi
push edi
mov eax, dword [0x435090]
xor eax, esp
push eax
lea eax, [esp + 0x1088]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0xc]
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
push str.Version
push str.SOFTWARESogouSoftware
push 0x80000002
mov dword [esp + 0x24], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x40395e
mov edx, dword [0x4362b4]
mov dword [esp + 0xc], edx
lea ecx, [esp + 0xc]
mov dword [esp + 0x1090], 0
call fcn.004033b0
test eax, eax
je 0x403965
push str.SogouSoftware.dll
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.SogouSoftware.dll
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
call fcn.00402350
mov esi, dword [esp + 0xc]
push esi
lea edx, [esp + 0x18]
push edx
call fcn.00406720
shr edi, 1
test ebx, ebx
je 0x403969
cmp edi, 8
jb 0x403969
movzx eax, word [esp + 0x2a]
movzx ecx, word [esp + 0x28]
movzx edx, word [esp + 0x26]
push eax
movzx eax, word [esp + 0x28]
push ecx
push edx
push eax
push str._d._d._d._d
push edi
push ebx
call fcn.0041b9ce
add esp, 0x1c
mov edx, ebx
call fcn.004039b0
lea ecx, [esi - 0xc]
cmp ecx, 0x4362a4
je 0x40395e
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40395e
push esi
call fcn.004115de
add esp, 4
mov eax, 1
jmp 0x40398d
mov esi, dword [esp + 0xc]
lea edx, [esi - 0xc]
cmp edx, 0x4362a4
je 0x40398b
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40398b
push esi
call fcn.004115de
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x1088]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1074]
xor ecx, esp
call fcn.00411016
mov esp, ebp
pop ebp
ret

Function at 0x4039b0
Capabilities:
Set registry value

Disassembly:
mov eax, edx
push esi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4039b6
sub eax, esi
sar eax, 1
add eax, eax
push eax
push edx
push 1
push str.Version
push str.SOFTWARESogouSoftware
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
inc eax
pop esi
ret
Function at 0x4039f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435090]
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.00411db0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0x430694
push str.SOFTWARESogouSoftware
push 0x80000002
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x403ab5
push str.sogousoftware_normal
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00413b96
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403a77
sub eax, edx
sar eax, 1
add eax, eax
push eax
push esi
push 1
push 0x430694
push str.SOFTWARESogouSoftware
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
je 0x403ab5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411016
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00411016
mov esp, ebp
pop ebp
ret

Function at 0x403ad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ca08
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x435090]
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.SOFTWARESogouSoftware
push 0x80000002
mov dword [ebp - 0x10], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403b2e
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 0x403b64
push edi
push 0
push esi
call fcn.00411db0
add esp, 0xc
mov dword [ebp - 0x14], vtable.CQMSeqIDGen.0
push esi
mov dword [ebp - 4], 0
call fcn.00408fe0
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 0x403e80
Capabilities:
Check os version
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c649
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x435090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x38
xor ebx, ebx
lea eax, [ebp - 0x15c]
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x160], 0x3c
call fcn.00411db0
add esp, 0xc
mov dword [ebp - 0x150], esi
lea ecx, [ebp - 0x124]
mov esi, 1
push ecx
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x15c], 0x40
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x403f26
cmp dword [ebp - 0x120], 6
jb 0x403f26
cmp dword [ebp + 0xc], esi
jne 0x403f26
mov dword [ebp - 0x154], str.runas
lea edx, [ebp - 0x160]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x403f5d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x128]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x403f4e
mov ebx, esi
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403fc1
test byte [0x437eb0], 1
jne 0x403fa8
or dword [0x437eb0], esi
xor eax, eax
mov dword [ebp - 4], eax
mov dword [0x437c18], eax
mov dword [0x437e24], 0x430900
mov dword [0x437e28], eax
mov byte [ebp - 4], 1
mov word [0x437c1c], ax
call fcn.00404af0
push 0x42cc50
call fcn.00411fbb
add esp, 4
mov dword [ebp - 4], 0xffffffff
push str.ShellExecuteEx_fail
push str._info___NS_ProcessAndThread::CallProcessWait
push 2
mov ecx, 0x437c18
call fcn.00404ca0
add esp, 0xc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411016
mov esp, ebp
pop ebp
ret
Function at 0x4040f0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x435090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp esi, ebx
jne 0x40411b
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411016
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404120
sub eax, edx
sar eax, 1
push edi
mov edi, eax
cmp edi, 0x104
jl 0x40414c
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411016
mov esp, ebp
pop ebp
ret
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00411db0
lea edx, [ebp - 0x210]
add esp, 0xc
mov eax, esi
sub edx, esi
jmp 0x404170
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x404170
xor eax, eax
xor ecx, ecx
xor edx, edx
mov word [ebp + edi*2 - 0x210], cx
mov dword [ebp - 0x218], eax
mov word [ebp + edi*2 - 0x20e], dx
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
mov word [ebp - 0x214], ax
mov ecx, 0x414
or ax, cx
lea edx, [ebp - 0x210]
mov dword [ebp - 0x228], edx
mov ecx, 0xffbf
lea edx, [ebp - 0x230]
and ax, cx
push edx
mov dword [ebp - 0x21a], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x216], ebx
mov dword [ebp - 0x22c], 3
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x220], ax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
pop edi
xor ecx, ebp
inc eax
pop ebx
call fcn.00411016
mov esp, ebp
pop ebp
ret
Function at 0x4043e0
Capabilities:
Check if file exists
Check os version
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x560
mov eax, dword [0x435090]
xor eax, esp
mov dword [esp + 0x55c], eax
push esi
push edi
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x28], 2
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
jne 0x404441
cmp dword [esp + 0x1c], 6
jb 0x404441
push 0x104
lea esi, [ebx + 0x20]
push esi
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.AppDataLocalLow
push esi
call edi
jmp 0x404455
push 0x104
lea esi, [ebx + 0x20]
push esi
push str.SYSTEMDRIVE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.SogouSoftwareLog
push esi
call edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40448a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404491
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x55c]
xor ecx, esp
call fcn.00411016
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00404230
xor eax, eax
lea edx, [esp + 8]
xor ecx, ecx
push edx
mov word [esp + 0x134], cx
mov dword [esp + 0x136], eax
mov dword [esp + 0x13a], eax
mov dword [esp + 0x13e], eax
mov dword [esp + 0x142], eax
mov dword [esp + 0x146], eax
mov dword [esp + 0x14a], eax
mov dword [esp + 0x14e], eax
mov word [esp + 0x152], ax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0xe]
movzx ecx, word [esp + 0xa]
movzx edx, word [esp + 8]
push eax
push ecx
push edx
lea eax, [esp + 0x13c]
push str._04d__02d__02d
push eax
mov edx, 0x10
call fcn.00404e00
add esp, 0x14
lea ecx, [esp + 0x130]
push ecx
push esi
call edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404533
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x404474
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x15a]
push eax
mov word [esp + 0x15c], dx
call fcn.00411db0
add esp, 0xc
lea ecx, [esp + 0x150]
push 0x104
push ecx
call fcn.00403ff0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x36a]
push eax
mov word [esp + 0x36c], dx
call fcn.00411db0
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx edx, word [esp + 0x14]
push eax
movzx eax, word [esp + 0x16]
lea ecx, [esp + 0x154]
push ecx
movzx ecx, word [esp + 0x18]
push edx
push eax
push ecx
lea edx, [esp + 0x36c]
push str._02d_02d_02d__s__d.txt
push edx
mov edx, 0x104
call fcn.00404de0
add esp, 0x1c
lea eax, [esp + 0x358]
push eax
push esi
call edi
push 0x430824
push esi
call 0x41bc3d
xor ecx, ecx
add esp, 8
test eax, eax
setne cl
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, ecx
mov ecx, dword [esp + 0x55c]
xor ecx, esp
call fcn.00411016
mov esp, ebp
pop ebp
ret
Function at 0x4048b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bf2e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x435090]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [edi + 4]
xor esi, esi
cmp ecx, esi
je 0x4048eb
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 4], esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
push str.DebugPrintType
push str.SOFTWAREDebugMsg
push 0x80000002
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 0x10]
and eax, 3
dec eax
je 0x40499c
dec eax
je 0x40495b
dec eax
je 0x404938
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x230
call fcn.0041163a
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 2
cmp eax, esi
je 0x4049b2
push eax
call fcn.004049d0
jmp 0x4049b4
push 0x228
call fcn.0041163a
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], esi
cmp ebx, esi
je 0x404995
lea eax, [ebx + 8]
mov byte [ebp - 4], 1
push eax
mov dword [ebx], vtable.CDebugLog.0
mov dword [ebx + 4], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.004043e0
mov dword [edi + 4], ebx
jmp 0x4049b7
xor ebx, ebx
mov dword [edi + 4], ebx
jmp 0x4049b7
push 4
call fcn.0041163a
add esp, 4
cmp eax, esi
je 0x4049b2
mov dword [eax], vtable.CDebugView.0
jmp 0x4049b4
xor eax, eax
mov dword [edi + 4], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x435090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x220]
push edx
push str.DebugMsgType
push str.SOFTWAREDebugMsg
xor edi, edi
push 0x80000002
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x21c], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x404b51
mov eax, dword [ebp - 0x218]
or dword [0x437c18], eax
push 0x206
lea edx, [ebp - 0x20e]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x210], cx
call fcn.00411db0
add esp, 0xc
push str.Kernel32.dll
mov dword [ebp - 0x214], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x214], eax
cmp eax, edi
je 0x404bc7
push str.GetModuleHandleExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov dword [ebp - 0x214], eax
cmp esi, edi
je 0x404bc7
lea ecx, [ebp - 0x214]
push ecx
push fcn.00403ff0
push 4
call esi
mov eax, dword [ebp - 0x214]
push 0x104
lea edx, [ebp - 0x210]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
lea eax, [ebp - 0x210]
push eax
push str.SogouSoftwareLog
push str.__s___s_
push 0x104
push 0x437c1c
call fcn.0041b9ce
add esp, 0x14
mov edi, 0x437e24
call fcn.004048b0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00411016
mov esp, ebp
pop ebp
ret

Function at 0x404ec0
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 0x404f5c
nop
mov eax, dword [ebp - 4]
test eax, eax
je 0x404f95
inc eax
push eax
call fcn.00411000
mov esi, eax
add esp, 4
test esi, esi
je 0x404f5c
mov edx, dword [ebp - 4]
inc edx
push edx
push 0
push esi
call fcn.00411db0
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 0x404f65
mov eax, dword [ebp - 8]
lea ebx, [eax + edi]
cmp ebx, 0x32000
ja 0x404f7a
add edi, dword [ebp + 0xc]
push eax
push esi
push edi
call fcn.00417fb0
push esi
mov edi, ebx
call fcn.004115de
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 0x404ee0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004115de
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.00417fb0
push esi
call fcn.004115de
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405c10
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x435090]
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 0x405c8f
push esi
push 4
push str.SogouSoftwareUpdate
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x405c87
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 0x405c80
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.00411016
mov esp, ebp
pop ebp
ret
Function at 0x406720
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.00411db0
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, edi
je 0x406759
cmp word [eax], di
je 0x406759
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 0x406766
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.00411db0
push 0x410
lea eax, [ebx + 0x848]
push edi
push eax
mov dword [ebp - 0x10], eax
call fcn.00411db0
push 0x410
lea eax, [ebx + 0xc58]
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.00411db0
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 0x4068d3
lea edi, [esi + 1]
push edi
call fcn.00411000
push edi
push 0
push eax
mov dword [ebx], eax
call fcn.00411db0
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 0x4068d3
mov eax, dword [ebx]
mov dword [ebp + 0xc], 0
test eax, eax
je 0x4068d3
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp + 0xc]
push edx
push 0x430b04
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4068d3
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, 0x430b08
call fcn.004068e0
mov ebx, dword [ebp - 0xc]
mov edi, 0x430b20
call fcn.004068e0
mov ebx, dword [ebp - 0x10]
mov edi, 0x430b40
call fcn.004068e0
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