Function at 0x57662210
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
mov eax, 0x5424
call fcn.576616a0
mov eax, dword [0x5768cbd4]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
jne 0x57662509
cmp dword [0x5768c7c0], ebx
jne 0x57662249
mov dword [0x5768cbd4], 1
call fcn.57661f30
mov dword [0x5768cbd4], ebx
mov eax, dword [0x5768c7bc]
mov esi, dword [esp + 0x5434]
cmp eax, ebx
jne 0x57662261
cmp esi, ebx
je 0x57662509
push 0x5768c7c4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x57662279
push ebx
call fcn.576620f0
add esp, 4
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x1432]
mov word [esp + 0x1430], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x7ff
xor eax, eax
lea edi, [esp + 0x3432]
mov word [esp + 0x3430], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, esi
dec eax
je 0x5766234a
mov ecx, dword [esp + 0x18]
dec eax
je 0x57662311
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x16]
push edx
mov edx, dword [esp + 0x16]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
push str._r_n_____02d__02d__02d:_02d:_02d_
jmp 0x57662385
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x16]
push edx
mov edx, dword [esp + 0x16]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
push str._r_n_E___02d__02d__02d:_02d:_02d_
jmp 0x57662385
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x16]
push edx
mov edx, dword [esp + 0x16]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
push str._r_n_A___02d__02d__02d:_02d:_02d_
mov esi, dword [sym.imp.MSVCRT.dll_swprintf]
lea eax, [esp + 0x1448]
push eax
call esi
mov edx, dword [esp + 0x5454]
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x344c]
rep stosd dword es:[edi], eax
add esp, 0x1c
lea ecx, [esp + 0x543c]
lea eax, [esp + 0x3430]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
lea ecx, [esp + 0x3430]
lea edx, [esp + 0x1430]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x439]
mov byte [esp + 0x438], bl
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x16]
mov edx, dword [esp + 0x14]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x1a]
add esp, 8
and eax, 0xffff
and ecx, 0xffff
push 0x5768c7c4
push eax
and edx, 0xffff
push ecx
push edx
push 0x5768c9cc
lea eax, [esp + 0x34]
push 0x576875e8
push eax
call esi
add esp, 0x1c
lea ecx, [esp + 0x20]
mov dword [0x5768cbd4], 1
push ebx
push 0x80
push 4
push ebx
push 3
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [0x5768cbd4], ebx
cmp edi, 0xffffffff
je 0x57662509
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x1430]
push 0x1000
lea eax, [esp + 0x434]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_wcstombs]
add esp, 0xc
lea ecx, [esp + 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebx
jbe 0x576624f2
xor cl, cl
xor eax, eax
cmp esi, ebx
jle 0x576624c6
mov dl, byte [esp + eax + 0x430]
not dl
xor dl, cl
inc cl
mov byte [esp + eax + 0x430], dl
inc eax
cmp eax, esi
jl 0x576624ad
lea eax, [esp + esi + 0x430]
push 0x576875e4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x1c]
push ebx
add esi, 3
push ecx
lea edx, [esp + 0x438]
push esi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov dword [0x5768cbd4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x5768cbd4], ebx
pop edi
pop esi
pop ebx
add esp, 0x5424
ret