joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40560d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40561c
pop dword [ebp - 0x2c]
mov eax, 0xdc12930
sub eax, 0xd80d314
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x3b302705
add dword [ebp - 0x3c], 0x13221e46
mov dword [ebp - 0x38], 0xa4d5764e
sub dword [ebp - 0x38], 0x72a22a09
mov dword [ebp - 0x34], 0x85b9ad1
sub dword [ebp - 0x34], 0xbc0f56a3
mov dword [ebp - 0x30], 0xcb393900
sub dword [ebp - 0x30], 0xcb393900
lea eax, [ebp - 0x3c]
push eax
mov eax, 0xc415de4e
sub eax, 0xc3d50dfa
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xe9646ec6
add dword [ebp - 0x3c], 0x8b0dfa90
mov dword [ebp - 0x38], 0x3033942e
sub dword [ebp - 0x38], 0xeec732b9
mov dword [ebp - 0x34], 0x9c67c895
add dword [ebp - 0x34], 0xc707a3d7
mov dword [ebp - 0x30], 0xe7ce56ba
sub dword [ebp - 0x30], 0xe7ce56ba
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x6004c7ce
add eax, 0xa03c087e
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x39c93
push 0
call eax
mov ecx, 0x4911
xor edx, edx
add edx, eax
mov edi, 0x41b000
add edi, dword [ebp - 0x2c]
mov esi, 0x3944da8d
add esi, 0x474148b8
xor dword [ebp - 8], 0xca4531b3
mov ebx, dword [edi]
xor dword [ebp - 0x10], ecx
sub ebx, esi
xor dword [ebp - 0x20], 0xfb8e86d2
mov dword [edx], ebx
add dword [ebp - 0x10], 0x285d7576
add edx, 0xdf2b72b1
sub edx, 0xdf2b72ad
add edi, 0x61b3c9e8
add edi, 0x9e4c361c
loop 0x405734
add eax, 0x5a76689
sub eax, 0x5a64f72
mov ebx, eax
add eax, 0x25d4079d
add eax, 0xda2bf868
mov ecx, 0x644f9465
sub ecx, 0x640f9465
invalid
invalid
aam 0xff
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.00403060
add esp, 8
mov ecx, 0x4221e0
push 2
call fcn.00406140
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.00406140
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.00406140
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 0x402410
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 0x402440
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x402440
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x402459
pop edi
mov eax, 1
pop esi
add esp, 0x410
ret
call fcn.004039c0
test eax, eax
je 0x402485
push esi
call fcn.00402640
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 0x4024ae
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 0x402631
lea ecx, [esp + 0x10c]
push ecx
call fcn.00402640
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 0x402557
push 0x420488
push 0x42195c
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
je 0x402631
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 0x4025d2
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 0x402602
push esi
lea ecx, [esp + 0x214]
push 0x208
push ecx
call sub.MSVCRT.dll_fgets
add esp, 0xc
test eax, eax
jne 0x402592
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 0x402df0
Capabilities:
Check if file exists
Create directory

