Function at 0x440740
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x30]
mov dword [esp], 0x74750a0b
mov word [esp + 4], 0
xor eax, eax
nop
mov edx, eax
and edx, 2
xor edx, 0x42
mov ecx, eax
and ecx, 5
sub ecx, edx
xor cl, byte [esp + eax]
add cl, 0x4a
mov byte [esp + eax], cl
inc eax
cmp eax, 6
jne 0x440760
mov esi, dword [esp]
mov eax, dword [0x44d2b8]
test eax, eax
je 0x4407de
xor ecx, ecx
mov edx, dword [0x44d2bc]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x3052ea03
je 0x4407b0
inc ecx
cmp eax, ecx
jne 0x4407a0
jmp 0x4407de
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x4407de
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push eax
push dword [0x44d2c0]
call fcn.0043d920
add esp, 0x24
mov esi, eax
mov dword [esp], 0xf93a3b51
mov byte [esp + 4], 0
mov eax, 0xf00e198b
nop
movzx edx, byte [esp + eax + 0xff1e675]
xor edx, eax
mov ecx, 1
sub ecx, edx
not ecx
or edx, 1
and ecx, 1
add ecx, edx
add cl, 0x48
mov byte [esp + eax + 0xff1e675], cl
inc eax
cmp eax, 0xf00e1990
jne 0x4407f0
cmp esi, dword [esp]
jne 0x4409d0
push dword [esp + 0x10]
call fcn.0043b030
add esp, 4
mov ecx, eax
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp], 0x74750a0b
mov word [esp + 4], 0
xor esi, esi
nop
nop
nop
nop
mov edi, esi
and edi, 2
xor edi, 0x42
mov edx, esi
and edx, 5
sub edx, edi
xor dl, byte [esp + esi]
add dl, 0x4a
mov byte [esp + esi], dl
inc esi
cmp esi, 6
jne 0x440850
mov esi, dword [esp]
mov edx, dword [0x44d2b8]
test edx, edx
mov dword [esp + 8], ecx
je 0x4408e4
mov ecx, ebp
xor edi, edi
mov ebp, dword [0x44d2bc]
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + edi*8], 0x3052ea03
je 0x4408a7
inc edi
cmp edx, edi
jne 0x440890
mov ebp, ecx
mov ecx, dword [esp + 8]
jmp 0x4408e4
mov edx, dword [ebp + edi*8 + 4]
cmp edx, esi
mov ebp, ecx
mov ecx, dword [esp + 8]
je 0x4408e4
lea esi, [esp + 0x10]
push esi
push dword [esp + 0x10]
push ecx
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push edx
push dword [0x44d2c0]
mov edi, eax
call fcn.0043d920
mov ecx, dword [esp + 0x2c]
add esp, 0x24
mov esi, eax
mov eax, edi
test ebp, ebp
je 0x4409c7
test esi, esi
js 0x4409c7
test ebx, ebx
je 0x4409bf
mov ecx, dword [ecx + 0xc]
shr ecx, 1
mov edx, dword [ebp]
cmp edx, ecx
jb 0x44090a
mov edx, ecx
test edx, edx
je 0x4409b2
add eax, 0x10
mov ecx, edx
and ecx, 3
je 0x4409da
mov dword [esp + 0xc], edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, word [eax]
xor edx, edx
test bp, bp
setne dl
lea eax, [eax + edx*2]
mov word [ebx], bp
add ebx, 2
inc edi
cmp ecx, edi
jne 0x440930
mov edx, dword [esp + 0xc]
mov ebp, edx
sub ebp, edi
cmp edx, 4
jb 0x4409b2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [eax]
xor ecx, ecx
test dx, dx
setne cl
lea edi, [eax + ecx*2]
mov word [ebx], dx
movzx eax, word [eax + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea edx, [edi + ecx*2]
mov word [ebx + 2], ax
movzx eax, word [edi + ecx*2]
xor ecx, ecx
test ax, ax
setne cl
lea edi, [edx + ecx*2]
mov word [ebx + 4], ax
movzx ecx, word [edx + ecx*2]
xor eax, eax
test cx, cx
setne al
mov word [ebx + 6], cx
add ebx, 8
lea eax, [edi + eax*2]
add ebp, 0xfffffffc
jne 0x440960
mov word [ebx], 0
mov ebp, dword [esp + 0x34]
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0xc]
shr eax, 1
mov dword [ebp], eax
push ecx
call fcn.0043b070
add esp, 4
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebp, edx
cmp edx, 4
jae 0x440960
jmp 0x4409b2