joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b60
Capabilities:
Move file

Disassembly:
sub esp, 0x208
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], 0
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
push str.UpdateService
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.004013f0
push str.UpdateService
call fcn.00401260
add esp, 8
lea eax, [esp + 0x108]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x108]
push 0x104
lea edx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 4]
push str..del
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 4]
push 1
lea edx, [esp + 0x10c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea eax, [esp + 4]
push 0
push eax
call fcn.00403040
add esp, 8
mov ecx, 0x4221e0
push 2
call fcn.00406120
mov eax, 1
pop edi
add esp, 0x208
ret

Function at 0x401cb0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xa
div ecx
mov esi, dword [esp + 0x114]
mov ecx, 0x40
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
add edx, esi
lea edx, [edx + edx*2]
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea esi, [eax + eax*4]
mov eax, 0x10624dd3
lea esi, [esi + esi*4]
shl esi, 5
mul esi
xor eax, eax
mov ebx, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, 0x45e7b273
mul esi
shr edx, 0xe
push edx
push str.SogouDownLoad
push str.__s_Update_Service_wait__d_minutes.
lea edx, [esp + 0x18]
push 0x104
push edx
shr ebx, 5
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x421940]
test eax, eax
je 0x401d79
test ebx, ebx
je 0x401d79
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [0x421940]
push 0x1f4
push ecx
dec ebx
call esi
test eax, eax
je 0x401d6b
test ebx, ebx
jne 0x401d4a
pop edi
pop esi
pop ebx
add esp, 0x104
ret
push 0
push 0
push 1
call fcn.00401c30
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x401d90
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push str.SogouDownLoad
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.__s_Update_Service_start_service.
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [0x421940], eax
jne 0x401dff
push eax
push eax
push 1
call fcn.00401c30
add esp, 0xc
pop edi
add esp, 0x104
ret
push esi
push 0
push 0
push 4
call fcn.00401c30
push 0xa
call fcn.00401cb0
push 0
call fcn.00401130
add esp, 0x14
mov ecx, 0x4221e0
push 5
call fcn.00406120
push 5
call fcn.00401cb0
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 4
xor esi, esi
mov edx, dword [0x421940]
push 0x1f4
push edx
inc esi
call edi
test eax, eax
je 0x401ea1
mov eax, esi
xor edx, edx
mov ecx, 0xe100
div ecx
test edx, edx
jne 0x401e68
push 5
mov ecx, 0x4221e0
call fcn.00406120
mov eax, esi
xor edx, edx
mov ecx, 0x15180
div ecx
test edx, edx
jne 0x401e87
push edx
call fcn.00401130
push 5
call fcn.00401cb0
add esp, 8
mov eax, esi
xor edx, edx
mov ecx, 0xe10
div ecx
test edx, edx
jne 0x401e3a
push edx
call fcn.00401150
add esp, 4
jmp 0x401e3a
push 0
push 0
push 1
call fcn.00401c30
add esp, 0xc
pop esi
pop edi
add esp, 0x104
ret
Function at 0x4023f0
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x410
test eax, eax
push esi
mov esi, dword [esp + 0x418]
push edi
je 0x402420
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402420
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402439
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
call fcn.004039a0
test eax, eax
je 0x402465
push esi
call fcn.00402620
add esp, 4
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x410
ret
mov al, byte [0x42195c]
test al, al
jne 0x40248e
push 0x104
push 0x42195c
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push 0x42195c
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10d]
mov byte [esp + 0x10c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10c]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x402611
lea ecx, [esp + 0x10c]
push ecx
call fcn.00402620
lea edx, [esp + 0x110]
lea eax, [esp + 0xc]
push edx
push str.NUL_s_n
push 0x103
push eax
call sub.MSVCRT.dll__snprintf
push 0x42048c
push 0x42195c
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x402537
push 0x420488
push 0x42195c
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
je 0x402611
push esi
call sub.MSVCRT.dll_rewind
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea ecx, [esp + 0x218]
push 0x208
push ecx
stosb byte es:[edi], al
call sub.MSVCRT.dll_fgets
add esp, 0x10
test eax, eax
je 0x4025b2
lea edx, [esp + 0x210]
push edx
call sub.MSVCRT.dll__strlwr
lea eax, [esp + 0x214]
push str._rename_
push eax
call sub.MSVCRT.dll_strstr
add esp, 0xc
test eax, eax
jne 0x4025e2
push esi
lea ecx, [esp + 0x214]
push 0x208
push ecx
call sub.MSVCRT.dll_fgets
add esp, 0xc
test eax, eax
jne 0x402572
push esi
push str._rename__n
call sub.MSVCRT.dll_fputs
lea edx, [esp + 0x10]
push esi
push edx
call sub.MSVCRT.dll_fputs
add esp, 0x10
push esi
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x410
ret
push 2
push 0
push esi
call sub.MSVCRT.dll_fseek
lea eax, [esp + 0x14]
push esi
push eax
call sub.MSVCRT.dll_fputs
add esp, 0x14
push esi
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, 1
pop edi
pop esi
add esp, 0x410
ret
pop edi
xor eax, eax
pop esi
add esp, 0x410
ret
Function at 0x402dd0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
push edi
je 0x402e7a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402e7a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402e14
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
pop edi
pop esi
add esp, 0x104
ret
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [esp + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov edi, dword [esp + 0x114]
lea eax, [esp + 8]
push edi
push eax
call fcn.00402dd0
add esp, 8
test eax, eax
je 0x402e7a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
add esp, 0x104
ret
pop edi
xor eax, eax
pop esi
add esp, 0x104
ret

Function at 0x403040
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x403053
push edi
call fcn.00402620
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
je 0x403064
push esi
call fcn.00402620
add esp, 4
call fcn.004039a0
test eax, eax
je 0x403083
xor eax, eax
test esi, esi
setne al
add eax, 4
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
pop esi
ret
push esi
push edi
call fcn.00403090
add esp, 8
pop edi
pop esi
ret
Function at 0x403350
Capabilities:
Check if file exists
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11d]
mov byte [esp + 0x11c], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x364]
mov dword [esp + 0x14], 0
stosw word es:[edi], ax
push esi
stosb byte es:[edi], al
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4034e0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jb 0x4034e0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x104
lea eax, [esp + 0x120]
push esi
push eax
call ebp
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [esp + 0x11c]
push 0x42056c
push ecx
call ebx
lea edx, [esp + 0x220]
lea eax, [esp + 0x11c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4034e0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea ecx, [esp + 0x1c]
push esi
push ecx
stosb byte es:[edi], al
call ebp
lea edx, [esp + 0x24c]
lea eax, [esp + 0x18]
push edx
push eax
call ebx
test byte [esp + 0x220], 0x10
jne 0x403442
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.004023f0
add esp, 8
jmp 0x403485
lea edx, [esp + 0x24c]
push edx
push 0x420568
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x403485
lea eax, [esp + 0x24c]
push eax
push 0x420564
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x403485
lea ecx, [esp + 0x18]
push ecx
call fcn.00403350
add esp, 4
test eax, eax
je 0x4034a7
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x220]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4033f6
mov edi, 1
jmp 0x4034ab
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x4034e0
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4034d0
push 1
push esi
call fcn.004023f0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x350
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x350
ret

