Function at 0x440270
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, dword [esp + 0x30]
mov dword [esp], 0x6c6d6e6f
mov byte [esp + 4], 0
mov eax, 0x58ffcc68
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x58ffcc68]
xor ecx, eax
lea edx, [ecx + 0x430101f7]
mov esi, edx
and esi, 1
and ecx, 1
and edx, 0xfe
or edx, ecx
lea ecx, [edx + esi*2]
mov byte [esp + eax - 0x58ffcc68], cl
inc eax
cmp eax, 0x58ffcc6d
jne 0x440290
mov esi, dword [esp]
mov eax, dword [0x44c008]
test eax, eax
je 0x44031e
xor ecx, ecx
mov edx, dword [0x44c00c]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [edx + ecx*8], 0x3052ea03
je 0x4402f0
inc ecx
cmp eax, ecx
jne 0x4402e0
jmp 0x44031e
mov eax, dword [edx + ecx*8 + 4]
cmp eax, esi
je 0x44031e
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 [0x44c010]
call fcn.0043d3e0
add esp, 0x24
mov esi, eax
mov dword [esp], 0x7f3e39df
mov byte [esp + 4], 0
xor ecx, ecx
mov eax, ecx
nop
nop
movzx edx, byte [esp + ecx]
lea edi, [ecx + 0x59b1c4a]
xor edi, edx
mov edx, edi
xor edx, 0x72
or edi, 0xe3f8728d
and edx, edi
add edx, edi
inc dl
mov byte [esp + ecx], dl
mov edx, ecx
xor eax, 1
add eax, ecx
and ecx, 1
and edx, 6
sub eax, edx
add eax, ecx
mov ecx, eax
cmp eax, 5
jb 0x440330
cmp esi, dword [esp]
jne 0x4404ef
push dword [esp + 0x10]
call fcn.0043a9d0
add esp, 4
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp], 0x6c6d6e6f
mov byte [esp + 4], 0
mov edx, 0x58ffcc68
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + edx - 0x58ffcc68]
xor esi, edx
lea edi, [esi + 0x430101f7]
mov ebp, edi
and ebp, 1
and esi, 1
and edi, 0xfe
or edi, esi
lea ecx, [edi + ebp*2]
mov byte [esp + edx - 0x58ffcc68], cl
inc edx
cmp edx, 0x58ffcc6d
jne 0x4403a0
mov esi, dword [esp]
mov edx, dword [0x44c008]
test edx, edx
je 0x440403
xor edi, edi
mov ebp, dword [0x44c00c]
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + edi*8], 0x3052ea03
je 0x4404f9
inc edi
cmp edx, edi
jne 0x4403f0
mov ebp, dword [esp + 8]
mov edx, dword [esp + 0x34]
test edx, edx
je 0x4404e6
test esi, esi
js 0x4404e6
test ebx, ebx
je 0x4404df
mov ecx, dword [ebp + 0xc]
shr ecx, 1
mov edx, dword [edx]
cmp edx, ecx
jb 0x440430
mov edx, ecx
test edx, edx
je 0x4404d2
add eax, 0x10
mov ecx, edx
and ecx, 3
je 0x440539
mov dword [esp + 0xc], edx
xor edi, edi
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 0x440450
mov edx, dword [esp + 0xc]
mov ebp, edx
sub ebp, edi
cmp edx, 4
jb 0x4404d2
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 0x440480
mov word [ebx], 0
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 8]
mov eax, dword [ebp + 0xc]
shr eax, 1
mov dword [edx], eax
push ebp
call fcn.0043aa40
add esp, 4
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp + edi*8 + 4]
cmp edx, esi
mov ebp, dword [esp + 8]
je 0x440407
lea ecx, [esp + 0x10]
push ecx
push dword [esp + 0x10]
push ebp
push 0
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push 0x18
push edx
push dword [0x44c010]
mov edi, eax
call fcn.0043d3e0
add esp, 0x24
mov esi, eax
mov eax, edi
jmp 0x440407
mov ebp, edx
cmp edx, 4
jae 0x440480
jmp 0x4404d2