Function at 0x440999
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x298], 0
je 0x440c61
lea esi, [ebp - 0x1c]
call fcn.00424fc8
lea esi, [ebp - 4]
call fcn.00424fc8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x2c]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x440c51
cmp dword [edi + 0x298], 0x64
jae 0x440a08
call fcn.0042963f
cmp byte [edi + 0x2e8], 1
jne 0x440a08
sub eax, dword [edi + 0x2f4]
cmp eax, dword [edi + 0x2ec]
jb 0x440c51
cmp eax, dword [edi + 0x2f0]
jb 0x440c51
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x54], 0x630a170f
push eax
mov dword [ebp - 0x68], 0x17060d45
mov dword [ebp - 0x64], 0x4510465e
mov dword [ebp - 0x60], 0x5e070e00
mov dword [ebp - 0x5c], 0x45040c0f
mov dword [ebp - 0x58], 0x160e5e14
mov byte [ebp - 0x51], 0x63
call fcn.00441fcc
mov eax, dword [eax]
xor byte [ebp - 0x68], 0x63
pop ecx
je 0x440a54
lea ecx, [ebp - 0x68]
inc ecx
xor byte [ecx], 0x63
jne 0x440a4e
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 4]
call fcn.0042549a
pop ecx
pop ecx
lea esi, [ebp - 0x20]
call fcn.00424fe3
mov eax, dword [0x448688]
mov ebx, dword [eax + 0x144]
and dword [ebp - 0xc], 0
mov esi, dword [ebp + 8]
dec ebx
neg ebx
sbb ebx, ebx
lea eax, [esi + 0xa8]
and ebx, 0x33
push eax
dec ebx
mov dword [ebp - 0x18], eax
call fcn.004273f9
lea eax, [esi + 0x28c]
mov dword [ebp - 0x14], eax
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x290]
pop ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 8]
call 0x40d933
test al, al
je 0x440b23
jmp 0x440ac1
mov esi, dword [ebp + 8]
cmp dword [ebp - 0xc], ebx
jae 0x440b23
inc dword [ebp - 0xc]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.0043f18f
push dword [eax]
lea edi, [ebp - 4]
call fcn.0042521f
lea esi, [ebp - 0x24]
call fcn.00424fe3
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x440afc
call fcn.00424786
cmp eax, 0x186a0
ja 0x440b20
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x290]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
lea ecx, [ebp - 8]
call 0x40d933
test al, al
jne 0x440abe
mov esi, dword [ebp + 8]
push dword [ebp - 0x18]
call fcn.004273d6
pop ecx
lea eax, [ebp - 4]
call fcn.00424ab4
cmp al, 1
je 0x440c51
lea eax, [ebp - 4]
push eax
push esi
lea ebx, [ebp - 0x1c]
call fcn.00437f00
mov edi, dword [ebp + 8]
mov eax, ebx
mov ebx, dword [ebp + 0xc]
push eax
push ebx
push edi
call fcn.0043879f
mov esi, eax
call fcn.00427398
mov dword [ebp - 0x10], eax
call fcn.0042963f
test esi, esi
mov dword [edi + 0x2f4], eax
setne al
mov byte [edi + 0x2e8], al
cmp esi, 1
jne 0x440bde
push dword [ebp - 0x18]
call fcn.004273f9
mov edi, dword [ebp - 0xc]
pop ecx
test edi, edi
je 0x440bbf
mov ecx, dword [ebp - 0x14]
call 0x40d9cc
mov ecx, dword [ebp - 0x14]
call 0x40d9cc
mov esi, dword [eax]
test esi, esi
je 0x440bb4
push dword [esi + 4]
call fcn.0040a2ae
pop ecx
push esi
call fcn.004288d8
pop ecx
mov esi, dword [ebp - 0x14]
call 0x40da5a
dec edi
jne 0x440b8e
push dword [ebp - 0x18]
call fcn.004273d6
mov eax, dword [0x448688]
cmp dword [eax + 0x144], 0
pop ecx
jne 0x440c51
mov edi, dword [ebp + 8]
jmp 0x4409d3
lea esi, [ebp + 8]
call fcn.00424fc8
mov eax, dword [0x448688]
mov eax, dword [eax + 0x24]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x440bff
mov ecx, dword [ebp - 0x28]
lea eax, [eax + ecx*4 - 4]
mov esi, dword [eax]
lea eax, [ebp - 0x28]
push eax
mov eax, 0x4065dc
call fcn.0043e85b
pop ecx
push dword [ebp + 0xc]
push esi
push dword [ebp - 0x10]
push dword [eax]
lea eax, [ebp + 8]
call fcn.0042549a
add esp, 0x10
lea esi, [ebp - 0x28]
call fcn.00424fe3
lea eax, [edi + 0xdc]
push eax
call fcn.00428d27
pop ecx
cmp eax, 1
jne 0x440c49
mov eax, dword [edi]
lea ecx, [ebp + 8]
push ecx
mov ecx, edi
call dword [eax + 8]
lea esi, [ebp + 8]
call fcn.00424fe3
lea esi, [ebp - 4]
call fcn.00424fe3
lea esi, [ebp - 0x1c]
call fcn.00424fe3
pop edi
pop esi
pop ebx
leave
ret 8