Function at 0x403a40
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x10], 2
jne 0x403a73
cmp dword [esp + 4], 6
jb 0x403a73
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x4046c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x25c
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 0x44
mov edx, dword [esp + 0x264]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov ecx, 0x81
mov dword [esp + 8], eax
lea edi, [esp + 0x59]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov byte [esp + 0x58], al
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x268]
stosw word es:[edi], ax
push ecx
push edx
stosb byte es:[edi], al
push 0x4206a8
lea eax, [esp + 0x64]
push 0x207
push eax
call sub.MSVCRT.dll__snprintf
add esp, 0x14
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
lea eax, [esp + 0x58]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x40475c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0x25c
ret
mov eax, dword [esp + 0x268]
test eax, eax
jbe 0x404773
mov ecx, dword [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov eax, 1
pop esi
add esp, 0x25c
ret

Function at 0x405100
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push ebx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], bl
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x421fe8], ebx
jne 0x40514d
pop edi
xor eax, eax
pop ebx
add esp, 0x20c
ret 0x10
mov ecx, dword [esp + 0x218]
push esi
lea eax, [esp + 0x114]
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4051fb
lea edx, [esp + 0x10]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x10]
push str.dllcache
push eax
call esi
lea ecx, [esp + 0x114]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
lea edx, [esp + 0x10]
push eax
push edx
call esi
push 1
lea eax, [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, ebx
je 0x4051fb
mov ecx, dword [esp + 0x220]
push ecx
push esi
call fcn.00405020
cmp eax, ebx
je 0x4051f4
mov ecx, dword [esp + 0x228]
lea edx, [esp + 0xc]
push edx
mov edx, dword [esp + 0x228]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, ebx
pop edi
pop ebx
add esp, 0x20c
ret 0x10
Function at 0x405210
Capabilities:
Check for sandbox and av modules

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4197d8
push eax
mov eax, dword [0x421fe8]
mov dword fs:[0], esp
sub esp, 0xc
test eax, eax
push esi
je 0x4052ba
push edi
mov ecx, 0x422000
call fcn.004048f0
xor esi, esi
push str.Dbghelp.dll
mov edi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [esp + 8], eax
jne 0x405277
push str.Dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esp + 8], eax
je 0x405285
mov dword [esp + 0xc], esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
mov dword [esp + 0x1c], 0
pop edi
je 0x4052ba
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call esi
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
mov eax, dword [esp + 0x28]
cmp ax, 0x10
jb 0x4052d8
xor eax, eax
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10
mov edx, dword [esp + 0x20]
and eax, 0xffff
mov ecx, dword [edx + 0x3c]
lea ecx, [ecx + eax*8 + 0x78]
mov eax, dword [ecx + edx]
add ecx, edx
add eax, edx
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x4052fc
mov ecx, dword [ecx + 4]
mov dword [edx], ecx
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x10

