Function at 0x4ef440
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ac854
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x76f950]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x7c], 0
mov dword [ebp - 4], 1
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0xc]
mov edi, dword [0x77c2f8]
cmp ecx, 8
lea eax, [ebp + 0xc]
cmovae eax, edx
mov dword [ebp - 0x80], edi
cmp word [eax], 0x40
jne 0x4ef4ef
cmp ecx, 8
lea eax, [ebp + 0xc]
cmovae eax, edx
cmp word [eax + 2], 0
lea edx, [eax + 2]
jne 0x4ef4c5
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp + 0xc]
call fcn.0040ae70
mov byte [ebp - 0x75], 1
jmp 0x4ef4f3
mov ecx, edx
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ef4d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0xc]
call fcn.0040ae70
mov byte [ebp - 0x75], 1
jmp 0x4ef4f3
mov byte [ebp - 0x75], 0
mov byte [ebp - 0x76], 0
xor eax, eax
cmp dword [ebp + 0x1c], eax
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
je 0x4ef818
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
push 1
push ecx
push 0x701648
lea ecx, [ebp + 0xc]
call fcn.004173d0
mov esi, eax
cmp esi, 0xffffffff
je 0x4ef64e
push esi
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp + 0xc]
call fcn.00417220
mov byte [ebp - 4], 3
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.004ef020
mov edi, eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x4ef5aa
cmp dword [ebp - 0x18], 8
jb 0x4ef58d
push dword [ebp - 0x2c]
call fcn.00633f98
add esp, 4
xor eax, eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.0040acd0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x60], 8
jb 0x4ef5bf
push dword [ebp - 0x74]
call fcn.00633f98
add esp, 4
xor eax, eax
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], 0
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x48], 8
jb 0x4ef5e8
push dword [ebp - 0x5c]
call fcn.00633f98
add esp, 4
xor eax, eax
cmp dword [ebp + 0x20], 8
lea edx, [ebp + 0xc]
cmovae edx, dword [ebp + 0xc]
add edx, 2
mov dword [ebp - 0x48], 7
lea edx, [edx + esi*2]
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
cmp word [edx], ax
jne 0x4ef626
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp + 0xc]
call fcn.0040ae70
mov edi, dword [ebp - 0x80]
jmp 0x4ef6cb
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x4ef630
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ef630
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp + 0xc]
call fcn.0040ae70
mov edi, dword [ebp - 0x80]
jmp 0x4ef6cb
lea edx, [ebp + 0xc]
lea ecx, [ebp - 0x44]
call fcn.004ef020
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x4ef694
cmp dword [ebp - 0x18], 8
jb 0x4ef677
push dword [ebp - 0x2c]
call fcn.00633f98
add esp, 4
xor eax, eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.0040acd0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x30], 8
jb 0x4ef6a9
push dword [ebp - 0x44]
call fcn.00633f98
add esp, 4
xor eax, eax
push eax
push 0x7014e4
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.0040ae70
mov ecx, dword [ebp - 0x1c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
je 0x4ef760
cmp byte [ebp - 0x76], 0
jne 0x4ef79b
mov ecx, edi
call fcn.004ef0f0
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x2c]
cmovae edx, dword [ebp - 0x2c]
xor ecx, ecx
movzx eax, word [edx]
test ax, ax
je 0x4ef747
lea esp, [esp]
movzx eax, ax
add ecx, eax
imul ecx, ecx, 0x401
mov eax, ecx
shr eax, 6
lea edx, [edx + 2]
xor ecx, eax
movzx eax, word [edx]
test ax, ax
jne 0x4ef710
lea ecx, [ecx + ecx*8]
mov eax, ecx
shr eax, 0xb
xor ecx, eax
imul ecx, ecx, 0x8001
test ecx, ecx
mov eax, 0xffffffff
cmove ecx, eax
push ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 4]
call fcn.004efc40
test eax, eax
je 0x4ef75d
add eax, 0x20
jne 0x4ef79b
mov ecx, dword [ebp - 0x1c]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
sete byte [ebp - 0x76]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
jb 0x4ef782
push dword [ebp - 0x2c]
call fcn.00633f98
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jmp 0x4ef4f7
cmp byte [ebp - 0x75], 0
je 0x4ef7f8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp word [eax], 0x40
je 0x4ef7f8
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.004efe10
add esp, 4
mov dword [ebp - 0x7c], 1
mov byte [ebp - 4], 1
cmp dword [ebp - 0x18], 8
jb 0x4ef7dc
push dword [ebp - 0x2c]
call fcn.00633f98
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], al
jmp 0x4ef8c4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], ax
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
call fcn.0040acd0
jmp 0x4ef7c0
call fcn.00572390
cmp byte [ebp - 0x75], 0
push eax
je 0x4ef8b2
lea ecx, [ebp - 0x5c]
call fcn.0040ac00
mov esi, eax
mov byte [ebp - 4], 6
push 0x70164c
lea ecx, [ebp - 0x44]
call fcn.0040ac00
mov byte [ebp - 4], 7
push esi
mov edx, eax
mov ecx, ebx
call fcn.0040b850
add esp, 4
mov dword [ebp - 0x7c], 1
mov byte [ebp - 4], 6
cmp dword [ebp - 0x30], 8
jb 0x4ef870
push dword [ebp - 0x44]
call fcn.00633f98
add esp, 4
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x48], 8
jb 0x4ef899
push dword [ebp - 0x5c]
call fcn.00633f98
add esp, 4
xor eax, eax
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], 0
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], al
jmp 0x4ef8c4
mov ecx, ebx
call fcn.0040ac00
mov dword [ebp - 0x7c], 1
mov byte [ebp - 4], 0
cmp dword [ebp + 0x20], 8
jb 0x4ef8d5
push dword [ebp + 0xc]
call fcn.00633f98
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], eax
mov word [ebp + 0xc], ax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00633732
mov esp, ebp
pop ebp
ret 0x1c