joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4163f3
Capabilities:
Delete directory
Set file attributes

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, 0x4237e0
push dword [edi + 4]
mov ecx, esi
push dword [edi]
call fcn.00416874
add edi, 8
cmp edi, 0x423800
jb 0x4163fc
cmp dword [esi + 0x14], 0
jne 0x41646a
push 1
push str.User_Data
mov ecx, esi
call fcn.00416874
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x416433
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 0x41646a
mov eax, dword [esi + 0x30]
test eax, eax
jne 0x41644a
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 0x416463
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 0x41674d
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x416765
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 edi
push 0
push 0x7530
push str.__class3___dword0
push eax
call fcn.00402231
and word [ebp - 0x208], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
mov esi, dword [esi + 0x30]
add esp, 0x10
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test esi, esi
pop edi
jne 0x4167a2
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 str.Installerhao123VOLService.exe
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
je 0x4167e2
push 0
push 0x1388
lea eax, [ebp - 0x208]
push 0x42c4f4
push eax
call fcn.00402231
add esp, 0x10
push 1
pop eax
leave
ret

Function at 0x4167fd
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 0x41686c
cmp word [esi], dx
je 0x41686c
cmp dword [ecx + 0x10], 8
jge 0x41686c
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 0x41686f
push 1
pop eax
pop esi
leave
ret 4
Function at 0x416905
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 0x416a63
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 0x41695c
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x41696c
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x416979
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x90]
mov dword [ebp - 8], ecx
test eax, eax
je 0x416989
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 0x416a56
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 0x416a56
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x416a1a
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 0x416a56
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 0x416994
pop ebx
pop edi
pop esi
leave
ret
Function at 0x418bb0
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 0x418c45
lea ecx, [esi + 0x10]
push 0x42c5b0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x418c45
push ebp
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x418c3e
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 0x418c3e
mov dword [esi + 0x230], eax
push 0x10
mov dword [esi + 0x22c], edi
call sub.gdiplus.dll_GdipAlloc
mov edi, eax
test edi, edi
je 0x418c36
and dword [edi + 4], 0
lea eax, [edi + 4]
push eax
lea eax, [esi + 0x220]
push eax
mov dword [edi], 0x4239bc
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [edi + 8], eax
jmp 0x418c38
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 0x418c7a
call fcn.004197d2
mov ecx, dword [edi]
mov dword [esi + 4], eax
call fcn.004197f6
mov dword [esi + 8], eax
xor eax, eax
cmp dword [esi + 4], ebx
setg al
jmp 0x418c7c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x419c48
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x1c], 0
je 0x419d55
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.00419f49
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 0x419cf2
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 0x419d27
push dword [ebp - 0xc]
jmp 0x419d29
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 0x41bfb7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00420e10
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 0x41c04c
mov esi, dword [esi]
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x41c04c
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 0x41c061
lea ecx, [ebp - 0x1004]
lea esi, [ebx + 0x1c]
test ecx, ecx
je 0x41c03d
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.00407841
mov ecx, dword [ebp + 8]
add ebx, 0x1c
push ebx
call fcn.00406f7d
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.00406fc3
jmp 0x41c058
Function at 0x41dd16
Capabilities:
Check os version

