Function at 0x432730
Capabilities:
Encode data using xor
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x465a38
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x48602c]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x48602c]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x28], esi
add esi, 8
mov dword [esp + 0x24], eax
mov eax, esi
mov byte [esp + 0x17], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x432790
sub eax, edx
je 0x432812
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x432819
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x43281d
push 0x1ff
lea ecx, [esp + 0x69]
push 0
push ecx
mov byte [esp + 0x70], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.WriteLog_faild__FileName:_s_ErrorCode:_d
mov ecx, 0x200
lea edi, [esp + 0x70]
call fcn.004124c0
add esp, 0xc
xor al, al
jmp 0x432961
mov bl, 1
jmp 0x432821
mov bl, byte [esp + 0x17]
lea ecx, [esp + 0x2c]
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 edx, [esp + 0x1c]
xor esi, esi
push edx
mov dword [esp + 0x27c], esi
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x432868
lea ecx, [esp + 0x2c]
mov dword [esp + 0x278], 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_]
xor al, al
jmp 0x432961
test bl, bl
je 0x432888
mov eax, dword [esp + 0x1c]
or eax, dword [esp + 0x20]
je 0x432888
push 2
push esi
xor ecx, ecx
push ecx
xor eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
jmp 0x4328c0
lea ecx, [esp + 0x48]
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 esi, [esp + 0x48]
mov byte [esp + 0x278], 1
call fcn.00432aa0
mov ecx, esi
push ecx
lea ecx, [esp + 0x30]
call dword [sym.imp.MSVCP80.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__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, esi
mov byte [esp + 0x278], 0
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 edx, dword [esp + 0x24]
push edx
lea ecx, [esp + 0x30]
call dword [0x4682c8]
push 0x47ca88
lea ecx, [esp + 0x30]
call dword [0x4682c8]
mov eax, dword [esp + 0x28]
cmp byte [eax + 6], 0
je 0x43290f
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
lea ecx, [esp + 0x2c]
mov esi, eax
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
test esi, esi
jbe 0x43290f
mov ecx, esi
xor byte [eax], 0xca
add eax, 1
sub ecx, 1
jne 0x432904
push 0
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x20], 0
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
push eax
lea ecx, [esp + 0x38]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43284c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x278], 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 al, 1
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.0043ad38
mov esp, ebp
pop ebp
ret 4