Function at 0x406450
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x104
push esi
mov edx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
add edx, 4
push eax
push edx
call fcn.004072e0
add esp, 0xc
lea ecx, [esp + 8]
mov esi, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4064b0
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x4064b0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret

Function at 0x4064c0
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x104
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x110]
push 0x103
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.004072e0
add esp, 0xc
lea edx, [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406522
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x406522
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
add esp, 0x104
ret 4
Function at 0x406ce0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x406daf
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x406d30
cmp dword [esp + 4], 4
jne 0x406daf
mov eax, 1
add esp, 0x94
ret
cmp eax, 2
jne 0x406daf
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x406d74
mov eax, dword [esp + 8]
test eax, eax
jne 0x406d52
mov eax, 2
add esp, 0x94
ret
cmp eax, 1
jne 0x406d63
mov eax, 3
add esp, 0x94
ret
cmp eax, 2
jne 0x406daf
mov eax, 4
add esp, 0x94
ret
cmp eax, 6
jne 0x406daf
mov eax, dword [esp + 8]
test eax, eax
jne 0x406d8d
mov eax, 5
add esp, 0x94
ret
cmp eax, 1
jne 0x406d9e
mov eax, 6
add esp, 0x94
ret
cmp eax, 2
jne 0x406daf
mov eax, 7
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x406fc0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x104
push ebx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x104
push eax
mov ebx, 0xffff
call fcn.00411e40
add esp, 8
lea ecx, [esp + 8]
push str.CommonState.dll
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40701f
or ax, bx
pop edi
pop ebx
add esp, 0x104
ret
lea eax, [esp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40704c
push str.GetCommonState
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407045
call eax
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ax, bx
pop edi
pop ebx
add esp, 0x104
ret

Function at 0x4075e0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.004095f0
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esi + 0x118]
mov dword [esi], 0x41a78c
mov dword [esi + 4], edx
mov byte [esi + 0x14], dl
mov dword [esi + 0x21c], 0xffffffff
rep stosd dword es:[edi], eax
mov ecx, 0x63
lea edi, [esp + 0xa]
mov word [esp + 8], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret 4
Function at 0x408f70
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
xor eax, eax
mov ecx, 0x49
lea edi, [esp + 0xc]
mov dword [esp + 8], 0
push eax
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x409009
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x409002
lea ecx, [esp + 0x2c]
push str.explorer.exe
push ecx
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x408fee
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x409002
lea eax, [esp + 0x2c]
push str.explorer.exe
push eax
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
jne 0x408fc9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x128
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret
Function at 0x4093b0
Capabilities:
Check if file exists
Delete file

Disassembly:
sub esp, 0x208
push ebx
push ebp
mov ebp, dword [esp + 0x21c]
push esi
test ebp, ebp
push edi
je 0x4094a9
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4094a9
mov esi, dword [esp + 0x220]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x40943c
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push esi
call fcn.0040c440
add esp, 8
lea ecx, [esp + 0x10]
push ebp
push ecx
call ebx
test eax, eax
jne 0x409431
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4094a9
mov edx, dword [esp + 0x21c]
push 0
push 0xa
push esi
push edx
call fcn.004071b0
add esp, 0x10
test eax, eax
je 0x4094a9
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
push esi
call fcn.0040c440
add esp, 8
lea ecx, [esp + 0x114]
push ebp
push ecx
call ebx
test eax, eax
jne 0x4094a2
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x208
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret 0xc

Function at 0x40a4d0
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push 0x26
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 4]
push str.SogouDownLoadupdate_tmp
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
pop edi
jne 0x40a536
push eax
lea eax, [esp + 4]
push eax
call fcn.00402dd0
add esp, 8
test eax, eax
jne 0x40a536
add esp, 0x104
ret
mov ecx, dword [esp + 0x10c]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, 1
add esp, 0x104
ret