Disassembly:
mov eax, 0x42226c
call fcn.00420e60
sub esp, 0x178
and dword [ebp - 0x70], 0
push ebx
push esi
push edi
mov esi, ecx
push 0x16
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
mov dword [ebp - 0x184], 0x114
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x174], 2
jne 0x41de39
cmp dword [ebp - 0x180], 6
jne 0x41de39
lea eax, [ebp - 0x54]
push str.Microsoft_Yahei
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
mov dword [ebp - 0x70], 0xfffffff4
pop ecx
push str.menu
lea ecx, [ebp - 0x10]
call fcn.00406fc3
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
lea edi, [esi + 0x14]
mov esi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0041e3ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [eax], ebx
call fcn.00407765
push str.edit
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x70], 0xfffffff2
call fcn.00406fc3
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 1
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0041e3ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [eax], ebx
call fcn.00407765
push str.link
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x70], 0xfffffff4
mov byte [ebp - 0x5b], 1
call fcn.00406fc3
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 2
push eax
call esi
mov esi, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0041e3ae
or dword [ebp - 4], 0xffffffff
mov dword [eax], esi
lea ecx, [ebp - 0x10]
jmp 0x41df06
lea eax, [ebp - 0x54]
push str.Tahoma
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
mov dword [ebp - 0x70], 0xe
pop ecx
push str.menu
lea ecx, [ebp - 0x10]
call fcn.00406fc3
lea eax, [ebp - 0x70]
lea edi, [esi + 0x14]
mov esi, dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push eax
mov dword [ebp - 4], 3
call esi
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0041e3ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [eax], ebx
call fcn.00407765
push str.edit
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x70], 0x12
call fcn.00406fc3
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 4
push eax
call esi
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.0041e3ae
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
mov dword [eax], ebx
call fcn.00407765
push str.link
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x70], 0xe
mov byte [ebp - 0x5b], 1
call fcn.00406fc3
lea eax, [ebp - 0x70]
mov dword [ebp - 4], 5
push eax
call esi
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0041e3ae
or dword [ebp - 4], 0xffffffff
mov dword [eax], esi
lea ecx, [ebp - 0x14]
call fcn.00407765
mov ecx, dword [ebp - 0xc]
push 1
pop eax
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10187545
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 0x20]
je 0x1018a1b9
pushfd
clc
test bp, 0x2b92
add eax, edi
mov word [esp], cx
call fcn.1018b4c1
and al, 0xe8
pushal
aas
add byte [eax], al
movsd dword es:[edi], dword [esi]
and esi, dword [edi + 0x2b]
adc al, 0xdc
mov dh, dh
and eax, 0x96cb788f
xor al, 0xaf
jnp 0x1018755b
mov bl, 0xe3
test eax, 0x96fb8fe8
mov ebp, 0xe27ca43f
mov ecx, 0x9a916f64
ret

Function at 0x102d5082
Capabilities:
Encode data using xor

