Function at 0x444e50
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 0x444e90
lea edi, [ebx + 0xe]
jmp 0x445006
mov ebx, dword [esp + 0x28]
lea edx, [esp + 0x14]
push edx
call fcn.004448b0
mov ebx, dword [esp + 0x18]
mov edi, eax
add esp, 4
test edi, edi
jne 0x445006
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 0x444ecc
mov byte [esp + 0xe], 1
jmp 0x444ee3
cmp edi, 0x15e
jne 0x444edb
mov byte [esp + 0xf], 1
jmp 0x444ee3
test edi, edi
jne 0x445006
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 0x445006
cmp byte [esp + 0x2c], al
je 0x444f25
push 1
push eax
mov eax, dword [esi + 0x20]
push 0xfffffbe0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x444f25
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x445002
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 0x444f57
lea edi, [eax + 0xe]
jmp 0x444fbb
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 0x444f60
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 0x444f95
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
jmp 0x444fa7
cmp dword [esp + 0x20], 0x420
je 0x444fa7
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 0x445006
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
add edx, edx
add edx, edx
push edx
push eax
push ebp
call fcn.004acac0
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 0x444ffa
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 0x445022
cmp byte [esp + 0x2c], 0
je 0x445022
test ebx, ebx
je 0x445031
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 0x445031
mov eax, dword [ebx]
mov edx, dword [eax + 0x18]
push 1
mov ecx, ebx
call edx
test ebp, ebp
je 0x445045
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
jne 0x445068
cmp byte [esp + 0xe], 0
je 0x44505c
pop edi
pop ebp
mov eax, 0x1779
pop ebx
add esp, 0x18
ret
cmp byte [esp + 0xf], 0
mov eax, 0x15e
jne 0x44506a
mov eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x18
ret