joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412e98
Capabilities:
Delete registry key
Persist via app paths registry key
Set registry value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathshao123JuziBrowser.exe
push ebx
mov esi, dword [edi + 0x20]
neg esi
sbb esi, esi
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [edi + 0x8c]
mov eax, dword [edi + 0x90]
test ecx, ecx
jne 0x412ece
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov ebp, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add eax, eax
push eax
push ecx
push 1
push 0x42a560
push ebx
push esi
call ebp
mov eax, dword [edi + 0x80]
mov edi, dword [edi + 0x7c]
test edi, edi
jne 0x412ef6
mov edi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
add eax, eax
push eax
push edi
push 1
push str.Path
push ebx
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x413133
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
push 1
cmp dword [esi + 0x24], edi
pop eax
je 0x413154
cmp dword [esi + 0x14], 9
mov dword [ebp - 4], eax
jge 0x413157
mov dword [ebp - 4], edi
cmp dword [ebp - 4], edi
mov ebx, dword [esi + 0x28]
jne 0x413165
cmp ebx, edi
jne 0x413185
jmp 0x4131e0
mov eax, dword [esi + 0x8c]
cmp eax, edi
jne 0x413174
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
push str.SoftwareClassesLocal_SettingsSoftwareMicrosoftWindowsShellMuiCache
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov word [ebp - 0x20c], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
push ebx
push dword [ebp - 4]
stosw word es:[edi], ax
push str.__class3___dword1___atb_d___defb_d
lea eax, [ebp - 0x20c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
mov eax, dword [esi + 0x8c]
add esp, 0x14
test eax, eax
jne 0x4131ca
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
add esi, 0x10
lea ecx, [ebp - 0x20c]
push esi
push 0
push ecx
push eax
call fcn.00402231
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413216
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x8c]
test eax, eax
jne 0x413228
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41325c
mov eax, dword [esi + 0x5c]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
test eax, eax
jne 0x413242
mov eax, ecx
mov esi, dword [esi + 0x8c]
test esi, esi
jne 0x41324e
mov esi, ecx
push 0
push 0
push eax
push esi
call fcn.00402231
add esp, 0x10
pop esi
ret
Function at 0x4134b5
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
and word [ebp - 0x88], 0
push ebx
push esi
push edi
mov ebx, ecx
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x86]
mov esi, str.Softwarehao123JuziBrowser
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov edi, 0x428f44
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push SysReAllocString
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0x7e
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41351f
cmp word [ebp - 0x88], ax
jne 0x4135b2
push 0x80
lea eax, [ebp - 0x88]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0x7e
push eax
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 4]
push eax
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41356c
cmp word [ebp - 0x88], ax
jne 0x4135b2
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x40]
test ecx, ecx
jne 0x41357c
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
add eax, eax
push eax
push ecx
push 1
push edi
push esi
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov eax, dword [ebx + 0x40]
mov ebx, dword [ebx + 0x3c]
test ebx, ebx
jne 0x41359f
mov ebx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
add eax, eax
push eax
push ebx
push 1
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4135b7
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx + 0x80]
mov ecx, dword [ecx + 0x7c]
test ecx, ecx
jne 0x4135ca
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
add eax, eax
push eax
push ecx
push 1
push str.lastinstpath
push str.Softwarehao123JuziBrowser
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
ret
Function at 0x413b92
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12f4
call fcn.0041fa70
push ebx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x413d1f
cmp dword [ebp + 0xc], esi
je 0x413d1f
cmp dword [ebp + 0x10], esi
je 0x413d1f
cmp dword [ebp + 0x14], esi
je 0x413d1f
mov ebx, dword [sym.imp.MSVCRT.dll__snwprintf]
push str.misctsk
push str.Softwarehao123JuziBrowser
push 0x427880
lea eax, [ebp - 0x294]
push 0x103
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x294]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], 4
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x413c26
mov dword [ebp - 4], esi
cmp dword [ebp - 4], 0x40
jae 0x413d1f
push edi
mov ecx, 0x417
xor eax, eax
lea edi, [ebp - 0x12f0]
push dword [ebp + 0x10]
mov esi, 0x1060
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x18]
push 0x4260b8
mov dword [ebp - 0x12f0], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x12ec], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x12e8], eax
lea eax, [ebp - 0x12e4]
push 0x823
push eax
mov dword [ebp - 0x12f4], esi
call ebx
and dword [ebp - 0x29c], 0
lea eax, [ebp - 0x12f4]
push esi
push eax
call fcn.00413dd0
mov dword [ebp - 0x298], eax
push 0x7bd3b105
lea eax, [ebp - 0x12f4]
push esi
push eax
call fcn.00413d41
and word [ebp - 0x8c], 0
add esp, 0x24
xor eax, eax
lea edi, [ebp - 0x8a]
push 0x1f
pop ecx
push dword [ebp - 4]
rep stosd dword es:[edi], eax
push dword [ebp + 8]
stosw word es:[edi], ax
push str._s_d
lea eax, [ebp - 0x8c]
push 0x3f
push eax
call ebx
add esp, 0x14
lea eax, [ebp - 0x12f4]
mov edi, SysReAllocString
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push eax
lea eax, [ebp - 0x8c]
push 3
push eax
lea eax, [ebp - 0x294]
push eax
push edi
call esi
lea eax, [ebp - 4]
push 4
inc dword [ebp - 4]
push eax
push 4
lea eax, [ebp - 0x294]
push dword [ebp + 0xc]
push eax
push edi
call esi
push 1
pop eax
pop edi
jmp 0x413d21
xor eax, eax
pop esi
pop ebx
leave
ret
Function at 0x413d41
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x413dcb
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x413dcb
mov eax, dword [ebp + 0x10]
push 4
mov dword [ebp - 8], eax
mov eax, ebx
cdq
pop esi
mov ecx, ebx
idiv esi
mov eax, ebx
and ecx, 0x1f
sub eax, edx
mov dword [ebp - 4], edx
test eax, eax
jle 0x413dae
mov dword [ebp + 0xc], ecx
lea esi, [eax + 3]
sub dword [ebp + 0xc], edi
shr esi, 2
lea eax, [ebp - 8]
push eax
call fcn.00413d25
pop ecx
add eax, 0x67183d
mov ecx, dword [ebp + 0xc]
add ecx, edi
and ecx, 0x1f
xor eax, dword [ecx*4 + 0x429e98]
xor eax, dword [edi]
xor eax, 0xd6312bda
mov dword [edi], eax
add edi, 4
dec esi
jne 0x413d81
xor esi, esi
cmp dword [ebp - 4], esi
jle 0x413dcb
mov eax, esi
mov cl, byte [ebp + 0x10]
sub eax, dword [ebp - 4]
add eax, dword [ebp + 8]
xor byte [eax + ebx], cl
add eax, ebx
inc esi
cmp esi, dword [ebp - 4]
jl 0x413db5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413dd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
je 0x413e59
cmp dword [ebp + 0xc], esi
je 0x413e59
mov edx, 0xff
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x3fc]
mov dword [ebp - 0x400], esi
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x400]
push 8
mov ecx, esi
pop edi
test cl, 1
je 0x413e1b
shr ecx, 1
xor ecx, 0xedb88320
jmp 0x413e1d
shr ecx, 1
dec edi
jne 0x413e0c
mov dword [eax], ecx
inc esi
add eax, 4
cmp esi, 0x100
jb 0x413e07
xor ecx, ecx
or eax, 0xffffffff
cmp dword [ebp + 0xc], ecx
jbe 0x413e54
movzx esi, byte [ecx + ebx]
mov edi, eax
and edi, edx
xor esi, edi
shr eax, 8
mov esi, dword [ebp + esi*4 - 0x400]
xor eax, esi
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x413e38
not eax
pop edi
jmp 0x413e5b
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x413f18
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x413f43
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x413f41
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret

