Function at 0x498780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4150
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x4e0240]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x498973
lea ecx, [ebp - 0x7c]
call fcn.004146f0
push 9
push str.encrypter
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], esi
call fcn.00414cd0
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
xor ebx, ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
push 0xea60
push 0x497a90
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x10]
push edi
mov byte [ebp - 4], 2
call fcn.00498610
test eax, eax
je 0x4988a7
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
sub edi, eax
je 0x4988a7
mov ecx, ebx
sub ecx, esi
jne 0x498873
mov byte [ebp - 0x10], cl
test edi, edi
je 0x49885a
lea edx, [ebp - 0x10]
sub esi, ebx
push edx
add esi, edi
push esi
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00413980
mov ebx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
push edi
push esi
push eax
lea ecx, [ebp - 0x7c]
call fcn.00414850
push 0
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
sub ecx, esi
push ecx
push esi
jmp 0x49887b
push 0
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xea60
push 0x497a90
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp + 8]
push ecx
push eax
lea ecx, [eax + 0x10]
call fcn.00498610
test eax, eax
jne 0x498828
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub ebx, esi
je 0x498947
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x498947
lea ecx, [ebp + 0xb]
xor eax, eax
push ecx
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
call fcn.004018d4
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x48]
sub eax, ebx
push eax
push ebx
push esi
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
mov dword [ebp + 8], eax
call fcn.004148e0
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
push 0
lea edx, [ebp - 0x18]
push edx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x498947
push ebx
call fcn.0046d5e2
add esp, 4
test esi, esi
je 0x498954
push esi
call fcn.0046d5e2
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x498964
push eax
call fcn.0046d5e2
add esp, 4
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
call fcn.00414750
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8