Disassembly:
pushfd
not al
inc al
mov al, byte [ecx]
push dword [esp]
pushfd
call fcn.102d2c39
adc byte [edi - 0x4b], dl
or dword [ebx + 0xc1a6480], esp
sub edi, dword [0x31456193]
pop edi
sal edi, 0x10
inc ebp
xor dword [edi - 0x3f], ebx
not dword [eax]
adc byte [edx + 0x3e], al
loope 0x102d509f
pop esp
pop ebx
pop dword [ebp + 0x6297ace1]
lcall 0xf0c3, 0xca88986f
std
sub ebp, dword [eax]
jmp 0x102d5118
push edi
outsd dx, dword [esi]
ficomp dword [edx]
adc al, 0x81
mov byte [eax + 0x58f8b5d2], dl
invalid

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x68c77a26
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x8540538
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4ecd70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x7278cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x154
push esi
push edi
mov esi, ecx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x13
xor eax, eax
lea edi, [esp + 0xc]
push edx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x10], 0x4c
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x1c], str.All_Support_Files
mov dword [esp + 0x44], 0x81000
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
cmp eax, 1
jne 0x4ece09
lea eax, [esp + 0x58]
lea ecx, [esi + 0x884]
push eax
call fcn.00710668
push 0
mov ecx, esi
call fcn.0070f7f7
lea edi, [esi + 0x884]
push 0x2e
mov ecx, edi
call fcn.0070ae56
cmp eax, 0xffffffff
je 0x4eceb8
inc eax
lea ecx, [esp + 8]
push eax
push ecx
mov ecx, edi
call fcn.0070aca9
mov edx, dword [esp + 8]
push 0x7811d8
push edx
mov dword [esp + 0x16c], 0
call fcn.006f9cf0
add esp, 8
test eax, eax
je 0x4ece96
mov eax, dword [esp + 8]
push 0x7811d4
push eax
call fcn.006f9cf0
add esp, 8
test eax, eax
je 0x4ece96
mov ecx, dword [esp + 8]
push str.RMVB
push ecx
call fcn.006f9cf0
add esp, 8
test eax, eax
je 0x4ece96
mov edx, dword [esp + 8]
push 0x7811c8
push edx
call fcn.006f9cf0
add esp, 8
test eax, eax
je 0x4ece96
push 1
jmp 0x4ece98
push 0
mov ecx, esi
push 0x479
call fcn.00710a40
lea ecx, [esp + 8]
mov dword [esp + 0x164], 0xffffffff
call fcn.007104df
mov ecx, esi
call fcn.004eea00
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x160
ret
Function at 0x4ef5f0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x378
lea eax, [esp + 4]
push ebx
push ebp
push edi
push eax
push 0x104
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x783f7c]
repne scasb al, byte es:[edi]
mov ecx, dword [str.WaterMark.ass]
mov eax, dword [0x783f80]
dec edi
push 0
push 0
push 2
mov dword [edi], ecx
mov cx, word [0x783f84]
push 0
push 1
mov dword [edi + 4], edx
lea edx, [esp + 0x24]
push 0x40000000
push edx
mov dword [edi + 8], eax
mov word [edi + 0xc], cx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4ef6b1
push esi
mov ecx, 0x9b
mov esi, str._V4_Styles__r_nFormat:_Name__Fontname__Fontsize__PrimaryColour__SecondaryColour__OutlineColour__BackColour__Bold__Italic__Underline__StrikeOut__ScaleX__ScaleY__Spacing__Angle__BorderStyle__Outline__Shadow__Alignment__MarginL__MarginR__MarginV__Encoding_r_nStyle:_Default_Times_New_Roman_16_H00FFFFFF_HF0000000_H005B3400_H00000000__1_0_0_0_100_100_0_0.00_1_2_2_2_5_5_5_134_r_n_r_n_Events__r_nFormat:_Layer__Start__End__Style__Actor__MarginL__MarginR__MarginV__Effect__Text_r_nDialogue:_0_0:00:00.00_99:59:59.99_Default_Default_0000_0000_0000___a10UnregisteredNcHFF0000WinMPG_Video_ConvertNcHFFFFFFwww.winmpg.com_r_n
lea edi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
push 0
movsb byte es:[edi], byte [esi]
push eax
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x124]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
lea ecx, [ebp + 0xec]
push edx
call fcn.00710668
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x378
ret
Function at 0x702160
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x78bfb8
cmp edx, dword [eax]
je 0x702182
add eax, 8
inc ecx
cmp eax, 0x78c048
jl 0x702173
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x78bfb8]
jne 0x7022b0
mov eax, dword [0x78f6ec]
cmp eax, 1
je 0x70228a
test eax, eax
jne 0x7021b3
cmp dword [0x789334], 1
je 0x70228a
cmp edx, 0xfc
je 0x7022b0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7021ea
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00702ad0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.006fb210
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x70222d
lea eax, [ebp - 0x1a4]
push eax
call fcn.006fb210
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x772810
push edi
call fcn.00704890
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00702ad0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00702ae0
lea eax, [ebp - 0xa0]
push 0x7727f0
push eax
call fcn.00702ae0
push dword [esi + 0x78bfbc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00702ae0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00705bc8
add esp, 0x2c
pop edi
jmp 0x7022b0
lea eax, [ebp + 8]
lea esi, [esi + 0x78bfbc]
push 0
push eax
push dword [esi]
call fcn.006fb210
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x70a420
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.006f9ec0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x70a4eb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x70a4eb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x70a49e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x70a4a9
or bh, 8
and edi, 0x8000000
je 0x70a4c4
mov eax, dword [0x790e5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x70a4eb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret