joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d1a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x505c4a
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
xor edi, edi
test byte [0x573898], 1
mov esi, ecx
jne 0x41d1f4
or dword [0x573898], 1
push 0x508530
mov dword [0x573724], edi
mov dword [0x573720], edi
mov dword [0x573728], edi
call fcn.004f03e3
add esp, 4
mov eax, dword [0x573724]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x41d332
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
lea eax, [esp + 0x18]
push eax
lea eax, [esi + 0x20]
mov dword [esp + 0x70], edi
call fcn.00437e00
xor ebx, ebx
mov dword [esp + 0x10], edi
jmp 0x41d230
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov edi, dword [esp + 0x20]
je 0x41d306
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x41d306
mov edi, dword [esp + 0x10]
cmp dword [edi + esi + 0x18], 8
jb 0x41d270
mov esi, dword [edi + esi + 4]
jmp 0x41d274
lea esi, [edi + esi + 4]
mov ecx, dword [esp + 0x14]
push esi
add ecx, 0x58
push ecx
call fcn.00428610
test eax, eax
je 0x41d2f5
lea ecx, [eax + 0x14]
call dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
push eax
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x78], 1
call fcn.00457e20
add esp, 0xc
mov byte [esp + 0x6c], 2
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x41d2c7
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
push ecx
push eax
push 0x186a7
call fcn.0041ed20
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add edi, 0x1c
add ebx, 1
mov dword [esp + 0x10], edi
xor edi, edi
jmp 0x41d230
test esi, esi
mov dword [esp + 0x6c], 0xffffffff
je 0x41d332
cmp esi, edi
je 0x41d329
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
add esi, 0x1c
cmp esi, edi
jne 0x41d316
mov esi, dword [esp + 0x1c]
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov ecx, dword [esp + 0x64]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424de0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5021bc
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
lea ecx, [esi + 8]
mov dword [esi], vtable.CPluginAppInfo.0
call edi
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
call edi
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call edi
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call edi
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 3
call edi
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 4
call edi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 6
call edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 7
call edi
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 8
call edi
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x424e80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50213c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.CPluginAppInfo.0
mov dword [ebp - 4], 8
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [esi + 0x3c]
call edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 7
call edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 6
call edi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call edi
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 4
call edi
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 3
call edi
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call edi
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 1
call edi
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0
call edi
lea ecx, [esi + 8]
mov dword [ebp - 4], 0xffffffff
call edi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x425cc0
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5020a4
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_void_]
lea ecx, [esi + 0x10]
call edi
lea ecx, [esi + 0x14]
mov dword [ebp - 4], 0
call edi
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call edi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 2
call edi
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 3
call edi
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 4
call edi
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 5
call edi
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 6
call edi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 7
call edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 8
call edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 9
call edi
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0xa
call edi
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 0xb
call edi
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 0xc
call edi
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 0xd
call edi
mov byte [ebp - 4], 0xe
call fcn.00425eb0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x425d90
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x501fd8
push eax
mov dword fs:[0], esp
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0xd
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [esi + 0x74]
call edi
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 0xc
call edi
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 0xb
call edi
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0xa
call edi
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 9
call edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 8
call edi
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 7
call edi
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 6
call edi
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 5
call edi
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 4
call edi
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 3
call edi
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 2
call edi
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call edi
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 0
call edi
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 0xffffffff
call edi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x426330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503de8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.svrlib::Logger.0
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x28]
test eax, eax
jle 0x42637e
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x30]
push ecx
push eax
push 1
push edx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
mov dword [esi + 0x28], 0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCR80.dll_fflush]
mov eax, dword [esi + 0x30]
push eax
call sub.MFC80U.DLL_Ordinal_266
mov eax, dword [esi + 4]
add esp, 8
test eax, eax
je 0x4263a5
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
lea ecx, [esi + 0x164]
push ecx
mov dword [esi + method.fund::lock::critical_section.virtual_0], vtable.fund::lock::critical_section.0
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
lea ecx, [esi + 0xc0]
mov dword [esi + method.fund::noncopyable.virtual_0], vtable.fund::noncopyable.0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__::vbase_dtor_void_]
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x427010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov edx, dword [esi + 4]
test edx, edx
je 0x4270d1
mov ecx, dword [esi + 0x2c]
test ecx, ecx
mov eax, dword [esi + 0x28]
push edi
jne 0x427076
test eax, eax
mov edi, dword [sym.imp.MSVCR80.dll_fwrite]
jle 0x42704a
push edx
push eax
mov eax, dword [esi + 0x30]
push 1
push eax
call edi
add esp, 0x10
mov dword [esi + 0x28], 0
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x427061
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
push ecx
push eax
push 1
push edx
call edi
add esp, 0x10
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 4
pop edi
mov al, 1
pop esi
pop ebp
ret 0xc
mov edi, dword [ebp + 0xc]
push ebx
lea ebx, [eax + edi]
cmp ebx, ecx
mov ecx, dword [esi + 0x30]
pop ebx
jl 0x4270b6
push edx
push eax
push 1
push ecx
call dword [sym.imp.MSVCR80.dll_fwrite]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.MSVCR80.dll_fflush]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x30]
push edi
push eax
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0x20
mov dword [esi + 0x28], edi
pop edi
mov al, 1
pop esi
pop ebp
ret 0xc
mov edx, dword [ebp + 8]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCR80.dll_memcpy
add esp, 0xc
add dword [esi + 0x28], edi
pop edi
mov al, 1
pop esi
pop ebp
ret 0xc
xor al, al
pop esi
pop ebp
ret 0xc
Function at 0x42a7f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505b71
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov dword [esi], vtable.svrlib::KVResultSet_unsigned_short_int_.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
push edi
mov dword [ebp - 0x14], esi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
lea edi, [esi + 0x1c]
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.0042d1f0
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x2c], vtable.svrlib::DataBuf.0
mov byte [esi + 0x38], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x10]
lea edi, [esi + 0xc]
mov dword [esi + 0x48], ebx
cmp dword [edi + 4], eax
mov dword [ebp - 0x10], eax
ja 0x42a885
cmp eax, dword [edi + 8]
jbe 0x42a88e
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
mov dword [esi + 0x48], edi
je 0x42a8ac
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x42a8ac
push ebx
push ecx
push eax
mov ecx, esi
call fcn.0042abf0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42bd20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505afb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
xor eax, eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [esi], vtable.svrlib::KVResultRow_unsigned_short_int_.0
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [ebp - 0x10], esi
mov dword [esi + 0x18], vtable.svrlib::DataBuf.0
mov byte [esi + 0x24], al
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], eax
lea ecx, [esi + 0x34]
mov dword [ebp - 4], eax
call fcn.0042a370
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x42c080
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x501fd8
push eax
mov dword fs:[0], esp
mov eax, dword [edi]
push ebx
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push esi
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x10]
mov dword [esi], eax
fld qword [edi + 8]
push ecx
fstp qword [esi + 8]
lea ecx, [esi + 0x10]
call ebx
lea edx, [edi + 0x14]
push edx
lea ecx, [esi + 0x14]
mov dword [ebp - 4], 0
call ebx
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call ebx
lea ecx, [edi + 0x1c]
push ecx
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 2
call ebx
lea edx, [edi + 0x20]
push edx
lea ecx, [esi + 0x20]
mov byte [ebp - 4], 3
call ebx
lea eax, [edi + 0x24]
push eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 4
call ebx
lea ecx, [edi + 0x28]
push ecx
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 5
call ebx
lea edx, [edi + 0x2c]
push edx
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 6
call ebx
lea eax, [edi + 0x30]
push eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 7
call ebx
lea ecx, [edi + 0x34]
push ecx
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 8
call ebx
lea edx, [edi + 0x38]
push edx
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 9
call ebx
lea eax, [edi + 0x3c]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [esi + 0x3c]
call ebx
lea ecx, [edi + 0x40]
push ecx
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 0xb
call ebx
lea edx, [edi + 0x44]
push edx
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 0xc
call ebx
mov byte [ebp - 4], 0xd
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov ecx, dword [edi + 0x4c]
mov dword [esi + 0x4c], ecx
mov edx, dword [edi + 0x50]
mov dword [esi + 0x50], edx
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov ecx, dword [edi + 0x58]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x5c]
mov dword [esi + 0x5c], edx
mov eax, dword [edi + 0x60]
mov dword [esi + 0x60], eax
mov ecx, dword [edi + 0x64]
mov dword [esi + 0x64], ecx
mov edx, dword [edi + 0x68]
mov dword [esi + 0x68], edx
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
mov ecx, dword [edi + 0x70]
lea edx, [edi + 0x74]
mov dword [esi + 0x70], ecx
push edx
lea ecx, [esi + 0x74]
call ebx
mov eax, dword [edi + 0x78]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x78], eax
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x432c00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5021bc
push eax
mov dword fs:[0], esp
push ebx
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_class_CTXStringW_const__]
push esi
mov esi, dword [ebp + 8]
lea ecx, [edi + 8]
mov dword [esi], vtable.CPluginAppInfo.0
mov eax, dword [edi + 4]
push ecx
lea ecx, [esi + 8]
mov dword [esi + 4], eax
call ebx
lea edx, [edi + 0xc]
push edx
lea ecx, [esi + 0xc]
mov dword [ebp - 4], 0
call ebx
mov byte [ebp - 4], 1
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x14], ecx
mov edx, dword [edi + 0x18]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x1c]
lea ecx, [edi + 0x20]
push ecx
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], eax
call ebx
lea edx, [edi + 0x24]
push edx
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call ebx
lea eax, [edi + 0x28]
push eax
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 3
call ebx
lea ecx, [edi + 0x2c]
push ecx
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 4
call ebx
lea edx, [edi + 0x30]
push edx
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call ebx
lea eax, [edi + 0x34]
push eax
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 6
call ebx
lea ecx, [edi + 0x38]
push ecx
lea ecx, [esi + 0x38]
mov byte [ebp - 4], 7
call ebx
lea edx, [edi + 0x3c]
push edx
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 8
call ebx
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x433580
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa08
push esi
push edi
xor edi, edi
push 0x7fe
lea eax, [ebp - 0xa06]
push edi
push eax
mov word [ebp - 0xa08], di
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [ebp - 0x206]
push edi
push ecx
mov word [ebp - 0x208], di
call sub.MSVCR80.dll_memset
add esp, 0x18
lea edx, [ebp - 0x208]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x529b98
lea eax, [ebp - 0x208]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll_wcscat_s]
lea ecx, [ebp - 0x208]
push 0x529bc8
push ecx
call dword [sym.imp.MSVCR80.dll__wfopen]
mov esi, eax
add esp, 0x14
cmp esi, edi
je 0x433647
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
push edx
push eax
lea ecx, [ebp - 0xa08]
push 0x400
push ecx
call dword [sym.imp.MSVCR80.dll_vswprintf_s]
mov edi, dword [sym.imp.MSVCR80.dll_fwprintf]
lea edx, [ebp - 0xa08]
push edx
push 0x5233fc
push esi
call edi
push 0x529bd0
push esi
call edi
push esi
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 0x28
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4339b0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x507578
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x30], 0
push edi
jne 0x433a07
push 0x3c
push str..DownloadBackup.cpp
push str._m_strSavePatch.empty__
push str.IF_NOT__s__in__s___d_n
push 0x11
push str..DownloadBackup.cpp
call fcn.004f3ba0
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov dword [ebp - 0x10], esi
call fcn.00434990
mov ebx, 8
mov dword [ebp - 4], 0
cmp dword [esi + 0x50], ebx
lea edi, [esi + 0x3c]
jb 0x433a29
mov eax, dword [edi]
jmp 0x433a2b
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x433a4a
cmp dword [esi + 0x50], ebx
jb 0x433a3d
mov edi, dword [edi]
push edi
call fcn.004f63c0
add esp, 4
test eax, eax
je 0x433a82
cmp dword [esi + 0x34], ebx
jb 0x433a54
mov ecx, dword [esi + 0x20]
jmp 0x433a57
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], ebx
jb 0x433a61
mov eax, dword [esi + 4]
jmp 0x433a64
lea eax, [esi + 4]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x433a82
mov ecx, esi
call fcn.004347b0
test eax, eax
je 0x433a82
call fcn.00433ab0
mov eax, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00434880
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4342d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x506b02
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
push edi
mov edi, ecx
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x18], 1
jne 0x434335
push 0x104
push str..DownloadBackup.cpp
push str._strSetupXmlPatch.empty__
push str.IF_NOT__s__in__s___d_n
push 0x11
push str..DownloadBackup.cpp
call fcn.004f3ba0
add esp, 0x18
mov eax, 1
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, 8
cmp dword [edi + 0x18], ebx
push esi
lea esi, [edi + 4]
jb 0x434348
mov eax, dword [esi]
jmp 0x43434a
mov eax, esi
push eax
call fcn.004f6840
add esp, 4
test eax, eax
je 0x43436a
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x18], ebx
jb 0x434371
mov esi, dword [esi]
push 0
push 0
push 1
push 0
push 2
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x434446
mov ecx, 0x20
mov esi, 0x528210
lea edi, [ebp - 0xd8]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x38]
movsw word es:[edi], word [esi]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0xd8]
xor edi, edi
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0xfde9
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x54]
push edx
mov byte [ebp - 4], 1
call fcn.00457d10
add esp, 0xc
lea ecx, [ebp - 0x54]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [ebp - 0xd], 0
je 0x434436
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea eax, [ebp - 0x1c]
push eax
push 3
lea ecx, [ebp - 0x14]
push ecx
push ebx
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x14], 0xef
mov byte [ebp - 0x13], 0xbb
mov byte [ebp - 0x12], 0xbf
call esi
cmp dword [ebp - 0x20], 0x10
mov eax, dword [ebp - 0x34]
jae 0x434422
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
push edi
lea edx, [ebp - 0x1c]
push edx
push ecx
push eax
push ebx
call esi
cmp eax, edi
je 0x434436
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop esi
pop ebx
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret