joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415030
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5410
call fcn.005fffa0
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x2808], 0
push 0x27ff
push 0
lea eax, [ebp - 0x2807]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov byte [ebp - 0x5410], 0
push 0x27ff
push 0
lea ecx, [ebp - 0x540f]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x4150a0
mov edx, dword [ebp + 0xc]
push edx
push 0x27ff
lea eax, [ebp - 0x2808]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0xc
mov byte [ebp - 0x2c10], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x2c0f]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0x280c]
push edx
lea eax, [ebp - 0x2808]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4150fa
push 0x617158
push 0x3ff
lea edx, [ebp - 0x2c10]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0xc
mov eax, 0xfffffffe
jmp 0x41515a
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x280c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x41514b
mov edx, dword [ebp - 0x280c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x617144
push 0x3ff
lea eax, [ebp - 0x2c10]
push eax
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0xc
mov eax, 0xfffffffd
jmp 0x41515a
mov ecx, dword [ebp - 0x280c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret 0x18
Function at 0x415170
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov dword [ebp - 0x1ac], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4151d5
push 1
lea ecx, [ebp - 0xa8]
call fcn.00409eb0
mov dword [ebp - 0x1b0], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x1b4]
sub ecx, 4
call fcn.004016e0
lea ecx, [ebp - 0x5c]
call dword [sym.imp.MSVCP90.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x4550
je 0x415216
push 1
lea ecx, [ebp - 0x128]
call fcn.00409eb0
mov dword [ebp - 0x1b8], eax
lea ecx, [ebp - 0xdc]
call fcn.00409fa0
lea ecx, [ebp - 0xdc]
call dword [sym.imp.MSVCP90.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov ecx, dword [ebp - 0x20]
add ecx, 0x18
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x20]
movzx eax, word [edx + 0x14]
add eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + 6]
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], 0
jmp 0x415256
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 4]
jae 0x41529b
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x28], edx
push 0x617198
mov eax, dword [ebp - 0x28]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x415290
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x14]
mov dword [ebp - 0x14], ecx
jmp 0x41529b
mov edx, dword [ebp - 0xc]
add edx, 0x28
mov dword [ebp - 0xc], edx
jmp 0x41524d
cmp dword [ebp - 0x10], 0
je 0x4152df
push 0x6a1bd8
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00418450
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x4152df
push 0x689ad8
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, dword [ebp - 0x1ac]
or eax, 1
mov dword [ebp - 0x1ac], eax
mov eax, dword [ebp + 8]
jmp 0x415329
push 1
lea ecx, [ebp - 0x1a8]
call fcn.00409eb0
mov dword [ebp - 0x1c4], eax
lea ecx, [ebp - 0x15c]
call fcn.00409fa0
lea ecx, [ebp - 0x15c]
call dword [sym.imp.MSVCP90.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
push 0x6a1bd8
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [ebp - 0x1ac]
or ecx, 1
mov dword [ebp - 0x1ac], ecx
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x415ae0
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x67452301
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0xc3d2e1f0
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], 0
mov esp, ebp
pop ebp
ret

