joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4030e0
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.004114f0
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.004114f0
push 0x207
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.0041f1cd
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 0x4031c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f26
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 0x4031e1
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.00410f26
mov esp, ebp
pop ebp
ret

Function at 0x404700
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 0x40479c
nop
mov eax, dword [ebp - 4]
test eax, eax
je 0x4047d5
inc eax
push eax
call fcn.00410f10
mov esi, eax
add esp, 4
test esi, esi
je 0x40479c
mov edx, dword [ebp - 4]
inc edx
push edx
push 0
push esi
call fcn.004114f0
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 0x4047a5
mov eax, dword [ebp - 8]
lea ebx, [eax + edi]
cmp ebx, 0x32000
ja 0x4047ba
add edi, dword [ebp + 0xc]
push eax
push esi
push edi
call fcn.00417880
push esi
mov edi, ebx
call fcn.004111db
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 0x404720
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.004111db
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.00417880
push esi
call fcn.004111db
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cb5b
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.004114f0
add esp, 0xc
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x446]
push eax
mov word [ebp - 0x448], dx
call fcn.004114f0
add esp, 0xc
lea ecx, [ebp - 0x464]
push ecx
call fcn.00407d00
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.0040d5b0
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 0x405079
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 0x4050c3
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.00406350
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.00410f26
mov esp, ebp
pop ebp
ret
Function at 0x405350
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 0x4053cf
push esi
push 4
push str.UpdateService
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
je 0x4053c7
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 0x4053c0
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.00410f26
mov esp, ebp
pop ebp
ret

Function at 0x405770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x438024], 0
jne 0x4057e1
push 1
push 0x438024
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x438018], 0
jne 0x4057aa
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x438018], eax
test eax, eax
je 0x4057e1
cmp dword [0x438020], 0
je 0x4057e1
lea eax, [ebp - 4]
push eax
push 0
push 0x437fe0
push 0x405820
push 0
push 0
call fcn.0041f44a
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 0x406370
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.004114f0
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp eax, edi
je 0x4063a9
cmp word [eax], di
je 0x4063a9
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 0x4063b6
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.004114f0
push 0x410
lea eax, [ebx + 0x848]
push edi
push eax
mov dword [ebp - 0x10], eax
call fcn.004114f0
push 0x410
lea eax, [ebx + 0xc58]
push edi
push eax
mov dword [ebp - 0xc], eax
call fcn.004114f0
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 0x406523
lea edi, [esi + 1]
push edi
call fcn.00410f10
push edi
push 0
push eax
mov dword [ebx], eax
call fcn.004114f0
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 0x406523
mov eax, dword [ebx]
mov dword [ebp + 0xc], 0
test eax, eax
je 0x406523
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 0x406523
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.00406530
mov ebx, dword [ebp - 0xc]
mov edi, 0x430728
call fcn.00406530
mov ebx, dword [ebp - 0x10]
mov edi, 0x430748
call fcn.00406530
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 0x4072f0
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 0x407392
mov eax, dword [ebp - 4]
test eax, eax
je 0x4073a6
inc eax
push eax
call fcn.00410f10
mov esi, eax
add esp, 4
test esi, esi
je 0x4073b4
mov edx, dword [ebp - 4]
inc edx
push edx
push 0
push esi
call fcn.004114f0
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 0x4073c8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
lea ebx, [eax + edi]
cmp ebx, dword [ecx]
ja 0x4073dc
add edi, dword [ebp + 0xc]
push eax
push esi
push edi
call fcn.00417880
push esi
mov edi, ebx
call fcn.004111db
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 0x407313
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.004111db
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.00417880
mov edx, dword [ebp + 0x10]
push esi
mov dword [edx], edi
call fcn.004111db
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407950
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 0x4079b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4079c0
push 0x430808
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [0x437bc4], eax
mov ecx, 0x437bc0
call fcn.00407a20
mov eax, 0x437bc0
ret

Function at 0x407a20
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 0x407a81
mov eax, dword [ebp - 0x214]
mov dword [edi + 8], eax
cmp dword [edi + 8], 0
je 0x407b3e
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x20a]
push edx
mov word [ebp - 0x20c], cx
call fcn.004114f0
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 0x407b07
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 0x407b06
lea ecx, [ebp - 0x210]
push ecx
push 0x407b50
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.004110ab
add esp, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00410f26
mov esp, ebp
pop ebp
ret
Function at 0x407bc0
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.004114f0
push 0x103
lea ecx, [ebp - 0x20b]
push 0
push ecx
mov byte [ebp - 0x20c], 0
call fcn.004114f0
add esp, 0x18
cmp dword [esi + 8], 0
je 0x407cb6
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.0041f5c4
lea edi, [esi + 0xc]
add esp, 0x10
test edi, edi
jne 0x407c40
xor esi, esi
jmp 0x407c81
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x407c7d
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0041a2c0
mov esi, esp
test esi, esi
je 0x407c7d
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 0x407c7f
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.0041f5e1
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.00410f26
mov esp, ebp
pop ebp
ret

Function at 0x407e20
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.004114f0
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 0x407f41
mov eax, dword [ebp - 0x108]
cmp eax, 1
jne 0x407e8e
cmp dword [ebp - 0x114], 4
jne 0x407f41
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f26
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x407f41
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x407eef
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x407ebf
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f26
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x407ed7
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f26
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x407f41
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f26
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x407f41
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x407f11
mov eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f26
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x407f29
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f26
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x407f41
mov eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f26
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00410f26
mov esp, ebp
pop ebp
ret
Function at 0x408130
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.004114f0
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 0x4081dd
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.004110ab
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 0x408211
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f26
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 0x408241
push str.GetCommonState
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40823a
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.00410f26
mov esp, ebp
pop ebp
ret
Function at 0x409080
Capabilities:
Copy file
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42c82b
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.00409410
add esp, 4
mov dword [esp + 0x2b8], ebx
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x4090f0
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 0x40919f
push 1
lea ecx, [esp + 0x20]
call fcn.00409410
mov eax, dword [esp + 0x3c]
add esp, 4
cmp dword [esp + 0x4c], 8
jae 0x40912d
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 0x4091da
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 8
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x40915e
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 0x409183
mov eax, dword [esp + 0x1c]
push eax
call fcn.00410f1b
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 0x40924d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0x10
jb 0x4091cd
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 0x4091cd
mov bl, 1
cmp dword [esp + 0x14], edi
je 0x4091d1
mov bl, byte [esp + 0x13]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40924f
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x4091e9
lea eax, [esp + 0x1c]
lea edx, [esp + 0x54]
push edx
push eax
call esi
cmp eax, 0xffffffff
je 0x40914b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x38]
mov esi, 8
cmp dword [esp + 0x4c], esi
jae 0x409214
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x409222
lea eax, [esp + 0x1c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x409150
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x409241
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x409150
mov bl, cl
cmp dword [esp + 0x4c], 8
jb 0x409263
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00410f1b
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.00410f26
mov esp, ebp
pop ebp
ret 4
Function at 0x409290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c7f8
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.00409410
add esp, 4
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4092de
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 0x40934b
push 1
lea ecx, [ebp - 0x2c]
call fcn.00409410
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp dword [ebp - 0x18], 8
jae 0x409313
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 0x409336
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00410f1b
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 0x409370
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 0x409369
cmp dword [ebp - 0x4c], 0x10
jne 0x409369
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], 8
jb 0x409382
mov edx, dword [ebp - 0x48]
push edx
call fcn.00410f1b
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.00410f26
mov esp, ebp
pop ebp
ret 4