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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1001a7a4]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10011e4c
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0xc], ecx
call esi
push dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x10011f4e
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x10011efc
lea eax, [ebp - 0xc]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10011f4f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10011ef1
cmp dword [ebp - 0x14], 1
jne 0x10011ef1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push 0x100155a4
push eax
call fcn.1000399a
add esp, 0xc
cmp eax, 1
jne 0x10011ef1
mov eax, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 8], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10011f4f
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x10011f4f
lea ecx, [ebp - 8]
push ecx
push 0x10011d95
push 1
push 0x10
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 8], bx
je 0x10011f4f
movzx eax, word [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x10011f75
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.10011d24
cmp eax, ebx
pop ecx
pop ecx
jne 0x10011f77
inc edi
cmp edi, esi
jl 0x10011f5e
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.1000398c
leave
ret 4
Function at 0x10012e46
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x10012e7a
call fcn.1000ca1a
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x10012ee2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x10012f10
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 8]
jl 0x10012fab
cmp dword [esp + 0x14], ebx
je 0x10012fab
jmp 0x10012f4d
push 0x10
call fcn.10012bae
cmp eax, ebx
je 0x10012f26
mov ecx, eax
call fcn.10012e3d
mov esi, eax
jmp 0x10012f28
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
push ebx
mov dword [edi + 0x14], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x10012f64
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x10012f74
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
mov dword [esi + 0xc], eax
jne 0x10012f80
call fcn.1000ca1a
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, eax
shl ecx, 2
push ecx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + eax*4]
push ebx
push eax
call fcn.100041b0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax + edx*4], ecx
pop ebx
ret 8
Function at 0x402740
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2d10
call fcn.00412450
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x402861
cmp dword [ebp + 0xc], esi
je 0x402861
push ebx
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov edi, 0x2710
push dword [ebp - 4]
lea eax, [ebp - 0x600]
push 0x417644
push 0x200
push eax
call fcn.00401eb8
add esp, 0x10
lea eax, [ebp - 0x600]
push esi
push esi
push 3
push esi
push 3
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40284d
push 0xc
lea eax, [ebp - 0x18]
push esi
push eax
mov dword [ebp - 0xc], esi
call sub.MSVCRT.dll_memset
push edi
lea eax, [ebp - 0x2d10]
push esi
push eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 0x2d10]
push edi
push eax
lea eax, [ebp - 0x18]
push 0xc
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x402841
push 0x3e8
lea eax, [ebp - 0x400]
push esi
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x400]
push eax
push 1
push dword [ebp - 0x2cf8]
lea eax, [ebp - 0x2d10]
push eax
call fcn.00401a6c
add esp, 0x1c
lea eax, [ebp - 0x400]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040255a
test eax, eax
jne 0x402841
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x40285a
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x10
jl 0x40276f
mov eax, dword [ebp - 8]
pop edi
pop ebx
jmp 0x402863
xor eax, eax
pop esi
leave
ret
Function at 0x4029c8
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4f0
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x402b20
cmp dword [ebp + 0xc], ebx
je 0x402b20
push esi
push 0x64
lea eax, [ebp - 0x7c]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x402b00
mov dword [ebp - 8], ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x14], 0x104
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x402af7
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x2e8]
push ebx
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402aef
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x4f0]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.ServiceName
mov dword [ebp - 0x10], 0x208
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402ae6
push 0x64
lea eax, [ebp - 0xe0]
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0xe0]
push 0x64
push eax
lea eax, [ebp - 0x4f0]
push eax
call fcn.00402b25
add esp, 0x18
test eax, eax
je 0x402ae6
cmp byte [ebp - 0x7c], bl
je 0x402ad4
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x402ae6
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x7c]
push 0x64
push eax
call fcn.0040255a
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
jmp 0x402a1a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x7c], bl
pop esi
je 0x402b20
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040255a
xor ecx, ecx
test eax, eax
setge cl
mov eax, ecx
jmp 0x402b22
xor eax, eax
pop ebx
leave
ret
Function at 0x40318a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
cmp dword [ebp + 8], 0
push esi
je 0x403293
cmp dword [ebp + 0xc], 0x20
jb 0x403293
mov esi, 0x400
lea eax, [ebp - 0x508]
push esi
push 0
push eax
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 8]
push eax
push 0x417794
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x403293
lea eax, [ebp - 0x508]
push eax
call sub.MSVCRT.dll_strlen
cmp eax, 0x40
pop ecx
jne 0x403293
push edi
lea eax, [ebp - 0x508]
push 0x20
push eax
mov edi, 0x80
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.00403298
lea eax, [ebp - 0x4e8]
push eax
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040255a
push esi
lea eax, [ebp - 0x508]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x508]
push esi
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00402ffc
add esp, 0x18
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
pop edi
jne 0x403293
lea eax, [ebp - 0x88]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040255a
neg eax
sbb eax, eax
inc eax
jmp 0x403295
xor eax, eax
pop esi
leave
ret