Disassembly:
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
push edi
je 0x402e9a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402e9a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402e34
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.00402df0
add esp, 8
test eax, eax
je 0x402e9a
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 0x403060
Capabilities:
Move file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x403073
push edi
call fcn.00402640
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
je 0x403084
push esi
call fcn.00402640
add esp, 4
call fcn.004039c0
test eax, eax
je 0x4030a3
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.004030b0
add esp, 8
pop edi
pop esi
ret
Function at 0x403370
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 0x403500
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jb 0x403500
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 0x403500
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 0x403462
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.00402410
add esp, 8
jmp 0x4034a5
lea edx, [esp + 0x24c]
push edx
push 0x420568
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x4034a5
lea eax, [esp + 0x24c]
push eax
push 0x420564
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x4034a5
lea ecx, [esp + 0x18]
push ecx
call fcn.00403370
add esp, 4
test eax, eax
je 0x4034c7
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x220]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403416
mov edi, 1
jmp 0x4034cb
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x403500
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4034f0
push 1
push esi
call fcn.00402410
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 0x403a60
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 0x403a93
cmp dword [esp + 4], 6
jb 0x403a93
mov eax, 1
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret
Function at 0x4046e0
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 0x40477c
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0x25c
ret
mov eax, dword [esp + 0x268]
test eax, eax
jbe 0x404793
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 0x405120
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 0x40516d
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 0x40521b
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 0x40521b
mov ecx, dword [esp + 0x220]
push ecx
push esi
call fcn.00405040
cmp eax, ebx
je 0x405214
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 0x405230
Capabilities:
Check for sandbox and av modules

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4198c8
push eax
mov eax, dword [0x421fe8]
mov dword fs:[0], esp
sub esp, 0xc
test eax, eax
push esi
je 0x4052da
push edi
mov ecx, 0x422000
call fcn.00404910
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 0x405297
push str.Dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esp + 8], eax
je 0x4052a5
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 0x4052da
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 0x4052f8
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 0x40531c
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 0x4064a0
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.00407330
add esp, 0xc
lea ecx, [esp + 8]
mov esi, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406500
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x406500
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 0x406510
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.00407330
add esp, 0xc
lea edx, [esp + 8]
mov esi, eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x406572
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
jne 0x406572
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 0x406d30
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 0x406dff
mov eax, dword [esp + 0x10]
cmp eax, 1
jne 0x406d80
cmp dword [esp + 4], 4
jne 0x406dff
mov eax, 1
add esp, 0x94
ret
cmp eax, 2
jne 0x406dff
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x406dc4
mov eax, dword [esp + 8]
test eax, eax
jne 0x406da2
mov eax, 2
add esp, 0x94
ret
cmp eax, 1
jne 0x406db3
mov eax, 3
add esp, 0x94
ret
cmp eax, 2
jne 0x406dff
mov eax, 4
add esp, 0x94
ret
cmp eax, 6
jne 0x406dff
mov eax, dword [esp + 8]
test eax, eax
jne 0x406ddd
mov eax, 5
add esp, 0x94
ret
cmp eax, 1
jne 0x406dee
mov eax, 6
add esp, 0x94
ret
cmp eax, 2
jne 0x406dff
mov eax, 7
add esp, 0x94
ret
xor eax, eax
add esp, 0x94
ret

Function at 0x407010
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.00411ed0
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 0x40706f
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 0x40709c
push str.GetCommonState
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407095
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 0x407630
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
push edi
lea ecx, [esi + 8]
call fcn.00409680
xor edx, edx
mov ecx, 0x41
xor eax, eax
lea edi, [esi + 0x118]
mov dword [esi], 0x41a79c
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 0x409000
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 0x409099
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x409092
lea ecx, [esp + 0x2c]
push str.explorer.exe
push ecx
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
je 0x40907e
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x409092
lea eax, [esp + 0x2c]
push str.explorer.exe
push eax
call sub.MSVCRT.dll__mbsicmp
add esp, 8
test eax, eax
jne 0x409059
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 0x409440
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 0x409539
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x409539
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 0x4094cc
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.0040c4d0
add esp, 8
lea ecx, [esp + 0x10]
push ebp
push ecx
call ebx
test eax, eax
jne 0x4094c1
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 0x409539
mov edx, dword [esp + 0x21c]
push 0
push 0xa
push esi
push edx
call fcn.00407200
add esp, 0x10
test eax, eax
je 0x409539
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.0040c4d0
add esp, 8
lea ecx, [esp + 0x114]
push ebp
push ecx
call ebx
test eax, eax
jne 0x409532
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 0x40a560
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 0x40a5c6
push eax
lea eax, [esp + 4]
push eax
call fcn.00402df0
add esp, 8
test eax, eax
jne 0x40a5c6
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