Function at 0x41492b
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 8]
dec eax
je 0x414942
dec eax
jne 0x414959
push 1
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
jmp 0x414959
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00414b13
mov ecx, eax
call fcn.0041540d
xor eax, eax
ret 0x10
Function at 0x4151b8
Capabilities:
Delete directory
Set file attributes

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, 0x4217c0
push dword [edi + 4]
mov ecx, esi
push dword [edi]
call fcn.004154b3
add edi, 8
cmp edi, 0x4217e0
jb 0x4151c1
cmp dword [esi + 0x14], 0
jne 0x41522f
push 1
push str.User_Data
mov ecx, esi
call fcn.004154b3
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x4151f8
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x41522f
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x41520f
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [esi + 0x30]
test esi, esi
jne 0x415228
mov esi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
ret
Function at 0x415232
Capabilities:
Delete registry key
Persist via app paths registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, ecx
push esi
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push edi
mov esi, dword [ebp + 0x18]
mov edi, reloc.OLEAUT32.dll_SysReAllocString
neg esi
sbb esi, esi
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallC5E2255C_66FA_4187_8EB6_5176247C4723
add esi, edi
push esi
call ebx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathshao123JuziBrowser.exe
push esi
call ebx
mov esi, str.Softwarehao123JuziBrowser
push esi
push SysReAllocString
call ebx
push esi
push edi
call ebx
cmp dword [ebp + 0x14], 0
je 0x4152a1
mov eax, dword [ebp + 0x34]
mov ebp, dword [ebp + 0x30]
test ebp, ebp
jne 0x415286
mov ebp, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
add eax, eax
push eax
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 1
push str.lastinstpath
push esi
push SysReAllocString
call ebp
jmp 0x4152a7
mov ebp, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
lea eax, [esp + 0x1c]
pop esi
and dword [esp + 0x10], 0
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
mov ebx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsJzbstall.exe
push str.ucount
push ebx
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4152e2
cmp dword [esp + 0x14], esi
je 0x4152e7
and dword [esp + 0x10], 0
inc dword [esp + 0x10]
lea eax, [esp + 0x10]
push esi
push eax
push esi
push str.ucount
push ebx
push edi
call ebp
push 0
call dword [sym.imp.MSVCRT.dll_time]
pop ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push esi
push eax
push esi
push str.ultime
push ebx
push edi
call ebp
call fcn.0040e275
mov esi, eax
add esi, 0x10
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
shl eax, 1
push eax
push esi
push 1
push str.ulcid
push ebx
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x41543c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, dword [ebp + 8]
xor edx, edx
cmp esi, edx
je 0x4154ab
cmp word [esi], dx
je 0x4154ab
cmp dword [ecx + 0x10], 8
jge 0x4154ab
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push 0x28
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
push eax
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__wcsnicmp]
add esp, 0x10
neg eax
sbb eax, eax
pop edi
inc eax
jmp 0x4154ae
push 1
pop eax
pop esi
leave
ret 4
Function at 0x415544
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
and word [ebp - 0x62c], 0
push esi
mov esi, ecx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x62a]
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x62c]
push eax
call fcn.0040135e
pop ecx
test eax, eax
pop ecx
je 0x4156a2
mov eax, dword [esi + 0xa0]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
test eax, eax
mov dword [ebp - 0x14], ecx
je 0x41559b
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x4155ab
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x4155b8
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x90]
mov dword [ebp - 8], ecx
test eax, eax
je 0x4155c8
mov dword [ebp - 8], eax
push ebx
lea ebx, [ebp - 0x14]
mov dword [ebp - 4], 4
and word [ebp - 0x21c], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21a]
rep stosd dword es:[edi], eax
push str.Internet_Explorer.lnk
push dword [ebx]
stosw word es:[edi], ax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415695
and word [ebp - 0x424], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x422]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x424]
push 0x103
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00401dcd
add esp, 0xc
test eax, eax
je 0x415695
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x415659
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x415695
lea eax, [ebp - 0x21c]
push eax
call fcn.00401a3c
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x21c]
push 0
push eax
lea eax, [ebp - 0x62c]
push eax
call fcn.00401c99
add esp, 0x18
add ebx, 4
dec dword [ebp - 4]
jne 0x4155d3
pop ebx
pop edi
pop esi
leave
ret
Function at 0x41763a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4176cf
lea ecx, [esi + 0x10]
push 0x42a294
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x4176cf
push ebp
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4176c8
push ebp
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4176c8
mov dword [esi + 0x230], eax
push 0x10
mov dword [esi + 0x22c], edi
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x4176c0
and dword [edi + 4], 0
lea eax, [edi + 4]
push eax
lea eax, [esi + 0x220]
push eax
mov dword [edi], 0x42199c
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [edi + 8], eax
jmp 0x4176c2
xor edi, edi
mov dword [esi + 0x21c], edi
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esi + 0x21c]
lea edi, [esi + 0x21c]
xor ebx, ebx
cmp ecx, ebx
mov dword [esi + 0xc], ebx
mov word [esi + 0x10], bx
je 0x417704
call fcn.0041825c
mov ecx, dword [edi]
mov dword [esi + 4], eax
call fcn.00418280
mov dword [esi + 8], eax
xor eax, eax
cmp dword [esi + 4], ebx
setg al
jmp 0x417706
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4186d2
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x4187df
push ebx
mov ebx, dword [esi + 0x10]
sub ebx, dword [esi + 8]
push edi
mov edi, dword [esi + 0xc]
push dword [esi + 0x14]
sub edi, dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
push edi
push dword [ebp - 8]
mov dword [ebp - 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [ebp - 0x14], eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
mov dword [ebp - 0x1c], edi
push dword [ebp - 4]
mov dword [ebp - 0x18], ebx
call fcn.004189d3
mov eax, dword [esi]
push 0
push 0
mov ecx, esi
push dword [ebp - 4]
call dword [eax + 0x14]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
mov dword [ebp - 0xc], eax
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_GetClipRgn]
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x41877c
push dword [esi + 8]
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_OffsetRgn]
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push 0xcc0020
push 0
push 0
push dword [ebp - 4]
push ebx
mov ebx, dword [ebp - 8]
push edi
push dword [esi + 8]
push dword [esi + 4]
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [ebp - 0x10], 1
jne 0x4187b1
push dword [ebp - 0xc]
jmp 0x4187b3
push 0
push ebx
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push dword [ebp - 0xc]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x14]
call edi
push ebx
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x41ac1a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.0041fa70
push ebx
mov ebx, ecx
and dword [ebp - 4], 0
push esi
push dword [ebx + 0xa0]
lea esi, [ebx + 0xa0]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41acaf
mov esi, dword [esi]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x41acaf
and word [ebp - 0x1004], 0
push edi
mov ecx, 0x3ff
xor eax, eax
lea edi, [ebp - 0x1002]
push 0x800
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1004]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
pop edi
cmp dword [ebp + 0xc], eax
je 0x41acc4
lea ecx, [ebp - 0x1004]
lea esi, [ebx + 0x1c]
test ecx, ecx
je 0x41aca0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x1004]
push ecx
push eax
mov ecx, esi
call fcn.00407138
mov ecx, dword [ebp + 8]
add ebx, 0x1c
push ebx
call fcn.00406874
mov eax, dword [ebp + 8]
pop esi
pop ebx
leave
ret 8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1004]
push eax
call fcn.004068ba
jmp 0x41acbb