Function at 0x4188e0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov dword [ebp - 0x220], ecx
xor eax, eax
mov word [ebp - 0x218], ax
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0x6a1c90
call dword [sym.imp.MSVCR90.dll_wcsncpy]
add esp, 0xc
push 0x5c
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.MSVCR90.dll_wcsrchr]
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
push str.iexplore.exe
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.MSVCR90.dll_wcscat]
add esp, 8
lea eax, [ebp - 0x218]
push eax
push 0x6a1e98
call dword [sym.imp.MSVCR90.dll_wcscpy]
add esp, 8
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
lea ebx, [0x6a1e98]
mov word [eax + 0x24], 0x100
mov dword [eax + 0x28], ebx
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x10]
lea eax, [eax + 0x3c]
lea ebx, [0x6a1e98]
mov dword [eax], ebx
mov word [eax - 4], 0x100
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0x10]
lea eax, [eax + 0x44]
lea ebx, [0x6a1e98]
mov dword [eax], ebx
mov word [eax - 4], 0x100
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret
Function at 0x41ca80
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.005fffa0
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
push 0
push 0
push 0
push 0
push str.WadeActiveXMgr_1.0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41cac1
xor al, al
jmp 0x41cbbc
push 0
push 0x4000000
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
jne 0x41cb01
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 8], 0
xor al, al
jmp 0x41cbbc
push 0x616ef4
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x41cb48
mov ecx, dword [ebp - 0x1014]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x1014], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 8], 0
xor al, al
jmp 0x41cbbc
lea eax, [ebp - 4]
push eax
push 0xfff
lea ecx, [ebp - 0x1010]
push ecx
mov edx, dword [ebp - 0x1014]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x1010]
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 4], 0
ja 0x41cb48
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 0x1014]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x1014], 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 8], 0
mov al, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret
Function at 0x41db40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60a83b
mov eax, dword fs:[0]
push eax
sub esp, 0x828
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x814], 0
push 0x7ff
push 0
lea eax, [ebp - 0x813]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionExtSettings_s
push 0x7ff
lea edx, [ebp - 0x814]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x10
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x814]
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x41dcaa
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x824], 4
mov dword [ebp - 0x81c], 4
lea edx, [ebp - 0x824]
push edx
lea eax, [ebp - 0x820]
push eax
lea ecx, [ebp - 0x81c]
push ecx
push 0
push str.Flags
mov edx, dword [ebp - 0x818]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41dcaa
cmp dword [ebp - 0x820], 1
jne 0x41dcaa
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
push 0x142
push str..SafeHookActiveXMgrActiveXMgr.cpp
lea ecx, [ebp - 0x82c]
call fcn.00403d10
mov dword [ebp - 0x830], eax
mov ecx, dword [ebp - 0x830]
mov dword [ebp - 0x834], ecx
mov dword [ebp - 4], 0
push 0x6175c8
mov edx, dword [ebp + 8]
push edx
push 0x6175bc
mov ecx, dword [ebp - 0x834]
call fcn.00404340
push eax
call fcn.00408230
add esp, 8
push eax
call fcn.00408230
add esp, 8
push eax
call fcn.00408230
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x82c]
call fcn.004042e0
xor al, al
jmp 0x41dcb9
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret
Function at 0x422970
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x108], 0
push 0x6a2240
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0x84]
call fcn.00409eb0
mov dword [ebp - 0x10c], eax
lea ecx, [ebp - 0x38]
call fcn.00409fa0
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP90.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x4231f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x69b638], eax
push 1
lea ecx, [ebp - 0x104]
call fcn.00409eb0
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0xb8]
call fcn.00409fa0
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP90.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov esp, ebp
pop ebp
ret
Function at 0x423000
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60ae59
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x148], 0
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047ce38
add esp, 4
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x42314a
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x616ef8
mov eax, dword [ebp - 0x18]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x42314a
mov byte [ebp - 0x13c], 0
push 0xff
push 0
lea ecx, [ebp - 0x13b]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
and eax, 0xffff
movzx ecx, ax
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
shr eax, 0x10
and eax, 0xffff
movzx ecx, ax
push ecx
push str._u._u._u._u
push 0xff
lea edx, [ebp - 0x13c]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const__]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x144]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [ebp - 0x148]
or ecx, 1
mov dword [ebp - 0x148], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret
Function at 0x4231b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4231cd
xor al, al
jmp 0x4231dd
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x4231db
mov al, 1
jmp 0x4231dd
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x423c70
Capabilities:
Check if file exists
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x818], 0
push 0x7ff
push 0
lea eax, [ebp - 0x817]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x818]
push ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.Z78WJ6_XBIFH.jpg
lea edx, [ebp - 0x818]
push edx
call sub.MSVCR90.dll_strcat
add esp, 8
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x423cde
xor al, al
jmp 0x423dab
push 0x61799c
lea ecx, [ebp - 0x818]
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x423d03
xor al, al
jmp 0x423dab
push 2
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR90.dll_ftell]
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR90.dll_rewind]
add esp, 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCR90.dll_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x423d4b
xor al, al
jmp 0x423dab
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
je 0x423d7e
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
xor al, al
jmp 0x423dab
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret
Function at 0x423dc0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60afc9
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x814], 0
push 0x7ff
push 0
lea eax, [ebp - 0x813]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x814]
push ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.Z78WJ6_XBIFH.jpg
lea edx, [ebp - 0x814]
push edx
call sub.MSVCR90.dll_strcat
add esp, 8
push 0x616ef4
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::length_void_const]
push eax
push 1
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret
Function at 0x4248e0
Capabilities:
Check if file exists
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc18
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 0xc18], 0
push 0x7ff
push 0
lea eax, [ebp - 0xc17]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xc18]
push ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0xc18]
push eax
call sub.MSVCR90.dll_strcat
add esp, 8
lea ecx, [ebp - 0xc18]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x42494e
or eax, 0xffffffff
jmp 0x424a38
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea edx, [ebp - 0xc18]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0xffffffff
jne 0x424984
or eax, 0xffffffff
jmp 0x424a38
lea eax, [ebp - 0x418]
push eax
mov ecx, dword [ebp - 0x414]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x418], eax
mov dword [ebp - 8], 0
mov byte [ebp - 0x410], 0
push 0x3ff
push 0
lea edx, [ebp - 0x40f]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x418]
jae 0x424a23
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
push 0x400
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424a21
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00446ea0
jmp 0x4249c2
mov eax, dword [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0xc]
call fcn.00447140
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret
Function at 0x424a50
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x6a0f4c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x810], 0
push 0x7ff
push 0
lea eax, [ebp - 0x80f]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x810]
push ecx
push 0x800
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x810]
push eax
call sub.MSVCR90.dll_strcat
add esp, 8
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x424ad2
or eax, 0xffffffff
jmp 0x424b21
push 2
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00447140
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00447120
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x424b14
or eax, 0xffffffff
jmp 0x424b21
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.005fff12
mov esp, ebp
pop ebp
ret

Function at 0x4259d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx]
cmp eax, 0x5a4d
je 0x4259f3
xor eax, eax
jmp 0x425a14
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
je 0x425a0e
xor eax, eax
jmp 0x425a14
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x50]
mov esp, ebp
pop ebp
ret