Function at 0x40338e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
and word [ebp - 0x208], 0
push ebx
push esi
mov ebx, 0x81
push edi
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
and word [ebp - 0x410], 0
mov ecx, ebx
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
mov esi, 0x103
push eax
push str._sUnInst360SE.exe
lea eax, [ebp - 0x410]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push esi
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
xor edx, edx
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x616]
mov word [ebp - 0x618], dx
mov word [ebp - 0x820], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x81e]
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x618]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x820]
push esi
push eax
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40347d
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
and word [ebp - 0x410], 0
push ebx
push esi
mov esi, 0x81
push edi
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x40e]
rep stosd dword es:[edi], eax
and word [ebp - 0x208], 0
mov ecx, esi
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x410]
mov ebx, 0x103
push eax
push str._sUnInst360SE.exe
lea eax, [ebp - 0x208]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
and word [ebp - 0x618], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x616]
rep stosd dword es:[edi], eax
add esp, 0x10
stosw word es:[edi], ax
lea eax, [ebp - 0x618]
push ebx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push 0
push eax
lea eax, [ebp - 0x618]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40352f
Capabilities:
Create process on windows
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov edx, 0x81
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x410], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
push eax
push str._sUnInst360SE.exe
lea eax, [ebp - 0x410]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x208]
push 5
push eax
lea eax, [ebp - 0x410]
push esi
push eax
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 4
lea eax, [ebp - 0x410]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x4038c0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, ecx
and byte [esi], 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40391c
push dword [esp + 0xc]
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x40391c
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40390b
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov byte [esi], 1
mov eax, esi
pop edi
pop esi
ret 4
Function at 0x403ee8
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
cmp dword [0x422114], esi
jne 0x403f2a
push 0x20
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, esi
pop ecx
je 0x403f0d
mov ecx, eax
call fcn.00403f98
mov dword [0x422114], eax
jmp 0x403f13
mov dword [0x422114], esi
push esi
push esi
push esi
push 0x403e56
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x404480
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
push ebx
push esi
lea eax, [ebp - 0x58]
push edi
mov esi, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], ebx
je 0x40455b
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [esi + 0x24], edi
jne 0x4044c8
push edi
push edi
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esi + 0x24], eax
push dword [esi + 0x24]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esi + 0x20]
mov dword [ebp - 8], eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xfffffffffffffff0
xor ebx, ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
je 0x4044f4
push 1
jmp 0x4044fa
test al, 2
je 0x4044fb
push 2
pop ebx
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov word [ebp - 0x858], di
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x856]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x858]
push 0x400
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
or ebx, 0x20
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x858]
push 0xffffffffffffffff
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x58]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EndPaint]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x404acc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
push ebx
push esi
lea eax, [ebp - 0x14]
push edi
mov esi, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esi + 0x60]
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
push dword [ebp + 8]
lea edi, [ebp - 0x812]
mov word [ebp - 0x814], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [ebp - 0x814]
push 0x400
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x404bb7
push 1
pop edi
push edi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
push ebx
push ebx
push 0x31
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp + 8]
call ebx
push 0xfffffffffffffff0
mov dword [ebp - 4], eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test ah, 3
je 0x404b66
push edi
jmp 0x404b76
test ah, 1
je 0x404b6f
xor edi, edi
jmp 0x404b77
test ah, 2
je 0x404b77
push 2
pop edi
mov eax, dword [esi + 0x40]
and eax, 4
cmp al, 4
jne 0x404b8f
push 1
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [esi + 0x64]
or edi, 0x24
sub dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push edi
push eax
lea eax, [ebp - 0x814]
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 4]
push dword [ebp + 8]
call ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x405d4c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
and word [ebp - 0x824], 0
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x822]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x824]
push 0x400
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ebx, dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0xa4]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
test eax, eax
je 0x405e15
push 0
push 0
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x405e15
xor eax, eax
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0x10102
call dword [sym.imp.GDI32.dll_ExtCreatePen]
test eax, eax
mov dword [ebp - 4], eax
je 0x405e2a
push eax
push ebx
call edi
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ebx
call dword [sym.imp.GDI32.dll_Rectangle]
push dword [ebp - 8]
push ebx
call edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x405e2a
push 2
push ebx
call dword [sym.imp.GDI32.dll_GetCurrentObject]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_FillRect]
push dword [esi + 0x20]
push ebx
call edi
push dword [esi + 0x80]
mov dword [ebp - 4], eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xfffffffffffffff0
xor ebx, ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
je 0x405e55
push 1
jmp 0x405e5b
test al, 2
je 0x405e5c
push 2
pop ebx
or ebx, 0x20
lea eax, [ebp - 0x18]
push ebx
push eax
lea eax, [ebp - 0x824]
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 4]
push dword [ebp + 8]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406d03
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov byte [ebp - 1], 1
mov eax, dword [esi + 0x50]
mov ecx, eax
and ecx, 0xc
cmp cl, 0xc
jne 0x406d58
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0x10], eax
call edi
push dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0xfffffffe
call edi
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x4e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x406db2
shr eax, 2
test al, 1
je 0x406d81
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [esi + 4]
movzx ecx, di
push ecx
push 0x111
jmp 0x406d4f
xor ebx, ebx
push 1
push ebx
push ebx
push dword [esi + 0x24]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x406db2
or byte [esi + 0x54], 2
push 1
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408312
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x154], 0x64
mov dword [esi + 0x158], 1
jle 0x40836b
push edi
push 0
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push 0
push 0xf060
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x30]
call edi
push 0
push dword [esi + 0x58]
call edi
push 5
push dword [esi + 0x80]
call edi
push 5
push dword [esi + 0x160]
call edi
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x409202
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and word [ebp - 0x210], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20e]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x103
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 4]
push eax
push str.UninstallString
push str.Software360ChromeUpdateClientState27D39816_7A3D_406c_9ABC_97FB55674016
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
pop edi
jne 0x4092d4
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
lea eax, [ebp + eax*2 - 0x212]
lea edx, [ebp - 0x210]
xor ecx, ecx
cmp eax, edx
je 0x4092d4
cmp ecx, 3
je 0x40929a
cmp word [eax], 0x5c
jne 0x409289
inc ecx
dec eax
lea edx, [ebp - 0x210]
dec eax
cmp eax, edx
jne 0x40927d
cmp ecx, 3
jne 0x4092d4
cmp dword [ebp + 8], 0
je 0x4092d4
and word [eax + 2], 0
lea eax, [ebp - 0x210]
push eax
mov eax, dword [ebp + 0xc]
dec eax
push str._s360chrome.exe
push eax
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4092d4
push 1
pop eax
jmp 0x4092d6
xor eax, eax
leave
ret 8