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

Disassembly:
sub esp, 0x18
mov eax, dword [esi + 0x14]
push ebx
push ebp
push edi
lea ecx, [eax*4 + 4]
xor ebx, ebx
push ecx
push 8
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x17], bl
mov byte [esp + 0x16], bl
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x445960
lea edi, [ebx + 0xe]
jmp 0x445ad6
mov ebx, dword [esp + 0x28]
lea edx, [esp + 0x14]
push edx
call fcn.00445380
mov ebx, dword [esp + 0x18]
mov edi, eax
add esp, 4
test edi, edi
jne 0x445ad6
mov ecx, dword [esi + 0x1c]
mov eax, dword [ebx]
mov edx, dword [eax]
push ecx
mov ecx, ebx
call edx
mov edi, eax
cmp edi, 0x1779
jne 0x44599c
mov byte [esp + 0xe], 1
jmp 0x4459b3
cmp edi, 0x15e
jne 0x4459ab
mov byte [esp + 0xf], 1
jmp 0x4459b3
test edi, edi
jne 0x445ad6
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call edx
mov edi, eax
test edi, edi
jne 0x445ad6
cmp byte [esp + 0x2c], al
je 0x4459f5
push 1
push eax
mov eax, dword [esi + 0x20]
push 0xfffffbe0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4459f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x445ad2
mov ecx, dword [esi + 0x20]
mov ebp, dword [esp + 0x18]
push 0x420
push 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x445a27
lea edi, [eax + 0xe]
jmp 0x445a8b
mov eax, edi
sub ebp, edi
mov ecx, 0x420
mov dl, byte [eax + ebp]
xor dl, 0x67
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x445a30
push ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
push 0x420
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x445a65
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x445a77
cmp dword [esp + 0x20], 0x420
je 0x445a77
mov dword [esp + 0x14], 0x1d
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x10]
test edi, edi
jne 0x445ad6
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
add edx, edx
add edx, edx
push edx
push eax
push ebp
call fcn.004ad4d0
mov ecx, dword [esi + 0x14]
mov dword [ebp + ecx*4], ebx
mov eax, dword [esi + 0x18]
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
je 0x445aca
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x18], ebx
inc dword [esi + 0x14]
mov dword [esi + 0x18], ebp
mov ebp, ebx
test edi, edi
je 0x445af2
cmp byte [esp + 0x2c], 0
je 0x445af2
test ebx, ebx
je 0x445b01
mov eax, dword [esi + 0x1c]
mov edx, dword [ebx]
mov edx, dword [edx + 4]
push 0
push eax
push 1
mov ecx, ebx
call edx
test ebx, ebx
je 0x445b01
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
push 1
mov ecx, ebx
call edx
test ebp, ebp
je 0x445b15
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x445b38
cmp byte [esp + 0xe], 0
je 0x445b2c
pop edi
pop ebp
mov eax, 0x1779
pop ebx
add esp, 0x18
ret
cmp byte [esp + 0xf], 0
mov eax, 0x15e
jne 0x445b3a
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x18
ret