Function at 0x440330
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [esp + 0x38]
test eax, eax
je 0x44037a
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x440350
sar ecx, 1
mov edx, ecx
and edx, 0xfffd
mov esi, ecx
and esi, 2
or ecx, 2
imul ecx, esi
xor esi, 2
imul esi, edx
add ecx, esi
jmp 0x44037c
xor ecx, ecx
mov word [esp + 0x18], cx
mov edx, eax
test eax, eax
je 0x44038c
add ecx, 2
mov edx, ecx
mov word [esp + 0x1a], dx
mov dword [esp + 0x1c], eax
mov dword [esp], 0x80b0a0d
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov eax, 0x4c6e9b43
nop
nop
nop
movzx ecx, byte [esp + eax - 0x4c6e9b43]
xor ecx, eax
lea edx, [ecx + 0xb0]
mov edi, 0x7e29084f
sub edi, ecx
and ecx, 1
mov ebx, edi
not ebx
and edi, 0x5c
and edx, 0xa3
or edx, edi
xor edx, 0x5d
and ebx, 1
or ebx, edx
add ebx, ecx
mov byte [esp + eax - 0x4c6e9b43], bl
inc eax
cmp eax, 0x4c6e9b4a
jne 0x4403b0
mov ebx, dword [esp]
mov eax, dword [0x44b030]
test eax, eax
je 0x44044f
xor ecx, ecx
mov edx, dword [0x44b034]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0xc0a4c970
je 0x440420
inc ecx
cmp eax, ecx
jne 0x440410
jmp 0x44044f
mov eax, dword [edx + ecx*8 + 4]
cmp eax, ebx
je 0x44044f
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
push 0
push 0
push 2
push edx
push dword [esp + 0x48]
push 6
push eax
push dword [0x44b038]
call fcn.0043b600
add esp, 0x24
mov ebx, eax
mov dword [esp], 0xb97a7b61
mov dword [esp + 4], 0
xor eax, eax
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + ecx]
mov edi, ecx
xor edi, 0xbb4387bf
add edi, eax
xor edi, edx
mov edx, edi
and edx, 1
xor edi, 1
lea edx, [edi + edx*2]
add dl, 0x44
mov byte [esp + ecx], dl
inc ecx
add eax, 2
cmp ecx, 8
jne 0x440470
cmp ebx, dword [esp]
jne 0x440650
push dword [esp + 0xc]
call fcn.00438130
add esp, 4
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], 0x81868786
mov dword [esp + 0x14], 0
mov edx, 0xa1
mov ebx, 0x5e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esp + edx - 0x91]
mov ecx, ebx
xor ecx, edx
and ecx, edi
xor ecx, edx
add cl, 0xdb
mov byte [esp + edx - 0x91], cl
inc edx
dec ebx
cmp edx, 0xa9
jne 0x4404e0
mov edx, dword [esp + 0x10]
mov dword [esp], 0x80b0a0d
mov word [esp + 4], 0
mov byte [esp + 6], 0
mov ebx, 0x4c6e9b43
movzx ebp, byte [esp + ebx - 0x4c6e9b43]
xor ebp, ebx
lea edi, [ebp + 0xb0]
mov esi, 0x7e29084f
sub esi, ebp
and ebp, 1
mov ecx, esi
not ecx
and esi, 0x5c
and edi, 0xa3
or edi, esi
xor edi, 0x5d
and ecx, 1
or ecx, edi
add ecx, ebp
mov byte [esp + ebx - 0x4c6e9b43], cl
inc ebx
cmp ebx, 0x4c6e9b4a
jne 0x440520
mov ebx, dword [esp]
mov ecx, dword [0x44b030]
test ecx, ecx
je 0x440591
xor edi, edi
mov ebp, dword [0x44b034]
mov esi, dword [esp + 0x44]
nop
nop
nop
nop
cmp dword [ebp + edi*8], 0xc0a4c970
je 0x440597
inc edi
cmp ecx, edi
jne 0x440580
jmp 0x4405ce
mov esi, dword [esp + 0x44]
jmp 0x4405ce
mov ebp, dword [ebp + edi*8 + 4]
cmp ebp, ebx
je 0x4405ce
lea ecx, [esp + 0xc]
lea esi, [esp + 0x18]
push ecx
push dword [esp + 0xc]
push eax
push edx
push esi
mov esi, dword [esp + 0x58]
push dword [esp + 0x48]
push 6
push ebp
push dword [0x44b038]
mov edi, eax
call fcn.0043b600
add esp, 0x24
mov ebx, eax
mov eax, edi
test ebx, ebx
js 0x440647
mov edx, dword [esp + 0x3c]
test edx, edx
je 0x4405df
mov ecx, dword [eax + 4]
mov dword [edx], ecx
test esi, esi
je 0x440647
cmp dword [esp + 0x40], 0
je 0x440642
mov edx, dword [esi]
mov ecx, dword [eax + 8]
lea esi, [eax + 0xc]
cmp edx, ecx
jb 0x4405f8
mov edx, ecx
mov ecx, edx
shr ecx, 2
mov ebp, dword [esp + 0x40]
mov edi, ebp
xchg esi, esi
rep movsd dword es:[edi], dword [esi]
xchg esi, esi
mov ecx, edx
and ecx, 0xfffffffc
add ebp, ecx
lea esi, [eax + ecx]
add esi, 0xc
mov ecx, edx
shr ecx, 1
and ecx, 1
mov dword [esp + 8], esi
mov edi, ebp
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
test dl, 1
mov esi, dword [esp + 0x44]
je 0x440642
and edx, 2
mov ecx, dword [esp + 8]
movzx ecx, byte [ecx + edx]
mov byte [ebp + edx], cl
mov ecx, dword [eax + 8]
mov dword [esi], ecx
push eax
call fcn.00438230
add esp, 4
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret